From 9947ffba9f020232948e2aad65fa587680371d42 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Mon, 25 May 2026 07:05:25 +0000 Subject: [PATCH 1/2] feat(dataplex): Add `RequestDataProductAccess` method to request access to `DataAssets` with in a `DataProduct` feat(dataplex): Add `ApprovalWorkflowService` to manage `ChangeRequest` resource feat(dataplex): Add `ModifyEntry` method to `CatalogService` feat(dataplex): Add `UnstructuredDataOptions` message feat(dataplex): Add `Mode` enum in `DataProfileSpec` message feat(dataplex): Add `CancelDataScanJob` method to `DataScanService` feat(dataplex): Add `DataQualityRuleTemplate` message docs: A comment for message `Aspect` is changed docs: A comment for field `view` in message `.google.cloud.dataplex.v1.GetEntryRequest` is changed docs: A comment for field `view` in message `.google.cloud.dataplex.v1.LookupEntryRequest` is changed docs: A comment for field `resources` in message `.google.cloud.dataplex.v1.LookupContextRequest` is changed docs: A comment for field `options` in message `.google.cloud.dataplex.v1.LookupContextRequest` is changed docs: A comment for field `context` in message `.google.cloud.dataplex.v1.LookupContextResponse` is changed docs: A comment for field `data_scan_id` in message `.google.cloud.dataplex.v1.CreateDataScanRequest` is changed docs: A comment for message `DataScan` is changed docs: A comment for field `resource` in message `.google.cloud.dataplex.v1.DataSource` is changed PiperOrigin-RevId: 920743950 Source-Link: https://github.com/googleapis/googleapis/commit/1742af79e7621f80e7843109769b23e30ebfb501 Source-Link: https://github.com/googleapis/googleapis-gen/commit/cd4cc02e97b2d1329b993d2d405342ce8af35810 Copy-Tag: eyJwIjoiRGF0YXBsZXgvLk93bEJvdC55YW1sIiwiaCI6ImNkNGNjMDJlOTdiMmQxMzI5Yjk5M2QyZDQwNTM0MmNlOGFmMzU4MTAifQ== --- .../Google/Cloud/Dataplex/V1/Analyze.php | 29 + .../Cloud/Dataplex/V1/ApprovalWorkflow.php | 32 + .../Cloud/Dataplex/V1/BusinessGlossary.php | 34 + .../Google/Cloud/Dataplex/V1/Catalog.php | 35 + .../Google/Cloud/Dataplex/V1/Cmek.php | 33 + .../Google/Cloud/Dataplex/V1/Content.php | 28 + .../Cloud/Dataplex/V1/DataDiscovery.php | 26 + .../Cloud/Dataplex/V1/DataDocumentation.php | 26 + .../Google/Cloud/Dataplex/V1/DataProducts.php | 35 + .../Google/Cloud/Dataplex/V1/DataProfile.php | 27 + .../Google/Cloud/Dataplex/V1/DataQuality.php | 29 + .../Dataplex/V1/DataQualityRuleTemplate.php | 25 + .../Google/Cloud/Dataplex/V1/DataTaxonomy.php | 34 + .../Google/Cloud/Dataplex/V1/Datascans.php | 40 + .../Cloud/Dataplex/V1/DatascansCommon.php | 25 + .../Google/Cloud/Dataplex/V1/Logs.php | 29 + .../Google/Cloud/Dataplex/V1/Metadata.php | 30 + .../Google/Cloud/Dataplex/V1/Processing.php | 27 + .../Google/Cloud/Dataplex/V1/Resources.php | 28 + .../Google/Cloud/Dataplex/V1/Security.php | 25 + .../Google/Cloud/Dataplex/V1/Service.php | 34 + .../Google/Cloud/Dataplex/V1/Tasks.php | 29 + .../src/Google/Cloud/Dataplex/V1/Action.php | 634 +++ .../Cloud/Dataplex/V1/Action/Category.php | 68 + .../V1/Action/FailedSecurityPolicyApply.php | 74 + .../V1/Action/IncompatibleDataSchema.php | 215 + .../IncompatibleDataSchema/SchemaChange.php | 62 + .../Dataplex/V1/Action/InvalidDataFormat.php | 139 + .../V1/Action/InvalidDataOrganization.php | 33 + .../V1/Action/InvalidDataPartition.php | 67 + .../PartitionStructure.php | 61 + .../Cloud/Dataplex/V1/Action/MissingData.php | 33 + .../Dataplex/V1/Action/MissingResource.php | 33 + .../V1/Action/UnauthorizedResource.php | 35 + .../src/Google/Cloud/Dataplex/V1/Aspect.php | 281 ++ .../Google/Cloud/Dataplex/V1/AspectSource.php | 163 + .../Google/Cloud/Dataplex/V1/AspectType.php | 502 ++ .../Dataplex/V1/AspectType/Authorization.php | 75 + .../V1/AspectType/DataClassification.php | 54 + .../V1/AspectType/MetadataTemplate.php | 575 +++ .../MetadataTemplate/Annotations.php | 265 ++ .../MetadataTemplate/Constraints.php | 67 + .../AspectType/MetadataTemplate/EnumValue.php | 143 + .../src/Google/Cloud/Dataplex/V1/Asset.php | 574 +++ .../Cloud/Dataplex/V1/Asset/DiscoverySpec.php | 317 ++ .../V1/Asset/DiscoverySpec/CsvOptions.php | 181 + .../V1/Asset/DiscoverySpec/JsonOptions.php | 109 + .../Dataplex/V1/Asset/DiscoveryStatus.php | 277 ++ .../V1/Asset/DiscoveryStatus/State.php | 76 + .../V1/Asset/DiscoveryStatus/Stats.php | 169 + .../Cloud/Dataplex/V1/Asset/ResourceSpec.php | 151 + .../V1/Asset/ResourceSpec/AccessMode.php | 62 + .../Dataplex/V1/Asset/ResourceSpec/Type.php | 61 + .../Dataplex/V1/Asset/ResourceStatus.php | 179 + .../V1/Asset/ResourceStatus/State.php | 61 + .../Dataplex/V1/Asset/SecurityStatus.php | 150 + .../V1/Asset/SecurityStatus/State.php | 70 + .../Google/Cloud/Dataplex/V1/AssetStatus.php | 149 + .../Dataplex/V1/BusinessGlossaryEvent.php | 135 + .../V1/BusinessGlossaryEvent/EventType.php | 110 + .../Dataplex/V1/CancelDataScanJobRequest.php | 96 + .../Dataplex/V1/CancelDataScanJobResponse.php | 33 + .../Cloud/Dataplex/V1/CancelJobRequest.php | 86 + .../Dataplex/V1/CancelMetadataJobRequest.php | 86 + .../Cloud/Dataplex/V1/ChangeRequest.php | 1031 +++++ .../Dataplex/V1/ChangeRequest/ChangeType.php | 152 + .../Cloud/Dataplex/V1/ChangeRequest/State.php | 86 + .../src/Google/Cloud/Dataplex/V1/Content.php | 428 ++ .../Cloud/Dataplex/V1/Content/Notebook.php | 67 + .../V1/Content/Notebook/KernelType.php | 54 + .../Cloud/Dataplex/V1/Content/SqlScript.php | 67 + .../V1/Content/SqlScript/QueryEngine.php | 54 + .../Dataplex/V1/CreateAspectTypeRequest.php | 211 + .../Cloud/Dataplex/V1/CreateAssetRequest.php | 241 + .../Dataplex/V1/CreateDataAssetRequest.php | 242 + .../V1/CreateDataAttributeBindingRequest.php | 231 + .../V1/CreateDataAttributeRequest.php | 231 + .../Dataplex/V1/CreateDataProductRequest.php | 237 + .../Dataplex/V1/CreateDataScanRequest.php | 247 + .../Dataplex/V1/CreateDataTaxonomyRequest.php | 219 + .../V1/CreateEncryptionConfigRequest.php | 173 + .../Cloud/Dataplex/V1/CreateEntityRequest.php | 170 + .../Dataplex/V1/CreateEntryGroupRequest.php | 211 + .../Dataplex/V1/CreateEntryLinkRequest.php | 193 + .../Cloud/Dataplex/V1/CreateEntryRequest.php | 247 + .../Dataplex/V1/CreateEntryTypeRequest.php | 211 + .../V1/CreateGlossaryCategoryRequest.php | 178 + .../Dataplex/V1/CreateGlossaryRequest.php | 211 + .../Dataplex/V1/CreateGlossaryTermRequest.php | 178 + .../Cloud/Dataplex/V1/CreateLakeRequest.php | 246 + .../Dataplex/V1/CreateMetadataFeedRequest.php | 211 + .../Dataplex/V1/CreateMetadataJobRequest.php | 211 + .../Dataplex/V1/CreatePartitionRequest.php | 170 + .../Cloud/Dataplex/V1/CreateTaskRequest.php | 206 + .../Cloud/Dataplex/V1/CreateZoneRequest.php | 246 + .../Cloud/Dataplex/V1/DataAccessSpec.php | 83 + .../Google/Cloud/Dataplex/V1/DataAsset.php | 458 ++ .../V1/DataAsset/AccessGroupConfig.php | 75 + .../Cloud/Dataplex/V1/DataAttribute.php | 531 +++ .../Dataplex/V1/DataAttributeBinding.php | 493 ++ .../Dataplex/V1/DataAttributeBinding/Path.php | 115 + .../Cloud/Dataplex/V1/DataDiscoveryResult.php | 121 + .../BigQueryPublishing.php | 101 + .../V1/DataDiscoveryResult/ScanStatistics.php | 339 ++ .../Cloud/Dataplex/V1/DataDiscoverySpec.php | 119 + .../BigQueryPublishingConfig.php | 269 ++ .../BigQueryPublishingConfig/TableType.php | 65 + .../V1/DataDiscoverySpec/StorageConfig.php | 269 ++ .../StorageConfig/CsvOptions.php | 223 + .../StorageConfig/JsonOptions.php | 109 + .../StorageConfig/UnstructuredDataOptions.php | 71 + .../Dataplex/V1/DataDocumentationResult.php | 108 + .../DataDocumentationResult/DatasetResult.php | 139 + .../V1/DataDocumentationResult/Field.php | 135 + .../V1/DataDocumentationResult/Query.php | 101 + .../V1/DataDocumentationResult/Schema.php | 67 + .../SchemaRelationship.php | 213 + .../SchemaRelationship/SchemaPaths.php | 121 + .../SchemaRelationship/Source.php | 70 + .../SchemaRelationship/Type.php | 54 + .../DataDocumentationResult/TableResult.php | 191 + .../Dataplex/V1/DataDocumentationSpec.php | 113 + .../DataDocumentationSpec/GenerationScope.php | 70 + .../Google/Cloud/Dataplex/V1/DataProduct.php | 639 +++ .../V1/DataProduct/AccessApprovalConfig.php | 75 + .../Dataplex/V1/DataProduct/AccessGroup.php | 189 + .../Dataplex/V1/DataProduct/Principal.php | 127 + .../Dataplex/V1/DataProductAccessRequest.php | 216 + .../Cloud/Dataplex/V1/DataProfileResult.php | 248 + .../PostScanActionsResult.php | 77 + .../BigQueryExportResult.php | 101 + .../BigQueryExportResult/State.php | 69 + .../Dataplex/V1/DataProfileResult/Profile.php | 71 + .../V1/DataProfileResult/Profile/Field.php | 211 + .../Profile/Field/ProfileInfo.php | 275 ++ .../Field/ProfileInfo/DoubleFieldInfo.php | 263 ++ .../Field/ProfileInfo/IntegerFieldInfo.php | 263 ++ .../Field/ProfileInfo/StringFieldInfo.php | 135 + .../Profile/Field/ProfileInfo/TopNValue.php | 139 + .../Cloud/Dataplex/V1/DataProfileSpec.php | 353 ++ .../Dataplex/V1/DataProfileSpec/Mode.php | 66 + .../V1/DataProfileSpec/PostScanActions.php | 81 + .../PostScanActions/BigQueryExport.php | 75 + .../V1/DataProfileSpec/SelectedFields.php | 87 + .../Dataplex/V1/DataQualityColumnResult.php | 192 + .../Dataplex/V1/DataQualityDimension.php | 72 + .../V1/DataQualityDimensionResult.php | 168 + .../Cloud/Dataplex/V1/DataQualityResult.php | 447 ++ .../AnomalyDetectionGeneratedAssets.php | 213 + .../PostScanActionsResult.php | 77 + .../BigQueryExportResult.php | 101 + .../BigQueryExportResult/State.php | 69 + .../Cloud/Dataplex/V1/DataQualityRule.php | 845 ++++ .../V1/DataQualityRule/DebugQuery.php | 120 + .../V1/DataQualityRule/NonNullExpectation.php | 33 + .../V1/DataQualityRule/RangeExpectation.php | 201 + .../V1/DataQualityRule/RegexExpectation.php | 67 + .../RowConditionExpectation.php | 71 + .../V1/DataQualityRule/RuleSource.php | 75 + .../RuleSource/RulePathElement.php | 118 + .../RulePathElement/EntryLinkSource.php | 117 + .../RulePathElement/EntrySource.php | 147 + .../V1/DataQualityRule/SetExpectation.php | 67 + .../V1/DataQualityRule/SqlAssertion.php | 77 + .../StatisticRangeExpectation.php | 236 + .../ColumnStatistic.php | 68 + .../TableConditionExpectation.php | 71 + .../V1/DataQualityRule/TemplateReference.php | 213 + .../TemplateReference/ParameterValue.php | 67 + .../DataQualityRule/UniquenessExpectation.php | 33 + .../Dataplex/V1/DataQualityRuleResult.php | 409 ++ .../DebugQueryResult.php | 147 + .../DebugQueryResultSet.php | 67 + .../Dataplex/V1/DataQualityRuleTemplate.php | 220 + .../ParameterDescription.php | 115 + .../V1/DataQualityRuleTemplate/Sql.php | 68 + .../Dataplex/V1/DataQualityScanRuleResult.php | 488 ++ .../EvaluationType.php | 61 + .../V1/DataQualityScanRuleResult/Result.php | 61 + .../V1/DataQualityScanRuleResult/RuleType.php | 127 + .../Cloud/Dataplex/V1/DataQualitySpec.php | 389 ++ .../V1/DataQualitySpec/PostScanActions.php | 129 + .../PostScanActions/BigQueryExport.php | 83 + .../PostScanActions/JobEndTrigger.php | 34 + .../PostScanActions/JobFailureTrigger.php | 34 + .../PostScanActions/NotificationReport.php | 209 + .../PostScanActions/Recipients.php | 72 + .../PostScanActions/ScoreThresholdTrigger.php | 68 + .../src/Google/Cloud/Dataplex/V1/DataScan.php | 867 ++++ .../Dataplex/V1/DataScan/ExecutionSpec.php | 133 + .../Dataplex/V1/DataScan/ExecutionStatus.php | 165 + .../V1/DataScanCatalogPublishingStatus.php | 69 + .../DataScanCatalogPublishingStatus/State.php | 68 + .../Cloud/Dataplex/V1/DataScanEvent.php | 680 +++ .../DataProfileAppliedConfigs.php | 147 + .../V1/DataScanEvent/DataProfileResult.php | 67 + .../DataQualityAppliedConfigs.php | 109 + .../V1/DataScanEvent/DataQualityResult.php | 289 ++ .../DataScanEvent/PostScanActionsResult.php | 77 + .../BigQueryExportResult.php | 101 + .../BigQueryExportResult/State.php | 69 + .../Dataplex/V1/DataScanEvent/ScanType.php | 68 + .../Cloud/Dataplex/V1/DataScanEvent/Scope.php | 61 + .../Cloud/Dataplex/V1/DataScanEvent/State.php | 82 + .../Dataplex/V1/DataScanEvent/Trigger.php | 68 + .../Google/Cloud/Dataplex/V1/DataScanJob.php | 667 +++ .../Cloud/Dataplex/V1/DataScanJob/State.php | 96 + .../Google/Cloud/Dataplex/V1/DataScanType.php | 75 + .../Google/Cloud/Dataplex/V1/DataSource.php | 150 + .../Google/Cloud/Dataplex/V1/DataTaxonomy.php | 416 ++ .../Dataplex/V1/DeleteAspectTypeRequest.php | 128 + .../Cloud/Dataplex/V1/DeleteAssetRequest.php | 86 + .../Dataplex/V1/DeleteDataAssetRequest.php | 175 + .../V1/DeleteDataAttributeBindingRequest.php | 132 + .../V1/DeleteDataAttributeRequest.php | 124 + .../Dataplex/V1/DeleteDataProductRequest.php | 175 + .../Dataplex/V1/DeleteDataScanRequest.php | 138 + .../Dataplex/V1/DeleteDataTaxonomyRequest.php | 125 + .../V1/DeleteEncryptionConfigRequest.php | 115 + .../Cloud/Dataplex/V1/DeleteEntityRequest.php | 124 + .../Dataplex/V1/DeleteEntryGroupRequest.php | 128 + .../Dataplex/V1/DeleteEntryLinkRequest.php | 86 + .../Cloud/Dataplex/V1/DeleteEntryRequest.php | 86 + .../Dataplex/V1/DeleteEntryTypeRequest.php | 124 + .../V1/DeleteGlossaryCategoryRequest.php | 91 + .../Dataplex/V1/DeleteGlossaryRequest.php | 137 + .../Dataplex/V1/DeleteGlossaryTermRequest.php | 91 + .../Cloud/Dataplex/V1/DeleteLakeRequest.php | 86 + .../Dataplex/V1/DeleteMetadataFeedRequest.php | 86 + .../Dataplex/V1/DeletePartitionRequest.php | 142 + .../Cloud/Dataplex/V1/DeleteTaskRequest.php | 86 + .../Cloud/Dataplex/V1/DeleteZoneRequest.php | 86 + .../Cloud/Dataplex/V1/DiscoveryEvent.php | 445 ++ .../V1/DiscoveryEvent/ActionDetails.php | 105 + .../V1/DiscoveryEvent/ConfigDetails.php | 79 + .../V1/DiscoveryEvent/EntityDetails.php | 105 + .../Dataplex/V1/DiscoveryEvent/EntityType.php | 61 + .../Dataplex/V1/DiscoveryEvent/EventType.php | 124 + .../V1/DiscoveryEvent/PartitionDetails.php | 181 + .../V1/DiscoveryEvent/TableDetails.php | 101 + .../Dataplex/V1/DiscoveryEvent/TableType.php | 68 + .../Cloud/Dataplex/V1/EncryptionConfig.php | 356 ++ .../V1/EncryptionConfig/EncryptionState.php | 73 + .../V1/EncryptionConfig/FailureDetails.php | 105 + .../FailureDetails/ErrorCode.php | 61 + .../src/Google/Cloud/Dataplex/V1/Entity.php | 785 ++++ .../V1/Entity/CompatibilityStatus.php | 121 + .../CompatibilityStatus/Compatibility.php | 109 + .../Google/Cloud/Dataplex/V1/Entity/Type.php | 61 + .../src/Google/Cloud/Dataplex/V1/Entry.php | 400 ++ .../Google/Cloud/Dataplex/V1/EntryGroup.php | 383 ++ .../Google/Cloud/Dataplex/V1/EntryLink.php | 309 ++ .../Dataplex/V1/EntryLink/EntryReference.php | 151 + .../V1/EntryLink/EntryReference/Type.php | 62 + .../Cloud/Dataplex/V1/EntryLinkEvent.php | 135 + .../Dataplex/V1/EntryLinkEvent/EventType.php | 61 + .../Google/Cloud/Dataplex/V1/EntrySource.php | 446 ++ .../Dataplex/V1/EntrySource/Ancestor.php | 102 + .../Google/Cloud/Dataplex/V1/EntryType.php | 533 +++ .../Dataplex/V1/EntryType/AspectInfo.php | 65 + .../Dataplex/V1/EntryType/Authorization.php | 75 + .../Google/Cloud/Dataplex/V1/EntryView.php | 78 + .../Google/Cloud/Dataplex/V1/Environment.php | 518 +++ .../Dataplex/V1/Environment/Endpoints.php | 101 + .../V1/Environment/InfrastructureSpec.php | 120 + .../InfrastructureSpec/ComputeResources.php | 143 + .../InfrastructureSpec/OsImageRuntime.php | 197 + .../Dataplex/V1/Environment/SessionSpec.php | 131 + .../Dataplex/V1/Environment/SessionStatus.php | 71 + .../Cloud/Dataplex/V1/ExecutionIdentity.php | 144 + .../DataplexServiceAgent.php | 33 + .../V1/ExecutionIdentity/ServiceAccount.php | 83 + .../V1/ExecutionIdentity/UserCredential.php | 33 + .../V1/GenerateDataQualityRulesRequest.php | 101 + .../V1/GenerateDataQualityRulesResponse.php | 71 + .../Dataplex/V1/GetAspectTypeRequest.php | 86 + .../Cloud/Dataplex/V1/GetAssetRequest.php | 86 + .../Cloud/Dataplex/V1/GetDataAssetRequest.php | 91 + .../V1/GetDataAttributeBindingRequest.php | 86 + .../Dataplex/V1/GetDataAttributeRequest.php | 86 + .../Dataplex/V1/GetDataProductRequest.php | 91 + .../Dataplex/V1/GetDataScanJobRequest.php | 130 + .../GetDataScanJobRequest/DataScanJobView.php | 61 + .../Cloud/Dataplex/V1/GetDataScanRequest.php | 130 + .../V1/GetDataScanRequest/DataScanView.php | 61 + .../Dataplex/V1/GetDataTaxonomyRequest.php | 74 + .../V1/GetEncryptionConfigRequest.php | 81 + .../Cloud/Dataplex/V1/GetEntityRequest.php | 124 + .../V1/GetEntityRequest/EntityView.php | 68 + .../Dataplex/V1/GetEntryGroupRequest.php | 86 + .../Cloud/Dataplex/V1/GetEntryLinkRequest.php | 86 + .../Cloud/Dataplex/V1/GetEntryRequest.php | 212 + .../Cloud/Dataplex/V1/GetEntryTypeRequest.php | 86 + .../V1/GetGlossaryCategoryRequest.php | 91 + .../Cloud/Dataplex/V1/GetGlossaryRequest.php | 91 + .../Dataplex/V1/GetGlossaryTermRequest.php | 91 + .../Cloud/Dataplex/V1/GetJobRequest.php | 86 + .../Cloud/Dataplex/V1/GetLakeRequest.php | 86 + .../Dataplex/V1/GetMetadataFeedRequest.php | 86 + .../Dataplex/V1/GetMetadataJobRequest.php | 86 + .../Cloud/Dataplex/V1/GetPartitionRequest.php | 96 + .../Cloud/Dataplex/V1/GetTaskRequest.php | 86 + .../Cloud/Dataplex/V1/GetZoneRequest.php | 86 + .../src/Google/Cloud/Dataplex/V1/Glossary.php | 427 ++ .../Cloud/Dataplex/V1/GlossaryCategory.php | 370 ++ .../Google/Cloud/Dataplex/V1/GlossaryTerm.php | 367 ++ .../Cloud/Dataplex/V1/GovernanceEvent.php | 149 + .../Dataplex/V1/GovernanceEvent/Entity.php | 109 + .../V1/GovernanceEvent/Entity/EntityType.php | 61 + .../Dataplex/V1/GovernanceEvent/EventType.php | 159 + .../Google/Cloud/Dataplex/V1/ImportItem.php | 329 ++ .../src/Google/Cloud/Dataplex/V1/Job.php | 483 ++ .../Google/Cloud/Dataplex/V1/Job/Service.php | 52 + .../Google/Cloud/Dataplex/V1/Job/State.php | 87 + .../Google/Cloud/Dataplex/V1/Job/Trigger.php | 62 + .../src/Google/Cloud/Dataplex/V1/JobEvent.php | 394 ++ .../Dataplex/V1/JobEvent/ExecutionTrigger.php | 62 + .../Cloud/Dataplex/V1/JobEvent/Service.php | 54 + .../Cloud/Dataplex/V1/JobEvent/State.php | 75 + .../Cloud/Dataplex/V1/JobEvent/Type.php | 61 + .../src/Google/Cloud/Dataplex/V1/Lake.php | 518 +++ .../Cloud/Dataplex/V1/Lake/Metastore.php | 79 + .../Dataplex/V1/Lake/MetastoreStatus.php | 179 + .../V1/Lake/MetastoreStatus/State.php | 75 + .../Cloud/Dataplex/V1/ListActionsResponse.php | 105 + .../Dataplex/V1/ListAspectTypesRequest.php | 275 ++ .../Dataplex/V1/ListAspectTypesResponse.php | 139 + .../Dataplex/V1/ListAssetActionsRequest.php | 174 + .../Cloud/Dataplex/V1/ListAssetsRequest.php | 242 + .../Cloud/Dataplex/V1/ListAssetsResponse.php | 105 + .../Dataplex/V1/ListDataAssetsRequest.php | 267 ++ .../Dataplex/V1/ListDataAssetsResponse.php | 105 + .../V1/ListDataAttributeBindingsRequest.php | 262 ++ .../V1/ListDataAttributeBindingsResponse.php | 139 + .../Dataplex/V1/ListDataAttributesRequest.php | 246 + .../V1/ListDataAttributesResponse.php | 139 + .../Dataplex/V1/ListDataProductsRequest.php | 286 ++ .../Dataplex/V1/ListDataProductsResponse.php | 139 + .../Dataplex/V1/ListDataScanJobsRequest.php | 266 ++ .../Dataplex/V1/ListDataScanJobsResponse.php | 105 + .../Dataplex/V1/ListDataScansRequest.php | 256 ++ .../Dataplex/V1/ListDataScansResponse.php | 139 + .../Dataplex/V1/ListDataTaxonomiesRequest.php | 251 + .../V1/ListDataTaxonomiesResponse.php | 139 + .../V1/ListEncryptionConfigsRequest.php | 297 ++ .../V1/ListEncryptionConfigsResponse.php | 139 + .../Cloud/Dataplex/V1/ListEntitiesRequest.php | 270 ++ .../V1/ListEntitiesRequest/EntityView.php | 62 + .../Dataplex/V1/ListEntitiesResponse.php | 105 + .../Cloud/Dataplex/V1/ListEntriesRequest.php | 272 ++ .../Cloud/Dataplex/V1/ListEntriesResponse.php | 105 + .../Dataplex/V1/ListEntryGroupsRequest.php | 251 + .../Dataplex/V1/ListEntryGroupsResponse.php | 139 + .../Dataplex/V1/ListEntryTypesRequest.php | 275 ++ .../Dataplex/V1/ListEntryTypesResponse.php | 139 + .../Dataplex/V1/ListGlossariesRequest.php | 279 ++ .../Dataplex/V1/ListGlossariesResponse.php | 139 + .../V1/ListGlossaryCategoriesRequest.php | 300 ++ .../V1/ListGlossaryCategoriesResponse.php | 139 + .../Dataplex/V1/ListGlossaryTermsRequest.php | 300 ++ .../Dataplex/V1/ListGlossaryTermsResponse.php | 139 + .../Cloud/Dataplex/V1/ListJobsRequest.php | 174 + .../Cloud/Dataplex/V1/ListJobsResponse.php | 105 + .../Dataplex/V1/ListLakeActionsRequest.php | 174 + .../Cloud/Dataplex/V1/ListLakesRequest.php | 243 + .../Cloud/Dataplex/V1/ListLakesResponse.php | 139 + .../Dataplex/V1/ListMetadataFeedsRequest.php | 270 ++ .../Dataplex/V1/ListMetadataFeedsResponse.php | 139 + .../Dataplex/V1/ListMetadataJobsRequest.php | 270 ++ .../Dataplex/V1/ListMetadataJobsResponse.php | 139 + .../Dataplex/V1/ListPartitionsRequest.php | 268 ++ .../Dataplex/V1/ListPartitionsResponse.php | 105 + .../Cloud/Dataplex/V1/ListTasksRequest.php | 238 + .../Cloud/Dataplex/V1/ListTasksResponse.php | 139 + .../Dataplex/V1/ListZoneActionsRequest.php | 174 + .../Cloud/Dataplex/V1/ListZonesRequest.php | 238 + .../Cloud/Dataplex/V1/ListZonesResponse.php | 105 + .../Dataplex/V1/LookupContextRequest.php | 213 + .../Dataplex/V1/LookupContextResponse.php | 71 + .../Dataplex/V1/LookupEntryLinksRequest.php | 277 ++ .../V1/LookupEntryLinksRequest/EntryMode.php | 62 + .../Dataplex/V1/LookupEntryLinksResponse.php | 105 + .../Cloud/Dataplex/V1/LookupEntryRequest.php | 235 + .../Google/Cloud/Dataplex/V1/MetadataFeed.php | 382 ++ .../Dataplex/V1/MetadataFeed/Filters.php | 163 + .../V1/MetadataFeed/Filters/ChangeType.php | 68 + .../Cloud/Dataplex/V1/MetadataFeed/Scope.php | 172 + .../Google/Cloud/Dataplex/V1/MetadataJob.php | 467 ++ .../V1/MetadataJob/ExportJobResult.php | 103 + .../Dataplex/V1/MetadataJob/ExportJobSpec.php | 139 + .../ExportJobSpec/ExportJobScope.php | 323 ++ .../V1/MetadataJob/ImportJobResult.php | 357 ++ .../Dataplex/V1/MetadataJob/ImportJobSpec.php | 348 ++ .../ImportJobSpec/ImportJobScope.php | 417 ++ .../V1/MetadataJob/ImportJobSpec/LogLevel.php | 71 + .../V1/MetadataJob/ImportJobSpec/SyncMode.php | 80 + .../Cloud/Dataplex/V1/MetadataJob/Status.php | 179 + .../Dataplex/V1/MetadataJob/Status/State.php | 96 + .../Cloud/Dataplex/V1/MetadataJob/Type.php | 61 + .../Cloud/Dataplex/V1/ModifyEntryRequest.php | 299 ++ .../Cloud/Dataplex/V1/OperationMetadata.php | 307 ++ .../Google/Cloud/Dataplex/V1/Partition.php | 204 + .../V1/RequestDataProductAccessRequest.php | 175 + .../V1/RequestDataProductAccessResponse.php | 75 + .../Cloud/Dataplex/V1/ResourceAccessSpec.php | 145 + .../Cloud/Dataplex/V1/RunDataScanRequest.php | 102 + .../Cloud/Dataplex/V1/RunDataScanResponse.php | 77 + .../Cloud/Dataplex/V1/RunTaskRequest.php | 200 + .../Cloud/Dataplex/V1/RunTaskResponse.php | 75 + .../Google/Cloud/Dataplex/V1/ScannedData.php | 75 + .../V1/ScannedData/IncrementalField.php | 139 + .../src/Google/Cloud/Dataplex/V1/Schema.php | 229 + .../Google/Cloud/Dataplex/V1/Schema/Mode.php | 68 + .../Dataplex/V1/Schema/PartitionField.php | 112 + .../Dataplex/V1/Schema/PartitionStyle.php | 56 + .../Cloud/Dataplex/V1/Schema/SchemaField.php | 215 + .../Google/Cloud/Dataplex/V1/Schema/Type.php | 153 + .../Dataplex/V1/SearchEntriesRequest.php | 344 ++ .../Dataplex/V1/SearchEntriesResponse.php | 179 + .../Cloud/Dataplex/V1/SearchEntriesResult.php | 166 + .../V1/SearchEntriesResult/Snippets.php | 90 + .../src/Google/Cloud/Dataplex/V1/Session.php | 183 + .../Google/Cloud/Dataplex/V1/SessionEvent.php | 332 ++ .../Dataplex/V1/SessionEvent/EventType.php | 76 + .../Dataplex/V1/SessionEvent/QueryDetail.php | 247 + .../V1/SessionEvent/QueryDetail/Engine.php | 61 + .../src/Google/Cloud/Dataplex/V1/State.php | 75 + .../Cloud/Dataplex/V1/StorageAccess.php | 71 + .../Dataplex/V1/StorageAccess/AccessMode.php | 61 + .../Cloud/Dataplex/V1/StorageFormat.php | 311 ++ .../V1/StorageFormat/CompressionFormat.php | 61 + .../Dataplex/V1/StorageFormat/CsvOptions.php | 185 + .../Dataplex/V1/StorageFormat/Format.php | 131 + .../V1/StorageFormat/IcebergOptions.php | 71 + .../Dataplex/V1/StorageFormat/JsonOptions.php | 71 + .../Cloud/Dataplex/V1/StorageSystem.php | 61 + .../src/Google/Cloud/Dataplex/V1/Task.php | 544 +++ .../Cloud/Dataplex/V1/Task/ExecutionSpec.php | 281 ++ .../Dataplex/V1/Task/ExecutionStatus.php | 121 + .../Dataplex/V1/Task/InfrastructureSpec.php | 159 + .../BatchComputeResources.php | 113 + .../ContainerImageRuntime.php | 201 + .../V1/Task/InfrastructureSpec/VpcNetwork.php | 145 + .../Dataplex/V1/Task/NotebookTaskConfig.php | 203 + .../Dataplex/V1/Task/SparkTaskConfig.php | 367 ++ .../Cloud/Dataplex/V1/Task/TriggerSpec.php | 259 ++ .../Dataplex/V1/Task/TriggerSpec/Type.php | 61 + .../Cloud/Dataplex/V1/TransferStatus.php | 66 + .../src/Google/Cloud/Dataplex/V1/Trigger.php | 144 + .../Cloud/Dataplex/V1/Trigger/OnDemand.php | 33 + .../Cloud/Dataplex/V1/Trigger/OneTime.php | 93 + .../Cloud/Dataplex/V1/Trigger/Schedule.php | 103 + .../Dataplex/V1/UpdateAspectTypeRequest.php | 174 + .../Cloud/Dataplex/V1/UpdateAssetRequest.php | 179 + .../Dataplex/V1/UpdateDataAssetRequest.php | 184 + .../V1/UpdateDataAttributeBindingRequest.php | 174 + .../V1/UpdateDataAttributeRequest.php | 174 + .../Dataplex/V1/UpdateDataProductRequest.php | 189 + .../Dataplex/V1/UpdateDataScanRequest.php | 180 + .../Dataplex/V1/UpdateDataTaxonomyRequest.php | 175 + .../V1/UpdateEncryptionConfigRequest.php | 146 + .../Cloud/Dataplex/V1/UpdateEntityRequest.php | 118 + .../Dataplex/V1/UpdateEntryGroupRequest.php | 174 + .../Dataplex/V1/UpdateEntryLinkRequest.php | 178 + .../Cloud/Dataplex/V1/UpdateEntryRequest.php | 322 ++ .../Dataplex/V1/UpdateEntryTypeRequest.php | 174 + .../V1/UpdateGlossaryCategoryRequest.php | 151 + .../Dataplex/V1/UpdateGlossaryRequest.php | 189 + .../Dataplex/V1/UpdateGlossaryTermRequest.php | 151 + .../Cloud/Dataplex/V1/UpdateLakeRequest.php | 179 + .../Dataplex/V1/UpdateMetadataFeedRequest.php | 179 + .../Cloud/Dataplex/V1/UpdateTaskRequest.php | 179 + .../Cloud/Dataplex/V1/UpdateZoneRequest.php | 179 + .../src/Google/Cloud/Dataplex/V1/Zone.php | 510 +++ .../Cloud/Dataplex/V1/Zone/DiscoverySpec.php | 317 ++ .../V1/Zone/DiscoverySpec/CsvOptions.php | 181 + .../V1/Zone/DiscoverySpec/JsonOptions.php | 109 + .../Cloud/Dataplex/V1/Zone/ResourceSpec.php | 71 + .../V1/Zone/ResourceSpec/LocationType.php | 61 + .../Google/Cloud/Dataplex/V1/Zone/Type.php | 65 + .../create_glossary.php | 90 + .../create_glossary_category.php | 94 + .../create_glossary_term.php | 99 + .../delete_glossary.php | 87 + .../delete_glossary_category.php | 78 + .../delete_glossary_term.php | 76 + .../get_glossary.php | 77 + .../get_glossary_category.php | 78 + .../get_glossary_term.php | 78 + .../get_iam_policy.php | 72 + .../get_location.php | 57 + .../list_glossaries.php | 78 + .../list_glossary_categories.php | 83 + .../list_glossary_terms.php | 83 + .../list_locations.php | 77 + .../set_iam_policy.php | 77 + .../test_iam_permissions.php | 84 + .../update_glossary.php | 74 + .../update_glossary_category.php | 80 + .../update_glossary_term.php | 85 + .../cancel_metadata_job.php | 75 + .../create_aspect_type.php | 124 + .../V1/CatalogServiceClient/create_entry.php | 104 + .../create_entry_group.php | 90 + .../create_entry_link.php | 117 + .../create_entry_type.php | 90 + .../create_metadata_feed.php | 89 + .../create_metadata_job.php | 91 + .../delete_aspect_type.php | 81 + .../V1/CatalogServiceClient/delete_entry.php | 77 + .../delete_entry_group.php | 81 + .../delete_entry_link.php | 77 + .../delete_entry_type.php | 81 + .../delete_metadata_feed.php | 85 + .../CatalogServiceClient/get_aspect_type.php | 72 + .../V1/CatalogServiceClient/get_entry.php | 77 + .../CatalogServiceClient/get_entry_group.php | 72 + .../CatalogServiceClient/get_entry_link.php | 77 + .../CatalogServiceClient/get_entry_type.php | 72 + .../CatalogServiceClient/get_iam_policy.php | 72 + .../V1/CatalogServiceClient/get_location.php | 57 + .../get_metadata_feed.php | 76 + .../CatalogServiceClient/get_metadata_job.php | 72 + .../list_aspect_types.php | 78 + .../V1/CatalogServiceClient/list_entries.php | 77 + .../list_entry_groups.php | 78 + .../CatalogServiceClient/list_entry_types.php | 78 + .../CatalogServiceClient/list_locations.php | 77 + .../list_metadata_feeds.php | 77 + .../list_metadata_jobs.php | 77 + .../CatalogServiceClient/lookup_context.php | 86 + .../V1/CatalogServiceClient/lookup_entry.php | 81 + .../lookup_entry_links.php | 88 + .../V1/CatalogServiceClient/modify_entry.php | 78 + .../CatalogServiceClient/search_entries.php | 82 + .../CatalogServiceClient/set_iam_policy.php | 77 + .../test_iam_permissions.php | 84 + .../update_aspect_type.php | 111 + .../V1/CatalogServiceClient/update_entry.php | 74 + .../update_entry_group.php | 74 + .../update_entry_link.php | 100 + .../update_entry_type.php | 74 + .../update_metadata_feed.php | 74 + .../create_encryption_config.php | 92 + .../delete_encryption_config.php | 84 + .../get_encryption_config.php | 75 + .../V1/CmekServiceClient/get_iam_policy.php | 72 + .../V1/CmekServiceClient/get_location.php | 57 + .../list_encryption_configs.php | 76 + .../V1/CmekServiceClient/list_locations.php | 77 + .../V1/CmekServiceClient/set_iam_policy.php | 77 + .../test_iam_permissions.php | 84 + .../update_encryption_config.php | 71 + .../ContentServiceClient/get_iam_policy.php | 72 + .../V1/ContentServiceClient/get_location.php | 57 + .../ContentServiceClient/list_locations.php | 77 + .../ContentServiceClient/set_iam_policy.php | 77 + .../test_iam_permissions.php | 84 + .../create_data_asset.php | 101 + .../create_data_product.php | 100 + .../delete_data_asset.php | 87 + .../delete_data_product.php | 87 + .../get_data_asset.php | 78 + .../get_data_product.php | 77 + .../get_iam_policy.php | 72 + .../DataProductServiceClient/get_location.php | 57 + .../list_data_assets.php | 82 + .../list_data_products.php | 81 + .../list_locations.php | 77 + .../request_data_product_access.php | 82 + .../set_iam_policy.php | 77 + .../test_iam_permissions.php | 84 + .../update_data_asset.php | 91 + .../update_data_product.php | 90 + .../cancel_data_scan_job.php | 79 + .../create_data_scan.php | 91 + .../delete_data_scan.php | 83 + .../generate_data_quality_rules.php | 78 + .../DataScanServiceClient/get_data_scan.php | 74 + .../get_data_scan_job.php | 79 + .../DataScanServiceClient/get_iam_policy.php | 72 + .../V1/DataScanServiceClient/get_location.php | 57 + .../list_data_scan_jobs.php | 79 + .../DataScanServiceClient/list_data_scans.php | 79 + .../DataScanServiceClient/list_locations.php | 77 + .../DataScanServiceClient/run_data_scan.php | 76 + .../DataScanServiceClient/set_iam_policy.php | 77 + .../test_iam_permissions.php | 84 + .../update_data_scan.php | 74 + .../create_data_attribute.php | 98 + .../create_data_attribute_binding.php | 96 + .../create_data_taxonomy.php | 92 + .../delete_data_attribute.php | 86 + .../delete_data_attribute_binding.php | 93 + .../delete_data_taxonomy.php | 86 + .../get_data_attribute.php | 77 + .../get_data_attribute_binding.php | 76 + .../get_data_taxonomy.php | 74 + .../get_iam_policy.php | 72 + .../get_location.php | 57 + .../list_data_attribute_bindings.php | 77 + .../list_data_attributes.php | 81 + .../list_data_taxonomies.php | 78 + .../list_locations.php | 77 + .../set_iam_policy.php | 77 + .../test_iam_permissions.php | 84 + .../update_data_attribute.php | 74 + .../update_data_attribute_binding.php | 74 + .../update_data_taxonomy.php | 74 + .../V1/DataplexServiceClient/cancel_job.php | 76 + .../V1/DataplexServiceClient/create_asset.php | 106 + .../V1/DataplexServiceClient/create_lake.php | 97 + .../V1/DataplexServiceClient/create_task.php | 113 + .../V1/DataplexServiceClient/create_zone.php | 113 + .../V1/DataplexServiceClient/delete_asset.php | 88 + .../V1/DataplexServiceClient/delete_lake.php | 82 + .../V1/DataplexServiceClient/delete_task.php | 81 + .../V1/DataplexServiceClient/delete_zone.php | 82 + .../V1/DataplexServiceClient/get_asset.php | 78 + .../DataplexServiceClient/get_iam_policy.php | 72 + .../V1/DataplexServiceClient/get_job.php | 78 + .../V1/DataplexServiceClient/get_lake.php | 72 + .../V1/DataplexServiceClient/get_location.php | 57 + .../V1/DataplexServiceClient/get_task.php | 72 + .../V1/DataplexServiceClient/get_zone.php | 72 + .../list_asset_actions.php | 83 + .../V1/DataplexServiceClient/list_assets.php | 77 + .../V1/DataplexServiceClient/list_jobs.php | 77 + .../list_lake_actions.php | 77 + .../V1/DataplexServiceClient/list_lakes.php | 78 + .../DataplexServiceClient/list_locations.php | 77 + .../V1/DataplexServiceClient/list_tasks.php | 77 + .../list_zone_actions.php | 77 + .../V1/DataplexServiceClient/list_zones.php | 77 + .../V1/DataplexServiceClient/run_task.php | 72 + .../DataplexServiceClient/set_iam_policy.php | 77 + .../test_iam_permissions.php | 84 + .../V1/DataplexServiceClient/update_asset.php | 91 + .../V1/DataplexServiceClient/update_lake.php | 74 + .../V1/DataplexServiceClient/update_task.php | 101 + .../V1/DataplexServiceClient/update_zone.php | 96 + .../MetadataServiceClient/create_entity.php | 160 + .../create_partition.php | 93 + .../MetadataServiceClient/delete_entity.php | 80 + .../delete_partition.php | 80 + .../V1/MetadataServiceClient/get_entity.php | 78 + .../MetadataServiceClient/get_iam_policy.php | 72 + .../V1/MetadataServiceClient/get_location.php | 57 + .../MetadataServiceClient/get_partition.php | 81 + .../MetadataServiceClient/list_entities.php | 81 + .../MetadataServiceClient/list_locations.php | 77 + .../MetadataServiceClient/list_partitions.php | 83 + .../MetadataServiceClient/set_iam_policy.php | 77 + .../test_iam_permissions.php | 84 + .../MetadataServiceClient/update_entity.php | 153 + .../Client/BusinessGlossaryServiceClient.php | 958 ++++ .../v1/src/V1/Client/CatalogServiceClient.php | 1711 +++++++ .../v1/src/V1/Client/CmekServiceClient.php | 610 +++ .../v1/src/V1/Client/ContentServiceClient.php | 327 ++ .../V1/Client/DataProductServiceClient.php | 958 ++++ .../src/V1/Client/DataScanServiceClient.php | 884 ++++ .../V1/Client/DataTaxonomyServiceClient.php | 984 ++++ .../src/V1/Client/DataplexServiceClient.php | 1330 ++++++ .../src/V1/Client/MetadataServiceClient.php | 700 +++ .../Dataplex/v1/src/V1/gapic_metadata.json | 965 ++++ ...siness_glossary_service_client_config.json | 122 + ...ess_glossary_service_descriptor_config.php | 335 ++ ...ss_glossary_service_rest_client_config.php | 626 +++ .../catalog_service_client_config.json | 296 ++ .../catalog_service_descriptor_config.php | 730 +++ .../catalog_service_rest_client_config.php | 898 ++++ .../resources/cmek_service_client_config.json | 72 + .../cmek_service_descriptor_config.php | 195 + .../cmek_service_rest_client_config.php | 495 ++ .../content_service_client_config.json | 81 + .../content_service_descriptor_config.php | 101 + .../content_service_rest_client_config.php | 432 ++ .../data_product_service_client_config.json | 102 + ...data_product_service_descriptor_config.php | 305 ++ ...ata_product_service_rest_client_config.php | 562 +++ .../data_scan_service_client_config.json | 97 + .../data_scan_service_descriptor_config.php | 269 ++ .../data_scan_service_rest_client_config.php | 557 +++ .../data_taxonomy_service_client_config.json | 122 + ...ata_taxonomy_service_descriptor_config.php | 377 ++ ...ta_taxonomy_service_rest_client_config.php | 629 +++ .../dataplex_service_client_config.json | 216 + .../dataplex_service_descriptor_config.php | 585 +++ .../dataplex_service_rest_client_config.php | 769 ++++ .../metadata_service_client_config.json | 126 + .../metadata_service_descriptor_config.php | 231 + .../metadata_service_rest_client_config.php | 543 +++ .../BusinessGlossaryServiceClientTest.php | 1819 ++++++++ .../V1/Client/CatalogServiceClientTest.php | 4075 +++++++++++++++++ .../Unit/V1/Client/CmekServiceClientTest.php | 1024 +++++ .../V1/Client/ContentServiceClientTest.php | 399 ++ .../Client/DataProductServiceClientTest.php | 1665 +++++++ .../V1/Client/DataScanServiceClientTest.php | 1312 ++++++ .../Client/DataTaxonomyServiceClientTest.php | 2183 +++++++++ .../V1/Client/DataplexServiceClientTest.php | 3193 +++++++++++++ .../V1/Client/MetadataServiceClientTest.php | 1239 +++++ 701 files changed, 129215 insertions(+) create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Analyze.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/ApprovalWorkflow.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/BusinessGlossary.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Catalog.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Cmek.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Content.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DataDiscovery.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DataDocumentation.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DataProducts.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DataProfile.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DataQuality.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DataQualityRuleTemplate.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DataTaxonomy.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Datascans.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DatascansCommon.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Logs.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Metadata.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Processing.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Resources.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Security.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Service.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Tasks.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/Category.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/FailedSecurityPolicyApply.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/IncompatibleDataSchema.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/IncompatibleDataSchema/SchemaChange.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/InvalidDataFormat.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/InvalidDataOrganization.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/InvalidDataPartition.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/InvalidDataPartition/PartitionStructure.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/MissingData.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/MissingResource.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/UnauthorizedResource.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Aspect.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectSource.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType/Authorization.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType/DataClassification.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType/MetadataTemplate.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType/MetadataTemplate/Annotations.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType/MetadataTemplate/Constraints.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType/MetadataTemplate/EnumValue.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/DiscoverySpec.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/DiscoverySpec/CsvOptions.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/DiscoverySpec/JsonOptions.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/DiscoveryStatus.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/DiscoveryStatus/State.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/DiscoveryStatus/Stats.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/ResourceSpec.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/ResourceSpec/AccessMode.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/ResourceSpec/Type.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/ResourceStatus.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/ResourceStatus/State.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/SecurityStatus.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/SecurityStatus/State.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AssetStatus.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/BusinessGlossaryEvent.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/BusinessGlossaryEvent/EventType.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CancelDataScanJobRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CancelDataScanJobResponse.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CancelJobRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CancelMetadataJobRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ChangeRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ChangeRequest/ChangeType.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ChangeRequest/State.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Content.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Content/Notebook.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Content/Notebook/KernelType.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Content/SqlScript.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Content/SqlScript/QueryEngine.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateAspectTypeRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateAssetRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateDataAssetRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateDataAttributeBindingRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateDataAttributeRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateDataProductRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateDataScanRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateDataTaxonomyRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateEncryptionConfigRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateEntityRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateEntryGroupRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateEntryLinkRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateEntryRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateEntryTypeRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateGlossaryCategoryRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateGlossaryRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateGlossaryTermRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateLakeRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateMetadataFeedRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateMetadataJobRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreatePartitionRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateTaskRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateZoneRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataAccessSpec.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataAsset.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataAsset/AccessGroupConfig.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataAttribute.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataAttributeBinding.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataAttributeBinding/Path.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoveryResult.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoveryResult/BigQueryPublishing.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoveryResult/ScanStatistics.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoverySpec.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoverySpec/BigQueryPublishingConfig.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoverySpec/BigQueryPublishingConfig/TableType.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoverySpec/StorageConfig.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoverySpec/StorageConfig/CsvOptions.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoverySpec/StorageConfig/JsonOptions.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoverySpec/StorageConfig/UnstructuredDataOptions.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/DatasetResult.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/Field.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/Query.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/Schema.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/SchemaRelationship.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/SchemaRelationship/SchemaPaths.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/SchemaRelationship/Source.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/SchemaRelationship/Type.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/TableResult.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationSpec.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationSpec/GenerationScope.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProduct.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProduct/AccessApprovalConfig.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProduct/AccessGroup.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProduct/Principal.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProductAccessRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/PostScanActionsResult.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/PostScanActionsResult/BigQueryExportResult.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/PostScanActionsResult/BigQueryExportResult/State.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile/Field.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile/Field/ProfileInfo.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile/Field/ProfileInfo/DoubleFieldInfo.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile/Field/ProfileInfo/IntegerFieldInfo.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile/Field/ProfileInfo/StringFieldInfo.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile/Field/ProfileInfo/TopNValue.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileSpec.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileSpec/Mode.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileSpec/PostScanActions.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileSpec/PostScanActions/BigQueryExport.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileSpec/SelectedFields.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityColumnResult.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityDimension.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityDimensionResult.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityResult.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityResult/AnomalyDetectionGeneratedAssets.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityResult/PostScanActionsResult.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityResult/PostScanActionsResult/BigQueryExportResult.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityResult/PostScanActionsResult/BigQueryExportResult/State.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/DebugQuery.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/NonNullExpectation.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/RangeExpectation.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/RegexExpectation.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/RowConditionExpectation.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/RuleSource.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/RuleSource/RulePathElement.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/RuleSource/RulePathElement/EntryLinkSource.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/RuleSource/RulePathElement/EntrySource.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/SetExpectation.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/SqlAssertion.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/StatisticRangeExpectation.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/StatisticRangeExpectation/ColumnStatistic.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/TableConditionExpectation.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/TemplateReference.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/TemplateReference/ParameterValue.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/UniquenessExpectation.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRuleResult.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRuleResult/DebugQueryResult.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRuleResult/DebugQueryResultSet.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRuleTemplate.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRuleTemplate/ParameterDescription.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRuleTemplate/Sql.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityScanRuleResult.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityScanRuleResult/EvaluationType.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityScanRuleResult/Result.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityScanRuleResult/RuleType.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions/BigQueryExport.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions/JobEndTrigger.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions/JobFailureTrigger.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions/NotificationReport.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions/Recipients.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions/ScoreThresholdTrigger.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScan.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScan/ExecutionSpec.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScan/ExecutionStatus.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanCatalogPublishingStatus.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanCatalogPublishingStatus/State.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/DataProfileAppliedConfigs.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/DataProfileResult.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/DataQualityAppliedConfigs.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/DataQualityResult.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/PostScanActionsResult.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/PostScanActionsResult/BigQueryExportResult.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/PostScanActionsResult/BigQueryExportResult/State.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/ScanType.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/Scope.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/State.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/Trigger.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanJob.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanJob/State.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanType.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataSource.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataTaxonomy.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteAspectTypeRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteAssetRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteDataAssetRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteDataAttributeBindingRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteDataAttributeRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteDataProductRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteDataScanRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteDataTaxonomyRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteEncryptionConfigRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteEntityRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteEntryGroupRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteEntryLinkRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteEntryRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteEntryTypeRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteGlossaryCategoryRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteGlossaryRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteGlossaryTermRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteLakeRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteMetadataFeedRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeletePartitionRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteTaskRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteZoneRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/ActionDetails.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/ConfigDetails.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/EntityDetails.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/EntityType.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/EventType.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/PartitionDetails.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/TableDetails.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/TableType.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EncryptionConfig.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EncryptionConfig/EncryptionState.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EncryptionConfig/FailureDetails.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EncryptionConfig/FailureDetails/ErrorCode.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Entity.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Entity/CompatibilityStatus.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Entity/CompatibilityStatus/Compatibility.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Entity/Type.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Entry.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryGroup.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryLink.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryLink/EntryReference.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryLink/EntryReference/Type.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryLinkEvent.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryLinkEvent/EventType.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntrySource.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntrySource/Ancestor.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryType.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryType/AspectInfo.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryType/Authorization.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryView.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment/Endpoints.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment/InfrastructureSpec.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment/InfrastructureSpec/ComputeResources.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment/InfrastructureSpec/OsImageRuntime.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment/SessionSpec.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment/SessionStatus.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ExecutionIdentity.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ExecutionIdentity/DataplexServiceAgent.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ExecutionIdentity/ServiceAccount.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ExecutionIdentity/UserCredential.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GenerateDataQualityRulesRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GenerateDataQualityRulesResponse.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetAspectTypeRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetAssetRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataAssetRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataAttributeBindingRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataAttributeRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataProductRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataScanJobRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataScanJobRequest/DataScanJobView.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataScanRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataScanRequest/DataScanView.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataTaxonomyRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEncryptionConfigRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEntityRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEntityRequest/EntityView.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEntryGroupRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEntryLinkRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEntryRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEntryTypeRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetGlossaryCategoryRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetGlossaryRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetGlossaryTermRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetJobRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetLakeRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetMetadataFeedRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetMetadataJobRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetPartitionRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetTaskRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetZoneRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Glossary.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GlossaryCategory.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GlossaryTerm.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GovernanceEvent.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GovernanceEvent/Entity.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GovernanceEvent/Entity/EntityType.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GovernanceEvent/EventType.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ImportItem.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Job.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Job/Service.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Job/State.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Job/Trigger.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/JobEvent.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/JobEvent/ExecutionTrigger.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/JobEvent/Service.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/JobEvent/State.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/JobEvent/Type.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Lake.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Lake/Metastore.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Lake/MetastoreStatus.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Lake/MetastoreStatus/State.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListActionsResponse.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListAspectTypesRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListAspectTypesResponse.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListAssetActionsRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListAssetsRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListAssetsResponse.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataAssetsRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataAssetsResponse.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataAttributeBindingsRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataAttributeBindingsResponse.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataAttributesRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataAttributesResponse.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataProductsRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataProductsResponse.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataScanJobsRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataScanJobsResponse.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataScansRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataScansResponse.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataTaxonomiesRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataTaxonomiesResponse.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEncryptionConfigsRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEncryptionConfigsResponse.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntitiesRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntitiesRequest/EntityView.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntitiesResponse.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntriesRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntriesResponse.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntryGroupsRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntryGroupsResponse.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntryTypesRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntryTypesResponse.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListGlossariesRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListGlossariesResponse.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListGlossaryCategoriesRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListGlossaryCategoriesResponse.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListGlossaryTermsRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListGlossaryTermsResponse.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListJobsRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListJobsResponse.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListLakeActionsRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListLakesRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListLakesResponse.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListMetadataFeedsRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListMetadataFeedsResponse.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListMetadataJobsRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListMetadataJobsResponse.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListPartitionsRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListPartitionsResponse.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListTasksRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListTasksResponse.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListZoneActionsRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListZonesRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListZonesResponse.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/LookupContextRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/LookupContextResponse.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/LookupEntryLinksRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/LookupEntryLinksRequest/EntryMode.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/LookupEntryLinksResponse.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/LookupEntryRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataFeed.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataFeed/Filters.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataFeed/Filters/ChangeType.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataFeed/Scope.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ExportJobResult.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ExportJobSpec.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ExportJobSpec/ExportJobScope.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ImportJobResult.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ImportJobSpec.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ImportJobSpec/ImportJobScope.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ImportJobSpec/LogLevel.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ImportJobSpec/SyncMode.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/Status.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/Status/State.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/Type.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ModifyEntryRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/OperationMetadata.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Partition.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/RequestDataProductAccessRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/RequestDataProductAccessResponse.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ResourceAccessSpec.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/RunDataScanRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/RunDataScanResponse.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/RunTaskRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/RunTaskResponse.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ScannedData.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ScannedData/IncrementalField.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Schema.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Schema/Mode.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Schema/PartitionField.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Schema/PartitionStyle.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Schema/SchemaField.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Schema/Type.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SearchEntriesRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SearchEntriesResponse.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SearchEntriesResult.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SearchEntriesResult/Snippets.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Session.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SessionEvent.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SessionEvent/EventType.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SessionEvent/QueryDetail.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SessionEvent/QueryDetail/Engine.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/State.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageAccess.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageAccess/AccessMode.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageFormat.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageFormat/CompressionFormat.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageFormat/CsvOptions.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageFormat/Format.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageFormat/IcebergOptions.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageFormat/JsonOptions.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageSystem.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/ExecutionSpec.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/ExecutionStatus.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/InfrastructureSpec.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/InfrastructureSpec/BatchComputeResources.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/InfrastructureSpec/ContainerImageRuntime.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/InfrastructureSpec/VpcNetwork.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/NotebookTaskConfig.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/SparkTaskConfig.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/TriggerSpec.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/TriggerSpec/Type.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/TransferStatus.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Trigger.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Trigger/OnDemand.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Trigger/OneTime.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Trigger/Schedule.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateAspectTypeRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateAssetRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateDataAssetRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateDataAttributeBindingRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateDataAttributeRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateDataProductRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateDataScanRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateDataTaxonomyRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateEncryptionConfigRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateEntityRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateEntryGroupRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateEntryLinkRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateEntryRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateEntryTypeRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateGlossaryCategoryRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateGlossaryRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateGlossaryTermRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateLakeRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateMetadataFeedRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateTaskRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateZoneRequest.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone/DiscoverySpec.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone/DiscoverySpec/CsvOptions.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone/DiscoverySpec/JsonOptions.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone/ResourceSpec.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone/ResourceSpec/LocationType.php create mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone/Type.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/create_glossary.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/create_glossary_category.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/create_glossary_term.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/delete_glossary.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/delete_glossary_category.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/delete_glossary_term.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/get_glossary.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/get_glossary_category.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/get_glossary_term.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/get_iam_policy.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/get_location.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/list_glossaries.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/list_glossary_categories.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/list_glossary_terms.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/list_locations.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/set_iam_policy.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/test_iam_permissions.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/update_glossary.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/update_glossary_category.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/update_glossary_term.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/cancel_metadata_job.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_aspect_type.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_entry.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_entry_group.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_entry_link.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_entry_type.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_metadata_feed.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_metadata_job.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/delete_aspect_type.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/delete_entry.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/delete_entry_group.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/delete_entry_link.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/delete_entry_type.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/delete_metadata_feed.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_aspect_type.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_entry.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_entry_group.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_entry_link.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_entry_type.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_iam_policy.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_location.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_metadata_feed.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_metadata_job.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/list_aspect_types.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/list_entries.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/list_entry_groups.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/list_entry_types.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/list_locations.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/list_metadata_feeds.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/list_metadata_jobs.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/lookup_context.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/lookup_entry.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/lookup_entry_links.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/modify_entry.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/search_entries.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/set_iam_policy.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/test_iam_permissions.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/update_aspect_type.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/update_entry.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/update_entry_group.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/update_entry_link.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/update_entry_type.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/update_metadata_feed.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/create_encryption_config.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/delete_encryption_config.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/get_encryption_config.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/get_iam_policy.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/get_location.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/list_encryption_configs.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/list_locations.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/set_iam_policy.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/test_iam_permissions.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/update_encryption_config.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/ContentServiceClient/get_iam_policy.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/ContentServiceClient/get_location.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/ContentServiceClient/list_locations.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/ContentServiceClient/set_iam_policy.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/ContentServiceClient/test_iam_permissions.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/create_data_asset.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/create_data_product.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/delete_data_asset.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/delete_data_product.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/get_data_asset.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/get_data_product.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/get_iam_policy.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/get_location.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/list_data_assets.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/list_data_products.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/list_locations.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/request_data_product_access.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/set_iam_policy.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/test_iam_permissions.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/update_data_asset.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/update_data_product.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/cancel_data_scan_job.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/create_data_scan.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/delete_data_scan.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/generate_data_quality_rules.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/get_data_scan.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/get_data_scan_job.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/get_iam_policy.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/get_location.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/list_data_scan_jobs.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/list_data_scans.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/list_locations.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/run_data_scan.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/set_iam_policy.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/test_iam_permissions.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/update_data_scan.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/create_data_attribute.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/create_data_attribute_binding.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/create_data_taxonomy.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/delete_data_attribute.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/delete_data_attribute_binding.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/delete_data_taxonomy.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/get_data_attribute.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/get_data_attribute_binding.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/get_data_taxonomy.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/get_iam_policy.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/get_location.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/list_data_attribute_bindings.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/list_data_attributes.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/list_data_taxonomies.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/list_locations.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/set_iam_policy.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/test_iam_permissions.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/update_data_attribute.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/update_data_attribute_binding.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/update_data_taxonomy.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/cancel_job.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/create_asset.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/create_lake.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/create_task.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/create_zone.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/delete_asset.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/delete_lake.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/delete_task.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/delete_zone.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_asset.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_iam_policy.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_job.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_lake.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_location.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_task.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_zone.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_asset_actions.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_assets.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_jobs.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_lake_actions.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_lakes.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_locations.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_tasks.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_zone_actions.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_zones.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/run_task.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/set_iam_policy.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/test_iam_permissions.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/update_asset.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/update_lake.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/update_task.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/update_zone.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/create_entity.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/create_partition.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/delete_entity.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/delete_partition.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/get_entity.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/get_iam_policy.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/get_location.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/get_partition.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/list_entities.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/list_locations.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/list_partitions.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/set_iam_policy.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/test_iam_permissions.php create mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/update_entity.php create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/Client/BusinessGlossaryServiceClient.php create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/Client/CatalogServiceClient.php create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/Client/CmekServiceClient.php create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/Client/ContentServiceClient.php create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/Client/DataProductServiceClient.php create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/Client/DataScanServiceClient.php create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/Client/DataTaxonomyServiceClient.php create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/Client/DataplexServiceClient.php create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/Client/MetadataServiceClient.php create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/gapic_metadata.json create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/business_glossary_service_client_config.json create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/business_glossary_service_descriptor_config.php create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/business_glossary_service_rest_client_config.php create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/catalog_service_client_config.json create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/catalog_service_descriptor_config.php create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/catalog_service_rest_client_config.php create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/cmek_service_client_config.json create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/cmek_service_descriptor_config.php create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/cmek_service_rest_client_config.php create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/content_service_client_config.json create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/content_service_descriptor_config.php create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/content_service_rest_client_config.php create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/data_product_service_client_config.json create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/data_product_service_descriptor_config.php create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/data_product_service_rest_client_config.php create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/data_scan_service_client_config.json create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/data_scan_service_descriptor_config.php create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/data_scan_service_rest_client_config.php create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/data_taxonomy_service_client_config.json create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/data_taxonomy_service_descriptor_config.php create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/data_taxonomy_service_rest_client_config.php create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/dataplex_service_client_config.json create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/dataplex_service_descriptor_config.php create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/dataplex_service_rest_client_config.php create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/metadata_service_client_config.json create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/metadata_service_descriptor_config.php create mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/metadata_service_rest_client_config.php create mode 100644 owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/BusinessGlossaryServiceClientTest.php create mode 100644 owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/CatalogServiceClientTest.php create mode 100644 owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/CmekServiceClientTest.php create mode 100644 owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/ContentServiceClientTest.php create mode 100644 owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/DataProductServiceClientTest.php create mode 100644 owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/DataScanServiceClientTest.php create mode 100644 owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/DataTaxonomyServiceClientTest.php create mode 100644 owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/DataplexServiceClientTest.php create mode 100644 owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/MetadataServiceClientTest.php diff --git a/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Analyze.php b/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Analyze.php new file mode 100644 index 000000000000..369f37c7a9c6 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Analyze.php @@ -0,0 +1,29 @@ +internalAddGeneratedFile( + "\x0A\xCF\x19\x0A&google/cloud/dataplex/v1/analyze.proto\x12\x18google.cloud.dataplex.v1\x1A\x19google/api/resource.proto\x1A(google/cloud/dataplex/v1/resources.proto\x1A\x1Egoogle/protobuf/duration.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\x99\x0D\x0A\x0BEnvironment\x129\x0A\x04name\x18\x01 \x01(\x09B+\xE0A\x03\xFAA%\x0A#dataplex.googleapis.com/Environment\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x10\x0A\x03uid\x18\x03 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12F\x0A\x06labels\x18\x06 \x03(\x0B21.google.cloud.dataplex.v1.Environment.LabelsEntryB\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x07 \x01(\x09B\x03\xE0A\x01\x123\x0A\x05state\x18\x08 \x01(\x0E2\x1F.google.cloud.dataplex.v1.StateB\x03\xE0A\x03\x12Z\x0A\x13infrastructure_spec\x18d \x01(\x0B28.google.cloud.dataplex.v1.Environment.InfrastructureSpecB\x03\xE0A\x02\x12L\x0A\x0Csession_spec\x18e \x01(\x0B21.google.cloud.dataplex.v1.Environment.SessionSpecB\x03\xE0A\x01\x12P\x0A\x0Esession_status\x18f \x01(\x0B23.google.cloud.dataplex.v1.Environment.SessionStatusB\x03\xE0A\x03\x12H\x0A\x09endpoints\x18\xC8\x01 \x01(\x0B2/.google.cloud.dataplex.v1.Environment.EndpointsB\x03\xE0A\x03\x1A\xE5\x04\x0A\x12InfrastructureSpec\x12a\x0A\x07compute\x182 \x01(\x0B2I.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResourcesB\x03\xE0A\x01H\x00\x12`\x0A\x08os_image\x18d \x01(\x0B2G.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntimeB\x03\xE0A\x02H\x01\x1Ac\x0A\x10ComputeResources\x12\x19\x0A\x0Cdisk_size_gb\x18\x01 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Anode_count\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x1B\x0A\x0Emax_node_count\x18\x03 \x01(\x05B\x03\xE0A\x01\x1A\x8C\x02\x0A\x0EOsImageRuntime\x12\x1A\x0A\x0Dimage_version\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x1B\x0A\x0Ejava_libraries\x18\x02 \x03(\x09B\x03\xE0A\x01\x12\x1C\x0A\x0Fpython_packages\x18\x03 \x03(\x09B\x03\xE0A\x01\x12p\x0A\x0Aproperties\x18\x04 \x03(\x0B2W.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime.PropertiesEntryB\x03\xE0A\x01\x1A1\x0A\x0FPropertiesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01B\x0B\x0A\x09resourcesB\x09\x0A\x07runtime\x1Aj\x0A\x0BSessionSpec\x129\x0A\x11max_idle_duration\x18\x01 \x01(\x0B2\x19.google.protobuf.DurationB\x03\xE0A\x01\x12 \x0A\x13enable_fast_startup\x18\x02 \x01(\x08B\x03\xE0A\x01\x1A\$\x0A\x0DSessionStatus\x12\x13\x0A\x06active\x18\x01 \x01(\x08B\x03\xE0A\x03\x1A5\x0A\x09Endpoints\x12\x16\x0A\x09notebooks\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x10\x0A\x03sql\x18\x02 \x01(\x09B\x03\xE0A\x03\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:y\xEAAv\x0A#dataplex.googleapis.com/Environment\x12Oprojects/{project}/locations/{location}/lakes/{lake}/environments/{environment}\"\xA6\x07\x0A\x07Content\x125\x0A\x04name\x18\x01 \x01(\x09B'\xE0A\x03\xFAA!\x0A\x1Fdataplex.googleapis.com/Content\x12\x10\x0A\x03uid\x18\x02 \x01(\x09B\x03\xE0A\x03\x12\x11\x0A\x04path\x18\x03 \x01(\x09B\x03\xE0A\x02\x124\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12B\x0A\x06labels\x18\x06 \x03(\x0B2-.google.cloud.dataplex.v1.Content.LabelsEntryB\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x07 \x01(\x09B\x03\xE0A\x01\x12\x18\x0A\x09data_text\x18\x09 \x01(\x09B\x03\xE0A\x02H\x00\x12A\x0A\x0Asql_script\x18d \x01(\x0B2+.google.cloud.dataplex.v1.Content.SqlScriptH\x01\x12>\x0A\x08notebook\x18e \x01(\x0B2*.google.cloud.dataplex.v1.Content.NotebookH\x01\x1A\x91\x01\x0A\x09SqlScript\x12L\x0A\x06engine\x18\x01 \x01(\x0E27.google.cloud.dataplex.v1.Content.SqlScript.QueryEngineB\x03\xE0A\x02\"6\x0A\x0BQueryEngine\x12\x1C\x0A\x18QUERY_ENGINE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05SPARK\x10\x02\x1A\x93\x01\x0A\x08Notebook\x12O\x0A\x0Bkernel_type\x18\x01 \x01(\x0E25.google.cloud.dataplex.v1.Content.Notebook.KernelTypeB\x03\xE0A\x02\"6\x0A\x0AKernelType\x12\x1B\x0A\x17KERNEL_TYPE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07PYTHON3\x10\x01\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:l\xEAAi\x0A\x1Fdataplex.googleapis.com/Content\x12Fprojects/{project}/locations/{location}/lakes/{lake}/content/{content}B\x06\x0A\x04dataB\x09\x0A\x07content\"\xCD\x02\x0A\x07Session\x125\x0A\x04name\x18\x01 \x01(\x09B'\xE0A\x03\xFAA!\x0A\x1Fdataplex.googleapis.com/Session\x12\x14\x0A\x07user_id\x18\x02 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x123\x0A\x05state\x18\x04 \x01(\x0E2\x1F.google.cloud.dataplex.v1.StateB\x03\xE0A\x03:\x89\x01\xEAA\x85\x01\x0A\x1Fdataplex.googleapis.com/Session\x12bprojects/{project}/locations/{location}/lakes/{lake}/environments/{environment}/sessions/{session}Bh\x0A\x1Ccom.google.cloud.dataplex.v1B\x0CAnalyzeProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/ApprovalWorkflow.php b/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/ApprovalWorkflow.php new file mode 100644 index 000000000000..57fdbb674317 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/ApprovalWorkflow.php @@ -0,0 +1,32 @@ +internalAddGeneratedFile( + "\x0A\x99\x19\x0A0google/cloud/dataplex/v1/approval_workflow.proto\x12\x18google.cloud.dataplex.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x1Bgoogle/api/field_info.proto\x1A\x19google/api/resource.proto\x1A0google/cloud/dataplex/v1/business_glossary.proto\x1A&google/cloud/dataplex/v1/catalog.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xAE\x13\x0A\x0DChangeRequest\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x18\x0A\x03uid\x18\x02 \x01(\x09B\x0B\xE0A\x03\xE2\x8C\xCF\xD7\x08\x02\x08\x01\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x1A\x0A\x0Djustification\x18\x05 \x01(\x09B\x03\xE0A\x01\x12H\x0A\x06labels\x18\x06 \x03(\x0B23.google.cloud.dataplex.v1.ChangeRequest.LabelsEntryB\x03\xE0A\x01\x12\x13\x0A\x06author\x18\x07 \x01(\x09B\x03\xE0A\x03\x12A\x0A\x05state\x18\x08 \x01(\x0E2-.google.cloud.dataplex.v1.ChangeRequest.StateB\x03\xE0A\x03\x12\x1B\x0A\x08resource\x18\x09 \x01(\x09B\x09\xE0A\x03\xFAA\x03\x0A\x01*\x12D\x0A\x0Ccreate_entry\x18\x0A \x01(\x0B2,.google.cloud.dataplex.v1.CreateEntryRequestH\x00\x12D\x0A\x0Cupdate_entry\x18\x0B \x01(\x0B2,.google.cloud.dataplex.v1.UpdateEntryRequestH\x00\x12D\x0A\x0Cdelete_entry\x18\x0C \x01(\x0B2,.google.cloud.dataplex.v1.DeleteEntryRequestH\x00\x12M\x0A\x11create_entry_link\x18\x0D \x01(\x0B20.google.cloud.dataplex.v1.CreateEntryLinkRequestH\x00\x12M\x0A\x11delete_entry_link\x18\x0E \x01(\x0B20.google.cloud.dataplex.v1.DeleteEntryLinkRequestH\x00\x12J\x0A\x0Fcreate_glossary\x18\x14 \x01(\x0B2/.google.cloud.dataplex.v1.CreateGlossaryRequestH\x00\x12J\x0A\x0Fupdate_glossary\x18\x15 \x01(\x0B2/.google.cloud.dataplex.v1.UpdateGlossaryRequestH\x00\x12J\x0A\x0Fdelete_glossary\x18\x16 \x01(\x0B2/.google.cloud.dataplex.v1.DeleteGlossaryRequestH\x00\x12[\x0A\x18create_glossary_category\x18\x17 \x01(\x0B27.google.cloud.dataplex.v1.CreateGlossaryCategoryRequestH\x00\x12[\x0A\x18update_glossary_category\x18\x18 \x01(\x0B27.google.cloud.dataplex.v1.UpdateGlossaryCategoryRequestH\x00\x12[\x0A\x18delete_glossary_category\x18\x1A \x01(\x0B27.google.cloud.dataplex.v1.DeleteGlossaryCategoryRequestH\x00\x12S\x0A\x14create_glossary_term\x18\x1B \x01(\x0B23.google.cloud.dataplex.v1.CreateGlossaryTermRequestH\x00\x12S\x0A\x14update_glossary_term\x18\x1C \x01(\x0B23.google.cloud.dataplex.v1.UpdateGlossaryTermRequestH\x00\x12S\x0A\x14delete_glossary_term\x18\x1E \x01(\x0B23.google.cloud.dataplex.v1.DeleteGlossaryTermRequestH\x00\x12Y\x0A\x1Bdata_product_access_request\x18 \x01(\x0B22.google.cloud.dataplex.v1.DataProductAccessRequestH\x00\x12L\x0A\x0Bchange_type\x18\x13 \x01(\x0E22.google.cloud.dataplex.v1.ChangeRequest.ChangeTypeB\x03\xE0A\x03\x12\x1E\x0A\x11rejection_comment\x18\x10 \x01(\x09B\x03\xE0A\x03\x12\x15\x0A\x08approver\x18\x11 \x01(\x09B\x03\xE0A\x03\x12\x11\x0A\x04etag\x18\x12 \x01(\x09B\x03\xE0A\x01\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"]\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x07\x0A\x03NEW\x10\x01\x12\x0C\x0A\x08APPROVED\x10\x02\x12\x0C\x0A\x08REJECTED\x10\x03\x12\x0B\x0A\x07EXPIRED\x10\x04\x12\x0B\x0A\x07REVOKED\x10\x05\"\x95\x03\x0A\x0AChangeType\x12\x1B\x0A\x17CHANGE_TYPE_UNSPECIFIED\x10\x00\x12\x10\x0A\x0CCREATE_ENTRY\x10\x01\x12\x10\x0A\x0CUPDATE_ENTRY\x10\x02\x12\x10\x0A\x0CDELETE_ENTRY\x10\x03\x12\x15\x0A\x11CREATE_ENTRY_LINK\x10\x04\x12\x15\x0A\x11DELETE_ENTRY_LINK\x10\x05\x12\x13\x0A\x0FCREATE_GLOSSARY\x10\x07\x12\x13\x0A\x0FUPDATE_GLOSSARY\x10\x08\x12\x13\x0A\x0FDELETE_GLOSSARY\x10\x09\x12\x1C\x0A\x18CREATE_GLOSSARY_CATEGORY\x10\x0A\x12\x1C\x0A\x18UPDATE_GLOSSARY_CATEGORY\x10\x0B\x12\x1C\x0A\x18DELETE_GLOSSARY_CATEGORY\x10\x0D\x12\x18\x0A\x14CREATE_GLOSSARY_TERM\x10\x0E\x12\x18\x0A\x14UPDATE_GLOSSARY_TERM\x10\x0F\x12\x18\x0A\x14DELETE_GLOSSARY_TERM\x10\x11\x12\x1F\x0A\x1BREQUEST_DATA_PRODUCT_ACCESS\x10!:\x93\x01\xEAA\x8F\x01\x0A%dataplex.googleapis.com/ChangeRequest\x12Gprojects/{project}/locations/{location}/changeRequests/{change_request}*\x0EchangeRequests2\x0DchangeRequestB\x10\x0A\x0Echange_payload\"\xDC\x01\x0A\x18DataProductAccessRequest\x12;\x0A\x06parent\x18\x01 \x01(\x09B+\xE0A\x02\xFAA%\x0A#dataplex.googleapis.com/DataProduct\x12\x1C\x0A\x0Faccess_group_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12&\x0A\x19access_group_display_name\x18\x04 \x01(\x09B\x03\xE0A\x03\x12%\x0A\x13requested_principal\x18\x03 \x01(\x09B\x03\xE0A\x01H\x00\x88\x01\x01B\x16\x0A\x14_requested_principalB\xC5\x01\x0A\x1Ccom.google.cloud.dataplex.v1B\x15ApprovalWorkflowProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpb\xAA\x02\x18Google.Cloud.Dataplex.V1\xCA\x02\x18Google\\Cloud\\Dataplex\\V1\xEA\x02\x1BGoogle::Cloud::Dataplex::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/BusinessGlossary.php b/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/BusinessGlossary.php new file mode 100644 index 000000000000..8233d5ce8709 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/BusinessGlossary.php @@ -0,0 +1,34 @@ +internalAddGeneratedFile( + "\x0A\xA1>\x0A0google/cloud/dataplex/v1/business_glossary.proto\x12\x18google.cloud.dataplex.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x1Bgoogle/api/field_info.proto\x1A\x19google/api/resource.proto\x1A&google/cloud/dataplex/v1/service.proto\x1A#google/longrunning/operations.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\x94\x04\x0A\x08Glossary\x12\x14\x0A\x04name\x18\x01 \x01(\x09B\x06\xE0A\x03\xE0A\x08\x12\x18\x0A\x03uid\x18\x02 \x01(\x09B\x0B\xE0A\x03\xE2\x8C\xCF\xD7\x08\x02\x08\x01\x12\x19\x0A\x0Cdisplay_name\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x04 \x01(\x09B\x03\xE0A\x01\x124\x0A\x0Bcreate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12C\x0A\x06labels\x18\x07 \x03(\x0B2..google.cloud.dataplex.v1.Glossary.LabelsEntryB\x03\xE0A\x01\x12\x17\x0A\x0Aterm_count\x18\x08 \x01(\x05B\x03\xE0A\x03\x12\x1B\x0A\x0Ecategory_count\x18\x09 \x01(\x05B\x03\xE0A\x03\x12\x11\x0A\x04etag\x18\x0A \x01(\x09B\x03\xE0A\x01\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:z\xEAAw\x0A dataplex.googleapis.com/Glossary\x12=projects/{project}/locations/{location}/glossaries/{glossary}*\x0Aglossaries2\x08glossary\"\x99\x04\x0A\x10GlossaryCategory\x12\x14\x0A\x04name\x18\x01 \x01(\x09B\x06\xE0A\x03\xE0A\x08\x12\x18\x0A\x03uid\x18\x02 \x01(\x09B\x0B\xE0A\x03\xE2\x8C\xCF\xD7\x08\x02\x08\x01\x12\x19\x0A\x0Cdisplay_name\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x04 \x01(\x09B\x03\xE0A\x01\x124\x0A\x0Bcreate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12K\x0A\x06labels\x18\x07 \x03(\x0B26.google.cloud.dataplex.v1.GlossaryCategory.LabelsEntryB\x03\xE0A\x01\x12\x13\x0A\x06parent\x18\x08 \x01(\x09B\x03\xE0A\x02\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:\xA2\x01\xEAA\x9E\x01\x0A(dataplex.googleapis.com/GlossaryCategory\x12\\projects/{project}/locations/{location}/glossaries/{glossary}/categories/{glossary_category}*\x0Acategories2\x08category\"\xA0\x04\x0A\x0CGlossaryTerm\x12\x14\x0A\x04name\x18\x01 \x01(\x09B\x06\xE0A\x03\xE0A\x08\x12\x18\x0A\x03uid\x18\x02 \x01(\x09B\x0B\xE0A\x03\xE2\x8C\xCF\xD7\x08\x02\x08\x01\x12\x19\x0A\x0Cdisplay_name\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x04 \x01(\x09B\x03\xE0A\x01\x124\x0A\x0Bcreate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12G\x0A\x06labels\x18\x07 \x03(\x0B22.google.cloud.dataplex.v1.GlossaryTerm.LabelsEntryB\x03\xE0A\x01\x128\x0A\x06parent\x18\x08 \x01(\x09B(\xE0A\x02\xFAA\"\x0A dataplex.googleapis.com/Glossary\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:\x8C\x01\xEAA\x88\x01\x0A\$dataplex.googleapis.com/GlossaryTerm\x12Sprojects/{project}/locations/{location}/glossaries/{glossary}/terms/{glossary_term}*\x05terms2\x04term\"\xC3\x01\x0A\x15CreateGlossaryRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12\x18\x0A\x0Bglossary_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x129\x0A\x08glossary\x18\x03 \x01(\x0B2\".google.cloud.dataplex.v1.GlossaryB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"\xA4\x01\x0A\x15UpdateGlossaryRequest\x129\x0A\x08glossary\x18\x01 \x01(\x0B2\".google.cloud.dataplex.v1.GlossaryB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"b\x0A\x15DeleteGlossaryRequest\x126\x0A\x04name\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A dataplex.googleapis.com/Glossary\x12\x11\x0A\x04etag\x18\x02 \x01(\x09B\x03\xE0A\x01\"L\x0A\x12GetGlossaryRequest\x126\x0A\x04name\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A dataplex.googleapis.com/Glossary\"\xAF\x01\x0A\x15ListGlossariesRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\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\"\x88\x01\x0A\x16ListGlossariesResponse\x126\x0A\x0Aglossaries\x18\x01 \x03(\x0B2\".google.cloud.dataplex.v1.Glossary\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x1D\x0A\x15unreachable_locations\x18\x03 \x03(\x09\"\xB6\x01\x0A\x1DCreateGlossaryCategoryRequest\x128\x0A\x06parent\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A dataplex.googleapis.com/Glossary\x12\x18\x0A\x0Bcategory_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12A\x0A\x08category\x18\x03 \x01(\x0B2*.google.cloud.dataplex.v1.GlossaryCategoryB\x03\xE0A\x02\"\x98\x01\x0A\x1DUpdateGlossaryCategoryRequest\x12A\x0A\x08category\x18\x01 \x01(\x0B2*.google.cloud.dataplex.v1.GlossaryCategoryB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\"_\x0A\x1DDeleteGlossaryCategoryRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(dataplex.googleapis.com/GlossaryCategory\"\\\x0A\x1AGetGlossaryCategoryRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(dataplex.googleapis.com/GlossaryCategory\"\xB6\x01\x0A\x1DListGlossaryCategoriesRequest\x128\x0A\x06parent\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A dataplex.googleapis.com/Glossary\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\x1EListGlossaryCategoriesResponse\x12>\x0A\x0Acategories\x18\x01 \x03(\x0B2*.google.cloud.dataplex.v1.GlossaryCategory\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x1D\x0A\x15unreachable_locations\x18\x03 \x03(\x09\"\xA6\x01\x0A\x19CreateGlossaryTermRequest\x128\x0A\x06parent\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A dataplex.googleapis.com/Glossary\x12\x14\x0A\x07term_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x129\x0A\x04term\x18\x03 \x01(\x0B2&.google.cloud.dataplex.v1.GlossaryTermB\x03\xE0A\x02\"\x8C\x01\x0A\x19UpdateGlossaryTermRequest\x129\x0A\x04term\x18\x01 \x01(\x0B2&.google.cloud.dataplex.v1.GlossaryTermB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\"W\x0A\x19DeleteGlossaryTermRequest\x12:\x0A\x04name\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$dataplex.googleapis.com/GlossaryTerm\"T\x0A\x16GetGlossaryTermRequest\x12:\x0A\x04name\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$dataplex.googleapis.com/GlossaryTerm\"\xB1\x01\x0A\x18ListGlossaryTermsRequest\x128\x0A\x06parent\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A dataplex.googleapis.com/Glossary\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\"\x8A\x01\x0A\x19ListGlossaryTermsResponse\x125\x0A\x05terms\x18\x01 \x03(\x0B2&.google.cloud.dataplex.v1.GlossaryTerm\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x1D\x0A\x15unreachable_locations\x18\x03 \x03(\x092\xF7\x19\x0A\x17BusinessGlossaryService\x12\xE0\x01\x0A\x0ECreateGlossary\x12/.google.cloud.dataplex.v1.CreateGlossaryRequest\x1A\x1D.google.longrunning.Operation\"~\xCAA\x1D\x0A\x08Glossary\x12\x11OperationMetadata\xDAA\x1Bparent,glossary,glossary_id\x82\xD3\xE4\x93\x02:\"./v1/{parent=projects/*/locations/*}/glossaries:\x08glossary\x12\xE3\x01\x0A\x0EUpdateGlossary\x12/.google.cloud.dataplex.v1.UpdateGlossaryRequest\x1A\x1D.google.longrunning.Operation\"\x80\x01\xCAA\x1D\x0A\x08Glossary\x12\x11OperationMetadata\xDAA\x14glossary,update_mask\x82\xD3\xE4\x93\x02C27/v1/{glossary.name=projects/*/locations/*/glossaries/*}:\x08glossary\x12\xCC\x01\x0A\x0EDeleteGlossary\x12/.google.cloud.dataplex.v1.DeleteGlossaryRequest\x1A\x1D.google.longrunning.Operation\"j\xCAA*\x0A\x15google.protobuf.Empty\x12\x11OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x020*./v1/{name=projects/*/locations/*/glossaries/*}\x12\x9E\x01\x0A\x0BGetGlossary\x12,.google.cloud.dataplex.v1.GetGlossaryRequest\x1A\".google.cloud.dataplex.v1.Glossary\"=\xDAA\x04name\x82\xD3\xE4\x93\x020\x12./v1/{name=projects/*/locations/*/glossaries/*}\x12\xB4\x01\x0A\x0EListGlossaries\x12/.google.cloud.dataplex.v1.ListGlossariesRequest\x1A0.google.cloud.dataplex.v1.ListGlossariesResponse\"?\xDAA\x06parent\x82\xD3\xE4\x93\x020\x12./v1/{parent=projects/*/locations/*}/glossaries\x12\xEA\x01\x0A\x16CreateGlossaryCategory\x127.google.cloud.dataplex.v1.CreateGlossaryCategoryRequest\x1A*.google.cloud.dataplex.v1.GlossaryCategory\"k\xDAA\x1Bparent,category,category_id\x82\xD3\xE4\x93\x02G\";/v1/{parent=projects/*/locations/*/glossaries/*}/categories:\x08category\x12\xEC\x01\x0A\x16UpdateGlossaryCategory\x127.google.cloud.dataplex.v1.UpdateGlossaryCategoryRequest\x1A*.google.cloud.dataplex.v1.GlossaryCategory\"m\xDAA\x14category,update_mask\x82\xD3\xE4\x93\x02P2D/v1/{category.name=projects/*/locations/*/glossaries/*/categories/*}:\x08category\x12\xB5\x01\x0A\x16DeleteGlossaryCategory\x127.google.cloud.dataplex.v1.DeleteGlossaryCategoryRequest\x1A\x16.google.protobuf.Empty\"J\xDAA\x04name\x82\xD3\xE4\x93\x02=*;/v1/{name=projects/*/locations/*/glossaries/*/categories/*}\x12\xC3\x01\x0A\x13GetGlossaryCategory\x124.google.cloud.dataplex.v1.GetGlossaryCategoryRequest\x1A*.google.cloud.dataplex.v1.GlossaryCategory\"J\xDAA\x04name\x82\xD3\xE4\x93\x02=\x12;/v1/{name=projects/*/locations/*/glossaries/*/categories/*}\x12\xD9\x01\x0A\x16ListGlossaryCategories\x127.google.cloud.dataplex.v1.ListGlossaryCategoriesRequest\x1A8.google.cloud.dataplex.v1.ListGlossaryCategoriesResponse\"L\xDAA\x06parent\x82\xD3\xE4\x93\x02=\x12;/v1/{parent=projects/*/locations/*/glossaries/*}/categories\x12\xCD\x01\x0A\x12CreateGlossaryTerm\x123.google.cloud.dataplex.v1.CreateGlossaryTermRequest\x1A&.google.cloud.dataplex.v1.GlossaryTerm\"Z\xDAA\x13parent,term,term_id\x82\xD3\xE4\x93\x02>\"6/v1/{parent=projects/*/locations/*/glossaries/*}/terms:\x04term\x12\xCF\x01\x0A\x12UpdateGlossaryTerm\x123.google.cloud.dataplex.v1.UpdateGlossaryTermRequest\x1A&.google.cloud.dataplex.v1.GlossaryTerm\"\\\xDAA\x10term,update_mask\x82\xD3\xE4\x93\x02C2;/v1/{term.name=projects/*/locations/*/glossaries/*/terms/*}:\x04term\x12\xA8\x01\x0A\x12DeleteGlossaryTerm\x123.google.cloud.dataplex.v1.DeleteGlossaryTermRequest\x1A\x16.google.protobuf.Empty\"E\xDAA\x04name\x82\xD3\xE4\x93\x028*6/v1/{name=projects/*/locations/*/glossaries/*/terms/*}\x12\xB2\x01\x0A\x0FGetGlossaryTerm\x120.google.cloud.dataplex.v1.GetGlossaryTermRequest\x1A&.google.cloud.dataplex.v1.GlossaryTerm\"E\xDAA\x04name\x82\xD3\xE4\x93\x028\x126/v1/{name=projects/*/locations/*/glossaries/*/terms/*}\x12\xC5\x01\x0A\x11ListGlossaryTerms\x122.google.cloud.dataplex.v1.ListGlossaryTermsRequest\x1A3.google.cloud.dataplex.v1.ListGlossaryTermsResponse\"G\xDAA\x06parent\x82\xD3\xE4\x93\x028\x126/v1/{parent=projects/*/locations/*/glossaries/*}/terms\x1A\xEB\x01\xCAA\x17dataplex.googleapis.com\xD2A\xCD\x01https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.read-only,https://www.googleapis.com/auth/dataplex.read-write,https://www.googleapis.com/auth/dataplex.readonlyBq\x0A\x1Ccom.google.cloud.dataplex.v1B\x15BusinessGlossaryProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Catalog.php b/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Catalog.php new file mode 100644 index 000000000000..f9d69ad3e373 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Catalog.php @@ -0,0 +1,35 @@ +internalAddGeneratedFile( + "\x0A\xAD\xCB\x01\x0A&google/cloud/dataplex/v1/catalog.proto\x12\x18google.cloud.dataplex.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x1Bgoogle/api/field_info.proto\x1A\x19google/api/resource.proto\x1A&google/cloud/dataplex/v1/service.proto\x1A#google/longrunning/operations.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Cgoogle/protobuf/struct.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\x83\x0F\x0A\x0AAspectType\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x03\xFAA\$\x0A\"dataplex.googleapis.com/AspectType\x12\x10\x0A\x03uid\x18\x02 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x05 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cdisplay_name\x18\x06 \x01(\x09B\x03\xE0A\x01\x12E\x0A\x06labels\x18\x07 \x03(\x0B20.google.cloud.dataplex.v1.AspectType.LabelsEntryB\x03\xE0A\x01\x12\x0C\x0A\x04etag\x18\x08 \x01(\x09\x12\\\x0A\x13data_classification\x18\x09 \x01(\x0E27.google.cloud.dataplex.v1.AspectType.DataClassificationB\x06\xE0A\x01\xE0A\x05\x12N\x0A\x0Dauthorization\x184 \x01(\x0B22.google.cloud.dataplex.v1.AspectType.AuthorizationB\x03\xE0A\x05\x12U\x0A\x11metadata_template\x185 \x01(\x0B25.google.cloud.dataplex.v1.AspectType.MetadataTemplateB\x03\xE0A\x02\x12G\x0A\x0Ftransfer_status\x18\xCA\x01 \x01(\x0E2(.google.cloud.dataplex.v1.TransferStatusB\x03\xE0A\x03\x1A6\x0A\x0DAuthorization\x12%\x0A\x18alternate_use_permission\x18\x01 \x01(\x09B\x03\xE0A\x05\x1A\xA4\x07\x0A\x10MetadataTemplate\x12\x12\x0A\x05index\x18\x01 \x01(\x05B\x03\xE0A\x01\x12\x11\x0A\x04name\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x11\x0A\x04type\x18\x05 \x01(\x09B\x03\xE0A\x02\x12Q\x0A\x0Drecord_fields\x18\x06 \x03(\x0B25.google.cloud.dataplex.v1.AspectType.MetadataTemplateB\x03\xE0A\x01\x12Y\x0A\x0Benum_values\x18\x08 \x03(\x0B2?.google.cloud.dataplex.v1.AspectType.MetadataTemplate.EnumValueB\x03\xE0A\x01\x12M\x0A\x09map_items\x18\x0A \x01(\x0B25.google.cloud.dataplex.v1.AspectType.MetadataTemplateB\x03\xE0A\x01\x12O\x0A\x0Barray_items\x18\x0B \x01(\x0B25.google.cloud.dataplex.v1.AspectType.MetadataTemplateB\x03\xE0A\x01\x12\x14\x0A\x07type_id\x18\x0C \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08type_ref\x18\x0D \x01(\x09B\x03\xE0A\x01\x12[\x0A\x0Bconstraints\x182 \x01(\x0B2A.google.cloud.dataplex.v1.AspectType.MetadataTemplate.ConstraintsB\x03\xE0A\x01\x12[\x0A\x0Bannotations\x183 \x01(\x0B2A.google.cloud.dataplex.v1.AspectType.MetadataTemplate.AnnotationsB\x03\xE0A\x01\x1AK\x0A\x09EnumValue\x12\x12\x0A\x05index\x18\x01 \x01(\x05B\x03\xE0A\x02\x12\x11\x0A\x04name\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x17\x0A\x0Adeprecated\x18\x03 \x01(\x09B\x03\xE0A\x01\x1A\$\x0A\x0BConstraints\x12\x15\x0A\x08required\x18\x01 \x01(\x08B\x03\xE0A\x01\x1A\xAD\x01\x0A\x0BAnnotations\x12\x17\x0A\x0Adeprecated\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x1A\x0A\x0Ddisplay_order\x18\x04 \x01(\x05B\x03\xE0A\x01\x12\x18\x0A\x0Bstring_type\x18\x06 \x01(\x09B\x03\xE0A\x01\x12\x1A\x0A\x0Dstring_values\x18\x07 \x03(\x09B\x03\xE0A\x01\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"P\x0A\x12DataClassification\x12#\x0A\x1FDATA_CLASSIFICATION_UNSPECIFIED\x10\x00\x12\x15\x0A\x11METADATA_AND_DATA\x10\x01:\x84\x01\xEAA\x80\x01\x0A\"dataplex.googleapis.com/AspectType\x12Aprojects/{project}/locations/{location}/aspectTypes/{aspect_type}*\x0BaspectTypes2\x0AaspectType\"\xCD\x04\x0A\x0AEntryGroup\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x03\xFAA\$\x0A\"dataplex.googleapis.com/EntryGroup\x12\x10\x0A\x03uid\x18\x02 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x05 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cdisplay_name\x18\x06 \x01(\x09B\x03\xE0A\x01\x12E\x0A\x06labels\x18\x07 \x03(\x0B20.google.cloud.dataplex.v1.EntryGroup.LabelsEntryB\x03\xE0A\x01\x12\x0C\x0A\x04etag\x18\x08 \x01(\x09\x12G\x0A\x0Ftransfer_status\x18\xCA\x01 \x01(\x0E2(.google.cloud.dataplex.v1.TransferStatusB\x03\xE0A\x03\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:\x84\x01\xEAA\x80\x01\x0A\"dataplex.googleapis.com/EntryGroup\x12Aprojects/{project}/locations/{location}/entryGroups/{entry_group}*\x0BentryGroups2\x0AentryGroup\"\xDC\x06\x0A\x09EntryType\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x03\xFAA#\x0A!dataplex.googleapis.com/EntryType\x12\x10\x0A\x03uid\x18\x02 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x05 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cdisplay_name\x18\x06 \x01(\x09B\x03\xE0A\x01\x12D\x0A\x06labels\x18\x07 \x03(\x0B2/.google.cloud.dataplex.v1.EntryType.LabelsEntryB\x03\xE0A\x01\x12\x11\x0A\x04etag\x18\x08 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Ctype_aliases\x18\x09 \x03(\x09B\x03\xE0A\x01\x12\x15\x0A\x08platform\x18\x0A \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06system\x18\x0B \x01(\x09B\x03\xE0A\x01\x12H\x0A\x10required_aspects\x182 \x03(\x0B2..google.cloud.dataplex.v1.EntryType.AspectInfo\x12M\x0A\x0Dauthorization\x183 \x01(\x0B21.google.cloud.dataplex.v1.EntryType.AuthorizationB\x03\xE0A\x05\x1AC\x0A\x0AAspectInfo\x125\x0A\x04type\x18\x01 \x01(\x09B'\xFAA\$\x0A\"dataplex.googleapis.com/AspectType\x1A6\x0A\x0DAuthorization\x12%\x0A\x18alternate_use_permission\x18\x01 \x01(\x09B\x03\xE0A\x05\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:~\xEAA{\x0A!dataplex.googleapis.com/EntryType\x12?projects/{project}/locations/{location}/entryTypes/{entry_type}*\x0AentryTypes2\x09entryType\"\x91\x02\x0A\x06Aspect\x12\x18\x0A\x0Baspect_type\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12*\x0A\x04data\x18\x08 \x01(\x0B2\x17.google.protobuf.StructB\x03\xE0A\x02\x12B\x0A\x0Daspect_source\x18\x09 \x01(\x0B2&.google.cloud.dataplex.v1.AspectSourceB\x03\xE0A\x01\"\x86\x01\x0A\x0CAspectSource\x12/\x0A\x0Bcreate_time\x18\x0A \x01(\x0B2\x1A.google.protobuf.Timestamp\x12/\x0A\x0Bupdate_time\x18\x0B \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x14\x0A\x0Cdata_version\x18\x0C \x01(\x09\"\xC4\x04\x0A\x05Entry\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x1A\x0A\x0Aentry_type\x18\x04 \x01(\x09B\x06\xE0A\x02\xE0A\x05\x124\x0A\x0Bcreate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12B\x0A\x07aspects\x18\x09 \x03(\x0B2,.google.cloud.dataplex.v1.Entry.AspectsEntryB\x03\xE0A\x01\x12\x1C\x0A\x0Cparent_entry\x18\x0A \x01(\x09B\x06\xE0A\x01\xE0A\x05\x12!\x0A\x14fully_qualified_name\x18\x0C \x01(\x09B\x03\xE0A\x01\x12@\x0A\x0Centry_source\x18\x0F \x01(\x0B2%.google.cloud.dataplex.v1.EntrySourceB\x03\xE0A\x01\x1AP\x0A\x0CAspectsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12/\x0A\x05value\x18\x02 \x01(\x0B2 .google.cloud.dataplex.v1.Aspect:\x028\x01:\x86\x01\xEAA\x82\x01\x0A\x1Ddataplex.googleapis.com/Entry\x12Qprojects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}*\x07entries2\x05entry\"\xD1\x03\x0A\x0BEntrySource\x12\x10\x0A\x08resource\x18\x01 \x01(\x09\x12\x0E\x0A\x06system\x18\x02 \x01(\x09\x12\x10\x0A\x08platform\x18\x03 \x01(\x09\x12\x14\x0A\x0Cdisplay_name\x18\x05 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x06 \x01(\x09\x12A\x0A\x06labels\x18\x07 \x03(\x0B21.google.cloud.dataplex.v1.EntrySource.LabelsEntry\x12F\x0A\x09ancestors\x18\x09 \x03(\x0B2..google.cloud.dataplex.v1.EntrySource.AncestorB\x03\xE0A\x05\x12/\x0A\x0Bcreate_time\x18\x0A \x01(\x0B2\x1A.google.protobuf.Timestamp\x12/\x0A\x0Bupdate_time\x18\x0B \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x15\x0A\x08location\x18\x0C \x01(\x09B\x03\xE0A\x03\x1A0\x0A\x08Ancestor\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04type\x18\x02 \x01(\x09B\x03\xE0A\x01\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"\xCD\x01\x0A\x17CreateEntryGroupRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12\x1B\x0A\x0Eentry_group_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12>\x0A\x0Bentry_group\x18\x03 \x01(\x0B2\$.google.cloud.dataplex.v1.EntryGroupB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"\xAB\x01\x0A\x17UpdateEntryGroupRequest\x12>\x0A\x0Bentry_group\x18\x01 \x01(\x0B2\$.google.cloud.dataplex.v1.EntryGroupB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"f\x0A\x17DeleteEntryGroupRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataplex.googleapis.com/EntryGroup\x12\x11\x0A\x04etag\x18\x02 \x01(\x09B\x03\xE0A\x01\"\xB0\x01\x0A\x16ListEntryGroupsRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\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\"\x8D\x01\x0A\x17ListEntryGroupsResponse\x12:\x0A\x0Centry_groups\x18\x01 \x03(\x0B2\$.google.cloud.dataplex.v1.EntryGroup\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x1D\x0A\x15unreachable_locations\x18\x03 \x03(\x09\"P\x0A\x14GetEntryGroupRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataplex.googleapis.com/EntryGroup\"\xC9\x01\x0A\x16CreateEntryTypeRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12\x1A\x0A\x0Dentry_type_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12<\x0A\x0Aentry_type\x18\x03 \x01(\x0B2#.google.cloud.dataplex.v1.EntryTypeB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"\xA8\x01\x0A\x16UpdateEntryTypeRequest\x12<\x0A\x0Aentry_type\x18\x01 \x01(\x0B2#.google.cloud.dataplex.v1.EntryTypeB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"d\x0A\x16DeleteEntryTypeRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataplex.googleapis.com/EntryType\x12\x11\x0A\x04etag\x18\x02 \x01(\x09B\x03\xE0A\x01\"\xAF\x01\x0A\x15ListEntryTypesRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\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\"\x8A\x01\x0A\x16ListEntryTypesResponse\x128\x0A\x0Bentry_types\x18\x01 \x03(\x0B2#.google.cloud.dataplex.v1.EntryType\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x1D\x0A\x15unreachable_locations\x18\x03 \x03(\x09\"N\x0A\x13GetEntryTypeRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataplex.googleapis.com/EntryType\"\xCD\x01\x0A\x17CreateAspectTypeRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12\x1B\x0A\x0Easpect_type_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12>\x0A\x0Baspect_type\x18\x03 \x01(\x0B2\$.google.cloud.dataplex.v1.AspectTypeB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"\xAB\x01\x0A\x17UpdateAspectTypeRequest\x12>\x0A\x0Baspect_type\x18\x01 \x01(\x0B2\$.google.cloud.dataplex.v1.AspectTypeB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"f\x0A\x17DeleteAspectTypeRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataplex.googleapis.com/AspectType\x12\x11\x0A\x04etag\x18\x02 \x01(\x09B\x03\xE0A\x01\"\xB0\x01\x0A\x16ListAspectTypesRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\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\"\x8D\x01\x0A\x17ListAspectTypesResponse\x12:\x0A\x0Caspect_types\x18\x01 \x03(\x0B2\$.google.cloud.dataplex.v1.AspectType\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x1D\x0A\x15unreachable_locations\x18\x03 \x03(\x09\"P\x0A\x14GetAspectTypeRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataplex.googleapis.com/AspectType\"\x9C\x01\x0A\x12CreateEntryRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataplex.googleapis.com/EntryGroup\x12\x15\x0A\x08entry_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x123\x0A\x05entry\x18\x03 \x01(\x0B2\x1F.google.cloud.dataplex.v1.EntryB\x03\xE0A\x02\"\xDA\x01\x0A\x12UpdateEntryRequest\x123\x0A\x05entry\x18\x01 \x01(\x0B2\x1F.google.cloud.dataplex.v1.EntryB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12\x1A\x0A\x0Dallow_missing\x18\x03 \x01(\x08B\x03\xE0A\x01\x12#\x0A\x16delete_missing_aspects\x18\x04 \x01(\x08B\x03\xE0A\x01\x12\x18\x0A\x0Baspect_keys\x18\x05 \x03(\x09B\x03\xE0A\x01\"I\x0A\x12DeleteEntryRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddataplex.googleapis.com/Entry\"\x96\x01\x0A\x12ListEntriesRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataplex.googleapis.com/EntryGroup\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\"`\x0A\x13ListEntriesResponse\x120\x0A\x07entries\x18\x01 \x03(\x0B2\x1F.google.cloud.dataplex.v1.Entry\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xAD\x01\x0A\x0FGetEntryRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddataplex.googleapis.com/Entry\x126\x0A\x04view\x18\x02 \x01(\x0E2#.google.cloud.dataplex.v1.EntryViewB\x03\xE0A\x01\x12\x19\x0A\x0Caspect_types\x18\x03 \x03(\x09B\x03\xE0A\x01\x12\x12\x0A\x05paths\x18\x04 \x03(\x09B\x03\xE0A\x01\"\xC4\x01\x0A\x12LookupEntryRequest\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x126\x0A\x04view\x18\x02 \x01(\x0E2#.google.cloud.dataplex.v1.EntryViewB\x03\xE0A\x01\x12\x19\x0A\x0Caspect_types\x18\x03 \x03(\x09B\x03\xE0A\x01\x12\x12\x0A\x05paths\x18\x04 \x03(\x09B\x03\xE0A\x01\x124\x0A\x05entry\x18\x05 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddataplex.googleapis.com/Entry\"\xFC\x01\x0A\x14LookupContextRequest\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x128\x0A\x09resources\x18\x02 \x03(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddataplex.googleapis.com/Entry\x12\x14\x0A\x07context\x18\x03 \x01(\x09B\x03\xE0A\x01\x12Q\x0A\x07options\x18\x04 \x03(\x0B2;.google.cloud.dataplex.v1.LookupContextRequest.OptionsEntryB\x03\xE0A\x01\x1A.\x0A\x0COptionsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"\xD1\x01\x0A\x12ModifyEntryRequest\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x123\x0A\x05entry\x18\x02 \x01(\x0B2\x1F.google.cloud.dataplex.v1.EntryB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x03 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12#\x0A\x16delete_missing_aspects\x18\x04 \x01(\x08B\x03\xE0A\x01\x12\x18\x0A\x0Baspect_keys\x18\x05 \x03(\x09B\x03\xE0A\x01\"(\x0A\x15LookupContextResponse\x12\x0F\x0A\x07context\x18\x01 \x01(\x09\"\xDD\x01\x0A\x14SearchEntriesRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12\x12\x0A\x05query\x18\x02 \x01(\x09B\x03\xE0A\x02\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\x15\x0A\x08order_by\x18\x05 \x01(\x09B\x03\xE0A\x01\x12\x12\x0A\x05scope\x18\x07 \x01(\x09B\x03\xE0A\x01\x12\x1C\x0A\x0Fsemantic_search\x18\x0B \x01(\x08B\x03\xE0A\x01\"\x86\x02\x0A\x13SearchEntriesResult\x12\x1B\x0A\x0Flinked_resource\x18\x08 \x01(\x09B\x02\x18\x01\x127\x0A\x0Edataplex_entry\x18\x09 \x01(\x0B2\x1F.google.cloud.dataplex.v1.Entry\x12L\x0A\x08snippets\x18\x0C \x01(\x0B26.google.cloud.dataplex.v1.SearchEntriesResult.SnippetsB\x02\x18\x01\x1AK\x0A\x08Snippets\x12;\x0A\x0Edataplex_entry\x18\x01 \x01(\x0B2\x1F.google.cloud.dataplex.v1.EntryB\x02\x18\x01:\x02\x18\x01\"\x99\x01\x0A\x15SearchEntriesResponse\x12>\x0A\x07results\x18\x01 \x03(\x0B2-.google.cloud.dataplex.v1.SearchEntriesResult\x12\x12\x0A\x0Atotal_size\x18\x02 \x01(\x05\x12\x17\x0A\x0Fnext_page_token\x18\x03 \x01(\x09\x12\x13\x0A\x0Bunreachable\x18\x04 \x03(\x09\"\xBB\x01\x0A\x0AImportItem\x12.\x0A\x05entry\x18\x01 \x01(\x0B2\x1F.google.cloud.dataplex.v1.Entry\x127\x0A\x0Aentry_link\x18\x04 \x01(\x0B2#.google.cloud.dataplex.v1.EntryLink\x12/\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMask\x12\x13\x0A\x0Baspect_keys\x18\x03 \x03(\x09\"\xD1\x01\x0A\x18CreateMetadataJobRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12@\x0A\x0Cmetadata_job\x18\x02 \x01(\x0B2%.google.cloud.dataplex.v1.MetadataJobB\x03\xE0A\x02\x12\x1C\x0A\x0Fmetadata_job_id\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"R\x0A\x15GetMetadataJobRequest\x129\x0A\x04name\x18\x01 \x01(\x09B+\xE0A\x02\xFAA%\x0A#dataplex.googleapis.com/MetadataJob\"\xB1\x01\x0A\x17ListMetadataJobsRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\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\"\x90\x01\x0A\x18ListMetadataJobsResponse\x12<\x0A\x0Dmetadata_jobs\x18\x01 \x03(\x0B2%.google.cloud.dataplex.v1.MetadataJob\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x1D\x0A\x15unreachable_locations\x18\x03 \x03(\x09\"U\x0A\x18CancelMetadataJobRequest\x129\x0A\x04name\x18\x01 \x01(\x09B+\xE0A\x02\xFAA%\x0A#dataplex.googleapis.com/MetadataJob\"\xEE\x17\x0A\x0BMetadataJob\x12\x14\x0A\x04name\x18\x01 \x01(\x09B\x06\xE0A\x03\xE0A\x08\x12\x18\x0A\x03uid\x18\x02 \x01(\x09B\x0B\xE0A\x03\xE2\x8C\xCF\xD7\x08\x02\x08\x01\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12F\x0A\x06labels\x18\x05 \x03(\x0B21.google.cloud.dataplex.v1.MetadataJob.LabelsEntryB\x03\xE0A\x01\x12=\x0A\x04type\x18\x06 \x01(\x0E2*.google.cloud.dataplex.v1.MetadataJob.TypeB\x03\xE0A\x02\x12J\x0A\x0Bimport_spec\x18d \x01(\x0B23.google.cloud.dataplex.v1.MetadataJob.ImportJobSpecH\x00\x12J\x0A\x0Bexport_spec\x18e \x01(\x0B23.google.cloud.dataplex.v1.MetadataJob.ExportJobSpecH\x00\x12T\x0A\x0Dimport_result\x18\xC8\x01 \x01(\x0B25.google.cloud.dataplex.v1.MetadataJob.ImportJobResultB\x03\xE0A\x03H\x01\x12T\x0A\x0Dexport_result\x18\xC9\x01 \x01(\x0B25.google.cloud.dataplex.v1.MetadataJob.ExportJobResultB\x03\xE0A\x03H\x01\x12A\x0A\x06status\x18\x07 \x01(\x0B2,.google.cloud.dataplex.v1.MetadataJob.StatusB\x03\xE0A\x03\x1A\xC9\x02\x0A\x0FImportJobResult\x12\x1C\x0A\x0Fdeleted_entries\x18\x01 \x01(\x03B\x03\xE0A\x03\x12\x1C\x0A\x0Fupdated_entries\x18\x02 \x01(\x03B\x03\xE0A\x03\x12\x1C\x0A\x0Fcreated_entries\x18\x03 \x01(\x03B\x03\xE0A\x03\x12\x1E\x0A\x11unchanged_entries\x18\x04 \x01(\x03B\x03\xE0A\x03\x12\x1E\x0A\x11recreated_entries\x18\x06 \x01(\x03B\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12 \x0A\x13deleted_entry_links\x18\x07 \x01(\x03B\x03\xE0A\x03\x12 \x0A\x13created_entry_links\x18\x08 \x01(\x03B\x03\xE0A\x03\x12\"\x0A\x15unchanged_entry_links\x18\x09 \x01(\x03B\x03\xE0A\x03\x1AL\x0A\x0FExportJobResult\x12\x1D\x0A\x10exported_entries\x18\x01 \x01(\x03B\x03\xE0A\x03\x12\x1A\x0A\x0Derror_message\x18\x02 \x01(\x09B\x03\xE0A\x03\x1A\xB6\x07\x0A\x0DImportJobSpec\x12\x1F\x0A\x12source_storage_uri\x18\x01 \x01(\x09B\x03\xE0A\x01\x12;\x0A\x12source_create_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x01\x12V\x0A\x05scope\x18\x02 \x01(\x0B2B.google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.ImportJobScopeB\x03\xE0A\x02\x12Z\x0A\x0Fentry_sync_mode\x18\x03 \x01(\x0E2<.google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.SyncModeB\x03\xE0A\x02\x12[\x0A\x10aspect_sync_mode\x18\x04 \x01(\x0E2<.google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.SyncModeB\x03\xE0A\x02\x12T\x0A\x09log_level\x18\x06 \x01(\x0E2<.google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.LogLevelB\x03\xE0A\x01\x1A\xD7\x02\x0A\x0EImportJobScope\x12@\x0A\x0Centry_groups\x18\x01 \x03(\x09B*\xE0A\x02\xFAA\$\x0A\"dataplex.googleapis.com/EntryGroup\x12>\x0A\x0Bentry_types\x18\x02 \x03(\x09B)\xE0A\x02\xFAA#\x0A!dataplex.googleapis.com/EntryType\x12@\x0A\x0Caspect_types\x18\x03 \x03(\x09B*\xE0A\x01\xFAA\$\x0A\"dataplex.googleapis.com/AspectType\x12<\x0A\x0Aglossaries\x18\x04 \x03(\x09B(\xE0A\x01\xFAA\"\x0A dataplex.googleapis.com/Glossary\x12\x1D\x0A\x10entry_link_types\x18\x05 \x03(\x09B\x03\xE0A\x01\x12\$\x0A\x17referenced_entry_scopes\x18\x06 \x03(\x09B\x03\xE0A\x01\"J\x0A\x08SyncMode\x12\x19\x0A\x15SYNC_MODE_UNSPECIFIED\x10\x00\x12\x08\x0A\x04FULL\x10\x01\x12\x0F\x0A\x0BINCREMENTAL\x10\x02\x12\x08\x0A\x04NONE\x10\x03\":\x0A\x08LogLevel\x12\x19\x0A\x15LOG_LEVEL_UNSPECIFIED\x10\x00\x12\x09\x0A\x05DEBUG\x10\x01\x12\x08\x0A\x04INFO\x10\x02\x1A\xAF\x03\x0A\x0DExportJobSpec\x12V\x0A\x05scope\x18\x02 \x01(\x0B2B.google.cloud.dataplex.v1.MetadataJob.ExportJobSpec.ExportJobScopeB\x03\xE0A\x02\x12\x18\x0A\x0Boutput_path\x18\x03 \x01(\x09B\x03\xE0A\x02\x1A\xAB\x02\x0A\x0EExportJobScope\x12\x1A\x0A\x12organization_level\x18\x01 \x01(\x08\x12B\x0A\x08projects\x18\x02 \x03(\x09B0\xFAA-\x0A+cloudresourcemanager.googleapis.com/Project\x12=\x0A\x0Centry_groups\x18\x03 \x03(\x09B'\xFAA\$\x0A\"dataplex.googleapis.com/EntryGroup\x12;\x0A\x0Bentry_types\x18\x04 \x03(\x09B&\xFAA#\x0A!dataplex.googleapis.com/EntryType\x12=\x0A\x0Caspect_types\x18\x05 \x03(\x09B'\xFAA\$\x0A\"dataplex.googleapis.com/AspectType\x1A\xCA\x02\x0A\x06Status\x12F\x0A\x05state\x18\x01 \x01(\x0E22.google.cloud.dataplex.v1.MetadataJob.Status.StateB\x03\xE0A\x03\x12\x14\x0A\x07message\x18\x02 \x01(\x09B\x03\xE0A\x03\x12\x1F\x0A\x12completion_percent\x18\x03 \x01(\x05B\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\"\x8A\x01\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06QUEUED\x10\x01\x12\x0B\x0A\x07RUNNING\x10\x02\x12\x0D\x0A\x09CANCELING\x10\x03\x12\x0C\x0A\x08CANCELED\x10\x04\x12\x0D\x0A\x09SUCCEEDED\x10\x05\x12\x0A\x0A\x06FAILED\x10\x06\x12\x19\x0A\x15SUCCEEDED_WITH_ERRORS\x10\x07\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"4\x0A\x04Type\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06IMPORT\x10\x01\x12\x0A\x0A\x06EXPORT\x10\x02:l\xEAAi\x0A#dataplex.googleapis.com/MetadataJob\x12Bprojects/{project}/locations/{location}/metadataJobs/{metadataJob}B\x06\x0A\x04specB\x08\x0A\x06result\"\x9F\x06\x0A\x09EntryLink\x12=\x0A\x04name\x18\x01 \x01(\x09B/\xE0A\x03\xE0A\x05\xE0A\x08\xFAA#\x0A!dataplex.googleapis.com/EntryLink\x12\x1F\x0A\x0Fentry_link_type\x18\x02 \x01(\x09B\x06\xE0A\x02\xE0A\x05\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12F\x0A\x07aspects\x18\x06 \x03(\x0B20.google.cloud.dataplex.v1.EntryLink.AspectsEntryB\x03\xE0A\x01\x12T\x0A\x10entry_references\x18\x0A \x03(\x0B22.google.cloud.dataplex.v1.EntryLink.EntryReferenceB\x06\xE0A\x02\xE0A\x05\x1A\xB9\x01\x0A\x0EEntryReference\x12\x14\x0A\x04name\x18\x01 \x01(\x09B\x06\xE0A\x02\xE0A\x05\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x05\x12M\x0A\x04type\x18\x03 \x01(\x0E27.google.cloud.dataplex.v1.EntryLink.EntryReference.TypeB\x06\xE0A\x02\xE0A\x05\"/\x0A\x04Type\x12\x0F\x0A\x0BUNSPECIFIED\x10\x00\x12\x0A\x0A\x06SOURCE\x10\x02\x12\x0A\x0A\x06TARGET\x10\x03\x1AP\x0A\x0CAspectsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12/\x0A\x05value\x18\x02 \x01(\x0B2 .google.cloud.dataplex.v1.Aspect:\x028\x01:\x99\x01\xEAA\x95\x01\x0A!dataplex.googleapis.com/EntryLink\x12Yprojects/{project}/locations/{location}/entryGroups/{entry_group}/entryLinks/{entry_link}*\x0AentryLinks2\x09entryLink\"\xAE\x01\x0A\x16CreateEntryLinkRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataplex.googleapis.com/EntryGroup\x12\x1A\x0A\x0Dentry_link_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12<\x0A\x0Aentry_link\x18\x03 \x01(\x0B2#.google.cloud.dataplex.v1.EntryLinkB\x03\xE0A\x02\"\x8C\x01\x0A\x16UpdateEntryLinkRequest\x12<\x0A\x0Aentry_link\x18\x01 \x01(\x0B2#.google.cloud.dataplex.v1.EntryLinkB\x03\xE0A\x02\x12\x1A\x0A\x0Dallow_missing\x18\x03 \x01(\x08B\x03\xE0A\x01\x12\x18\x0A\x0Baspect_keys\x18\x05 \x03(\x09B\x03\xE0A\x01\"Q\x0A\x16DeleteEntryLinkRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataplex.googleapis.com/EntryLink\"\xB5\x02\x0A\x17LookupEntryLinksRequest\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x124\x0A\x05entry\x18\x02 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddataplex.googleapis.com/Entry\x12O\x0A\x0Aentry_mode\x18\x03 \x01(\x0E2;.google.cloud.dataplex.v1.LookupEntryLinksRequest.EntryMode\x12\x18\x0A\x10entry_link_types\x18\x04 \x03(\x09\x12\x11\x0A\x09page_size\x18\x05 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x06 \x01(\x09\"?\x0A\x09EntryMode\x12\x1A\x0A\x16ENTRY_MODE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06SOURCE\x10\x01\x12\x0A\x0A\x06TARGET\x10\x02\"m\x0A\x18LookupEntryLinksResponse\x128\x0A\x0Bentry_links\x18\x01 \x03(\x0B2#.google.cloud.dataplex.v1.EntryLink\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"N\x0A\x13GetEntryLinkRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataplex.googleapis.com/EntryLink\"\xC8\x08\x0A\x0CMetadataFeed\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x18\x0A\x03uid\x18\x02 \x01(\x09B\x0B\xE0A\x03\xE2\x8C\xCF\xD7\x08\x02\x08\x01\x12@\x0A\x05scope\x18\x03 \x01(\x0B2,.google.cloud.dataplex.v1.MetadataFeed.ScopeB\x03\xE0A\x02\x12D\x0A\x07filters\x18\x04 \x01(\x0B2..google.cloud.dataplex.v1.MetadataFeed.FiltersB\x03\xE0A\x01\x124\x0A\x0Bcreate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12G\x0A\x06labels\x18\x08 \x03(\x0B22.google.cloud.dataplex.v1.MetadataFeed.LabelsEntryB\x03\xE0A\x01\x12\x1B\x0A\x0Cpubsub_topic\x18d \x01(\x09B\x03\xE0A\x01H\x00\x1A\xB1\x01\x0A\x05Scope\x12\x1F\x0A\x12organization_level\x18\x01 \x01(\x08B\x03\xE0A\x01\x12E\x0A\x08projects\x18\x02 \x03(\x09B3\xE0A\x01\xFAA-\x0A+cloudresourcemanager.googleapis.com/Project\x12@\x0A\x0Centry_groups\x18\x03 \x03(\x09B*\xE0A\x01\xFAA\$\x0A\"dataplex.googleapis.com/EntryGroup\x1A\xB0\x02\x0A\x07Filters\x12>\x0A\x0Bentry_types\x18\x01 \x03(\x09B)\xE0A\x01\xFAA#\x0A!dataplex.googleapis.com/EntryType\x12@\x0A\x0Caspect_types\x18\x02 \x03(\x09B*\xE0A\x01\xFAA\$\x0A\"dataplex.googleapis.com/AspectType\x12T\x0A\x0Cchange_types\x18\x03 \x03(\x0E29.google.cloud.dataplex.v1.MetadataFeed.Filters.ChangeTypeB\x03\xE0A\x01\"M\x0A\x0AChangeType\x12\x1B\x0A\x17CHANGE_TYPE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06CREATE\x10\x01\x12\x0A\x0A\x06UPDATE\x10\x02\x12\x0A\x0A\x06DELETE\x10\x03\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:\x8E\x01\xEAA\x8A\x01\x0A\$dataplex.googleapis.com/MetadataFeed\x12Eprojects/{project}/locations/{location}/metadataFeeds/{metadata_feed}*\x0DmetadataFeeds2\x0CmetadataFeedB\x0A\x0A\x08endpoint\"\xD5\x01\x0A\x19CreateMetadataFeedRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12B\x0A\x0Dmetadata_feed\x18\x02 \x01(\x0B2&.google.cloud.dataplex.v1.MetadataFeedB\x03\xE0A\x02\x12\x1D\x0A\x10metadata_feed_id\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"T\x0A\x16GetMetadataFeedRequest\x12:\x0A\x04name\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$dataplex.googleapis.com/MetadataFeed\"\xB2\x01\x0A\x18ListMetadataFeedsRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\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\"\x8E\x01\x0A\x19ListMetadataFeedsResponse\x12>\x0A\x0Emetadata_feeds\x18\x01 \x03(\x0B2&.google.cloud.dataplex.v1.MetadataFeed\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x18\x0A\x0Bunreachable\x18\x03 \x03(\x09B\x03\xE0A\x06\"W\x0A\x19DeleteMetadataFeedRequest\x12:\x0A\x04name\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$dataplex.googleapis.com/MetadataFeed\"\xB1\x01\x0A\x19UpdateMetadataFeedRequest\x12B\x0A\x0Dmetadata_feed\x18\x01 \x01(\x0B2&.google.cloud.dataplex.v1.MetadataFeedB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01*Q\x0A\x09EntryView\x12\x1A\x0A\x16ENTRY_VIEW_UNSPECIFIED\x10\x00\x12\x09\x0A\x05BASIC\x10\x01\x12\x08\x0A\x04FULL\x10\x02\x12\x0A\x0A\x06CUSTOM\x10\x03\x12\x07\x0A\x03ALL\x10\x04*p\x0A\x0ETransferStatus\x12\x1F\x0A\x1BTRANSFER_STATUS_UNSPECIFIED\x10\x00\x12\x1C\x0A\x18TRANSFER_STATUS_MIGRATED\x10\x01\x12\x1F\x0A\x1BTRANSFER_STATUS_TRANSFERRED\x10\x022\xA8=\x0A\x0ECatalogService\x12\xEA\x01\x0A\x0FCreateEntryType\x120.google.cloud.dataplex.v1.CreateEntryTypeRequest\x1A\x1D.google.longrunning.Operation\"\x85\x01\xCAA\x1E\x0A\x09EntryType\x12\x11OperationMetadata\xDAA\x1Fparent,entry_type,entry_type_id\x82\xD3\xE4\x93\x02<\"./v1/{parent=projects/*/locations/*}/entryTypes:\x0Aentry_type\x12\xEC\x01\x0A\x0FUpdateEntryType\x120.google.cloud.dataplex.v1.UpdateEntryTypeRequest\x1A\x1D.google.longrunning.Operation\"\x87\x01\xCAA\x1E\x0A\x09EntryType\x12\x11OperationMetadata\xDAA\x16entry_type,update_mask\x82\xD3\xE4\x93\x02G29/v1/{entry_type.name=projects/*/locations/*/entryTypes/*}:\x0Aentry_type\x12\xCE\x01\x0A\x0FDeleteEntryType\x120.google.cloud.dataplex.v1.DeleteEntryTypeRequest\x1A\x1D.google.longrunning.Operation\"j\xCAA*\x0A\x15google.protobuf.Empty\x12\x11OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x020*./v1/{name=projects/*/locations/*/entryTypes/*}\x12\xB4\x01\x0A\x0EListEntryTypes\x12/.google.cloud.dataplex.v1.ListEntryTypesRequest\x1A0.google.cloud.dataplex.v1.ListEntryTypesResponse\"?\xDAA\x06parent\x82\xD3\xE4\x93\x020\x12./v1/{parent=projects/*/locations/*}/entryTypes\x12\xA1\x01\x0A\x0CGetEntryType\x12-.google.cloud.dataplex.v1.GetEntryTypeRequest\x1A#.google.cloud.dataplex.v1.EntryType\"=\xDAA\x04name\x82\xD3\xE4\x93\x020\x12./v1/{name=projects/*/locations/*/entryTypes/*}\x12\xF1\x01\x0A\x10CreateAspectType\x121.google.cloud.dataplex.v1.CreateAspectTypeRequest\x1A\x1D.google.longrunning.Operation\"\x8A\x01\xCAA\x1F\x0A\x0AAspectType\x12\x11OperationMetadata\xDAA!parent,aspect_type,aspect_type_id\x82\xD3\xE4\x93\x02>\"//v1/{parent=projects/*/locations/*}/aspectTypes:\x0Baspect_type\x12\xF3\x01\x0A\x10UpdateAspectType\x121.google.cloud.dataplex.v1.UpdateAspectTypeRequest\x1A\x1D.google.longrunning.Operation\"\x8C\x01\xCAA\x1F\x0A\x0AAspectType\x12\x11OperationMetadata\xDAA\x17aspect_type,update_mask\x82\xD3\xE4\x93\x02J2;/v1/{aspect_type.name=projects/*/locations/*/aspectTypes/*}:\x0Baspect_type\x12\xD1\x01\x0A\x10DeleteAspectType\x121.google.cloud.dataplex.v1.DeleteAspectTypeRequest\x1A\x1D.google.longrunning.Operation\"k\xCAA*\x0A\x15google.protobuf.Empty\x12\x11OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x021*//v1/{name=projects/*/locations/*/aspectTypes/*}\x12\xB8\x01\x0A\x0FListAspectTypes\x120.google.cloud.dataplex.v1.ListAspectTypesRequest\x1A1.google.cloud.dataplex.v1.ListAspectTypesResponse\"@\xDAA\x06parent\x82\xD3\xE4\x93\x021\x12//v1/{parent=projects/*/locations/*}/aspectTypes\x12\xA5\x01\x0A\x0DGetAspectType\x12..google.cloud.dataplex.v1.GetAspectTypeRequest\x1A\$.google.cloud.dataplex.v1.AspectType\">\xDAA\x04name\x82\xD3\xE4\x93\x021\x12//v1/{name=projects/*/locations/*/aspectTypes/*}\x12\xF1\x01\x0A\x10CreateEntryGroup\x121.google.cloud.dataplex.v1.CreateEntryGroupRequest\x1A\x1D.google.longrunning.Operation\"\x8A\x01\xCAA\x1F\x0A\x0AEntryGroup\x12\x11OperationMetadata\xDAA!parent,entry_group,entry_group_id\x82\xD3\xE4\x93\x02>\"//v1/{parent=projects/*/locations/*}/entryGroups:\x0Bentry_group\x12\xF3\x01\x0A\x10UpdateEntryGroup\x121.google.cloud.dataplex.v1.UpdateEntryGroupRequest\x1A\x1D.google.longrunning.Operation\"\x8C\x01\xCAA\x1F\x0A\x0AEntryGroup\x12\x11OperationMetadata\xDAA\x17entry_group,update_mask\x82\xD3\xE4\x93\x02J2;/v1/{entry_group.name=projects/*/locations/*/entryGroups/*}:\x0Bentry_group\x12\xD1\x01\x0A\x10DeleteEntryGroup\x121.google.cloud.dataplex.v1.DeleteEntryGroupRequest\x1A\x1D.google.longrunning.Operation\"k\xCAA*\x0A\x15google.protobuf.Empty\x12\x11OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x021*//v1/{name=projects/*/locations/*/entryGroups/*}\x12\xB8\x01\x0A\x0FListEntryGroups\x120.google.cloud.dataplex.v1.ListEntryGroupsRequest\x1A1.google.cloud.dataplex.v1.ListEntryGroupsResponse\"@\xDAA\x06parent\x82\xD3\xE4\x93\x021\x12//v1/{parent=projects/*/locations/*}/entryGroups\x12\xA5\x01\x0A\x0DGetEntryGroup\x12..google.cloud.dataplex.v1.GetEntryGroupRequest\x1A\$.google.cloud.dataplex.v1.EntryGroup\">\xDAA\x04name\x82\xD3\xE4\x93\x021\x12//v1/{name=projects/*/locations/*/entryGroups/*}\x12\xBE\x01\x0A\x0BCreateEntry\x12,.google.cloud.dataplex.v1.CreateEntryRequest\x1A\x1F.google.cloud.dataplex.v1.Entry\"`\xDAA\x15parent,entry,entry_id\x82\xD3\xE4\x93\x02B\"9/v1/{parent=projects/*/locations/*/entryGroups/*}/entries:\x05entry\x12\xC1\x01\x0A\x0BUpdateEntry\x12,.google.cloud.dataplex.v1.UpdateEntryRequest\x1A\x1F.google.cloud.dataplex.v1.Entry\"c\xDAA\x11entry,update_mask\x82\xD3\xE4\x93\x02I2@/v1/{entry.name=projects/*/locations/*/entryGroups/*/entries/**}:\x05entry\x12\xA7\x01\x0A\x0BDeleteEntry\x12,.google.cloud.dataplex.v1.DeleteEntryRequest\x1A\x1F.google.cloud.dataplex.v1.Entry\"I\xDAA\x04name\x82\xD3\xE4\x93\x02<*:/v1/{name=projects/*/locations/*/entryGroups/*/entries/**}\x12\xB6\x01\x0A\x0BListEntries\x12,.google.cloud.dataplex.v1.ListEntriesRequest\x1A-.google.cloud.dataplex.v1.ListEntriesResponse\"J\xDAA\x06parent\x82\xD3\xE4\x93\x02;\x129/v1/{parent=projects/*/locations/*/entryGroups/*}/entries\x12\xA1\x01\x0A\x08GetEntry\x12).google.cloud.dataplex.v1.GetEntryRequest\x1A\x1F.google.cloud.dataplex.v1.Entry\"I\xDAA\x04name\x82\xD3\xE4\x93\x02<\x12:/v1/{name=projects/*/locations/*/entryGroups/*/entries/**}\x12\x93\x01\x0A\x0BLookupEntry\x12,.google.cloud.dataplex.v1.LookupEntryRequest\x1A\x1F.google.cloud.dataplex.v1.Entry\"5\x82\xD3\xE4\x93\x02/\x12-/v1/{name=projects/*/locations/*}:lookupEntry\x12\x96\x01\x0A\x0BModifyEntry\x12,.google.cloud.dataplex.v1.ModifyEntryRequest\x1A\x1F.google.cloud.dataplex.v1.Entry\"8\x82\xD3\xE4\x93\x022\"-/v1/{name=projects/*/locations/*}:modifyEntry:\x01*\x12\xB6\x01\x0A\x0DSearchEntries\x12..google.cloud.dataplex.v1.SearchEntriesRequest\x1A/.google.cloud.dataplex.v1.SearchEntriesResponse\"D\xDAA\x0Aname,query\x82\xD3\xE4\x93\x021\"//v1/{name=projects/*/locations/*}:searchEntries\x12\xF8\x01\x0A\x11CreateMetadataJob\x122.google.cloud.dataplex.v1.CreateMetadataJobRequest\x1A\x1D.google.longrunning.Operation\"\x8F\x01\xCAA \x0A\x0BMetadataJob\x12\x11OperationMetadata\xDAA#parent,metadata_job,metadata_job_id\x82\xD3\xE4\x93\x02@\"0/v1/{parent=projects/*/locations/*}/metadataJobs:\x0Cmetadata_job\x12\xA9\x01\x0A\x0EGetMetadataJob\x12/.google.cloud.dataplex.v1.GetMetadataJobRequest\x1A%.google.cloud.dataplex.v1.MetadataJob\"?\xDAA\x04name\x82\xD3\xE4\x93\x022\x120/v1/{name=projects/*/locations/*/metadataJobs/*}\x12\xBC\x01\x0A\x10ListMetadataJobs\x121.google.cloud.dataplex.v1.ListMetadataJobsRequest\x1A2.google.cloud.dataplex.v1.ListMetadataJobsResponse\"A\xDAA\x06parent\x82\xD3\xE4\x93\x022\x120/v1/{parent=projects/*/locations/*}/metadataJobs\x12\xAA\x01\x0A\x11CancelMetadataJob\x122.google.cloud.dataplex.v1.CancelMetadataJobRequest\x1A\x16.google.protobuf.Empty\"I\xDAA\x04name\x82\xD3\xE4\x93\x02<\"7/v1/{name=projects/*/locations/*/metadataJobs/*}:cancel:\x01*\x12\xDC\x01\x0A\x0FCreateEntryLink\x120.google.cloud.dataplex.v1.CreateEntryLinkRequest\x1A#.google.cloud.dataplex.v1.EntryLink\"r\xDAA\x1Fparent,entry_link,entry_link_id\x82\xD3\xE4\x93\x02J\"*\x12internalAddGeneratedFile( + "\x0A\x9E\x1E\x0A#google/cloud/dataplex/v1/cmek.proto\x12\x18google.cloud.dataplex.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A&google/cloud/dataplex/v1/service.proto\x1A#google/longrunning/operations.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xFA\x06\x0A\x10EncryptionConfig\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x08\xFAA*\x0A(dataplex.googleapis.com/EncryptionConfig\x12\x10\x0A\x03key\x18\x02 \x01(\x09B\x03\xE0A\x01\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12Y\x0A\x10encryption_state\x18\x05 \x01(\x0E2:.google.cloud.dataplex.v1.EncryptionConfig.EncryptionStateB\x03\xE0A\x03\x12\x0C\x0A\x04etag\x18\x06 \x01(\x09\x12W\x0A\x0Ffailure_details\x18\x07 \x01(\x0B29.google.cloud.dataplex.v1.EncryptionConfig.FailureDetailsB\x03\xE0A\x03\x12(\x0A\x1Benable_metastore_encryption\x18\x08 \x01(\x08B\x03\xE0A\x01\x1A\xD1\x01\x0A\x0EFailureDetails\x12\\\x0A\x0Aerror_code\x18\x01 \x01(\x0E2C.google.cloud.dataplex.v1.EncryptionConfig.FailureDetails.ErrorCodeB\x03\xE0A\x03\x12\x1A\x0A\x0Derror_message\x18\x02 \x01(\x09B\x03\xE0A\x03\"E\x0A\x09ErrorCode\x12\x0B\x0A\x07UNKNOWN\x10\x00\x12\x12\x0A\x0EINTERNAL_ERROR\x10\x01\x12\x17\x0A\x13REQUIRE_USER_ACTION\x10\x02\"^\x0A\x0FEncryptionState\x12 \x0A\x1CENCRYPTION_STATE_UNSPECIFIED\x10\x00\x12\x0E\x0A\x0AENCRYPTING\x10\x01\x12\x0D\x0A\x09COMPLETED\x10\x02\x12\x0A\x0A\x06FAILED\x10\x03:\x87\x01\xEAA\x83\x01\x0A(dataplex.googleapis.com/EncryptionConfig\x12Worganizations/{organization}/locations/{location}/encryptionConfigs/{encryption_config}\"\xD4\x01\x0A\x1DCreateEncryptionConfigRequest\x12D\x0A\x06parent\x18\x01 \x01(\x09B4\xE0A\x02\xFAA.\x0A,dataplex.googleapis.com/OrganizationLocation\x12!\x0A\x14encryption_config_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12J\x0A\x11encryption_config\x18\x03 \x01(\x0B2*.google.cloud.dataplex.v1.EncryptionConfigB\x03\xE0A\x02\"\\\x0A\x1AGetEncryptionConfigRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(dataplex.googleapis.com/EncryptionConfig\"\xA1\x01\x0A\x1DUpdateEncryptionConfigRequest\x12J\x0A\x11encryption_config\x18\x01 \x01(\x0B2*.google.cloud.dataplex.v1.EncryptionConfigB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\"r\x0A\x1DDeleteEncryptionConfigRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(dataplex.googleapis.com/EncryptionConfig\x12\x11\x0A\x04etag\x18\x02 \x01(\x09B\x03\xE0A\x01\"\xBD\x01\x0A\x1CListEncryptionConfigsRequest\x12@\x0A\x06parent\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x12(dataplex.googleapis.com/EncryptionConfig\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\"\xC7\x01\x0A\x1DListEncryptionConfigsResponse\x12F\x0A\x12encryption_configs\x18\x01 \x03(\x0B2*.google.cloud.dataplex.v1.EncryptionConfig\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12E\x0A\x15unreachable_locations\x18\x03 \x03(\x09B&\xFAA#\x0A!locations.googleapis.com/Location2\xDE\x0A\x0A\x0BCmekService\x12\xA0\x02\x0A\x16CreateEncryptionConfig\x127.google.cloud.dataplex.v1.CreateEncryptionConfigRequest\x1A\x1D.google.longrunning.Operation\"\xAD\x01\xCAA%\x0A\x10EncryptionConfig\x12\x11OperationMetadata\xDAA-parent,encryption_config,encryption_config_id\x82\xD3\xE4\x93\x02O\":/v1/{parent=organizations/*/locations/*}/encryptionConfigs:\x11encryption_config\x12\xA2\x02\x0A\x16UpdateEncryptionConfig\x127.google.cloud.dataplex.v1.UpdateEncryptionConfigRequest\x1A\x1D.google.longrunning.Operation\"\xAF\x01\xCAA%\x0A\x10EncryptionConfig\x12\x11OperationMetadata\xDAA\x1Dencryption_config,update_mask\x82\xD3\xE4\x93\x02a2L/v1/{encryption_config.name=organizations/*/locations/*/encryptionConfigs/*}:\x11encryption_config\x12\xE8\x01\x0A\x16DeleteEncryptionConfig\x127.google.cloud.dataplex.v1.DeleteEncryptionConfigRequest\x1A\x1D.google.longrunning.Operation\"v\xCAA*\x0A\x15google.protobuf.Empty\x12\x11OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x02<*:/v1/{name=organizations/*/locations/*/encryptionConfigs/*}\x12\xD5\x01\x0A\x15ListEncryptionConfigs\x126.google.cloud.dataplex.v1.ListEncryptionConfigsRequest\x1A7.google.cloud.dataplex.v1.ListEncryptionConfigsResponse\"K\xDAA\x06parent\x82\xD3\xE4\x93\x02<\x12:/v1/{parent=organizations/*/locations/*}/encryptionConfigs\x12\xC2\x01\x0A\x13GetEncryptionConfig\x124.google.cloud.dataplex.v1.GetEncryptionConfigRequest\x1A*.google.cloud.dataplex.v1.EncryptionConfig\"I\xDAA\x04name\x82\xD3\xE4\x93\x02<\x12:/v1/{name=organizations/*/locations/*/encryptionConfigs/*}\x1A\x7F\xCAA\x17dataplex.googleapis.com\xD2Abhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dataplex.read-writeB\x9D\x02\x0A\x1Ccom.google.cloud.dataplex.v1B\x09CmekProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpb\xAA\x02\x18Google.Cloud.Dataplex.V1\xCA\x02\x18Google\\Cloud\\Dataplex\\V1\xEA\x02\x1BGoogle::Cloud::Dataplex::V1\xEAAa\x0A,dataplex.googleapis.com/OrganizationLocation\x121organizations/{organization}/locations/{location}b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Content.php b/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Content.php new file mode 100644 index 000000000000..7920c279de7c --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Content.php @@ -0,0 +1,28 @@ +internalAddGeneratedFile( + "\x0A\xB7\x02\x0A&google/cloud/dataplex/v1/content.proto\x12\x18google.cloud.dataplex.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto2,\x0A\x0EContentService\x1A\x1A\xCAA\x17dataplex.googleapis.comBh\x0A\x1Ccom.google.cloud.dataplex.v1B\x0CContentProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DataDiscovery.php b/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DataDiscovery.php new file mode 100644 index 000000000000..130e48189d1f --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DataDiscovery.php @@ -0,0 +1,26 @@ +internalAddGeneratedFile( + "\x0A\xE2\x11\x0A-google/cloud/dataplex/v1/data_discovery.proto\x12\x18google.cloud.dataplex.v1\x1A\x19google/api/resource.proto\"\x8A\x0A\x0A\x11DataDiscoverySpec\x12m\x0A\x1Abigquery_publishing_config\x18\x01 \x01(\x0B2D.google.cloud.dataplex.v1.DataDiscoverySpec.BigQueryPublishingConfigB\x03\xE0A\x01\x12S\x0A\x0Estorage_config\x18d \x01(\x0B29.google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfigH\x00\x1A\xEE\x02\x0A\x18BigQueryPublishingConfig\x12g\x0A\x0Atable_type\x18\x02 \x01(\x0E2N.google.cloud.dataplex.v1.DataDiscoverySpec.BigQueryPublishingConfig.TableTypeB\x03\xE0A\x01\x12H\x0A\x0Aconnection\x18\x03 \x01(\x09B4\xE0A\x01\xFAA.\x0A,bigqueryconnection.googleapis.com/Connection\x12\x15\x0A\x08location\x18\x04 \x01(\x09B\x03\xE0A\x01\x12D\x0A\x07project\x18\x05 \x01(\x09B3\xE0A\x01\xFAA-\x0A+cloudresourcemanager.googleapis.com/Project\"B\x0A\x09TableType\x12\x1A\x0A\x16TABLE_TYPE_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08EXTERNAL\x10\x01\x12\x0B\x0A\x07BIGLAKE\x10\x02\x1A\xAC\x05\x0A\x0DStorageConfig\x12\x1D\x0A\x10include_patterns\x18\x01 \x03(\x09B\x03\xE0A\x01\x12\x1D\x0A\x10exclude_patterns\x18\x02 \x03(\x09B\x03\xE0A\x01\x12^\x0A\x0Bcsv_options\x18\x03 \x01(\x0B2D.google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.CsvOptionsB\x03\xE0A\x01\x12`\x0A\x0Cjson_options\x18\x04 \x01(\x0B2E.google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.JsonOptionsB\x03\xE0A\x01\x12y\x0A\x19unstructured_data_options\x18\x05 \x01(\x0B2Q.google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.UnstructuredDataOptionsB\x03\xE0A\x01\x1A\x8F\x01\x0A\x0ACsvOptions\x12\x18\x0A\x0Bheader_rows\x18\x01 \x01(\x05B\x03\xE0A\x01\x12\x16\x0A\x09delimiter\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08encoding\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\$\x0A\x17type_inference_disabled\x18\x04 \x01(\x08B\x03\xE0A\x01\x12\x12\x0A\x05quote\x18\x05 \x01(\x09B\x03\xE0A\x01\x1AJ\x0A\x0BJsonOptions\x12\x15\x0A\x08encoding\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\$\x0A\x17type_inference_disabled\x18\x02 \x01(\x08B\x03\xE0A\x01\x1AB\x0A\x17UnstructuredDataOptions\x12'\x0A\x1Asemantic_inference_enabled\x18\x02 \x01(\x08B\x03\xE0A\x01B\x11\x0A\x0Fresource_config\"\xB7\x04\x0A\x13DataDiscoveryResult\x12b\x0A\x13bigquery_publishing\x18\x01 \x01(\x0B2@.google.cloud.dataplex.v1.DataDiscoveryResult.BigQueryPublishingB\x03\xE0A\x03\x12Z\x0A\x0Fscan_statistics\x18\x02 \x01(\x0B2<.google.cloud.dataplex.v1.DataDiscoveryResult.ScanStatisticsB\x03\xE0A\x03\x1Ae\x0A\x12BigQueryPublishing\x128\x0A\x07dataset\x18\x01 \x01(\x09B'\xE0A\x03\xFAA!\x0A\x1Fbigquery.googleapis.com/Dataset\x12\x15\x0A\x08location\x18\x02 \x01(\x09B\x03\xE0A\x03\x1A\xF8\x01\x0A\x0EScanStatistics\x12\x1A\x0A\x12scanned_file_count\x18\x01 \x01(\x05\x12\x1C\x0A\x14data_processed_bytes\x18\x02 \x01(\x03\x12\x16\x0A\x0Efiles_excluded\x18\x03 \x01(\x05\x12\x16\x0A\x0Etables_created\x18\x04 \x01(\x05\x12\x16\x0A\x0Etables_deleted\x18\x05 \x01(\x05\x12\x16\x0A\x0Etables_updated\x18\x06 \x01(\x05\x12\x18\x0A\x10filesets_created\x18\x07 \x01(\x05\x12\x18\x0A\x10filesets_deleted\x18\x08 \x01(\x05\x12\x18\x0A\x10filesets_updated\x18\x09 \x01(\x05B\xAC\x02\x0A\x1Ccom.google.cloud.dataplex.v1B\x12DataDiscoveryProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpb\xEAAH\x0A\x1Fbigquery.googleapis.com/Dataset\x12%projects/{project}/datasets/{dataset}\xEAAp\x0A,bigqueryconnection.googleapis.com/Connection\x12@projects/{project}/locations/{location}/connections/{connection}b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DataDocumentation.php b/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DataDocumentation.php new file mode 100644 index 000000000000..826eb9bc6041 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DataDocumentation.php @@ -0,0 +1,26 @@ +internalAddGeneratedFile( + "\x0A\xA5\x10\x0A1google/cloud/dataplex/v1/data_documentation.proto\x12\x18google.cloud.dataplex.v1\x1A\x19google/api/resource.proto\"\x93\x02\x0A\x15DataDocumentationSpec\x12'\x0A\x1Acatalog_publishing_enabled\x18\x02 \x01(\x08B\x03\xE0A\x01\x12_\x0A\x11generation_scopes\x18\x03 \x03(\x0E2?.google.cloud.dataplex.v1.DataDocumentationSpec.GenerationScopeB\x03\xE0A\x01\"p\x0A\x0FGenerationScope\x12 \x0A\x1CGENERATION_SCOPE_UNSPECIFIED\x10\x00\x12\x07\x0A\x03ALL\x10\x01\x12!\x0A\x1DTABLE_AND_COLUMN_DESCRIPTIONS\x10\x02\x12\x0F\x0A\x0BSQL_QUERIES\x10\x03\"\xA8\x0C\x0A\x17DataDocumentationResult\x12^\x0A\x0Edataset_result\x18\x07 \x01(\x0B2?.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResultB\x03\xE0A\x03H\x00\x12Z\x0A\x0Ctable_result\x18\x08 \x01(\x0B2=.google.cloud.dataplex.v1.DataDocumentationResult.TableResultB\x03\xE0A\x03H\x00\x1A\xDE\x01\x0A\x0DDatasetResult\x12\x15\x0A\x08overview\x18\x01 \x01(\x09B\x03\xE0A\x03\x12g\x0A\x14schema_relationships\x18\x03 \x03(\x0B2D.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationshipB\x03\xE0A\x03\x12M\x0A\x07queries\x18\x04 \x03(\x0B27.google.cloud.dataplex.v1.DataDocumentationResult.QueryB\x03\xE0A\x03\x1A\xD5\x01\x0A\x0BTableResult\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x15\x0A\x08overview\x18\x02 \x01(\x09B\x03\xE0A\x03\x12M\x0A\x06schema\x18\x03 \x01(\x0B28.google.cloud.dataplex.v1.DataDocumentationResult.SchemaB\x03\xE0A\x03\x12M\x0A\x07queries\x18\x04 \x03(\x0B27.google.cloud.dataplex.v1.DataDocumentationResult.QueryB\x03\xE0A\x03\x1A\xFB\x04\x0A\x12SchemaRelationship\x12p\x0A\x11left_schema_paths\x18\x01 \x01(\x0B2P.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPathsB\x03\xE0A\x03\x12q\x0A\x12right_schema_paths\x18\x02 \x01(\x0B2P.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPathsB\x03\xE0A\x03\x12a\x0A\x07sources\x18\x04 \x03(\x0E2K.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SourceB\x03\xE0A\x03\x12\\\x0A\x04type\x18\x06 \x01(\x0E2I.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.TypeB\x03\xE0A\x03\x1A9\x0A\x0BSchemaPaths\x12\x16\x0A\x09table_fqn\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x12\x0A\x05paths\x18\x02 \x03(\x09B\x03\xE0A\x03\"U\x0A\x06Source\x12\x16\x0A\x12SOURCE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05AGENT\x10\x04\x12\x11\x0A\x0DQUERY_HISTORY\x10\x05\x12\x15\x0A\x11TABLE_CONSTRAINTS\x10\x06\"-\x0A\x04Type\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BSCHEMA_JOIN\x10\x01\x1A3\x0A\x05Query\x12\x10\x0A\x03sql\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x02 \x01(\x09B\x03\xE0A\x03\x1AV\x0A\x06Schema\x12L\x0A\x06fields\x18\x01 \x03(\x0B27.google.cloud.dataplex.v1.DataDocumentationResult.FieldB\x03\xE0A\x03\x1A\x82\x01\x0A\x05Field\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x02 \x01(\x09B\x03\xE0A\x03\x12L\x0A\x06fields\x18\x03 \x03(\x0B27.google.cloud.dataplex.v1.DataDocumentationResult.FieldB\x03\xE0A\x03B\x08\x0A\x06resultBr\x0A\x1Ccom.google.cloud.dataplex.v1B\x16DataDocumentationProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DataProducts.php b/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DataProducts.php new file mode 100644 index 000000000000..2d38053965d6 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DataProducts.php @@ -0,0 +1,35 @@ +internalAddGeneratedFile( + "\x0A\xF88\x0A,google/cloud/dataplex/v1/data_products.proto\x12\x18google.cloud.dataplex.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x1Bgoogle/api/field_info.proto\x1A\x19google/api/resource.proto\x1A0google/cloud/dataplex/v1/approval_workflow.proto\x1A&google/cloud/dataplex/v1/service.proto\x1A#google/longrunning/operations.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xB5\x09\x0A\x0BDataProduct\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x18\x0A\x03uid\x18\x02 \x01(\x09B\x0B\xE0A\x03\xE2\x8C\xCF\xD7\x08\x02\x08\x01\x12\x19\x0A\x0Cdisplay_name\x18\x03 \x01(\x09B\x03\xE0A\x02\x124\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x11\x0A\x04etag\x18\x06 \x01(\x09B\x03\xE0A\x01\x12F\x0A\x06labels\x18\x07 \x03(\x0B21.google.cloud.dataplex.v1.DataProduct.LabelsEntryB\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x08 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04icon\x18\x0A \x01(\x0CB\x03\xE0A\x01\x12\x19\x0A\x0Cowner_emails\x18\x0B \x03(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Basset_count\x18\x0D \x01(\x05B\x03\xE0A\x03\x12S\x0A\x0Daccess_groups\x18\x0E \x03(\x0B27.google.cloud.dataplex.v1.DataProduct.AccessGroupsEntryB\x03\xE0A\x01\x12d\x0A\x16access_approval_config\x18\x0F \x01(\x0B2:.google.cloud.dataplex.v1.DataProduct.AccessApprovalConfigB\x03\xE0A\x01H\x00\x88\x01\x01\x1Ag\x0A\x09Principal\x12\x1B\x0A\x0Cgoogle_group\x18\x01 \x01(\x09B\x03\xE0A\x01H\x00\x12!\x0A\x0Fservice_account\x18\x02 \x01(\x09B\x03\xE0A\x01H\x01\x88\x01\x01B\x06\x0A\x04typeB\x12\x0A\x10_service_account\x1A\x9C\x01\x0A\x0BAccessGroup\x12\x0F\x0A\x02id\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Bdescription\x18\x03 \x01(\x09B\x03\xE0A\x01\x12G\x0A\x09principal\x18\x04 \x01(\x0B2/.google.cloud.dataplex.v1.DataProduct.PrincipalB\x03\xE0A\x02\x1A4\x0A\x14AccessApprovalConfig\x12\x1C\x0A\x0Fapprover_emails\x18\x02 \x03(\x09B\x03\xE0A\x01\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1Af\x0A\x11AccessGroupsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12@\x0A\x05value\x18\x02 \x01(\x0B21.google.cloud.dataplex.v1.DataProduct.AccessGroup:\x028\x01:\x89\x01\xEAA\x85\x01\x0A#dataplex.googleapis.com/DataProduct\x12Cprojects/{project}/locations/{location}/dataProducts/{data_product}*\x0CdataProducts2\x0BdataProductB\x19\x0A\x17_access_approval_config\"\xE3\x05\x0A\x09DataAsset\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x18\x0A\x03uid\x18\x02 \x01(\x09B\x0B\xE0A\x03\xE2\x8C\xCF\xD7\x08\x02\x08\x01\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x11\x0A\x04etag\x18\x05 \x01(\x09B\x03\xE0A\x01\x12D\x0A\x06labels\x18\x06 \x03(\x0B2/.google.cloud.dataplex.v1.DataAsset.LabelsEntryB\x03\xE0A\x01\x12\x18\x0A\x08resource\x18\x07 \x01(\x09B\x06\xE0A\x05\xE0A\x02\x12^\x0A\x14access_group_configs\x18\x09 \x03(\x0B2;.google.cloud.dataplex.v1.DataAsset.AccessGroupConfigsEntryB\x03\xE0A\x01\x1A+\x0A\x11AccessGroupConfig\x12\x16\x0A\x09iam_roles\x18\x01 \x03(\x09B\x03\xE0A\x01\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1Ap\x0A\x17AccessGroupConfigsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12D\x0A\x05value\x18\x02 \x01(\x0B25.google.cloud.dataplex.v1.DataAsset.AccessGroupConfig:\x028\x01:\x9B\x01\xEAA\x97\x01\x0A!dataplex.googleapis.com/DataAsset\x12[projects/{project}/locations/{location}/dataProducts/{data_product}/dataAssets/{data_asset}*\x0AdataAssets2\x09dataAsset\"\xD1\x01\x0A\x18CreateDataProductRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12\x1C\x0A\x0Fdata_product_id\x18\x02 \x01(\x09B\x03\xE0A\x01\x12@\x0A\x0Cdata_product\x18\x03 \x01(\x0B2%.google.cloud.dataplex.v1.DataProductB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"\x84\x01\x0A\x18DeleteDataProductRequest\x129\x0A\x04name\x18\x01 \x01(\x09B+\xE0A\x02\xFAA%\x0A#dataplex.googleapis.com/DataProduct\x12\x11\x0A\x04etag\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"R\x0A\x15GetDataProductRequest\x129\x0A\x04name\x18\x01 \x01(\x09B+\xE0A\x02\xFAA%\x0A#dataplex.googleapis.com/DataProduct\"\xB1\x01\x0A\x17ListDataProductsRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12\x13\x0A\x06filter\x18\x02 \x01(\x09B\x03\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\x15\x0A\x08order_by\x18\x05 \x01(\x09B\x03\xE0A\x01\"\x8B\x01\x0A\x18ListDataProductsResponse\x12<\x0A\x0Ddata_products\x18\x01 \x03(\x0B2%.google.cloud.dataplex.v1.DataProduct\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x18\x0A\x0Bunreachable\x18\x03 \x03(\x09B\x03\xE0A\x06\"\xAE\x01\x0A\x18UpdateDataProductRequest\x12@\x0A\x0Cdata_product\x18\x01 \x01(\x0B2%.google.cloud.dataplex.v1.DataProductB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"\xC0\x01\x0A\x1FRequestDataProductAccessRequest\x12;\x0A\x06parent\x18\x01 \x01(\x09B+\xE0A\x02\xFAA%\x0A#dataplex.googleapis.com/DataProduct\x12D\x0A\x0Echange_request\x18\x02 \x01(\x0B2'.google.cloud.dataplex.v1.ChangeRequestB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"k\x0A RequestDataProductAccessResponse\x12G\x0A\x13change_request_name\x18\x01 \x01(\x09B*\xFAA'\x0A%dataplex.googleapis.com/ChangeRequest\"\xCB\x01\x0A\x16CreateDataAssetRequest\x12;\x0A\x06parent\x18\x01 \x01(\x09B+\xE0A\x02\xFAA%\x0A#dataplex.googleapis.com/DataProduct\x12\x1A\x0A\x0Ddata_asset_id\x18\x02 \x01(\x09B\x03\xE0A\x01\x12<\x0A\x0Adata_asset\x18\x03 \x01(\x0B2#.google.cloud.dataplex.v1.DataAssetB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"\xA8\x01\x0A\x16UpdateDataAssetRequest\x12<\x0A\x0Adata_asset\x18\x01 \x01(\x0B2#.google.cloud.dataplex.v1.DataAssetB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"\x80\x01\x0A\x16DeleteDataAssetRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataplex.googleapis.com/DataAsset\x12\x11\x0A\x04etag\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"N\x0A\x13GetDataAssetRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataplex.googleapis.com/DataAsset\"\xB1\x01\x0A\x15ListDataAssetsRequest\x12;\x0A\x06parent\x18\x01 \x01(\x09B+\xE0A\x02\xFAA%\x0A#dataplex.googleapis.com/DataProduct\x12\x13\x0A\x06filter\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09page_size\x18\x04 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x05 \x01(\x09B\x03\xE0A\x01\"k\x0A\x16ListDataAssetsResponse\x128\x0A\x0Bdata_assets\x18\x01 \x03(\x0B2#.google.cloud.dataplex.v1.DataAsset\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x092\x88\x15\x0A\x12DataProductService\x12\xF8\x01\x0A\x11CreateDataProduct\x122.google.cloud.dataplex.v1.CreateDataProductRequest\x1A\x1D.google.longrunning.Operation\"\x8F\x01\xCAA \x0A\x0BDataProduct\x12\x11OperationMetadata\xDAA#parent,data_product,data_product_id\x82\xD3\xE4\x93\x02@\"0/v1/{parent=projects/*/locations/*}/dataProducts:\x0Cdata_product\x12\xD4\x01\x0A\x11DeleteDataProduct\x122.google.cloud.dataplex.v1.DeleteDataProductRequest\x1A\x1D.google.longrunning.Operation\"l\xCAA*\x0A\x15google.protobuf.Empty\x12\x11OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x022*0/v1/{name=projects/*/locations/*/dataProducts/*}\x12\xA9\x01\x0A\x0EGetDataProduct\x12/.google.cloud.dataplex.v1.GetDataProductRequest\x1A%.google.cloud.dataplex.v1.DataProduct\"?\xDAA\x04name\x82\xD3\xE4\x93\x022\x120/v1/{name=projects/*/locations/*/dataProducts/*}\x12\xBC\x01\x0A\x10ListDataProducts\x121.google.cloud.dataplex.v1.ListDataProductsRequest\x1A2.google.cloud.dataplex.v1.ListDataProductsResponse\"A\xDAA\x06parent\x82\xD3\xE4\x93\x022\x120/v1/{parent=projects/*/locations/*}/dataProducts\x12\xFA\x01\x0A\x11UpdateDataProduct\x122.google.cloud.dataplex.v1.UpdateDataProductRequest\x1A\x1D.google.longrunning.Operation\"\x91\x01\xCAA \x0A\x0BDataProduct\x12\x11OperationMetadata\xDAA\x18data_product,update_mask\x82\xD3\xE4\x93\x02M2=/v1/{data_product.name=projects/*/locations/*/dataProducts/*}:\x0Cdata_product\x12\xF6\x01\x0A\x18RequestDataProductAccess\x129.google.cloud.dataplex.v1.RequestDataProductAccessRequest\x1A:.google.cloud.dataplex.v1.RequestDataProductAccessResponse\"c\xDAA\x15parent,change_request\x82\xD3\xE4\x93\x02E\"@/v1/{parent=projects/*/locations/*/dataProducts/*}:requestAccess:\x01*\x12\xF9\x01\x0A\x0FCreateDataAsset\x120.google.cloud.dataplex.v1.CreateDataAssetRequest\x1A\x1D.google.longrunning.Operation\"\x94\x01\xCAA\x1E\x0A\x09DataAsset\x12\x11OperationMetadata\xDAA\x1Fparent,data_asset,data_asset_id\x82\xD3\xE4\x93\x02K\"=/v1/{parent=projects/*/locations/*/dataProducts/*}/dataAssets:\x0Adata_asset\x12\xFB\x01\x0A\x0FUpdateDataAsset\x120.google.cloud.dataplex.v1.UpdateDataAssetRequest\x1A\x1D.google.longrunning.Operation\"\x96\x01\xCAA\x1E\x0A\x09DataAsset\x12\x11OperationMetadata\xDAA\x16data_asset,update_mask\x82\xD3\xE4\x93\x02V2H/v1/{data_asset.name=projects/*/locations/*/dataProducts/*/dataAssets/*}:\x0Adata_asset\x12\xDD\x01\x0A\x0FDeleteDataAsset\x120.google.cloud.dataplex.v1.DeleteDataAssetRequest\x1A\x1D.google.longrunning.Operation\"y\xCAA*\x0A\x15google.protobuf.Empty\x12\x11OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x02?*=/v1/{name=projects/*/locations/*/dataProducts/*/dataAssets/*}\x12\xB0\x01\x0A\x0CGetDataAsset\x12-.google.cloud.dataplex.v1.GetDataAssetRequest\x1A#.google.cloud.dataplex.v1.DataAsset\"L\xDAA\x04name\x82\xD3\xE4\x93\x02?\x12=/v1/{name=projects/*/locations/*/dataProducts/*/dataAssets/*}\x12\xC3\x01\x0A\x0EListDataAssets\x12/.google.cloud.dataplex.v1.ListDataAssetsRequest\x1A0.google.cloud.dataplex.v1.ListDataAssetsResponse\"N\xDAA\x06parent\x82\xD3\xE4\x93\x02?\x12=/v1/{parent=projects/*/locations/*/dataProducts/*}/dataAssets\x1A\xEB\x01\xCAA\x17dataplex.googleapis.com\xD2A\xCD\x01https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.read-only,https://www.googleapis.com/auth/dataplex.read-write,https://www.googleapis.com/auth/dataplex.readonlyBm\x0A\x1Ccom.google.cloud.dataplex.v1B\x11DataProductsProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DataProfile.php b/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DataProfile.php new file mode 100644 index 000000000000..94a3f94d3c62 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DataProfile.php @@ -0,0 +1,27 @@ +internalAddGeneratedFile( + "\x0A\xC0\x17\x0A+google/cloud/dataplex/v1/data_profile.proto\x12\x18google.cloud.dataplex.v1\x1A/google/cloud/dataplex/v1/datascans_common.proto\x1A)google/cloud/dataplex/v1/processing.proto\"\xD1\x05\x0A\x0FDataProfileSpec\x12\x1D\x0A\x10sampling_percent\x18\x02 \x01(\x02B\x03\xE0A\x01\x12\x17\x0A\x0Arow_filter\x18\x03 \x01(\x09B\x03\xE0A\x01\x12Y\x0A\x11post_scan_actions\x18\x04 \x01(\x0B29.google.cloud.dataplex.v1.DataProfileSpec.PostScanActionsB\x03\xE0A\x01\x12U\x0A\x0Einclude_fields\x18\x05 \x01(\x0B28.google.cloud.dataplex.v1.DataProfileSpec.SelectedFieldsB\x03\xE0A\x01\x12U\x0A\x0Eexclude_fields\x18\x06 \x01(\x0B28.google.cloud.dataplex.v1.DataProfileSpec.SelectedFieldsB\x03\xE0A\x01\x12'\x0A\x1Acatalog_publishing_enabled\x18\x08 \x01(\x08B\x03\xE0A\x01\x12A\x0A\x04mode\x18\x09 \x01(\x0E2..google.cloud.dataplex.v1.DataProfileSpec.ModeB\x03\xE0A\x01\x1A\xA7\x01\x0A\x0FPostScanActions\x12f\x0A\x0Fbigquery_export\x18\x01 \x01(\x0B2H.google.cloud.dataplex.v1.DataProfileSpec.PostScanActions.BigQueryExportB\x03\xE0A\x01\x1A,\x0A\x0EBigQueryExport\x12\x1A\x0A\x0Dresults_table\x18\x01 \x01(\x09B\x03\xE0A\x01\x1A*\x0A\x0ESelectedFields\x12\x18\x0A\x0Bfield_names\x18\x01 \x03(\x09B\x03\xE0A\x01\";\x0A\x04Mode\x12\x14\x0A\x10MODE_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08STANDARD\x10\x01\x12\x0F\x0A\x0BLIGHTWEIGHT\x10\x02\"\xD0\x0F\x0A\x11DataProfileResult\x12\x16\x0A\x09row_count\x18\x03 \x01(\x03B\x03\xE0A\x03\x12I\x0A\x07profile\x18\x04 \x01(\x0B23.google.cloud.dataplex.v1.DataProfileResult.ProfileB\x03\xE0A\x03\x12@\x0A\x0Cscanned_data\x18\x05 \x01(\x0B2%.google.cloud.dataplex.v1.ScannedDataB\x03\xE0A\x03\x12h\x0A\x18post_scan_actions_result\x18\x06 \x01(\x0B2A.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResultB\x03\xE0A\x03\x12a\x0A\x19catalog_publishing_status\x18\x07 \x01(\x0B29.google.cloud.dataplex.v1.DataScanCatalogPublishingStatusB\x03\xE0A\x03\x1A\xC8\x09\x0A\x07Profile\x12N\x0A\x06fields\x18\x02 \x03(\x0B29.google.cloud.dataplex.v1.DataProfileResult.Profile.FieldB\x03\xE0A\x03\x1A\xEC\x08\x0A\x05Field\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x11\x0A\x04type\x18\x02 \x01(\x09B\x03\xE0A\x03\x12\x11\x0A\x04mode\x18\x03 \x01(\x09B\x03\xE0A\x03\x12[\x0A\x07profile\x18\x04 \x01(\x0B2E.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfoB\x03\xE0A\x03\x1A\xCC\x07\x0A\x0BProfileInfo\x12\x17\x0A\x0Anull_ratio\x18\x02 \x01(\x01B\x03\xE0A\x03\x12\x1B\x0A\x0Edistinct_ratio\x18\x03 \x01(\x01B\x03\xE0A\x03\x12j\x0A\x0Ctop_n_values\x18\x04 \x03(\x0B2O.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValueB\x03\xE0A\x03\x12o\x0A\x0Estring_profile\x18e \x01(\x0B2U.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfoH\x00\x12q\x0A\x0Finteger_profile\x18f \x01(\x0B2V.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfoH\x00\x12o\x0A\x0Edouble_profile\x18g \x01(\x0B2U.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfoH\x00\x1A`\x0A\x0FStringFieldInfo\x12\x17\x0A\x0Amin_length\x18\x01 \x01(\x03B\x03\xE0A\x03\x12\x17\x0A\x0Amax_length\x18\x02 \x01(\x03B\x03\xE0A\x03\x12\x1B\x0A\x0Eaverage_length\x18\x03 \x01(\x01B\x03\xE0A\x03\x1A\x85\x01\x0A\x10IntegerFieldInfo\x12\x14\x0A\x07average\x18\x01 \x01(\x01B\x03\xE0A\x03\x12\x1F\x0A\x12standard_deviation\x18\x03 \x01(\x01B\x03\xE0A\x03\x12\x10\x0A\x03min\x18\x04 \x01(\x03B\x03\xE0A\x03\x12\x16\x0A\x09quartiles\x18\x06 \x03(\x03B\x03\xE0A\x03\x12\x10\x0A\x03max\x18\x05 \x01(\x03B\x03\xE0A\x03\x1A\x84\x01\x0A\x0FDoubleFieldInfo\x12\x14\x0A\x07average\x18\x01 \x01(\x01B\x03\xE0A\x03\x12\x1F\x0A\x12standard_deviation\x18\x03 \x01(\x01B\x03\xE0A\x03\x12\x10\x0A\x03min\x18\x04 \x01(\x01B\x03\xE0A\x03\x12\x16\x0A\x09quartiles\x18\x06 \x03(\x01B\x03\xE0A\x03\x12\x10\x0A\x03max\x18\x05 \x01(\x01B\x03\xE0A\x03\x1AG\x0A\x09TopNValue\x12\x12\x0A\x05value\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x12\x0A\x05count\x18\x02 \x01(\x03B\x03\xE0A\x03\x12\x12\x0A\x05ratio\x18\x03 \x01(\x01B\x03\xE0A\x03B\x0C\x0A\x0Afield_info\x1A\xFD\x02\x0A\x15PostScanActionsResult\x12{\x0A\x16bigquery_export_result\x18\x01 \x01(\x0B2V.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResultB\x03\xE0A\x03\x1A\xE6\x01\x0A\x14BigQueryExportResult\x12p\x0A\x05state\x18\x01 \x01(\x0E2\\.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult.StateB\x03\xE0A\x03\x12\x14\x0A\x07message\x18\x02 \x01(\x09B\x03\xE0A\x03\"F\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09SUCCEEDED\x10\x01\x12\x0A\x0A\x06FAILED\x10\x02\x12\x0B\x0A\x07SKIPPED\x10\x03Bl\x0A\x1Ccom.google.cloud.dataplex.v1B\x10DataProfileProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DataQuality.php b/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DataQuality.php new file mode 100644 index 000000000000..016668568d3c --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DataQuality.php @@ -0,0 +1,29 @@ +internalAddGeneratedFile( + "\x0A\xE27\x0A+google/cloud/dataplex/v1/data_quality.proto\x12\x18google.cloud.dataplex.v1\x1A\x19google/api/resource.proto\x1A9google/cloud/dataplex/v1/data_quality_rule_template.proto\x1A/google/cloud/dataplex/v1/datascans_common.proto\x1A)google/cloud/dataplex/v1/processing.proto\"\xA7\x09\x0A\x0FDataQualitySpec\x12=\x0A\x05rules\x18\x01 \x03(\x0B2).google.cloud.dataplex.v1.DataQualityRuleB\x03\xE0A\x02\x12\x1D\x0A\x10sampling_percent\x18\x04 \x01(\x02B\x03\xE0A\x01\x12\x17\x0A\x0Arow_filter\x18\x05 \x01(\x09B\x03\xE0A\x01\x12Y\x0A\x11post_scan_actions\x18\x06 \x01(\x0B29.google.cloud.dataplex.v1.DataQualitySpec.PostScanActionsB\x03\xE0A\x01\x12'\x0A\x1Acatalog_publishing_enabled\x18\x08 \x01(\x08B\x03\xE0A\x01\x12'\x0A\x1Aenable_catalog_based_rules\x18\x0A \x01(\x08B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x0B \x01(\x09B\x03\xE0A\x01\x1A\xDA\x06\x0A\x0FPostScanActions\x12f\x0A\x0Fbigquery_export\x18\x01 \x01(\x0B2H.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExportB\x03\xE0A\x01\x12n\x0A\x13notification_report\x18\x02 \x01(\x0B2L.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReportB\x03\xE0A\x01\x1A,\x0A\x0EBigQueryExport\x12\x1A\x0A\x0Dresults_table\x18\x01 \x01(\x09B\x03\xE0A\x01\x1A!\x0A\x0ARecipients\x12\x13\x0A\x06emails\x18\x01 \x03(\x09B\x03\xE0A\x01\x1A5\x0A\x15ScoreThresholdTrigger\x12\x1C\x0A\x0Fscore_threshold\x18\x02 \x01(\x02B\x03\xE0A\x01\x1A\x13\x0A\x11JobFailureTrigger\x1A\x0F\x0A\x0DJobEndTrigger\x1A\xC0\x03\x0A\x12NotificationReport\x12]\x0A\x0Arecipients\x18\x01 \x01(\x0B2D.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.RecipientsB\x03\xE0A\x02\x12u\x0A\x17score_threshold_trigger\x18\x02 \x01(\x0B2O.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTriggerB\x03\xE0A\x01\x12m\x0A\x13job_failure_trigger\x18\x04 \x01(\x0B2K.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTriggerB\x03\xE0A\x01\x12e\x0A\x0Fjob_end_trigger\x18\x05 \x01(\x0B2G.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTriggerB\x03\xE0A\x01\"\x85\x0A\x0A\x11DataQualityResult\x12\x13\x0A\x06passed\x18\x05 \x01(\x08B\x03\xE0A\x03\x12\x17\x0A\x05score\x18\x09 \x01(\x02B\x03\xE0A\x03H\x00\x88\x01\x01\x12M\x0A\x0Adimensions\x18\x02 \x03(\x0B24.google.cloud.dataplex.v1.DataQualityDimensionResultB\x03\xE0A\x03\x12G\x0A\x07columns\x18\x0A \x03(\x0B21.google.cloud.dataplex.v1.DataQualityColumnResultB\x03\xE0A\x03\x12C\x0A\x05rules\x18\x03 \x03(\x0B2/.google.cloud.dataplex.v1.DataQualityRuleResultB\x03\xE0A\x03\x12\x16\x0A\x09row_count\x18\x04 \x01(\x03B\x03\xE0A\x03\x12@\x0A\x0Cscanned_data\x18\x07 \x01(\x0B2%.google.cloud.dataplex.v1.ScannedDataB\x03\xE0A\x03\x12h\x0A\x18post_scan_actions_result\x18\x08 \x01(\x0B2A.google.cloud.dataplex.v1.DataQualityResult.PostScanActionsResultB\x03\xE0A\x03\x12a\x0A\x19catalog_publishing_status\x18\x0B \x01(\x0B29.google.cloud.dataplex.v1.DataScanCatalogPublishingStatusB\x03\xE0A\x03\x12|\x0A\"anomaly_detection_generated_assets\x18\x0C \x01(\x0B2K.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssetsB\x03\xE0A\x03\x1A\xFD\x02\x0A\x15PostScanActionsResult\x12{\x0A\x16bigquery_export_result\x18\x01 \x01(\x0B2V.google.cloud.dataplex.v1.DataQualityResult.PostScanActionsResult.BigQueryExportResultB\x03\xE0A\x03\x1A\xE6\x01\x0A\x14BigQueryExportResult\x12p\x0A\x05state\x18\x01 \x01(\x0E2\\.google.cloud.dataplex.v1.DataQualityResult.PostScanActionsResult.BigQueryExportResult.StateB\x03\xE0A\x03\x12\x14\x0A\x07message\x18\x02 \x01(\x09B\x03\xE0A\x03\"F\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09SUCCEEDED\x10\x01\x12\x0A\x0A\x06FAILED\x10\x02\x12\x0B\x0A\x07SKIPPED\x10\x03\x1A\xB5\x01\x0A\x1FAnomalyDetectionGeneratedAssets\x12\x19\x0A\x0Cresult_table\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\$\x0A\x17data_intermediate_table\x18\x02 \x01(\x09B\x03\xE0A\x03\x12)\x0A\x1Cfreshness_intermediate_table\x18\x03 \x01(\x09B\x03\xE0A\x03\x12&\x0A\x19volume_intermediate_table\x18\x04 \x01(\x09B\x03\xE0A\x03B\x08\x0A\x06_score\"\xB3\x04\x0A\x15DataQualityRuleResult\x12<\x0A\x04rule\x18\x01 \x01(\x0B2).google.cloud.dataplex.v1.DataQualityRuleB\x03\xE0A\x03\x12\x13\x0A\x06passed\x18\x07 \x01(\x08B\x03\xE0A\x03\x12\x1C\x0A\x0Fevaluated_count\x18\x09 \x01(\x03B\x03\xE0A\x03\x12\x19\x0A\x0Cpassed_count\x18\x08 \x01(\x03B\x03\xE0A\x03\x12\x17\x0A\x0Anull_count\x18\x05 \x01(\x03B\x03\xE0A\x03\x12\x17\x0A\x0Apass_ratio\x18\x06 \x01(\x01B\x03\xE0A\x03\x12\x1F\x0A\x12failing_rows_query\x18\x0A \x01(\x09B\x03\xE0A\x03\x12 \x0A\x13assertion_row_count\x18\x0B \x01(\x03B\x03\xE0A\x03\x12k\x0A\x19debug_queries_result_sets\x18\x0D \x03(\x0B2C.google.cloud.dataplex.v1.DataQualityRuleResult.DebugQueryResultSetB\x03\xE0A\x03\x1A=\x0A\x10DebugQueryResult\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x0C\x0A\x04type\x18\x02 \x01(\x09\x12\x0D\x0A\x05value\x18\x03 \x01(\x09\x1Am\x0A\x13DebugQueryResultSet\x12V\x0A\x07results\x18\x01 \x03(\x0B2@.google.cloud.dataplex.v1.DataQualityRuleResult.DebugQueryResultB\x03\xE0A\x03\"\x9C\x01\x0A\x1ADataQualityDimensionResult\x12F\x0A\x09dimension\x18\x01 \x01(\x0B2..google.cloud.dataplex.v1.DataQualityDimensionB\x03\xE0A\x03\x12\x13\x0A\x06passed\x18\x03 \x01(\x08B\x03\xE0A\x03\x12\x17\x0A\x05score\x18\x04 \x01(\x02B\x03\xE0A\x03H\x00\x88\x01\x01B\x08\x0A\x06_score\")\x0A\x14DataQualityDimension\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x03\"\xAD\x19\x0A\x0FDataQualityRule\x12W\x0A\x11range_expectation\x18\x01 \x01(\x0B2:.google.cloud.dataplex.v1.DataQualityRule.RangeExpectationH\x00\x12\\\x0A\x14non_null_expectation\x18\x02 \x01(\x0B2<.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectationH\x00\x12S\x0A\x0Fset_expectation\x18\x03 \x01(\x0B28.google.cloud.dataplex.v1.DataQualityRule.SetExpectationH\x00\x12W\x0A\x11regex_expectation\x18\x04 \x01(\x0B2:.google.cloud.dataplex.v1.DataQualityRule.RegexExpectationH\x00\x12a\x0A\x16uniqueness_expectation\x18d \x01(\x0B2?.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectationH\x00\x12j\x0A\x1Bstatistic_range_expectation\x18e \x01(\x0B2C.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectationH\x00\x12g\x0A\x19row_condition_expectation\x18\xC8\x01 \x01(\x0B2A.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectationH\x00\x12k\x0A\x1Btable_condition_expectation\x18\xC9\x01 \x01(\x0B2C.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectationH\x00\x12P\x0A\x0Dsql_assertion\x18\xCA\x01 \x01(\x0B26.google.cloud.dataplex.v1.DataQualityRule.SqlAssertionH\x00\x12Y\x0A\x12template_reference\x18\x05 \x01(\x0B2;.google.cloud.dataplex.v1.DataQualityRule.TemplateReferenceH\x00\x12\x14\x0A\x06column\x18\xF4\x03 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Bignore_null\x18\xF5\x03 \x01(\x08B\x03\xE0A\x01\x12\x17\x0A\x09dimension\x18\xF6\x03 \x01(\x09B\x03\xE0A\x01\x12\x17\x0A\x09threshold\x18\xF7\x03 \x01(\x01B\x03\xE0A\x01\x12\x12\x0A\x04name\x18\xF8\x03 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Bdescription\x18\xF9\x03 \x01(\x09B\x03\xE0A\x01\x12\x17\x0A\x09suspended\x18\xFA\x03 \x01(\x08B\x03\xE0A\x01\x12S\x0A\x0Aattributes\x18\xFB\x03 \x03(\x0B29.google.cloud.dataplex.v1.DataQualityRule.AttributesEntryB\x03\xE0A\x01\x12O\x0A\x0Brule_source\x18\xFC\x03 \x01(\x0B24.google.cloud.dataplex.v1.DataQualityRule.RuleSourceB\x03\xE0A\x03\x12Q\x0A\x0Ddebug_queries\x18\xFE\x03 \x03(\x0B24.google.cloud.dataplex.v1.DataQualityRule.DebugQueryB\x03\xE0A\x01\x1A\x84\x01\x0A\x10RangeExpectation\x12\x16\x0A\x09min_value\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09max_value\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x1F\x0A\x12strict_min_enabled\x18\x03 \x01(\x08B\x03\xE0A\x01\x12\x1F\x0A\x12strict_max_enabled\x18\x04 \x01(\x08B\x03\xE0A\x01\x1A\x14\x0A\x12NonNullExpectation\x1A%\x0A\x0ESetExpectation\x12\x13\x0A\x06values\x18\x01 \x03(\x09B\x03\xE0A\x01\x1A&\x0A\x10RegexExpectation\x12\x12\x0A\x05regex\x18\x01 \x01(\x09B\x03\xE0A\x01\x1A\x17\x0A\x15UniquenessExpectation\x1A\xC2\x02\x0A\x19StatisticRangeExpectation\x12k\x0A\x09statistic\x18\x01 \x01(\x0E2S.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.ColumnStatisticB\x03\xE0A\x01\x12\x16\x0A\x09min_value\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09max_value\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x1F\x0A\x12strict_min_enabled\x18\x04 \x01(\x08B\x03\xE0A\x01\x12\x1F\x0A\x12strict_max_enabled\x18\x05 \x01(\x08B\x03\xE0A\x01\"F\x0A\x0FColumnStatistic\x12\x17\x0A\x13STATISTIC_UNDEFINED\x10\x00\x12\x08\x0A\x04MEAN\x10\x01\x12\x07\x0A\x03MIN\x10\x02\x12\x07\x0A\x03MAX\x10\x03\x1A6\x0A\x17RowConditionExpectation\x12\x1B\x0A\x0Esql_expression\x18\x01 \x01(\x09B\x03\xE0A\x01\x1A8\x0A\x19TableConditionExpectation\x12\x1B\x0A\x0Esql_expression\x18\x01 \x01(\x09B\x03\xE0A\x01\x1A*\x0A\x0CSqlAssertion\x12\x1A\x0A\x0Dsql_statement\x18\x01 \x01(\x09B\x03\xE0A\x01\x1A\xB1\x03\x0A\x11TemplateReference\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddataplex.googleapis.com/Entry\x12\\\x0A\x06values\x18\x05 \x03(\x0B2G.google.cloud.dataplex.v1.DataQualityRule.TemplateReference.ValuesEntryB\x03\xE0A\x01\x12\x19\x0A\x0Cresolved_sql\x18\x03 \x01(\x09B\x03\xE0A\x03\x12M\x0A\x0Drule_template\x18\x04 \x01(\x0B21.google.cloud.dataplex.v1.DataQualityRuleTemplateB\x03\xE0A\x03\x1A\$\x0A\x0EParameterValue\x12\x12\x0A\x05value\x18\x01 \x01(\x09B\x03\xE0A\x02\x1Ay\x0A\x0BValuesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12Y\x0A\x05value\x18\x02 \x01(\x0B2J.google.cloud.dataplex.v1.DataQualityRule.TemplateReference.ParameterValue:\x028\x01\x1A\x9E\x04\x0A\x0ARuleSource\x12e\x0A\x12rule_path_elements\x18\x01 \x03(\x0B2D.google.cloud.dataplex.v1.DataQualityRule.RuleSource.RulePathElementB\x03\xE0A\x03\x1A\xA8\x03\x0A\x0FRulePathElement\x12m\x0A\x0Centry_source\x18\x01 \x01(\x0B2P.google.cloud.dataplex.v1.DataQualityRule.RuleSource.RulePathElement.EntrySourceB\x03\xE0A\x03H\x00\x12v\x0A\x11entry_link_source\x18\x02 \x01(\x0B2T.google.cloud.dataplex.v1.DataQualityRule.RuleSource.RulePathElement.EntryLinkSourceB\x03\xE0A\x03H\x00\x1AU\x0A\x0BEntrySource\x12\x17\x0A\x0Aentry_type\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x12\x0A\x05entry\x18\x02 \x01(\x09B\x03\xE0A\x03\x12\x19\x0A\x0Cdisplay_name\x18\x03 \x01(\x09B\x03\xE0A\x03\x1AH\x0A\x0FEntryLinkSource\x12\x1C\x0A\x0Fentry_link_type\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x17\x0A\x0Aentry_link\x18\x02 \x01(\x09B\x03\xE0A\x03B\x0D\x0A\x0Bsource_type\x1AB\x0A\x0ADebugQuery\x12\x18\x0A\x0Bdescription\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x1A\x0A\x0Dsql_statement\x18\x02 \x01(\x09B\x03\xE0A\x02\x1A1\x0A\x0FAttributesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01B\x0B\x0A\x09rule_type\"\xB5\x01\x0A\x17DataQualityColumnResult\x12\x13\x0A\x06column\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x17\x0A\x05score\x18\x02 \x01(\x02B\x03\xE0A\x03H\x00\x88\x01\x01\x12\x13\x0A\x06passed\x18\x03 \x01(\x08B\x03\xE0A\x03\x12M\x0A\x0Adimensions\x18\x04 \x03(\x0B24.google.cloud.dataplex.v1.DataQualityDimensionResultB\x03\xE0A\x03B\x08\x0A\x06_scoreB\xC4\x01\x0A\x1Ccom.google.cloud.dataplex.v1B\x10DataQualityProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpb\xEAAU\x0A\x1Dbigquery.googleapis.com/Table\x124projects/{project}/datasets/{dataset}/tables/{table}b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DataQualityRuleTemplate.php b/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DataQualityRuleTemplate.php new file mode 100644 index 000000000000..d0a8c36fa901 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DataQualityRuleTemplate.php @@ -0,0 +1,25 @@ +internalAddGeneratedFile( + "\x0A\xDD\x05\x0A9google/cloud/dataplex/v1/data_quality_rule_template.proto\x12\x18google.cloud.dataplex.v1\"\x83\x04\x0A\x17DataQualityRuleTemplate\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x16\x0A\x09dimension\x18\x02 \x01(\x09B\x03\xE0A\x03\x12R\x0A\x0Esql_collection\x18\x03 \x03(\x0B25.google.cloud.dataplex.v1.DataQualityRuleTemplate.SqlB\x03\xE0A\x03\x12e\x0A\x10input_parameters\x18\x04 \x03(\x0B2F.google.cloud.dataplex.v1.DataQualityRuleTemplate.InputParametersEntryB\x03\xE0A\x03\x12\x19\x0A\x0Ccapabilities\x18\x05 \x03(\x09B\x03\xE0A\x03\x1A\x19\x0A\x03Sql\x12\x12\x0A\x05query\x18\x01 \x01(\x09B\x03\xE0A\x03\x1AL\x0A\x14ParameterDescription\x12\x18\x0A\x0Bdescription\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x1A\x0A\x0Ddefault_value\x18\x02 \x01(\x09B\x03\xE0A\x03\x1A~\x0A\x14InputParametersEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12U\x0A\x05value\x18\x02 \x01(\x0B2F.google.cloud.dataplex.v1.DataQualityRuleTemplate.ParameterDescription:\x028\x01Bx\x0A\x1Ccom.google.cloud.dataplex.v1B\x1CDataQualityRuleTemplateProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DataTaxonomy.php b/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DataTaxonomy.php new file mode 100644 index 000000000000..f2dba18b4be9 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DataTaxonomy.php @@ -0,0 +1,34 @@ +internalAddGeneratedFile( + "\x0A\xE7I\x0A,google/cloud/dataplex/v1/data_taxonomy.proto\x12\x18google.cloud.dataplex.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A'google/cloud/dataplex/v1/security.proto\x1A&google/cloud/dataplex/v1/service.proto\x1A#google/longrunning/operations.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xB3\x04\x0A\x0CDataTaxonomy\x12:\x0A\x04name\x18\x01 \x01(\x09B,\xE0A\x03\xFAA&\x0A\$dataplex.googleapis.com/DataTaxonomy\x12\x10\x0A\x03uid\x18\x02 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x05 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cdisplay_name\x18\x06 \x01(\x09B\x03\xE0A\x01\x12G\x0A\x06labels\x18\x08 \x03(\x0B22.google.cloud.dataplex.v1.DataTaxonomy.LabelsEntryB\x03\xE0A\x01\x12\x1C\x0A\x0Fattribute_count\x18\x09 \x01(\x05B\x03\xE0A\x03\x12\x0C\x0A\x04etag\x18\x0A \x01(\x09\x12\x18\x0A\x0Bclass_count\x18\x0B \x01(\x05B\x03\xE0A\x03\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:v\x18\x01\xEAAq\x0A\$dataplex.googleapis.com/DataTaxonomy\x12Iprojects/{project}/locations/{location}/dataTaxonomies/{data_taxonomy_id}\"\x96\x06\x0A\x0DDataAttribute\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x03\xFAA'\x0A%dataplex.googleapis.com/DataAttribute\x12\x10\x0A\x03uid\x18\x02 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x05 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cdisplay_name\x18\x06 \x01(\x09B\x03\xE0A\x01\x12H\x0A\x06labels\x18\x07 \x03(\x0B23.google.cloud.dataplex.v1.DataAttribute.LabelsEntryB\x03\xE0A\x01\x12@\x0A\x09parent_id\x18\x08 \x01(\x09B-\xE0A\x01\xFAA'\x0A%dataplex.googleapis.com/DataAttribute\x12\x1C\x0A\x0Fattribute_count\x18\x09 \x01(\x05B\x03\xE0A\x03\x12\x0C\x0A\x04etag\x18\x0A \x01(\x09\x12O\x0A\x14resource_access_spec\x18d \x01(\x0B2,.google.cloud.dataplex.v1.ResourceAccessSpecB\x03\xE0A\x01\x12G\x0A\x10data_access_spec\x18e \x01(\x0B2(.google.cloud.dataplex.v1.DataAccessSpecB\x03\xE0A\x01\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:\x93\x01\x18\x01\xEAA\x8D\x01\x0A%dataplex.googleapis.com/DataAttribute\x12dprojects/{project}/locations/{location}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id}\"\xC9\x06\x0A\x14DataAttributeBinding\x12B\x0A\x04name\x18\x01 \x01(\x09B4\xE0A\x03\xFAA.\x0A,dataplex.googleapis.com/DataAttributeBinding\x12\x10\x0A\x03uid\x18\x02 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x05 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cdisplay_name\x18\x06 \x01(\x09B\x03\xE0A\x01\x12O\x0A\x06labels\x18\x07 \x03(\x0B2:.google.cloud.dataplex.v1.DataAttributeBinding.LabelsEntryB\x03\xE0A\x01\x12\x0C\x0A\x04etag\x18\x08 \x01(\x09\x12\x1A\x0A\x08resource\x18d \x01(\x09B\x06\xE0A\x01\xE0A\x05H\x00\x12A\x0A\x0Aattributes\x18n \x03(\x09B-\xE0A\x01\xFAA'\x0A%dataplex.googleapis.com/DataAttribute\x12G\x0A\x05paths\x18x \x03(\x0B23.google.cloud.dataplex.v1.DataAttributeBinding.PathB\x03\xE0A\x01\x1A\\\x0A\x04Path\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12A\x0A\x0Aattributes\x18\x02 \x03(\x09B-\xE0A\x01\xFAA'\x0A%dataplex.googleapis.com/DataAttribute\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:\x8F\x01\x18\x01\xEAA\x89\x01\x0A,dataplex.googleapis.com/DataAttributeBinding\x12Yprojects/{project}/locations/{location}/dataAttributeBindings/{data_attribute_binding_id}B\x14\x0A\x12resource_reference\"\xD9\x01\x0A\x19CreateDataTaxonomyRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12\x1D\x0A\x10data_taxonomy_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12B\x0A\x0Ddata_taxonomy\x18\x03 \x01(\x0B2&.google.cloud.dataplex.v1.DataTaxonomyB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01:\x02\x18\x01\"\xB5\x01\x0A\x19UpdateDataTaxonomyRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12B\x0A\x0Ddata_taxonomy\x18\x02 \x01(\x0B2&.google.cloud.dataplex.v1.DataTaxonomyB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01:\x02\x18\x01\"X\x0A\x16GetDataTaxonomyRequest\x12:\x0A\x04name\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$dataplex.googleapis.com/DataTaxonomy:\x02\x18\x01\"\xB3\x01\x0A\x19ListDataTaxonomiesRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\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\"\x95\x01\x0A\x1AListDataTaxonomiesResponse\x12?\x0A\x0Fdata_taxonomies\x18\x01 \x03(\x0B2&.google.cloud.dataplex.v1.DataTaxonomy\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x1D\x0A\x15unreachable_locations\x18\x03 \x03(\x09\"n\x0A\x19DeleteDataTaxonomyRequest\x12:\x0A\x04name\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$dataplex.googleapis.com/DataTaxonomy\x12\x11\x0A\x04etag\x18\x02 \x01(\x09B\x03\xE0A\x01:\x02\x18\x01\"\xDC\x01\x0A\x1ACreateDataAttributeRequest\x12<\x0A\x06parent\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$dataplex.googleapis.com/DataTaxonomy\x12\x1E\x0A\x11data_attribute_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12D\x0A\x0Edata_attribute\x18\x03 \x01(\x0B2'.google.cloud.dataplex.v1.DataAttributeB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"\xB4\x01\x0A\x1AUpdateDataAttributeRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12D\x0A\x0Edata_attribute\x18\x02 \x01(\x0B2'.google.cloud.dataplex.v1.DataAttributeB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"V\x0A\x17GetDataAttributeRequest\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%dataplex.googleapis.com/DataAttribute\"\xB6\x01\x0A\x19ListDataAttributesRequest\x12<\x0A\x06parent\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$dataplex.googleapis.com/DataTaxonomy\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\"\x96\x01\x0A\x1AListDataAttributesResponse\x12@\x0A\x0Fdata_attributes\x18\x01 \x03(\x0B2'.google.cloud.dataplex.v1.DataAttribute\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x1D\x0A\x15unreachable_locations\x18\x03 \x03(\x09\"l\x0A\x1ADeleteDataAttributeRequest\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%dataplex.googleapis.com/DataAttribute\x12\x11\x0A\x04etag\x18\x02 \x01(\x09B\x03\xE0A\x01\"\xF7\x01\x0A!CreateDataAttributeBindingRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12&\x0A\x19data_attribute_binding_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12S\x0A\x16data_attribute_binding\x18\x03 \x01(\x0B2..google.cloud.dataplex.v1.DataAttributeBindingB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"\xCA\x01\x0A!UpdateDataAttributeBindingRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12S\x0A\x16data_attribute_binding\x18\x02 \x01(\x0B2..google.cloud.dataplex.v1.DataAttributeBindingB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"d\x0A\x1EGetDataAttributeBindingRequest\x12B\x0A\x04name\x18\x01 \x01(\x09B4\xE0A\x02\xFAA.\x0A,dataplex.googleapis.com/DataAttributeBinding\"\xBA\x01\x0A ListDataAttributeBindingsRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\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\"\xAC\x01\x0A!ListDataAttributeBindingsResponse\x12O\x0A\x17data_attribute_bindings\x18\x01 \x03(\x0B2..google.cloud.dataplex.v1.DataAttributeBinding\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x1D\x0A\x15unreachable_locations\x18\x03 \x03(\x09\"z\x0A!DeleteDataAttributeBindingRequest\x12B\x0A\x04name\x18\x01 \x01(\x09B4\xE0A\x02\xFAA.\x0A,dataplex.googleapis.com/DataAttributeBinding\x12\x11\x0A\x04etag\x18\x02 \x01(\x09B\x03\xE0A\x022\xF0\x1D\x0A\x13DataTaxonomyService\x12\x83\x02\x0A\x12CreateDataTaxonomy\x123.google.cloud.dataplex.v1.CreateDataTaxonomyRequest\x1A\x1D.google.longrunning.Operation\"\x98\x01\x88\x02\x01\xCAA!\x0A\x0CDataTaxonomy\x12\x11OperationMetadata\xDAA%parent,data_taxonomy,data_taxonomy_id\x82\xD3\xE4\x93\x02C\"2/v1/{parent=projects/*/locations/*}/dataTaxonomies:\x0Ddata_taxonomy\x12\x85\x02\x0A\x12UpdateDataTaxonomy\x123.google.cloud.dataplex.v1.UpdateDataTaxonomyRequest\x1A\x1D.google.longrunning.Operation\"\x9A\x01\x88\x02\x01\xCAA!\x0A\x0CDataTaxonomy\x12\x11OperationMetadata\xDAA\x19data_taxonomy,update_mask\x82\xD3\xE4\x93\x02Q2@/v1/{data_taxonomy.name=projects/*/locations/*/dataTaxonomies/*}:\x0Ddata_taxonomy\x12\xDB\x01\x0A\x12DeleteDataTaxonomy\x123.google.cloud.dataplex.v1.DeleteDataTaxonomyRequest\x1A\x1D.google.longrunning.Operation\"q\x88\x02\x01\xCAA*\x0A\x15google.protobuf.Empty\x12\x11OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x024*2/v1/{name=projects/*/locations/*/dataTaxonomies/*}\x12\xC7\x01\x0A\x12ListDataTaxonomies\x123.google.cloud.dataplex.v1.ListDataTaxonomiesRequest\x1A4.google.cloud.dataplex.v1.ListDataTaxonomiesResponse\"F\x88\x02\x01\xDAA\x06parent\x82\xD3\xE4\x93\x024\x122/v1/{parent=projects/*/locations/*}/dataTaxonomies\x12\xB1\x01\x0A\x0FGetDataTaxonomy\x120.google.cloud.dataplex.v1.GetDataTaxonomyRequest\x1A&.google.cloud.dataplex.v1.DataTaxonomy\"D\x88\x02\x01\xDAA\x04name\x82\xD3\xE4\x93\x024\x122/v1/{name=projects/*/locations/*/dataTaxonomies/*}\x12\xBD\x02\x0A\x1ACreateDataAttributeBinding\x12;.google.cloud.dataplex.v1.CreateDataAttributeBindingRequest\x1A\x1D.google.longrunning.Operation\"\xC2\x01\x88\x02\x01\xCAA)\x0A\x14DataAttributeBinding\x12\x11OperationMetadata\xDAA7parent,data_attribute_binding,data_attribute_binding_id\x82\xD3\xE4\x93\x02S\"9/v1/{parent=projects/*/locations/*}/dataAttributeBindings:\x16data_attribute_binding\x12\xBF\x02\x0A\x1AUpdateDataAttributeBinding\x12;.google.cloud.dataplex.v1.UpdateDataAttributeBindingRequest\x1A\x1D.google.longrunning.Operation\"\xC4\x01\x88\x02\x01\xCAA)\x0A\x14DataAttributeBinding\x12\x11OperationMetadata\xDAA\"data_attribute_binding,update_mask\x82\xD3\xE4\x93\x02j2P/v1/{data_attribute_binding.name=projects/*/locations/*/dataAttributeBindings/*}:\x16data_attribute_binding\x12\xF2\x01\x0A\x1ADeleteDataAttributeBinding\x12;.google.cloud.dataplex.v1.DeleteDataAttributeBindingRequest\x1A\x1D.google.longrunning.Operation\"x\x88\x02\x01\xCAA*\x0A\x15google.protobuf.Empty\x12\x11OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x02;*9/v1/{name=projects/*/locations/*/dataAttributeBindings/*}\x12\xE3\x01\x0A\x19ListDataAttributeBindings\x12:.google.cloud.dataplex.v1.ListDataAttributeBindingsRequest\x1A;.google.cloud.dataplex.v1.ListDataAttributeBindingsResponse\"M\x88\x02\x01\xDAA\x06parent\x82\xD3\xE4\x93\x02;\x129/v1/{parent=projects/*/locations/*}/dataAttributeBindings\x12\xD0\x01\x0A\x17GetDataAttributeBinding\x128.google.cloud.dataplex.v1.GetDataAttributeBindingRequest\x1A..google.cloud.dataplex.v1.DataAttributeBinding\"K\x88\x02\x01\xDAA\x04name\x82\xD3\xE4\x93\x02;\x129/v1/{name=projects/*/locations/*/dataAttributeBindings/*}\x12\x96\x02\x0A\x13CreateDataAttribute\x124.google.cloud.dataplex.v1.CreateDataAttributeRequest\x1A\x1D.google.longrunning.Operation\"\xA9\x01\x88\x02\x01\xCAA\"\x0A\x0DDataAttribute\x12\x11OperationMetadata\xDAA'parent,data_attribute,data_attribute_id\x82\xD3\xE4\x93\x02Q\"?/v1/{parent=projects/*/locations/*/dataTaxonomies/*}/attributes:\x0Edata_attribute\x12\x98\x02\x0A\x13UpdateDataAttribute\x124.google.cloud.dataplex.v1.UpdateDataAttributeRequest\x1A\x1D.google.longrunning.Operation\"\xAB\x01\x88\x02\x01\xCAA\"\x0A\x0DDataAttribute\x12\x11OperationMetadata\xDAA\x1Adata_attribute,update_mask\x82\xD3\xE4\x93\x02`2N/v1/{data_attribute.name=projects/*/locations/*/dataTaxonomies/*/attributes/*}:\x0Edata_attribute\x12\xEA\x01\x0A\x13DeleteDataAttribute\x124.google.cloud.dataplex.v1.DeleteDataAttributeRequest\x1A\x1D.google.longrunning.Operation\"~\x88\x02\x01\xCAA*\x0A\x15google.protobuf.Empty\x12\x11OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x02A*?/v1/{name=projects/*/locations/*/dataTaxonomies/*/attributes/*}\x12\xD4\x01\x0A\x12ListDataAttributes\x123.google.cloud.dataplex.v1.ListDataAttributesRequest\x1A4.google.cloud.dataplex.v1.ListDataAttributesResponse\"S\x88\x02\x01\xDAA\x06parent\x82\xD3\xE4\x93\x02A\x12?/v1/{parent=projects/*/locations/*/dataTaxonomies/*}/attributes\x12\xC1\x01\x0A\x10GetDataAttribute\x121.google.cloud.dataplex.v1.GetDataAttributeRequest\x1A'.google.cloud.dataplex.v1.DataAttribute\"Q\x88\x02\x01\xDAA\x04name\x82\xD3\xE4\x93\x02A\x12?/v1/{name=projects/*/locations/*/dataTaxonomies/*/attributes/*}\x1A\x82\x01\x88\x02\x01\xCAA\x17dataplex.googleapis.com\xD2Abhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dataplex.read-writeBm\x0A\x1Ccom.google.cloud.dataplex.v1B\x11DataTaxonomyProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Datascans.php b/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Datascans.php new file mode 100644 index 000000000000..6682172bae2e --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Datascans.php @@ -0,0 +1,40 @@ +internalAddGeneratedFile( + "\x0A\xA5D\x0A(google/cloud/dataplex/v1/datascans.proto\x12\x18google.cloud.dataplex.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x1Bgoogle/api/field_info.proto\x1A\x19google/api/resource.proto\x1A-google/cloud/dataplex/v1/data_discovery.proto\x1A1google/cloud/dataplex/v1/data_documentation.proto\x1A+google/cloud/dataplex/v1/data_profile.proto\x1A+google/cloud/dataplex/v1/data_quality.proto\x1A)google/cloud/dataplex/v1/processing.proto\x1A(google/cloud/dataplex/v1/resources.proto\x1A&google/cloud/dataplex/v1/service.proto\x1A#google/longrunning/operations.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xC5\x01\x0A\x15CreateDataScanRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12:\x0A\x09data_scan\x18\x02 \x01(\x0B2\".google.cloud.dataplex.v1.DataScanB\x03\xE0A\x02\x12\x19\x0A\x0Cdata_scan_id\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"\xA5\x01\x0A\x15UpdateDataScanRequest\x12:\x0A\x09data_scan\x18\x01 \x01(\x0B2\".google.cloud.dataplex.v1.DataScanB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"c\x0A\x15DeleteDataScanRequest\x126\x0A\x04name\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A dataplex.googleapis.com/DataScan\x12\x12\x0A\x05force\x18\x02 \x01(\x08B\x03\xE0A\x01\"\xDF\x01\x0A\x12GetDataScanRequest\x126\x0A\x04name\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A dataplex.googleapis.com/DataScan\x12L\x0A\x04view\x18\x02 \x01(\x0E29.google.cloud.dataplex.v1.GetDataScanRequest.DataScanViewB\x03\xE0A\x01\"C\x0A\x0CDataScanView\x12\x1E\x0A\x1ADATA_SCAN_VIEW_UNSPECIFIED\x10\x00\x12\x09\x0A\x05BASIC\x10\x01\x12\x08\x0A\x04FULL\x10\x0A\"\xAE\x01\x0A\x14ListDataScansRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\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\"}\x0A\x15ListDataScansResponse\x126\x0A\x0Adata_scans\x18\x01 \x03(\x0B2\".google.cloud.dataplex.v1.DataScan\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x13\x0A\x0Bunreachable\x18\x03 \x03(\x09\"L\x0A\x12RunDataScanRequest\x126\x0A\x04name\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A dataplex.googleapis.com/DataScan\"I\x0A\x13RunDataScanResponse\x122\x0A\x03job\x18\x01 \x01(\x0B2%.google.cloud.dataplex.v1.DataScanJob\"\xF2\x01\x0A\x15GetDataScanJobRequest\x129\x0A\x04name\x18\x01 \x01(\x09B+\xE0A\x02\xFAA%\x0A#dataplex.googleapis.com/DataScanJob\x12R\x0A\x04view\x18\x02 \x01(\x0E2?.google.cloud.dataplex.v1.GetDataScanJobRequest.DataScanJobViewB\x03\xE0A\x01\"J\x0A\x0FDataScanJobView\x12\"\x0A\x1EDATA_SCAN_JOB_VIEW_UNSPECIFIED\x10\x00\x12\x09\x0A\x05BASIC\x10\x01\x12\x08\x0A\x04FULL\x10\x0A\"\x99\x01\x0A\x17ListDataScanJobsRequest\x128\x0A\x06parent\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A dataplex.googleapis.com/DataScan\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\"r\x0A\x18ListDataScanJobsResponse\x12=\x0A\x0Edata_scan_jobs\x18\x01 \x03(\x0B2%.google.cloud.dataplex.v1.DataScanJob\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"U\x0A\x18CancelDataScanJobRequest\x129\x0A\x04name\x18\x01 \x01(\x09B+\xE0A\x02\xFAA%\x0A#dataplex.googleapis.com/DataScanJob\"\x1B\x0A\x19CancelDataScanJobResponse\"4\x0A\x1FGenerateDataQualityRulesRequest\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\"[\x0A GenerateDataQualityRulesResponse\x127\x0A\x04rule\x18\x01 \x03(\x0B2).google.cloud.dataplex.v1.DataQualityRule\"\xAD\x0E\x0A\x08DataScan\x12\x14\x0A\x04name\x18\x01 \x01(\x09B\x06\xE0A\x03\xE0A\x08\x12\x18\x0A\x03uid\x18\x02 \x01(\x09B\x0B\xE0A\x03\xE2\x8C\xCF\xD7\x08\x02\x08\x01\x12\x18\x0A\x0Bdescription\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cdisplay_name\x18\x04 \x01(\x09B\x03\xE0A\x01\x12C\x0A\x06labels\x18\x05 \x03(\x0B2..google.cloud.dataplex.v1.DataScan.LabelsEntryB\x03\xE0A\x01\x123\x0A\x05state\x18\x06 \x01(\x0E2\x1F.google.cloud.dataplex.v1.StateB\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\x127\x0A\x04data\x18\x09 \x01(\x0B2\$.google.cloud.dataplex.v1.DataSourceB\x03\xE0A\x02\x12M\x0A\x0Eexecution_spec\x18\x0A \x01(\x0B20.google.cloud.dataplex.v1.DataScan.ExecutionSpecB\x03\xE0A\x01\x12Q\x0A\x10execution_status\x18\x0B \x01(\x0B22.google.cloud.dataplex.v1.DataScan.ExecutionStatusB\x03\xE0A\x03\x129\x0A\x04type\x18\x0C \x01(\x0E2&.google.cloud.dataplex.v1.DataScanTypeB\x03\xE0A\x03\x12F\x0A\x11data_quality_spec\x18d \x01(\x0B2).google.cloud.dataplex.v1.DataQualitySpecH\x00\x12F\x0A\x11data_profile_spec\x18e \x01(\x0B2).google.cloud.dataplex.v1.DataProfileSpecH\x00\x12J\x0A\x13data_discovery_spec\x18f \x01(\x0B2+.google.cloud.dataplex.v1.DataDiscoverySpecH\x00\x12R\x0A\x17data_documentation_spec\x18g \x01(\x0B2/.google.cloud.dataplex.v1.DataDocumentationSpecH\x00\x12P\x0A\x13data_quality_result\x18\xC8\x01 \x01(\x0B2+.google.cloud.dataplex.v1.DataQualityResultB\x03\xE0A\x03H\x01\x12P\x0A\x13data_profile_result\x18\xC9\x01 \x01(\x0B2+.google.cloud.dataplex.v1.DataProfileResultB\x03\xE0A\x03H\x01\x12T\x0A\x15data_discovery_result\x18\xCA\x01 \x01(\x0B2-.google.cloud.dataplex.v1.DataDiscoveryResultB\x03\xE0A\x03H\x01\x12\\\x0A\x19data_documentation_result\x18\xCB\x01 \x01(\x0B21.google.cloud.dataplex.v1.DataDocumentationResultB\x03\xE0A\x03H\x01\x12P\x0A\x12execution_identity\x18\xAC\x02 \x01(\x0B2+.google.cloud.dataplex.v1.ExecutionIdentityB\x06\xE0A\x01\xE0A\x05\x1Am\x0A\x0DExecutionSpec\x127\x0A\x07trigger\x18\x01 \x01(\x0B2!.google.cloud.dataplex.v1.TriggerB\x03\xE0A\x01\x12\x14\x0A\x05field\x18d \x01(\x09B\x03\xE0A\x05H\x00B\x0D\x0A\x0Bincremental\x1A\xD0\x01\x0A\x0FExecutionStatus\x12>\x0A\x15latest_job_start_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x01\x12<\x0A\x13latest_job_end_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x01\x12?\x0A\x16latest_job_create_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x01\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:c\xEAA`\x0A dataplex.googleapis.com/DataScan\x12\xDAA\x06parent\x82\xD3\xE4\x93\x02/\x12-/v1/{parent=projects/*/locations/*}/dataScans\x12\xAF\x01\x0A\x0BRunDataScan\x12,.google.cloud.dataplex.v1.RunDataScanRequest\x1A-.google.cloud.dataplex.v1.RunDataScanResponse\"C\xDAA\x04name\x82\xD3\xE4\x93\x026\"1/v1/{name=projects/*/locations/*/dataScans/*}:run:\x01*\x12\xAD\x01\x0A\x0EGetDataScanJob\x12/.google.cloud.dataplex.v1.GetDataScanJobRequest\x1A%.google.cloud.dataplex.v1.DataScanJob\"C\xDAA\x04name\x82\xD3\xE4\x93\x026\x124/v1/{name=projects/*/locations/*/dataScans/*/jobs/*}\x12\xC0\x01\x0A\x10ListDataScanJobs\x121.google.cloud.dataplex.v1.ListDataScanJobsRequest\x1A2.google.cloud.dataplex.v1.ListDataScanJobsResponse\"E\xDAA\x06parent\x82\xD3\xE4\x93\x026\x124/v1/{parent=projects/*/locations/*/dataScans/*}/jobs\x12\xCB\x01\x0A\x11CancelDataScanJob\x122.google.cloud.dataplex.v1.CancelDataScanJobRequest\x1A3.google.cloud.dataplex.v1.CancelDataScanJobResponse\"M\xDAA\x04name\x82\xD3\xE4\x93\x02@\";/v1/{name=projects/*/locations/*/dataScans/*/jobs/*}:cancel:\x01*\x12\xC1\x02\x0A\x18GenerateDataQualityRules\x129.google.cloud.dataplex.v1.GenerateDataQualityRulesRequest\x1A:.google.cloud.dataplex.v1.GenerateDataQualityRulesResponse\"\xAD\x01\xDAA\x04name\x82\xD3\xE4\x93\x02\x9F\x01\"F/v1/{name=projects/*/locations/*/dataScans/*}:generateDataQualityRules:\x01*ZR\"M/v1/{name=projects/*/locations/*/dataScans/*/jobs/*}:generateDataQualityRules:\x01*\x1A\xEB\x01\xCAA\x17dataplex.googleapis.com\xD2A\xCD\x01https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.read-only,https://www.googleapis.com/auth/dataplex.read-write,https://www.googleapis.com/auth/dataplex.readonlyBj\x0A\x1Ccom.google.cloud.dataplex.v1B\x0EDataScansProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DatascansCommon.php b/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DatascansCommon.php new file mode 100644 index 000000000000..5a231f2fab51 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DatascansCommon.php @@ -0,0 +1,25 @@ +internalAddGeneratedFile( + "\x0A\x86\x03\x0A/google/cloud/dataplex/v1/datascans_common.proto\x12\x18google.cloud.dataplex.v1\"\xBE\x01\x0A\x1FDataScanCatalogPublishingStatus\x12S\x0A\x05state\x18\x01 \x01(\x0E2?.google.cloud.dataplex.v1.DataScanCatalogPublishingStatus.StateB\x03\xE0A\x03\"F\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09SUCCEEDED\x10\x01\x12\x0A\x0A\x06FAILED\x10\x02\x12\x0B\x0A\x07SKIPPED\x10\x03Bp\x0A\x1Ccom.google.cloud.dataplex.v1B\x14DataScansCommonProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Logs.php b/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Logs.php new file mode 100644 index 000000000000..a58a4208c282 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Logs.php @@ -0,0 +1,29 @@ +internalAddGeneratedFile( + "\x0A\xBCA\x0A#google/cloud/dataplex/v1/logs.proto\x12\x18google.cloud.dataplex.v1\x1A\x19google/api/resource.proto\x1A/google/cloud/dataplex/v1/datascans_common.proto\x1A\x1Egoogle/protobuf/duration.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\x9D\x0C\x0A\x0EDiscoveryEvent\x12\x0F\x0A\x07message\x18\x01 \x01(\x09\x12\x0F\x0A\x07lake_id\x18\x02 \x01(\x09\x12\x0F\x0A\x07zone_id\x18\x03 \x01(\x09\x12\x10\x0A\x08asset_id\x18\x04 \x01(\x09\x12\x15\x0A\x0Ddata_location\x18\x05 \x01(\x09\x12\x13\x0A\x0Bdatascan_id\x18\x06 \x01(\x09\x12@\x0A\x04type\x18\x0A \x01(\x0E22.google.cloud.dataplex.v1.DiscoveryEvent.EventType\x12H\x0A\x06config\x18\x14 \x01(\x0B26.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetailsH\x00\x12H\x0A\x06entity\x18\x15 \x01(\x0B26.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetailsH\x00\x12N\x0A\x09partition\x18\x16 \x01(\x0B29.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetailsH\x00\x12H\x0A\x06action\x18\x17 \x01(\x0B26.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetailsH\x00\x12F\x0A\x05table\x18\x18 \x01(\x0B25.google.cloud.dataplex.v1.DiscoveryEvent.TableDetailsH\x00\x1A\x9E\x01\x0A\x0DConfigDetails\x12Z\x0A\x0Aparameters\x18\x01 \x03(\x0B2F.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails.ParametersEntry\x1A1\x0A\x0FParametersEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1Ab\x0A\x0DEntityDetails\x12\x0E\x0A\x06entity\x18\x01 \x01(\x09\x12A\x0A\x04type\x18\x02 \x01(\x0E23.google.cloud.dataplex.v1.DiscoveryEvent.EntityType\x1A_\x0A\x0CTableDetails\x12\x0D\x0A\x05table\x18\x01 \x01(\x09\x12@\x0A\x04type\x18\x02 \x01(\x0E22.google.cloud.dataplex.v1.DiscoveryEvent.TableType\x1A\x98\x01\x0A\x10PartitionDetails\x12\x11\x0A\x09partition\x18\x01 \x01(\x09\x12\x0E\x0A\x06entity\x18\x02 \x01(\x09\x12A\x0A\x04type\x18\x03 \x01(\x0E23.google.cloud.dataplex.v1.DiscoveryEvent.EntityType\x12\x1E\x0A\x16sampled_data_locations\x18\x04 \x03(\x09\x1A,\x0A\x0DActionDetails\x12\x0C\x0A\x04type\x18\x01 \x01(\x09\x12\x0D\x0A\x05issue\x18\x02 \x01(\x09\"\x82\x02\x0A\x09EventType\x12\x1A\x0A\x16EVENT_TYPE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06CONFIG\x10\x01\x12\x12\x0A\x0EENTITY_CREATED\x10\x02\x12\x12\x0A\x0EENTITY_UPDATED\x10\x03\x12\x12\x0A\x0EENTITY_DELETED\x10\x04\x12\x15\x0A\x11PARTITION_CREATED\x10\x05\x12\x15\x0A\x11PARTITION_UPDATED\x10\x06\x12\x15\x0A\x11PARTITION_DELETED\x10\x07\x12\x13\x0A\x0FTABLE_PUBLISHED\x10\x0A\x12\x11\x0A\x0DTABLE_UPDATED\x10\x0B\x12\x11\x0A\x0DTABLE_IGNORED\x10\x0C\x12\x11\x0A\x0DTABLE_DELETED\x10\x0D\"A\x0A\x0AEntityType\x12\x1B\x0A\x17ENTITY_TYPE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05TABLE\x10\x01\x12\x0B\x0A\x07FILESET\x10\x02\"`\x0A\x09TableType\x12\x1A\x0A\x16TABLE_TYPE_UNSPECIFIED\x10\x00\x12\x12\x0A\x0EEXTERNAL_TABLE\x10\x01\x12\x11\x0A\x0DBIGLAKE_TABLE\x10\x02\x12\x10\x0A\x0COBJECT_TABLE\x10\x03B\x09\x0A\x07details\"\xC5\x05\x0A\x08JobEvent\x12\x0F\x0A\x07message\x18\x01 \x01(\x09\x12\x0E\x0A\x06job_id\x18\x02 \x01(\x09\x12.\x0A\x0Astart_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12,\x0A\x08end_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.Timestamp\x127\x0A\x05state\x18\x05 \x01(\x0E2(.google.cloud.dataplex.v1.JobEvent.State\x12\x0F\x0A\x07retries\x18\x06 \x01(\x05\x125\x0A\x04type\x18\x07 \x01(\x0E2'.google.cloud.dataplex.v1.JobEvent.Type\x12;\x0A\x07service\x18\x08 \x01(\x0E2*.google.cloud.dataplex.v1.JobEvent.Service\x12\x13\x0A\x0Bservice_job\x18\x09 \x01(\x09\x12N\x0A\x11execution_trigger\x18\x0B \x01(\x0E23.google.cloud.dataplex.v1.JobEvent.ExecutionTrigger\"5\x0A\x04Type\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05SPARK\x10\x01\x12\x0C\x0A\x08NOTEBOOK\x10\x02\"U\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09SUCCEEDED\x10\x01\x12\x0A\x0A\x06FAILED\x10\x02\x12\x0D\x0A\x09CANCELLED\x10\x03\x12\x0B\x0A\x07ABORTED\x10\x04\"0\x0A\x07Service\x12\x17\x0A\x13SERVICE_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08DATAPROC\x10\x01\"W\x0A\x10ExecutionTrigger\x12!\x0A\x1DEXECUTION_TRIGGER_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BTASK_CONFIG\x10\x01\x12\x0F\x0A\x0BRUN_REQUEST\x10\x02\"\xBD\x05\x0A\x0CSessionEvent\x12\x0F\x0A\x07message\x18\x01 \x01(\x09\x12\x0F\x0A\x07user_id\x18\x02 \x01(\x09\x12\x12\x0A\x0Asession_id\x18\x03 \x01(\x09\x12>\x0A\x04type\x18\x04 \x01(\x0E20.google.cloud.dataplex.v1.SessionEvent.EventType\x12C\x0A\x05query\x18\x05 \x01(\x0B22.google.cloud.dataplex.v1.SessionEvent.QueryDetailH\x00\x12\x17\x0A\x0Fevent_succeeded\x18\x06 \x01(\x08\x12\x1C\x0A\x14fast_startup_enabled\x18\x07 \x01(\x08\x126\x0A\x13unassigned_duration\x18\x08 \x01(\x0B2\x19.google.protobuf.Duration\x1A\xA3\x02\x0A\x0BQueryDetail\x12\x10\x0A\x08query_id\x18\x01 \x01(\x09\x12\x12\x0A\x0Aquery_text\x18\x02 \x01(\x09\x12I\x0A\x06engine\x18\x03 \x01(\x0E29.google.cloud.dataplex.v1.SessionEvent.QueryDetail.Engine\x12+\x0A\x08duration\x18\x04 \x01(\x0B2\x19.google.protobuf.Duration\x12\x19\x0A\x11result_size_bytes\x18\x05 \x01(\x03\x12\x1C\x0A\x14data_processed_bytes\x18\x06 \x01(\x03\"=\x0A\x06Engine\x12\x16\x0A\x12ENGINE_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09SPARK_SQL\x10\x01\x12\x0C\x0A\x08BIGQUERY\x10\x02\"S\x0A\x09EventType\x12\x1A\x0A\x16EVENT_TYPE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05START\x10\x01\x12\x08\x0A\x04STOP\x10\x02\x12\x09\x0A\x05QUERY\x10\x03\x12\x0A\x0A\x06CREATE\x10\x04B\x08\x0A\x06detail\"\xBA\x07\x0A\x0FGovernanceEvent\x12\x0F\x0A\x07message\x18\x01 \x01(\x09\x12G\x0A\x0Aevent_type\x18\x02 \x01(\x0E23.google.cloud.dataplex.v1.GovernanceEvent.EventType\x12E\x0A\x06entity\x18\x03 \x01(\x0B20.google.cloud.dataplex.v1.GovernanceEvent.EntityH\x00\x88\x01\x01\x1A\xD2\x01\x0A\x06Entity\x123\x0A\x06entity\x18\x01 \x01(\x09B#\xFAA \x0A\x1Edataplex.googleapis.com/Entity\x12P\x0A\x0Bentity_type\x18\x02 \x01(\x0E2;.google.cloud.dataplex.v1.GovernanceEvent.Entity.EntityType\"A\x0A\x0AEntityType\x12\x1B\x0A\x17ENTITY_TYPE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05TABLE\x10\x01\x12\x0B\x0A\x07FILESET\x10\x02\"\xA5\x04\x0A\x09EventType\x12\x1A\x0A\x16EVENT_TYPE_UNSPECIFIED\x10\x00\x12\x1E\x0A\x1ARESOURCE_IAM_POLICY_UPDATE\x10\x01\x12\x19\x0A\x15BIGQUERY_TABLE_CREATE\x10\x02\x12\x19\x0A\x15BIGQUERY_TABLE_UPDATE\x10\x03\x12\x19\x0A\x15BIGQUERY_TABLE_DELETE\x10\x04\x12\x1E\x0A\x1ABIGQUERY_CONNECTION_CREATE\x10\x05\x12\x1E\x0A\x1ABIGQUERY_CONNECTION_UPDATE\x10\x06\x12\x1E\x0A\x1ABIGQUERY_CONNECTION_DELETE\x10\x07\x12\x1C\x0A\x18BIGQUERY_TAXONOMY_CREATE\x10\x0A\x12\x1E\x0A\x1ABIGQUERY_POLICY_TAG_CREATE\x10\x0B\x12\x1E\x0A\x1ABIGQUERY_POLICY_TAG_DELETE\x10\x0C\x12&\x0A\"BIGQUERY_POLICY_TAG_SET_IAM_POLICY\x10\x0D\x12\x18\x0A\x14ACCESS_POLICY_UPDATE\x10\x0E\x12%\x0A!GOVERNANCE_RULE_MATCHED_RESOURCES\x10\x0F\x12(\x0A\$GOVERNANCE_RULE_SEARCH_LIMIT_EXCEEDS\x10\x10\x12\x1A\x0A\x16GOVERNANCE_RULE_ERRORS\x10\x11\x12\x1E\x0A\x1AGOVERNANCE_RULE_PROCESSING\x10\x12B\x09\x0A\x07_entity\"\xF3\x13\x0A\x0DDataScanEvent\x12\x13\x0A\x0Bdata_source\x18\x01 \x01(\x09\x12\x0E\x0A\x06job_id\x18\x02 \x01(\x09\x12/\x0A\x0Bcreate_time\x18\x0C \x01(\x0B2\x1A.google.protobuf.Timestamp\x12.\x0A\x0Astart_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12,\x0A\x08end_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12>\x0A\x04type\x18\x05 \x01(\x0E20.google.cloud.dataplex.v1.DataScanEvent.ScanType\x12<\x0A\x05state\x18\x06 \x01(\x0E2-.google.cloud.dataplex.v1.DataScanEvent.State\x12\x0F\x0A\x07message\x18\x07 \x01(\x09\x12\x14\x0A\x0Cspec_version\x18\x08 \x01(\x09\x12@\x0A\x07trigger\x18\x09 \x01(\x0E2/.google.cloud.dataplex.v1.DataScanEvent.Trigger\x12<\x0A\x05scope\x18\x0A \x01(\x0E2-.google.cloud.dataplex.v1.DataScanEvent.Scope\x12Q\x0A\x0Cdata_profile\x18e \x01(\x0B29.google.cloud.dataplex.v1.DataScanEvent.DataProfileResultH\x00\x12Q\x0A\x0Cdata_quality\x18f \x01(\x0B29.google.cloud.dataplex.v1.DataScanEvent.DataQualityResultH\x00\x12b\x0A\x14data_profile_configs\x18\xC9\x01 \x01(\x0B2A.google.cloud.dataplex.v1.DataScanEvent.DataProfileAppliedConfigsH\x01\x12b\x0A\x14data_quality_configs\x18\xCA\x01 \x01(\x0B2A.google.cloud.dataplex.v1.DataScanEvent.DataQualityAppliedConfigsH\x01\x12_\x0A\x18post_scan_actions_result\x18\x0B \x01(\x0B2=.google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult\x12\\\x0A\x19catalog_publishing_status\x18\x0D \x01(\x0B29.google.cloud.dataplex.v1.DataScanCatalogPublishingStatus\x1A&\x0A\x11DataProfileResult\x12\x11\x0A\x09row_count\x18\x01 \x01(\x03\x1A\x9C\x04\x0A\x11DataQualityResult\x12\x11\x0A\x09row_count\x18\x01 \x01(\x03\x12\x0E\x0A\x06passed\x18\x02 \x01(\x08\x12h\x0A\x10dimension_passed\x18\x03 \x03(\x0B2N.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult.DimensionPassedEntry\x12\x0D\x0A\x05score\x18\x04 \x01(\x02\x12f\x0A\x0Fdimension_score\x18\x05 \x03(\x0B2M.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult.DimensionScoreEntry\x12`\x0A\x0Ccolumn_score\x18\x06 \x03(\x0B2J.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult.ColumnScoreEntry\x1A6\x0A\x14DimensionPassedEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x08:\x028\x01\x1A5\x0A\x13DimensionScoreEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x02:\x028\x01\x1A2\x0A\x10ColumnScoreEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x02:\x028\x01\x1Ap\x0A\x19DataProfileAppliedConfigs\x12\x18\x0A\x10sampling_percent\x18\x01 \x01(\x02\x12\x1A\x0A\x12row_filter_applied\x18\x02 \x01(\x08\x12\x1D\x0A\x15column_filter_applied\x18\x03 \x01(\x08\x1AQ\x0A\x19DataQualityAppliedConfigs\x12\x18\x0A\x10sampling_percent\x18\x01 \x01(\x02\x12\x1A\x0A\x12row_filter_applied\x18\x02 \x01(\x08\x1A\xE6\x02\x0A\x15PostScanActionsResult\x12r\x0A\x16bigquery_export_result\x18\x01 \x01(\x0B2R.google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult.BigQueryExportResult\x1A\xD8\x01\x0A\x14BigQueryExportResult\x12g\x0A\x05state\x18\x01 \x01(\x0E2X.google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult.BigQueryExportResult.State\x12\x0F\x0A\x07message\x18\x02 \x01(\x09\"F\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09SUCCEEDED\x10\x01\x12\x0A\x0A\x06FAILED\x10\x02\x12\x0B\x0A\x07SKIPPED\x10\x03\"]\x0A\x08ScanType\x12\x19\x0A\x15SCAN_TYPE_UNSPECIFIED\x10\x00\x12\x10\x0A\x0CDATA_PROFILE\x10\x01\x12\x10\x0A\x0CDATA_QUALITY\x10\x02\x12\x12\x0A\x0EDATA_DISCOVERY\x10\x04\"b\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07STARTED\x10\x01\x12\x0D\x0A\x09SUCCEEDED\x10\x02\x12\x0A\x0A\x06FAILED\x10\x03\x12\x0D\x0A\x09CANCELLED\x10\x04\x12\x0B\x0A\x07CREATED\x10\x05\"M\x0A\x07Trigger\x12\x17\x0A\x13TRIGGER_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09ON_DEMAND\x10\x01\x12\x0C\x0A\x08SCHEDULE\x10\x02\x12\x0C\x0A\x08ONE_TIME\x10\x03\"9\x0A\x05Scope\x12\x15\x0A\x11SCOPE_UNSPECIFIED\x10\x00\x12\x08\x0A\x04FULL\x10\x01\x12\x0F\x0A\x0BINCREMENTAL\x10\x02B\x08\x0A\x06resultB\x10\x0A\x0EappliedConfigs\"\xB1\x07\x0A\x19DataQualityScanRuleResult\x12\x0E\x0A\x06job_id\x18\x01 \x01(\x09\x12\x13\x0A\x0Bdata_source\x18\x02 \x01(\x09\x12\x0E\x0A\x06column\x18\x03 \x01(\x09\x12\x11\x0A\x09rule_name\x18\x04 \x01(\x09\x12O\x0A\x09rule_type\x18\x05 \x01(\x0E2<.google.cloud.dataplex.v1.DataQualityScanRuleResult.RuleType\x12Z\x0A\x0Eevalution_type\x18\x06 \x01(\x0E2B.google.cloud.dataplex.v1.DataQualityScanRuleResult.EvaluationType\x12\x16\x0A\x0Erule_dimension\x18\x07 \x01(\x09\x12\x19\x0A\x11threshold_percent\x18\x08 \x01(\x01\x12J\x0A\x06result\x18\x09 \x01(\x0E2:.google.cloud.dataplex.v1.DataQualityScanRuleResult.Result\x12\x1B\x0A\x13evaluated_row_count\x18\x0A \x01(\x03\x12\x18\x0A\x10passed_row_count\x18\x0B \x01(\x03\x12\x16\x0A\x0Enull_row_count\x18\x0C \x01(\x03\x12\x1B\x0A\x13assertion_row_count\x18\x0D \x01(\x03\"\xAA\x02\x0A\x08RuleType\x12\x19\x0A\x15RULE_TYPE_UNSPECIFIED\x10\x00\x12\x18\x0A\x14NON_NULL_EXPECTATION\x10\x01\x12\x15\x0A\x11RANGE_EXPECTATION\x10\x02\x12\x15\x0A\x11REGEX_EXPECTATION\x10\x03\x12\x1D\x0A\x19ROW_CONDITION_EXPECTATION\x10\x04\x12\x13\x0A\x0FSET_EXPECTATION\x10\x05\x12\x1F\x0A\x1BSTATISTIC_RANGE_EXPECTATION\x10\x06\x12\x1F\x0A\x1BTABLE_CONDITION_EXPECTATION\x10\x07\x12\x1A\x0A\x16UNIQUENESS_EXPECTATION\x10\x08\x12\x11\x0A\x0DSQL_ASSERTION\x10\x09\x12\x16\x0A\x12TEMPLATE_REFERENCE\x10\x0A\"M\x0A\x0EEvaluationType\x12\x1F\x0A\x1BEVALUATION_TYPE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07PER_ROW\x10\x01\x12\x0D\x0A\x09AGGREGATE\x10\x02\"8\x0A\x06Result\x12\x16\x0A\x12RESULT_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06PASSED\x10\x01\x12\x0A\x0A\x06FAILED\x10\x02\"\x9A\x03\x0A\x15BusinessGlossaryEvent\x12\x0F\x0A\x07message\x18\x01 \x01(\x09\x12M\x0A\x0Aevent_type\x18\x02 \x01(\x0E29.google.cloud.dataplex.v1.BusinessGlossaryEvent.EventType\x12\x10\x0A\x08resource\x18\x03 \x01(\x09\"\x8E\x02\x0A\x09EventType\x12\x1A\x0A\x16EVENT_TYPE_UNSPECIFIED\x10\x00\x12\x13\x0A\x0FGLOSSARY_CREATE\x10\x01\x12\x13\x0A\x0FGLOSSARY_UPDATE\x10\x02\x12\x13\x0A\x0FGLOSSARY_DELETE\x10\x03\x12\x1C\x0A\x18GLOSSARY_CATEGORY_CREATE\x10\x04\x12\x1C\x0A\x18GLOSSARY_CATEGORY_UPDATE\x10\x05\x12\x1C\x0A\x18GLOSSARY_CATEGORY_DELETE\x10\x06\x12\x18\x0A\x14GLOSSARY_TERM_CREATE\x10\x07\x12\x18\x0A\x14GLOSSARY_TERM_UPDATE\x10\x08\x12\x18\x0A\x14GLOSSARY_TERM_DELETE\x10\x09\"\xD2\x01\x0A\x0EEntryLinkEvent\x12\x0F\x0A\x07message\x18\x01 \x01(\x09\x12F\x0A\x0Aevent_type\x18\x02 \x01(\x0E22.google.cloud.dataplex.v1.EntryLinkEvent.EventType\x12\x10\x0A\x08resource\x18\x03 \x01(\x09\"U\x0A\x09EventType\x12\x1A\x0A\x16EVENT_TYPE_UNSPECIFIED\x10\x00\x12\x15\x0A\x11ENTRY_LINK_CREATE\x10\x01\x12\x15\x0A\x11ENTRY_LINK_DELETE\x10\x02Be\x0A\x1Ccom.google.cloud.dataplex.v1B\x09LogsProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Metadata.php b/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Metadata.php new file mode 100644 index 000000000000..d12ce793e0c0 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Metadata.php @@ -0,0 +1,30 @@ +internalAddGeneratedFile( + "\x0A\xD89\x0A'google/cloud/dataplex/v1/metadata.proto\x12\x18google.cloud.dataplex.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\x9E\x01\x0A\x13CreateEntityRequest\x124\x0A\x06parent\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Zone\x125\x0A\x06entity\x18\x03 \x01(\x0B2 .google.cloud.dataplex.v1.EntityB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"h\x0A\x13UpdateEntityRequest\x125\x0A\x06entity\x18\x02 \x01(\x0B2 .google.cloud.dataplex.v1.EntityB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"^\x0A\x13DeleteEntityRequest\x124\x0A\x04name\x18\x01 \x01(\x09B&\xE0A\x02\xFAA \x0A\x1Edataplex.googleapis.com/Entity\x12\x11\x0A\x04etag\x18\x02 \x01(\x09B\x03\xE0A\x02\"\xA3\x02\x0A\x13ListEntitiesRequest\x124\x0A\x06parent\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Zone\x12K\x0A\x04view\x18\x02 \x01(\x0E28.google.cloud.dataplex.v1.ListEntitiesRequest.EntityViewB\x03\xE0A\x02\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\"C\x0A\x0AEntityView\x12\x1B\x0A\x17ENTITY_VIEW_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06TABLES\x10\x01\x12\x0C\x0A\x08FILESETS\x10\x02\"c\x0A\x14ListEntitiesResponse\x122\x0A\x08entities\x18\x01 \x03(\x0B2 .google.cloud.dataplex.v1.Entity\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xDE\x01\x0A\x10GetEntityRequest\x124\x0A\x04name\x18\x01 \x01(\x09B&\xE0A\x02\xFAA \x0A\x1Edataplex.googleapis.com/Entity\x12H\x0A\x04view\x18\x02 \x01(\x0E25.google.cloud.dataplex.v1.GetEntityRequest.EntityViewB\x03\xE0A\x01\"J\x0A\x0AEntityView\x12\x1B\x0A\x17ENTITY_VIEW_UNSPECIFIED\x10\x00\x12\x09\x0A\x05BASIC\x10\x01\x12\x0A\x0A\x06SCHEMA\x10\x02\x12\x08\x0A\x04FULL\x10\x04\"\x95\x01\x0A\x15ListPartitionsRequest\x126\x0A\x06parent\x18\x01 \x01(\x09B&\xE0A\x02\xFAA \x0A\x1Edataplex.googleapis.com/Entity\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\"\xA9\x01\x0A\x16CreatePartitionRequest\x126\x0A\x06parent\x18\x01 \x01(\x09B&\xE0A\x02\xFAA \x0A\x1Edataplex.googleapis.com/Entity\x12;\x0A\x09partition\x18\x03 \x01(\x0B2#.google.cloud.dataplex.v1.PartitionB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"f\x0A\x16DeletePartitionRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataplex.googleapis.com/Partition\x12\x13\x0A\x04etag\x18\x02 \x01(\x09B\x05\x18\x01\xE0A\x01\"j\x0A\x16ListPartitionsResponse\x127\x0A\x0Apartitions\x18\x01 \x03(\x0B2#.google.cloud.dataplex.v1.Partition\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"N\x0A\x13GetPartitionRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataplex.googleapis.com/Partition\"\xC9\x09\x0A\x06Entity\x124\x0A\x04name\x18\x01 \x01(\x09B&\xE0A\x03\xFAA \x0A\x1Edataplex.googleapis.com/Entity\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x03 \x01(\x09B\x03\xE0A\x01\x124\x0A\x0Bcreate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x0F\x0A\x02id\x18\x07 \x01(\x09B\x03\xE0A\x02\x12\x11\x0A\x04etag\x18\x08 \x01(\x09B\x03\xE0A\x01\x12;\x0A\x04type\x18\x0A \x01(\x0E2%.google.cloud.dataplex.v1.Entity.TypeB\x06\xE0A\x02\xE0A\x05\x12\x15\x0A\x05asset\x18\x0B \x01(\x09B\x06\xE0A\x02\xE0A\x05\x12\x19\x0A\x09data_path\x18\x0C \x01(\x09B\x06\xE0A\x02\xE0A\x05\x12\x1E\x0A\x11data_path_pattern\x18\x0D \x01(\x09B\x03\xE0A\x01\x12\x1A\x0A\x0Dcatalog_entry\x18\x0E \x01(\x09B\x03\xE0A\x03\x12?\x0A\x06system\x18\x0F \x01(\x0E2'.google.cloud.dataplex.v1.StorageSystemB\x06\xE0A\x02\xE0A\x05\x12<\x0A\x06format\x18\x10 \x01(\x0B2'.google.cloud.dataplex.v1.StorageFormatB\x03\xE0A\x02\x12P\x0A\x0Dcompatibility\x18\x13 \x01(\x0B24.google.cloud.dataplex.v1.Entity.CompatibilityStatusB\x03\xE0A\x03\x12<\x0A\x06access\x18\x15 \x01(\x0B2'.google.cloud.dataplex.v1.StorageAccessB\x03\xE0A\x03\x12\x10\x0A\x03uid\x18\x16 \x01(\x09B\x03\xE0A\x03\x125\x0A\x06schema\x182 \x01(\x0B2 .google.cloud.dataplex.v1.SchemaB\x03\xE0A\x02\x1A\x90\x02\x0A\x13CompatibilityStatus\x12_\x0A\x0Ehive_metastore\x18\x01 \x01(\x0B2B.google.cloud.dataplex.v1.Entity.CompatibilityStatus.CompatibilityB\x03\xE0A\x03\x12Y\x0A\x08bigquery\x18\x02 \x01(\x0B2B.google.cloud.dataplex.v1.Entity.CompatibilityStatus.CompatibilityB\x03\xE0A\x03\x1A=\x0A\x0DCompatibility\x12\x17\x0A\x0Acompatible\x18\x01 \x01(\x08B\x03\xE0A\x03\x12\x13\x0A\x06reason\x18\x02 \x01(\x09B\x03\xE0A\x03\"4\x0A\x04Type\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05TABLE\x10\x01\x12\x0B\x0A\x07FILESET\x10\x02:x\xEAAu\x0A\x1Edataplex.googleapis.com/Entity\x12Sprojects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/entities/{entity}\"\xA1\x02\x0A\x09Partition\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x03\xFAA#\x0A!dataplex.googleapis.com/Partition\x12\x16\x0A\x06values\x18\x02 \x03(\x09B\x06\xE0A\x02\xE0A\x05\x12\x18\x0A\x08location\x18\x03 \x01(\x09B\x06\xE0A\x02\xE0A\x05\x12\x13\x0A\x04etag\x18\x04 \x01(\x09B\x05\x18\x01\xE0A\x01:\x93\x01\xEAA\x8F\x01\x0A!dataplex.googleapis.com/Partition\x12jprojects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/entities/{entity}/partitions/{partition}\"\xB7\x07\x0A\x06Schema\x12\x19\x0A\x0Cuser_managed\x18\x01 \x01(\x08B\x03\xE0A\x02\x12A\x0A\x06fields\x18\x02 \x03(\x0B2,.google.cloud.dataplex.v1.Schema.SchemaFieldB\x03\xE0A\x01\x12N\x0A\x10partition_fields\x18\x03 \x03(\x0B2/.google.cloud.dataplex.v1.Schema.PartitionFieldB\x03\xE0A\x01\x12M\x0A\x0Fpartition_style\x18\x04 \x01(\x0E2/.google.cloud.dataplex.v1.Schema.PartitionStyleB\x03\xE0A\x01\x1A\xF1\x01\x0A\x0BSchemaField\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Bdescription\x18\x02 \x01(\x09B\x03\xE0A\x01\x128\x0A\x04type\x18\x03 \x01(\x0E2%.google.cloud.dataplex.v1.Schema.TypeB\x03\xE0A\x02\x128\x0A\x04mode\x18\x04 \x01(\x0E2%.google.cloud.dataplex.v1.Schema.ModeB\x03\xE0A\x02\x12A\x0A\x06fields\x18\x0A \x03(\x0B2,.google.cloud.dataplex.v1.Schema.SchemaFieldB\x03\xE0A\x01\x1A`\x0A\x0EPartitionField\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12;\x0A\x04type\x18\x02 \x01(\x0E2%.google.cloud.dataplex.v1.Schema.TypeB\x06\xE0A\x02\xE0A\x05\"\xC9\x01\x0A\x04Type\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07BOOLEAN\x10\x01\x12\x08\x0A\x04BYTE\x10\x02\x12\x09\x0A\x05INT16\x10\x03\x12\x09\x0A\x05INT32\x10\x04\x12\x09\x0A\x05INT64\x10\x05\x12\x09\x0A\x05FLOAT\x10\x06\x12\x0A\x0A\x06DOUBLE\x10\x07\x12\x0B\x0A\x07DECIMAL\x10\x08\x12\x0A\x0A\x06STRING\x10\x09\x12\x0A\x0A\x06BINARY\x10\x0A\x12\x0D\x0A\x09TIMESTAMP\x10\x0B\x12\x08\x0A\x04DATE\x10\x0C\x12\x08\x0A\x04TIME\x10\x0D\x12\x0A\x0A\x06RECORD\x10\x0E\x12\x08\x0A\x04NULL\x10d\"F\x0A\x04Mode\x12\x14\x0A\x10MODE_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08REQUIRED\x10\x01\x12\x0C\x0A\x08NULLABLE\x10\x02\x12\x0C\x0A\x08REPEATED\x10\x03\"F\x0A\x0EPartitionStyle\x12\x1F\x0A\x1BPARTITION_STYLE_UNSPECIFIED\x10\x00\x12\x13\x0A\x0FHIVE_COMPATIBLE\x10\x01\"\xF4\x06\x0A\x0DStorageFormat\x12C\x0A\x06format\x18\x01 \x01(\x0E2..google.cloud.dataplex.v1.StorageFormat.FormatB\x03\xE0A\x03\x12Z\x0A\x12compression_format\x18\x02 \x01(\x0E29.google.cloud.dataplex.v1.StorageFormat.CompressionFormatB\x03\xE0A\x01\x12\x16\x0A\x09mime_type\x18\x03 \x01(\x09B\x03\xE0A\x02\x12F\x0A\x03csv\x18\x0A \x01(\x0B22.google.cloud.dataplex.v1.StorageFormat.CsvOptionsB\x03\xE0A\x01H\x00\x12H\x0A\x04json\x18\x0B \x01(\x0B23.google.cloud.dataplex.v1.StorageFormat.JsonOptionsB\x03\xE0A\x01H\x00\x12N\x0A\x07iceberg\x18\x0C \x01(\x0B26.google.cloud.dataplex.v1.StorageFormat.IcebergOptionsB\x03\xE0A\x01H\x00\x1Ai\x0A\x0ACsvOptions\x12\x15\x0A\x08encoding\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x18\x0A\x0Bheader_rows\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x16\x0A\x09delimiter\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x12\x0A\x05quote\x18\x04 \x01(\x09B\x03\xE0A\x01\x1A\$\x0A\x0BJsonOptions\x12\x15\x0A\x08encoding\x18\x01 \x01(\x09B\x03\xE0A\x01\x1A0\x0A\x0EIcebergOptions\x12\x1E\x0A\x11metadata_location\x18\x01 \x01(\x09B\x03\xE0A\x01\"\xAB\x01\x0A\x06Format\x12\x16\x0A\x12FORMAT_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07PARQUET\x10\x01\x12\x08\x0A\x04AVRO\x10\x02\x12\x07\x0A\x03ORC\x10\x03\x12\x07\x0A\x03CSV\x10d\x12\x08\x0A\x04JSON\x10e\x12\x0A\x0A\x05IMAGE\x10\xC8\x01\x12\x0A\x0A\x05AUDIO\x10\xC9\x01\x12\x0A\x0A\x05VIDEO\x10\xCA\x01\x12\x09\x0A\x04TEXT\x10\xCB\x01\x12\x0D\x0A\x08TFRECORD\x10\xCC\x01\x12\x0A\x0A\x05OTHER\x10\xE8\x07\x12\x0C\x0A\x07UNKNOWN\x10\xE9\x07\"L\x0A\x11CompressionFormat\x12\"\x0A\x1ECOMPRESSION_FORMAT_UNSPECIFIED\x10\x00\x12\x08\x0A\x04GZIP\x10\x02\x12\x09\x0A\x05BZIP2\x10\x03B\x09\x0A\x07options\"\x9A\x01\x0A\x0DStorageAccess\x12E\x0A\x04read\x18\x15 \x01(\x0E22.google.cloud.dataplex.v1.StorageAccess.AccessModeB\x03\xE0A\x03\"B\x0A\x0AAccessMode\x12\x1B\x0A\x17ACCESS_MODE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06DIRECT\x10\x01\x12\x0B\x0A\x07MANAGED\x10\x02*P\x0A\x0DStorageSystem\x12\x1E\x0A\x1ASTORAGE_SYSTEM_UNSPECIFIED\x10\x00\x12\x11\x0A\x0DCLOUD_STORAGE\x10\x01\x12\x0C\x0A\x08BIGQUERY\x10\x022\xBD\x0E\x0A\x0FMetadataService\x12\xBD\x01\x0A\x0CCreateEntity\x12-.google.cloud.dataplex.v1.CreateEntityRequest\x1A .google.cloud.dataplex.v1.Entity\"\\\xDAA\x0Dparent,entity\x82\xD3\xE4\x93\x02F\"*\x12\x12internalAddGeneratedFile( + "\x0A\xEE\x06\x0A)google/cloud/dataplex/v1/processing.proto\x12\x18google.cloud.dataplex.v1\x1A\x19google/api/resource.proto\x1A\x1Egoogle/protobuf/duration.proto\"\xCA\x02\x0A\x07Trigger\x12?\x0A\x09on_demand\x18d \x01(\x0B2*.google.cloud.dataplex.v1.Trigger.OnDemandH\x00\x12>\x0A\x08schedule\x18e \x01(\x0B2*.google.cloud.dataplex.v1.Trigger.ScheduleH\x00\x12=\x0A\x08one_time\x18f \x01(\x0B2).google.cloud.dataplex.v1.Trigger.OneTimeH\x00\x1A\x0A\x0A\x08OnDemand\x1A\x1D\x0A\x08Schedule\x12\x11\x0A\x04cron\x18\x01 \x01(\x09B\x03\xE0A\x02\x1AL\x0A\x07OneTime\x12A\x0A\x19ttl_after_scan_completion\x18\x01 \x01(\x0B2\x19.google.protobuf.DurationB\x03\xE0A\x01B\x06\x0A\x04mode\"i\x0A\x0ADataSource\x128\x0A\x06entity\x18d \x01(\x09B&\xE0A\x05\xFAA \x0A\x1Edataplex.googleapis.com/EntityH\x00\x12\x17\x0A\x08resource\x18e \x01(\x09B\x03\xE0A\x05H\x00B\x08\x0A\x06source\"\xBE\x01\x0A\x0BScannedData\x12S\x0A\x11incremental_field\x18\x01 \x01(\x0B26.google.cloud.dataplex.v1.ScannedData.IncrementalFieldH\x00\x1AL\x0A\x10IncrementalField\x12\x12\x0A\x05field\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x12\x0A\x05start\x18\x02 \x01(\x09B\x03\xE0A\x03\x12\x10\x0A\x03end\x18\x03 \x01(\x09B\x03\xE0A\x03B\x0C\x0A\x0Adata_rangeBk\x0A\x1Ccom.google.cloud.dataplex.v1B\x0FProcessingProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Resources.php b/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Resources.php new file mode 100644 index 000000000000..99e233b1007d --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Resources.php @@ -0,0 +1,28 @@ +internalAddGeneratedFile( + "\x0A\xBA>\x0A(google/cloud/dataplex/v1/resources.proto\x12\x18google.cloud.dataplex.v1\x1A\x19google/api/resource.proto\x1A\x1Egoogle/protobuf/duration.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xFA\x07\x0A\x04Lake\x122\x0A\x04name\x18\x01 \x01(\x09B\$\xE0A\x03\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Lake\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x10\x0A\x03uid\x18\x03 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12?\x0A\x06labels\x18\x06 \x03(\x0B2*.google.cloud.dataplex.v1.Lake.LabelsEntryB\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x07 \x01(\x09B\x03\xE0A\x01\x123\x0A\x05state\x18\x08 \x01(\x0E2\x1F.google.cloud.dataplex.v1.StateB\x03\xE0A\x03\x12\x1C\x0A\x0Fservice_account\x18\x09 \x01(\x09B\x03\xE0A\x03\x12@\x0A\x09metastore\x18f \x01(\x0B2(.google.cloud.dataplex.v1.Lake.MetastoreB\x03\xE0A\x01\x12@\x0A\x0Casset_status\x18g \x01(\x0B2%.google.cloud.dataplex.v1.AssetStatusB\x03\xE0A\x03\x12M\x0A\x10metastore_status\x18h \x01(\x0B2..google.cloud.dataplex.v1.Lake.MetastoreStatusB\x03\xE0A\x03\x1A!\x0A\x09Metastore\x12\x14\x0A\x07service\x18\x01 \x01(\x09B\x03\xE0A\x01\x1A\xF8\x01\x0A\x0FMetastoreStatus\x12C\x0A\x05state\x18\x01 \x01(\x0E24.google.cloud.dataplex.v1.Lake.MetastoreStatus.State\x12\x0F\x0A\x07message\x18\x02 \x01(\x09\x12/\x0A\x0Bupdate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x10\x0A\x08endpoint\x18\x04 \x01(\x09\"L\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x08\x0A\x04NONE\x10\x01\x12\x09\x0A\x05READY\x10\x02\x12\x0C\x0A\x08UPDATING\x10\x03\x12\x09\x0A\x05ERROR\x10\x04\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:W\xEAAT\x0A\x1Cdataplex.googleapis.com/Lake\x124projects/{project}/locations/{location}/lakes/{lake}\"~\x0A\x0BAssetStatus\x12/\x0A\x0Bupdate_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x15\x0A\x0Dactive_assets\x18\x02 \x01(\x05\x12'\x0A\x1Fsecurity_policy_applying_assets\x18\x03 \x01(\x05\"\xF4\x0B\x0A\x04Zone\x122\x0A\x04name\x18\x01 \x01(\x09B\$\xE0A\x03\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Zone\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x10\x0A\x03uid\x18\x03 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12?\x0A\x06labels\x18\x06 \x03(\x0B2*.google.cloud.dataplex.v1.Zone.LabelsEntryB\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x07 \x01(\x09B\x03\xE0A\x01\x123\x0A\x05state\x18\x08 \x01(\x0E2\x1F.google.cloud.dataplex.v1.StateB\x03\xE0A\x03\x129\x0A\x04type\x18\x09 \x01(\x0E2#.google.cloud.dataplex.v1.Zone.TypeB\x06\xE0A\x02\xE0A\x05\x12I\x0A\x0Ediscovery_spec\x18g \x01(\x0B2,.google.cloud.dataplex.v1.Zone.DiscoverySpecB\x03\xE0A\x01\x12G\x0A\x0Dresource_spec\x18h \x01(\x0B2+.google.cloud.dataplex.v1.Zone.ResourceSpecB\x03\xE0A\x02\x12@\x0A\x0Casset_status\x18i \x01(\x0B2%.google.cloud.dataplex.v1.AssetStatusB\x03\xE0A\x03\x1A\xBB\x01\x0A\x0CResourceSpec\x12W\x0A\x0Dlocation_type\x18\x01 \x01(\x0E28.google.cloud.dataplex.v1.Zone.ResourceSpec.LocationTypeB\x06\xE0A\x02\xE0A\x05\"R\x0A\x0CLocationType\x12\x1D\x0A\x19LOCATION_TYPE_UNSPECIFIED\x10\x00\x12\x11\x0A\x0DSINGLE_REGION\x10\x01\x12\x10\x0A\x0CMULTI_REGION\x10\x02\x1A\xF6\x03\x0A\x0DDiscoverySpec\x12\x14\x0A\x07enabled\x18\x01 \x01(\x08B\x03\xE0A\x02\x12\x1D\x0A\x10include_patterns\x18\x02 \x03(\x09B\x03\xE0A\x01\x12\x1D\x0A\x10exclude_patterns\x18\x03 \x03(\x09B\x03\xE0A\x01\x12Q\x0A\x0Bcsv_options\x18\x04 \x01(\x0B27.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptionsB\x03\xE0A\x01\x12S\x0A\x0Cjson_options\x18\x05 \x01(\x0B28.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptionsB\x03\xE0A\x01\x12\x17\x0A\x08schedule\x18\x0A \x01(\x09B\x03\xE0A\x01H\x00\x1Az\x0A\x0ACsvOptions\x12\x18\x0A\x0Bheader_rows\x18\x01 \x01(\x05B\x03\xE0A\x01\x12\x16\x0A\x09delimiter\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08encoding\x18\x03 \x01(\x09B\x03\xE0A\x01\x12#\x0A\x16disable_type_inference\x18\x04 \x01(\x08B\x03\xE0A\x01\x1AI\x0A\x0BJsonOptions\x12\x15\x0A\x08encoding\x18\x01 \x01(\x09B\x03\xE0A\x01\x12#\x0A\x16disable_type_inference\x18\x02 \x01(\x08B\x03\xE0A\x01B\x09\x0A\x07trigger\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"2\x0A\x04Type\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x07\x0A\x03RAW\x10\x01\x12\x0B\x0A\x07CURATED\x10\x02:d\xEAAa\x0A\x1Cdataplex.googleapis.com/Zone\x12Aprojects/{project}/locations/{location}/lakes/{lake}/zones/{zone}\"\xAB\x11\x0A\x06Action\x12;\x0A\x08category\x18\x01 \x01(\x0E2).google.cloud.dataplex.v1.Action.Category\x12\x0D\x0A\x05issue\x18\x02 \x01(\x09\x12/\x0A\x0Bdetect_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.Timestamp\x124\x0A\x04name\x18\x05 \x01(\x09B&\xE0A\x03\xFAA \x0A\x1Edataplex.googleapis.com/Action\x122\x0A\x04lake\x18\x06 \x01(\x09B\$\xE0A\x03\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Lake\x122\x0A\x04zone\x18\x07 \x01(\x09B\$\xE0A\x03\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Zone\x124\x0A\x05asset\x18\x08 \x01(\x09B%\xE0A\x03\xFAA\x1F\x0A\x1Ddataplex.googleapis.com/Asset\x12\x16\x0A\x0Edata_locations\x18\x09 \x03(\x09\x12Q\x0A\x13invalid_data_format\x18\x0A \x01(\x0B22.google.cloud.dataplex.v1.Action.InvalidDataFormatH\x00\x12[\x0A\x18incompatible_data_schema\x18\x0B \x01(\x0B27.google.cloud.dataplex.v1.Action.IncompatibleDataSchemaH\x00\x12W\x0A\x16invalid_data_partition\x18\x0C \x01(\x0B25.google.cloud.dataplex.v1.Action.InvalidDataPartitionH\x00\x12D\x0A\x0Cmissing_data\x18\x0D \x01(\x0B2,.google.cloud.dataplex.v1.Action.MissingDataH\x00\x12L\x0A\x10missing_resource\x18\x0E \x01(\x0B20.google.cloud.dataplex.v1.Action.MissingResourceH\x00\x12V\x0A\x15unauthorized_resource\x18\x0F \x01(\x0B25.google.cloud.dataplex.v1.Action.UnauthorizedResourceH\x00\x12b\x0A\x1Cfailed_security_policy_apply\x18\x15 \x01(\x0B2:.google.cloud.dataplex.v1.Action.FailedSecurityPolicyApplyH\x00\x12]\x0A\x19invalid_data_organization\x18\x16 \x01(\x0B28.google.cloud.dataplex.v1.Action.InvalidDataOrganizationH\x00\x1A\x11\x0A\x0FMissingResource\x1A\x16\x0A\x14UnauthorizedResource\x1A*\x0A\x19FailedSecurityPolicyApply\x12\x0D\x0A\x05asset\x18\x01 \x01(\x09\x1A`\x0A\x11InvalidDataFormat\x12\x1E\x0A\x16sampled_data_locations\x18\x01 \x03(\x09\x12\x17\x0A\x0Fexpected_format\x18\x02 \x01(\x09\x12\x12\x0A\x0Anew_format\x18\x03 \x01(\x09\x1A\xA0\x02\x0A\x16IncompatibleDataSchema\x12\x0D\x0A\x05table\x18\x01 \x01(\x09\x12\x17\x0A\x0Fexisting_schema\x18\x02 \x01(\x09\x12\x12\x0A\x0Anew_schema\x18\x03 \x01(\x09\x12\x1E\x0A\x16sampled_data_locations\x18\x04 \x03(\x09\x12[\x0A\x0Dschema_change\x18\x05 \x01(\x0E2D.google.cloud.dataplex.v1.Action.IncompatibleDataSchema.SchemaChange\"M\x0A\x0CSchemaChange\x12\x1D\x0A\x19SCHEMA_CHANGE_UNSPECIFIED\x10\x00\x12\x10\x0A\x0CINCOMPATIBLE\x10\x01\x12\x0C\x0A\x08MODIFIED\x10\x02\x1A\xE1\x01\x0A\x14InvalidDataPartition\x12d\x0A\x12expected_structure\x18\x01 \x01(\x0E2H.google.cloud.dataplex.v1.Action.InvalidDataPartition.PartitionStructure\"c\x0A\x12PartitionStructure\x12#\x0A\x1FPARTITION_STRUCTURE_UNSPECIFIED\x10\x00\x12\x13\x0A\x0FCONSISTENT_KEYS\x10\x01\x12\x13\x0A\x0FHIVE_STYLE_KEYS\x10\x02\x1A\x0D\x0A\x0BMissingData\x1A\x19\x0A\x17InvalidDataOrganization\"f\x0A\x08Category\x12\x18\x0A\x14CATEGORY_UNSPECIFIED\x10\x00\x12\x17\x0A\x13RESOURCE_MANAGEMENT\x10\x01\x12\x13\x0A\x0FSECURITY_POLICY\x10\x02\x12\x12\x0A\x0EDATA_DISCOVERY\x10\x03:\xA2\x02\xEAA\x9E\x02\x0A\x1Edataplex.googleapis.com/Action\x12Eprojects/{project}/locations/{location}/lakes/{lake}/actions/{action}\x12Rprojects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/actions/{action}\x12aprojects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/assets/{asset}/actions/{action}B\x09\x0A\x07details\"\xA4\x15\x0A\x05Asset\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x03\xFAA\x1F\x0A\x1Ddataplex.googleapis.com/Asset\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x10\x0A\x03uid\x18\x03 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12@\x0A\x06labels\x18\x06 \x03(\x0B2+.google.cloud.dataplex.v1.Asset.LabelsEntryB\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x07 \x01(\x09B\x03\xE0A\x01\x123\x0A\x05state\x18\x08 \x01(\x0E2\x1F.google.cloud.dataplex.v1.StateB\x03\xE0A\x03\x12H\x0A\x0Dresource_spec\x18d \x01(\x0B2,.google.cloud.dataplex.v1.Asset.ResourceSpecB\x03\xE0A\x02\x12L\x0A\x0Fresource_status\x18e \x01(\x0B2..google.cloud.dataplex.v1.Asset.ResourceStatusB\x03\xE0A\x03\x12L\x0A\x0Fsecurity_status\x18g \x01(\x0B2..google.cloud.dataplex.v1.Asset.SecurityStatusB\x03\xE0A\x03\x12J\x0A\x0Ediscovery_spec\x18j \x01(\x0B2-.google.cloud.dataplex.v1.Asset.DiscoverySpecB\x03\xE0A\x01\x12N\x0A\x10discovery_status\x18k \x01(\x0B2/.google.cloud.dataplex.v1.Asset.DiscoveryStatusB\x03\xE0A\x03\x1A\xDB\x01\x0A\x0ESecurityStatus\x12C\x0A\x05state\x18\x01 \x01(\x0E24.google.cloud.dataplex.v1.Asset.SecurityStatus.State\x12\x0F\x0A\x07message\x18\x02 \x01(\x09\x12/\x0A\x0Bupdate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\"B\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05READY\x10\x01\x12\x0C\x0A\x08APPLYING\x10\x02\x12\x09\x0A\x05ERROR\x10\x03\x1A\xF8\x03\x0A\x0DDiscoverySpec\x12\x14\x0A\x07enabled\x18\x01 \x01(\x08B\x03\xE0A\x01\x12\x1D\x0A\x10include_patterns\x18\x02 \x03(\x09B\x03\xE0A\x01\x12\x1D\x0A\x10exclude_patterns\x18\x03 \x03(\x09B\x03\xE0A\x01\x12R\x0A\x0Bcsv_options\x18\x04 \x01(\x0B28.google.cloud.dataplex.v1.Asset.DiscoverySpec.CsvOptionsB\x03\xE0A\x01\x12T\x0A\x0Cjson_options\x18\x05 \x01(\x0B29.google.cloud.dataplex.v1.Asset.DiscoverySpec.JsonOptionsB\x03\xE0A\x01\x12\x17\x0A\x08schedule\x18\x0A \x01(\x09B\x03\xE0A\x01H\x00\x1Az\x0A\x0ACsvOptions\x12\x18\x0A\x0Bheader_rows\x18\x01 \x01(\x05B\x03\xE0A\x01\x12\x16\x0A\x09delimiter\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08encoding\x18\x03 \x01(\x09B\x03\xE0A\x01\x12#\x0A\x16disable_type_inference\x18\x04 \x01(\x08B\x03\xE0A\x01\x1AI\x0A\x0BJsonOptions\x12\x15\x0A\x08encoding\x18\x01 \x01(\x09B\x03\xE0A\x01\x12#\x0A\x16disable_type_inference\x18\x02 \x01(\x08B\x03\xE0A\x01B\x09\x0A\x07trigger\x1A\xCE\x02\x0A\x0CResourceSpec\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x05\x12G\x0A\x04type\x18\x02 \x01(\x0E21.google.cloud.dataplex.v1.Asset.ResourceSpec.TypeB\x06\xE0A\x02\xE0A\x05\x12V\x0A\x10read_access_mode\x18\x05 \x01(\x0E27.google.cloud.dataplex.v1.Asset.ResourceSpec.AccessModeB\x03\xE0A\x01\"F\x0A\x04Type\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x12\x0A\x0ESTORAGE_BUCKET\x10\x01\x12\x14\x0A\x10BIGQUERY_DATASET\x10\x02\"B\x0A\x0AAccessMode\x12\x1B\x0A\x17ACCESS_MODE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06DIRECT\x10\x01\x12\x0B\x0A\x07MANAGED\x10\x02\x1A\xF3\x01\x0A\x0EResourceStatus\x12C\x0A\x05state\x18\x01 \x01(\x0E24.google.cloud.dataplex.v1.Asset.ResourceStatus.State\x12\x0F\x0A\x07message\x18\x02 \x01(\x09\x12/\x0A\x0Bupdate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\$\x0A\x17managed_access_identity\x18\x04 \x01(\x09B\x03\xE0A\x03\"4\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05READY\x10\x01\x12\x09\x0A\x05ERROR\x10\x02\x1A\xF4\x03\x0A\x0FDiscoveryStatus\x12D\x0A\x05state\x18\x01 \x01(\x0E25.google.cloud.dataplex.v1.Asset.DiscoveryStatus.State\x12\x0F\x0A\x07message\x18\x02 \x01(\x09\x12/\x0A\x0Bupdate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\x121\x0A\x0Dlast_run_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12D\x0A\x05stats\x18\x06 \x01(\x0B25.google.cloud.dataplex.v1.Asset.DiscoveryStatus.Stats\x124\x0A\x11last_run_duration\x18\x07 \x01(\x0B2\x19.google.protobuf.Duration\x1AP\x0A\x05Stats\x12\x12\x0A\x0Adata_items\x18\x01 \x01(\x03\x12\x11\x0A\x09data_size\x18\x02 \x01(\x03\x12\x0E\x0A\x06tables\x18\x03 \x01(\x03\x12\x10\x0A\x08filesets\x18\x04 \x01(\x03\"X\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09SCHEDULED\x10\x01\x12\x0F\x0A\x0BIN_PROGRESS\x10\x02\x12\x0A\x0A\x06PAUSED\x10\x03\x12\x0C\x0A\x08DISABLED\x10\x05\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:t\xEAAq\x0A\x1Ddataplex.googleapis.com/Asset\x12Pprojects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/assets/{asset}*[\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06ACTIVE\x10\x01\x12\x0C\x0A\x08CREATING\x10\x02\x12\x0C\x0A\x08DELETING\x10\x03\x12\x13\x0A\x0FACTION_REQUIRED\x10\x04Bj\x0A\x1Ccom.google.cloud.dataplex.v1B\x0EResourcesProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Security.php b/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Security.php new file mode 100644 index 000000000000..a766567c33e9 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Security.php @@ -0,0 +1,25 @@ +internalAddGeneratedFile( + "\x0A\xB5\x02\x0A'google/cloud/dataplex/v1/security.proto\x12\x18google.cloud.dataplex.v1\"U\x0A\x12ResourceAccessSpec\x12\x14\x0A\x07readers\x18\x01 \x03(\x09B\x03\xE0A\x01\x12\x14\x0A\x07writers\x18\x02 \x03(\x09B\x03\xE0A\x01\x12\x13\x0A\x06owners\x18\x03 \x03(\x09B\x03\xE0A\x01\"&\x0A\x0EDataAccessSpec\x12\x14\x0A\x07readers\x18\x01 \x03(\x09B\x03\xE0A\x01Bi\x0A\x1Ccom.google.cloud.dataplex.v1B\x0DSecurityProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Service.php b/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Service.php new file mode 100644 index 000000000000..46b36b4d7e8a --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Service.php @@ -0,0 +1,34 @@ +internalAddGeneratedFile( + "\x0A\xA2P\x0A&google/cloud/dataplex/v1/service.proto\x12\x18google.cloud.dataplex.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A(google/cloud/dataplex/v1/resources.proto\x1A\$google/cloud/dataplex/v1/tasks.proto\x1A#google/longrunning/operations.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xB3\x01\x0A\x11CreateLakeRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12\x14\x0A\x07lake_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x121\x0A\x04lake\x18\x03 \x01(\x0B2\x1E.google.cloud.dataplex.v1.LakeB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"\x98\x01\x0A\x11UpdateLakeRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x121\x0A\x04lake\x18\x02 \x01(\x0B2\x1E.google.cloud.dataplex.v1.LakeB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"G\x0A\x11DeleteLakeRequest\x122\x0A\x04name\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Lake\"\xAA\x01\x0A\x10ListLakesRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\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\"z\x0A\x11ListLakesResponse\x12-\x0A\x05lakes\x18\x01 \x03(\x0B2\x1E.google.cloud.dataplex.v1.Lake\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x1D\x0A\x15unreachable_locations\x18\x03 \x03(\x09\"\x7F\x0A\x16ListLakeActionsRequest\x124\x0A\x06parent\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Lake\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\"a\x0A\x13ListActionsResponse\x121\x0A\x07actions\x18\x01 \x03(\x0B2 .google.cloud.dataplex.v1.Action\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"D\x0A\x0EGetLakeRequest\x122\x0A\x04name\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Lake\"\xAE\x01\x0A\x11CreateZoneRequest\x124\x0A\x06parent\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Lake\x12\x14\x0A\x07zone_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x121\x0A\x04zone\x18\x03 \x01(\x0B2\x1E.google.cloud.dataplex.v1.ZoneB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"\x98\x01\x0A\x11UpdateZoneRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x121\x0A\x04zone\x18\x02 \x01(\x0B2\x1E.google.cloud.dataplex.v1.ZoneB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"G\x0A\x11DeleteZoneRequest\x122\x0A\x04name\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Zone\"\xA5\x01\x0A\x10ListZonesRequest\x124\x0A\x06parent\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Lake\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\"[\x0A\x11ListZonesResponse\x12-\x0A\x05zones\x18\x01 \x03(\x0B2\x1E.google.cloud.dataplex.v1.Zone\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x7F\x0A\x16ListZoneActionsRequest\x124\x0A\x06parent\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Zone\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\"D\x0A\x0EGetZoneRequest\x122\x0A\x04name\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Zone\"\xB2\x01\x0A\x12CreateAssetRequest\x124\x0A\x06parent\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Zone\x12\x15\x0A\x08asset_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x123\x0A\x05asset\x18\x03 \x01(\x0B2\x1F.google.cloud.dataplex.v1.AssetB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"\x9B\x01\x0A\x12UpdateAssetRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x123\x0A\x05asset\x18\x02 \x01(\x0B2\x1F.google.cloud.dataplex.v1.AssetB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"I\x0A\x12DeleteAssetRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddataplex.googleapis.com/Asset\"\xA6\x01\x0A\x11ListAssetsRequest\x124\x0A\x06parent\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Zone\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\"^\x0A\x12ListAssetsResponse\x12/\x0A\x06assets\x18\x01 \x03(\x0B2\x1F.google.cloud.dataplex.v1.Asset\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x81\x01\x0A\x17ListAssetActionsRequest\x125\x0A\x06parent\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddataplex.googleapis.com/Asset\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\"F\x0A\x0FGetAssetRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddataplex.googleapis.com/Asset\"\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\"\xAE\x01\x0A\x11CreateTaskRequest\x124\x0A\x06parent\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Lake\x12\x14\x0A\x07task_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x121\x0A\x04task\x18\x03 \x01(\x0B2\x1E.google.cloud.dataplex.v1.TaskB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"\x98\x01\x0A\x11UpdateTaskRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x121\x0A\x04task\x18\x02 \x01(\x0B2\x1E.google.cloud.dataplex.v1.TaskB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"G\x0A\x11DeleteTaskRequest\x122\x0A\x04name\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Task\"\xA5\x01\x0A\x10ListTasksRequest\x124\x0A\x06parent\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Lake\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\"z\x0A\x11ListTasksResponse\x12-\x0A\x05tasks\x18\x01 \x03(\x0B2\x1E.google.cloud.dataplex.v1.Task\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x1D\x0A\x15unreachable_locations\x18\x03 \x03(\x09\"D\x0A\x0EGetTaskRequest\x122\x0A\x04name\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Task\"B\x0A\x0DGetJobRequest\x121\x0A\x04name\x18\x01 \x01(\x09B#\xE0A\x02\xFAA\x1D\x0A\x1Bdataplex.googleapis.com/Job\"\xB2\x02\x0A\x0ERunTaskRequest\x122\x0A\x04name\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Task\x12I\x0A\x06labels\x18\x03 \x03(\x0B24.google.cloud.dataplex.v1.RunTaskRequest.LabelsEntryB\x03\xE0A\x01\x12E\x0A\x04args\x18\x04 \x03(\x0B22.google.cloud.dataplex.v1.RunTaskRequest.ArgsEntryB\x03\xE0A\x01\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1A+\x0A\x09ArgsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"=\x0A\x0FRunTaskResponse\x12*\x0A\x03job\x18\x01 \x01(\x0B2\x1D.google.cloud.dataplex.v1.Job\"x\x0A\x0FListJobsRequest\x124\x0A\x06parent\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Task\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\"X\x0A\x10ListJobsResponse\x12+\x0A\x04jobs\x18\x01 \x03(\x0B2\x1D.google.cloud.dataplex.v1.Job\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"E\x0A\x10CancelJobRequest\x121\x0A\x04name\x18\x01 \x01(\x09B#\xE0A\x02\xFAA\x1D\x0A\x1Bdataplex.googleapis.com/Job2\xAB)\x0A\x0FDataplexService\x12\xC3\x01\x0A\x0ACreateLake\x12+.google.cloud.dataplex.v1.CreateLakeRequest\x1A\x1D.google.longrunning.Operation\"i\xCAA\x19\x0A\x04Lake\x12\x11OperationMetadata\xDAA\x13parent,lake,lake_id\x82\xD3\xE4\x93\x021\")/v1/{parent=projects/*/locations/*}/lakes:\x04lake\x12\xC5\x01\x0A\x0AUpdateLake\x12+.google.cloud.dataplex.v1.UpdateLakeRequest\x1A\x1D.google.longrunning.Operation\"k\xCAA\x19\x0A\x04Lake\x12\x11OperationMetadata\xDAA\x10lake,update_mask\x82\xD3\xE4\x93\x0262./v1/{lake.name=projects/*/locations/*/lakes/*}:\x04lake\x12\xBF\x01\x0A\x0ADeleteLake\x12+.google.cloud.dataplex.v1.DeleteLakeRequest\x1A\x1D.google.longrunning.Operation\"e\xCAA*\x0A\x15google.protobuf.Empty\x12\x11OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x02+*)/v1/{name=projects/*/locations/*/lakes/*}\x12\xA0\x01\x0A\x09ListLakes\x12*.google.cloud.dataplex.v1.ListLakesRequest\x1A+.google.cloud.dataplex.v1.ListLakesResponse\":\xDAA\x06parent\x82\xD3\xE4\x93\x02+\x12)/v1/{parent=projects/*/locations/*}/lakes\x12\x8D\x01\x0A\x07GetLake\x12(.google.cloud.dataplex.v1.GetLakeRequest\x1A\x1E.google.cloud.dataplex.v1.Lake\"8\xDAA\x04name\x82\xD3\xE4\x93\x02+\x12)/v1/{name=projects/*/locations/*/lakes/*}\x12\xB8\x01\x0A\x0FListLakeActions\x120.google.cloud.dataplex.v1.ListLakeActionsRequest\x1A-.google.cloud.dataplex.v1.ListActionsResponse\"D\xDAA\x06parent\x82\xD3\xE4\x93\x025\x123/v1/{parent=projects/*/locations/*/lakes/*}/actions\x12\xCB\x01\x0A\x0ACreateZone\x12+.google.cloud.dataplex.v1.CreateZoneRequest\x1A\x1D.google.longrunning.Operation\"q\xCAA\x19\x0A\x04Zone\x12\x11OperationMetadata\xDAA\x13parent,zone,zone_id\x82\xD3\xE4\x93\x029\"1/v1/{parent=projects/*/locations/*/lakes/*}/zones:\x04zone\x12\xCD\x01\x0A\x0AUpdateZone\x12+.google.cloud.dataplex.v1.UpdateZoneRequest\x1A\x1D.google.longrunning.Operation\"s\xCAA\x19\x0A\x04Zone\x12\x11OperationMetadata\xDAA\x10zone,update_mask\x82\xD3\xE4\x93\x02>26/v1/{zone.name=projects/*/locations/*/lakes/*/zones/*}:\x04zone\x12\xC7\x01\x0A\x0ADeleteZone\x12+.google.cloud.dataplex.v1.DeleteZoneRequest\x1A\x1D.google.longrunning.Operation\"m\xCAA*\x0A\x15google.protobuf.Empty\x12\x11OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x023*1/v1/{name=projects/*/locations/*/lakes/*/zones/*}\x12\xA8\x01\x0A\x09ListZones\x12*.google.cloud.dataplex.v1.ListZonesRequest\x1A+.google.cloud.dataplex.v1.ListZonesResponse\"B\xDAA\x06parent\x82\xD3\xE4\x93\x023\x121/v1/{parent=projects/*/locations/*/lakes/*}/zones\x12\x95\x01\x0A\x07GetZone\x12(.google.cloud.dataplex.v1.GetZoneRequest\x1A\x1E.google.cloud.dataplex.v1.Zone\"@\xDAA\x04name\x82\xD3\xE4\x93\x023\x121/v1/{name=projects/*/locations/*/lakes/*/zones/*}\x12\xC0\x01\x0A\x0FListZoneActions\x120.google.cloud.dataplex.v1.ListZoneActionsRequest\x1A-.google.cloud.dataplex.v1.ListActionsResponse\"L\xDAA\x06parent\x82\xD3\xE4\x93\x02=\x12;/v1/{parent=projects/*/locations/*/lakes/*/zones/*}/actions\x12\xDA\x01\x0A\x0BCreateAsset\x12,.google.cloud.dataplex.v1.CreateAssetRequest\x1A\x1D.google.longrunning.Operation\"~\xCAA\x1A\x0A\x05Asset\x12\x11OperationMetadata\xDAA\x15parent,asset,asset_id\x82\xD3\xE4\x93\x02C\":/v1/{parent=projects/*/locations/*/lakes/*/zones/*}/assets:\x05asset\x12\xDD\x01\x0A\x0BUpdateAsset\x12,.google.cloud.dataplex.v1.UpdateAssetRequest\x1A\x1D.google.longrunning.Operation\"\x80\x01\xCAA\x1A\x0A\x05Asset\x12\x11OperationMetadata\xDAA\x11asset,update_mask\x82\xD3\xE4\x93\x02I2@/v1/{asset.name=projects/*/locations/*/lakes/*/zones/*/assets/*}:\x05asset\x12\xD2\x01\x0A\x0BDeleteAsset\x12,.google.cloud.dataplex.v1.DeleteAssetRequest\x1A\x1D.google.longrunning.Operation\"v\xCAA*\x0A\x15google.protobuf.Empty\x12\x11OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x02<*:/v1/{name=projects/*/locations/*/lakes/*/zones/*/assets/*}\x12\xB4\x01\x0A\x0AListAssets\x12+.google.cloud.dataplex.v1.ListAssetsRequest\x1A,.google.cloud.dataplex.v1.ListAssetsResponse\"K\xDAA\x06parent\x82\xD3\xE4\x93\x02<\x12:/v1/{parent=projects/*/locations/*/lakes/*/zones/*}/assets\x12\xA1\x01\x0A\x08GetAsset\x12).google.cloud.dataplex.v1.GetAssetRequest\x1A\x1F.google.cloud.dataplex.v1.Asset\"I\xDAA\x04name\x82\xD3\xE4\x93\x02<\x12:/v1/{name=projects/*/locations/*/lakes/*/zones/*/assets/*}\x12\xCB\x01\x0A\x10ListAssetActions\x121.google.cloud.dataplex.v1.ListAssetActionsRequest\x1A-.google.cloud.dataplex.v1.ListActionsResponse\"U\xDAA\x06parent\x82\xD3\xE4\x93\x02F\x12D/v1/{parent=projects/*/locations/*/lakes/*/zones/*/assets/*}/actions\x12\xCB\x01\x0A\x0ACreateTask\x12+.google.cloud.dataplex.v1.CreateTaskRequest\x1A\x1D.google.longrunning.Operation\"q\xCAA\x19\x0A\x04Task\x12\x11OperationMetadata\xDAA\x13parent,task,task_id\x82\xD3\xE4\x93\x029\"1/v1/{parent=projects/*/locations/*/lakes/*}/tasks:\x04task\x12\xCD\x01\x0A\x0AUpdateTask\x12+.google.cloud.dataplex.v1.UpdateTaskRequest\x1A\x1D.google.longrunning.Operation\"s\xCAA\x19\x0A\x04Task\x12\x11OperationMetadata\xDAA\x10task,update_mask\x82\xD3\xE4\x93\x02>26/v1/{task.name=projects/*/locations/*/lakes/*/tasks/*}:\x04task\x12\xC7\x01\x0A\x0ADeleteTask\x12+.google.cloud.dataplex.v1.DeleteTaskRequest\x1A\x1D.google.longrunning.Operation\"m\xCAA*\x0A\x15google.protobuf.Empty\x12\x11OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x023*1/v1/{name=projects/*/locations/*/lakes/*/tasks/*}\x12\xA8\x01\x0A\x09ListTasks\x12*.google.cloud.dataplex.v1.ListTasksRequest\x1A+.google.cloud.dataplex.v1.ListTasksResponse\"B\xDAA\x06parent\x82\xD3\xE4\x93\x023\x121/v1/{parent=projects/*/locations/*/lakes/*}/tasks\x12\x95\x01\x0A\x07GetTask\x12(.google.cloud.dataplex.v1.GetTaskRequest\x1A\x1E.google.cloud.dataplex.v1.Task\"@\xDAA\x04name\x82\xD3\xE4\x93\x023\x121/v1/{name=projects/*/locations/*/lakes/*/tasks/*}\x12\xAC\x01\x0A\x08ListJobs\x12).google.cloud.dataplex.v1.ListJobsRequest\x1A*.google.cloud.dataplex.v1.ListJobsResponse\"I\xDAA\x06parent\x82\xD3\xE4\x93\x02:\x128/v1/{parent=projects/*/locations/*/lakes/*/tasks/*}/jobs\x12\xA7\x01\x0A\x07RunTask\x12(.google.cloud.dataplex.v1.RunTaskRequest\x1A).google.cloud.dataplex.v1.RunTaskResponse\"G\xDAA\x04name\x82\xD3\xE4\x93\x02:\"5/v1/{name=projects/*/locations/*/lakes/*/tasks/*}:run:\x01*\x12\x99\x01\x0A\x06GetJob\x12'.google.cloud.dataplex.v1.GetJobRequest\x1A\x1D.google.cloud.dataplex.v1.Job\"G\xDAA\x04name\x82\xD3\xE4\x93\x02:\x128/v1/{name=projects/*/locations/*/lakes/*/tasks/*/jobs/*}\x12\xA2\x01\x0A\x09CancelJob\x12*.google.cloud.dataplex.v1.CancelJobRequest\x1A\x16.google.protobuf.Empty\"Q\xDAA\x04name\x82\xD3\xE4\x93\x02D\"?/v1/{name=projects/*/locations/*/lakes/*/tasks/*/jobs/*}:cancel:\x01*\x1A\xEB\x01\xCAA\x17dataplex.googleapis.com\xD2A\xCD\x01https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.read-only,https://www.googleapis.com/auth/dataplex.read-write,https://www.googleapis.com/auth/dataplex.readonlyBh\x0A\x1Ccom.google.cloud.dataplex.v1B\x0CServiceProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Tasks.php b/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Tasks.php new file mode 100644 index 000000000000..9de483ad00b3 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Tasks.php @@ -0,0 +1,29 @@ +internalAddGeneratedFile( + "\x0A\xA0 \x0A\$google/cloud/dataplex/v1/tasks.proto\x12\x18google.cloud.dataplex.v1\x1A\x19google/api/resource.proto\x1A(google/cloud/dataplex/v1/resources.proto\x1A\x1Egoogle/protobuf/duration.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\x9F\x16\x0A\x04Task\x122\x0A\x04name\x18\x01 \x01(\x09B\$\xE0A\x03\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Task\x12\x10\x0A\x03uid\x18\x02 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x05 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cdisplay_name\x18\x06 \x01(\x09B\x03\xE0A\x01\x123\x0A\x05state\x18\x07 \x01(\x0E2\x1F.google.cloud.dataplex.v1.StateB\x03\xE0A\x03\x12?\x0A\x06labels\x18\x08 \x03(\x0B2*.google.cloud.dataplex.v1.Task.LabelsEntryB\x03\xE0A\x01\x12E\x0A\x0Ctrigger_spec\x18d \x01(\x0B2*.google.cloud.dataplex.v1.Task.TriggerSpecB\x03\xE0A\x02\x12I\x0A\x0Eexecution_spec\x18e \x01(\x0B2,.google.cloud.dataplex.v1.Task.ExecutionSpecB\x03\xE0A\x02\x12N\x0A\x10execution_status\x18\xC9\x01 \x01(\x0B2..google.cloud.dataplex.v1.Task.ExecutionStatusB\x03\xE0A\x03\x12@\x0A\x05spark\x18\xAC\x02 \x01(\x0B2..google.cloud.dataplex.v1.Task.SparkTaskConfigH\x00\x12F\x0A\x08notebook\x18\xAE\x02 \x01(\x0B21.google.cloud.dataplex.v1.Task.NotebookTaskConfigH\x00\x1A\x9A\x06\x0A\x12InfrastructureSpec\x12X\x0A\x05batch\x184 \x01(\x0B2G.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResourcesH\x00\x12b\x0A\x0Fcontainer_image\x18e \x01(\x0B2G.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntimeH\x01\x12T\x0A\x0Bvpc_network\x18\x96\x01 \x01(\x0B2<.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetworkH\x02\x1AW\x0A\x15BatchComputeResources\x12\x1C\x0A\x0Fexecutors_count\x18\x01 \x01(\x05B\x03\xE0A\x01\x12 \x0A\x13max_executors_count\x18\x02 \x01(\x05B\x03\xE0A\x01\x1A\x86\x02\x0A\x15ContainerImageRuntime\x12\x12\x0A\x05image\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09java_jars\x18\x02 \x03(\x09B\x03\xE0A\x01\x12\x1C\x0A\x0Fpython_packages\x18\x03 \x03(\x09B\x03\xE0A\x01\x12p\x0A\x0Aproperties\x18\x04 \x03(\x0B2W.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime.PropertiesEntryB\x03\xE0A\x01\x1A1\x0A\x0FPropertiesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1Ak\x0A\x0AVpcNetwork\x12\x16\x0A\x07network\x18\x01 \x01(\x09B\x03\xE0A\x01H\x00\x12\x1A\x0A\x0Bsub_network\x18\x02 \x01(\x09B\x03\xE0A\x01H\x00\x12\x19\x0A\x0Cnetwork_tags\x18\x03 \x03(\x09B\x03\xE0A\x01B\x0E\x0A\x0Cnetwork_nameB\x0B\x0A\x09resourcesB\x09\x0A\x07runtimeB\x09\x0A\x07network\x1A\x9A\x02\x0A\x0BTriggerSpec\x12E\x0A\x04type\x18\x05 \x01(\x0E2/.google.cloud.dataplex.v1.Task.TriggerSpec.TypeB\x06\xE0A\x02\xE0A\x05\x123\x0A\x0Astart_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x01\x12\x15\x0A\x08disabled\x18\x04 \x01(\x08B\x03\xE0A\x01\x12\x18\x0A\x0Bmax_retries\x18\x07 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x08schedule\x18d \x01(\x09B\x03\xE0A\x01H\x00\":\x0A\x04Type\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09ON_DEMAND\x10\x01\x12\x0D\x0A\x09RECURRING\x10\x02B\x09\x0A\x07trigger\x1A\x95\x02\x0A\x0DExecutionSpec\x12I\x0A\x04args\x18\x04 \x03(\x0B26.google.cloud.dataplex.v1.Task.ExecutionSpec.ArgsEntryB\x03\xE0A\x01\x12\x1C\x0A\x0Fservice_account\x18\x05 \x01(\x09B\x03\xE0A\x02\x12\x14\x0A\x07project\x18\x07 \x01(\x09B\x03\xE0A\x01\x12B\x0A\x1Amax_job_execution_lifetime\x18\x08 \x01(\x0B2\x19.google.protobuf.DurationB\x03\xE0A\x01\x12\x14\x0A\x07kms_key\x18\x09 \x01(\x09B\x03\xE0A\x01\x1A+\x0A\x09ArgsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1A\xA5\x02\x0A\x0FSparkTaskConfig\x12\x1B\x0A\x11main_jar_file_uri\x18d \x01(\x09H\x00\x12\x14\x0A\x0Amain_class\x18e \x01(\x09H\x00\x12\x1C\x0A\x12python_script_file\x18f \x01(\x09H\x00\x12\x19\x0A\x0Fsql_script_file\x18h \x01(\x09H\x00\x12\x14\x0A\x0Asql_script\x18i \x01(\x09H\x00\x12\x16\x0A\x09file_uris\x18\x03 \x03(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Carchive_uris\x18\x04 \x03(\x09B\x03\xE0A\x01\x12S\x0A\x13infrastructure_spec\x18\x06 \x01(\x0B21.google.cloud.dataplex.v1.Task.InfrastructureSpecB\x03\xE0A\x01B\x08\x0A\x06driver\x1A\xB3\x01\x0A\x12NotebookTaskConfig\x12\x15\x0A\x08notebook\x18\x04 \x01(\x09B\x03\xE0A\x02\x12S\x0A\x13infrastructure_spec\x18\x03 \x01(\x0B21.google.cloud.dataplex.v1.Task.InfrastructureSpecB\x03\xE0A\x01\x12\x16\x0A\x09file_uris\x18\x05 \x03(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Carchive_uris\x18\x06 \x03(\x09B\x03\xE0A\x01\x1A\x7F\x0A\x0FExecutionStatus\x124\x0A\x0Bupdate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x126\x0A\x0Alatest_job\x18\x09 \x01(\x0B2\x1D.google.cloud.dataplex.v1.JobB\x03\xE0A\x03\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:d\xEAAa\x0A\x1Cdataplex.googleapis.com/Task\x12Aprojects/{project}/locations/{location}/lakes/{lake}/tasks/{task}B\x08\x0A\x06config\"\xC5\x07\x0A\x03Job\x121\x0A\x04name\x18\x01 \x01(\x09B#\xE0A\x03\xFAA\x1D\x0A\x1Bdataplex.googleapis.com/Job\x12\x10\x0A\x03uid\x18\x02 \x01(\x09B\x03\xE0A\x03\x123\x0A\x0Astart_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x121\x0A\x08end_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x127\x0A\x05state\x18\x05 \x01(\x0E2#.google.cloud.dataplex.v1.Job.StateB\x03\xE0A\x03\x12\x18\x0A\x0Bretry_count\x18\x06 \x01(\x0DB\x03\xE0A\x03\x12;\x0A\x07service\x18\x07 \x01(\x0E2%.google.cloud.dataplex.v1.Job.ServiceB\x03\xE0A\x03\x12\x18\x0A\x0Bservice_job\x18\x08 \x01(\x09B\x03\xE0A\x03\x12\x14\x0A\x07message\x18\x09 \x01(\x09B\x03\xE0A\x03\x12>\x0A\x06labels\x18\x0A \x03(\x0B2).google.cloud.dataplex.v1.Job.LabelsEntryB\x03\xE0A\x03\x12;\x0A\x07trigger\x18\x0B \x01(\x0E2%.google.cloud.dataplex.v1.Job.TriggerB\x03\xE0A\x03\x12I\x0A\x0Eexecution_spec\x18d \x01(\x0B2,.google.cloud.dataplex.v1.Task.ExecutionSpecB\x03\xE0A\x03\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"0\x0A\x07Service\x12\x17\x0A\x13SERVICE_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08DATAPROC\x10\x01\"r\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07RUNNING\x10\x01\x12\x0E\x0A\x0ACANCELLING\x10\x02\x12\x0D\x0A\x09CANCELLED\x10\x03\x12\x0D\x0A\x09SUCCEEDED\x10\x04\x12\x0A\x0A\x06FAILED\x10\x05\x12\x0B\x0A\x07ABORTED\x10\x06\"D\x0A\x07Trigger\x12\x17\x0A\x13TRIGGER_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BTASK_CONFIG\x10\x01\x12\x0F\x0A\x0BRUN_REQUEST\x10\x02:n\xEAAk\x0A\x1Bdataplex.googleapis.com/Job\x12Lprojects/{project}/locations/{location}/lakes/{lake}/tasks/{task}/jobs/{job}Bf\x0A\x1Ccom.google.cloud.dataplex.v1B\x0ATasksProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action.php new file mode 100644 index 000000000000..f72260a44fe5 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action.php @@ -0,0 +1,634 @@ +google.cloud.dataplex.v1.Action + */ +class Action extends \Google\Protobuf\Internal\Message +{ + /** + * The category of issue associated with the action. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Action.Category category = 1; + */ + protected $category = 0; + /** + * Detailed description of the issue requiring action. + * + * Generated from protobuf field string issue = 2; + */ + protected $issue = ''; + /** + * The time that the issue was detected. + * + * Generated from protobuf field .google.protobuf.Timestamp detect_time = 4; + */ + protected $detect_time = null; + /** + * Output only. The relative resource name of the action, of the form: + * `projects/{project}/locations/{location}/lakes/{lake}/actions/{action}` + * `projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/actions/{action}` + * `projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/assets/{asset}/actions/{action}`. + * + * Generated from protobuf field string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Output only. The relative resource name of the lake, of the form: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. + * + * Generated from protobuf field string lake = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $lake = ''; + /** + * Output only. The relative resource name of the zone, of the form: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. + * + * Generated from protobuf field string zone = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $zone = ''; + /** + * Output only. The relative resource name of the asset, of the form: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. + * + * Generated from protobuf field string asset = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $asset = ''; + /** + * The list of data locations associated with this action. Cloud Storage + * locations are represented as URI paths(E.g. + * `gs://bucket/table1/year=2020/month=Jan/`). BigQuery locations refer to + * resource names(E.g. + * `bigquery.googleapis.com/projects/project-id/datasets/dataset-id`). + * + * Generated from protobuf field repeated string data_locations = 9; + */ + private $data_locations; + protected $details; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $category + * The category of issue associated with the action. + * @type string $issue + * Detailed description of the issue requiring action. + * @type \Google\Protobuf\Timestamp $detect_time + * The time that the issue was detected. + * @type string $name + * Output only. The relative resource name of the action, of the form: + * `projects/{project}/locations/{location}/lakes/{lake}/actions/{action}` + * `projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/actions/{action}` + * `projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/assets/{asset}/actions/{action}`. + * @type string $lake + * Output only. The relative resource name of the lake, of the form: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. + * @type string $zone + * Output only. The relative resource name of the zone, of the form: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. + * @type string $asset + * Output only. The relative resource name of the asset, of the form: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. + * @type string[] $data_locations + * The list of data locations associated with this action. Cloud Storage + * locations are represented as URI paths(E.g. + * `gs://bucket/table1/year=2020/month=Jan/`). BigQuery locations refer to + * resource names(E.g. + * `bigquery.googleapis.com/projects/project-id/datasets/dataset-id`). + * @type \Google\Cloud\Dataplex\V1\Action\InvalidDataFormat $invalid_data_format + * Details for issues related to invalid or unsupported data formats. + * @type \Google\Cloud\Dataplex\V1\Action\IncompatibleDataSchema $incompatible_data_schema + * Details for issues related to incompatible schemas detected within data. + * @type \Google\Cloud\Dataplex\V1\Action\InvalidDataPartition $invalid_data_partition + * Details for issues related to invalid or unsupported data partition + * structure. + * @type \Google\Cloud\Dataplex\V1\Action\MissingData $missing_data + * Details for issues related to absence of data within managed resources. + * @type \Google\Cloud\Dataplex\V1\Action\MissingResource $missing_resource + * Details for issues related to absence of a managed resource. + * @type \Google\Cloud\Dataplex\V1\Action\UnauthorizedResource $unauthorized_resource + * Details for issues related to lack of permissions to access data + * resources. + * @type \Google\Cloud\Dataplex\V1\Action\FailedSecurityPolicyApply $failed_security_policy_apply + * Details for issues related to applying security policy. + * @type \Google\Cloud\Dataplex\V1\Action\InvalidDataOrganization $invalid_data_organization + * Details for issues related to invalid data arrangement. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * The category of issue associated with the action. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Action.Category category = 1; + * @return int + */ + public function getCategory() + { + return $this->category; + } + + /** + * The category of issue associated with the action. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Action.Category category = 1; + * @param int $var + * @return $this + */ + public function setCategory($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\Action\Category::class); + $this->category = $var; + + return $this; + } + + /** + * Detailed description of the issue requiring action. + * + * Generated from protobuf field string issue = 2; + * @return string + */ + public function getIssue() + { + return $this->issue; + } + + /** + * Detailed description of the issue requiring action. + * + * Generated from protobuf field string issue = 2; + * @param string $var + * @return $this + */ + public function setIssue($var) + { + GPBUtil::checkString($var, True); + $this->issue = $var; + + return $this; + } + + /** + * The time that the issue was detected. + * + * Generated from protobuf field .google.protobuf.Timestamp detect_time = 4; + * @return \Google\Protobuf\Timestamp|null + */ + public function getDetectTime() + { + return $this->detect_time; + } + + public function hasDetectTime() + { + return isset($this->detect_time); + } + + public function clearDetectTime() + { + unset($this->detect_time); + } + + /** + * The time that the issue was detected. + * + * Generated from protobuf field .google.protobuf.Timestamp detect_time = 4; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setDetectTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->detect_time = $var; + + return $this; + } + + /** + * Output only. The relative resource name of the action, of the form: + * `projects/{project}/locations/{location}/lakes/{lake}/actions/{action}` + * `projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/actions/{action}` + * `projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/assets/{asset}/actions/{action}`. + * + * Generated from protobuf field string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. The relative resource name of the action, of the form: + * `projects/{project}/locations/{location}/lakes/{lake}/actions/{action}` + * `projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/actions/{action}` + * `projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/assets/{asset}/actions/{action}`. + * + * Generated from protobuf field string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. The relative resource name of the lake, of the form: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. + * + * Generated from protobuf field string lake = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getLake() + { + return $this->lake; + } + + /** + * Output only. The relative resource name of the lake, of the form: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. + * + * Generated from protobuf field string lake = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setLake($var) + { + GPBUtil::checkString($var, True); + $this->lake = $var; + + return $this; + } + + /** + * Output only. The relative resource name of the zone, of the form: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. + * + * Generated from protobuf field string zone = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getZone() + { + return $this->zone; + } + + /** + * Output only. The relative resource name of the zone, of the form: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. + * + * Generated from protobuf field string zone = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setZone($var) + { + GPBUtil::checkString($var, True); + $this->zone = $var; + + return $this; + } + + /** + * Output only. The relative resource name of the asset, of the form: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. + * + * Generated from protobuf field string asset = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getAsset() + { + return $this->asset; + } + + /** + * Output only. The relative resource name of the asset, of the form: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. + * + * Generated from protobuf field string asset = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setAsset($var) + { + GPBUtil::checkString($var, True); + $this->asset = $var; + + return $this; + } + + /** + * The list of data locations associated with this action. Cloud Storage + * locations are represented as URI paths(E.g. + * `gs://bucket/table1/year=2020/month=Jan/`). BigQuery locations refer to + * resource names(E.g. + * `bigquery.googleapis.com/projects/project-id/datasets/dataset-id`). + * + * Generated from protobuf field repeated string data_locations = 9; + * @return RepeatedField + */ + public function getDataLocations() + { + return $this->data_locations; + } + + /** + * The list of data locations associated with this action. Cloud Storage + * locations are represented as URI paths(E.g. + * `gs://bucket/table1/year=2020/month=Jan/`). BigQuery locations refer to + * resource names(E.g. + * `bigquery.googleapis.com/projects/project-id/datasets/dataset-id`). + * + * Generated from protobuf field repeated string data_locations = 9; + * @param string[] $var + * @return $this + */ + public function setDataLocations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->data_locations = $arr; + + return $this; + } + + /** + * Details for issues related to invalid or unsupported data formats. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Action.InvalidDataFormat invalid_data_format = 10; + * @return \Google\Cloud\Dataplex\V1\Action\InvalidDataFormat|null + */ + public function getInvalidDataFormat() + { + return $this->readOneof(10); + } + + public function hasInvalidDataFormat() + { + return $this->hasOneof(10); + } + + /** + * Details for issues related to invalid or unsupported data formats. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Action.InvalidDataFormat invalid_data_format = 10; + * @param \Google\Cloud\Dataplex\V1\Action\InvalidDataFormat $var + * @return $this + */ + public function setInvalidDataFormat($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Action\InvalidDataFormat::class); + $this->writeOneof(10, $var); + + return $this; + } + + /** + * Details for issues related to incompatible schemas detected within data. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Action.IncompatibleDataSchema incompatible_data_schema = 11; + * @return \Google\Cloud\Dataplex\V1\Action\IncompatibleDataSchema|null + */ + public function getIncompatibleDataSchema() + { + return $this->readOneof(11); + } + + public function hasIncompatibleDataSchema() + { + return $this->hasOneof(11); + } + + /** + * Details for issues related to incompatible schemas detected within data. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Action.IncompatibleDataSchema incompatible_data_schema = 11; + * @param \Google\Cloud\Dataplex\V1\Action\IncompatibleDataSchema $var + * @return $this + */ + public function setIncompatibleDataSchema($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Action\IncompatibleDataSchema::class); + $this->writeOneof(11, $var); + + return $this; + } + + /** + * Details for issues related to invalid or unsupported data partition + * structure. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Action.InvalidDataPartition invalid_data_partition = 12; + * @return \Google\Cloud\Dataplex\V1\Action\InvalidDataPartition|null + */ + public function getInvalidDataPartition() + { + return $this->readOneof(12); + } + + public function hasInvalidDataPartition() + { + return $this->hasOneof(12); + } + + /** + * Details for issues related to invalid or unsupported data partition + * structure. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Action.InvalidDataPartition invalid_data_partition = 12; + * @param \Google\Cloud\Dataplex\V1\Action\InvalidDataPartition $var + * @return $this + */ + public function setInvalidDataPartition($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Action\InvalidDataPartition::class); + $this->writeOneof(12, $var); + + return $this; + } + + /** + * Details for issues related to absence of data within managed resources. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Action.MissingData missing_data = 13; + * @return \Google\Cloud\Dataplex\V1\Action\MissingData|null + */ + public function getMissingData() + { + return $this->readOneof(13); + } + + public function hasMissingData() + { + return $this->hasOneof(13); + } + + /** + * Details for issues related to absence of data within managed resources. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Action.MissingData missing_data = 13; + * @param \Google\Cloud\Dataplex\V1\Action\MissingData $var + * @return $this + */ + public function setMissingData($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Action\MissingData::class); + $this->writeOneof(13, $var); + + return $this; + } + + /** + * Details for issues related to absence of a managed resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Action.MissingResource missing_resource = 14; + * @return \Google\Cloud\Dataplex\V1\Action\MissingResource|null + */ + public function getMissingResource() + { + return $this->readOneof(14); + } + + public function hasMissingResource() + { + return $this->hasOneof(14); + } + + /** + * Details for issues related to absence of a managed resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Action.MissingResource missing_resource = 14; + * @param \Google\Cloud\Dataplex\V1\Action\MissingResource $var + * @return $this + */ + public function setMissingResource($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Action\MissingResource::class); + $this->writeOneof(14, $var); + + return $this; + } + + /** + * Details for issues related to lack of permissions to access data + * resources. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Action.UnauthorizedResource unauthorized_resource = 15; + * @return \Google\Cloud\Dataplex\V1\Action\UnauthorizedResource|null + */ + public function getUnauthorizedResource() + { + return $this->readOneof(15); + } + + public function hasUnauthorizedResource() + { + return $this->hasOneof(15); + } + + /** + * Details for issues related to lack of permissions to access data + * resources. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Action.UnauthorizedResource unauthorized_resource = 15; + * @param \Google\Cloud\Dataplex\V1\Action\UnauthorizedResource $var + * @return $this + */ + public function setUnauthorizedResource($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Action\UnauthorizedResource::class); + $this->writeOneof(15, $var); + + return $this; + } + + /** + * Details for issues related to applying security policy. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Action.FailedSecurityPolicyApply failed_security_policy_apply = 21; + * @return \Google\Cloud\Dataplex\V1\Action\FailedSecurityPolicyApply|null + */ + public function getFailedSecurityPolicyApply() + { + return $this->readOneof(21); + } + + public function hasFailedSecurityPolicyApply() + { + return $this->hasOneof(21); + } + + /** + * Details for issues related to applying security policy. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Action.FailedSecurityPolicyApply failed_security_policy_apply = 21; + * @param \Google\Cloud\Dataplex\V1\Action\FailedSecurityPolicyApply $var + * @return $this + */ + public function setFailedSecurityPolicyApply($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Action\FailedSecurityPolicyApply::class); + $this->writeOneof(21, $var); + + return $this; + } + + /** + * Details for issues related to invalid data arrangement. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Action.InvalidDataOrganization invalid_data_organization = 22; + * @return \Google\Cloud\Dataplex\V1\Action\InvalidDataOrganization|null + */ + public function getInvalidDataOrganization() + { + return $this->readOneof(22); + } + + public function hasInvalidDataOrganization() + { + return $this->hasOneof(22); + } + + /** + * Details for issues related to invalid data arrangement. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Action.InvalidDataOrganization invalid_data_organization = 22; + * @param \Google\Cloud\Dataplex\V1\Action\InvalidDataOrganization $var + * @return $this + */ + public function setInvalidDataOrganization($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Action\InvalidDataOrganization::class); + $this->writeOneof(22, $var); + + return $this; + } + + /** + * @return string + */ + public function getDetails() + { + return $this->whichOneof("details"); + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/Category.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/Category.php new file mode 100644 index 000000000000..1c8a8fb25661 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/Category.php @@ -0,0 +1,68 @@ +google.cloud.dataplex.v1.Action.Category + */ +class Category +{ + /** + * Unspecified category. + * + * Generated from protobuf enum CATEGORY_UNSPECIFIED = 0; + */ + const CATEGORY_UNSPECIFIED = 0; + /** + * Resource management related issues. + * + * Generated from protobuf enum RESOURCE_MANAGEMENT = 1; + */ + const RESOURCE_MANAGEMENT = 1; + /** + * Security policy related issues. + * + * Generated from protobuf enum SECURITY_POLICY = 2; + */ + const SECURITY_POLICY = 2; + /** + * Data and discovery related issues. + * + * Generated from protobuf enum DATA_DISCOVERY = 3; + */ + const DATA_DISCOVERY = 3; + + private static $valueToName = [ + self::CATEGORY_UNSPECIFIED => 'CATEGORY_UNSPECIFIED', + self::RESOURCE_MANAGEMENT => 'RESOURCE_MANAGEMENT', + self::SECURITY_POLICY => 'SECURITY_POLICY', + self::DATA_DISCOVERY => 'DATA_DISCOVERY', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/FailedSecurityPolicyApply.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/FailedSecurityPolicyApply.php new file mode 100644 index 000000000000..9b4ff32c1629 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/FailedSecurityPolicyApply.php @@ -0,0 +1,74 @@ +google.cloud.dataplex.v1.Action.FailedSecurityPolicyApply + */ +class FailedSecurityPolicyApply extends \Google\Protobuf\Internal\Message +{ + /** + * Resource name of one of the assets with failing security policy + * application. Populated for a lake or zone resource only. + * + * Generated from protobuf field string asset = 1; + */ + protected $asset = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $asset + * Resource name of one of the assets with failing security policy + * application. Populated for a lake or zone resource only. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Resource name of one of the assets with failing security policy + * application. Populated for a lake or zone resource only. + * + * Generated from protobuf field string asset = 1; + * @return string + */ + public function getAsset() + { + return $this->asset; + } + + /** + * Resource name of one of the assets with failing security policy + * application. Populated for a lake or zone resource only. + * + * Generated from protobuf field string asset = 1; + * @param string $var + * @return $this + */ + public function setAsset($var) + { + GPBUtil::checkString($var, True); + $this->asset = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/IncompatibleDataSchema.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/IncompatibleDataSchema.php new file mode 100644 index 000000000000..9820e8e27513 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/IncompatibleDataSchema.php @@ -0,0 +1,215 @@ +google.cloud.dataplex.v1.Action.IncompatibleDataSchema + */ +class IncompatibleDataSchema extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the table containing invalid data. + * + * Generated from protobuf field string table = 1; + */ + protected $table = ''; + /** + * The existing and expected schema of the table. The schema is provided as + * a JSON formatted structure listing columns and data types. + * + * Generated from protobuf field string existing_schema = 2; + */ + protected $existing_schema = ''; + /** + * The new and incompatible schema within the table. The schema is provided + * as a JSON formatted structured listing columns and data types. + * + * Generated from protobuf field string new_schema = 3; + */ + protected $new_schema = ''; + /** + * The list of data locations sampled and used for format/schema + * inference. + * + * Generated from protobuf field repeated string sampled_data_locations = 4; + */ + private $sampled_data_locations; + /** + * Whether the action relates to a schema that is incompatible or modified. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Action.IncompatibleDataSchema.SchemaChange schema_change = 5; + */ + protected $schema_change = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $table + * The name of the table containing invalid data. + * @type string $existing_schema + * The existing and expected schema of the table. The schema is provided as + * a JSON formatted structure listing columns and data types. + * @type string $new_schema + * The new and incompatible schema within the table. The schema is provided + * as a JSON formatted structured listing columns and data types. + * @type string[] $sampled_data_locations + * The list of data locations sampled and used for format/schema + * inference. + * @type int $schema_change + * Whether the action relates to a schema that is incompatible or modified. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * The name of the table containing invalid data. + * + * Generated from protobuf field string table = 1; + * @return string + */ + public function getTable() + { + return $this->table; + } + + /** + * The name of the table containing invalid data. + * + * Generated from protobuf field string table = 1; + * @param string $var + * @return $this + */ + public function setTable($var) + { + GPBUtil::checkString($var, True); + $this->table = $var; + + return $this; + } + + /** + * The existing and expected schema of the table. The schema is provided as + * a JSON formatted structure listing columns and data types. + * + * Generated from protobuf field string existing_schema = 2; + * @return string + */ + public function getExistingSchema() + { + return $this->existing_schema; + } + + /** + * The existing and expected schema of the table. The schema is provided as + * a JSON formatted structure listing columns and data types. + * + * Generated from protobuf field string existing_schema = 2; + * @param string $var + * @return $this + */ + public function setExistingSchema($var) + { + GPBUtil::checkString($var, True); + $this->existing_schema = $var; + + return $this; + } + + /** + * The new and incompatible schema within the table. The schema is provided + * as a JSON formatted structured listing columns and data types. + * + * Generated from protobuf field string new_schema = 3; + * @return string + */ + public function getNewSchema() + { + return $this->new_schema; + } + + /** + * The new and incompatible schema within the table. The schema is provided + * as a JSON formatted structured listing columns and data types. + * + * Generated from protobuf field string new_schema = 3; + * @param string $var + * @return $this + */ + public function setNewSchema($var) + { + GPBUtil::checkString($var, True); + $this->new_schema = $var; + + return $this; + } + + /** + * The list of data locations sampled and used for format/schema + * inference. + * + * Generated from protobuf field repeated string sampled_data_locations = 4; + * @return RepeatedField + */ + public function getSampledDataLocations() + { + return $this->sampled_data_locations; + } + + /** + * The list of data locations sampled and used for format/schema + * inference. + * + * Generated from protobuf field repeated string sampled_data_locations = 4; + * @param string[] $var + * @return $this + */ + public function setSampledDataLocations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->sampled_data_locations = $arr; + + return $this; + } + + /** + * Whether the action relates to a schema that is incompatible or modified. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Action.IncompatibleDataSchema.SchemaChange schema_change = 5; + * @return int + */ + public function getSchemaChange() + { + return $this->schema_change; + } + + /** + * Whether the action relates to a schema that is incompatible or modified. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Action.IncompatibleDataSchema.SchemaChange schema_change = 5; + * @param int $var + * @return $this + */ + public function setSchemaChange($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\Action\IncompatibleDataSchema\SchemaChange::class); + $this->schema_change = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/IncompatibleDataSchema/SchemaChange.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/IncompatibleDataSchema/SchemaChange.php new file mode 100644 index 000000000000..85c842476efd --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/IncompatibleDataSchema/SchemaChange.php @@ -0,0 +1,62 @@ +google.cloud.dataplex.v1.Action.IncompatibleDataSchema.SchemaChange + */ +class SchemaChange +{ + /** + * Schema change unspecified. + * + * Generated from protobuf enum SCHEMA_CHANGE_UNSPECIFIED = 0; + */ + const SCHEMA_CHANGE_UNSPECIFIED = 0; + /** + * Newly discovered schema is incompatible with existing schema. + * + * Generated from protobuf enum INCOMPATIBLE = 1; + */ + const INCOMPATIBLE = 1; + /** + * Newly discovered schema has changed from existing schema for data in a + * curated zone. + * + * Generated from protobuf enum MODIFIED = 2; + */ + const MODIFIED = 2; + + private static $valueToName = [ + self::SCHEMA_CHANGE_UNSPECIFIED => 'SCHEMA_CHANGE_UNSPECIFIED', + self::INCOMPATIBLE => 'INCOMPATIBLE', + self::MODIFIED => 'MODIFIED', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/InvalidDataFormat.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/InvalidDataFormat.php new file mode 100644 index 000000000000..df89cdfeea28 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/InvalidDataFormat.php @@ -0,0 +1,139 @@ +google.cloud.dataplex.v1.Action.InvalidDataFormat + */ +class InvalidDataFormat extends \Google\Protobuf\Internal\Message +{ + /** + * The list of data locations sampled and used for format/schema + * inference. + * + * Generated from protobuf field repeated string sampled_data_locations = 1; + */ + private $sampled_data_locations; + /** + * The expected data format of the entity. + * + * Generated from protobuf field string expected_format = 2; + */ + protected $expected_format = ''; + /** + * The new unexpected data format within the entity. + * + * Generated from protobuf field string new_format = 3; + */ + protected $new_format = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string[] $sampled_data_locations + * The list of data locations sampled and used for format/schema + * inference. + * @type string $expected_format + * The expected data format of the entity. + * @type string $new_format + * The new unexpected data format within the entity. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * The list of data locations sampled and used for format/schema + * inference. + * + * Generated from protobuf field repeated string sampled_data_locations = 1; + * @return RepeatedField + */ + public function getSampledDataLocations() + { + return $this->sampled_data_locations; + } + + /** + * The list of data locations sampled and used for format/schema + * inference. + * + * Generated from protobuf field repeated string sampled_data_locations = 1; + * @param string[] $var + * @return $this + */ + public function setSampledDataLocations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->sampled_data_locations = $arr; + + return $this; + } + + /** + * The expected data format of the entity. + * + * Generated from protobuf field string expected_format = 2; + * @return string + */ + public function getExpectedFormat() + { + return $this->expected_format; + } + + /** + * The expected data format of the entity. + * + * Generated from protobuf field string expected_format = 2; + * @param string $var + * @return $this + */ + public function setExpectedFormat($var) + { + GPBUtil::checkString($var, True); + $this->expected_format = $var; + + return $this; + } + + /** + * The new unexpected data format within the entity. + * + * Generated from protobuf field string new_format = 3; + * @return string + */ + public function getNewFormat() + { + return $this->new_format; + } + + /** + * The new unexpected data format within the entity. + * + * Generated from protobuf field string new_format = 3; + * @param string $var + * @return $this + */ + public function setNewFormat($var) + { + GPBUtil::checkString($var, True); + $this->new_format = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/InvalidDataOrganization.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/InvalidDataOrganization.php new file mode 100644 index 000000000000..3ec504d59cb7 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/InvalidDataOrganization.php @@ -0,0 +1,33 @@ +google.cloud.dataplex.v1.Action.InvalidDataOrganization + */ +class InvalidDataOrganization extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Resources::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/InvalidDataPartition.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/InvalidDataPartition.php new file mode 100644 index 000000000000..0a4b1eae35a6 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/InvalidDataPartition.php @@ -0,0 +1,67 @@ +google.cloud.dataplex.v1.Action.InvalidDataPartition + */ +class InvalidDataPartition extends \Google\Protobuf\Internal\Message +{ + /** + * The issue type of InvalidDataPartition. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Action.InvalidDataPartition.PartitionStructure expected_structure = 1; + */ + protected $expected_structure = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $expected_structure + * The issue type of InvalidDataPartition. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * The issue type of InvalidDataPartition. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Action.InvalidDataPartition.PartitionStructure expected_structure = 1; + * @return int + */ + public function getExpectedStructure() + { + return $this->expected_structure; + } + + /** + * The issue type of InvalidDataPartition. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Action.InvalidDataPartition.PartitionStructure expected_structure = 1; + * @param int $var + * @return $this + */ + public function setExpectedStructure($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\Action\InvalidDataPartition\PartitionStructure::class); + $this->expected_structure = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/InvalidDataPartition/PartitionStructure.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/InvalidDataPartition/PartitionStructure.php new file mode 100644 index 000000000000..1802cabccd61 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/InvalidDataPartition/PartitionStructure.php @@ -0,0 +1,61 @@ +google.cloud.dataplex.v1.Action.InvalidDataPartition.PartitionStructure + */ +class PartitionStructure +{ + /** + * PartitionStructure unspecified. + * + * Generated from protobuf enum PARTITION_STRUCTURE_UNSPECIFIED = 0; + */ + const PARTITION_STRUCTURE_UNSPECIFIED = 0; + /** + * Consistent hive-style partition definition (both raw and curated zone). + * + * Generated from protobuf enum CONSISTENT_KEYS = 1; + */ + const CONSISTENT_KEYS = 1; + /** + * Hive style partition definition (curated zone only). + * + * Generated from protobuf enum HIVE_STYLE_KEYS = 2; + */ + const HIVE_STYLE_KEYS = 2; + + private static $valueToName = [ + self::PARTITION_STRUCTURE_UNSPECIFIED => 'PARTITION_STRUCTURE_UNSPECIFIED', + self::CONSISTENT_KEYS => 'CONSISTENT_KEYS', + self::HIVE_STYLE_KEYS => 'HIVE_STYLE_KEYS', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/MissingData.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/MissingData.php new file mode 100644 index 000000000000..a3c7181f3299 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/MissingData.php @@ -0,0 +1,33 @@ +google.cloud.dataplex.v1.Action.MissingData + */ +class MissingData extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Resources::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/MissingResource.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/MissingResource.php new file mode 100644 index 000000000000..a4396e93f89b --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/MissingResource.php @@ -0,0 +1,33 @@ +google.cloud.dataplex.v1.Action.MissingResource + */ +class MissingResource extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Resources::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/UnauthorizedResource.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/UnauthorizedResource.php new file mode 100644 index 000000000000..c10d7722a10a --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/UnauthorizedResource.php @@ -0,0 +1,35 @@ +google.cloud.dataplex.v1.Action.UnauthorizedResource + */ +class UnauthorizedResource extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Resources::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Aspect.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Aspect.php new file mode 100644 index 000000000000..1cf3c1a17717 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Aspect.php @@ -0,0 +1,281 @@ +google.cloud.dataplex.v1.Aspect + */ +class Aspect extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The resource name of the type used to create this Aspect. + * + * Generated from protobuf field string aspect_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $aspect_type = ''; + /** + * Output only. The path in the entry under which the aspect is attached. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $path = ''; + /** + * Output only. The time when the Aspect was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The time when the Aspect was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Required. The content of the aspect, according to its aspect type schema. + * The maximum size of the field is 120KB (encoded as UTF-8). + * + * Generated from protobuf field .google.protobuf.Struct data = 8 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $data = null; + /** + * Optional. Information related to the source system of the aspect. + * + * Generated from protobuf field .google.cloud.dataplex.v1.AspectSource aspect_source = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $aspect_source = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $aspect_type + * Output only. The resource name of the type used to create this Aspect. + * @type string $path + * Output only. The path in the entry under which the aspect is attached. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time when the Aspect was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time when the Aspect was last updated. + * @type \Google\Protobuf\Struct $data + * Required. The content of the aspect, according to its aspect type schema. + * The maximum size of the field is 120KB (encoded as UTF-8). + * @type \Google\Cloud\Dataplex\V1\AspectSource $aspect_source + * Optional. Information related to the source system of the aspect. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The resource name of the type used to create this Aspect. + * + * Generated from protobuf field string aspect_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getAspectType() + { + return $this->aspect_type; + } + + /** + * Output only. The resource name of the type used to create this Aspect. + * + * Generated from protobuf field string aspect_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setAspectType($var) + { + GPBUtil::checkString($var, True); + $this->aspect_type = $var; + + return $this; + } + + /** + * Output only. The path in the entry under which the aspect is attached. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getPath() + { + return $this->path; + } + + /** + * Output only. The path in the entry under which the aspect is attached. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setPath($var) + { + GPBUtil::checkString($var, True); + $this->path = $var; + + return $this; + } + + /** + * Output only. The time when the Aspect was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The time when the Aspect was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. The time when the Aspect was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. The time when the Aspect was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Required. The content of the aspect, according to its aspect type schema. + * The maximum size of the field is 120KB (encoded as UTF-8). + * + * Generated from protobuf field .google.protobuf.Struct data = 8 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Struct|null + */ + public function getData() + { + return $this->data; + } + + public function hasData() + { + return isset($this->data); + } + + public function clearData() + { + unset($this->data); + } + + /** + * Required. The content of the aspect, according to its aspect type schema. + * The maximum size of the field is 120KB (encoded as UTF-8). + * + * Generated from protobuf field .google.protobuf.Struct data = 8 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\Struct $var + * @return $this + */ + public function setData($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); + $this->data = $var; + + return $this; + } + + /** + * Optional. Information related to the source system of the aspect. + * + * Generated from protobuf field .google.cloud.dataplex.v1.AspectSource aspect_source = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataplex\V1\AspectSource|null + */ + public function getAspectSource() + { + return $this->aspect_source; + } + + public function hasAspectSource() + { + return isset($this->aspect_source); + } + + public function clearAspectSource() + { + unset($this->aspect_source); + } + + /** + * Optional. Information related to the source system of the aspect. + * + * Generated from protobuf field .google.cloud.dataplex.v1.AspectSource aspect_source = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataplex\V1\AspectSource $var + * @return $this + */ + public function setAspectSource($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\AspectSource::class); + $this->aspect_source = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectSource.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectSource.php new file mode 100644 index 000000000000..a1278532ff5b --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectSource.php @@ -0,0 +1,163 @@ +google.cloud.dataplex.v1.AspectSource + */ +class AspectSource extends \Google\Protobuf\Internal\Message +{ + /** + * The time the aspect was created in the source system. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 10; + */ + protected $create_time = null; + /** + * The time the aspect was last updated in the source system. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 11; + */ + protected $update_time = null; + /** + * The version of the data format used to produce this data. This field is + * used to indicated when the underlying data format changes (e.g., schema + * modifications, changes to the source URL format definition, etc). + * + * Generated from protobuf field string data_version = 12; + */ + protected $data_version = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Timestamp $create_time + * The time the aspect was created in the source system. + * @type \Google\Protobuf\Timestamp $update_time + * The time the aspect was last updated in the source system. + * @type string $data_version + * The version of the data format used to produce this data. This field is + * used to indicated when the underlying data format changes (e.g., schema + * modifications, changes to the source URL format definition, etc). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * The time the aspect was created in the source system. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 10; + * @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 time the aspect was created in the source system. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 10; + * @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 time the aspect was last updated in the source system. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 11; + * @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 time the aspect was last updated in the source system. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 11; + * @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 version of the data format used to produce this data. This field is + * used to indicated when the underlying data format changes (e.g., schema + * modifications, changes to the source URL format definition, etc). + * + * Generated from protobuf field string data_version = 12; + * @return string + */ + public function getDataVersion() + { + return $this->data_version; + } + + /** + * The version of the data format used to produce this data. This field is + * used to indicated when the underlying data format changes (e.g., schema + * modifications, changes to the source URL format definition, etc). + * + * Generated from protobuf field string data_version = 12; + * @param string $var + * @return $this + */ + public function setDataVersion($var) + { + GPBUtil::checkString($var, True); + $this->data_version = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType.php new file mode 100644 index 000000000000..8efe9261ea98 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType.php @@ -0,0 +1,502 @@ +google.cloud.dataplex.v1.AspectType + */ +class AspectType extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The relative resource name of the AspectType, of the form: + * projects/{project_number}/locations/{location_id}/aspectTypes/{aspect_type_id}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Output only. System generated globally unique ID for the AspectType. + * If you delete and recreate the AspectType with the same name, then this ID + * will be different. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $uid = ''; + /** + * Output only. The time when the AspectType was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The time when the AspectType was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Optional. Description of the AspectType. + * + * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Optional. User friendly display name. + * + * Generated from protobuf field string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $display_name = ''; + /** + * Optional. User-defined labels for the AspectType. + * + * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $labels; + /** + * The service computes this checksum. The client may send it on update and + * delete requests to ensure it has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 8; + */ + protected $etag = ''; + /** + * Optional. Immutable. Stores data classification of the aspect. + * + * Generated from protobuf field .google.cloud.dataplex.v1.AspectType.DataClassification data_classification = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + */ + protected $data_classification = 0; + /** + * Immutable. Defines the Authorization for this type. + * + * Generated from protobuf field .google.cloud.dataplex.v1.AspectType.Authorization authorization = 52 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $authorization = null; + /** + * Required. MetadataTemplate of the aspect. + * + * Generated from protobuf field .google.cloud.dataplex.v1.AspectType.MetadataTemplate metadata_template = 53 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $metadata_template = null; + /** + * Output only. Denotes the transfer status of the Aspect Type. It is + * unspecified for Aspect Types created from Dataplex API. + * + * Generated from protobuf field .google.cloud.dataplex.v1.TransferStatus transfer_status = 202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $transfer_status = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. The relative resource name of the AspectType, of the form: + * projects/{project_number}/locations/{location_id}/aspectTypes/{aspect_type_id}. + * @type string $uid + * Output only. System generated globally unique ID for the AspectType. + * If you delete and recreate the AspectType with the same name, then this ID + * will be different. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time when the AspectType was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time when the AspectType was last updated. + * @type string $description + * Optional. Description of the AspectType. + * @type string $display_name + * Optional. User friendly display name. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Optional. User-defined labels for the AspectType. + * @type string $etag + * The service computes this checksum. The client may send it on update and + * delete requests to ensure it has an up-to-date value before proceeding. + * @type int $data_classification + * Optional. Immutable. Stores data classification of the aspect. + * @type \Google\Cloud\Dataplex\V1\AspectType\Authorization $authorization + * Immutable. Defines the Authorization for this type. + * @type \Google\Cloud\Dataplex\V1\AspectType\MetadataTemplate $metadata_template + * Required. MetadataTemplate of the aspect. + * @type int $transfer_status + * Output only. Denotes the transfer status of the Aspect Type. It is + * unspecified for Aspect Types created from Dataplex API. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The relative resource name of the AspectType, of the form: + * projects/{project_number}/locations/{location_id}/aspectTypes/{aspect_type_id}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. The relative resource name of the AspectType, of the form: + * projects/{project_number}/locations/{location_id}/aspectTypes/{aspect_type_id}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. System generated globally unique ID for the AspectType. + * If you delete and recreate the AspectType with the same name, then this ID + * will be different. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getUid() + { + return $this->uid; + } + + /** + * Output only. System generated globally unique ID for the AspectType. + * If you delete and recreate the AspectType with the same name, then this ID + * will be different. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setUid($var) + { + GPBUtil::checkString($var, True); + $this->uid = $var; + + return $this; + } + + /** + * Output only. The time when the AspectType was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The time when the AspectType was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. The time when the AspectType was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. The time when the AspectType was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Optional. Description of the AspectType. + * + * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. Description of the AspectType. + * + * 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; + } + + /** + * Optional. User friendly display name. + * + * Generated from protobuf field string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Optional. User friendly display name. + * + * Generated from protobuf field string display_name = 6 [(.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. User-defined labels for the AspectType. + * + * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Optional. User-defined labels for the AspectType. + * + * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * The service computes this checksum. The client may send it on update and + * delete requests to ensure it has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 8; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * The service computes this checksum. The client may send it on update and + * delete requests to ensure it has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 8; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * Optional. Immutable. Stores data classification of the aspect. + * + * Generated from protobuf field .google.cloud.dataplex.v1.AspectType.DataClassification data_classification = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * @return int + */ + public function getDataClassification() + { + return $this->data_classification; + } + + /** + * Optional. Immutable. Stores data classification of the aspect. + * + * Generated from protobuf field .google.cloud.dataplex.v1.AspectType.DataClassification data_classification = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * @param int $var + * @return $this + */ + public function setDataClassification($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\AspectType\DataClassification::class); + $this->data_classification = $var; + + return $this; + } + + /** + * Immutable. Defines the Authorization for this type. + * + * Generated from protobuf field .google.cloud.dataplex.v1.AspectType.Authorization authorization = 52 [(.google.api.field_behavior) = IMMUTABLE]; + * @return \Google\Cloud\Dataplex\V1\AspectType\Authorization|null + */ + public function getAuthorization() + { + return $this->authorization; + } + + public function hasAuthorization() + { + return isset($this->authorization); + } + + public function clearAuthorization() + { + unset($this->authorization); + } + + /** + * Immutable. Defines the Authorization for this type. + * + * Generated from protobuf field .google.cloud.dataplex.v1.AspectType.Authorization authorization = 52 [(.google.api.field_behavior) = IMMUTABLE]; + * @param \Google\Cloud\Dataplex\V1\AspectType\Authorization $var + * @return $this + */ + public function setAuthorization($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\AspectType\Authorization::class); + $this->authorization = $var; + + return $this; + } + + /** + * Required. MetadataTemplate of the aspect. + * + * Generated from protobuf field .google.cloud.dataplex.v1.AspectType.MetadataTemplate metadata_template = 53 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\AspectType\MetadataTemplate|null + */ + public function getMetadataTemplate() + { + return $this->metadata_template; + } + + public function hasMetadataTemplate() + { + return isset($this->metadata_template); + } + + public function clearMetadataTemplate() + { + unset($this->metadata_template); + } + + /** + * Required. MetadataTemplate of the aspect. + * + * Generated from protobuf field .google.cloud.dataplex.v1.AspectType.MetadataTemplate metadata_template = 53 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\AspectType\MetadataTemplate $var + * @return $this + */ + public function setMetadataTemplate($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\AspectType\MetadataTemplate::class); + $this->metadata_template = $var; + + return $this; + } + + /** + * Output only. Denotes the transfer status of the Aspect Type. It is + * unspecified for Aspect Types created from Dataplex API. + * + * Generated from protobuf field .google.cloud.dataplex.v1.TransferStatus transfer_status = 202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getTransferStatus() + { + return $this->transfer_status; + } + + /** + * Output only. Denotes the transfer status of the Aspect Type. It is + * unspecified for Aspect Types created from Dataplex API. + * + * Generated from protobuf field .google.cloud.dataplex.v1.TransferStatus transfer_status = 202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setTransferStatus($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\TransferStatus::class); + $this->transfer_status = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType/Authorization.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType/Authorization.php new file mode 100644 index 000000000000..2c66b632395b --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType/Authorization.php @@ -0,0 +1,75 @@ +google.cloud.dataplex.v1.AspectType.Authorization + */ +class Authorization extends \Google\Protobuf\Internal\Message +{ + /** + * Immutable. The IAM permission grantable on the EntryGroup to allow access + * to instantiate Aspects of Dataplex Universal Catalog owned AspectTypes, + * only settable for Dataplex Universal Catalog owned Types. + * + * Generated from protobuf field string alternate_use_permission = 1 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $alternate_use_permission = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $alternate_use_permission + * Immutable. The IAM permission grantable on the EntryGroup to allow access + * to instantiate Aspects of Dataplex Universal Catalog owned AspectTypes, + * only settable for Dataplex Universal Catalog owned Types. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Immutable. The IAM permission grantable on the EntryGroup to allow access + * to instantiate Aspects of Dataplex Universal Catalog owned AspectTypes, + * only settable for Dataplex Universal Catalog owned Types. + * + * Generated from protobuf field string alternate_use_permission = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getAlternateUsePermission() + { + return $this->alternate_use_permission; + } + + /** + * Immutable. The IAM permission grantable on the EntryGroup to allow access + * to instantiate Aspects of Dataplex Universal Catalog owned AspectTypes, + * only settable for Dataplex Universal Catalog owned Types. + * + * Generated from protobuf field string alternate_use_permission = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setAlternateUsePermission($var) + { + GPBUtil::checkString($var, True); + $this->alternate_use_permission = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType/DataClassification.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType/DataClassification.php new file mode 100644 index 000000000000..7d683ad0b920 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType/DataClassification.php @@ -0,0 +1,54 @@ +google.cloud.dataplex.v1.AspectType.DataClassification + */ +class DataClassification +{ + /** + * Denotes that the aspect contains only metadata. + * + * Generated from protobuf enum DATA_CLASSIFICATION_UNSPECIFIED = 0; + */ + const DATA_CLASSIFICATION_UNSPECIFIED = 0; + /** + * Metadata and data classification. + * + * Generated from protobuf enum METADATA_AND_DATA = 1; + */ + const METADATA_AND_DATA = 1; + + private static $valueToName = [ + self::DATA_CLASSIFICATION_UNSPECIFIED => 'DATA_CLASSIFICATION_UNSPECIFIED', + self::METADATA_AND_DATA => 'METADATA_AND_DATA', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType/MetadataTemplate.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType/MetadataTemplate.php new file mode 100644 index 000000000000..561c8b413d20 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType/MetadataTemplate.php @@ -0,0 +1,575 @@ +google.cloud.dataplex.v1.AspectType.MetadataTemplate + */ +class MetadataTemplate extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Index is used to encode Template messages. The value of index + * can range between 1 and 2,147,483,647. Index must be unique within all + * fields in a Template. (Nested Templates can reuse indexes). Once a + * Template is defined, the index cannot be changed, because it identifies + * the field in the actual storage format. Index is a mandatory field, but + * it is optional for top level fields, and map/array "values" definitions. + * + * Generated from protobuf field int32 index = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $index = 0; + /** + * Required. The name of the field. + * + * Generated from protobuf field string name = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $name = ''; + /** + * Required. The datatype of this field. The following values are supported: + * Primitive types: + * * string + * * int + * * bool + * * double + * * datetime. Must be of the format RFC3339 UTC "Zulu" (Examples: + * "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z"). + * Complex types: + * * enum + * * array + * * map + * * record + * + * Generated from protobuf field string type = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $type = ''; + /** + * Optional. Field definition. You must specify it if the type is record. It + * defines the nested fields. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.AspectType.MetadataTemplate record_fields = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $record_fields; + /** + * Optional. The list of values for an enum type. You must define it if the + * type is enum. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.AspectType.MetadataTemplate.EnumValue enum_values = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $enum_values; + /** + * Optional. If the type is map, set map_items. map_items can refer to a + * primitive field or a complex (record only) field. To specify a primitive + * field, you only need to set name and type in the nested + * MetadataTemplate. The recommended value for the name field is item, as + * this isn't used in the actual payload. + * + * Generated from protobuf field .google.cloud.dataplex.v1.AspectType.MetadataTemplate map_items = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $map_items = null; + /** + * Optional. If the type is array, set array_items. array_items can refer + * to a primitive field or a complex (record only) field. To specify a + * primitive field, you only need to set name and type in the nested + * MetadataTemplate. The recommended value for the name field is item, as + * this isn't used in the actual payload. + * + * Generated from protobuf field .google.cloud.dataplex.v1.AspectType.MetadataTemplate array_items = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $array_items = null; + /** + * Optional. You can use type id if this definition of the field needs to be + * reused later. The type id must be unique across the entire template. You + * can only specify it if the field type is record. + * + * Generated from protobuf field string type_id = 12 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $type_id = ''; + /** + * Optional. A reference to another field definition (not an inline + * definition). The value must be equal to the value of an id field defined + * elsewhere in the MetadataTemplate. Only fields with record type can + * refer to other fields. + * + * Generated from protobuf field string type_ref = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $type_ref = ''; + /** + * Optional. Specifies the constraints on this field. + * + * Generated from protobuf field .google.cloud.dataplex.v1.AspectType.MetadataTemplate.Constraints constraints = 50 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $constraints = null; + /** + * Optional. Specifies annotations on this field. + * + * Generated from protobuf field .google.cloud.dataplex.v1.AspectType.MetadataTemplate.Annotations annotations = 51 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $annotations = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $index + * Optional. Index is used to encode Template messages. The value of index + * can range between 1 and 2,147,483,647. Index must be unique within all + * fields in a Template. (Nested Templates can reuse indexes). Once a + * Template is defined, the index cannot be changed, because it identifies + * the field in the actual storage format. Index is a mandatory field, but + * it is optional for top level fields, and map/array "values" definitions. + * @type string $name + * Required. The name of the field. + * @type string $type + * Required. The datatype of this field. The following values are supported: + * Primitive types: + * * string + * * int + * * bool + * * double + * * datetime. Must be of the format RFC3339 UTC "Zulu" (Examples: + * "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z"). + * Complex types: + * * enum + * * array + * * map + * * record + * @type \Google\Cloud\Dataplex\V1\AspectType\MetadataTemplate[] $record_fields + * Optional. Field definition. You must specify it if the type is record. It + * defines the nested fields. + * @type \Google\Cloud\Dataplex\V1\AspectType\MetadataTemplate\EnumValue[] $enum_values + * Optional. The list of values for an enum type. You must define it if the + * type is enum. + * @type \Google\Cloud\Dataplex\V1\AspectType\MetadataTemplate $map_items + * Optional. If the type is map, set map_items. map_items can refer to a + * primitive field or a complex (record only) field. To specify a primitive + * field, you only need to set name and type in the nested + * MetadataTemplate. The recommended value for the name field is item, as + * this isn't used in the actual payload. + * @type \Google\Cloud\Dataplex\V1\AspectType\MetadataTemplate $array_items + * Optional. If the type is array, set array_items. array_items can refer + * to a primitive field or a complex (record only) field. To specify a + * primitive field, you only need to set name and type in the nested + * MetadataTemplate. The recommended value for the name field is item, as + * this isn't used in the actual payload. + * @type string $type_id + * Optional. You can use type id if this definition of the field needs to be + * reused later. The type id must be unique across the entire template. You + * can only specify it if the field type is record. + * @type string $type_ref + * Optional. A reference to another field definition (not an inline + * definition). The value must be equal to the value of an id field defined + * elsewhere in the MetadataTemplate. Only fields with record type can + * refer to other fields. + * @type \Google\Cloud\Dataplex\V1\AspectType\MetadataTemplate\Constraints $constraints + * Optional. Specifies the constraints on this field. + * @type \Google\Cloud\Dataplex\V1\AspectType\MetadataTemplate\Annotations $annotations + * Optional. Specifies annotations on this field. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Index is used to encode Template messages. The value of index + * can range between 1 and 2,147,483,647. Index must be unique within all + * fields in a Template. (Nested Templates can reuse indexes). Once a + * Template is defined, the index cannot be changed, because it identifies + * the field in the actual storage format. Index is a mandatory field, but + * it is optional for top level fields, and map/array "values" definitions. + * + * Generated from protobuf field int32 index = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getIndex() + { + return $this->index; + } + + /** + * Optional. Index is used to encode Template messages. The value of index + * can range between 1 and 2,147,483,647. Index must be unique within all + * fields in a Template. (Nested Templates can reuse indexes). Once a + * Template is defined, the index cannot be changed, because it identifies + * the field in the actual storage format. Index is a mandatory field, but + * it is optional for top level fields, and map/array "values" definitions. + * + * Generated from protobuf field int32 index = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setIndex($var) + { + GPBUtil::checkInt32($var); + $this->index = $var; + + return $this; + } + + /** + * Required. The name of the field. + * + * Generated from protobuf field string name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the field. + * + * Generated from protobuf field string name = 2 [(.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 datatype of this field. The following values are supported: + * Primitive types: + * * string + * * int + * * bool + * * double + * * datetime. Must be of the format RFC3339 UTC "Zulu" (Examples: + * "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z"). + * Complex types: + * * enum + * * array + * * map + * * record + * + * Generated from protobuf field string type = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getType() + { + return $this->type; + } + + /** + * Required. The datatype of this field. The following values are supported: + * Primitive types: + * * string + * * int + * * bool + * * double + * * datetime. Must be of the format RFC3339 UTC "Zulu" (Examples: + * "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z"). + * Complex types: + * * enum + * * array + * * map + * * record + * + * Generated from protobuf field string type = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkString($var, True); + $this->type = $var; + + return $this; + } + + /** + * Optional. Field definition. You must specify it if the type is record. It + * defines the nested fields. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.AspectType.MetadataTemplate record_fields = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\Dataplex\V1\AspectType\MetadataTemplate> + */ + public function getRecordFields() + { + return $this->record_fields; + } + + /** + * Optional. Field definition. You must specify it if the type is record. It + * defines the nested fields. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.AspectType.MetadataTemplate record_fields = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataplex\V1\AspectType\MetadataTemplate[] $var + * @return $this + */ + public function setRecordFields($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\AspectType\MetadataTemplate::class); + $this->record_fields = $arr; + + return $this; + } + + /** + * Optional. The list of values for an enum type. You must define it if the + * type is enum. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.AspectType.MetadataTemplate.EnumValue enum_values = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\Dataplex\V1\AspectType\MetadataTemplate\EnumValue> + */ + public function getEnumValues() + { + return $this->enum_values; + } + + /** + * Optional. The list of values for an enum type. You must define it if the + * type is enum. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.AspectType.MetadataTemplate.EnumValue enum_values = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataplex\V1\AspectType\MetadataTemplate\EnumValue[] $var + * @return $this + */ + public function setEnumValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\AspectType\MetadataTemplate\EnumValue::class); + $this->enum_values = $arr; + + return $this; + } + + /** + * Optional. If the type is map, set map_items. map_items can refer to a + * primitive field or a complex (record only) field. To specify a primitive + * field, you only need to set name and type in the nested + * MetadataTemplate. The recommended value for the name field is item, as + * this isn't used in the actual payload. + * + * Generated from protobuf field .google.cloud.dataplex.v1.AspectType.MetadataTemplate map_items = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataplex\V1\AspectType\MetadataTemplate|null + */ + public function getMapItems() + { + return $this->map_items; + } + + public function hasMapItems() + { + return isset($this->map_items); + } + + public function clearMapItems() + { + unset($this->map_items); + } + + /** + * Optional. If the type is map, set map_items. map_items can refer to a + * primitive field or a complex (record only) field. To specify a primitive + * field, you only need to set name and type in the nested + * MetadataTemplate. The recommended value for the name field is item, as + * this isn't used in the actual payload. + * + * Generated from protobuf field .google.cloud.dataplex.v1.AspectType.MetadataTemplate map_items = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataplex\V1\AspectType\MetadataTemplate $var + * @return $this + */ + public function setMapItems($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\AspectType\MetadataTemplate::class); + $this->map_items = $var; + + return $this; + } + + /** + * Optional. If the type is array, set array_items. array_items can refer + * to a primitive field or a complex (record only) field. To specify a + * primitive field, you only need to set name and type in the nested + * MetadataTemplate. The recommended value for the name field is item, as + * this isn't used in the actual payload. + * + * Generated from protobuf field .google.cloud.dataplex.v1.AspectType.MetadataTemplate array_items = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataplex\V1\AspectType\MetadataTemplate|null + */ + public function getArrayItems() + { + return $this->array_items; + } + + public function hasArrayItems() + { + return isset($this->array_items); + } + + public function clearArrayItems() + { + unset($this->array_items); + } + + /** + * Optional. If the type is array, set array_items. array_items can refer + * to a primitive field or a complex (record only) field. To specify a + * primitive field, you only need to set name and type in the nested + * MetadataTemplate. The recommended value for the name field is item, as + * this isn't used in the actual payload. + * + * Generated from protobuf field .google.cloud.dataplex.v1.AspectType.MetadataTemplate array_items = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataplex\V1\AspectType\MetadataTemplate $var + * @return $this + */ + public function setArrayItems($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\AspectType\MetadataTemplate::class); + $this->array_items = $var; + + return $this; + } + + /** + * Optional. You can use type id if this definition of the field needs to be + * reused later. The type id must be unique across the entire template. You + * can only specify it if the field type is record. + * + * Generated from protobuf field string type_id = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getTypeId() + { + return $this->type_id; + } + + /** + * Optional. You can use type id if this definition of the field needs to be + * reused later. The type id must be unique across the entire template. You + * can only specify it if the field type is record. + * + * Generated from protobuf field string type_id = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setTypeId($var) + { + GPBUtil::checkString($var, True); + $this->type_id = $var; + + return $this; + } + + /** + * Optional. A reference to another field definition (not an inline + * definition). The value must be equal to the value of an id field defined + * elsewhere in the MetadataTemplate. Only fields with record type can + * refer to other fields. + * + * Generated from protobuf field string type_ref = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getTypeRef() + { + return $this->type_ref; + } + + /** + * Optional. A reference to another field definition (not an inline + * definition). The value must be equal to the value of an id field defined + * elsewhere in the MetadataTemplate. Only fields with record type can + * refer to other fields. + * + * Generated from protobuf field string type_ref = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setTypeRef($var) + { + GPBUtil::checkString($var, True); + $this->type_ref = $var; + + return $this; + } + + /** + * Optional. Specifies the constraints on this field. + * + * Generated from protobuf field .google.cloud.dataplex.v1.AspectType.MetadataTemplate.Constraints constraints = 50 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataplex\V1\AspectType\MetadataTemplate\Constraints|null + */ + public function getConstraints() + { + return $this->constraints; + } + + public function hasConstraints() + { + return isset($this->constraints); + } + + public function clearConstraints() + { + unset($this->constraints); + } + + /** + * Optional. Specifies the constraints on this field. + * + * Generated from protobuf field .google.cloud.dataplex.v1.AspectType.MetadataTemplate.Constraints constraints = 50 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataplex\V1\AspectType\MetadataTemplate\Constraints $var + * @return $this + */ + public function setConstraints($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\AspectType\MetadataTemplate\Constraints::class); + $this->constraints = $var; + + return $this; + } + + /** + * Optional. Specifies annotations on this field. + * + * Generated from protobuf field .google.cloud.dataplex.v1.AspectType.MetadataTemplate.Annotations annotations = 51 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataplex\V1\AspectType\MetadataTemplate\Annotations|null + */ + public function getAnnotations() + { + return $this->annotations; + } + + public function hasAnnotations() + { + return isset($this->annotations); + } + + public function clearAnnotations() + { + unset($this->annotations); + } + + /** + * Optional. Specifies annotations on this field. + * + * Generated from protobuf field .google.cloud.dataplex.v1.AspectType.MetadataTemplate.Annotations annotations = 51 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataplex\V1\AspectType\MetadataTemplate\Annotations $var + * @return $this + */ + public function setAnnotations($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\AspectType\MetadataTemplate\Annotations::class); + $this->annotations = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType/MetadataTemplate/Annotations.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType/MetadataTemplate/Annotations.php new file mode 100644 index 000000000000..7e6f7ff6bc36 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType/MetadataTemplate/Annotations.php @@ -0,0 +1,265 @@ +google.cloud.dataplex.v1.AspectType.MetadataTemplate.Annotations + */ +class Annotations extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Marks a field as deprecated. You can include a deprecation + * message. + * + * Generated from protobuf field string deprecated = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $deprecated = ''; + /** + * Optional. Display name for a field. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $display_name = ''; + /** + * Optional. Description for a field. + * + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Optional. Display order for a field. You can use this to reorder where + * a field is rendered. + * + * Generated from protobuf field int32 display_order = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $display_order = 0; + /** + * Optional. You can use String Type annotations to specify special + * meaning to string fields. The following values are supported: + * * richText: The field must be interpreted as a rich text field. + * * url: A fully qualified URL link. + * * resource: A service qualified resource reference. + * + * Generated from protobuf field string string_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $string_type = ''; + /** + * Optional. Suggested hints for string fields. You can use them to + * suggest values to users through console. + * + * Generated from protobuf field repeated string string_values = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $string_values; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $deprecated + * Optional. Marks a field as deprecated. You can include a deprecation + * message. + * @type string $display_name + * Optional. Display name for a field. + * @type string $description + * Optional. Description for a field. + * @type int $display_order + * Optional. Display order for a field. You can use this to reorder where + * a field is rendered. + * @type string $string_type + * Optional. You can use String Type annotations to specify special + * meaning to string fields. The following values are supported: + * * richText: The field must be interpreted as a rich text field. + * * url: A fully qualified URL link. + * * resource: A service qualified resource reference. + * @type string[] $string_values + * Optional. Suggested hints for string fields. You can use them to + * suggest values to users through console. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Marks a field as deprecated. You can include a deprecation + * message. + * + * Generated from protobuf field string deprecated = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDeprecated() + { + return $this->deprecated; + } + + /** + * Optional. Marks a field as deprecated. You can include a deprecation + * message. + * + * Generated from protobuf field string deprecated = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDeprecated($var) + { + GPBUtil::checkString($var, True); + $this->deprecated = $var; + + return $this; + } + + /** + * Optional. Display name for a field. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Optional. Display name for a field. + * + * 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. Description for a field. + * + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. Description for a field. + * + * 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; + } + + /** + * Optional. Display order for a field. You can use this to reorder where + * a field is rendered. + * + * Generated from protobuf field int32 display_order = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getDisplayOrder() + { + return $this->display_order; + } + + /** + * Optional. Display order for a field. You can use this to reorder where + * a field is rendered. + * + * Generated from protobuf field int32 display_order = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setDisplayOrder($var) + { + GPBUtil::checkInt32($var); + $this->display_order = $var; + + return $this; + } + + /** + * Optional. You can use String Type annotations to specify special + * meaning to string fields. The following values are supported: + * * richText: The field must be interpreted as a rich text field. + * * url: A fully qualified URL link. + * * resource: A service qualified resource reference. + * + * Generated from protobuf field string string_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getStringType() + { + return $this->string_type; + } + + /** + * Optional. You can use String Type annotations to specify special + * meaning to string fields. The following values are supported: + * * richText: The field must be interpreted as a rich text field. + * * url: A fully qualified URL link. + * * resource: A service qualified resource reference. + * + * Generated from protobuf field string string_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setStringType($var) + { + GPBUtil::checkString($var, True); + $this->string_type = $var; + + return $this; + } + + /** + * Optional. Suggested hints for string fields. You can use them to + * suggest values to users through console. + * + * Generated from protobuf field repeated string string_values = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getStringValues() + { + return $this->string_values; + } + + /** + * Optional. Suggested hints for string fields. You can use them to + * suggest values to users through console. + * + * Generated from protobuf field repeated string string_values = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setStringValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->string_values = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType/MetadataTemplate/Constraints.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType/MetadataTemplate/Constraints.php new file mode 100644 index 000000000000..e62300431f54 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType/MetadataTemplate/Constraints.php @@ -0,0 +1,67 @@ +google.cloud.dataplex.v1.AspectType.MetadataTemplate.Constraints + */ +class Constraints extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Marks this field as optional or required. + * + * Generated from protobuf field bool required = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $required = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $required + * Optional. Marks this field as optional or required. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Marks this field as optional or required. + * + * Generated from protobuf field bool required = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getRequired() + { + return $this->required; + } + + /** + * Optional. Marks this field as optional or required. + * + * Generated from protobuf field bool required = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setRequired($var) + { + GPBUtil::checkBool($var); + $this->required = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType/MetadataTemplate/EnumValue.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType/MetadataTemplate/EnumValue.php new file mode 100644 index 000000000000..9a3c62b355f4 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType/MetadataTemplate/EnumValue.php @@ -0,0 +1,143 @@ +google.cloud.dataplex.v1.AspectType.MetadataTemplate.EnumValue + */ +class EnumValue extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Index for the enum value. It can't be modified. + * + * Generated from protobuf field int32 index = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $index = 0; + /** + * Required. Name of the enumvalue. This is the actual value that the + * aspect can contain. + * + * Generated from protobuf field string name = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $name = ''; + /** + * Optional. You can set this message if you need to deprecate an enum + * value. + * + * Generated from protobuf field string deprecated = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $deprecated = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $index + * Required. Index for the enum value. It can't be modified. + * @type string $name + * Required. Name of the enumvalue. This is the actual value that the + * aspect can contain. + * @type string $deprecated + * Optional. You can set this message if you need to deprecate an enum + * value. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. Index for the enum value. It can't be modified. + * + * Generated from protobuf field int32 index = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getIndex() + { + return $this->index; + } + + /** + * Required. Index for the enum value. It can't be modified. + * + * Generated from protobuf field int32 index = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setIndex($var) + { + GPBUtil::checkInt32($var); + $this->index = $var; + + return $this; + } + + /** + * Required. Name of the enumvalue. This is the actual value that the + * aspect can contain. + * + * Generated from protobuf field string name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Name of the enumvalue. This is the actual value that the + * aspect can contain. + * + * Generated from protobuf field string name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. You can set this message if you need to deprecate an enum + * value. + * + * Generated from protobuf field string deprecated = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDeprecated() + { + return $this->deprecated; + } + + /** + * Optional. You can set this message if you need to deprecate an enum + * value. + * + * Generated from protobuf field string deprecated = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDeprecated($var) + { + GPBUtil::checkString($var, True); + $this->deprecated = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset.php new file mode 100644 index 000000000000..39336619d18f --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset.php @@ -0,0 +1,574 @@ +google.cloud.dataplex.v1.Asset + */ +class Asset extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The relative resource name of the asset, of the form: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. User friendly display name. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $display_name = ''; + /** + * Output only. System generated globally unique ID for the asset. This ID + * will be different if the asset is deleted and re-created with the same + * name. + * + * Generated from protobuf field string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $uid = ''; + /** + * Output only. The time when the asset was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The time when the asset was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Optional. User defined labels for the asset. + * + * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $labels; + /** + * Optional. Description of the asset. + * + * Generated from protobuf field string description = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Output only. Current state of the asset. + * + * Generated from protobuf field .google.cloud.dataplex.v1.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Required. Specification of the resource that is referenced by this asset. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Asset.ResourceSpec resource_spec = 100 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $resource_spec = null; + /** + * Output only. Status of the resource referenced by this asset. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Asset.ResourceStatus resource_status = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $resource_status = null; + /** + * Output only. Status of the security policy applied to resource referenced + * by this asset. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Asset.SecurityStatus security_status = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $security_status = null; + /** + * Optional. Specification of the discovery feature applied to data referenced + * by this asset. When this spec is left unset, the asset will use the spec + * set on the parent zone. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Asset.DiscoverySpec discovery_spec = 106 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $discovery_spec = null; + /** + * Output only. Status of the discovery feature applied to data referenced by + * this asset. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Asset.DiscoveryStatus discovery_status = 107 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $discovery_status = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. The relative resource name of the asset, of the form: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. + * @type string $display_name + * Optional. User friendly display name. + * @type string $uid + * Output only. System generated globally unique ID for the asset. This ID + * will be different if the asset is deleted and re-created with the same + * name. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time when the asset was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time when the asset was last updated. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Optional. User defined labels for the asset. + * @type string $description + * Optional. Description of the asset. + * @type int $state + * Output only. Current state of the asset. + * @type \Google\Cloud\Dataplex\V1\Asset\ResourceSpec $resource_spec + * Required. Specification of the resource that is referenced by this asset. + * @type \Google\Cloud\Dataplex\V1\Asset\ResourceStatus $resource_status + * Output only. Status of the resource referenced by this asset. + * @type \Google\Cloud\Dataplex\V1\Asset\SecurityStatus $security_status + * Output only. Status of the security policy applied to resource referenced + * by this asset. + * @type \Google\Cloud\Dataplex\V1\Asset\DiscoverySpec $discovery_spec + * Optional. Specification of the discovery feature applied to data referenced + * by this asset. When this spec is left unset, the asset will use the spec + * set on the parent zone. + * @type \Google\Cloud\Dataplex\V1\Asset\DiscoveryStatus $discovery_status + * Output only. Status of the discovery feature applied to data referenced by + * this asset. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The relative resource name of the asset, of the form: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. The relative resource name of the asset, of the form: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. User friendly display name. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Optional. User friendly display name. + * + * 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; + } + + /** + * Output only. System generated globally unique ID for the asset. This ID + * will be different if the asset is deleted and re-created with the same + * name. + * + * Generated from protobuf field string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getUid() + { + return $this->uid; + } + + /** + * Output only. System generated globally unique ID for the asset. This ID + * will be different if the asset is deleted and re-created with the same + * name. + * + * Generated from protobuf field string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setUid($var) + { + GPBUtil::checkString($var, True); + $this->uid = $var; + + return $this; + } + + /** + * Output only. The time when the asset was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.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 asset was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.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 asset was last updated. + * + * 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 time when the asset was last updated. + * + * 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. User defined labels for the asset. + * + * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Optional. User defined labels for the asset. + * + * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Optional. Description of the asset. + * + * Generated from protobuf field string description = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. Description of the asset. + * + * Generated from protobuf field string description = 7 [(.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. Current state of the asset. + * + * Generated from protobuf field .google.cloud.dataplex.v1.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. Current state of the asset. + * + * Generated from protobuf field .google.cloud.dataplex.v1.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\State::class); + $this->state = $var; + + return $this; + } + + /** + * Required. Specification of the resource that is referenced by this asset. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Asset.ResourceSpec resource_spec = 100 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\Asset\ResourceSpec|null + */ + public function getResourceSpec() + { + return $this->resource_spec; + } + + public function hasResourceSpec() + { + return isset($this->resource_spec); + } + + public function clearResourceSpec() + { + unset($this->resource_spec); + } + + /** + * Required. Specification of the resource that is referenced by this asset. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Asset.ResourceSpec resource_spec = 100 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\Asset\ResourceSpec $var + * @return $this + */ + public function setResourceSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Asset\ResourceSpec::class); + $this->resource_spec = $var; + + return $this; + } + + /** + * Output only. Status of the resource referenced by this asset. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Asset.ResourceStatus resource_status = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataplex\V1\Asset\ResourceStatus|null + */ + public function getResourceStatus() + { + return $this->resource_status; + } + + public function hasResourceStatus() + { + return isset($this->resource_status); + } + + public function clearResourceStatus() + { + unset($this->resource_status); + } + + /** + * Output only. Status of the resource referenced by this asset. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Asset.ResourceStatus resource_status = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\Asset\ResourceStatus $var + * @return $this + */ + public function setResourceStatus($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Asset\ResourceStatus::class); + $this->resource_status = $var; + + return $this; + } + + /** + * Output only. Status of the security policy applied to resource referenced + * by this asset. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Asset.SecurityStatus security_status = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataplex\V1\Asset\SecurityStatus|null + */ + public function getSecurityStatus() + { + return $this->security_status; + } + + public function hasSecurityStatus() + { + return isset($this->security_status); + } + + public function clearSecurityStatus() + { + unset($this->security_status); + } + + /** + * Output only. Status of the security policy applied to resource referenced + * by this asset. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Asset.SecurityStatus security_status = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\Asset\SecurityStatus $var + * @return $this + */ + public function setSecurityStatus($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Asset\SecurityStatus::class); + $this->security_status = $var; + + return $this; + } + + /** + * Optional. Specification of the discovery feature applied to data referenced + * by this asset. When this spec is left unset, the asset will use the spec + * set on the parent zone. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Asset.DiscoverySpec discovery_spec = 106 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataplex\V1\Asset\DiscoverySpec|null + */ + public function getDiscoverySpec() + { + return $this->discovery_spec; + } + + public function hasDiscoverySpec() + { + return isset($this->discovery_spec); + } + + public function clearDiscoverySpec() + { + unset($this->discovery_spec); + } + + /** + * Optional. Specification of the discovery feature applied to data referenced + * by this asset. When this spec is left unset, the asset will use the spec + * set on the parent zone. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Asset.DiscoverySpec discovery_spec = 106 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataplex\V1\Asset\DiscoverySpec $var + * @return $this + */ + public function setDiscoverySpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Asset\DiscoverySpec::class); + $this->discovery_spec = $var; + + return $this; + } + + /** + * Output only. Status of the discovery feature applied to data referenced by + * this asset. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Asset.DiscoveryStatus discovery_status = 107 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataplex\V1\Asset\DiscoveryStatus|null + */ + public function getDiscoveryStatus() + { + return $this->discovery_status; + } + + public function hasDiscoveryStatus() + { + return isset($this->discovery_status); + } + + public function clearDiscoveryStatus() + { + unset($this->discovery_status); + } + + /** + * Output only. Status of the discovery feature applied to data referenced by + * this asset. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Asset.DiscoveryStatus discovery_status = 107 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\Asset\DiscoveryStatus $var + * @return $this + */ + public function setDiscoveryStatus($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Asset\DiscoveryStatus::class); + $this->discovery_status = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/DiscoverySpec.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/DiscoverySpec.php new file mode 100644 index 000000000000..ca3f9f8fd794 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/DiscoverySpec.php @@ -0,0 +1,317 @@ +google.cloud.dataplex.v1.Asset.DiscoverySpec + */ +class DiscoverySpec extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Whether discovery is enabled. + * + * Generated from protobuf field bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $enabled = false; + /** + * Optional. The list of patterns to apply for selecting data to include + * during discovery if only a subset of the data should considered. For + * Cloud Storage bucket assets, these are interpreted as glob patterns used + * to match object names. For BigQuery dataset assets, these are interpreted + * as patterns to match table names. + * + * Generated from protobuf field repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $include_patterns; + /** + * Optional. The list of patterns to apply for selecting data to exclude + * during discovery. For Cloud Storage bucket assets, these are interpreted + * as glob patterns used to match object names. For BigQuery dataset assets, + * these are interpreted as patterns to match table names. + * + * Generated from protobuf field repeated string exclude_patterns = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $exclude_patterns; + /** + * Optional. Configuration for CSV data. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Asset.DiscoverySpec.CsvOptions csv_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $csv_options = null; + /** + * Optional. Configuration for Json data. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Asset.DiscoverySpec.JsonOptions json_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $json_options = null; + protected $trigger; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * Optional. Whether discovery is enabled. + * @type string[] $include_patterns + * Optional. The list of patterns to apply for selecting data to include + * during discovery if only a subset of the data should considered. For + * Cloud Storage bucket assets, these are interpreted as glob patterns used + * to match object names. For BigQuery dataset assets, these are interpreted + * as patterns to match table names. + * @type string[] $exclude_patterns + * Optional. The list of patterns to apply for selecting data to exclude + * during discovery. For Cloud Storage bucket assets, these are interpreted + * as glob patterns used to match object names. For BigQuery dataset assets, + * these are interpreted as patterns to match table names. + * @type \Google\Cloud\Dataplex\V1\Asset\DiscoverySpec\CsvOptions $csv_options + * Optional. Configuration for CSV data. + * @type \Google\Cloud\Dataplex\V1\Asset\DiscoverySpec\JsonOptions $json_options + * Optional. Configuration for Json data. + * @type string $schedule + * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for + * running discovery periodically. Successive discovery runs must be + * scheduled at least 60 minutes apart. The default value is to run + * discovery every 60 minutes. + * To explicitly set a timezone to the cron tab, apply a prefix in the + * cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}". + * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone + * database. For example, `CRON_TZ=America/New_York 1 * * * *`, or + * `TZ=America/New_York 1 * * * *`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Whether discovery is enabled. + * + * Generated from protobuf field bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Optional. Whether discovery is enabled. + * + * Generated from protobuf field bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + + /** + * Optional. The list of patterns to apply for selecting data to include + * during discovery if only a subset of the data should considered. For + * Cloud Storage bucket assets, these are interpreted as glob patterns used + * to match object names. For BigQuery dataset assets, these are interpreted + * as patterns to match table names. + * + * Generated from protobuf field repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getIncludePatterns() + { + return $this->include_patterns; + } + + /** + * Optional. The list of patterns to apply for selecting data to include + * during discovery if only a subset of the data should considered. For + * Cloud Storage bucket assets, these are interpreted as glob patterns used + * to match object names. For BigQuery dataset assets, these are interpreted + * as patterns to match table names. + * + * Generated from protobuf field repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setIncludePatterns($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->include_patterns = $arr; + + return $this; + } + + /** + * Optional. The list of patterns to apply for selecting data to exclude + * during discovery. For Cloud Storage bucket assets, these are interpreted + * as glob patterns used to match object names. For BigQuery dataset assets, + * these are interpreted as patterns to match table names. + * + * Generated from protobuf field repeated string exclude_patterns = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getExcludePatterns() + { + return $this->exclude_patterns; + } + + /** + * Optional. The list of patterns to apply for selecting data to exclude + * during discovery. For Cloud Storage bucket assets, these are interpreted + * as glob patterns used to match object names. For BigQuery dataset assets, + * these are interpreted as patterns to match table names. + * + * Generated from protobuf field repeated string exclude_patterns = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setExcludePatterns($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->exclude_patterns = $arr; + + return $this; + } + + /** + * Optional. Configuration for CSV data. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Asset.DiscoverySpec.CsvOptions csv_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataplex\V1\Asset\DiscoverySpec\CsvOptions|null + */ + public function getCsvOptions() + { + return $this->csv_options; + } + + public function hasCsvOptions() + { + return isset($this->csv_options); + } + + public function clearCsvOptions() + { + unset($this->csv_options); + } + + /** + * Optional. Configuration for CSV data. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Asset.DiscoverySpec.CsvOptions csv_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataplex\V1\Asset\DiscoverySpec\CsvOptions $var + * @return $this + */ + public function setCsvOptions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Asset\DiscoverySpec\CsvOptions::class); + $this->csv_options = $var; + + return $this; + } + + /** + * Optional. Configuration for Json data. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Asset.DiscoverySpec.JsonOptions json_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataplex\V1\Asset\DiscoverySpec\JsonOptions|null + */ + public function getJsonOptions() + { + return $this->json_options; + } + + public function hasJsonOptions() + { + return isset($this->json_options); + } + + public function clearJsonOptions() + { + unset($this->json_options); + } + + /** + * Optional. Configuration for Json data. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Asset.DiscoverySpec.JsonOptions json_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataplex\V1\Asset\DiscoverySpec\JsonOptions $var + * @return $this + */ + public function setJsonOptions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Asset\DiscoverySpec\JsonOptions::class); + $this->json_options = $var; + + return $this; + } + + /** + * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for + * running discovery periodically. Successive discovery runs must be + * scheduled at least 60 minutes apart. The default value is to run + * discovery every 60 minutes. + * To explicitly set a timezone to the cron tab, apply a prefix in the + * cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}". + * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone + * database. For example, `CRON_TZ=America/New_York 1 * * * *`, or + * `TZ=America/New_York 1 * * * *`. + * + * Generated from protobuf field string schedule = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getSchedule() + { + return $this->readOneof(10); + } + + public function hasSchedule() + { + return $this->hasOneof(10); + } + + /** + * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for + * running discovery periodically. Successive discovery runs must be + * scheduled at least 60 minutes apart. The default value is to run + * discovery every 60 minutes. + * To explicitly set a timezone to the cron tab, apply a prefix in the + * cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}". + * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone + * database. For example, `CRON_TZ=America/New_York 1 * * * *`, or + * `TZ=America/New_York 1 * * * *`. + * + * Generated from protobuf field string schedule = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setSchedule($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(10, $var); + + return $this; + } + + /** + * @return string + */ + public function getTrigger() + { + return $this->whichOneof("trigger"); + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/DiscoverySpec/CsvOptions.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/DiscoverySpec/CsvOptions.php new file mode 100644 index 000000000000..bbf45a836180 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/DiscoverySpec/CsvOptions.php @@ -0,0 +1,181 @@ +google.cloud.dataplex.v1.Asset.DiscoverySpec.CsvOptions + */ +class CsvOptions extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The number of rows to interpret as header rows that should be + * skipped when reading data rows. + * + * Generated from protobuf field int32 header_rows = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $header_rows = 0; + /** + * Optional. The delimiter being used to separate values. This defaults to + * ','. + * + * Generated from protobuf field string delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $delimiter = ''; + /** + * Optional. The character encoding of the data. The default is UTF-8. + * + * Generated from protobuf field string encoding = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $encoding = ''; + /** + * Optional. Whether to disable the inference of data type for CSV data. + * If true, all columns will be registered as strings. + * + * Generated from protobuf field bool disable_type_inference = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $disable_type_inference = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $header_rows + * Optional. The number of rows to interpret as header rows that should be + * skipped when reading data rows. + * @type string $delimiter + * Optional. The delimiter being used to separate values. This defaults to + * ','. + * @type string $encoding + * Optional. The character encoding of the data. The default is UTF-8. + * @type bool $disable_type_inference + * Optional. Whether to disable the inference of data type for CSV data. + * If true, all columns will be registered as strings. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The number of rows to interpret as header rows that should be + * skipped when reading data rows. + * + * Generated from protobuf field int32 header_rows = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getHeaderRows() + { + return $this->header_rows; + } + + /** + * Optional. The number of rows to interpret as header rows that should be + * skipped when reading data rows. + * + * Generated from protobuf field int32 header_rows = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setHeaderRows($var) + { + GPBUtil::checkInt32($var); + $this->header_rows = $var; + + return $this; + } + + /** + * Optional. The delimiter being used to separate values. This defaults to + * ','. + * + * Generated from protobuf field string delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDelimiter() + { + return $this->delimiter; + } + + /** + * Optional. The delimiter being used to separate values. This defaults to + * ','. + * + * Generated from protobuf field string delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDelimiter($var) + { + GPBUtil::checkString($var, True); + $this->delimiter = $var; + + return $this; + } + + /** + * Optional. The character encoding of the data. The default is UTF-8. + * + * Generated from protobuf field string encoding = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEncoding() + { + return $this->encoding; + } + + /** + * Optional. The character encoding of the data. The default is UTF-8. + * + * Generated from protobuf field string encoding = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setEncoding($var) + { + GPBUtil::checkString($var, True); + $this->encoding = $var; + + return $this; + } + + /** + * Optional. Whether to disable the inference of data type for CSV data. + * If true, all columns will be registered as strings. + * + * Generated from protobuf field bool disable_type_inference = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getDisableTypeInference() + { + return $this->disable_type_inference; + } + + /** + * Optional. Whether to disable the inference of data type for CSV data. + * If true, all columns will be registered as strings. + * + * Generated from protobuf field bool disable_type_inference = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setDisableTypeInference($var) + { + GPBUtil::checkBool($var); + $this->disable_type_inference = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/DiscoverySpec/JsonOptions.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/DiscoverySpec/JsonOptions.php new file mode 100644 index 000000000000..fd1fa209a76e --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/DiscoverySpec/JsonOptions.php @@ -0,0 +1,109 @@ +google.cloud.dataplex.v1.Asset.DiscoverySpec.JsonOptions + */ +class JsonOptions extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The character encoding of the data. The default is UTF-8. + * + * Generated from protobuf field string encoding = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $encoding = ''; + /** + * Optional. Whether to disable the inference of data type for Json data. + * If true, all columns will be registered as their primitive types + * (strings, number or boolean). + * + * Generated from protobuf field bool disable_type_inference = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $disable_type_inference = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $encoding + * Optional. The character encoding of the data. The default is UTF-8. + * @type bool $disable_type_inference + * Optional. Whether to disable the inference of data type for Json data. + * If true, all columns will be registered as their primitive types + * (strings, number or boolean). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The character encoding of the data. The default is UTF-8. + * + * Generated from protobuf field string encoding = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEncoding() + { + return $this->encoding; + } + + /** + * Optional. The character encoding of the data. The default is UTF-8. + * + * Generated from protobuf field string encoding = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setEncoding($var) + { + GPBUtil::checkString($var, True); + $this->encoding = $var; + + return $this; + } + + /** + * Optional. Whether to disable the inference of data type for Json data. + * If true, all columns will be registered as their primitive types + * (strings, number or boolean). + * + * Generated from protobuf field bool disable_type_inference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getDisableTypeInference() + { + return $this->disable_type_inference; + } + + /** + * Optional. Whether to disable the inference of data type for Json data. + * If true, all columns will be registered as their primitive types + * (strings, number or boolean). + * + * Generated from protobuf field bool disable_type_inference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setDisableTypeInference($var) + { + GPBUtil::checkBool($var); + $this->disable_type_inference = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/DiscoveryStatus.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/DiscoveryStatus.php new file mode 100644 index 000000000000..8137020d5287 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/DiscoveryStatus.php @@ -0,0 +1,277 @@ +google.cloud.dataplex.v1.Asset.DiscoveryStatus + */ +class DiscoveryStatus extends \Google\Protobuf\Internal\Message +{ + /** + * The current status of the discovery feature. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Asset.DiscoveryStatus.State state = 1; + */ + protected $state = 0; + /** + * Additional information about the current state. + * + * Generated from protobuf field string message = 2; + */ + protected $message = ''; + /** + * Last update time of the status. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 3; + */ + protected $update_time = null; + /** + * The start time of the last discovery run. + * + * Generated from protobuf field .google.protobuf.Timestamp last_run_time = 4; + */ + protected $last_run_time = null; + /** + * Data Stats of the asset reported by discovery. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Asset.DiscoveryStatus.Stats stats = 6; + */ + protected $stats = null; + /** + * The duration of the last discovery run. + * + * Generated from protobuf field .google.protobuf.Duration last_run_duration = 7; + */ + protected $last_run_duration = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $state + * The current status of the discovery feature. + * @type string $message + * Additional information about the current state. + * @type \Google\Protobuf\Timestamp $update_time + * Last update time of the status. + * @type \Google\Protobuf\Timestamp $last_run_time + * The start time of the last discovery run. + * @type \Google\Cloud\Dataplex\V1\Asset\DiscoveryStatus\Stats $stats + * Data Stats of the asset reported by discovery. + * @type \Google\Protobuf\Duration $last_run_duration + * The duration of the last discovery run. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * The current status of the discovery feature. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Asset.DiscoveryStatus.State state = 1; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * The current status of the discovery feature. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Asset.DiscoveryStatus.State state = 1; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\Asset\DiscoveryStatus\State::class); + $this->state = $var; + + return $this; + } + + /** + * Additional information about the current state. + * + * Generated from protobuf field string message = 2; + * @return string + */ + public function getMessage() + { + return $this->message; + } + + /** + * Additional information about the current state. + * + * Generated from protobuf field string message = 2; + * @param string $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkString($var, True); + $this->message = $var; + + return $this; + } + + /** + * Last update time of the status. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 3; + * @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); + } + + /** + * Last update time of the status. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 3; + * @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 start time of the last discovery run. + * + * Generated from protobuf field .google.protobuf.Timestamp last_run_time = 4; + * @return \Google\Protobuf\Timestamp|null + */ + public function getLastRunTime() + { + return $this->last_run_time; + } + + public function hasLastRunTime() + { + return isset($this->last_run_time); + } + + public function clearLastRunTime() + { + unset($this->last_run_time); + } + + /** + * The start time of the last discovery run. + * + * Generated from protobuf field .google.protobuf.Timestamp last_run_time = 4; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setLastRunTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->last_run_time = $var; + + return $this; + } + + /** + * Data Stats of the asset reported by discovery. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Asset.DiscoveryStatus.Stats stats = 6; + * @return \Google\Cloud\Dataplex\V1\Asset\DiscoveryStatus\Stats|null + */ + public function getStats() + { + return $this->stats; + } + + public function hasStats() + { + return isset($this->stats); + } + + public function clearStats() + { + unset($this->stats); + } + + /** + * Data Stats of the asset reported by discovery. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Asset.DiscoveryStatus.Stats stats = 6; + * @param \Google\Cloud\Dataplex\V1\Asset\DiscoveryStatus\Stats $var + * @return $this + */ + public function setStats($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Asset\DiscoveryStatus\Stats::class); + $this->stats = $var; + + return $this; + } + + /** + * The duration of the last discovery run. + * + * Generated from protobuf field .google.protobuf.Duration last_run_duration = 7; + * @return \Google\Protobuf\Duration|null + */ + public function getLastRunDuration() + { + return $this->last_run_duration; + } + + public function hasLastRunDuration() + { + return isset($this->last_run_duration); + } + + public function clearLastRunDuration() + { + unset($this->last_run_duration); + } + + /** + * The duration of the last discovery run. + * + * Generated from protobuf field .google.protobuf.Duration last_run_duration = 7; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setLastRunDuration($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->last_run_duration = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/DiscoveryStatus/State.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/DiscoveryStatus/State.php new file mode 100644 index 000000000000..507fd64afe64 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/DiscoveryStatus/State.php @@ -0,0 +1,76 @@ +google.cloud.dataplex.v1.Asset.DiscoveryStatus.State + */ +class State +{ + /** + * State is unspecified. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * Discovery for the asset is scheduled. + * + * Generated from protobuf enum SCHEDULED = 1; + */ + const SCHEDULED = 1; + /** + * Discovery for the asset is running. + * + * Generated from protobuf enum IN_PROGRESS = 2; + */ + const IN_PROGRESS = 2; + /** + * Discovery for the asset is currently paused (e.g. due to a lack + * of available resources). It will be automatically resumed. + * + * Generated from protobuf enum PAUSED = 3; + */ + const PAUSED = 3; + /** + * Discovery for the asset is disabled. + * + * Generated from protobuf enum DISABLED = 5; + */ + const DISABLED = 5; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::SCHEDULED => 'SCHEDULED', + self::IN_PROGRESS => 'IN_PROGRESS', + self::PAUSED => 'PAUSED', + self::DISABLED => 'DISABLED', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/DiscoveryStatus/Stats.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/DiscoveryStatus/Stats.php new file mode 100644 index 000000000000..1744168f772e --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/DiscoveryStatus/Stats.php @@ -0,0 +1,169 @@ +google.cloud.dataplex.v1.Asset.DiscoveryStatus.Stats + */ +class Stats extends \Google\Protobuf\Internal\Message +{ + /** + * The count of data items within the referenced resource. + * + * Generated from protobuf field int64 data_items = 1; + */ + protected $data_items = 0; + /** + * The number of stored data bytes within the referenced resource. + * + * Generated from protobuf field int64 data_size = 2; + */ + protected $data_size = 0; + /** + * The count of table entities within the referenced resource. + * + * Generated from protobuf field int64 tables = 3; + */ + protected $tables = 0; + /** + * The count of fileset entities within the referenced resource. + * + * Generated from protobuf field int64 filesets = 4; + */ + protected $filesets = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $data_items + * The count of data items within the referenced resource. + * @type int|string $data_size + * The number of stored data bytes within the referenced resource. + * @type int|string $tables + * The count of table entities within the referenced resource. + * @type int|string $filesets + * The count of fileset entities within the referenced resource. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * The count of data items within the referenced resource. + * + * Generated from protobuf field int64 data_items = 1; + * @return int|string + */ + public function getDataItems() + { + return $this->data_items; + } + + /** + * The count of data items within the referenced resource. + * + * Generated from protobuf field int64 data_items = 1; + * @param int|string $var + * @return $this + */ + public function setDataItems($var) + { + GPBUtil::checkInt64($var); + $this->data_items = $var; + + return $this; + } + + /** + * The number of stored data bytes within the referenced resource. + * + * Generated from protobuf field int64 data_size = 2; + * @return int|string + */ + public function getDataSize() + { + return $this->data_size; + } + + /** + * The number of stored data bytes within the referenced resource. + * + * Generated from protobuf field int64 data_size = 2; + * @param int|string $var + * @return $this + */ + public function setDataSize($var) + { + GPBUtil::checkInt64($var); + $this->data_size = $var; + + return $this; + } + + /** + * The count of table entities within the referenced resource. + * + * Generated from protobuf field int64 tables = 3; + * @return int|string + */ + public function getTables() + { + return $this->tables; + } + + /** + * The count of table entities within the referenced resource. + * + * Generated from protobuf field int64 tables = 3; + * @param int|string $var + * @return $this + */ + public function setTables($var) + { + GPBUtil::checkInt64($var); + $this->tables = $var; + + return $this; + } + + /** + * The count of fileset entities within the referenced resource. + * + * Generated from protobuf field int64 filesets = 4; + * @return int|string + */ + public function getFilesets() + { + return $this->filesets; + } + + /** + * The count of fileset entities within the referenced resource. + * + * Generated from protobuf field int64 filesets = 4; + * @param int|string $var + * @return $this + */ + public function setFilesets($var) + { + GPBUtil::checkInt64($var); + $this->filesets = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/ResourceSpec.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/ResourceSpec.php new file mode 100644 index 000000000000..55b1dc836f7f --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/ResourceSpec.php @@ -0,0 +1,151 @@ +google.cloud.dataplex.v1.Asset.ResourceSpec + */ +class ResourceSpec extends \Google\Protobuf\Internal\Message +{ + /** + * Immutable. Relative name of the cloud resource that contains the data + * that is being managed within a lake. For example: + * `projects/{project_number}/buckets/{bucket_id}` + * `projects/{project_number}/datasets/{dataset_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $name = ''; + /** + * Required. Immutable. Type of resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Asset.ResourceSpec.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + */ + protected $type = 0; + /** + * Optional. Determines how read permissions are handled for each asset and + * their associated tables. Only available to storage buckets assets. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Asset.ResourceSpec.AccessMode read_access_mode = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $read_access_mode = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Immutable. Relative name of the cloud resource that contains the data + * that is being managed within a lake. For example: + * `projects/{project_number}/buckets/{bucket_id}` + * `projects/{project_number}/datasets/{dataset_id}` + * @type int $type + * Required. Immutable. Type of resource. + * @type int $read_access_mode + * Optional. Determines how read permissions are handled for each asset and + * their associated tables. Only available to storage buckets assets. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Immutable. Relative name of the cloud resource that contains the data + * that is being managed within a lake. For example: + * `projects/{project_number}/buckets/{bucket_id}` + * `projects/{project_number}/datasets/{dataset_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Immutable. Relative name of the cloud resource that contains the data + * that is being managed within a lake. For example: + * `projects/{project_number}/buckets/{bucket_id}` + * `projects/{project_number}/datasets/{dataset_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. Immutable. Type of resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Asset.ResourceSpec.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Required. Immutable. Type of resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Asset.ResourceSpec.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\Asset\ResourceSpec\Type::class); + $this->type = $var; + + return $this; + } + + /** + * Optional. Determines how read permissions are handled for each asset and + * their associated tables. Only available to storage buckets assets. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Asset.ResourceSpec.AccessMode read_access_mode = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getReadAccessMode() + { + return $this->read_access_mode; + } + + /** + * Optional. Determines how read permissions are handled for each asset and + * their associated tables. Only available to storage buckets assets. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Asset.ResourceSpec.AccessMode read_access_mode = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setReadAccessMode($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\Asset\ResourceSpec\AccessMode::class); + $this->read_access_mode = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/ResourceSpec/AccessMode.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/ResourceSpec/AccessMode.php new file mode 100644 index 000000000000..c82d7573720e --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/ResourceSpec/AccessMode.php @@ -0,0 +1,62 @@ +google.cloud.dataplex.v1.Asset.ResourceSpec.AccessMode + */ +class AccessMode +{ + /** + * Access mode unspecified. + * + * Generated from protobuf enum ACCESS_MODE_UNSPECIFIED = 0; + */ + const ACCESS_MODE_UNSPECIFIED = 0; + /** + * Default. Data is accessed directly using storage APIs. + * + * Generated from protobuf enum DIRECT = 1; + */ + const DIRECT = 1; + /** + * Data is accessed through a managed interface using BigQuery APIs. + * + * Generated from protobuf enum MANAGED = 2; + */ + const MANAGED = 2; + + private static $valueToName = [ + self::ACCESS_MODE_UNSPECIFIED => 'ACCESS_MODE_UNSPECIFIED', + self::DIRECT => 'DIRECT', + self::MANAGED => 'MANAGED', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/ResourceSpec/Type.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/ResourceSpec/Type.php new file mode 100644 index 000000000000..d6ac27413920 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/ResourceSpec/Type.php @@ -0,0 +1,61 @@ +google.cloud.dataplex.v1.Asset.ResourceSpec.Type + */ +class Type +{ + /** + * Type not specified. + * + * Generated from protobuf enum TYPE_UNSPECIFIED = 0; + */ + const TYPE_UNSPECIFIED = 0; + /** + * Cloud Storage bucket. + * + * Generated from protobuf enum STORAGE_BUCKET = 1; + */ + const STORAGE_BUCKET = 1; + /** + * BigQuery dataset. + * + * Generated from protobuf enum BIGQUERY_DATASET = 2; + */ + const BIGQUERY_DATASET = 2; + + private static $valueToName = [ + self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', + self::STORAGE_BUCKET => 'STORAGE_BUCKET', + self::BIGQUERY_DATASET => 'BIGQUERY_DATASET', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/ResourceStatus.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/ResourceStatus.php new file mode 100644 index 000000000000..4e0dbae27dfc --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/ResourceStatus.php @@ -0,0 +1,179 @@ +google.cloud.dataplex.v1.Asset.ResourceStatus + */ +class ResourceStatus extends \Google\Protobuf\Internal\Message +{ + /** + * The current state of the managed resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Asset.ResourceStatus.State state = 1; + */ + protected $state = 0; + /** + * Additional information about the current state. + * + * Generated from protobuf field string message = 2; + */ + protected $message = ''; + /** + * Last update time of the status. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 3; + */ + protected $update_time = null; + /** + * Output only. Service account associated with the BigQuery Connection. + * + * Generated from protobuf field string managed_access_identity = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $managed_access_identity = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $state + * The current state of the managed resource. + * @type string $message + * Additional information about the current state. + * @type \Google\Protobuf\Timestamp $update_time + * Last update time of the status. + * @type string $managed_access_identity + * Output only. Service account associated with the BigQuery Connection. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * The current state of the managed resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Asset.ResourceStatus.State state = 1; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * The current state of the managed resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Asset.ResourceStatus.State state = 1; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\Asset\ResourceStatus\State::class); + $this->state = $var; + + return $this; + } + + /** + * Additional information about the current state. + * + * Generated from protobuf field string message = 2; + * @return string + */ + public function getMessage() + { + return $this->message; + } + + /** + * Additional information about the current state. + * + * Generated from protobuf field string message = 2; + * @param string $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkString($var, True); + $this->message = $var; + + return $this; + } + + /** + * Last update time of the status. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 3; + * @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); + } + + /** + * Last update time of the status. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 3; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Output only. Service account associated with the BigQuery Connection. + * + * Generated from protobuf field string managed_access_identity = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getManagedAccessIdentity() + { + return $this->managed_access_identity; + } + + /** + * Output only. Service account associated with the BigQuery Connection. + * + * Generated from protobuf field string managed_access_identity = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setManagedAccessIdentity($var) + { + GPBUtil::checkString($var, True); + $this->managed_access_identity = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/ResourceStatus/State.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/ResourceStatus/State.php new file mode 100644 index 000000000000..693da4209a1e --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/ResourceStatus/State.php @@ -0,0 +1,61 @@ +google.cloud.dataplex.v1.Asset.ResourceStatus.State + */ +class State +{ + /** + * State unspecified. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * Resource does not have any errors. + * + * Generated from protobuf enum READY = 1; + */ + const READY = 1; + /** + * Resource has errors. + * + * Generated from protobuf enum ERROR = 2; + */ + const ERROR = 2; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::READY => 'READY', + self::ERROR => 'ERROR', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/SecurityStatus.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/SecurityStatus.php new file mode 100644 index 000000000000..ade4cc4b0566 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/SecurityStatus.php @@ -0,0 +1,150 @@ +google.cloud.dataplex.v1.Asset.SecurityStatus + */ +class SecurityStatus extends \Google\Protobuf\Internal\Message +{ + /** + * The current state of the security policy applied to the attached + * resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Asset.SecurityStatus.State state = 1; + */ + protected $state = 0; + /** + * Additional information about the current state. + * + * Generated from protobuf field string message = 2; + */ + protected $message = ''; + /** + * Last update time of the status. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 3; + */ + protected $update_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $state + * The current state of the security policy applied to the attached + * resource. + * @type string $message + * Additional information about the current state. + * @type \Google\Protobuf\Timestamp $update_time + * Last update time of the status. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * The current state of the security policy applied to the attached + * resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Asset.SecurityStatus.State state = 1; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * The current state of the security policy applied to the attached + * resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Asset.SecurityStatus.State state = 1; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\Asset\SecurityStatus\State::class); + $this->state = $var; + + return $this; + } + + /** + * Additional information about the current state. + * + * Generated from protobuf field string message = 2; + * @return string + */ + public function getMessage() + { + return $this->message; + } + + /** + * Additional information about the current state. + * + * Generated from protobuf field string message = 2; + * @param string $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkString($var, True); + $this->message = $var; + + return $this; + } + + /** + * Last update time of the status. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 3; + * @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); + } + + /** + * Last update time of the status. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 3; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/SecurityStatus/State.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/SecurityStatus/State.php new file mode 100644 index 000000000000..50735f21b1e4 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/SecurityStatus/State.php @@ -0,0 +1,70 @@ +google.cloud.dataplex.v1.Asset.SecurityStatus.State + */ +class State +{ + /** + * State unspecified. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * Security policy has been successfully applied to the attached resource. + * + * Generated from protobuf enum READY = 1; + */ + const READY = 1; + /** + * Security policy is in the process of being applied to the attached + * resource. + * + * Generated from protobuf enum APPLYING = 2; + */ + const APPLYING = 2; + /** + * Security policy could not be applied to the attached resource due to + * errors. + * + * Generated from protobuf enum ERROR = 3; + */ + const ERROR = 3; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::READY => 'READY', + self::APPLYING => 'APPLYING', + self::ERROR => 'ERROR', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AssetStatus.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AssetStatus.php new file mode 100644 index 000000000000..f04d900950c0 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AssetStatus.php @@ -0,0 +1,149 @@ +google.cloud.dataplex.v1.AssetStatus + */ +class AssetStatus extends \Google\Protobuf\Internal\Message +{ + /** + * Last update time of the status. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 1; + */ + protected $update_time = null; + /** + * Number of active assets. + * + * Generated from protobuf field int32 active_assets = 2; + */ + protected $active_assets = 0; + /** + * Number of assets that are in process of updating the security policy on + * attached resources. + * + * Generated from protobuf field int32 security_policy_applying_assets = 3; + */ + protected $security_policy_applying_assets = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Timestamp $update_time + * Last update time of the status. + * @type int $active_assets + * Number of active assets. + * @type int $security_policy_applying_assets + * Number of assets that are in process of updating the security policy on + * attached resources. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Last update time of the status. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 1; + * @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); + } + + /** + * Last update time of the status. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 1; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Number of active assets. + * + * Generated from protobuf field int32 active_assets = 2; + * @return int + */ + public function getActiveAssets() + { + return $this->active_assets; + } + + /** + * Number of active assets. + * + * Generated from protobuf field int32 active_assets = 2; + * @param int $var + * @return $this + */ + public function setActiveAssets($var) + { + GPBUtil::checkInt32($var); + $this->active_assets = $var; + + return $this; + } + + /** + * Number of assets that are in process of updating the security policy on + * attached resources. + * + * Generated from protobuf field int32 security_policy_applying_assets = 3; + * @return int + */ + public function getSecurityPolicyApplyingAssets() + { + return $this->security_policy_applying_assets; + } + + /** + * Number of assets that are in process of updating the security policy on + * attached resources. + * + * Generated from protobuf field int32 security_policy_applying_assets = 3; + * @param int $var + * @return $this + */ + public function setSecurityPolicyApplyingAssets($var) + { + GPBUtil::checkInt32($var); + $this->security_policy_applying_assets = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/BusinessGlossaryEvent.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/BusinessGlossaryEvent.php new file mode 100644 index 000000000000..a396d4552ce4 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/BusinessGlossaryEvent.php @@ -0,0 +1,135 @@ +google.cloud.dataplex.v1.BusinessGlossaryEvent + */ +class BusinessGlossaryEvent extends \Google\Protobuf\Internal\Message +{ + /** + * The log message. + * + * Generated from protobuf field string message = 1; + */ + protected $message = ''; + /** + * The type of the event. + * + * Generated from protobuf field .google.cloud.dataplex.v1.BusinessGlossaryEvent.EventType event_type = 2; + */ + protected $event_type = 0; + /** + * Name of the resource. + * + * Generated from protobuf field string resource = 3; + */ + protected $resource = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $message + * The log message. + * @type int $event_type + * The type of the event. + * @type string $resource + * Name of the resource. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Logs::initOnce(); + parent::__construct($data); + } + + /** + * The log message. + * + * Generated from protobuf field string message = 1; + * @return string + */ + public function getMessage() + { + return $this->message; + } + + /** + * The log message. + * + * Generated from protobuf field string message = 1; + * @param string $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkString($var, True); + $this->message = $var; + + return $this; + } + + /** + * The type of the event. + * + * Generated from protobuf field .google.cloud.dataplex.v1.BusinessGlossaryEvent.EventType event_type = 2; + * @return int + */ + public function getEventType() + { + return $this->event_type; + } + + /** + * The type of the event. + * + * Generated from protobuf field .google.cloud.dataplex.v1.BusinessGlossaryEvent.EventType event_type = 2; + * @param int $var + * @return $this + */ + public function setEventType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\BusinessGlossaryEvent\EventType::class); + $this->event_type = $var; + + return $this; + } + + /** + * Name of the resource. + * + * Generated from protobuf field string resource = 3; + * @return string + */ + public function getResource() + { + return $this->resource; + } + + /** + * Name of the resource. + * + * Generated from protobuf field string resource = 3; + * @param string $var + * @return $this + */ + public function setResource($var) + { + GPBUtil::checkString($var, True); + $this->resource = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/BusinessGlossaryEvent/EventType.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/BusinessGlossaryEvent/EventType.php new file mode 100644 index 000000000000..e8441876842e --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/BusinessGlossaryEvent/EventType.php @@ -0,0 +1,110 @@ +google.cloud.dataplex.v1.BusinessGlossaryEvent.EventType + */ +class EventType +{ + /** + * An unspecified event type. + * + * Generated from protobuf enum EVENT_TYPE_UNSPECIFIED = 0; + */ + const EVENT_TYPE_UNSPECIFIED = 0; + /** + * Glossary create event. + * + * Generated from protobuf enum GLOSSARY_CREATE = 1; + */ + const GLOSSARY_CREATE = 1; + /** + * Glossary update event. + * + * Generated from protobuf enum GLOSSARY_UPDATE = 2; + */ + const GLOSSARY_UPDATE = 2; + /** + * Glossary delete event. + * + * Generated from protobuf enum GLOSSARY_DELETE = 3; + */ + const GLOSSARY_DELETE = 3; + /** + * Glossary category create event. + * + * Generated from protobuf enum GLOSSARY_CATEGORY_CREATE = 4; + */ + const GLOSSARY_CATEGORY_CREATE = 4; + /** + * Glossary category update event. + * + * Generated from protobuf enum GLOSSARY_CATEGORY_UPDATE = 5; + */ + const GLOSSARY_CATEGORY_UPDATE = 5; + /** + * Glossary category delete event. + * + * Generated from protobuf enum GLOSSARY_CATEGORY_DELETE = 6; + */ + const GLOSSARY_CATEGORY_DELETE = 6; + /** + * Glossary term create event. + * + * Generated from protobuf enum GLOSSARY_TERM_CREATE = 7; + */ + const GLOSSARY_TERM_CREATE = 7; + /** + * Glossary term update event. + * + * Generated from protobuf enum GLOSSARY_TERM_UPDATE = 8; + */ + const GLOSSARY_TERM_UPDATE = 8; + /** + * Glossary term delete event. + * + * Generated from protobuf enum GLOSSARY_TERM_DELETE = 9; + */ + const GLOSSARY_TERM_DELETE = 9; + + private static $valueToName = [ + self::EVENT_TYPE_UNSPECIFIED => 'EVENT_TYPE_UNSPECIFIED', + self::GLOSSARY_CREATE => 'GLOSSARY_CREATE', + self::GLOSSARY_UPDATE => 'GLOSSARY_UPDATE', + self::GLOSSARY_DELETE => 'GLOSSARY_DELETE', + self::GLOSSARY_CATEGORY_CREATE => 'GLOSSARY_CATEGORY_CREATE', + self::GLOSSARY_CATEGORY_UPDATE => 'GLOSSARY_CATEGORY_UPDATE', + self::GLOSSARY_CATEGORY_DELETE => 'GLOSSARY_CATEGORY_DELETE', + self::GLOSSARY_TERM_CREATE => 'GLOSSARY_TERM_CREATE', + self::GLOSSARY_TERM_UPDATE => 'GLOSSARY_TERM_UPDATE', + self::GLOSSARY_TERM_DELETE => 'GLOSSARY_TERM_DELETE', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CancelDataScanJobRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CancelDataScanJobRequest.php new file mode 100644 index 000000000000..a19502ed983b --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CancelDataScanJobRequest.php @@ -0,0 +1,96 @@ +google.cloud.dataplex.v1.CancelDataScanJobRequest + */ +class CancelDataScanJobRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the DataScanJob: + * `projects/{project_id_or_number}/locations/{location_id}/dataScans/{data_scan_id}/jobs/{data_scan_job_id}` + * where `project_id_or_number` refers to a *project_id* or *project_number* + * and `location_id` refers to a Google Cloud region. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the DataScanJob: + * `projects/{project_id_or_number}/locations/{location_id}/dataScans/{data_scan_id}/jobs/{data_scan_job_id}` + * where `project_id_or_number` refers to a *project_id* or *project_number* + * and `location_id` refers to a Google Cloud region. Please see + * {@see DataScanServiceClient::dataScanJobName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\CancelDataScanJobRequest + * + * @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 resource name of the DataScanJob: + * `projects/{project_id_or_number}/locations/{location_id}/dataScans/{data_scan_id}/jobs/{data_scan_job_id}` + * where `project_id_or_number` refers to a *project_id* or *project_number* + * and `location_id` refers to a Google Cloud region. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Datascans::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the DataScanJob: + * `projects/{project_id_or_number}/locations/{location_id}/dataScans/{data_scan_id}/jobs/{data_scan_job_id}` + * where `project_id_or_number` refers to a *project_id* or *project_number* + * and `location_id` refers to a Google Cloud region. + * + * 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 resource name of the DataScanJob: + * `projects/{project_id_or_number}/locations/{location_id}/dataScans/{data_scan_id}/jobs/{data_scan_job_id}` + * where `project_id_or_number` refers to a *project_id* or *project_number* + * and `location_id` refers to a Google Cloud region. + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CancelDataScanJobResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CancelDataScanJobResponse.php new file mode 100644 index 000000000000..81f14e7f9e48 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CancelDataScanJobResponse.php @@ -0,0 +1,33 @@ +google.cloud.dataplex.v1.CancelDataScanJobResponse + */ +class CancelDataScanJobResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Datascans::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CancelJobRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CancelJobRequest.php new file mode 100644 index 000000000000..332223bbfae1 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CancelJobRequest.php @@ -0,0 +1,86 @@ +google.cloud.dataplex.v1.CancelJobRequest + */ +class CancelJobRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the job: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/task/{task_id}/job/{job_id}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the job: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/task/{task_id}/job/{job_id}`. Please see + * {@see DataplexServiceClient::jobName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\CancelJobRequest + * + * @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 resource name of the job: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/task/{task_id}/job/{job_id}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the job: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/task/{task_id}/job/{job_id}`. + * + * 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 resource name of the job: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/task/{task_id}/job/{job_id}`. + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CancelMetadataJobRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CancelMetadataJobRequest.php new file mode 100644 index 000000000000..3eab71a01bbe --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CancelMetadataJobRequest.php @@ -0,0 +1,86 @@ +google.cloud.dataplex.v1.CancelMetadataJobRequest + */ +class CancelMetadataJobRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the job, in the format + * `projects/{project_id_or_number}/locations/{location_id}/metadataJobs/{metadata_job_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the job, in the format + * `projects/{project_id_or_number}/locations/{location_id}/metadataJobs/{metadata_job_id}` + * Please see {@see CatalogServiceClient::metadataJobName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\CancelMetadataJobRequest + * + * @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 resource name of the job, in the format + * `projects/{project_id_or_number}/locations/{location_id}/metadataJobs/{metadata_job_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the job, in the format + * `projects/{project_id_or_number}/locations/{location_id}/metadataJobs/{metadata_job_id}` + * + * 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 resource name of the job, in the format + * `projects/{project_id_or_number}/locations/{location_id}/metadataJobs/{metadata_job_id}` + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ChangeRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ChangeRequest.php new file mode 100644 index 000000000000..6b64c8613bc7 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ChangeRequest.php @@ -0,0 +1,1031 @@ +google.cloud.dataplex.v1.ChangeRequest + */ +class ChangeRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The relative resource name of the ChangeRequest, of the form: + * projects/{project_number}/locations/{location_id}/changeRequests/{change_request_id} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. System generated globally unique ID for the ChangeRequest. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { + */ + protected $uid = ''; + /** + * Output only. The time when the ChangeRequest was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The time when the ChangeRequest was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Optional. Justification of the ChangeRequest. This should explain + * *why* the change is needed or why it should be approved. + * + * Generated from protobuf field string justification = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $justification = ''; + /** + * Optional. User-defined labels for the ChangeRequest. + * + * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $labels; + /** + * Output only. The email address of the user who created the ChangeRequest. + * + * Generated from protobuf field string author = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $author = ''; + /** + * Output only. The current state of the ChangeRequest. + * + * Generated from protobuf field .google.cloud.dataplex.v1.ChangeRequest.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Output only. The full resource name of the target resource to be modified. + * Example: + * //dataplex.googleapis.com/projects/my-project/locations/us-central1/entryGroups/my-group/entries/my-entry + * + * Generated from protobuf field string resource = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $resource = ''; + /** + * Output only. The type of change represented by the change_payload. + * This field is derived from the populated field in the change_payload oneof. + * + * Generated from protobuf field .google.cloud.dataplex.v1.ChangeRequest.ChangeType change_type = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $change_type = 0; + /** + * Output only. The reason provided for rejecting the ChangeRequest. + * + * Generated from protobuf field string rejection_comment = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $rejection_comment = ''; + /** + * Output only. The email address of the user who approved/rejected the + * ChangeRequest. + * + * Generated from protobuf field string approver = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $approver = ''; + /** + * Optional. This checksum is computed by the service. It can be sent on + * update and delete requests to ensure the client has an up-to-date value + * before proceeding. + * + * Generated from protobuf field string etag = 18 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $etag = ''; + protected $change_payload; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The relative resource name of the ChangeRequest, of the form: + * projects/{project_number}/locations/{location_id}/changeRequests/{change_request_id} + * @type string $uid + * Output only. System generated globally unique ID for the ChangeRequest. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time when the ChangeRequest was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time when the ChangeRequest was last updated. + * @type string $justification + * Optional. Justification of the ChangeRequest. This should explain + * *why* the change is needed or why it should be approved. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Optional. User-defined labels for the ChangeRequest. + * @type string $author + * Output only. The email address of the user who created the ChangeRequest. + * @type int $state + * Output only. The current state of the ChangeRequest. + * @type string $resource + * Output only. The full resource name of the target resource to be modified. + * Example: + * //dataplex.googleapis.com/projects/my-project/locations/us-central1/entryGroups/my-group/entries/my-entry + * @type \Google\Cloud\Dataplex\V1\CreateEntryRequest $create_entry + * Payload for creating an Entry. + * @type \Google\Cloud\Dataplex\V1\UpdateEntryRequest $update_entry + * Payload for updating an Entry. + * @type \Google\Cloud\Dataplex\V1\DeleteEntryRequest $delete_entry + * Payload for deleting an Entry. + * @type \Google\Cloud\Dataplex\V1\CreateEntryLinkRequest $create_entry_link + * Payload for creating an EntryLink. + * @type \Google\Cloud\Dataplex\V1\DeleteEntryLinkRequest $delete_entry_link + * Payload for deleting an EntryLink. + * @type \Google\Cloud\Dataplex\V1\CreateGlossaryRequest $create_glossary + * Payload for creating a Glossary. + * @type \Google\Cloud\Dataplex\V1\UpdateGlossaryRequest $update_glossary + * Payload for updating a Glossary. + * @type \Google\Cloud\Dataplex\V1\DeleteGlossaryRequest $delete_glossary + * Payload for deleting a Glossary. + * @type \Google\Cloud\Dataplex\V1\CreateGlossaryCategoryRequest $create_glossary_category + * Payload for creating a GlossaryCategory. + * @type \Google\Cloud\Dataplex\V1\UpdateGlossaryCategoryRequest $update_glossary_category + * Payload for updating a GlossaryCategory. + * @type \Google\Cloud\Dataplex\V1\DeleteGlossaryCategoryRequest $delete_glossary_category + * Payload for deleting a GlossaryCategory. + * @type \Google\Cloud\Dataplex\V1\CreateGlossaryTermRequest $create_glossary_term + * Payload for creating a GlossaryTerm. + * @type \Google\Cloud\Dataplex\V1\UpdateGlossaryTermRequest $update_glossary_term + * Payload for updating a GlossaryTerm. + * @type \Google\Cloud\Dataplex\V1\DeleteGlossaryTermRequest $delete_glossary_term + * Payload for deleting a GlossaryTerm. + * @type \Google\Cloud\Dataplex\V1\DataProductAccessRequest $data_product_access_request + * Payload for Data Product access request. + * @type int $change_type + * Output only. The type of change represented by the change_payload. + * This field is derived from the populated field in the change_payload oneof. + * @type string $rejection_comment + * Output only. The reason provided for rejecting the ChangeRequest. + * @type string $approver + * Output only. The email address of the user who approved/rejected the + * ChangeRequest. + * @type string $etag + * Optional. This checksum is computed by the service. It can be sent on + * update and delete requests to ensure the client has an up-to-date value + * before proceeding. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\ApprovalWorkflow::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The relative resource name of the ChangeRequest, of the form: + * projects/{project_number}/locations/{location_id}/changeRequests/{change_request_id} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The relative resource name of the ChangeRequest, of the form: + * projects/{project_number}/locations/{location_id}/changeRequests/{change_request_id} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. System generated globally unique ID for the ChangeRequest. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { + * @return string + */ + public function getUid() + { + return $this->uid; + } + + /** + * Output only. System generated globally unique ID for the ChangeRequest. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setUid($var) + { + GPBUtil::checkString($var, True); + $this->uid = $var; + + return $this; + } + + /** + * Output only. The time when the ChangeRequest was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The time when the ChangeRequest was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. The time when the ChangeRequest was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. The time when the ChangeRequest was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Optional. Justification of the ChangeRequest. This should explain + * *why* the change is needed or why it should be approved. + * + * Generated from protobuf field string justification = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getJustification() + { + return $this->justification; + } + + /** + * Optional. Justification of the ChangeRequest. This should explain + * *why* the change is needed or why it should be approved. + * + * Generated from protobuf field string justification = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setJustification($var) + { + GPBUtil::checkString($var, True); + $this->justification = $var; + + return $this; + } + + /** + * Optional. User-defined labels for the ChangeRequest. + * + * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Optional. User-defined labels for the ChangeRequest. + * + * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Output only. The email address of the user who created the ChangeRequest. + * + * Generated from protobuf field string author = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getAuthor() + { + return $this->author; + } + + /** + * Output only. The email address of the user who created the ChangeRequest. + * + * Generated from protobuf field string author = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setAuthor($var) + { + GPBUtil::checkString($var, True); + $this->author = $var; + + return $this; + } + + /** + * Output only. The current state of the ChangeRequest. + * + * Generated from protobuf field .google.cloud.dataplex.v1.ChangeRequest.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. The current state of the ChangeRequest. + * + * Generated from protobuf field .google.cloud.dataplex.v1.ChangeRequest.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\ChangeRequest\State::class); + $this->state = $var; + + return $this; + } + + /** + * Output only. The full resource name of the target resource to be modified. + * Example: + * //dataplex.googleapis.com/projects/my-project/locations/us-central1/entryGroups/my-group/entries/my-entry + * + * Generated from protobuf field string resource = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getResource() + { + return $this->resource; + } + + /** + * Output only. The full resource name of the target resource to be modified. + * Example: + * //dataplex.googleapis.com/projects/my-project/locations/us-central1/entryGroups/my-group/entries/my-entry + * + * Generated from protobuf field string resource = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setResource($var) + { + GPBUtil::checkString($var, True); + $this->resource = $var; + + return $this; + } + + /** + * Payload for creating an Entry. + * + * Generated from protobuf field .google.cloud.dataplex.v1.CreateEntryRequest create_entry = 10; + * @return \Google\Cloud\Dataplex\V1\CreateEntryRequest|null + */ + public function getCreateEntry() + { + return $this->readOneof(10); + } + + public function hasCreateEntry() + { + return $this->hasOneof(10); + } + + /** + * Payload for creating an Entry. + * + * Generated from protobuf field .google.cloud.dataplex.v1.CreateEntryRequest create_entry = 10; + * @param \Google\Cloud\Dataplex\V1\CreateEntryRequest $var + * @return $this + */ + public function setCreateEntry($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\CreateEntryRequest::class); + $this->writeOneof(10, $var); + + return $this; + } + + /** + * Payload for updating an Entry. + * + * Generated from protobuf field .google.cloud.dataplex.v1.UpdateEntryRequest update_entry = 11; + * @return \Google\Cloud\Dataplex\V1\UpdateEntryRequest|null + */ + public function getUpdateEntry() + { + return $this->readOneof(11); + } + + public function hasUpdateEntry() + { + return $this->hasOneof(11); + } + + /** + * Payload for updating an Entry. + * + * Generated from protobuf field .google.cloud.dataplex.v1.UpdateEntryRequest update_entry = 11; + * @param \Google\Cloud\Dataplex\V1\UpdateEntryRequest $var + * @return $this + */ + public function setUpdateEntry($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\UpdateEntryRequest::class); + $this->writeOneof(11, $var); + + return $this; + } + + /** + * Payload for deleting an Entry. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DeleteEntryRequest delete_entry = 12; + * @return \Google\Cloud\Dataplex\V1\DeleteEntryRequest|null + */ + public function getDeleteEntry() + { + return $this->readOneof(12); + } + + public function hasDeleteEntry() + { + return $this->hasOneof(12); + } + + /** + * Payload for deleting an Entry. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DeleteEntryRequest delete_entry = 12; + * @param \Google\Cloud\Dataplex\V1\DeleteEntryRequest $var + * @return $this + */ + public function setDeleteEntry($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DeleteEntryRequest::class); + $this->writeOneof(12, $var); + + return $this; + } + + /** + * Payload for creating an EntryLink. + * + * Generated from protobuf field .google.cloud.dataplex.v1.CreateEntryLinkRequest create_entry_link = 13; + * @return \Google\Cloud\Dataplex\V1\CreateEntryLinkRequest|null + */ + public function getCreateEntryLink() + { + return $this->readOneof(13); + } + + public function hasCreateEntryLink() + { + return $this->hasOneof(13); + } + + /** + * Payload for creating an EntryLink. + * + * Generated from protobuf field .google.cloud.dataplex.v1.CreateEntryLinkRequest create_entry_link = 13; + * @param \Google\Cloud\Dataplex\V1\CreateEntryLinkRequest $var + * @return $this + */ + public function setCreateEntryLink($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\CreateEntryLinkRequest::class); + $this->writeOneof(13, $var); + + return $this; + } + + /** + * Payload for deleting an EntryLink. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DeleteEntryLinkRequest delete_entry_link = 14; + * @return \Google\Cloud\Dataplex\V1\DeleteEntryLinkRequest|null + */ + public function getDeleteEntryLink() + { + return $this->readOneof(14); + } + + public function hasDeleteEntryLink() + { + return $this->hasOneof(14); + } + + /** + * Payload for deleting an EntryLink. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DeleteEntryLinkRequest delete_entry_link = 14; + * @param \Google\Cloud\Dataplex\V1\DeleteEntryLinkRequest $var + * @return $this + */ + public function setDeleteEntryLink($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DeleteEntryLinkRequest::class); + $this->writeOneof(14, $var); + + return $this; + } + + /** + * Payload for creating a Glossary. + * + * Generated from protobuf field .google.cloud.dataplex.v1.CreateGlossaryRequest create_glossary = 20; + * @return \Google\Cloud\Dataplex\V1\CreateGlossaryRequest|null + */ + public function getCreateGlossary() + { + return $this->readOneof(20); + } + + public function hasCreateGlossary() + { + return $this->hasOneof(20); + } + + /** + * Payload for creating a Glossary. + * + * Generated from protobuf field .google.cloud.dataplex.v1.CreateGlossaryRequest create_glossary = 20; + * @param \Google\Cloud\Dataplex\V1\CreateGlossaryRequest $var + * @return $this + */ + public function setCreateGlossary($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\CreateGlossaryRequest::class); + $this->writeOneof(20, $var); + + return $this; + } + + /** + * Payload for updating a Glossary. + * + * Generated from protobuf field .google.cloud.dataplex.v1.UpdateGlossaryRequest update_glossary = 21; + * @return \Google\Cloud\Dataplex\V1\UpdateGlossaryRequest|null + */ + public function getUpdateGlossary() + { + return $this->readOneof(21); + } + + public function hasUpdateGlossary() + { + return $this->hasOneof(21); + } + + /** + * Payload for updating a Glossary. + * + * Generated from protobuf field .google.cloud.dataplex.v1.UpdateGlossaryRequest update_glossary = 21; + * @param \Google\Cloud\Dataplex\V1\UpdateGlossaryRequest $var + * @return $this + */ + public function setUpdateGlossary($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\UpdateGlossaryRequest::class); + $this->writeOneof(21, $var); + + return $this; + } + + /** + * Payload for deleting a Glossary. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DeleteGlossaryRequest delete_glossary = 22; + * @return \Google\Cloud\Dataplex\V1\DeleteGlossaryRequest|null + */ + public function getDeleteGlossary() + { + return $this->readOneof(22); + } + + public function hasDeleteGlossary() + { + return $this->hasOneof(22); + } + + /** + * Payload for deleting a Glossary. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DeleteGlossaryRequest delete_glossary = 22; + * @param \Google\Cloud\Dataplex\V1\DeleteGlossaryRequest $var + * @return $this + */ + public function setDeleteGlossary($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DeleteGlossaryRequest::class); + $this->writeOneof(22, $var); + + return $this; + } + + /** + * Payload for creating a GlossaryCategory. + * + * Generated from protobuf field .google.cloud.dataplex.v1.CreateGlossaryCategoryRequest create_glossary_category = 23; + * @return \Google\Cloud\Dataplex\V1\CreateGlossaryCategoryRequest|null + */ + public function getCreateGlossaryCategory() + { + return $this->readOneof(23); + } + + public function hasCreateGlossaryCategory() + { + return $this->hasOneof(23); + } + + /** + * Payload for creating a GlossaryCategory. + * + * Generated from protobuf field .google.cloud.dataplex.v1.CreateGlossaryCategoryRequest create_glossary_category = 23; + * @param \Google\Cloud\Dataplex\V1\CreateGlossaryCategoryRequest $var + * @return $this + */ + public function setCreateGlossaryCategory($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\CreateGlossaryCategoryRequest::class); + $this->writeOneof(23, $var); + + return $this; + } + + /** + * Payload for updating a GlossaryCategory. + * + * Generated from protobuf field .google.cloud.dataplex.v1.UpdateGlossaryCategoryRequest update_glossary_category = 24; + * @return \Google\Cloud\Dataplex\V1\UpdateGlossaryCategoryRequest|null + */ + public function getUpdateGlossaryCategory() + { + return $this->readOneof(24); + } + + public function hasUpdateGlossaryCategory() + { + return $this->hasOneof(24); + } + + /** + * Payload for updating a GlossaryCategory. + * + * Generated from protobuf field .google.cloud.dataplex.v1.UpdateGlossaryCategoryRequest update_glossary_category = 24; + * @param \Google\Cloud\Dataplex\V1\UpdateGlossaryCategoryRequest $var + * @return $this + */ + public function setUpdateGlossaryCategory($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\UpdateGlossaryCategoryRequest::class); + $this->writeOneof(24, $var); + + return $this; + } + + /** + * Payload for deleting a GlossaryCategory. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DeleteGlossaryCategoryRequest delete_glossary_category = 26; + * @return \Google\Cloud\Dataplex\V1\DeleteGlossaryCategoryRequest|null + */ + public function getDeleteGlossaryCategory() + { + return $this->readOneof(26); + } + + public function hasDeleteGlossaryCategory() + { + return $this->hasOneof(26); + } + + /** + * Payload for deleting a GlossaryCategory. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DeleteGlossaryCategoryRequest delete_glossary_category = 26; + * @param \Google\Cloud\Dataplex\V1\DeleteGlossaryCategoryRequest $var + * @return $this + */ + public function setDeleteGlossaryCategory($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DeleteGlossaryCategoryRequest::class); + $this->writeOneof(26, $var); + + return $this; + } + + /** + * Payload for creating a GlossaryTerm. + * + * Generated from protobuf field .google.cloud.dataplex.v1.CreateGlossaryTermRequest create_glossary_term = 27; + * @return \Google\Cloud\Dataplex\V1\CreateGlossaryTermRequest|null + */ + public function getCreateGlossaryTerm() + { + return $this->readOneof(27); + } + + public function hasCreateGlossaryTerm() + { + return $this->hasOneof(27); + } + + /** + * Payload for creating a GlossaryTerm. + * + * Generated from protobuf field .google.cloud.dataplex.v1.CreateGlossaryTermRequest create_glossary_term = 27; + * @param \Google\Cloud\Dataplex\V1\CreateGlossaryTermRequest $var + * @return $this + */ + public function setCreateGlossaryTerm($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\CreateGlossaryTermRequest::class); + $this->writeOneof(27, $var); + + return $this; + } + + /** + * Payload for updating a GlossaryTerm. + * + * Generated from protobuf field .google.cloud.dataplex.v1.UpdateGlossaryTermRequest update_glossary_term = 28; + * @return \Google\Cloud\Dataplex\V1\UpdateGlossaryTermRequest|null + */ + public function getUpdateGlossaryTerm() + { + return $this->readOneof(28); + } + + public function hasUpdateGlossaryTerm() + { + return $this->hasOneof(28); + } + + /** + * Payload for updating a GlossaryTerm. + * + * Generated from protobuf field .google.cloud.dataplex.v1.UpdateGlossaryTermRequest update_glossary_term = 28; + * @param \Google\Cloud\Dataplex\V1\UpdateGlossaryTermRequest $var + * @return $this + */ + public function setUpdateGlossaryTerm($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\UpdateGlossaryTermRequest::class); + $this->writeOneof(28, $var); + + return $this; + } + + /** + * Payload for deleting a GlossaryTerm. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DeleteGlossaryTermRequest delete_glossary_term = 30; + * @return \Google\Cloud\Dataplex\V1\DeleteGlossaryTermRequest|null + */ + public function getDeleteGlossaryTerm() + { + return $this->readOneof(30); + } + + public function hasDeleteGlossaryTerm() + { + return $this->hasOneof(30); + } + + /** + * Payload for deleting a GlossaryTerm. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DeleteGlossaryTermRequest delete_glossary_term = 30; + * @param \Google\Cloud\Dataplex\V1\DeleteGlossaryTermRequest $var + * @return $this + */ + public function setDeleteGlossaryTerm($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DeleteGlossaryTermRequest::class); + $this->writeOneof(30, $var); + + return $this; + } + + /** + * Payload for Data Product access request. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataProductAccessRequest data_product_access_request = 32; + * @return \Google\Cloud\Dataplex\V1\DataProductAccessRequest|null + */ + public function getDataProductAccessRequest() + { + return $this->readOneof(32); + } + + public function hasDataProductAccessRequest() + { + return $this->hasOneof(32); + } + + /** + * Payload for Data Product access request. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataProductAccessRequest data_product_access_request = 32; + * @param \Google\Cloud\Dataplex\V1\DataProductAccessRequest $var + * @return $this + */ + public function setDataProductAccessRequest($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataProductAccessRequest::class); + $this->writeOneof(32, $var); + + return $this; + } + + /** + * Output only. The type of change represented by the change_payload. + * This field is derived from the populated field in the change_payload oneof. + * + * Generated from protobuf field .google.cloud.dataplex.v1.ChangeRequest.ChangeType change_type = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getChangeType() + { + return $this->change_type; + } + + /** + * Output only. The type of change represented by the change_payload. + * This field is derived from the populated field in the change_payload oneof. + * + * Generated from protobuf field .google.cloud.dataplex.v1.ChangeRequest.ChangeType change_type = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setChangeType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\ChangeRequest\ChangeType::class); + $this->change_type = $var; + + return $this; + } + + /** + * Output only. The reason provided for rejecting the ChangeRequest. + * + * Generated from protobuf field string rejection_comment = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getRejectionComment() + { + return $this->rejection_comment; + } + + /** + * Output only. The reason provided for rejecting the ChangeRequest. + * + * Generated from protobuf field string rejection_comment = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setRejectionComment($var) + { + GPBUtil::checkString($var, True); + $this->rejection_comment = $var; + + return $this; + } + + /** + * Output only. The email address of the user who approved/rejected the + * ChangeRequest. + * + * Generated from protobuf field string approver = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getApprover() + { + return $this->approver; + } + + /** + * Output only. The email address of the user who approved/rejected the + * ChangeRequest. + * + * Generated from protobuf field string approver = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setApprover($var) + { + GPBUtil::checkString($var, True); + $this->approver = $var; + + return $this; + } + + /** + * Optional. This checksum is computed by the service. It can be sent on + * update and delete requests to ensure the client has an up-to-date value + * before proceeding. + * + * Generated from protobuf field string etag = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Optional. This checksum is computed by the service. It can be sent on + * update and delete requests to ensure the client has an up-to-date value + * before proceeding. + * + * Generated from protobuf field string etag = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * @return string + */ + public function getChangePayload() + { + return $this->whichOneof("change_payload"); + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ChangeRequest/ChangeType.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ChangeRequest/ChangeType.php new file mode 100644 index 000000000000..a6edce883f50 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ChangeRequest/ChangeType.php @@ -0,0 +1,152 @@ +google.cloud.dataplex.v1.ChangeRequest.ChangeType + */ +class ChangeType +{ + /** + * State unspecified. + * + * Generated from protobuf enum CHANGE_TYPE_UNSPECIFIED = 0; + */ + const CHANGE_TYPE_UNSPECIFIED = 0; + /** + * Request to create an Entry. + * + * Generated from protobuf enum CREATE_ENTRY = 1; + */ + const CREATE_ENTRY = 1; + /** + * Request to update an Entry. + * + * Generated from protobuf enum UPDATE_ENTRY = 2; + */ + const UPDATE_ENTRY = 2; + /** + * Request to delete an Entry. + * + * Generated from protobuf enum DELETE_ENTRY = 3; + */ + const DELETE_ENTRY = 3; + /** + * Request to create an EntryLink. + * + * Generated from protobuf enum CREATE_ENTRY_LINK = 4; + */ + const CREATE_ENTRY_LINK = 4; + /** + * Request to delete an EntryLink. + * + * Generated from protobuf enum DELETE_ENTRY_LINK = 5; + */ + const DELETE_ENTRY_LINK = 5; + /** + * Request to create a Glossary. + * + * Generated from protobuf enum CREATE_GLOSSARY = 7; + */ + const CREATE_GLOSSARY = 7; + /** + * Request to update a Glossary. + * + * Generated from protobuf enum UPDATE_GLOSSARY = 8; + */ + const UPDATE_GLOSSARY = 8; + /** + * Request to delete a Glossary. + * + * Generated from protobuf enum DELETE_GLOSSARY = 9; + */ + const DELETE_GLOSSARY = 9; + /** + * Request to create a GlossaryCategory. + * + * Generated from protobuf enum CREATE_GLOSSARY_CATEGORY = 10; + */ + const CREATE_GLOSSARY_CATEGORY = 10; + /** + * Request to update a GlossaryCategory. + * + * Generated from protobuf enum UPDATE_GLOSSARY_CATEGORY = 11; + */ + const UPDATE_GLOSSARY_CATEGORY = 11; + /** + * Request to delete a GlossaryCategory. + * + * Generated from protobuf enum DELETE_GLOSSARY_CATEGORY = 13; + */ + const DELETE_GLOSSARY_CATEGORY = 13; + /** + * Request to create a GlossaryTerm. + * + * Generated from protobuf enum CREATE_GLOSSARY_TERM = 14; + */ + const CREATE_GLOSSARY_TERM = 14; + /** + * Request to update a GlossaryTerm. + * + * Generated from protobuf enum UPDATE_GLOSSARY_TERM = 15; + */ + const UPDATE_GLOSSARY_TERM = 15; + /** + * Request to delete a GlossaryTerm. + * + * Generated from protobuf enum DELETE_GLOSSARY_TERM = 17; + */ + const DELETE_GLOSSARY_TERM = 17; + /** + * Request to request Data Product access. + * + * Generated from protobuf enum REQUEST_DATA_PRODUCT_ACCESS = 33; + */ + const REQUEST_DATA_PRODUCT_ACCESS = 33; + + private static $valueToName = [ + self::CHANGE_TYPE_UNSPECIFIED => 'CHANGE_TYPE_UNSPECIFIED', + self::CREATE_ENTRY => 'CREATE_ENTRY', + self::UPDATE_ENTRY => 'UPDATE_ENTRY', + self::DELETE_ENTRY => 'DELETE_ENTRY', + self::CREATE_ENTRY_LINK => 'CREATE_ENTRY_LINK', + self::DELETE_ENTRY_LINK => 'DELETE_ENTRY_LINK', + self::CREATE_GLOSSARY => 'CREATE_GLOSSARY', + self::UPDATE_GLOSSARY => 'UPDATE_GLOSSARY', + self::DELETE_GLOSSARY => 'DELETE_GLOSSARY', + self::CREATE_GLOSSARY_CATEGORY => 'CREATE_GLOSSARY_CATEGORY', + self::UPDATE_GLOSSARY_CATEGORY => 'UPDATE_GLOSSARY_CATEGORY', + self::DELETE_GLOSSARY_CATEGORY => 'DELETE_GLOSSARY_CATEGORY', + self::CREATE_GLOSSARY_TERM => 'CREATE_GLOSSARY_TERM', + self::UPDATE_GLOSSARY_TERM => 'UPDATE_GLOSSARY_TERM', + self::DELETE_GLOSSARY_TERM => 'DELETE_GLOSSARY_TERM', + self::REQUEST_DATA_PRODUCT_ACCESS => 'REQUEST_DATA_PRODUCT_ACCESS', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ChangeRequest/State.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ChangeRequest/State.php new file mode 100644 index 000000000000..a943d8a4e010 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ChangeRequest/State.php @@ -0,0 +1,86 @@ +google.cloud.dataplex.v1.ChangeRequest.State + */ +class State +{ + /** + * State unspecified. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * The change is proposed and new. + * + * Generated from protobuf enum NEW = 1; + */ + const PBNEW = 1; + /** + * The change has been approved. + * + * Generated from protobuf enum APPROVED = 2; + */ + const APPROVED = 2; + /** + * The change has been rejected. + * + * Generated from protobuf enum REJECTED = 3; + */ + const REJECTED = 3; + /** + * The change request has expired. + * + * Generated from protobuf enum EXPIRED = 4; + */ + const EXPIRED = 4; + /** + * The approved change has been revoked. + * + * Generated from protobuf enum REVOKED = 5; + */ + const REVOKED = 5; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::PBNEW => 'NEW', + self::APPROVED => 'APPROVED', + self::REJECTED => 'REJECTED', + self::EXPIRED => 'EXPIRED', + self::REVOKED => 'REVOKED', + ]; + + 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)) { + $pbconst = __CLASS__. '::PB' . strtoupper($name); + if (!defined($pbconst)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($pbconst); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Content.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Content.php new file mode 100644 index 000000000000..7a9cbd3f8e44 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Content.php @@ -0,0 +1,428 @@ +google.cloud.dataplex.v1.Content + */ +class Content extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The relative resource name of the content, of the form: + * projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{content_id} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Output only. System generated globally unique ID for the content. This ID + * will be different if the content is deleted and re-created with the same + * name. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $uid = ''; + /** + * Required. The path for the Content file, represented as directory + * structure. Unique within a lake. Limited to alphanumerics, hyphens, + * underscores, dots and slashes. + * + * Generated from protobuf field string path = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $path = ''; + /** + * Output only. Content creation time. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The time when the content was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Optional. User defined labels for the content. + * + * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $labels; + /** + * Optional. Description of the content. + * + * Generated from protobuf field string description = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + protected $data; + protected $content; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. The relative resource name of the content, of the form: + * projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{content_id} + * @type string $uid + * Output only. System generated globally unique ID for the content. This ID + * will be different if the content is deleted and re-created with the same + * name. + * @type string $path + * Required. The path for the Content file, represented as directory + * structure. Unique within a lake. Limited to alphanumerics, hyphens, + * underscores, dots and slashes. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Content creation time. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time when the content was last updated. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Optional. User defined labels for the content. + * @type string $description + * Optional. Description of the content. + * @type string $data_text + * Required. Content data in string format. + * @type \Google\Cloud\Dataplex\V1\Content\SqlScript $sql_script + * Sql Script related configurations. + * @type \Google\Cloud\Dataplex\V1\Content\Notebook $notebook + * Notebook related configurations. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Analyze::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The relative resource name of the content, of the form: + * projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{content_id} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. The relative resource name of the content, of the form: + * projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{content_id} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. System generated globally unique ID for the content. This ID + * will be different if the content is deleted and re-created with the same + * name. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getUid() + { + return $this->uid; + } + + /** + * Output only. System generated globally unique ID for the content. This ID + * will be different if the content is deleted and re-created with the same + * name. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setUid($var) + { + GPBUtil::checkString($var, True); + $this->uid = $var; + + return $this; + } + + /** + * Required. The path for the Content file, represented as directory + * structure. Unique within a lake. Limited to alphanumerics, hyphens, + * underscores, dots and slashes. + * + * Generated from protobuf field string path = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getPath() + { + return $this->path; + } + + /** + * Required. The path for the Content file, represented as directory + * structure. Unique within a lake. Limited to alphanumerics, hyphens, + * underscores, dots and slashes. + * + * Generated from protobuf field string path = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setPath($var) + { + GPBUtil::checkString($var, True); + $this->path = $var; + + return $this; + } + + /** + * Output only. Content creation time. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.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. Content creation time. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.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 content was last updated. + * + * 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 time when the content was last updated. + * + * 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. User defined labels for the content. + * + * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Optional. User defined labels for the content. + * + * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Optional. Description of the content. + * + * Generated from protobuf field string description = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. Description of the content. + * + * Generated from protobuf field string description = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Required. Content data in string format. + * + * Generated from protobuf field string data_text = 9 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDataText() + { + return $this->readOneof(9); + } + + public function hasDataText() + { + return $this->hasOneof(9); + } + + /** + * Required. Content data in string format. + * + * Generated from protobuf field string data_text = 9 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDataText($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(9, $var); + + return $this; + } + + /** + * Sql Script related configurations. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Content.SqlScript sql_script = 100; + * @return \Google\Cloud\Dataplex\V1\Content\SqlScript|null + */ + public function getSqlScript() + { + return $this->readOneof(100); + } + + public function hasSqlScript() + { + return $this->hasOneof(100); + } + + /** + * Sql Script related configurations. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Content.SqlScript sql_script = 100; + * @param \Google\Cloud\Dataplex\V1\Content\SqlScript $var + * @return $this + */ + public function setSqlScript($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Content\SqlScript::class); + $this->writeOneof(100, $var); + + return $this; + } + + /** + * Notebook related configurations. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Content.Notebook notebook = 101; + * @return \Google\Cloud\Dataplex\V1\Content\Notebook|null + */ + public function getNotebook() + { + return $this->readOneof(101); + } + + public function hasNotebook() + { + return $this->hasOneof(101); + } + + /** + * Notebook related configurations. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Content.Notebook notebook = 101; + * @param \Google\Cloud\Dataplex\V1\Content\Notebook $var + * @return $this + */ + public function setNotebook($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Content\Notebook::class); + $this->writeOneof(101, $var); + + return $this; + } + + /** + * @return string + */ + public function getData() + { + return $this->whichOneof("data"); + } + + /** + * @return string + */ + public function getContent() + { + return $this->whichOneof("content"); + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Content/Notebook.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Content/Notebook.php new file mode 100644 index 000000000000..26c2dbcde077 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Content/Notebook.php @@ -0,0 +1,67 @@ +google.cloud.dataplex.v1.Content.Notebook + */ +class Notebook extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Kernel Type of the notebook. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Content.Notebook.KernelType kernel_type = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $kernel_type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $kernel_type + * Required. Kernel Type of the notebook. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Analyze::initOnce(); + parent::__construct($data); + } + + /** + * Required. Kernel Type of the notebook. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Content.Notebook.KernelType kernel_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getKernelType() + { + return $this->kernel_type; + } + + /** + * Required. Kernel Type of the notebook. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Content.Notebook.KernelType kernel_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setKernelType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\Content\Notebook\KernelType::class); + $this->kernel_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Content/Notebook/KernelType.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Content/Notebook/KernelType.php new file mode 100644 index 000000000000..0846d08b6e60 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Content/Notebook/KernelType.php @@ -0,0 +1,54 @@ +google.cloud.dataplex.v1.Content.Notebook.KernelType + */ +class KernelType +{ + /** + * Kernel Type unspecified. + * + * Generated from protobuf enum KERNEL_TYPE_UNSPECIFIED = 0; + */ + const KERNEL_TYPE_UNSPECIFIED = 0; + /** + * Python 3 Kernel. + * + * Generated from protobuf enum PYTHON3 = 1; + */ + const PYTHON3 = 1; + + private static $valueToName = [ + self::KERNEL_TYPE_UNSPECIFIED => 'KERNEL_TYPE_UNSPECIFIED', + self::PYTHON3 => 'PYTHON3', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Content/SqlScript.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Content/SqlScript.php new file mode 100644 index 000000000000..c8832548f6a6 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Content/SqlScript.php @@ -0,0 +1,67 @@ +google.cloud.dataplex.v1.Content.SqlScript + */ +class SqlScript extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Query Engine to be used for the Sql Query. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Content.SqlScript.QueryEngine engine = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $engine = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $engine + * Required. Query Engine to be used for the Sql Query. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Analyze::initOnce(); + parent::__construct($data); + } + + /** + * Required. Query Engine to be used for the Sql Query. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Content.SqlScript.QueryEngine engine = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getEngine() + { + return $this->engine; + } + + /** + * Required. Query Engine to be used for the Sql Query. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Content.SqlScript.QueryEngine engine = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setEngine($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\Content\SqlScript\QueryEngine::class); + $this->engine = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Content/SqlScript/QueryEngine.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Content/SqlScript/QueryEngine.php new file mode 100644 index 000000000000..39e242989fcc --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Content/SqlScript/QueryEngine.php @@ -0,0 +1,54 @@ +google.cloud.dataplex.v1.Content.SqlScript.QueryEngine + */ +class QueryEngine +{ + /** + * Value was unspecified. + * + * Generated from protobuf enum QUERY_ENGINE_UNSPECIFIED = 0; + */ + const QUERY_ENGINE_UNSPECIFIED = 0; + /** + * Spark SQL Query. + * + * Generated from protobuf enum SPARK = 2; + */ + const SPARK = 2; + + private static $valueToName = [ + self::QUERY_ENGINE_UNSPECIFIED => 'QUERY_ENGINE_UNSPECIFIED', + self::SPARK => 'SPARK', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateAspectTypeRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateAspectTypeRequest.php new file mode 100644 index 000000000000..b9cd33c8b8dc --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateAspectTypeRequest.php @@ -0,0 +1,211 @@ +google.cloud.dataplex.v1.CreateAspectTypeRequest + */ +class CreateAspectTypeRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the AspectType, of the form: + * projects/{project_number}/locations/{location_id} + * where `location_id` refers to a Google Cloud region. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. AspectType identifier. + * + * Generated from protobuf field string aspect_type_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $aspect_type_id = ''; + /** + * Required. AspectType Resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.AspectType aspect_type = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $aspect_type = null; + /** + * Optional. The service validates the request without performing any + * mutations. The default is false. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $validate_only = false; + + /** + * @param string $parent Required. The resource name of the AspectType, of the form: + * projects/{project_number}/locations/{location_id} + * where `location_id` refers to a Google Cloud region. Please see + * {@see CatalogServiceClient::locationName()} for help formatting this field. + * @param \Google\Cloud\Dataplex\V1\AspectType $aspectType Required. AspectType Resource. + * @param string $aspectTypeId Required. AspectType identifier. + * + * @return \Google\Cloud\Dataplex\V1\CreateAspectTypeRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Dataplex\V1\AspectType $aspectType, string $aspectTypeId): self + { + return (new self()) + ->setParent($parent) + ->setAspectType($aspectType) + ->setAspectTypeId($aspectTypeId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the AspectType, of the form: + * projects/{project_number}/locations/{location_id} + * where `location_id` refers to a Google Cloud region. + * @type string $aspect_type_id + * Required. AspectType identifier. + * @type \Google\Cloud\Dataplex\V1\AspectType $aspect_type + * Required. AspectType Resource. + * @type bool $validate_only + * Optional. The service validates the request without performing any + * mutations. The default is false. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the AspectType, of the form: + * projects/{project_number}/locations/{location_id} + * where `location_id` refers to a Google Cloud region. + * + * 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 resource name of the AspectType, of the form: + * projects/{project_number}/locations/{location_id} + * where `location_id` refers to a Google Cloud region. + * + * 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. AspectType identifier. + * + * Generated from protobuf field string aspect_type_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getAspectTypeId() + { + return $this->aspect_type_id; + } + + /** + * Required. AspectType identifier. + * + * Generated from protobuf field string aspect_type_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setAspectTypeId($var) + { + GPBUtil::checkString($var, True); + $this->aspect_type_id = $var; + + return $this; + } + + /** + * Required. AspectType Resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.AspectType aspect_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\AspectType|null + */ + public function getAspectType() + { + return $this->aspect_type; + } + + public function hasAspectType() + { + return isset($this->aspect_type); + } + + public function clearAspectType() + { + unset($this->aspect_type); + } + + /** + * Required. AspectType Resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.AspectType aspect_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\AspectType $var + * @return $this + */ + public function setAspectType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\AspectType::class); + $this->aspect_type = $var; + + return $this; + } + + /** + * Optional. The service validates the request without performing any + * mutations. The default is false. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * Optional. The service validates the request without performing any + * mutations. The default is false. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateAssetRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateAssetRequest.php new file mode 100644 index 000000000000..878840ad0e22 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateAssetRequest.php @@ -0,0 +1,241 @@ +google.cloud.dataplex.v1.CreateAssetRequest + */ +class CreateAssetRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the parent zone: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. Asset identifier. + * This ID will be used to generate names such as table names when publishing + * metadata to Hive Metastore and BigQuery. + * * Must contain only lowercase letters, numbers and hyphens. + * * Must start with a letter. + * * Must end with a number or a letter. + * * Must be between 1-63 characters. + * * Must be unique within the zone. + * + * Generated from protobuf field string asset_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $asset_id = ''; + /** + * Required. Asset resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Asset asset = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $asset = null; + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $validate_only = false; + + /** + * @param string $parent Required. The resource name of the parent zone: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. Please see + * {@see DataplexServiceClient::zoneName()} for help formatting this field. + * @param \Google\Cloud\Dataplex\V1\Asset $asset Required. Asset resource. + * @param string $assetId Required. Asset identifier. + * This ID will be used to generate names such as table names when publishing + * metadata to Hive Metastore and BigQuery. + * * Must contain only lowercase letters, numbers and hyphens. + * * Must start with a letter. + * * Must end with a number or a letter. + * * Must be between 1-63 characters. + * * Must be unique within the zone. + * + * @return \Google\Cloud\Dataplex\V1\CreateAssetRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Dataplex\V1\Asset $asset, string $assetId): self + { + return (new self()) + ->setParent($parent) + ->setAsset($asset) + ->setAssetId($assetId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the parent zone: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. + * @type string $asset_id + * Required. Asset identifier. + * This ID will be used to generate names such as table names when publishing + * metadata to Hive Metastore and BigQuery. + * * Must contain only lowercase letters, numbers and hyphens. + * * Must start with a letter. + * * Must end with a number or a letter. + * * Must be between 1-63 characters. + * * Must be unique within the zone. + * @type \Google\Cloud\Dataplex\V1\Asset $asset + * Required. Asset resource. + * @type bool $validate_only + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the parent zone: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. + * + * 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 resource name of the parent zone: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. + * + * 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. Asset identifier. + * This ID will be used to generate names such as table names when publishing + * metadata to Hive Metastore and BigQuery. + * * Must contain only lowercase letters, numbers and hyphens. + * * Must start with a letter. + * * Must end with a number or a letter. + * * Must be between 1-63 characters. + * * Must be unique within the zone. + * + * Generated from protobuf field string asset_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getAssetId() + { + return $this->asset_id; + } + + /** + * Required. Asset identifier. + * This ID will be used to generate names such as table names when publishing + * metadata to Hive Metastore and BigQuery. + * * Must contain only lowercase letters, numbers and hyphens. + * * Must start with a letter. + * * Must end with a number or a letter. + * * Must be between 1-63 characters. + * * Must be unique within the zone. + * + * Generated from protobuf field string asset_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setAssetId($var) + { + GPBUtil::checkString($var, True); + $this->asset_id = $var; + + return $this; + } + + /** + * Required. Asset resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Asset asset = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\Asset|null + */ + public function getAsset() + { + return $this->asset; + } + + public function hasAsset() + { + return isset($this->asset); + } + + public function clearAsset() + { + unset($this->asset); + } + + /** + * Required. Asset resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Asset asset = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\Asset $var + * @return $this + */ + public function setAsset($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Asset::class); + $this->asset = $var; + + return $this; + } + + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateDataAssetRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateDataAssetRequest.php new file mode 100644 index 000000000000..4a282d0c9631 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateDataAssetRequest.php @@ -0,0 +1,242 @@ +google.cloud.dataplex.v1.CreateDataAssetRequest + */ +class CreateDataAssetRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where this data asset will be created. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The ID of the data asset to create. + * The ID must conform to RFC-1034 and contain only lower-case letters (a-z), + * numbers (0-9), or hyphens, with the first character a letter, the last a + * letter or a number, and a 63 character maximum. Characters outside of + * ASCII are not permitted. + * Valid format regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$` + * If not provided, a system generated ID will be used. + * + * Generated from protobuf field string data_asset_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $data_asset_id = ''; + /** + * Required. The data asset to create. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataAsset data_asset = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $data_asset = null; + /** + * Optional. Validates the request without actually creating the data asset. + * Defaults to false. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $validate_only = false; + + /** + * @param string $parent Required. The parent resource where this data asset will be created. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} + * Please see {@see DataProductServiceClient::dataProductName()} for help formatting this field. + * @param \Google\Cloud\Dataplex\V1\DataAsset $dataAsset Required. The data asset to create. + * @param string $dataAssetId Optional. The ID of the data asset to create. + * + * The ID must conform to RFC-1034 and contain only lower-case letters (a-z), + * numbers (0-9), or hyphens, with the first character a letter, the last a + * letter or a number, and a 63 character maximum. Characters outside of + * ASCII are not permitted. + * Valid format regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$` + * If not provided, a system generated ID will be used. + * + * @return \Google\Cloud\Dataplex\V1\CreateDataAssetRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Dataplex\V1\DataAsset $dataAsset, string $dataAssetId): self + { + return (new self()) + ->setParent($parent) + ->setDataAsset($dataAsset) + ->setDataAssetId($dataAssetId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where this data asset will be created. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} + * @type string $data_asset_id + * Optional. The ID of the data asset to create. + * The ID must conform to RFC-1034 and contain only lower-case letters (a-z), + * numbers (0-9), or hyphens, with the first character a letter, the last a + * letter or a number, and a 63 character maximum. Characters outside of + * ASCII are not permitted. + * Valid format regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$` + * If not provided, a system generated ID will be used. + * @type \Google\Cloud\Dataplex\V1\DataAsset $data_asset + * Required. The data asset to create. + * @type bool $validate_only + * Optional. Validates the request without actually creating the data asset. + * Defaults to false. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataProducts::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where this data asset will be created. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} + * + * 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 data asset will be created. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} + * + * 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 of the data asset to create. + * The ID must conform to RFC-1034 and contain only lower-case letters (a-z), + * numbers (0-9), or hyphens, with the first character a letter, the last a + * letter or a number, and a 63 character maximum. Characters outside of + * ASCII are not permitted. + * Valid format regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$` + * If not provided, a system generated ID will be used. + * + * Generated from protobuf field string data_asset_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDataAssetId() + { + return $this->data_asset_id; + } + + /** + * Optional. The ID of the data asset to create. + * The ID must conform to RFC-1034 and contain only lower-case letters (a-z), + * numbers (0-9), or hyphens, with the first character a letter, the last a + * letter or a number, and a 63 character maximum. Characters outside of + * ASCII are not permitted. + * Valid format regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$` + * If not provided, a system generated ID will be used. + * + * Generated from protobuf field string data_asset_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDataAssetId($var) + { + GPBUtil::checkString($var, True); + $this->data_asset_id = $var; + + return $this; + } + + /** + * Required. The data asset to create. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataAsset data_asset = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\DataAsset|null + */ + public function getDataAsset() + { + return $this->data_asset; + } + + public function hasDataAsset() + { + return isset($this->data_asset); + } + + public function clearDataAsset() + { + unset($this->data_asset); + } + + /** + * Required. The data asset to create. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataAsset data_asset = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\DataAsset $var + * @return $this + */ + public function setDataAsset($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataAsset::class); + $this->data_asset = $var; + + return $this; + } + + /** + * Optional. Validates the request without actually creating the data asset. + * Defaults to false. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * Optional. Validates the request without actually creating the data asset. + * Defaults to false. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateDataAttributeBindingRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateDataAttributeBindingRequest.php new file mode 100644 index 000000000000..f6d3bf5b28f8 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateDataAttributeBindingRequest.php @@ -0,0 +1,231 @@ +google.cloud.dataplex.v1.CreateDataAttributeBindingRequest + */ +class CreateDataAttributeBindingRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the parent data taxonomy + * projects/{project_number}/locations/{location_id} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. DataAttributeBinding identifier. + * * Must contain only lowercase letters, numbers and hyphens. + * * Must start with a letter. + * * Must be between 1-63 characters. + * * Must end with a number or a letter. + * * Must be unique within the Location. + * + * Generated from protobuf field string data_attribute_binding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $data_attribute_binding_id = ''; + /** + * Required. DataAttributeBinding resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataAttributeBinding data_attribute_binding = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $data_attribute_binding = null; + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $validate_only = false; + + /** + * @param string $parent Required. The resource name of the parent data taxonomy + * projects/{project_number}/locations/{location_id} + * Please see {@see DataTaxonomyServiceClient::locationName()} for help formatting this field. + * @param \Google\Cloud\Dataplex\V1\DataAttributeBinding $dataAttributeBinding Required. DataAttributeBinding resource. + * @param string $dataAttributeBindingId Required. DataAttributeBinding identifier. + * * Must contain only lowercase letters, numbers and hyphens. + * * Must start with a letter. + * * Must be between 1-63 characters. + * * Must end with a number or a letter. + * * Must be unique within the Location. + * + * @return \Google\Cloud\Dataplex\V1\CreateDataAttributeBindingRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Dataplex\V1\DataAttributeBinding $dataAttributeBinding, string $dataAttributeBindingId): self + { + return (new self()) + ->setParent($parent) + ->setDataAttributeBinding($dataAttributeBinding) + ->setDataAttributeBindingId($dataAttributeBindingId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the parent data taxonomy + * projects/{project_number}/locations/{location_id} + * @type string $data_attribute_binding_id + * Required. DataAttributeBinding identifier. + * * Must contain only lowercase letters, numbers and hyphens. + * * Must start with a letter. + * * Must be between 1-63 characters. + * * Must end with a number or a letter. + * * Must be unique within the Location. + * @type \Google\Cloud\Dataplex\V1\DataAttributeBinding $data_attribute_binding + * Required. DataAttributeBinding resource. + * @type bool $validate_only + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataTaxonomy::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the parent data taxonomy + * projects/{project_number}/locations/{location_id} + * + * 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 resource name of the parent data taxonomy + * projects/{project_number}/locations/{location_id} + * + * 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. DataAttributeBinding identifier. + * * Must contain only lowercase letters, numbers and hyphens. + * * Must start with a letter. + * * Must be between 1-63 characters. + * * Must end with a number or a letter. + * * Must be unique within the Location. + * + * Generated from protobuf field string data_attribute_binding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDataAttributeBindingId() + { + return $this->data_attribute_binding_id; + } + + /** + * Required. DataAttributeBinding identifier. + * * Must contain only lowercase letters, numbers and hyphens. + * * Must start with a letter. + * * Must be between 1-63 characters. + * * Must end with a number or a letter. + * * Must be unique within the Location. + * + * Generated from protobuf field string data_attribute_binding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDataAttributeBindingId($var) + { + GPBUtil::checkString($var, True); + $this->data_attribute_binding_id = $var; + + return $this; + } + + /** + * Required. DataAttributeBinding resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataAttributeBinding data_attribute_binding = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\DataAttributeBinding|null + */ + public function getDataAttributeBinding() + { + return $this->data_attribute_binding; + } + + public function hasDataAttributeBinding() + { + return isset($this->data_attribute_binding); + } + + public function clearDataAttributeBinding() + { + unset($this->data_attribute_binding); + } + + /** + * Required. DataAttributeBinding resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataAttributeBinding data_attribute_binding = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\DataAttributeBinding $var + * @return $this + */ + public function setDataAttributeBinding($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataAttributeBinding::class); + $this->data_attribute_binding = $var; + + return $this; + } + + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateDataAttributeRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateDataAttributeRequest.php new file mode 100644 index 000000000000..e46d11db174d --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateDataAttributeRequest.php @@ -0,0 +1,231 @@ +google.cloud.dataplex.v1.CreateDataAttributeRequest + */ +class CreateDataAttributeRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the parent data taxonomy + * projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. DataAttribute identifier. + * * Must contain only lowercase letters, numbers and hyphens. + * * Must start with a letter. + * * Must be between 1-63 characters. + * * Must end with a number or a letter. + * * Must be unique within the DataTaxonomy. + * + * Generated from protobuf field string data_attribute_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $data_attribute_id = ''; + /** + * Required. DataAttribute resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataAttribute data_attribute = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $data_attribute = null; + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $validate_only = false; + + /** + * @param string $parent Required. The resource name of the parent data taxonomy + * projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id} + * Please see {@see DataTaxonomyServiceClient::dataTaxonomyName()} for help formatting this field. + * @param \Google\Cloud\Dataplex\V1\DataAttribute $dataAttribute Required. DataAttribute resource. + * @param string $dataAttributeId Required. DataAttribute identifier. + * * Must contain only lowercase letters, numbers and hyphens. + * * Must start with a letter. + * * Must be between 1-63 characters. + * * Must end with a number or a letter. + * * Must be unique within the DataTaxonomy. + * + * @return \Google\Cloud\Dataplex\V1\CreateDataAttributeRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Dataplex\V1\DataAttribute $dataAttribute, string $dataAttributeId): self + { + return (new self()) + ->setParent($parent) + ->setDataAttribute($dataAttribute) + ->setDataAttributeId($dataAttributeId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the parent data taxonomy + * projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id} + * @type string $data_attribute_id + * Required. DataAttribute identifier. + * * Must contain only lowercase letters, numbers and hyphens. + * * Must start with a letter. + * * Must be between 1-63 characters. + * * Must end with a number or a letter. + * * Must be unique within the DataTaxonomy. + * @type \Google\Cloud\Dataplex\V1\DataAttribute $data_attribute + * Required. DataAttribute resource. + * @type bool $validate_only + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataTaxonomy::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the parent data taxonomy + * projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id} + * + * 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 resource name of the parent data taxonomy + * projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id} + * + * 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. DataAttribute identifier. + * * Must contain only lowercase letters, numbers and hyphens. + * * Must start with a letter. + * * Must be between 1-63 characters. + * * Must end with a number or a letter. + * * Must be unique within the DataTaxonomy. + * + * Generated from protobuf field string data_attribute_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDataAttributeId() + { + return $this->data_attribute_id; + } + + /** + * Required. DataAttribute identifier. + * * Must contain only lowercase letters, numbers and hyphens. + * * Must start with a letter. + * * Must be between 1-63 characters. + * * Must end with a number or a letter. + * * Must be unique within the DataTaxonomy. + * + * Generated from protobuf field string data_attribute_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDataAttributeId($var) + { + GPBUtil::checkString($var, True); + $this->data_attribute_id = $var; + + return $this; + } + + /** + * Required. DataAttribute resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataAttribute data_attribute = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\DataAttribute|null + */ + public function getDataAttribute() + { + return $this->data_attribute; + } + + public function hasDataAttribute() + { + return isset($this->data_attribute); + } + + public function clearDataAttribute() + { + unset($this->data_attribute); + } + + /** + * Required. DataAttribute resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataAttribute data_attribute = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\DataAttribute $var + * @return $this + */ + public function setDataAttribute($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataAttribute::class); + $this->data_attribute = $var; + + return $this; + } + + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateDataProductRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateDataProductRequest.php new file mode 100644 index 000000000000..d90319c06e2c --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateDataProductRequest.php @@ -0,0 +1,237 @@ +google.cloud.dataplex.v1.CreateDataProductRequest + */ +class CreateDataProductRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where this data product will be created. + * Format: projects/{project_id_or_number}/locations/{location_id} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The ID of the data product to create. + * The ID must conform to RFC-1034 and contain only lower-case letters (a-z), + * numbers (0-9), or hyphens, with the first character a letter, the last a + * letter or a number, and a 63 character maximum. Characters outside of + * ASCII are not permitted. + * Valid format regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$` + * If not provided, a system generated ID will be used. + * + * Generated from protobuf field string data_product_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $data_product_id = ''; + /** + * Required. The data product to create. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataProduct data_product = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $data_product = null; + /** + * Optional. Validates the request without actually creating the data product. + * Default: false. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $validate_only = false; + + /** + * @param string $parent Required. The parent resource where this data product will be created. + * Format: projects/{project_id_or_number}/locations/{location_id} + * Please see {@see DataProductServiceClient::locationName()} for help formatting this field. + * @param \Google\Cloud\Dataplex\V1\DataProduct $dataProduct Required. The data product to create. + * @param string $dataProductId Optional. The ID of the data product to create. + * + * The ID must conform to RFC-1034 and contain only lower-case letters (a-z), + * numbers (0-9), or hyphens, with the first character a letter, the last a + * letter or a number, and a 63 character maximum. Characters outside of + * ASCII are not permitted. + * Valid format regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$` + * If not provided, a system generated ID will be used. + * + * @return \Google\Cloud\Dataplex\V1\CreateDataProductRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Dataplex\V1\DataProduct $dataProduct, string $dataProductId): self + { + return (new self()) + ->setParent($parent) + ->setDataProduct($dataProduct) + ->setDataProductId($dataProductId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where this data product will be created. + * Format: projects/{project_id_or_number}/locations/{location_id} + * @type string $data_product_id + * Optional. The ID of the data product to create. + * The ID must conform to RFC-1034 and contain only lower-case letters (a-z), + * numbers (0-9), or hyphens, with the first character a letter, the last a + * letter or a number, and a 63 character maximum. Characters outside of + * ASCII are not permitted. + * Valid format regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$` + * If not provided, a system generated ID will be used. + * @type \Google\Cloud\Dataplex\V1\DataProduct $data_product + * Required. The data product to create. + * @type bool $validate_only + * Optional. Validates the request without actually creating the data product. + * Default: false. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataProducts::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where this data product will be created. + * Format: projects/{project_id_or_number}/locations/{location_id} + * + * 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 data product will be created. + * Format: projects/{project_id_or_number}/locations/{location_id} + * + * 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 of the data product to create. + * The ID must conform to RFC-1034 and contain only lower-case letters (a-z), + * numbers (0-9), or hyphens, with the first character a letter, the last a + * letter or a number, and a 63 character maximum. Characters outside of + * ASCII are not permitted. + * Valid format regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$` + * If not provided, a system generated ID will be used. + * + * Generated from protobuf field string data_product_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDataProductId() + { + return $this->data_product_id; + } + + /** + * Optional. The ID of the data product to create. + * The ID must conform to RFC-1034 and contain only lower-case letters (a-z), + * numbers (0-9), or hyphens, with the first character a letter, the last a + * letter or a number, and a 63 character maximum. Characters outside of + * ASCII are not permitted. + * Valid format regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$` + * If not provided, a system generated ID will be used. + * + * Generated from protobuf field string data_product_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDataProductId($var) + { + GPBUtil::checkString($var, True); + $this->data_product_id = $var; + + return $this; + } + + /** + * Required. The data product to create. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataProduct data_product = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\DataProduct|null + */ + public function getDataProduct() + { + return $this->data_product; + } + + public function hasDataProduct() + { + return isset($this->data_product); + } + + public function clearDataProduct() + { + unset($this->data_product); + } + + /** + * Required. The data product to create. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataProduct data_product = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\DataProduct $var + * @return $this + */ + public function setDataProduct($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataProduct::class); + $this->data_product = $var; + + return $this; + } + + /** + * Optional. Validates the request without actually creating the data product. + * Default: false. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * Optional. Validates the request without actually creating the data product. + * Default: false. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateDataScanRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateDataScanRequest.php new file mode 100644 index 000000000000..6cbb738f08c9 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateDataScanRequest.php @@ -0,0 +1,247 @@ +google.cloud.dataplex.v1.CreateDataScanRequest + */ +class CreateDataScanRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the parent location: + * `projects/{project}/locations/{location_id}` + * where `project` refers to a *project_id* or *project_number* and + * `location_id` refers to a Google Cloud region. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. DataScan resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScan data_scan = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $data_scan = null; + /** + * Optional. DataScan identifier. If not provided, a unique ID will be + * generated with the prefix "data-scan-". + * * Must contain only lowercase letters, numbers and hyphens. + * * Must start with a letter. + * * Must end with a number or a letter. + * * Must be between 1-63 characters. + * * Must be unique within the customer project / location. + * + * Generated from protobuf field string data_scan_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $data_scan_id = ''; + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is `false`. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $validate_only = false; + + /** + * @param string $parent Required. The resource name of the parent location: + * `projects/{project}/locations/{location_id}` + * where `project` refers to a *project_id* or *project_number* and + * `location_id` refers to a Google Cloud region. Please see + * {@see DataScanServiceClient::locationName()} for help formatting this field. + * @param \Google\Cloud\Dataplex\V1\DataScan $dataScan Required. DataScan resource. + * @param string $dataScanId Optional. DataScan identifier. If not provided, a unique ID will be + * generated with the prefix "data-scan-". + * + * * Must contain only lowercase letters, numbers and hyphens. + * * Must start with a letter. + * * Must end with a number or a letter. + * * Must be between 1-63 characters. + * * Must be unique within the customer project / location. + * + * @return \Google\Cloud\Dataplex\V1\CreateDataScanRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Dataplex\V1\DataScan $dataScan, string $dataScanId): self + { + return (new self()) + ->setParent($parent) + ->setDataScan($dataScan) + ->setDataScanId($dataScanId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the parent location: + * `projects/{project}/locations/{location_id}` + * where `project` refers to a *project_id* or *project_number* and + * `location_id` refers to a Google Cloud region. + * @type \Google\Cloud\Dataplex\V1\DataScan $data_scan + * Required. DataScan resource. + * @type string $data_scan_id + * Optional. DataScan identifier. If not provided, a unique ID will be + * generated with the prefix "data-scan-". + * * Must contain only lowercase letters, numbers and hyphens. + * * Must start with a letter. + * * Must end with a number or a letter. + * * Must be between 1-63 characters. + * * Must be unique within the customer project / location. + * @type bool $validate_only + * Optional. Only validate the request, but do not perform mutations. + * The default is `false`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Datascans::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the parent location: + * `projects/{project}/locations/{location_id}` + * where `project` refers to a *project_id* or *project_number* and + * `location_id` refers to a Google Cloud region. + * + * 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 resource name of the parent location: + * `projects/{project}/locations/{location_id}` + * where `project` refers to a *project_id* or *project_number* and + * `location_id` refers to a Google Cloud region. + * + * 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. DataScan resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScan data_scan = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\DataScan|null + */ + public function getDataScan() + { + return $this->data_scan; + } + + public function hasDataScan() + { + return isset($this->data_scan); + } + + public function clearDataScan() + { + unset($this->data_scan); + } + + /** + * Required. DataScan resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScan data_scan = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\DataScan $var + * @return $this + */ + public function setDataScan($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataScan::class); + $this->data_scan = $var; + + return $this; + } + + /** + * Optional. DataScan identifier. If not provided, a unique ID will be + * generated with the prefix "data-scan-". + * * Must contain only lowercase letters, numbers and hyphens. + * * Must start with a letter. + * * Must end with a number or a letter. + * * Must be between 1-63 characters. + * * Must be unique within the customer project / location. + * + * Generated from protobuf field string data_scan_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDataScanId() + { + return $this->data_scan_id; + } + + /** + * Optional. DataScan identifier. If not provided, a unique ID will be + * generated with the prefix "data-scan-". + * * Must contain only lowercase letters, numbers and hyphens. + * * Must start with a letter. + * * Must end with a number or a letter. + * * Must be between 1-63 characters. + * * Must be unique within the customer project / location. + * + * Generated from protobuf field string data_scan_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDataScanId($var) + { + GPBUtil::checkString($var, True); + $this->data_scan_id = $var; + + return $this; + } + + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is `false`. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is `false`. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateDataTaxonomyRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateDataTaxonomyRequest.php new file mode 100644 index 000000000000..c950b605ce45 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateDataTaxonomyRequest.php @@ -0,0 +1,219 @@ +google.cloud.dataplex.v1.CreateDataTaxonomyRequest + */ +class CreateDataTaxonomyRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. DataTaxonomy identifier. + * * Must contain only lowercase letters, numbers and hyphens. + * * Must start with a letter. + * * Must be between 1-63 characters. + * * Must end with a number or a letter. + * * Must be unique within the Project. + * + * Generated from protobuf field string data_taxonomy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $data_taxonomy_id = ''; + /** + * Required. DataTaxonomy resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataTaxonomy data_taxonomy = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $data_taxonomy = null; + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $validate_only = false; + + /** + * @param string $parent Please see {@see DataTaxonomyServiceClient::locationName()} for help formatting this field. + * @param \Google\Cloud\Dataplex\V1\DataTaxonomy $dataTaxonomy Required. DataTaxonomy resource. + * @param string $dataTaxonomyId Required. DataTaxonomy identifier. + * * Must contain only lowercase letters, numbers and hyphens. + * * Must start with a letter. + * * Must be between 1-63 characters. + * * Must end with a number or a letter. + * * Must be unique within the Project. + * + * @return \Google\Cloud\Dataplex\V1\CreateDataTaxonomyRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Dataplex\V1\DataTaxonomy $dataTaxonomy, string $dataTaxonomyId): self + { + return (new self()) + ->setParent($parent) + ->setDataTaxonomy($dataTaxonomy) + ->setDataTaxonomyId($dataTaxonomyId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * @type string $data_taxonomy_id + * Required. DataTaxonomy identifier. + * * Must contain only lowercase letters, numbers and hyphens. + * * Must start with a letter. + * * Must be between 1-63 characters. + * * Must end with a number or a letter. + * * Must be unique within the Project. + * @type \Google\Cloud\Dataplex\V1\DataTaxonomy $data_taxonomy + * Required. DataTaxonomy resource. + * @type bool $validate_only + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataTaxonomy::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * 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. DataTaxonomy identifier. + * * Must contain only lowercase letters, numbers and hyphens. + * * Must start with a letter. + * * Must be between 1-63 characters. + * * Must end with a number or a letter. + * * Must be unique within the Project. + * + * Generated from protobuf field string data_taxonomy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDataTaxonomyId() + { + return $this->data_taxonomy_id; + } + + /** + * Required. DataTaxonomy identifier. + * * Must contain only lowercase letters, numbers and hyphens. + * * Must start with a letter. + * * Must be between 1-63 characters. + * * Must end with a number or a letter. + * * Must be unique within the Project. + * + * Generated from protobuf field string data_taxonomy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDataTaxonomyId($var) + { + GPBUtil::checkString($var, True); + $this->data_taxonomy_id = $var; + + return $this; + } + + /** + * Required. DataTaxonomy resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataTaxonomy data_taxonomy = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\DataTaxonomy|null + */ + public function getDataTaxonomy() + { + return $this->data_taxonomy; + } + + public function hasDataTaxonomy() + { + return isset($this->data_taxonomy); + } + + public function clearDataTaxonomy() + { + unset($this->data_taxonomy); + } + + /** + * Required. DataTaxonomy resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataTaxonomy data_taxonomy = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\DataTaxonomy $var + * @return $this + */ + public function setDataTaxonomy($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataTaxonomy::class); + $this->data_taxonomy = $var; + + return $this; + } + + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateEncryptionConfigRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateEncryptionConfigRequest.php new file mode 100644 index 000000000000..10212335db2d --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateEncryptionConfigRequest.php @@ -0,0 +1,173 @@ +google.cloud.dataplex.v1.CreateEncryptionConfigRequest + */ +class CreateEncryptionConfigRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The location at which the EncryptionConfig is to be created. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The ID of the + * [EncryptionConfig][google.cloud.dataplex.v1.EncryptionConfig] to create. + * Currently, only a value of "default" is supported. + * + * Generated from protobuf field string encryption_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $encryption_config_id = ''; + /** + * Required. The EncryptionConfig to create. + * + * Generated from protobuf field .google.cloud.dataplex.v1.EncryptionConfig encryption_config = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $encryption_config = null; + + /** + * @param string $parent Required. The location at which the EncryptionConfig is to be created. Please see + * {@see CmekServiceClient::organizationLocationName()} for help formatting this field. + * @param \Google\Cloud\Dataplex\V1\EncryptionConfig $encryptionConfig Required. The EncryptionConfig to create. + * @param string $encryptionConfigId Required. The ID of the + * [EncryptionConfig][google.cloud.dataplex.v1.EncryptionConfig] to create. + * Currently, only a value of "default" is supported. + * + * @return \Google\Cloud\Dataplex\V1\CreateEncryptionConfigRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Dataplex\V1\EncryptionConfig $encryptionConfig, string $encryptionConfigId): self + { + return (new self()) + ->setParent($parent) + ->setEncryptionConfig($encryptionConfig) + ->setEncryptionConfigId($encryptionConfigId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The location at which the EncryptionConfig is to be created. + * @type string $encryption_config_id + * Required. The ID of the + * [EncryptionConfig][google.cloud.dataplex.v1.EncryptionConfig] to create. + * Currently, only a value of "default" is supported. + * @type \Google\Cloud\Dataplex\V1\EncryptionConfig $encryption_config + * Required. The EncryptionConfig to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Cmek::initOnce(); + parent::__construct($data); + } + + /** + * Required. The location at which the EncryptionConfig is to be created. + * + * 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 location at which the EncryptionConfig is to be created. + * + * 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 ID of the + * [EncryptionConfig][google.cloud.dataplex.v1.EncryptionConfig] to create. + * Currently, only a value of "default" is supported. + * + * Generated from protobuf field string encryption_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getEncryptionConfigId() + { + return $this->encryption_config_id; + } + + /** + * Required. The ID of the + * [EncryptionConfig][google.cloud.dataplex.v1.EncryptionConfig] to create. + * Currently, only a value of "default" is supported. + * + * Generated from protobuf field string encryption_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setEncryptionConfigId($var) + { + GPBUtil::checkString($var, True); + $this->encryption_config_id = $var; + + return $this; + } + + /** + * Required. The EncryptionConfig to create. + * + * Generated from protobuf field .google.cloud.dataplex.v1.EncryptionConfig encryption_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\EncryptionConfig|null + */ + public function getEncryptionConfig() + { + return $this->encryption_config; + } + + public function hasEncryptionConfig() + { + return isset($this->encryption_config); + } + + public function clearEncryptionConfig() + { + unset($this->encryption_config); + } + + /** + * Required. The EncryptionConfig to create. + * + * Generated from protobuf field .google.cloud.dataplex.v1.EncryptionConfig encryption_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\EncryptionConfig $var + * @return $this + */ + public function setEncryptionConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\EncryptionConfig::class); + $this->encryption_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateEntityRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateEntityRequest.php new file mode 100644 index 000000000000..79fe62114e60 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateEntityRequest.php @@ -0,0 +1,170 @@ +google.cloud.dataplex.v1.CreateEntityRequest + */ +class CreateEntityRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the parent zone: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. Entity resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Entity entity = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $entity = null; + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $validate_only = false; + + /** + * @param string $parent Required. The resource name of the parent zone: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. Please see + * {@see MetadataServiceClient::zoneName()} for help formatting this field. + * @param \Google\Cloud\Dataplex\V1\Entity $entity Required. Entity resource. + * + * @return \Google\Cloud\Dataplex\V1\CreateEntityRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Dataplex\V1\Entity $entity): self + { + return (new self()) + ->setParent($parent) + ->setEntity($entity); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the parent zone: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. + * @type \Google\Cloud\Dataplex\V1\Entity $entity + * Required. Entity resource. + * @type bool $validate_only + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Metadata::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the parent zone: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. + * + * 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 resource name of the parent zone: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. + * + * 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. Entity resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Entity entity = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\Entity|null + */ + public function getEntity() + { + return $this->entity; + } + + public function hasEntity() + { + return isset($this->entity); + } + + public function clearEntity() + { + unset($this->entity); + } + + /** + * Required. Entity resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Entity entity = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\Entity $var + * @return $this + */ + public function setEntity($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Entity::class); + $this->entity = $var; + + return $this; + } + + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateEntryGroupRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateEntryGroupRequest.php new file mode 100644 index 000000000000..76f7bd3e59cf --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateEntryGroupRequest.php @@ -0,0 +1,211 @@ +google.cloud.dataplex.v1.CreateEntryGroupRequest + */ +class CreateEntryGroupRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the entryGroup, of the form: + * projects/{project_number}/locations/{location_id} + * where `location_id` refers to a Google Cloud region. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. EntryGroup identifier. + * + * Generated from protobuf field string entry_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $entry_group_id = ''; + /** + * Required. EntryGroup Resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.EntryGroup entry_group = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $entry_group = null; + /** + * Optional. The service validates the request without performing any + * mutations. The default is false. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $validate_only = false; + + /** + * @param string $parent Required. The resource name of the entryGroup, of the form: + * projects/{project_number}/locations/{location_id} + * where `location_id` refers to a Google Cloud region. Please see + * {@see CatalogServiceClient::locationName()} for help formatting this field. + * @param \Google\Cloud\Dataplex\V1\EntryGroup $entryGroup Required. EntryGroup Resource. + * @param string $entryGroupId Required. EntryGroup identifier. + * + * @return \Google\Cloud\Dataplex\V1\CreateEntryGroupRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Dataplex\V1\EntryGroup $entryGroup, string $entryGroupId): self + { + return (new self()) + ->setParent($parent) + ->setEntryGroup($entryGroup) + ->setEntryGroupId($entryGroupId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the entryGroup, of the form: + * projects/{project_number}/locations/{location_id} + * where `location_id` refers to a Google Cloud region. + * @type string $entry_group_id + * Required. EntryGroup identifier. + * @type \Google\Cloud\Dataplex\V1\EntryGroup $entry_group + * Required. EntryGroup Resource. + * @type bool $validate_only + * Optional. The service validates the request without performing any + * mutations. The default is false. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the entryGroup, of the form: + * projects/{project_number}/locations/{location_id} + * where `location_id` refers to a Google Cloud region. + * + * 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 resource name of the entryGroup, of the form: + * projects/{project_number}/locations/{location_id} + * where `location_id` refers to a Google Cloud region. + * + * 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. EntryGroup identifier. + * + * Generated from protobuf field string entry_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getEntryGroupId() + { + return $this->entry_group_id; + } + + /** + * Required. EntryGroup identifier. + * + * Generated from protobuf field string entry_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setEntryGroupId($var) + { + GPBUtil::checkString($var, True); + $this->entry_group_id = $var; + + return $this; + } + + /** + * Required. EntryGroup Resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.EntryGroup entry_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\EntryGroup|null + */ + public function getEntryGroup() + { + return $this->entry_group; + } + + public function hasEntryGroup() + { + return isset($this->entry_group); + } + + public function clearEntryGroup() + { + unset($this->entry_group); + } + + /** + * Required. EntryGroup Resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.EntryGroup entry_group = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\EntryGroup $var + * @return $this + */ + public function setEntryGroup($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\EntryGroup::class); + $this->entry_group = $var; + + return $this; + } + + /** + * Optional. The service validates the request without performing any + * mutations. The default is false. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * Optional. The service validates the request without performing any + * mutations. The default is false. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateEntryLinkRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateEntryLinkRequest.php new file mode 100644 index 000000000000..b7dd5733206c --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateEntryLinkRequest.php @@ -0,0 +1,193 @@ +google.cloud.dataplex.v1.CreateEntryLinkRequest + */ +class CreateEntryLinkRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the parent Entry Group: + * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. Entry Link identifier + * * Must contain only lowercase letters, numbers and hyphens. + * * Must start with a letter. + * * Must be between 1-63 characters. + * * Must end with a number or a letter. + * * Must be unique within the EntryGroup. + * + * Generated from protobuf field string entry_link_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $entry_link_id = ''; + /** + * Required. Entry Link resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.EntryLink entry_link = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $entry_link = null; + + /** + * @param string $parent Required. The resource name of the parent Entry Group: + * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`. Please see + * {@see CatalogServiceClient::entryGroupName()} for help formatting this field. + * @param \Google\Cloud\Dataplex\V1\EntryLink $entryLink Required. Entry Link resource. + * @param string $entryLinkId Required. Entry Link identifier + * * Must contain only lowercase letters, numbers and hyphens. + * * Must start with a letter. + * * Must be between 1-63 characters. + * * Must end with a number or a letter. + * * Must be unique within the EntryGroup. + * + * @return \Google\Cloud\Dataplex\V1\CreateEntryLinkRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Dataplex\V1\EntryLink $entryLink, string $entryLinkId): self + { + return (new self()) + ->setParent($parent) + ->setEntryLink($entryLink) + ->setEntryLinkId($entryLinkId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the parent Entry Group: + * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`. + * @type string $entry_link_id + * Required. Entry Link identifier + * * Must contain only lowercase letters, numbers and hyphens. + * * Must start with a letter. + * * Must be between 1-63 characters. + * * Must end with a number or a letter. + * * Must be unique within the EntryGroup. + * @type \Google\Cloud\Dataplex\V1\EntryLink $entry_link + * Required. Entry Link resource. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the parent Entry Group: + * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`. + * + * 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 resource name of the parent Entry Group: + * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`. + * + * 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. Entry Link identifier + * * Must contain only lowercase letters, numbers and hyphens. + * * Must start with a letter. + * * Must be between 1-63 characters. + * * Must end with a number or a letter. + * * Must be unique within the EntryGroup. + * + * Generated from protobuf field string entry_link_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getEntryLinkId() + { + return $this->entry_link_id; + } + + /** + * Required. Entry Link identifier + * * Must contain only lowercase letters, numbers and hyphens. + * * Must start with a letter. + * * Must be between 1-63 characters. + * * Must end with a number or a letter. + * * Must be unique within the EntryGroup. + * + * Generated from protobuf field string entry_link_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setEntryLinkId($var) + { + GPBUtil::checkString($var, True); + $this->entry_link_id = $var; + + return $this; + } + + /** + * Required. Entry Link resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.EntryLink entry_link = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\EntryLink|null + */ + public function getEntryLink() + { + return $this->entry_link; + } + + public function hasEntryLink() + { + return isset($this->entry_link); + } + + public function clearEntryLink() + { + unset($this->entry_link); + } + + /** + * Required. Entry Link resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.EntryLink entry_link = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\EntryLink $var + * @return $this + */ + public function setEntryLink($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\EntryLink::class); + $this->entry_link = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateEntryRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateEntryRequest.php new file mode 100644 index 000000000000..3884740fbe84 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateEntryRequest.php @@ -0,0 +1,247 @@ +google.cloud.dataplex.v1.CreateEntryRequest + */ +class CreateEntryRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the parent Entry Group: + * `projects/{project}/locations/{location}/entryGroups/{entry_group}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. Entry identifier. It has to be unique within an Entry Group. + * Entries corresponding to Google Cloud resources use an Entry ID format + * based on [full resource + * names](https://cloud.google.com/apis/design/resource_names#full_resource_name). + * The format is a full resource name of the resource without the + * prefix double slashes in the API service name part of the full resource + * name. This allows retrieval of entries using their associated resource + * name. + * For example, if the full resource name of a resource is + * `//library.googleapis.com/shelves/shelf1/books/book2`, + * then the suggested entry_id is + * `library.googleapis.com/shelves/shelf1/books/book2`. + * It is also suggested to follow the same convention for entries + * corresponding to resources from providers or systems other than Google + * Cloud. + * The maximum size of the field is 4000 characters. + * + * Generated from protobuf field string entry_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $entry_id = ''; + /** + * Required. Entry resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Entry entry = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $entry = null; + + /** + * @param string $parent Required. The resource name of the parent Entry Group: + * `projects/{project}/locations/{location}/entryGroups/{entry_group}`. Please see + * {@see CatalogServiceClient::entryGroupName()} for help formatting this field. + * @param \Google\Cloud\Dataplex\V1\Entry $entry Required. Entry resource. + * @param string $entryId Required. Entry identifier. It has to be unique within an Entry Group. + * + * Entries corresponding to Google Cloud resources use an Entry ID format + * based on [full resource + * names](https://cloud.google.com/apis/design/resource_names#full_resource_name). + * The format is a full resource name of the resource without the + * prefix double slashes in the API service name part of the full resource + * name. This allows retrieval of entries using their associated resource + * name. + * + * For example, if the full resource name of a resource is + * `//library.googleapis.com/shelves/shelf1/books/book2`, + * then the suggested entry_id is + * `library.googleapis.com/shelves/shelf1/books/book2`. + * + * It is also suggested to follow the same convention for entries + * corresponding to resources from providers or systems other than Google + * Cloud. + * + * The maximum size of the field is 4000 characters. + * + * @return \Google\Cloud\Dataplex\V1\CreateEntryRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Dataplex\V1\Entry $entry, string $entryId): self + { + return (new self()) + ->setParent($parent) + ->setEntry($entry) + ->setEntryId($entryId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the parent Entry Group: + * `projects/{project}/locations/{location}/entryGroups/{entry_group}`. + * @type string $entry_id + * Required. Entry identifier. It has to be unique within an Entry Group. + * Entries corresponding to Google Cloud resources use an Entry ID format + * based on [full resource + * names](https://cloud.google.com/apis/design/resource_names#full_resource_name). + * The format is a full resource name of the resource without the + * prefix double slashes in the API service name part of the full resource + * name. This allows retrieval of entries using their associated resource + * name. + * For example, if the full resource name of a resource is + * `//library.googleapis.com/shelves/shelf1/books/book2`, + * then the suggested entry_id is + * `library.googleapis.com/shelves/shelf1/books/book2`. + * It is also suggested to follow the same convention for entries + * corresponding to resources from providers or systems other than Google + * Cloud. + * The maximum size of the field is 4000 characters. + * @type \Google\Cloud\Dataplex\V1\Entry $entry + * Required. Entry resource. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the parent Entry Group: + * `projects/{project}/locations/{location}/entryGroups/{entry_group}`. + * + * 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 resource name of the parent Entry Group: + * `projects/{project}/locations/{location}/entryGroups/{entry_group}`. + * + * 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. Entry identifier. It has to be unique within an Entry Group. + * Entries corresponding to Google Cloud resources use an Entry ID format + * based on [full resource + * names](https://cloud.google.com/apis/design/resource_names#full_resource_name). + * The format is a full resource name of the resource without the + * prefix double slashes in the API service name part of the full resource + * name. This allows retrieval of entries using their associated resource + * name. + * For example, if the full resource name of a resource is + * `//library.googleapis.com/shelves/shelf1/books/book2`, + * then the suggested entry_id is + * `library.googleapis.com/shelves/shelf1/books/book2`. + * It is also suggested to follow the same convention for entries + * corresponding to resources from providers or systems other than Google + * Cloud. + * The maximum size of the field is 4000 characters. + * + * Generated from protobuf field string entry_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getEntryId() + { + return $this->entry_id; + } + + /** + * Required. Entry identifier. It has to be unique within an Entry Group. + * Entries corresponding to Google Cloud resources use an Entry ID format + * based on [full resource + * names](https://cloud.google.com/apis/design/resource_names#full_resource_name). + * The format is a full resource name of the resource without the + * prefix double slashes in the API service name part of the full resource + * name. This allows retrieval of entries using their associated resource + * name. + * For example, if the full resource name of a resource is + * `//library.googleapis.com/shelves/shelf1/books/book2`, + * then the suggested entry_id is + * `library.googleapis.com/shelves/shelf1/books/book2`. + * It is also suggested to follow the same convention for entries + * corresponding to resources from providers or systems other than Google + * Cloud. + * The maximum size of the field is 4000 characters. + * + * Generated from protobuf field string entry_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setEntryId($var) + { + GPBUtil::checkString($var, True); + $this->entry_id = $var; + + return $this; + } + + /** + * Required. Entry resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Entry entry = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\Entry|null + */ + public function getEntry() + { + return $this->entry; + } + + public function hasEntry() + { + return isset($this->entry); + } + + public function clearEntry() + { + unset($this->entry); + } + + /** + * Required. Entry resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Entry entry = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\Entry $var + * @return $this + */ + public function setEntry($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Entry::class); + $this->entry = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateEntryTypeRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateEntryTypeRequest.php new file mode 100644 index 000000000000..2f84cd0f070e --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateEntryTypeRequest.php @@ -0,0 +1,211 @@ +google.cloud.dataplex.v1.CreateEntryTypeRequest + */ +class CreateEntryTypeRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the EntryType, of the form: + * projects/{project_number}/locations/{location_id} + * where `location_id` refers to a Google Cloud region. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. EntryType identifier. + * + * Generated from protobuf field string entry_type_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $entry_type_id = ''; + /** + * Required. EntryType Resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.EntryType entry_type = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $entry_type = null; + /** + * Optional. The service validates the request without performing any + * mutations. The default is false. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $validate_only = false; + + /** + * @param string $parent Required. The resource name of the EntryType, of the form: + * projects/{project_number}/locations/{location_id} + * where `location_id` refers to a Google Cloud region. Please see + * {@see CatalogServiceClient::locationName()} for help formatting this field. + * @param \Google\Cloud\Dataplex\V1\EntryType $entryType Required. EntryType Resource. + * @param string $entryTypeId Required. EntryType identifier. + * + * @return \Google\Cloud\Dataplex\V1\CreateEntryTypeRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Dataplex\V1\EntryType $entryType, string $entryTypeId): self + { + return (new self()) + ->setParent($parent) + ->setEntryType($entryType) + ->setEntryTypeId($entryTypeId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the EntryType, of the form: + * projects/{project_number}/locations/{location_id} + * where `location_id` refers to a Google Cloud region. + * @type string $entry_type_id + * Required. EntryType identifier. + * @type \Google\Cloud\Dataplex\V1\EntryType $entry_type + * Required. EntryType Resource. + * @type bool $validate_only + * Optional. The service validates the request without performing any + * mutations. The default is false. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the EntryType, of the form: + * projects/{project_number}/locations/{location_id} + * where `location_id` refers to a Google Cloud region. + * + * 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 resource name of the EntryType, of the form: + * projects/{project_number}/locations/{location_id} + * where `location_id` refers to a Google Cloud region. + * + * 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. EntryType identifier. + * + * Generated from protobuf field string entry_type_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getEntryTypeId() + { + return $this->entry_type_id; + } + + /** + * Required. EntryType identifier. + * + * Generated from protobuf field string entry_type_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setEntryTypeId($var) + { + GPBUtil::checkString($var, True); + $this->entry_type_id = $var; + + return $this; + } + + /** + * Required. EntryType Resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.EntryType entry_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\EntryType|null + */ + public function getEntryType() + { + return $this->entry_type; + } + + public function hasEntryType() + { + return isset($this->entry_type); + } + + public function clearEntryType() + { + unset($this->entry_type); + } + + /** + * Required. EntryType Resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.EntryType entry_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\EntryType $var + * @return $this + */ + public function setEntryType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\EntryType::class); + $this->entry_type = $var; + + return $this; + } + + /** + * Optional. The service validates the request without performing any + * mutations. The default is false. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * Optional. The service validates the request without performing any + * mutations. The default is false. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateGlossaryCategoryRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateGlossaryCategoryRequest.php new file mode 100644 index 000000000000..5c46e3508abe --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateGlossaryCategoryRequest.php @@ -0,0 +1,178 @@ +google.cloud.dataplex.v1.CreateGlossaryCategoryRequest + */ +class CreateGlossaryCategoryRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where this GlossaryCategory will be created. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} + * where `locationId` refers to a Google Cloud region. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. GlossaryCategory identifier. + * + * Generated from protobuf field string category_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $category_id = ''; + /** + * Required. The GlossaryCategory to create. + * + * Generated from protobuf field .google.cloud.dataplex.v1.GlossaryCategory category = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $category = null; + + /** + * @param string $parent Required. The parent resource where this GlossaryCategory will be created. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} + * where `locationId` refers to a Google Cloud region. Please see + * {@see BusinessGlossaryServiceClient::glossaryName()} for help formatting this field. + * @param \Google\Cloud\Dataplex\V1\GlossaryCategory $category Required. The GlossaryCategory to create. + * @param string $categoryId Required. GlossaryCategory identifier. + * + * @return \Google\Cloud\Dataplex\V1\CreateGlossaryCategoryRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Dataplex\V1\GlossaryCategory $category, string $categoryId): self + { + return (new self()) + ->setParent($parent) + ->setCategory($category) + ->setCategoryId($categoryId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where this GlossaryCategory will be created. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} + * where `locationId` refers to a Google Cloud region. + * @type string $category_id + * Required. GlossaryCategory identifier. + * @type \Google\Cloud\Dataplex\V1\GlossaryCategory $category + * Required. The GlossaryCategory to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\BusinessGlossary::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where this GlossaryCategory will be created. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} + * where `locationId` refers to a Google Cloud region. + * + * 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 GlossaryCategory will be created. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} + * where `locationId` refers to a Google Cloud region. + * + * 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. GlossaryCategory identifier. + * + * Generated from protobuf field string category_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getCategoryId() + { + return $this->category_id; + } + + /** + * Required. GlossaryCategory identifier. + * + * Generated from protobuf field string category_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setCategoryId($var) + { + GPBUtil::checkString($var, True); + $this->category_id = $var; + + return $this; + } + + /** + * Required. The GlossaryCategory to create. + * + * Generated from protobuf field .google.cloud.dataplex.v1.GlossaryCategory category = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\GlossaryCategory|null + */ + public function getCategory() + { + return $this->category; + } + + public function hasCategory() + { + return isset($this->category); + } + + public function clearCategory() + { + unset($this->category); + } + + /** + * Required. The GlossaryCategory to create. + * + * Generated from protobuf field .google.cloud.dataplex.v1.GlossaryCategory category = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\GlossaryCategory $var + * @return $this + */ + public function setCategory($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\GlossaryCategory::class); + $this->category = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateGlossaryRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateGlossaryRequest.php new file mode 100644 index 000000000000..d36354d02d47 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateGlossaryRequest.php @@ -0,0 +1,211 @@ +google.cloud.dataplex.v1.CreateGlossaryRequest + */ +class CreateGlossaryRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where this Glossary will be created. + * Format: projects/{project_id_or_number}/locations/{location_id} + * where `location_id` refers to a Google Cloud region. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. Glossary ID: Glossary identifier. + * + * Generated from protobuf field string glossary_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $glossary_id = ''; + /** + * Required. The Glossary to create. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Glossary glossary = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $glossary = null; + /** + * Optional. Validates the request without actually creating the Glossary. + * Default: false. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $validate_only = false; + + /** + * @param string $parent Required. The parent resource where this Glossary will be created. + * Format: projects/{project_id_or_number}/locations/{location_id} + * where `location_id` refers to a Google Cloud region. Please see + * {@see BusinessGlossaryServiceClient::locationName()} for help formatting this field. + * @param \Google\Cloud\Dataplex\V1\Glossary $glossary Required. The Glossary to create. + * @param string $glossaryId Required. Glossary ID: Glossary identifier. + * + * @return \Google\Cloud\Dataplex\V1\CreateGlossaryRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Dataplex\V1\Glossary $glossary, string $glossaryId): self + { + return (new self()) + ->setParent($parent) + ->setGlossary($glossary) + ->setGlossaryId($glossaryId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where this Glossary will be created. + * Format: projects/{project_id_or_number}/locations/{location_id} + * where `location_id` refers to a Google Cloud region. + * @type string $glossary_id + * Required. Glossary ID: Glossary identifier. + * @type \Google\Cloud\Dataplex\V1\Glossary $glossary + * Required. The Glossary to create. + * @type bool $validate_only + * Optional. Validates the request without actually creating the Glossary. + * Default: false. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\BusinessGlossary::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where this Glossary will be created. + * Format: projects/{project_id_or_number}/locations/{location_id} + * where `location_id` refers to a Google Cloud region. + * + * 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 Glossary will be created. + * Format: projects/{project_id_or_number}/locations/{location_id} + * where `location_id` refers to a Google Cloud region. + * + * 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. Glossary ID: Glossary identifier. + * + * Generated from protobuf field string glossary_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getGlossaryId() + { + return $this->glossary_id; + } + + /** + * Required. Glossary ID: Glossary identifier. + * + * Generated from protobuf field string glossary_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setGlossaryId($var) + { + GPBUtil::checkString($var, True); + $this->glossary_id = $var; + + return $this; + } + + /** + * Required. The Glossary to create. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Glossary glossary = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\Glossary|null + */ + public function getGlossary() + { + return $this->glossary; + } + + public function hasGlossary() + { + return isset($this->glossary); + } + + public function clearGlossary() + { + unset($this->glossary); + } + + /** + * Required. The Glossary to create. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Glossary glossary = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\Glossary $var + * @return $this + */ + public function setGlossary($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Glossary::class); + $this->glossary = $var; + + return $this; + } + + /** + * Optional. Validates the request without actually creating the Glossary. + * Default: false. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * Optional. Validates the request without actually creating the Glossary. + * Default: false. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateGlossaryTermRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateGlossaryTermRequest.php new file mode 100644 index 000000000000..3edc1d14fa9e --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateGlossaryTermRequest.php @@ -0,0 +1,178 @@ +google.cloud.dataplex.v1.CreateGlossaryTermRequest + */ +class CreateGlossaryTermRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where the GlossaryTerm will be created. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} + * where `location_id` refers to a Google Cloud region. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. GlossaryTerm identifier. + * + * Generated from protobuf field string term_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $term_id = ''; + /** + * Required. The GlossaryTerm to create. + * + * Generated from protobuf field .google.cloud.dataplex.v1.GlossaryTerm term = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $term = null; + + /** + * @param string $parent Required. The parent resource where the GlossaryTerm will be created. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} + * where `location_id` refers to a Google Cloud region. Please see + * {@see BusinessGlossaryServiceClient::glossaryName()} for help formatting this field. + * @param \Google\Cloud\Dataplex\V1\GlossaryTerm $term Required. The GlossaryTerm to create. + * @param string $termId Required. GlossaryTerm identifier. + * + * @return \Google\Cloud\Dataplex\V1\CreateGlossaryTermRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Dataplex\V1\GlossaryTerm $term, string $termId): self + { + return (new self()) + ->setParent($parent) + ->setTerm($term) + ->setTermId($termId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where the GlossaryTerm will be created. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} + * where `location_id` refers to a Google Cloud region. + * @type string $term_id + * Required. GlossaryTerm identifier. + * @type \Google\Cloud\Dataplex\V1\GlossaryTerm $term + * Required. The GlossaryTerm to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\BusinessGlossary::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where the GlossaryTerm will be created. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} + * where `location_id` refers to a Google Cloud region. + * + * 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 GlossaryTerm will be created. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} + * where `location_id` refers to a Google Cloud region. + * + * 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. GlossaryTerm identifier. + * + * Generated from protobuf field string term_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getTermId() + { + return $this->term_id; + } + + /** + * Required. GlossaryTerm identifier. + * + * Generated from protobuf field string term_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setTermId($var) + { + GPBUtil::checkString($var, True); + $this->term_id = $var; + + return $this; + } + + /** + * Required. The GlossaryTerm to create. + * + * Generated from protobuf field .google.cloud.dataplex.v1.GlossaryTerm term = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\GlossaryTerm|null + */ + public function getTerm() + { + return $this->term; + } + + public function hasTerm() + { + return isset($this->term); + } + + public function clearTerm() + { + unset($this->term); + } + + /** + * Required. The GlossaryTerm to create. + * + * Generated from protobuf field .google.cloud.dataplex.v1.GlossaryTerm term = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\GlossaryTerm $var + * @return $this + */ + public function setTerm($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\GlossaryTerm::class); + $this->term = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateLakeRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateLakeRequest.php new file mode 100644 index 000000000000..cd67d67b5ade --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateLakeRequest.php @@ -0,0 +1,246 @@ +google.cloud.dataplex.v1.CreateLakeRequest + */ +class CreateLakeRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the lake location, of the form: + * projects/{project_number}/locations/{location_id} + * where `location_id` refers to a Google Cloud region. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. Lake identifier. + * This ID will be used to generate names such as database and dataset names + * when publishing metadata to Hive Metastore and BigQuery. + * * Must contain only lowercase letters, numbers and hyphens. + * * Must start with a letter. + * * Must end with a number or a letter. + * * Must be between 1-63 characters. + * * Must be unique within the customer project / location. + * + * Generated from protobuf field string lake_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $lake_id = ''; + /** + * Required. Lake resource + * + * Generated from protobuf field .google.cloud.dataplex.v1.Lake lake = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $lake = null; + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $validate_only = false; + + /** + * @param string $parent Required. The resource name of the lake location, of the form: + * projects/{project_number}/locations/{location_id} + * where `location_id` refers to a Google Cloud region. Please see + * {@see DataplexServiceClient::locationName()} for help formatting this field. + * @param \Google\Cloud\Dataplex\V1\Lake $lake Required. Lake resource + * @param string $lakeId Required. Lake identifier. + * This ID will be used to generate names such as database and dataset names + * when publishing metadata to Hive Metastore and BigQuery. + * * Must contain only lowercase letters, numbers and hyphens. + * * Must start with a letter. + * * Must end with a number or a letter. + * * Must be between 1-63 characters. + * * Must be unique within the customer project / location. + * + * @return \Google\Cloud\Dataplex\V1\CreateLakeRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Dataplex\V1\Lake $lake, string $lakeId): self + { + return (new self()) + ->setParent($parent) + ->setLake($lake) + ->setLakeId($lakeId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the lake location, of the form: + * projects/{project_number}/locations/{location_id} + * where `location_id` refers to a Google Cloud region. + * @type string $lake_id + * Required. Lake identifier. + * This ID will be used to generate names such as database and dataset names + * when publishing metadata to Hive Metastore and BigQuery. + * * Must contain only lowercase letters, numbers and hyphens. + * * Must start with a letter. + * * Must end with a number or a letter. + * * Must be between 1-63 characters. + * * Must be unique within the customer project / location. + * @type \Google\Cloud\Dataplex\V1\Lake $lake + * Required. Lake resource + * @type bool $validate_only + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the lake location, of the form: + * projects/{project_number}/locations/{location_id} + * where `location_id` refers to a Google Cloud region. + * + * 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 resource name of the lake location, of the form: + * projects/{project_number}/locations/{location_id} + * where `location_id` refers to a Google Cloud region. + * + * 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. Lake identifier. + * This ID will be used to generate names such as database and dataset names + * when publishing metadata to Hive Metastore and BigQuery. + * * Must contain only lowercase letters, numbers and hyphens. + * * Must start with a letter. + * * Must end with a number or a letter. + * * Must be between 1-63 characters. + * * Must be unique within the customer project / location. + * + * Generated from protobuf field string lake_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getLakeId() + { + return $this->lake_id; + } + + /** + * Required. Lake identifier. + * This ID will be used to generate names such as database and dataset names + * when publishing metadata to Hive Metastore and BigQuery. + * * Must contain only lowercase letters, numbers and hyphens. + * * Must start with a letter. + * * Must end with a number or a letter. + * * Must be between 1-63 characters. + * * Must be unique within the customer project / location. + * + * Generated from protobuf field string lake_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setLakeId($var) + { + GPBUtil::checkString($var, True); + $this->lake_id = $var; + + return $this; + } + + /** + * Required. Lake resource + * + * Generated from protobuf field .google.cloud.dataplex.v1.Lake lake = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\Lake|null + */ + public function getLake() + { + return $this->lake; + } + + public function hasLake() + { + return isset($this->lake); + } + + public function clearLake() + { + unset($this->lake); + } + + /** + * Required. Lake resource + * + * Generated from protobuf field .google.cloud.dataplex.v1.Lake lake = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\Lake $var + * @return $this + */ + public function setLake($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Lake::class); + $this->lake = $var; + + return $this; + } + + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateMetadataFeedRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateMetadataFeedRequest.php new file mode 100644 index 000000000000..72f250f7844b --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateMetadataFeedRequest.php @@ -0,0 +1,211 @@ +google.cloud.dataplex.v1.CreateMetadataFeedRequest + */ +class CreateMetadataFeedRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the parent location, in the format + * `projects/{project_id_or_number}/locations/{location_id}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The metadata job resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.MetadataFeed metadata_feed = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $metadata_feed = null; + /** + * Optional. The metadata job ID. If not provided, a unique ID is generated + * with the prefix `metadata-job-`. + * + * Generated from protobuf field string metadata_feed_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $metadata_feed_id = ''; + /** + * Optional. The service validates the request without performing any + * mutations. The default is false. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $validate_only = false; + + /** + * @param string $parent Required. The resource name of the parent location, in the format + * `projects/{project_id_or_number}/locations/{location_id}` + * Please see {@see CatalogServiceClient::locationName()} for help formatting this field. + * @param \Google\Cloud\Dataplex\V1\MetadataFeed $metadataFeed Required. The metadata job resource. + * @param string $metadataFeedId Optional. The metadata job ID. If not provided, a unique ID is generated + * with the prefix `metadata-job-`. + * + * @return \Google\Cloud\Dataplex\V1\CreateMetadataFeedRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Dataplex\V1\MetadataFeed $metadataFeed, string $metadataFeedId): self + { + return (new self()) + ->setParent($parent) + ->setMetadataFeed($metadataFeed) + ->setMetadataFeedId($metadataFeedId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the parent location, in the format + * `projects/{project_id_or_number}/locations/{location_id}` + * @type \Google\Cloud\Dataplex\V1\MetadataFeed $metadata_feed + * Required. The metadata job resource. + * @type string $metadata_feed_id + * Optional. The metadata job ID. If not provided, a unique ID is generated + * with the prefix `metadata-job-`. + * @type bool $validate_only + * Optional. The service validates the request without performing any + * mutations. The default is false. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the parent location, in the format + * `projects/{project_id_or_number}/locations/{location_id}` + * + * 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 resource name of the parent location, in the format + * `projects/{project_id_or_number}/locations/{location_id}` + * + * 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 metadata job resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.MetadataFeed metadata_feed = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\MetadataFeed|null + */ + public function getMetadataFeed() + { + return $this->metadata_feed; + } + + public function hasMetadataFeed() + { + return isset($this->metadata_feed); + } + + public function clearMetadataFeed() + { + unset($this->metadata_feed); + } + + /** + * Required. The metadata job resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.MetadataFeed metadata_feed = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\MetadataFeed $var + * @return $this + */ + public function setMetadataFeed($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\MetadataFeed::class); + $this->metadata_feed = $var; + + return $this; + } + + /** + * Optional. The metadata job ID. If not provided, a unique ID is generated + * with the prefix `metadata-job-`. + * + * Generated from protobuf field string metadata_feed_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getMetadataFeedId() + { + return $this->metadata_feed_id; + } + + /** + * Optional. The metadata job ID. If not provided, a unique ID is generated + * with the prefix `metadata-job-`. + * + * Generated from protobuf field string metadata_feed_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setMetadataFeedId($var) + { + GPBUtil::checkString($var, True); + $this->metadata_feed_id = $var; + + return $this; + } + + /** + * Optional. The service validates the request without performing any + * mutations. The default is false. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * Optional. The service validates the request without performing any + * mutations. The default is false. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateMetadataJobRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateMetadataJobRequest.php new file mode 100644 index 000000000000..2c5106757369 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateMetadataJobRequest.php @@ -0,0 +1,211 @@ +google.cloud.dataplex.v1.CreateMetadataJobRequest + */ +class CreateMetadataJobRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the parent location, in the format + * `projects/{project_id_or_number}/locations/{location_id}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The metadata job resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob metadata_job = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $metadata_job = null; + /** + * Optional. The metadata job ID. If not provided, a unique ID is generated + * with the prefix `metadata-job-`. + * + * Generated from protobuf field string metadata_job_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $metadata_job_id = ''; + /** + * Optional. The service validates the request without performing any + * mutations. The default is false. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $validate_only = false; + + /** + * @param string $parent Required. The resource name of the parent location, in the format + * `projects/{project_id_or_number}/locations/{location_id}` + * Please see {@see CatalogServiceClient::locationName()} for help formatting this field. + * @param \Google\Cloud\Dataplex\V1\MetadataJob $metadataJob Required. The metadata job resource. + * @param string $metadataJobId Optional. The metadata job ID. If not provided, a unique ID is generated + * with the prefix `metadata-job-`. + * + * @return \Google\Cloud\Dataplex\V1\CreateMetadataJobRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Dataplex\V1\MetadataJob $metadataJob, string $metadataJobId): self + { + return (new self()) + ->setParent($parent) + ->setMetadataJob($metadataJob) + ->setMetadataJobId($metadataJobId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the parent location, in the format + * `projects/{project_id_or_number}/locations/{location_id}` + * @type \Google\Cloud\Dataplex\V1\MetadataJob $metadata_job + * Required. The metadata job resource. + * @type string $metadata_job_id + * Optional. The metadata job ID. If not provided, a unique ID is generated + * with the prefix `metadata-job-`. + * @type bool $validate_only + * Optional. The service validates the request without performing any + * mutations. The default is false. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the parent location, in the format + * `projects/{project_id_or_number}/locations/{location_id}` + * + * 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 resource name of the parent location, in the format + * `projects/{project_id_or_number}/locations/{location_id}` + * + * 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 metadata job resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob metadata_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\MetadataJob|null + */ + public function getMetadataJob() + { + return $this->metadata_job; + } + + public function hasMetadataJob() + { + return isset($this->metadata_job); + } + + public function clearMetadataJob() + { + unset($this->metadata_job); + } + + /** + * Required. The metadata job resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob metadata_job = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\MetadataJob $var + * @return $this + */ + public function setMetadataJob($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\MetadataJob::class); + $this->metadata_job = $var; + + return $this; + } + + /** + * Optional. The metadata job ID. If not provided, a unique ID is generated + * with the prefix `metadata-job-`. + * + * Generated from protobuf field string metadata_job_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getMetadataJobId() + { + return $this->metadata_job_id; + } + + /** + * Optional. The metadata job ID. If not provided, a unique ID is generated + * with the prefix `metadata-job-`. + * + * Generated from protobuf field string metadata_job_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setMetadataJobId($var) + { + GPBUtil::checkString($var, True); + $this->metadata_job_id = $var; + + return $this; + } + + /** + * Optional. The service validates the request without performing any + * mutations. The default is false. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * Optional. The service validates the request without performing any + * mutations. The default is false. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreatePartitionRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreatePartitionRequest.php new file mode 100644 index 000000000000..52e4184fe5c3 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreatePartitionRequest.php @@ -0,0 +1,170 @@ +google.cloud.dataplex.v1.CreatePartitionRequest + */ +class CreatePartitionRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the parent zone: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. Partition resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Partition partition = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $partition = null; + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $validate_only = false; + + /** + * @param string $parent Required. The resource name of the parent zone: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`. Please see + * {@see MetadataServiceClient::entityName()} for help formatting this field. + * @param \Google\Cloud\Dataplex\V1\Partition $partition Required. Partition resource. + * + * @return \Google\Cloud\Dataplex\V1\CreatePartitionRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Dataplex\V1\Partition $partition): self + { + return (new self()) + ->setParent($parent) + ->setPartition($partition); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the parent zone: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`. + * @type \Google\Cloud\Dataplex\V1\Partition $partition + * Required. Partition resource. + * @type bool $validate_only + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Metadata::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the parent zone: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`. + * + * 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 resource name of the parent zone: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`. + * + * 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. Partition resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Partition partition = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\Partition|null + */ + public function getPartition() + { + return $this->partition; + } + + public function hasPartition() + { + return isset($this->partition); + } + + public function clearPartition() + { + unset($this->partition); + } + + /** + * Required. Partition resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Partition partition = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\Partition $var + * @return $this + */ + public function setPartition($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Partition::class); + $this->partition = $var; + + return $this; + } + + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateTaskRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateTaskRequest.php new file mode 100644 index 000000000000..4491d15c6b7f --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateTaskRequest.php @@ -0,0 +1,206 @@ +google.cloud.dataplex.v1.CreateTaskRequest + */ +class CreateTaskRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the parent lake: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. Task identifier. + * + * Generated from protobuf field string task_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $task_id = ''; + /** + * Required. Task resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Task task = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $task = null; + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $validate_only = false; + + /** + * @param string $parent Required. The resource name of the parent lake: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. Please see + * {@see DataplexServiceClient::lakeName()} for help formatting this field. + * @param \Google\Cloud\Dataplex\V1\Task $task Required. Task resource. + * @param string $taskId Required. Task identifier. + * + * @return \Google\Cloud\Dataplex\V1\CreateTaskRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Dataplex\V1\Task $task, string $taskId): self + { + return (new self()) + ->setParent($parent) + ->setTask($task) + ->setTaskId($taskId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the parent lake: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. + * @type string $task_id + * Required. Task identifier. + * @type \Google\Cloud\Dataplex\V1\Task $task + * Required. Task resource. + * @type bool $validate_only + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the parent lake: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. + * + * 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 resource name of the parent lake: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. + * + * 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. Task identifier. + * + * Generated from protobuf field string task_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getTaskId() + { + return $this->task_id; + } + + /** + * Required. Task identifier. + * + * Generated from protobuf field string task_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setTaskId($var) + { + GPBUtil::checkString($var, True); + $this->task_id = $var; + + return $this; + } + + /** + * Required. Task resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Task task = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\Task|null + */ + public function getTask() + { + return $this->task; + } + + public function hasTask() + { + return isset($this->task); + } + + public function clearTask() + { + unset($this->task); + } + + /** + * Required. Task resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Task task = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\Task $var + * @return $this + */ + public function setTask($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Task::class); + $this->task = $var; + + return $this; + } + + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateZoneRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateZoneRequest.php new file mode 100644 index 000000000000..68e7f544d0ee --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateZoneRequest.php @@ -0,0 +1,246 @@ +google.cloud.dataplex.v1.CreateZoneRequest + */ +class CreateZoneRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the parent lake: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. Zone identifier. + * This ID will be used to generate names such as database and dataset names + * when publishing metadata to Hive Metastore and BigQuery. + * * Must contain only lowercase letters, numbers and hyphens. + * * Must start with a letter. + * * Must end with a number or a letter. + * * Must be between 1-63 characters. + * * Must be unique across all lakes from all locations in a project. + * * Must not be one of the reserved IDs (i.e. "default", "global-temp") + * + * Generated from protobuf field string zone_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $zone_id = ''; + /** + * Required. Zone resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Zone zone = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $zone = null; + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $validate_only = false; + + /** + * @param string $parent Required. The resource name of the parent lake: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. Please see + * {@see DataplexServiceClient::lakeName()} for help formatting this field. + * @param \Google\Cloud\Dataplex\V1\Zone $zone Required. Zone resource. + * @param string $zoneId Required. Zone identifier. + * This ID will be used to generate names such as database and dataset names + * when publishing metadata to Hive Metastore and BigQuery. + * * Must contain only lowercase letters, numbers and hyphens. + * * Must start with a letter. + * * Must end with a number or a letter. + * * Must be between 1-63 characters. + * * Must be unique across all lakes from all locations in a project. + * * Must not be one of the reserved IDs (i.e. "default", "global-temp") + * + * @return \Google\Cloud\Dataplex\V1\CreateZoneRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Dataplex\V1\Zone $zone, string $zoneId): self + { + return (new self()) + ->setParent($parent) + ->setZone($zone) + ->setZoneId($zoneId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the parent lake: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. + * @type string $zone_id + * Required. Zone identifier. + * This ID will be used to generate names such as database and dataset names + * when publishing metadata to Hive Metastore and BigQuery. + * * Must contain only lowercase letters, numbers and hyphens. + * * Must start with a letter. + * * Must end with a number or a letter. + * * Must be between 1-63 characters. + * * Must be unique across all lakes from all locations in a project. + * * Must not be one of the reserved IDs (i.e. "default", "global-temp") + * @type \Google\Cloud\Dataplex\V1\Zone $zone + * Required. Zone resource. + * @type bool $validate_only + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the parent lake: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. + * + * 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 resource name of the parent lake: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. + * + * 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. Zone identifier. + * This ID will be used to generate names such as database and dataset names + * when publishing metadata to Hive Metastore and BigQuery. + * * Must contain only lowercase letters, numbers and hyphens. + * * Must start with a letter. + * * Must end with a number or a letter. + * * Must be between 1-63 characters. + * * Must be unique across all lakes from all locations in a project. + * * Must not be one of the reserved IDs (i.e. "default", "global-temp") + * + * Generated from protobuf field string zone_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getZoneId() + { + return $this->zone_id; + } + + /** + * Required. Zone identifier. + * This ID will be used to generate names such as database and dataset names + * when publishing metadata to Hive Metastore and BigQuery. + * * Must contain only lowercase letters, numbers and hyphens. + * * Must start with a letter. + * * Must end with a number or a letter. + * * Must be between 1-63 characters. + * * Must be unique across all lakes from all locations in a project. + * * Must not be one of the reserved IDs (i.e. "default", "global-temp") + * + * Generated from protobuf field string zone_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setZoneId($var) + { + GPBUtil::checkString($var, True); + $this->zone_id = $var; + + return $this; + } + + /** + * Required. Zone resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Zone zone = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\Zone|null + */ + public function getZone() + { + return $this->zone; + } + + public function hasZone() + { + return isset($this->zone); + } + + public function clearZone() + { + unset($this->zone); + } + + /** + * Required. Zone resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Zone zone = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\Zone $var + * @return $this + */ + public function setZone($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Zone::class); + $this->zone = $var; + + return $this; + } + + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * + * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataAccessSpec.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataAccessSpec.php new file mode 100644 index 000000000000..cf0c13e9e60a --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataAccessSpec.php @@ -0,0 +1,83 @@ +google.cloud.dataplex.v1.DataAccessSpec + */ +class DataAccessSpec extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The format of strings follows the pattern followed by IAM in the + * bindings. user:{email}, serviceAccount:{email} group:{email}. + * The set of principals to be granted reader role on data + * stored within resources. + * + * Generated from protobuf field repeated string readers = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $readers; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string[] $readers + * Optional. The format of strings follows the pattern followed by IAM in the + * bindings. user:{email}, serviceAccount:{email} group:{email}. + * The set of principals to be granted reader role on data + * stored within resources. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Security::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The format of strings follows the pattern followed by IAM in the + * bindings. user:{email}, serviceAccount:{email} group:{email}. + * The set of principals to be granted reader role on data + * stored within resources. + * + * Generated from protobuf field repeated string readers = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getReaders() + { + return $this->readers; + } + + /** + * Optional. The format of strings follows the pattern followed by IAM in the + * bindings. user:{email}, serviceAccount:{email} group:{email}. + * The set of principals to be granted reader role on data + * stored within resources. + * + * Generated from protobuf field repeated string readers = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setReaders($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->readers = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataAsset.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataAsset.php new file mode 100644 index 000000000000..eb31fbf21a17 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataAsset.php @@ -0,0 +1,458 @@ +google.cloud.dataplex.v1.DataAsset + */ +class DataAsset extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. Resource name of the data asset. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}/dataAssets/{data_asset_id} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. System generated globally unique ID for the data asset. + * This ID will be different if the data asset is deleted and re-created + * with the same name. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { + */ + protected $uid = ''; + /** + * Output only. The time at which the data asset was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The time at which the data asset was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Optional. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $etag = ''; + /** + * Optional. User-defined labels for the data asset. + * Example: + * ``` + * { + * "environment": "production", + * "billing": "marketing-department" + * } + * ``` + * + * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $labels; + /** + * Required. Immutable. Full resource name of the cloud resource represented + * by the data asset. This must follow + * https://cloud.google.com/iam/docs/full-resource-names. Example: + * `//bigquery.googleapis.com/projects/my_project_123/datasets/dataset_456/tables/table_789` + * Only BigQuery tables and datasets are currently supported. + * Data asset creator must have getIamPolicy and setIamPolicy permissions on + * the resource. Data asset creator must also have resource specific get + * permission, for instance, bigquery.tables.get for BigQuery tables. + * + * Generated from protobuf field string resource = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + */ + protected $resource = ''; + /** + * Optional. Access groups configurations for this data asset. + * The key is `DataProduct.AccessGroup.id` and the value is + * `AccessGroupConfig`. + * Example: + * ``` + * { + * "analyst": { + * "iamRoles": ["roles/bigquery.dataViewer"] + * } + * } + * ``` + * Currently, at most one IAM role is allowed per access group. For providing + * multiple predefined IAM roles, wrap them in a custom IAM role as per + * https://cloud.google.com/iam/docs/creating-custom-roles. + * + * Generated from protobuf field map access_group_configs = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $access_group_configs; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. Resource name of the data asset. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}/dataAssets/{data_asset_id} + * @type string $uid + * Output only. System generated globally unique ID for the data asset. + * This ID will be different if the data asset is deleted and re-created + * with the same name. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time at which the data asset was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time at which the data asset was last updated. + * @type string $etag + * Optional. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Optional. User-defined labels for the data asset. + * Example: + * ``` + * { + * "environment": "production", + * "billing": "marketing-department" + * } + * ``` + * @type string $resource + * Required. Immutable. Full resource name of the cloud resource represented + * by the data asset. This must follow + * https://cloud.google.com/iam/docs/full-resource-names. Example: + * `//bigquery.googleapis.com/projects/my_project_123/datasets/dataset_456/tables/table_789` + * Only BigQuery tables and datasets are currently supported. + * Data asset creator must have getIamPolicy and setIamPolicy permissions on + * the resource. Data asset creator must also have resource specific get + * permission, for instance, bigquery.tables.get for BigQuery tables. + * @type array|\Google\Protobuf\Internal\MapField $access_group_configs + * Optional. Access groups configurations for this data asset. + * The key is `DataProduct.AccessGroup.id` and the value is + * `AccessGroupConfig`. + * Example: + * ``` + * { + * "analyst": { + * "iamRoles": ["roles/bigquery.dataViewer"] + * } + * } + * ``` + * Currently, at most one IAM role is allowed per access group. For providing + * multiple predefined IAM roles, wrap them in a custom IAM role as per + * https://cloud.google.com/iam/docs/creating-custom-roles. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataProducts::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. Resource name of the data asset. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}/dataAssets/{data_asset_id} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. Resource name of the data asset. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}/dataAssets/{data_asset_id} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. System generated globally unique ID for the data asset. + * This ID will be different if the data asset is deleted and re-created + * with the same name. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { + * @return string + */ + public function getUid() + { + return $this->uid; + } + + /** + * Output only. System generated globally unique ID for the data asset. + * This ID will be different if the data asset is deleted and re-created + * with the same name. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setUid($var) + { + GPBUtil::checkString($var, True); + $this->uid = $var; + + return $this; + } + + /** + * Output only. The time at which the data asset was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The time at which the data asset was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. The time at which the data asset was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. The time at which the data asset was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Optional. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Optional. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * Optional. User-defined labels for the data asset. + * Example: + * ``` + * { + * "environment": "production", + * "billing": "marketing-department" + * } + * ``` + * + * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Optional. User-defined labels for the data asset. + * Example: + * ``` + * { + * "environment": "production", + * "billing": "marketing-department" + * } + * ``` + * + * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Required. Immutable. Full resource name of the cloud resource represented + * by the data asset. This must follow + * https://cloud.google.com/iam/docs/full-resource-names. Example: + * `//bigquery.googleapis.com/projects/my_project_123/datasets/dataset_456/tables/table_789` + * Only BigQuery tables and datasets are currently supported. + * Data asset creator must have getIamPolicy and setIamPolicy permissions on + * the resource. Data asset creator must also have resource specific get + * permission, for instance, bigquery.tables.get for BigQuery tables. + * + * Generated from protobuf field string resource = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getResource() + { + return $this->resource; + } + + /** + * Required. Immutable. Full resource name of the cloud resource represented + * by the data asset. This must follow + * https://cloud.google.com/iam/docs/full-resource-names. Example: + * `//bigquery.googleapis.com/projects/my_project_123/datasets/dataset_456/tables/table_789` + * Only BigQuery tables and datasets are currently supported. + * Data asset creator must have getIamPolicy and setIamPolicy permissions on + * the resource. Data asset creator must also have resource specific get + * permission, for instance, bigquery.tables.get for BigQuery tables. + * + * Generated from protobuf field string resource = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setResource($var) + { + GPBUtil::checkString($var, True); + $this->resource = $var; + + return $this; + } + + /** + * Optional. Access groups configurations for this data asset. + * The key is `DataProduct.AccessGroup.id` and the value is + * `AccessGroupConfig`. + * Example: + * ``` + * { + * "analyst": { + * "iamRoles": ["roles/bigquery.dataViewer"] + * } + * } + * ``` + * Currently, at most one IAM role is allowed per access group. For providing + * multiple predefined IAM roles, wrap them in a custom IAM role as per + * https://cloud.google.com/iam/docs/creating-custom-roles. + * + * Generated from protobuf field map access_group_configs = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getAccessGroupConfigs() + { + return $this->access_group_configs; + } + + /** + * Optional. Access groups configurations for this data asset. + * The key is `DataProduct.AccessGroup.id` and the value is + * `AccessGroupConfig`. + * Example: + * ``` + * { + * "analyst": { + * "iamRoles": ["roles/bigquery.dataViewer"] + * } + * } + * ``` + * Currently, at most one IAM role is allowed per access group. For providing + * multiple predefined IAM roles, wrap them in a custom IAM role as per + * https://cloud.google.com/iam/docs/creating-custom-roles. + * + * Generated from protobuf field map access_group_configs = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setAccessGroupConfigs($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\DataAsset\AccessGroupConfig::class); + $this->access_group_configs = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataAsset/AccessGroupConfig.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataAsset/AccessGroupConfig.php new file mode 100644 index 000000000000..86a1e8aa88fb --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataAsset/AccessGroupConfig.php @@ -0,0 +1,75 @@ +google.cloud.dataplex.v1.DataAsset.AccessGroupConfig + */ +class AccessGroupConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. IAM roles granted on the resource to this access group. Role + * name follows https://cloud.google.com/iam/docs/reference/rest/v1/roles. + * Example: `[ "roles/bigquery.dataViewer" ]` + * + * Generated from protobuf field repeated string iam_roles = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $iam_roles; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string[] $iam_roles + * Optional. IAM roles granted on the resource to this access group. Role + * name follows https://cloud.google.com/iam/docs/reference/rest/v1/roles. + * Example: `[ "roles/bigquery.dataViewer" ]` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataProducts::initOnce(); + parent::__construct($data); + } + + /** + * Optional. IAM roles granted on the resource to this access group. Role + * name follows https://cloud.google.com/iam/docs/reference/rest/v1/roles. + * Example: `[ "roles/bigquery.dataViewer" ]` + * + * Generated from protobuf field repeated string iam_roles = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getIamRoles() + { + return $this->iam_roles; + } + + /** + * Optional. IAM roles granted on the resource to this access group. Role + * name follows https://cloud.google.com/iam/docs/reference/rest/v1/roles. + * Example: `[ "roles/bigquery.dataViewer" ]` + * + * Generated from protobuf field repeated string iam_roles = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setIamRoles($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->iam_roles = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataAttribute.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataAttribute.php new file mode 100644 index 000000000000..2fc088a3cc80 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataAttribute.php @@ -0,0 +1,531 @@ +google.cloud.dataplex.v1.DataAttribute + */ +class DataAttribute extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The relative resource name of the dataAttribute, of the form: + * projects/{project_number}/locations/{location_id}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Output only. System generated globally unique ID for the DataAttribute. + * This ID will be different if the DataAttribute is deleted and re-created + * with the same name. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $uid = ''; + /** + * Output only. The time when the DataAttribute was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The time when the DataAttribute was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Optional. Description of the DataAttribute. + * + * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Optional. User friendly display name. + * + * Generated from protobuf field string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $display_name = ''; + /** + * Optional. User-defined labels for the DataAttribute. + * + * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $labels; + /** + * Optional. The ID of the parent DataAttribute resource, should belong to the + * same data taxonomy. Circular dependency in parent chain is not valid. + * Maximum depth of the hierarchy allowed is 4. + * [a -> b -> c -> d -> e, depth = 4] + * + * Generated from protobuf field string parent_id = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $parent_id = ''; + /** + * Output only. The number of child attributes present for this attribute. + * + * Generated from protobuf field int32 attribute_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $attribute_count = 0; + /** + * This checksum is computed by the server based on the value of other + * fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 10; + */ + protected $etag = ''; + /** + * Optional. Specified when applied to a resource (eg: Cloud Storage bucket, + * BigQuery dataset, BigQuery table). + * + * Generated from protobuf field .google.cloud.dataplex.v1.ResourceAccessSpec resource_access_spec = 100 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $resource_access_spec = null; + /** + * Optional. Specified when applied to data stored on the resource (eg: rows, + * columns in BigQuery Tables). + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataAccessSpec data_access_spec = 101 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $data_access_spec = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. The relative resource name of the dataAttribute, of the form: + * projects/{project_number}/locations/{location_id}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id}. + * @type string $uid + * Output only. System generated globally unique ID for the DataAttribute. + * This ID will be different if the DataAttribute is deleted and re-created + * with the same name. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time when the DataAttribute was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time when the DataAttribute was last updated. + * @type string $description + * Optional. Description of the DataAttribute. + * @type string $display_name + * Optional. User friendly display name. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Optional. User-defined labels for the DataAttribute. + * @type string $parent_id + * Optional. The ID of the parent DataAttribute resource, should belong to the + * same data taxonomy. Circular dependency in parent chain is not valid. + * Maximum depth of the hierarchy allowed is 4. + * [a -> b -> c -> d -> e, depth = 4] + * @type int $attribute_count + * Output only. The number of child attributes present for this attribute. + * @type string $etag + * This checksum is computed by the server based on the value of other + * fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * @type \Google\Cloud\Dataplex\V1\ResourceAccessSpec $resource_access_spec + * Optional. Specified when applied to a resource (eg: Cloud Storage bucket, + * BigQuery dataset, BigQuery table). + * @type \Google\Cloud\Dataplex\V1\DataAccessSpec $data_access_spec + * Optional. Specified when applied to data stored on the resource (eg: rows, + * columns in BigQuery Tables). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataTaxonomy::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The relative resource name of the dataAttribute, of the form: + * projects/{project_number}/locations/{location_id}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. The relative resource name of the dataAttribute, of the form: + * projects/{project_number}/locations/{location_id}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. System generated globally unique ID for the DataAttribute. + * This ID will be different if the DataAttribute is deleted and re-created + * with the same name. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getUid() + { + return $this->uid; + } + + /** + * Output only. System generated globally unique ID for the DataAttribute. + * This ID will be different if the DataAttribute is deleted and re-created + * with the same name. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setUid($var) + { + GPBUtil::checkString($var, True); + $this->uid = $var; + + return $this; + } + + /** + * Output only. The time when the DataAttribute was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The time when the DataAttribute was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. The time when the DataAttribute was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. The time when the DataAttribute was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Optional. Description of the DataAttribute. + * + * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. Description of the DataAttribute. + * + * 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; + } + + /** + * Optional. User friendly display name. + * + * Generated from protobuf field string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Optional. User friendly display name. + * + * Generated from protobuf field string display_name = 6 [(.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. User-defined labels for the DataAttribute. + * + * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Optional. User-defined labels for the DataAttribute. + * + * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Optional. The ID of the parent DataAttribute resource, should belong to the + * same data taxonomy. Circular dependency in parent chain is not valid. + * Maximum depth of the hierarchy allowed is 4. + * [a -> b -> c -> d -> e, depth = 4] + * + * Generated from protobuf field string parent_id = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getParentId() + { + return $this->parent_id; + } + + /** + * Optional. The ID of the parent DataAttribute resource, should belong to the + * same data taxonomy. Circular dependency in parent chain is not valid. + * Maximum depth of the hierarchy allowed is 4. + * [a -> b -> c -> d -> e, depth = 4] + * + * Generated from protobuf field string parent_id = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParentId($var) + { + GPBUtil::checkString($var, True); + $this->parent_id = $var; + + return $this; + } + + /** + * Output only. The number of child attributes present for this attribute. + * + * Generated from protobuf field int32 attribute_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getAttributeCount() + { + return $this->attribute_count; + } + + /** + * Output only. The number of child attributes present for this attribute. + * + * Generated from protobuf field int32 attribute_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setAttributeCount($var) + { + GPBUtil::checkInt32($var); + $this->attribute_count = $var; + + return $this; + } + + /** + * This checksum is computed by the server based on the value of other + * fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 10; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * This checksum is computed by the server based on the value of other + * fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 10; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * Optional. Specified when applied to a resource (eg: Cloud Storage bucket, + * BigQuery dataset, BigQuery table). + * + * Generated from protobuf field .google.cloud.dataplex.v1.ResourceAccessSpec resource_access_spec = 100 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataplex\V1\ResourceAccessSpec|null + */ + public function getResourceAccessSpec() + { + return $this->resource_access_spec; + } + + public function hasResourceAccessSpec() + { + return isset($this->resource_access_spec); + } + + public function clearResourceAccessSpec() + { + unset($this->resource_access_spec); + } + + /** + * Optional. Specified when applied to a resource (eg: Cloud Storage bucket, + * BigQuery dataset, BigQuery table). + * + * Generated from protobuf field .google.cloud.dataplex.v1.ResourceAccessSpec resource_access_spec = 100 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataplex\V1\ResourceAccessSpec $var + * @return $this + */ + public function setResourceAccessSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\ResourceAccessSpec::class); + $this->resource_access_spec = $var; + + return $this; + } + + /** + * Optional. Specified when applied to data stored on the resource (eg: rows, + * columns in BigQuery Tables). + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataAccessSpec data_access_spec = 101 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataplex\V1\DataAccessSpec|null + */ + public function getDataAccessSpec() + { + return $this->data_access_spec; + } + + public function hasDataAccessSpec() + { + return isset($this->data_access_spec); + } + + public function clearDataAccessSpec() + { + unset($this->data_access_spec); + } + + /** + * Optional. Specified when applied to data stored on the resource (eg: rows, + * columns in BigQuery Tables). + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataAccessSpec data_access_spec = 101 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataplex\V1\DataAccessSpec $var + * @return $this + */ + public function setDataAccessSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataAccessSpec::class); + $this->data_access_spec = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataAttributeBinding.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataAttributeBinding.php new file mode 100644 index 000000000000..7c892b7c6e91 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataAttributeBinding.php @@ -0,0 +1,493 @@ +google.cloud.dataplex.v1.DataAttributeBinding + */ +class DataAttributeBinding extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The relative resource name of the Data Attribute Binding, of + * the form: + * projects/{project_number}/locations/{location}/dataAttributeBindings/{data_attribute_binding_id} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Output only. System generated globally unique ID for the + * DataAttributeBinding. This ID will be different if the DataAttributeBinding + * is deleted and re-created with the same name. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $uid = ''; + /** + * Output only. The time when the DataAttributeBinding was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The time when the DataAttributeBinding was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Optional. Description of the DataAttributeBinding. + * + * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Optional. User friendly display name. + * + * Generated from protobuf field string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $display_name = ''; + /** + * Optional. User-defined labels for the DataAttributeBinding. + * + * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $labels; + /** + * This checksum is computed by the server based on the value of other + * fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * Etags must be used when calling the DeleteDataAttributeBinding and the + * UpdateDataAttributeBinding method. + * + * Generated from protobuf field string etag = 8; + */ + protected $etag = ''; + /** + * Optional. List of attributes to be associated with the resource, provided + * in the form: + * projects/{project}/locations/{location}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id} + * + * Generated from protobuf field repeated string attributes = 110 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $attributes; + /** + * Optional. The list of paths for items within the associated resource (eg. + * columns and partitions within a table) along with attribute bindings. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataAttributeBinding.Path paths = 120 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $paths; + protected $resource_reference; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. The relative resource name of the Data Attribute Binding, of + * the form: + * projects/{project_number}/locations/{location}/dataAttributeBindings/{data_attribute_binding_id} + * @type string $uid + * Output only. System generated globally unique ID for the + * DataAttributeBinding. This ID will be different if the DataAttributeBinding + * is deleted and re-created with the same name. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time when the DataAttributeBinding was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time when the DataAttributeBinding was last updated. + * @type string $description + * Optional. Description of the DataAttributeBinding. + * @type string $display_name + * Optional. User friendly display name. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Optional. User-defined labels for the DataAttributeBinding. + * @type string $etag + * This checksum is computed by the server based on the value of other + * fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * Etags must be used when calling the DeleteDataAttributeBinding and the + * UpdateDataAttributeBinding method. + * @type string $resource + * Optional. Immutable. The resource name of the resource that is associated + * to attributes. Presently, only entity resource is supported in the form: + * projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/entities/{entity_id} + * Must belong in the same project and region as the attribute binding, and + * there can only exist one active binding for a resource. + * @type string[] $attributes + * Optional. List of attributes to be associated with the resource, provided + * in the form: + * projects/{project}/locations/{location}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id} + * @type \Google\Cloud\Dataplex\V1\DataAttributeBinding\Path[] $paths + * Optional. The list of paths for items within the associated resource (eg. + * columns and partitions within a table) along with attribute bindings. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataTaxonomy::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The relative resource name of the Data Attribute Binding, of + * the form: + * projects/{project_number}/locations/{location}/dataAttributeBindings/{data_attribute_binding_id} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. The relative resource name of the Data Attribute Binding, of + * the form: + * projects/{project_number}/locations/{location}/dataAttributeBindings/{data_attribute_binding_id} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. System generated globally unique ID for the + * DataAttributeBinding. This ID will be different if the DataAttributeBinding + * is deleted and re-created with the same name. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getUid() + { + return $this->uid; + } + + /** + * Output only. System generated globally unique ID for the + * DataAttributeBinding. This ID will be different if the DataAttributeBinding + * is deleted and re-created with the same name. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setUid($var) + { + GPBUtil::checkString($var, True); + $this->uid = $var; + + return $this; + } + + /** + * Output only. The time when the DataAttributeBinding was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The time when the DataAttributeBinding was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. The time when the DataAttributeBinding was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. The time when the DataAttributeBinding was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Optional. Description of the DataAttributeBinding. + * + * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. Description of the DataAttributeBinding. + * + * 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; + } + + /** + * Optional. User friendly display name. + * + * Generated from protobuf field string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Optional. User friendly display name. + * + * Generated from protobuf field string display_name = 6 [(.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. User-defined labels for the DataAttributeBinding. + * + * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Optional. User-defined labels for the DataAttributeBinding. + * + * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * This checksum is computed by the server based on the value of other + * fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * Etags must be used when calling the DeleteDataAttributeBinding and the + * UpdateDataAttributeBinding method. + * + * Generated from protobuf field string etag = 8; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * This checksum is computed by the server based on the value of other + * fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * Etags must be used when calling the DeleteDataAttributeBinding and the + * UpdateDataAttributeBinding method. + * + * Generated from protobuf field string etag = 8; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * Optional. Immutable. The resource name of the resource that is associated + * to attributes. Presently, only entity resource is supported in the form: + * projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/entities/{entity_id} + * Must belong in the same project and region as the attribute binding, and + * there can only exist one active binding for a resource. + * + * Generated from protobuf field string resource = 100 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getResource() + { + return $this->readOneof(100); + } + + public function hasResource() + { + return $this->hasOneof(100); + } + + /** + * Optional. Immutable. The resource name of the resource that is associated + * to attributes. Presently, only entity resource is supported in the form: + * projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/entities/{entity_id} + * Must belong in the same project and region as the attribute binding, and + * there can only exist one active binding for a resource. + * + * Generated from protobuf field string resource = 100 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setResource($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(100, $var); + + return $this; + } + + /** + * Optional. List of attributes to be associated with the resource, provided + * in the form: + * projects/{project}/locations/{location}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id} + * + * Generated from protobuf field repeated string attributes = 110 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return RepeatedField + */ + public function getAttributes() + { + return $this->attributes; + } + + /** + * Optional. List of attributes to be associated with the resource, provided + * in the form: + * projects/{project}/locations/{location}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id} + * + * Generated from protobuf field repeated string attributes = 110 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string[] $var + * @return $this + */ + public function setAttributes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->attributes = $arr; + + return $this; + } + + /** + * Optional. The list of paths for items within the associated resource (eg. + * columns and partitions within a table) along with attribute bindings. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataAttributeBinding.Path paths = 120 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\Dataplex\V1\DataAttributeBinding\Path> + */ + public function getPaths() + { + return $this->paths; + } + + /** + * Optional. The list of paths for items within the associated resource (eg. + * columns and partitions within a table) along with attribute bindings. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataAttributeBinding.Path paths = 120 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataplex\V1\DataAttributeBinding\Path[] $var + * @return $this + */ + public function setPaths($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\DataAttributeBinding\Path::class); + $this->paths = $arr; + + return $this; + } + + /** + * @return string + */ + public function getResourceReference() + { + return $this->whichOneof("resource_reference"); + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataAttributeBinding/Path.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataAttributeBinding/Path.php new file mode 100644 index 000000000000..b43a56e6205c --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataAttributeBinding/Path.php @@ -0,0 +1,115 @@ +google.cloud.dataplex.v1.DataAttributeBinding.Path + */ +class Path extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name identifier of the path. + * Nested columns should be of the form: 'address.city'. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $name = ''; + /** + * Optional. List of attributes to be associated with the path of the + * resource, provided in the form: + * projects/{project}/locations/{location}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id} + * + * Generated from protobuf field repeated string attributes = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $attributes; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name identifier of the path. + * Nested columns should be of the form: 'address.city'. + * @type string[] $attributes + * Optional. List of attributes to be associated with the path of the + * resource, provided in the form: + * projects/{project}/locations/{location}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id} + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataTaxonomy::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name identifier of the path. + * Nested columns should be of the form: 'address.city'. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name identifier of the path. + * Nested columns should be of the form: 'address.city'. + * + * 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. List of attributes to be associated with the path of the + * resource, provided in the form: + * projects/{project}/locations/{location}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id} + * + * Generated from protobuf field repeated string attributes = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return RepeatedField + */ + public function getAttributes() + { + return $this->attributes; + } + + /** + * Optional. List of attributes to be associated with the path of the + * resource, provided in the form: + * projects/{project}/locations/{location}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id} + * + * Generated from protobuf field repeated string attributes = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string[] $var + * @return $this + */ + public function setAttributes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->attributes = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoveryResult.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoveryResult.php new file mode 100644 index 000000000000..271a7eb57265 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoveryResult.php @@ -0,0 +1,121 @@ +google.cloud.dataplex.v1.DataDiscoveryResult + */ +class DataDiscoveryResult extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Configuration for metadata publishing. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoveryResult.BigQueryPublishing bigquery_publishing = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $bigquery_publishing = null; + /** + * Output only. Describes result statistics of a data scan discovery job. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoveryResult.ScanStatistics scan_statistics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $scan_statistics = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\DataDiscoveryResult\BigQueryPublishing $bigquery_publishing + * Output only. Configuration for metadata publishing. + * @type \Google\Cloud\Dataplex\V1\DataDiscoveryResult\ScanStatistics $scan_statistics + * Output only. Describes result statistics of a data scan discovery job. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataDiscovery::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Configuration for metadata publishing. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoveryResult.BigQueryPublishing bigquery_publishing = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataplex\V1\DataDiscoveryResult\BigQueryPublishing|null + */ + public function getBigqueryPublishing() + { + return $this->bigquery_publishing; + } + + public function hasBigqueryPublishing() + { + return isset($this->bigquery_publishing); + } + + public function clearBigqueryPublishing() + { + unset($this->bigquery_publishing); + } + + /** + * Output only. Configuration for metadata publishing. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoveryResult.BigQueryPublishing bigquery_publishing = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\DataDiscoveryResult\BigQueryPublishing $var + * @return $this + */ + public function setBigqueryPublishing($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataDiscoveryResult\BigQueryPublishing::class); + $this->bigquery_publishing = $var; + + return $this; + } + + /** + * Output only. Describes result statistics of a data scan discovery job. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoveryResult.ScanStatistics scan_statistics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataplex\V1\DataDiscoveryResult\ScanStatistics|null + */ + public function getScanStatistics() + { + return $this->scan_statistics; + } + + public function hasScanStatistics() + { + return isset($this->scan_statistics); + } + + public function clearScanStatistics() + { + unset($this->scan_statistics); + } + + /** + * Output only. Describes result statistics of a data scan discovery job. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoveryResult.ScanStatistics scan_statistics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\DataDiscoveryResult\ScanStatistics $var + * @return $this + */ + public function setScanStatistics($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataDiscoveryResult\ScanStatistics::class); + $this->scan_statistics = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoveryResult/BigQueryPublishing.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoveryResult/BigQueryPublishing.php new file mode 100644 index 000000000000..96837bd70477 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoveryResult/BigQueryPublishing.php @@ -0,0 +1,101 @@ +google.cloud.dataplex.v1.DataDiscoveryResult.BigQueryPublishing + */ +class BigQueryPublishing extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The BigQuery dataset the discovered tables are published to. + * + * Generated from protobuf field string dataset = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $dataset = ''; + /** + * Output only. The location of the BigQuery publishing dataset. + * + * Generated from protobuf field string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $location = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $dataset + * Output only. The BigQuery dataset the discovered tables are published to. + * @type string $location + * Output only. The location of the BigQuery publishing dataset. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataDiscovery::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The BigQuery dataset the discovered tables are published to. + * + * Generated from protobuf field string dataset = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getDataset() + { + return $this->dataset; + } + + /** + * Output only. The BigQuery dataset the discovered tables are published to. + * + * Generated from protobuf field string dataset = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setDataset($var) + { + GPBUtil::checkString($var, True); + $this->dataset = $var; + + return $this; + } + + /** + * Output only. The location of the BigQuery publishing dataset. + * + * Generated from protobuf field string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getLocation() + { + return $this->location; + } + + /** + * Output only. The location of the BigQuery publishing dataset. + * + * Generated from protobuf field string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkString($var, True); + $this->location = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoveryResult/ScanStatistics.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoveryResult/ScanStatistics.php new file mode 100644 index 000000000000..c303c493d105 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoveryResult/ScanStatistics.php @@ -0,0 +1,339 @@ +google.cloud.dataplex.v1.DataDiscoveryResult.ScanStatistics + */ +class ScanStatistics extends \Google\Protobuf\Internal\Message +{ + /** + * The number of files scanned. + * + * Generated from protobuf field int32 scanned_file_count = 1; + */ + protected $scanned_file_count = 0; + /** + * The data processed in bytes. + * + * Generated from protobuf field int64 data_processed_bytes = 2; + */ + protected $data_processed_bytes = 0; + /** + * The number of files excluded. + * + * Generated from protobuf field int32 files_excluded = 3; + */ + protected $files_excluded = 0; + /** + * The number of tables created. + * + * Generated from protobuf field int32 tables_created = 4; + */ + protected $tables_created = 0; + /** + * The number of tables deleted. + * + * Generated from protobuf field int32 tables_deleted = 5; + */ + protected $tables_deleted = 0; + /** + * The number of tables updated. + * + * Generated from protobuf field int32 tables_updated = 6; + */ + protected $tables_updated = 0; + /** + * The number of filesets created. + * + * Generated from protobuf field int32 filesets_created = 7; + */ + protected $filesets_created = 0; + /** + * The number of filesets deleted. + * + * Generated from protobuf field int32 filesets_deleted = 8; + */ + protected $filesets_deleted = 0; + /** + * The number of filesets updated. + * + * Generated from protobuf field int32 filesets_updated = 9; + */ + protected $filesets_updated = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $scanned_file_count + * The number of files scanned. + * @type int|string $data_processed_bytes + * The data processed in bytes. + * @type int $files_excluded + * The number of files excluded. + * @type int $tables_created + * The number of tables created. + * @type int $tables_deleted + * The number of tables deleted. + * @type int $tables_updated + * The number of tables updated. + * @type int $filesets_created + * The number of filesets created. + * @type int $filesets_deleted + * The number of filesets deleted. + * @type int $filesets_updated + * The number of filesets updated. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataDiscovery::initOnce(); + parent::__construct($data); + } + + /** + * The number of files scanned. + * + * Generated from protobuf field int32 scanned_file_count = 1; + * @return int + */ + public function getScannedFileCount() + { + return $this->scanned_file_count; + } + + /** + * The number of files scanned. + * + * Generated from protobuf field int32 scanned_file_count = 1; + * @param int $var + * @return $this + */ + public function setScannedFileCount($var) + { + GPBUtil::checkInt32($var); + $this->scanned_file_count = $var; + + return $this; + } + + /** + * The data processed in bytes. + * + * Generated from protobuf field int64 data_processed_bytes = 2; + * @return int|string + */ + public function getDataProcessedBytes() + { + return $this->data_processed_bytes; + } + + /** + * The data processed in bytes. + * + * Generated from protobuf field int64 data_processed_bytes = 2; + * @param int|string $var + * @return $this + */ + public function setDataProcessedBytes($var) + { + GPBUtil::checkInt64($var); + $this->data_processed_bytes = $var; + + return $this; + } + + /** + * The number of files excluded. + * + * Generated from protobuf field int32 files_excluded = 3; + * @return int + */ + public function getFilesExcluded() + { + return $this->files_excluded; + } + + /** + * The number of files excluded. + * + * Generated from protobuf field int32 files_excluded = 3; + * @param int $var + * @return $this + */ + public function setFilesExcluded($var) + { + GPBUtil::checkInt32($var); + $this->files_excluded = $var; + + return $this; + } + + /** + * The number of tables created. + * + * Generated from protobuf field int32 tables_created = 4; + * @return int + */ + public function getTablesCreated() + { + return $this->tables_created; + } + + /** + * The number of tables created. + * + * Generated from protobuf field int32 tables_created = 4; + * @param int $var + * @return $this + */ + public function setTablesCreated($var) + { + GPBUtil::checkInt32($var); + $this->tables_created = $var; + + return $this; + } + + /** + * The number of tables deleted. + * + * Generated from protobuf field int32 tables_deleted = 5; + * @return int + */ + public function getTablesDeleted() + { + return $this->tables_deleted; + } + + /** + * The number of tables deleted. + * + * Generated from protobuf field int32 tables_deleted = 5; + * @param int $var + * @return $this + */ + public function setTablesDeleted($var) + { + GPBUtil::checkInt32($var); + $this->tables_deleted = $var; + + return $this; + } + + /** + * The number of tables updated. + * + * Generated from protobuf field int32 tables_updated = 6; + * @return int + */ + public function getTablesUpdated() + { + return $this->tables_updated; + } + + /** + * The number of tables updated. + * + * Generated from protobuf field int32 tables_updated = 6; + * @param int $var + * @return $this + */ + public function setTablesUpdated($var) + { + GPBUtil::checkInt32($var); + $this->tables_updated = $var; + + return $this; + } + + /** + * The number of filesets created. + * + * Generated from protobuf field int32 filesets_created = 7; + * @return int + */ + public function getFilesetsCreated() + { + return $this->filesets_created; + } + + /** + * The number of filesets created. + * + * Generated from protobuf field int32 filesets_created = 7; + * @param int $var + * @return $this + */ + public function setFilesetsCreated($var) + { + GPBUtil::checkInt32($var); + $this->filesets_created = $var; + + return $this; + } + + /** + * The number of filesets deleted. + * + * Generated from protobuf field int32 filesets_deleted = 8; + * @return int + */ + public function getFilesetsDeleted() + { + return $this->filesets_deleted; + } + + /** + * The number of filesets deleted. + * + * Generated from protobuf field int32 filesets_deleted = 8; + * @param int $var + * @return $this + */ + public function setFilesetsDeleted($var) + { + GPBUtil::checkInt32($var); + $this->filesets_deleted = $var; + + return $this; + } + + /** + * The number of filesets updated. + * + * Generated from protobuf field int32 filesets_updated = 9; + * @return int + */ + public function getFilesetsUpdated() + { + return $this->filesets_updated; + } + + /** + * The number of filesets updated. + * + * Generated from protobuf field int32 filesets_updated = 9; + * @param int $var + * @return $this + */ + public function setFilesetsUpdated($var) + { + GPBUtil::checkInt32($var); + $this->filesets_updated = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoverySpec.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoverySpec.php new file mode 100644 index 000000000000..33379a5a34ac --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoverySpec.php @@ -0,0 +1,119 @@ +google.cloud.dataplex.v1.DataDiscoverySpec + */ +class DataDiscoverySpec extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Configuration for metadata publishing. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoverySpec.BigQueryPublishingConfig bigquery_publishing_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $bigquery_publishing_config = null; + protected $resource_config; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\DataDiscoverySpec\BigQueryPublishingConfig $bigquery_publishing_config + * Optional. Configuration for metadata publishing. + * @type \Google\Cloud\Dataplex\V1\DataDiscoverySpec\StorageConfig $storage_config + * Cloud Storage related configurations. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataDiscovery::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Configuration for metadata publishing. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoverySpec.BigQueryPublishingConfig bigquery_publishing_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataplex\V1\DataDiscoverySpec\BigQueryPublishingConfig|null + */ + public function getBigqueryPublishingConfig() + { + return $this->bigquery_publishing_config; + } + + public function hasBigqueryPublishingConfig() + { + return isset($this->bigquery_publishing_config); + } + + public function clearBigqueryPublishingConfig() + { + unset($this->bigquery_publishing_config); + } + + /** + * Optional. Configuration for metadata publishing. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoverySpec.BigQueryPublishingConfig bigquery_publishing_config = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataplex\V1\DataDiscoverySpec\BigQueryPublishingConfig $var + * @return $this + */ + public function setBigqueryPublishingConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataDiscoverySpec\BigQueryPublishingConfig::class); + $this->bigquery_publishing_config = $var; + + return $this; + } + + /** + * Cloud Storage related configurations. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig storage_config = 100; + * @return \Google\Cloud\Dataplex\V1\DataDiscoverySpec\StorageConfig|null + */ + public function getStorageConfig() + { + return $this->readOneof(100); + } + + public function hasStorageConfig() + { + return $this->hasOneof(100); + } + + /** + * Cloud Storage related configurations. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig storage_config = 100; + * @param \Google\Cloud\Dataplex\V1\DataDiscoverySpec\StorageConfig $var + * @return $this + */ + public function setStorageConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataDiscoverySpec\StorageConfig::class); + $this->writeOneof(100, $var); + + return $this; + } + + /** + * @return string + */ + public function getResourceConfig() + { + return $this->whichOneof("resource_config"); + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoverySpec/BigQueryPublishingConfig.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoverySpec/BigQueryPublishingConfig.php new file mode 100644 index 000000000000..b3bc6ba965ea --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoverySpec/BigQueryPublishingConfig.php @@ -0,0 +1,269 @@ +google.cloud.dataplex.v1.DataDiscoverySpec.BigQueryPublishingConfig + */ +class BigQueryPublishingConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Determines whether to publish discovered tables as BigLake + * external tables or non-BigLake external tables. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoverySpec.BigQueryPublishingConfig.TableType table_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $table_type = 0; + /** + * Optional. The BigQuery connection used to create BigLake tables. + * Must be in the form + * `projects/{project_id}/locations/{location_id}/connections/{connection_id}` + * + * Generated from protobuf field string connection = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $connection = ''; + /** + * Optional. The location of the BigQuery dataset to publish BigLake + * external or non-BigLake external tables to. + * 1. If the Cloud Storage bucket is located in a multi-region bucket, then + * BigQuery dataset can be in the same multi-region bucket or any single + * region that is included in the same multi-region bucket. The datascan can + * be created in any single region that is included in the same multi-region + * bucket + * 2. If the Cloud Storage bucket is located in a dual-region bucket, then + * BigQuery dataset can be located in regions that are included in the + * dual-region bucket, or in a multi-region that includes the dual-region. + * The datascan can be created in any single region that is included in the + * same dual-region bucket. + * 3. If the Cloud Storage bucket is located in a single region, then + * BigQuery dataset can be in the same single region or any multi-region + * bucket that includes the same single region. The datascan will be created + * in the same single region as the bucket. + * 4. If the BigQuery dataset is in single region, it must be in the same + * single region as the datascan. + * For supported values, refer to + * https://cloud.google.com/bigquery/docs/locations#supported_locations. + * + * Generated from protobuf field string location = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $location = ''; + /** + * Optional. The project of the BigQuery dataset to publish BigLake external + * or non-BigLake external tables to. If not specified, the project of the + * Cloud Storage bucket will be used. The format is + * "projects/{project_id_or_number}". + * + * Generated from protobuf field string project = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $project = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $table_type + * Optional. Determines whether to publish discovered tables as BigLake + * external tables or non-BigLake external tables. + * @type string $connection + * Optional. The BigQuery connection used to create BigLake tables. + * Must be in the form + * `projects/{project_id}/locations/{location_id}/connections/{connection_id}` + * @type string $location + * Optional. The location of the BigQuery dataset to publish BigLake + * external or non-BigLake external tables to. + * 1. If the Cloud Storage bucket is located in a multi-region bucket, then + * BigQuery dataset can be in the same multi-region bucket or any single + * region that is included in the same multi-region bucket. The datascan can + * be created in any single region that is included in the same multi-region + * bucket + * 2. If the Cloud Storage bucket is located in a dual-region bucket, then + * BigQuery dataset can be located in regions that are included in the + * dual-region bucket, or in a multi-region that includes the dual-region. + * The datascan can be created in any single region that is included in the + * same dual-region bucket. + * 3. If the Cloud Storage bucket is located in a single region, then + * BigQuery dataset can be in the same single region or any multi-region + * bucket that includes the same single region. The datascan will be created + * in the same single region as the bucket. + * 4. If the BigQuery dataset is in single region, it must be in the same + * single region as the datascan. + * For supported values, refer to + * https://cloud.google.com/bigquery/docs/locations#supported_locations. + * @type string $project + * Optional. The project of the BigQuery dataset to publish BigLake external + * or non-BigLake external tables to. If not specified, the project of the + * Cloud Storage bucket will be used. The format is + * "projects/{project_id_or_number}". + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataDiscovery::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Determines whether to publish discovered tables as BigLake + * external tables or non-BigLake external tables. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoverySpec.BigQueryPublishingConfig.TableType table_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getTableType() + { + return $this->table_type; + } + + /** + * Optional. Determines whether to publish discovered tables as BigLake + * external tables or non-BigLake external tables. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoverySpec.BigQueryPublishingConfig.TableType table_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setTableType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\DataDiscoverySpec\BigQueryPublishingConfig\TableType::class); + $this->table_type = $var; + + return $this; + } + + /** + * Optional. The BigQuery connection used to create BigLake tables. + * Must be in the form + * `projects/{project_id}/locations/{location_id}/connections/{connection_id}` + * + * Generated from protobuf field string connection = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getConnection() + { + return $this->connection; + } + + /** + * Optional. The BigQuery connection used to create BigLake tables. + * Must be in the form + * `projects/{project_id}/locations/{location_id}/connections/{connection_id}` + * + * Generated from protobuf field string connection = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setConnection($var) + { + GPBUtil::checkString($var, True); + $this->connection = $var; + + return $this; + } + + /** + * Optional. The location of the BigQuery dataset to publish BigLake + * external or non-BigLake external tables to. + * 1. If the Cloud Storage bucket is located in a multi-region bucket, then + * BigQuery dataset can be in the same multi-region bucket or any single + * region that is included in the same multi-region bucket. The datascan can + * be created in any single region that is included in the same multi-region + * bucket + * 2. If the Cloud Storage bucket is located in a dual-region bucket, then + * BigQuery dataset can be located in regions that are included in the + * dual-region bucket, or in a multi-region that includes the dual-region. + * The datascan can be created in any single region that is included in the + * same dual-region bucket. + * 3. If the Cloud Storage bucket is located in a single region, then + * BigQuery dataset can be in the same single region or any multi-region + * bucket that includes the same single region. The datascan will be created + * in the same single region as the bucket. + * 4. If the BigQuery dataset is in single region, it must be in the same + * single region as the datascan. + * For supported values, refer to + * https://cloud.google.com/bigquery/docs/locations#supported_locations. + * + * Generated from protobuf field string location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getLocation() + { + return $this->location; + } + + /** + * Optional. The location of the BigQuery dataset to publish BigLake + * external or non-BigLake external tables to. + * 1. If the Cloud Storage bucket is located in a multi-region bucket, then + * BigQuery dataset can be in the same multi-region bucket or any single + * region that is included in the same multi-region bucket. The datascan can + * be created in any single region that is included in the same multi-region + * bucket + * 2. If the Cloud Storage bucket is located in a dual-region bucket, then + * BigQuery dataset can be located in regions that are included in the + * dual-region bucket, or in a multi-region that includes the dual-region. + * The datascan can be created in any single region that is included in the + * same dual-region bucket. + * 3. If the Cloud Storage bucket is located in a single region, then + * BigQuery dataset can be in the same single region or any multi-region + * bucket that includes the same single region. The datascan will be created + * in the same single region as the bucket. + * 4. If the BigQuery dataset is in single region, it must be in the same + * single region as the datascan. + * For supported values, refer to + * https://cloud.google.com/bigquery/docs/locations#supported_locations. + * + * Generated from protobuf field string location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkString($var, True); + $this->location = $var; + + return $this; + } + + /** + * Optional. The project of the BigQuery dataset to publish BigLake external + * or non-BigLake external tables to. If not specified, the project of the + * Cloud Storage bucket will be used. The format is + * "projects/{project_id_or_number}". + * + * Generated from protobuf field string project = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getProject() + { + return $this->project; + } + + /** + * Optional. The project of the BigQuery dataset to publish BigLake external + * or non-BigLake external tables to. If not specified, the project of the + * Cloud Storage bucket will be used. The format is + * "projects/{project_id_or_number}". + * + * Generated from protobuf field string project = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setProject($var) + { + GPBUtil::checkString($var, True); + $this->project = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoverySpec/BigQueryPublishingConfig/TableType.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoverySpec/BigQueryPublishingConfig/TableType.php new file mode 100644 index 000000000000..5fe720ecc3d2 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoverySpec/BigQueryPublishingConfig/TableType.php @@ -0,0 +1,65 @@ +google.cloud.dataplex.v1.DataDiscoverySpec.BigQueryPublishingConfig.TableType + */ +class TableType +{ + /** + * Table type unspecified. + * + * Generated from protobuf enum TABLE_TYPE_UNSPECIFIED = 0; + */ + const TABLE_TYPE_UNSPECIFIED = 0; + /** + * Default. Discovered tables are published as BigQuery external tables + * whose data is accessed using the credentials of the user querying the + * table. + * + * Generated from protobuf enum EXTERNAL = 1; + */ + const EXTERNAL = 1; + /** + * Discovered tables are published as BigLake external tables whose data + * is accessed using the credentials of the associated BigQuery + * connection. + * + * Generated from protobuf enum BIGLAKE = 2; + */ + const BIGLAKE = 2; + + private static $valueToName = [ + self::TABLE_TYPE_UNSPECIFIED => 'TABLE_TYPE_UNSPECIFIED', + self::EXTERNAL => 'EXTERNAL', + self::BIGLAKE => 'BIGLAKE', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoverySpec/StorageConfig.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoverySpec/StorageConfig.php new file mode 100644 index 000000000000..d8a9112f02ae --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoverySpec/StorageConfig.php @@ -0,0 +1,269 @@ +google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig + */ +class StorageConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Defines the data to include during discovery when only a subset + * of the data should be considered. Provide a list of patterns that + * identify the data to include. For Cloud Storage bucket assets, these + * patterns are interpreted as glob patterns used to match object names. For + * BigQuery dataset assets, these patterns are interpreted as patterns to + * match table names. + * + * Generated from protobuf field repeated string include_patterns = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $include_patterns; + /** + * Optional. Defines the data to exclude during discovery. Provide a list of + * patterns that identify the data to exclude. For Cloud Storage bucket + * assets, these patterns are interpreted as glob patterns used to match + * object names. For BigQuery dataset assets, these patterns are interpreted + * as patterns to match table names. + * + * Generated from protobuf field repeated string exclude_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $exclude_patterns; + /** + * Optional. Configuration for CSV data. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.CsvOptions csv_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $csv_options = null; + /** + * Optional. Configuration for JSON data. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.JsonOptions json_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $json_options = null; + /** + * Optional. Specifies configuration for unstructured data discovery. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.UnstructuredDataOptions unstructured_data_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $unstructured_data_options = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string[] $include_patterns + * Optional. Defines the data to include during discovery when only a subset + * of the data should be considered. Provide a list of patterns that + * identify the data to include. For Cloud Storage bucket assets, these + * patterns are interpreted as glob patterns used to match object names. For + * BigQuery dataset assets, these patterns are interpreted as patterns to + * match table names. + * @type string[] $exclude_patterns + * Optional. Defines the data to exclude during discovery. Provide a list of + * patterns that identify the data to exclude. For Cloud Storage bucket + * assets, these patterns are interpreted as glob patterns used to match + * object names. For BigQuery dataset assets, these patterns are interpreted + * as patterns to match table names. + * @type \Google\Cloud\Dataplex\V1\DataDiscoverySpec\StorageConfig\CsvOptions $csv_options + * Optional. Configuration for CSV data. + * @type \Google\Cloud\Dataplex\V1\DataDiscoverySpec\StorageConfig\JsonOptions $json_options + * Optional. Configuration for JSON data. + * @type \Google\Cloud\Dataplex\V1\DataDiscoverySpec\StorageConfig\UnstructuredDataOptions $unstructured_data_options + * Optional. Specifies configuration for unstructured data discovery. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataDiscovery::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Defines the data to include during discovery when only a subset + * of the data should be considered. Provide a list of patterns that + * identify the data to include. For Cloud Storage bucket assets, these + * patterns are interpreted as glob patterns used to match object names. For + * BigQuery dataset assets, these patterns are interpreted as patterns to + * match table names. + * + * Generated from protobuf field repeated string include_patterns = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getIncludePatterns() + { + return $this->include_patterns; + } + + /** + * Optional. Defines the data to include during discovery when only a subset + * of the data should be considered. Provide a list of patterns that + * identify the data to include. For Cloud Storage bucket assets, these + * patterns are interpreted as glob patterns used to match object names. For + * BigQuery dataset assets, these patterns are interpreted as patterns to + * match table names. + * + * Generated from protobuf field repeated string include_patterns = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setIncludePatterns($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->include_patterns = $arr; + + return $this; + } + + /** + * Optional. Defines the data to exclude during discovery. Provide a list of + * patterns that identify the data to exclude. For Cloud Storage bucket + * assets, these patterns are interpreted as glob patterns used to match + * object names. For BigQuery dataset assets, these patterns are interpreted + * as patterns to match table names. + * + * Generated from protobuf field repeated string exclude_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getExcludePatterns() + { + return $this->exclude_patterns; + } + + /** + * Optional. Defines the data to exclude during discovery. Provide a list of + * patterns that identify the data to exclude. For Cloud Storage bucket + * assets, these patterns are interpreted as glob patterns used to match + * object names. For BigQuery dataset assets, these patterns are interpreted + * as patterns to match table names. + * + * Generated from protobuf field repeated string exclude_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setExcludePatterns($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->exclude_patterns = $arr; + + return $this; + } + + /** + * Optional. Configuration for CSV data. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.CsvOptions csv_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataplex\V1\DataDiscoverySpec\StorageConfig\CsvOptions|null + */ + public function getCsvOptions() + { + return $this->csv_options; + } + + public function hasCsvOptions() + { + return isset($this->csv_options); + } + + public function clearCsvOptions() + { + unset($this->csv_options); + } + + /** + * Optional. Configuration for CSV data. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.CsvOptions csv_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataplex\V1\DataDiscoverySpec\StorageConfig\CsvOptions $var + * @return $this + */ + public function setCsvOptions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataDiscoverySpec\StorageConfig\CsvOptions::class); + $this->csv_options = $var; + + return $this; + } + + /** + * Optional. Configuration for JSON data. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.JsonOptions json_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataplex\V1\DataDiscoverySpec\StorageConfig\JsonOptions|null + */ + public function getJsonOptions() + { + return $this->json_options; + } + + public function hasJsonOptions() + { + return isset($this->json_options); + } + + public function clearJsonOptions() + { + unset($this->json_options); + } + + /** + * Optional. Configuration for JSON data. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.JsonOptions json_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataplex\V1\DataDiscoverySpec\StorageConfig\JsonOptions $var + * @return $this + */ + public function setJsonOptions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataDiscoverySpec\StorageConfig\JsonOptions::class); + $this->json_options = $var; + + return $this; + } + + /** + * Optional. Specifies configuration for unstructured data discovery. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.UnstructuredDataOptions unstructured_data_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataplex\V1\DataDiscoverySpec\StorageConfig\UnstructuredDataOptions|null + */ + public function getUnstructuredDataOptions() + { + return $this->unstructured_data_options; + } + + public function hasUnstructuredDataOptions() + { + return isset($this->unstructured_data_options); + } + + public function clearUnstructuredDataOptions() + { + unset($this->unstructured_data_options); + } + + /** + * Optional. Specifies configuration for unstructured data discovery. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.UnstructuredDataOptions unstructured_data_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataplex\V1\DataDiscoverySpec\StorageConfig\UnstructuredDataOptions $var + * @return $this + */ + public function setUnstructuredDataOptions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataDiscoverySpec\StorageConfig\UnstructuredDataOptions::class); + $this->unstructured_data_options = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoverySpec/StorageConfig/CsvOptions.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoverySpec/StorageConfig/CsvOptions.php new file mode 100644 index 000000000000..5b2c631ee524 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoverySpec/StorageConfig/CsvOptions.php @@ -0,0 +1,223 @@ +google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.CsvOptions + */ +class CsvOptions extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The number of rows to interpret as header rows that should be + * skipped when reading data rows. + * + * Generated from protobuf field int32 header_rows = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $header_rows = 0; + /** + * Optional. The delimiter that is used to separate values. The default is + * `,` (comma). + * + * Generated from protobuf field string delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $delimiter = ''; + /** + * Optional. The character encoding of the data. The default is UTF-8. + * + * Generated from protobuf field string encoding = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $encoding = ''; + /** + * Optional. Whether to disable the inference of data types for CSV data. + * If true, all columns are registered as strings. + * + * Generated from protobuf field bool type_inference_disabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $type_inference_disabled = false; + /** + * Optional. The character used to quote column values. Accepts `"` + * (double quotation mark) or `'` (single quotation mark). If unspecified, + * defaults to `"` (double quotation mark). + * + * Generated from protobuf field string quote = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $quote = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $header_rows + * Optional. The number of rows to interpret as header rows that should be + * skipped when reading data rows. + * @type string $delimiter + * Optional. The delimiter that is used to separate values. The default is + * `,` (comma). + * @type string $encoding + * Optional. The character encoding of the data. The default is UTF-8. + * @type bool $type_inference_disabled + * Optional. Whether to disable the inference of data types for CSV data. + * If true, all columns are registered as strings. + * @type string $quote + * Optional. The character used to quote column values. Accepts `"` + * (double quotation mark) or `'` (single quotation mark). If unspecified, + * defaults to `"` (double quotation mark). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataDiscovery::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The number of rows to interpret as header rows that should be + * skipped when reading data rows. + * + * Generated from protobuf field int32 header_rows = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getHeaderRows() + { + return $this->header_rows; + } + + /** + * Optional. The number of rows to interpret as header rows that should be + * skipped when reading data rows. + * + * Generated from protobuf field int32 header_rows = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setHeaderRows($var) + { + GPBUtil::checkInt32($var); + $this->header_rows = $var; + + return $this; + } + + /** + * Optional. The delimiter that is used to separate values. The default is + * `,` (comma). + * + * Generated from protobuf field string delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDelimiter() + { + return $this->delimiter; + } + + /** + * Optional. The delimiter that is used to separate values. The default is + * `,` (comma). + * + * Generated from protobuf field string delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDelimiter($var) + { + GPBUtil::checkString($var, True); + $this->delimiter = $var; + + return $this; + } + + /** + * Optional. The character encoding of the data. The default is UTF-8. + * + * Generated from protobuf field string encoding = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEncoding() + { + return $this->encoding; + } + + /** + * Optional. The character encoding of the data. The default is UTF-8. + * + * Generated from protobuf field string encoding = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setEncoding($var) + { + GPBUtil::checkString($var, True); + $this->encoding = $var; + + return $this; + } + + /** + * Optional. Whether to disable the inference of data types for CSV data. + * If true, all columns are registered as strings. + * + * Generated from protobuf field bool type_inference_disabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getTypeInferenceDisabled() + { + return $this->type_inference_disabled; + } + + /** + * Optional. Whether to disable the inference of data types for CSV data. + * If true, all columns are registered as strings. + * + * Generated from protobuf field bool type_inference_disabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setTypeInferenceDisabled($var) + { + GPBUtil::checkBool($var); + $this->type_inference_disabled = $var; + + return $this; + } + + /** + * Optional. The character used to quote column values. Accepts `"` + * (double quotation mark) or `'` (single quotation mark). If unspecified, + * defaults to `"` (double quotation mark). + * + * Generated from protobuf field string quote = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getQuote() + { + return $this->quote; + } + + /** + * Optional. The character used to quote column values. Accepts `"` + * (double quotation mark) or `'` (single quotation mark). If unspecified, + * defaults to `"` (double quotation mark). + * + * Generated from protobuf field string quote = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setQuote($var) + { + GPBUtil::checkString($var, True); + $this->quote = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoverySpec/StorageConfig/JsonOptions.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoverySpec/StorageConfig/JsonOptions.php new file mode 100644 index 000000000000..b753df01f87c --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoverySpec/StorageConfig/JsonOptions.php @@ -0,0 +1,109 @@ +google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.JsonOptions + */ +class JsonOptions extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The character encoding of the data. The default is UTF-8. + * + * Generated from protobuf field string encoding = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $encoding = ''; + /** + * Optional. Whether to disable the inference of data types for JSON data. + * If true, all columns are registered as their primitive types + * (strings, number, or boolean). + * + * Generated from protobuf field bool type_inference_disabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $type_inference_disabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $encoding + * Optional. The character encoding of the data. The default is UTF-8. + * @type bool $type_inference_disabled + * Optional. Whether to disable the inference of data types for JSON data. + * If true, all columns are registered as their primitive types + * (strings, number, or boolean). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataDiscovery::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The character encoding of the data. The default is UTF-8. + * + * Generated from protobuf field string encoding = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEncoding() + { + return $this->encoding; + } + + /** + * Optional. The character encoding of the data. The default is UTF-8. + * + * Generated from protobuf field string encoding = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setEncoding($var) + { + GPBUtil::checkString($var, True); + $this->encoding = $var; + + return $this; + } + + /** + * Optional. Whether to disable the inference of data types for JSON data. + * If true, all columns are registered as their primitive types + * (strings, number, or boolean). + * + * Generated from protobuf field bool type_inference_disabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getTypeInferenceDisabled() + { + return $this->type_inference_disabled; + } + + /** + * Optional. Whether to disable the inference of data types for JSON data. + * If true, all columns are registered as their primitive types + * (strings, number, or boolean). + * + * Generated from protobuf field bool type_inference_disabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setTypeInferenceDisabled($var) + { + GPBUtil::checkBool($var); + $this->type_inference_disabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoverySpec/StorageConfig/UnstructuredDataOptions.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoverySpec/StorageConfig/UnstructuredDataOptions.php new file mode 100644 index 000000000000..8e41f634eb67 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoverySpec/StorageConfig/UnstructuredDataOptions.php @@ -0,0 +1,71 @@ +google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.UnstructuredDataOptions + */ +class UnstructuredDataOptions extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Specifies whether deeper semantic inference over the objects' + * contents using GenAI is enabled. + * + * Generated from protobuf field bool semantic_inference_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $semantic_inference_enabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $semantic_inference_enabled + * Optional. Specifies whether deeper semantic inference over the objects' + * contents using GenAI is enabled. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataDiscovery::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Specifies whether deeper semantic inference over the objects' + * contents using GenAI is enabled. + * + * Generated from protobuf field bool semantic_inference_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getSemanticInferenceEnabled() + { + return $this->semantic_inference_enabled; + } + + /** + * Optional. Specifies whether deeper semantic inference over the objects' + * contents using GenAI is enabled. + * + * Generated from protobuf field bool semantic_inference_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setSemanticInferenceEnabled($var) + { + GPBUtil::checkBool($var); + $this->semantic_inference_enabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult.php new file mode 100644 index 000000000000..a5f2f17c338c --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult.php @@ -0,0 +1,108 @@ +google.cloud.dataplex.v1.DataDocumentationResult + */ +class DataDocumentationResult extends \Google\Protobuf\Internal\Message +{ + protected $result; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\DataDocumentationResult\DatasetResult $dataset_result + * Output only. Insights for a Dataset resource. + * @type \Google\Cloud\Dataplex\V1\DataDocumentationResult\TableResult $table_result + * Output only. Insights for a Table resource. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataDocumentation::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Insights for a Dataset resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult dataset_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataplex\V1\DataDocumentationResult\DatasetResult|null + */ + public function getDatasetResult() + { + return $this->readOneof(7); + } + + public function hasDatasetResult() + { + return $this->hasOneof(7); + } + + /** + * Output only. Insights for a Dataset resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult dataset_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\DataDocumentationResult\DatasetResult $var + * @return $this + */ + public function setDatasetResult($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataDocumentationResult\DatasetResult::class); + $this->writeOneof(7, $var); + + return $this; + } + + /** + * Output only. Insights for a Table resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataDocumentationResult.TableResult table_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataplex\V1\DataDocumentationResult\TableResult|null + */ + public function getTableResult() + { + return $this->readOneof(8); + } + + public function hasTableResult() + { + return $this->hasOneof(8); + } + + /** + * Output only. Insights for a Table resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataDocumentationResult.TableResult table_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\DataDocumentationResult\TableResult $var + * @return $this + */ + public function setTableResult($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataDocumentationResult\TableResult::class); + $this->writeOneof(8, $var); + + return $this; + } + + /** + * @return string + */ + public function getResult() + { + return $this->whichOneof("result"); + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/DatasetResult.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/DatasetResult.php new file mode 100644 index 000000000000..46c393ce568c --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/DatasetResult.php @@ -0,0 +1,139 @@ +google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult + */ +class DatasetResult extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Generated Dataset description. + * + * Generated from protobuf field string overview = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $overview = ''; + /** + * Output only. Relationships suggesting how tables in the dataset are + * related to each other, based on their schema. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship schema_relationships = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $schema_relationships; + /** + * Output only. Sample SQL queries for the dataset. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $queries; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $overview + * Output only. Generated Dataset description. + * @type \Google\Cloud\Dataplex\V1\DataDocumentationResult\SchemaRelationship[] $schema_relationships + * Output only. Relationships suggesting how tables in the dataset are + * related to each other, based on their schema. + * @type \Google\Cloud\Dataplex\V1\DataDocumentationResult\Query[] $queries + * Output only. Sample SQL queries for the dataset. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataDocumentation::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Generated Dataset description. + * + * Generated from protobuf field string overview = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getOverview() + { + return $this->overview; + } + + /** + * Output only. Generated Dataset description. + * + * Generated from protobuf field string overview = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setOverview($var) + { + GPBUtil::checkString($var, True); + $this->overview = $var; + + return $this; + } + + /** + * Output only. Relationships suggesting how tables in the dataset are + * related to each other, based on their schema. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship schema_relationships = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField<\Google\Cloud\Dataplex\V1\DataDocumentationResult\SchemaRelationship> + */ + public function getSchemaRelationships() + { + return $this->schema_relationships; + } + + /** + * Output only. Relationships suggesting how tables in the dataset are + * related to each other, based on their schema. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship schema_relationships = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\DataDocumentationResult\SchemaRelationship[] $var + * @return $this + */ + public function setSchemaRelationships($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\DataDocumentationResult\SchemaRelationship::class); + $this->schema_relationships = $arr; + + return $this; + } + + /** + * Output only. Sample SQL queries for the dataset. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField<\Google\Cloud\Dataplex\V1\DataDocumentationResult\Query> + */ + public function getQueries() + { + return $this->queries; + } + + /** + * Output only. Sample SQL queries for the dataset. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\DataDocumentationResult\Query[] $var + * @return $this + */ + public function setQueries($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\DataDocumentationResult\Query::class); + $this->queries = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/Field.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/Field.php new file mode 100644 index 000000000000..37a462af7a15 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/Field.php @@ -0,0 +1,135 @@ +google.cloud.dataplex.v1.DataDocumentationResult.Field + */ +class Field extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The name of the column. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Output only. Generated description for columns and fields. + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $description = ''; + /** + * Output only. Nested fields. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $fields; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. The name of the column. + * @type string $description + * Output only. Generated description for columns and fields. + * @type \Google\Cloud\Dataplex\V1\DataDocumentationResult\Field[] $fields + * Output only. Nested fields. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataDocumentation::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The name of the column. + * + * 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 column. + * + * 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. Generated description for columns and fields. + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Output only. Generated description for columns and fields. + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Output only. Nested fields. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField<\Google\Cloud\Dataplex\V1\DataDocumentationResult\Field> + */ + public function getFields() + { + return $this->fields; + } + + /** + * Output only. Nested fields. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\DataDocumentationResult\Field[] $var + * @return $this + */ + public function setFields($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\DataDocumentationResult\Field::class); + $this->fields = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/Query.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/Query.php new file mode 100644 index 000000000000..3cb9a8259b41 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/Query.php @@ -0,0 +1,101 @@ +google.cloud.dataplex.v1.DataDocumentationResult.Query + */ +class Query extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The SQL query string which can be executed. + * + * Generated from protobuf field string sql = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $sql = ''; + /** + * Output only. The description for the query. + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $description = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $sql + * Output only. The SQL query string which can be executed. + * @type string $description + * Output only. The description for the query. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataDocumentation::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The SQL query string which can be executed. + * + * Generated from protobuf field string sql = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getSql() + { + return $this->sql; + } + + /** + * Output only. The SQL query string which can be executed. + * + * Generated from protobuf field string sql = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setSql($var) + { + GPBUtil::checkString($var, True); + $this->sql = $var; + + return $this; + } + + /** + * Output only. The description for the query. + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Output only. The description for the query. + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/Schema.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/Schema.php new file mode 100644 index 000000000000..9286f2e2fee9 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/Schema.php @@ -0,0 +1,67 @@ +google.cloud.dataplex.v1.DataDocumentationResult.Schema + */ +class Schema extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The list of columns. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $fields; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\DataDocumentationResult\Field[] $fields + * Output only. The list of columns. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataDocumentation::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The list of columns. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField<\Google\Cloud\Dataplex\V1\DataDocumentationResult\Field> + */ + public function getFields() + { + return $this->fields; + } + + /** + * Output only. The list of columns. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\DataDocumentationResult\Field[] $var + * @return $this + */ + public function setFields($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\DataDocumentationResult\Field::class); + $this->fields = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/SchemaRelationship.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/SchemaRelationship.php new file mode 100644 index 000000000000..9997ee5ce3ff --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/SchemaRelationship.php @@ -0,0 +1,213 @@ +google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship + */ +class SchemaRelationship extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. An ordered list of fields for the join from the first table. + * The size of this list must be the same as `right_schema_paths`. + * Each field at index i in this list must correspond to a field at the same + * index in the `right_schema_paths` list. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths left_schema_paths = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $left_schema_paths = null; + /** + * Output only. An ordered list of fields for the join from the second + * table. The size of this list must be the same as `left_schema_paths`. + * Each field at index i in this list must correspond to a field at the same + * index in the `left_schema_paths` list. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths right_schema_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $right_schema_paths = null; + /** + * Output only. Sources which generated the schema relation edge. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Source sources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $sources; + /** + * Output only. The type of relationship between the schema paths. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Type type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\DataDocumentationResult\SchemaRelationship\SchemaPaths $left_schema_paths + * Output only. An ordered list of fields for the join from the first table. + * The size of this list must be the same as `right_schema_paths`. + * Each field at index i in this list must correspond to a field at the same + * index in the `right_schema_paths` list. + * @type \Google\Cloud\Dataplex\V1\DataDocumentationResult\SchemaRelationship\SchemaPaths $right_schema_paths + * Output only. An ordered list of fields for the join from the second + * table. The size of this list must be the same as `left_schema_paths`. + * Each field at index i in this list must correspond to a field at the same + * index in the `left_schema_paths` list. + * @type int[] $sources + * Output only. Sources which generated the schema relation edge. + * @type int $type + * Output only. The type of relationship between the schema paths. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataDocumentation::initOnce(); + parent::__construct($data); + } + + /** + * Output only. An ordered list of fields for the join from the first table. + * The size of this list must be the same as `right_schema_paths`. + * Each field at index i in this list must correspond to a field at the same + * index in the `right_schema_paths` list. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths left_schema_paths = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataplex\V1\DataDocumentationResult\SchemaRelationship\SchemaPaths|null + */ + public function getLeftSchemaPaths() + { + return $this->left_schema_paths; + } + + public function hasLeftSchemaPaths() + { + return isset($this->left_schema_paths); + } + + public function clearLeftSchemaPaths() + { + unset($this->left_schema_paths); + } + + /** + * Output only. An ordered list of fields for the join from the first table. + * The size of this list must be the same as `right_schema_paths`. + * Each field at index i in this list must correspond to a field at the same + * index in the `right_schema_paths` list. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths left_schema_paths = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\DataDocumentationResult\SchemaRelationship\SchemaPaths $var + * @return $this + */ + public function setLeftSchemaPaths($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataDocumentationResult\SchemaRelationship\SchemaPaths::class); + $this->left_schema_paths = $var; + + return $this; + } + + /** + * Output only. An ordered list of fields for the join from the second + * table. The size of this list must be the same as `left_schema_paths`. + * Each field at index i in this list must correspond to a field at the same + * index in the `left_schema_paths` list. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths right_schema_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataplex\V1\DataDocumentationResult\SchemaRelationship\SchemaPaths|null + */ + public function getRightSchemaPaths() + { + return $this->right_schema_paths; + } + + public function hasRightSchemaPaths() + { + return isset($this->right_schema_paths); + } + + public function clearRightSchemaPaths() + { + unset($this->right_schema_paths); + } + + /** + * Output only. An ordered list of fields for the join from the second + * table. The size of this list must be the same as `left_schema_paths`. + * Each field at index i in this list must correspond to a field at the same + * index in the `left_schema_paths` list. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths right_schema_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\DataDocumentationResult\SchemaRelationship\SchemaPaths $var + * @return $this + */ + public function setRightSchemaPaths($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataDocumentationResult\SchemaRelationship\SchemaPaths::class); + $this->right_schema_paths = $var; + + return $this; + } + + /** + * Output only. Sources which generated the schema relation edge. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Source sources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField + */ + public function getSources() + { + return $this->sources; + } + + /** + * Output only. Sources which generated the schema relation edge. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Source sources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int[] $var + * @return $this + */ + public function setSources($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Dataplex\V1\DataDocumentationResult\SchemaRelationship\Source::class); + $this->sources = $arr; + + return $this; + } + + /** + * Output only. The type of relationship between the schema paths. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Type type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Output only. The type of relationship between the schema paths. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Type type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\DataDocumentationResult\SchemaRelationship\Type::class); + $this->type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/SchemaRelationship/SchemaPaths.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/SchemaRelationship/SchemaPaths.php new file mode 100644 index 000000000000..e81eff9235d8 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/SchemaRelationship/SchemaPaths.php @@ -0,0 +1,121 @@ +google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths + */ +class SchemaPaths extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The service-qualified full resource name of the table + * Ex: + * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID + * + * Generated from protobuf field string table_fqn = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $table_fqn = ''; + /** + * Output only. An ordered set of Paths to fields within the schema of the + * table. For fields nested within a top level field of type record, use + * '.' to separate field names. Examples: Top level field - `top_level` + * Nested field - `top_level.child.sub_field` + * + * Generated from protobuf field repeated string paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $paths; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $table_fqn + * Output only. The service-qualified full resource name of the table + * Ex: + * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID + * @type string[] $paths + * Output only. An ordered set of Paths to fields within the schema of the + * table. For fields nested within a top level field of type record, use + * '.' to separate field names. Examples: Top level field - `top_level` + * Nested field - `top_level.child.sub_field` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataDocumentation::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The service-qualified full resource name of the table + * Ex: + * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID + * + * Generated from protobuf field string table_fqn = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getTableFqn() + { + return $this->table_fqn; + } + + /** + * Output only. The service-qualified full resource name of the table + * Ex: + * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID + * + * Generated from protobuf field string table_fqn = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setTableFqn($var) + { + GPBUtil::checkString($var, True); + $this->table_fqn = $var; + + return $this; + } + + /** + * Output only. An ordered set of Paths to fields within the schema of the + * table. For fields nested within a top level field of type record, use + * '.' to separate field names. Examples: Top level field - `top_level` + * Nested field - `top_level.child.sub_field` + * + * Generated from protobuf field repeated string paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField + */ + public function getPaths() + { + return $this->paths; + } + + /** + * Output only. An ordered set of Paths to fields within the schema of the + * table. For fields nested within a top level field of type record, use + * '.' to separate field names. Examples: Top level field - `top_level` + * Nested field - `top_level.child.sub_field` + * + * Generated from protobuf field repeated string paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string[] $var + * @return $this + */ + public function setPaths($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->paths = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/SchemaRelationship/Source.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/SchemaRelationship/Source.php new file mode 100644 index 000000000000..f4a5ca2274ee --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/SchemaRelationship/Source.php @@ -0,0 +1,70 @@ +google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Source + */ +class Source +{ + /** + * The source of the schema relationship is unspecified. + * + * Generated from protobuf enum SOURCE_UNSPECIFIED = 0; + */ + const SOURCE_UNSPECIFIED = 0; + /** + * The source of the schema relationship is agent. + * + * Generated from protobuf enum AGENT = 4; + */ + const AGENT = 4; + /** + * The source of the schema relationship is query history from the source + * system. + * + * Generated from protobuf enum QUERY_HISTORY = 5; + */ + const QUERY_HISTORY = 5; + /** + * The source of the schema relationship is table constraints added in + * the source system. + * + * Generated from protobuf enum TABLE_CONSTRAINTS = 6; + */ + const TABLE_CONSTRAINTS = 6; + + private static $valueToName = [ + self::SOURCE_UNSPECIFIED => 'SOURCE_UNSPECIFIED', + self::AGENT => 'AGENT', + self::QUERY_HISTORY => 'QUERY_HISTORY', + self::TABLE_CONSTRAINTS => 'TABLE_CONSTRAINTS', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/SchemaRelationship/Type.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/SchemaRelationship/Type.php new file mode 100644 index 000000000000..f3948cd9ab2d --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/SchemaRelationship/Type.php @@ -0,0 +1,54 @@ +google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Type + */ +class Type +{ + /** + * The type of the schema relationship is unspecified. + * + * Generated from protobuf enum TYPE_UNSPECIFIED = 0; + */ + const TYPE_UNSPECIFIED = 0; + /** + * Indicates a join relationship between the schema fields. + * + * Generated from protobuf enum SCHEMA_JOIN = 1; + */ + const SCHEMA_JOIN = 1; + + private static $valueToName = [ + self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', + self::SCHEMA_JOIN => 'SCHEMA_JOIN', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/TableResult.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/TableResult.php new file mode 100644 index 000000000000..44b569fb8955 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/TableResult.php @@ -0,0 +1,191 @@ +google.cloud.dataplex.v1.DataDocumentationResult.TableResult + */ +class TableResult extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The service-qualified full resource name of the cloud + * resource. Ex: + * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Output only. Generated description of the table. + * + * Generated from protobuf field string overview = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $overview = ''; + /** + * Output only. Schema of the table with generated metadata of the columns + * in the schema. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataDocumentationResult.Schema schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $schema = null; + /** + * Output only. Sample SQL queries for the table. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $queries; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. The service-qualified full resource name of the cloud + * resource. Ex: + * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID + * @type string $overview + * Output only. Generated description of the table. + * @type \Google\Cloud\Dataplex\V1\DataDocumentationResult\Schema $schema + * Output only. Schema of the table with generated metadata of the columns + * in the schema. + * @type \Google\Cloud\Dataplex\V1\DataDocumentationResult\Query[] $queries + * Output only. Sample SQL queries for the table. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataDocumentation::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The service-qualified full resource name of the cloud + * resource. Ex: + * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. The service-qualified full resource name of the cloud + * resource. Ex: + * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID + * + * 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. Generated description of the table. + * + * Generated from protobuf field string overview = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getOverview() + { + return $this->overview; + } + + /** + * Output only. Generated description of the table. + * + * Generated from protobuf field string overview = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setOverview($var) + { + GPBUtil::checkString($var, True); + $this->overview = $var; + + return $this; + } + + /** + * Output only. Schema of the table with generated metadata of the columns + * in the schema. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataDocumentationResult.Schema schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataplex\V1\DataDocumentationResult\Schema|null + */ + public function getSchema() + { + return $this->schema; + } + + public function hasSchema() + { + return isset($this->schema); + } + + public function clearSchema() + { + unset($this->schema); + } + + /** + * Output only. Schema of the table with generated metadata of the columns + * in the schema. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataDocumentationResult.Schema schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\DataDocumentationResult\Schema $var + * @return $this + */ + public function setSchema($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataDocumentationResult\Schema::class); + $this->schema = $var; + + return $this; + } + + /** + * Output only. Sample SQL queries for the table. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField<\Google\Cloud\Dataplex\V1\DataDocumentationResult\Query> + */ + public function getQueries() + { + return $this->queries; + } + + /** + * Output only. Sample SQL queries for the table. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\DataDocumentationResult\Query[] $var + * @return $this + */ + public function setQueries($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\DataDocumentationResult\Query::class); + $this->queries = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationSpec.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationSpec.php new file mode 100644 index 000000000000..24182de45dc8 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationSpec.php @@ -0,0 +1,113 @@ +google.cloud.dataplex.v1.DataDocumentationSpec + */ +class DataDocumentationSpec extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Whether to publish result to Dataplex Catalog. + * + * Generated from protobuf field bool catalog_publishing_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $catalog_publishing_enabled = false; + /** + * Optional. Specifies which components of the data documentation to generate. + * Any component that is required to generate the specified components will + * also be generated. If no generation scope is specified, all available + * documentation components will be generated. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataDocumentationSpec.GenerationScope generation_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $generation_scopes; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $catalog_publishing_enabled + * Optional. Whether to publish result to Dataplex Catalog. + * @type int[] $generation_scopes + * Optional. Specifies which components of the data documentation to generate. + * Any component that is required to generate the specified components will + * also be generated. If no generation scope is specified, all available + * documentation components will be generated. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataDocumentation::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Whether to publish result to Dataplex Catalog. + * + * Generated from protobuf field bool catalog_publishing_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getCatalogPublishingEnabled() + { + return $this->catalog_publishing_enabled; + } + + /** + * Optional. Whether to publish result to Dataplex Catalog. + * + * Generated from protobuf field bool catalog_publishing_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setCatalogPublishingEnabled($var) + { + GPBUtil::checkBool($var); + $this->catalog_publishing_enabled = $var; + + return $this; + } + + /** + * Optional. Specifies which components of the data documentation to generate. + * Any component that is required to generate the specified components will + * also be generated. If no generation scope is specified, all available + * documentation components will be generated. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataDocumentationSpec.GenerationScope generation_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getGenerationScopes() + { + return $this->generation_scopes; + } + + /** + * Optional. Specifies which components of the data documentation to generate. + * Any component that is required to generate the specified components will + * also be generated. If no generation scope is specified, all available + * documentation components will be generated. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataDocumentationSpec.GenerationScope generation_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param int[] $var + * @return $this + */ + public function setGenerationScopes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Dataplex\V1\DataDocumentationSpec\GenerationScope::class); + $this->generation_scopes = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationSpec/GenerationScope.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationSpec/GenerationScope.php new file mode 100644 index 000000000000..4eab919c552a --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationSpec/GenerationScope.php @@ -0,0 +1,70 @@ +google.cloud.dataplex.v1.DataDocumentationSpec.GenerationScope + */ +class GenerationScope +{ + /** + * Unspecified generation scope. If no generation scope is specified, all + * available documentation components will be generated. + * + * Generated from protobuf enum GENERATION_SCOPE_UNSPECIFIED = 0; + */ + const GENERATION_SCOPE_UNSPECIFIED = 0; + /** + * All the possible results will be generated. + * + * Generated from protobuf enum ALL = 1; + */ + const ALL = 1; + /** + * Table and column descriptions will be generated. + * + * Generated from protobuf enum TABLE_AND_COLUMN_DESCRIPTIONS = 2; + */ + const TABLE_AND_COLUMN_DESCRIPTIONS = 2; + /** + * SQL queries will be generated. + * + * Generated from protobuf enum SQL_QUERIES = 3; + */ + const SQL_QUERIES = 3; + + private static $valueToName = [ + self::GENERATION_SCOPE_UNSPECIFIED => 'GENERATION_SCOPE_UNSPECIFIED', + self::ALL => 'ALL', + self::TABLE_AND_COLUMN_DESCRIPTIONS => 'TABLE_AND_COLUMN_DESCRIPTIONS', + self::SQL_QUERIES => 'SQL_QUERIES', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProduct.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProduct.php new file mode 100644 index 000000000000..5ea6efdba3bf --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProduct.php @@ -0,0 +1,639 @@ +google.cloud.dataplex.v1.DataProduct + */ +class DataProduct extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. Resource name of the data product. + * Format: + * `projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. System generated unique ID for the data product. + * This ID will be different if the data product is deleted and re-created + * with the same name. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { + */ + protected $uid = ''; + /** + * Required. User-friendly display name of the data product. + * + * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = ''; + /** + * Output only. The time at which the data product was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The time at which the data product was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Optional. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $etag = ''; + /** + * Optional. User-defined labels for the data product. + * Example: + * ``` + * { + * "environment": "production", + * "billing": "marketing-department" + * } + * ``` + * + * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $labels; + /** + * Optional. Description of the data product. + * + * Generated from protobuf field string description = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Optional. Base64 encoded image representing the data product. Max + * Size: 3.0MiB Expected image dimensions are 512x512 pixels, however the API + * only performs validation on size of the encoded data. Note: For byte + * fields, the content of the fields are base64-encoded (which increases the + * size of the data by 33-36%) when using JSON on the wire. + * + * Generated from protobuf field bytes icon = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $icon = ''; + /** + * Required. Emails of the data product owners. + * + * Generated from protobuf field repeated string owner_emails = 11 [(.google.api.field_behavior) = REQUIRED]; + */ + private $owner_emails; + /** + * Output only. Number of data assets associated with this data product. + * + * Generated from protobuf field int32 asset_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $asset_count = 0; + /** + * Optional. Data product access groups by access group id as key. + * If data product is used only for packaging data assets, then access groups + * may be empty. However, if a data product is used for sharing data assets, + * then at least one access group must be specified. + * Example: + * ``` + * { + * "analyst": { + * "id": "analyst", + * "displayName": "Analyst", + * "description": "Access group for analysts", + * "principal": { + * "googleGroup": "analysts\@example.com" + * } + * } + * } + * ``` + * + * Generated from protobuf field map access_groups = 14 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $access_groups; + /** + * Optional. Configuration for access approval for the data product. + * + * Generated from protobuf field optional .google.cloud.dataplex.v1.DataProduct.AccessApprovalConfig access_approval_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $access_approval_config = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. Resource name of the data product. + * Format: + * `projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}`. + * @type string $uid + * Output only. System generated unique ID for the data product. + * This ID will be different if the data product is deleted and re-created + * with the same name. + * @type string $display_name + * Required. User-friendly display name of the data product. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time at which the data product was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time at which the data product was last updated. + * @type string $etag + * Optional. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Optional. User-defined labels for the data product. + * Example: + * ``` + * { + * "environment": "production", + * "billing": "marketing-department" + * } + * ``` + * @type string $description + * Optional. Description of the data product. + * @type string $icon + * Optional. Base64 encoded image representing the data product. Max + * Size: 3.0MiB Expected image dimensions are 512x512 pixels, however the API + * only performs validation on size of the encoded data. Note: For byte + * fields, the content of the fields are base64-encoded (which increases the + * size of the data by 33-36%) when using JSON on the wire. + * @type string[] $owner_emails + * Required. Emails of the data product owners. + * @type int $asset_count + * Output only. Number of data assets associated with this data product. + * @type array|\Google\Protobuf\Internal\MapField $access_groups + * Optional. Data product access groups by access group id as key. + * If data product is used only for packaging data assets, then access groups + * may be empty. However, if a data product is used for sharing data assets, + * then at least one access group must be specified. + * Example: + * ``` + * { + * "analyst": { + * "id": "analyst", + * "displayName": "Analyst", + * "description": "Access group for analysts", + * "principal": { + * "googleGroup": "analysts\@example.com" + * } + * } + * } + * ``` + * @type \Google\Cloud\Dataplex\V1\DataProduct\AccessApprovalConfig $access_approval_config + * Optional. Configuration for access approval for the data product. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataProducts::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. Resource name of the data product. + * Format: + * `projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. Resource name of the data product. + * Format: + * `projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. System generated unique ID for the data product. + * This ID will be different if the data product is deleted and re-created + * with the same name. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { + * @return string + */ + public function getUid() + { + return $this->uid; + } + + /** + * Output only. System generated unique ID for the data product. + * This ID will be different if the data product is deleted and re-created + * with the same name. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setUid($var) + { + GPBUtil::checkString($var, True); + $this->uid = $var; + + return $this; + } + + /** + * Required. User-friendly display name of the data product. + * + * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Required. User-friendly display name of the data product. + * + * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Output only. The time at which the data product was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.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 data product was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.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 data product was last updated. + * + * 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 time at which the data product was last updated. + * + * 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. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Optional. This checksum is computed by the server based on the value of + * other fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * Optional. User-defined labels for the data product. + * Example: + * ``` + * { + * "environment": "production", + * "billing": "marketing-department" + * } + * ``` + * + * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Optional. User-defined labels for the data product. + * Example: + * ``` + * { + * "environment": "production", + * "billing": "marketing-department" + * } + * ``` + * + * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Optional. Description of the data product. + * + * Generated from protobuf field string description = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. Description of the data product. + * + * Generated from protobuf field string description = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Optional. Base64 encoded image representing the data product. Max + * Size: 3.0MiB Expected image dimensions are 512x512 pixels, however the API + * only performs validation on size of the encoded data. Note: For byte + * fields, the content of the fields are base64-encoded (which increases the + * size of the data by 33-36%) when using JSON on the wire. + * + * Generated from protobuf field bytes icon = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getIcon() + { + return $this->icon; + } + + /** + * Optional. Base64 encoded image representing the data product. Max + * Size: 3.0MiB Expected image dimensions are 512x512 pixels, however the API + * only performs validation on size of the encoded data. Note: For byte + * fields, the content of the fields are base64-encoded (which increases the + * size of the data by 33-36%) when using JSON on the wire. + * + * Generated from protobuf field bytes icon = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setIcon($var) + { + GPBUtil::checkString($var, False); + $this->icon = $var; + + return $this; + } + + /** + * Required. Emails of the data product owners. + * + * Generated from protobuf field repeated string owner_emails = 11 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField + */ + public function getOwnerEmails() + { + return $this->owner_emails; + } + + /** + * Required. Emails of the data product owners. + * + * Generated from protobuf field repeated string owner_emails = 11 [(.google.api.field_behavior) = REQUIRED]; + * @param string[] $var + * @return $this + */ + public function setOwnerEmails($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->owner_emails = $arr; + + return $this; + } + + /** + * Output only. Number of data assets associated with this data product. + * + * Generated from protobuf field int32 asset_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getAssetCount() + { + return $this->asset_count; + } + + /** + * Output only. Number of data assets associated with this data product. + * + * Generated from protobuf field int32 asset_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setAssetCount($var) + { + GPBUtil::checkInt32($var); + $this->asset_count = $var; + + return $this; + } + + /** + * Optional. Data product access groups by access group id as key. + * If data product is used only for packaging data assets, then access groups + * may be empty. However, if a data product is used for sharing data assets, + * then at least one access group must be specified. + * Example: + * ``` + * { + * "analyst": { + * "id": "analyst", + * "displayName": "Analyst", + * "description": "Access group for analysts", + * "principal": { + * "googleGroup": "analysts\@example.com" + * } + * } + * } + * ``` + * + * Generated from protobuf field map access_groups = 14 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getAccessGroups() + { + return $this->access_groups; + } + + /** + * Optional. Data product access groups by access group id as key. + * If data product is used only for packaging data assets, then access groups + * may be empty. However, if a data product is used for sharing data assets, + * then at least one access group must be specified. + * Example: + * ``` + * { + * "analyst": { + * "id": "analyst", + * "displayName": "Analyst", + * "description": "Access group for analysts", + * "principal": { + * "googleGroup": "analysts\@example.com" + * } + * } + * } + * ``` + * + * Generated from protobuf field map access_groups = 14 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setAccessGroups($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\DataProduct\AccessGroup::class); + $this->access_groups = $arr; + + return $this; + } + + /** + * Optional. Configuration for access approval for the data product. + * + * Generated from protobuf field optional .google.cloud.dataplex.v1.DataProduct.AccessApprovalConfig access_approval_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataplex\V1\DataProduct\AccessApprovalConfig|null + */ + public function getAccessApprovalConfig() + { + return $this->access_approval_config; + } + + public function hasAccessApprovalConfig() + { + return isset($this->access_approval_config); + } + + public function clearAccessApprovalConfig() + { + unset($this->access_approval_config); + } + + /** + * Optional. Configuration for access approval for the data product. + * + * Generated from protobuf field optional .google.cloud.dataplex.v1.DataProduct.AccessApprovalConfig access_approval_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataplex\V1\DataProduct\AccessApprovalConfig $var + * @return $this + */ + public function setAccessApprovalConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataProduct\AccessApprovalConfig::class); + $this->access_approval_config = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProduct/AccessApprovalConfig.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProduct/AccessApprovalConfig.php new file mode 100644 index 000000000000..c464ccedc7b8 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProduct/AccessApprovalConfig.php @@ -0,0 +1,75 @@ +google.cloud.dataplex.v1.DataProduct.AccessApprovalConfig + */ +class AccessApprovalConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Specifies the email addresses of users who are potential + * approvers and are notified when an access request is made for the data + * product. The maximum number of emails allowed is 10. + * + * Generated from protobuf field repeated string approver_emails = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $approver_emails; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string[] $approver_emails + * Optional. Specifies the email addresses of users who are potential + * approvers and are notified when an access request is made for the data + * product. The maximum number of emails allowed is 10. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataProducts::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Specifies the email addresses of users who are potential + * approvers and are notified when an access request is made for the data + * product. The maximum number of emails allowed is 10. + * + * Generated from protobuf field repeated string approver_emails = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getApproverEmails() + { + return $this->approver_emails; + } + + /** + * Optional. Specifies the email addresses of users who are potential + * approvers and are notified when an access request is made for the data + * product. The maximum number of emails allowed is 10. + * + * Generated from protobuf field repeated string approver_emails = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setApproverEmails($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->approver_emails = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProduct/AccessGroup.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProduct/AccessGroup.php new file mode 100644 index 000000000000..2da3cafea48f --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProduct/AccessGroup.php @@ -0,0 +1,189 @@ +google.cloud.dataplex.v1.DataProduct.AccessGroup + */ +class AccessGroup extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Unique identifier of the access group within the data product. + * User defined. Eg. "analyst", "developer", etc. + * + * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $id = ''; + /** + * Required. User friendly display name of the access group. + * Eg. "Analyst", "Developer", etc. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = ''; + /** + * Optional. Description of the access group. + * + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Required. The principal entity associated with this access group. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataProduct.Principal principal = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $principal = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $id + * Required. Unique identifier of the access group within the data product. + * User defined. Eg. "analyst", "developer", etc. + * @type string $display_name + * Required. User friendly display name of the access group. + * Eg. "Analyst", "Developer", etc. + * @type string $description + * Optional. Description of the access group. + * @type \Google\Cloud\Dataplex\V1\DataProduct\Principal $principal + * Required. The principal entity associated with this access group. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataProducts::initOnce(); + parent::__construct($data); + } + + /** + * Required. Unique identifier of the access group within the data product. + * User defined. Eg. "analyst", "developer", etc. + * + * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getId() + { + return $this->id; + } + + /** + * Required. Unique identifier of the access group within the data product. + * User defined. Eg. "analyst", "developer", etc. + * + * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setId($var) + { + GPBUtil::checkString($var, True); + $this->id = $var; + + return $this; + } + + /** + * Required. User friendly display name of the access group. + * Eg. "Analyst", "Developer", etc. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Required. User friendly display name of the access group. + * Eg. "Analyst", "Developer", etc. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Optional. Description of the access group. + * + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. Description of the access group. + * + * 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. The principal entity associated with this access group. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataProduct.Principal principal = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\DataProduct\Principal|null + */ + public function getPrincipal() + { + return $this->principal; + } + + public function hasPrincipal() + { + return isset($this->principal); + } + + public function clearPrincipal() + { + unset($this->principal); + } + + /** + * Required. The principal entity associated with this access group. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataProduct.Principal principal = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\DataProduct\Principal $var + * @return $this + */ + public function setPrincipal($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataProduct\Principal::class); + $this->principal = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProduct/Principal.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProduct/Principal.php new file mode 100644 index 000000000000..558e897b2f80 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProduct/Principal.php @@ -0,0 +1,127 @@ +google.cloud.dataplex.v1.DataProduct.Principal + */ +class Principal extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Specifies the email of the producer service account, as per + * https://cloud.google.com/iam/docs/principals-overview#service-account. + * + * Generated from protobuf field optional string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $service_account = null; + protected $type; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $google_group + * Optional. Email of the Google Group, as per + * https://cloud.google.com/iam/docs/principals-overview#google-group. + * @type string $service_account + * Optional. Specifies the email of the producer service account, as per + * https://cloud.google.com/iam/docs/principals-overview#service-account. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataProducts::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Email of the Google Group, as per + * https://cloud.google.com/iam/docs/principals-overview#google-group. + * + * Generated from protobuf field string google_group = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getGoogleGroup() + { + return $this->readOneof(1); + } + + public function hasGoogleGroup() + { + return $this->hasOneof(1); + } + + /** + * Optional. Email of the Google Group, as per + * https://cloud.google.com/iam/docs/principals-overview#google-group. + * + * Generated from protobuf field string google_group = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setGoogleGroup($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Optional. Specifies the email of the producer service account, as per + * https://cloud.google.com/iam/docs/principals-overview#service-account. + * + * Generated from protobuf field optional string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getServiceAccount() + { + return isset($this->service_account) ? $this->service_account : ''; + } + + public function hasServiceAccount() + { + return isset($this->service_account); + } + + public function clearServiceAccount() + { + unset($this->service_account); + } + + /** + * Optional. Specifies the email of the producer service account, as per + * https://cloud.google.com/iam/docs/principals-overview#service-account. + * + * Generated from protobuf field optional string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setServiceAccount($var) + { + GPBUtil::checkString($var, True); + $this->service_account = $var; + + return $this; + } + + /** + * @return string + */ + public function getType() + { + return $this->whichOneof("type"); + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProductAccessRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProductAccessRequest.php new file mode 100644 index 000000000000..f4fb431c0056 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProductAccessRequest.php @@ -0,0 +1,216 @@ +google.cloud.dataplex.v1.DataProductAccessRequest + */ +class DataProductAccessRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the data product. + * Format: + * projects/{project_number}/locations/{location_id}/dataProducts/{data_product_id} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The ID of the access group for which access is being requested. + * This corresponds to the unique identifier of the AccessGroup defined in the + * Data Product. + * + * Generated from protobuf field string access_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $access_group_id = ''; + /** + * Output only. The display name of the access group defined in the Data + * Product for which access is being requested. + * + * Generated from protobuf field string access_group_display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $access_group_display_name = ''; + /** + * Optional. The principal for which access is being requested in IAM format. + * If not specified, the requestor's principal will be used. + * Example: `serviceAccount:my-sa\@my-project.iam.gserviceaccount.com`. + * Only service account principals are currently supported. + * https://cloud.google.com/iam/docs/principal-identifiers + * + * Generated from protobuf field optional string requested_principal = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $requested_principal = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the data product. + * Format: + * projects/{project_number}/locations/{location_id}/dataProducts/{data_product_id} + * @type string $access_group_id + * Required. The ID of the access group for which access is being requested. + * This corresponds to the unique identifier of the AccessGroup defined in the + * Data Product. + * @type string $access_group_display_name + * Output only. The display name of the access group defined in the Data + * Product for which access is being requested. + * @type string $requested_principal + * Optional. The principal for which access is being requested in IAM format. + * If not specified, the requestor's principal will be used. + * Example: `serviceAccount:my-sa\@my-project.iam.gserviceaccount.com`. + * Only service account principals are currently supported. + * https://cloud.google.com/iam/docs/principal-identifiers + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\ApprovalWorkflow::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the data product. + * Format: + * projects/{project_number}/locations/{location_id}/dataProducts/{data_product_id} + * + * 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 resource name of the data product. + * Format: + * projects/{project_number}/locations/{location_id}/dataProducts/{data_product_id} + * + * 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 ID of the access group for which access is being requested. + * This corresponds to the unique identifier of the AccessGroup defined in the + * Data Product. + * + * Generated from protobuf field string access_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getAccessGroupId() + { + return $this->access_group_id; + } + + /** + * Required. The ID of the access group for which access is being requested. + * This corresponds to the unique identifier of the AccessGroup defined in the + * Data Product. + * + * Generated from protobuf field string access_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setAccessGroupId($var) + { + GPBUtil::checkString($var, True); + $this->access_group_id = $var; + + return $this; + } + + /** + * Output only. The display name of the access group defined in the Data + * Product for which access is being requested. + * + * Generated from protobuf field string access_group_display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getAccessGroupDisplayName() + { + return $this->access_group_display_name; + } + + /** + * Output only. The display name of the access group defined in the Data + * Product for which access is being requested. + * + * Generated from protobuf field string access_group_display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setAccessGroupDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->access_group_display_name = $var; + + return $this; + } + + /** + * Optional. The principal for which access is being requested in IAM format. + * If not specified, the requestor's principal will be used. + * Example: `serviceAccount:my-sa\@my-project.iam.gserviceaccount.com`. + * Only service account principals are currently supported. + * https://cloud.google.com/iam/docs/principal-identifiers + * + * Generated from protobuf field optional string requested_principal = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getRequestedPrincipal() + { + return isset($this->requested_principal) ? $this->requested_principal : ''; + } + + public function hasRequestedPrincipal() + { + return isset($this->requested_principal); + } + + public function clearRequestedPrincipal() + { + unset($this->requested_principal); + } + + /** + * Optional. The principal for which access is being requested in IAM format. + * If not specified, the requestor's principal will be used. + * Example: `serviceAccount:my-sa\@my-project.iam.gserviceaccount.com`. + * Only service account principals are currently supported. + * https://cloud.google.com/iam/docs/principal-identifiers + * + * Generated from protobuf field optional string requested_principal = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setRequestedPrincipal($var) + { + GPBUtil::checkString($var, True); + $this->requested_principal = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult.php new file mode 100644 index 000000000000..eca24397eb00 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult.php @@ -0,0 +1,248 @@ +google.cloud.dataplex.v1.DataProfileResult + */ +class DataProfileResult extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The count of rows scanned. + * + * Generated from protobuf field int64 row_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $row_count = 0; + /** + * Output only. The profile information per field. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileResult.Profile profile = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $profile = null; + /** + * Output only. The data scanned for this result. + * + * Generated from protobuf field .google.cloud.dataplex.v1.ScannedData scanned_data = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $scanned_data = null; + /** + * Output only. The result of post scan actions. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult post_scan_actions_result = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $post_scan_actions_result = null; + /** + * Output only. The status of publishing the data scan as Dataplex Universal + * Catalog metadata. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScanCatalogPublishingStatus catalog_publishing_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $catalog_publishing_status = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $row_count + * Output only. The count of rows scanned. + * @type \Google\Cloud\Dataplex\V1\DataProfileResult\Profile $profile + * Output only. The profile information per field. + * @type \Google\Cloud\Dataplex\V1\ScannedData $scanned_data + * Output only. The data scanned for this result. + * @type \Google\Cloud\Dataplex\V1\DataProfileResult\PostScanActionsResult $post_scan_actions_result + * Output only. The result of post scan actions. + * @type \Google\Cloud\Dataplex\V1\DataScanCatalogPublishingStatus $catalog_publishing_status + * Output only. The status of publishing the data scan as Dataplex Universal + * Catalog metadata. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataProfile::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The count of rows scanned. + * + * Generated from protobuf field int64 row_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getRowCount() + { + return $this->row_count; + } + + /** + * Output only. The count of rows scanned. + * + * Generated from protobuf field int64 row_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setRowCount($var) + { + GPBUtil::checkInt64($var); + $this->row_count = $var; + + return $this; + } + + /** + * Output only. The profile information per field. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileResult.Profile profile = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataplex\V1\DataProfileResult\Profile|null + */ + public function getProfile() + { + return $this->profile; + } + + public function hasProfile() + { + return isset($this->profile); + } + + public function clearProfile() + { + unset($this->profile); + } + + /** + * Output only. The profile information per field. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileResult.Profile profile = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\DataProfileResult\Profile $var + * @return $this + */ + public function setProfile($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataProfileResult\Profile::class); + $this->profile = $var; + + return $this; + } + + /** + * Output only. The data scanned for this result. + * + * Generated from protobuf field .google.cloud.dataplex.v1.ScannedData scanned_data = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataplex\V1\ScannedData|null + */ + public function getScannedData() + { + return $this->scanned_data; + } + + public function hasScannedData() + { + return isset($this->scanned_data); + } + + public function clearScannedData() + { + unset($this->scanned_data); + } + + /** + * Output only. The data scanned for this result. + * + * Generated from protobuf field .google.cloud.dataplex.v1.ScannedData scanned_data = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\ScannedData $var + * @return $this + */ + public function setScannedData($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\ScannedData::class); + $this->scanned_data = $var; + + return $this; + } + + /** + * Output only. The result of post scan actions. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult post_scan_actions_result = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataplex\V1\DataProfileResult\PostScanActionsResult|null + */ + public function getPostScanActionsResult() + { + return $this->post_scan_actions_result; + } + + public function hasPostScanActionsResult() + { + return isset($this->post_scan_actions_result); + } + + public function clearPostScanActionsResult() + { + unset($this->post_scan_actions_result); + } + + /** + * Output only. The result of post scan actions. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult post_scan_actions_result = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\DataProfileResult\PostScanActionsResult $var + * @return $this + */ + public function setPostScanActionsResult($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataProfileResult\PostScanActionsResult::class); + $this->post_scan_actions_result = $var; + + return $this; + } + + /** + * Output only. The status of publishing the data scan as Dataplex Universal + * Catalog metadata. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScanCatalogPublishingStatus catalog_publishing_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataplex\V1\DataScanCatalogPublishingStatus|null + */ + public function getCatalogPublishingStatus() + { + return $this->catalog_publishing_status; + } + + public function hasCatalogPublishingStatus() + { + return isset($this->catalog_publishing_status); + } + + public function clearCatalogPublishingStatus() + { + unset($this->catalog_publishing_status); + } + + /** + * Output only. The status of publishing the data scan as Dataplex Universal + * Catalog metadata. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScanCatalogPublishingStatus catalog_publishing_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\DataScanCatalogPublishingStatus $var + * @return $this + */ + public function setCatalogPublishingStatus($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataScanCatalogPublishingStatus::class); + $this->catalog_publishing_status = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/PostScanActionsResult.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/PostScanActionsResult.php new file mode 100644 index 000000000000..d3f47fdd9fdd --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/PostScanActionsResult.php @@ -0,0 +1,77 @@ +google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult + */ +class PostScanActionsResult extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The result of BigQuery export post scan action. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult bigquery_export_result = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $bigquery_export_result = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\DataProfileResult\PostScanActionsResult\BigQueryExportResult $bigquery_export_result + * Output only. The result of BigQuery export post scan action. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataProfile::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The result of BigQuery export post scan action. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult bigquery_export_result = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataplex\V1\DataProfileResult\PostScanActionsResult\BigQueryExportResult|null + */ + public function getBigqueryExportResult() + { + return $this->bigquery_export_result; + } + + public function hasBigqueryExportResult() + { + return isset($this->bigquery_export_result); + } + + public function clearBigqueryExportResult() + { + unset($this->bigquery_export_result); + } + + /** + * Output only. The result of BigQuery export post scan action. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult bigquery_export_result = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\DataProfileResult\PostScanActionsResult\BigQueryExportResult $var + * @return $this + */ + public function setBigqueryExportResult($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataProfileResult\PostScanActionsResult\BigQueryExportResult::class); + $this->bigquery_export_result = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/PostScanActionsResult/BigQueryExportResult.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/PostScanActionsResult/BigQueryExportResult.php new file mode 100644 index 000000000000..fda915947774 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/PostScanActionsResult/BigQueryExportResult.php @@ -0,0 +1,101 @@ +google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult + */ +class BigQueryExportResult extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Execution state for the BigQuery exporting. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Output only. Additional information about the BigQuery exporting. + * + * Generated from protobuf field string message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $message = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $state + * Output only. Execution state for the BigQuery exporting. + * @type string $message + * Output only. Additional information about the BigQuery exporting. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataProfile::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Execution state for the BigQuery exporting. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. Execution state for the BigQuery exporting. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\DataProfileResult\PostScanActionsResult\BigQueryExportResult\State::class); + $this->state = $var; + + return $this; + } + + /** + * Output only. Additional information about the BigQuery exporting. + * + * Generated from protobuf field string message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getMessage() + { + return $this->message; + } + + /** + * Output only. Additional information about the BigQuery exporting. + * + * Generated from protobuf field string message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkString($var, True); + $this->message = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/PostScanActionsResult/BigQueryExportResult/State.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/PostScanActionsResult/BigQueryExportResult/State.php new file mode 100644 index 000000000000..64e863f03021 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/PostScanActionsResult/BigQueryExportResult/State.php @@ -0,0 +1,69 @@ +google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult.State + */ +class State +{ + /** + * The exporting state is unspecified. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * The exporting completed successfully. + * + * Generated from protobuf enum SUCCEEDED = 1; + */ + const SUCCEEDED = 1; + /** + * The exporting is no longer running due to an error. + * + * Generated from protobuf enum FAILED = 2; + */ + const FAILED = 2; + /** + * The exporting is skipped due to no valid scan result to export + * (usually caused by scan failed). + * + * Generated from protobuf enum SKIPPED = 3; + */ + const SKIPPED = 3; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::SUCCEEDED => 'SUCCEEDED', + self::FAILED => 'FAILED', + self::SKIPPED => 'SKIPPED', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile.php new file mode 100644 index 000000000000..d88b04767219 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile.php @@ -0,0 +1,71 @@ +google.cloud.dataplex.v1.DataProfileResult.Profile + */ +class Profile extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. List of fields with structural and profile information for + * each field. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $fields; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\DataProfileResult\Profile\Field[] $fields + * Output only. List of fields with structural and profile information for + * each field. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataProfile::initOnce(); + parent::__construct($data); + } + + /** + * Output only. List of fields with structural and profile information for + * each field. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField<\Google\Cloud\Dataplex\V1\DataProfileResult\Profile\Field> + */ + public function getFields() + { + return $this->fields; + } + + /** + * Output only. List of fields with structural and profile information for + * each field. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\DataProfileResult\Profile\Field[] $var + * @return $this + */ + public function setFields($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\DataProfileResult\Profile\Field::class); + $this->fields = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile/Field.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile/Field.php new file mode 100644 index 000000000000..198ed77a713f --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile/Field.php @@ -0,0 +1,211 @@ +google.cloud.dataplex.v1.DataProfileResult.Profile.Field + */ +class Field extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The name of the field. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Output only. The data type retrieved from the schema of the data + * source. For instance, for a BigQuery native table, it is the [BigQuery + * Table + * Schema](https://cloud.google.com/bigquery/docs/reference/rest/v2/tables#tablefieldschema). + * For a Dataplex Universal Catalog Entity, it is the [Entity + * Schema](https://cloud.google.com/dataplex/docs/reference/rpc/google.cloud.dataplex.v1#type_3). + * + * Generated from protobuf field string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $type = ''; + /** + * Output only. The mode of the field. Possible values include: + * * REQUIRED, if it is a required field. + * * NULLABLE, if it is an optional field. + * * REPEATED, if it is a repeated field. + * + * Generated from protobuf field string mode = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $mode = ''; + /** + * Output only. Profile information for the corresponding field. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo profile = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $profile = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. The name of the field. + * @type string $type + * Output only. The data type retrieved from the schema of the data + * source. For instance, for a BigQuery native table, it is the [BigQuery + * Table + * Schema](https://cloud.google.com/bigquery/docs/reference/rest/v2/tables#tablefieldschema). + * For a Dataplex Universal Catalog Entity, it is the [Entity + * Schema](https://cloud.google.com/dataplex/docs/reference/rpc/google.cloud.dataplex.v1#type_3). + * @type string $mode + * Output only. The mode of the field. Possible values include: + * * REQUIRED, if it is a required field. + * * NULLABLE, if it is an optional field. + * * REPEATED, if it is a repeated field. + * @type \Google\Cloud\Dataplex\V1\DataProfileResult\Profile\Field\ProfileInfo $profile + * Output only. Profile information for the corresponding field. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataProfile::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The name of the field. + * + * 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 field. + * + * 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 data type retrieved from the schema of the data + * source. For instance, for a BigQuery native table, it is the [BigQuery + * Table + * Schema](https://cloud.google.com/bigquery/docs/reference/rest/v2/tables#tablefieldschema). + * For a Dataplex Universal Catalog Entity, it is the [Entity + * Schema](https://cloud.google.com/dataplex/docs/reference/rpc/google.cloud.dataplex.v1#type_3). + * + * Generated from protobuf field string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getType() + { + return $this->type; + } + + /** + * Output only. The data type retrieved from the schema of the data + * source. For instance, for a BigQuery native table, it is the [BigQuery + * Table + * Schema](https://cloud.google.com/bigquery/docs/reference/rest/v2/tables#tablefieldschema). + * For a Dataplex Universal Catalog Entity, it is the [Entity + * Schema](https://cloud.google.com/dataplex/docs/reference/rpc/google.cloud.dataplex.v1#type_3). + * + * Generated from protobuf field string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkString($var, True); + $this->type = $var; + + return $this; + } + + /** + * Output only. The mode of the field. Possible values include: + * * REQUIRED, if it is a required field. + * * NULLABLE, if it is an optional field. + * * REPEATED, if it is a repeated field. + * + * Generated from protobuf field string mode = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getMode() + { + return $this->mode; + } + + /** + * Output only. The mode of the field. Possible values include: + * * REQUIRED, if it is a required field. + * * NULLABLE, if it is an optional field. + * * REPEATED, if it is a repeated field. + * + * Generated from protobuf field string mode = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setMode($var) + { + GPBUtil::checkString($var, True); + $this->mode = $var; + + return $this; + } + + /** + * Output only. Profile information for the corresponding field. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo profile = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataplex\V1\DataProfileResult\Profile\Field\ProfileInfo|null + */ + public function getProfile() + { + return $this->profile; + } + + public function hasProfile() + { + return isset($this->profile); + } + + public function clearProfile() + { + unset($this->profile); + } + + /** + * Output only. Profile information for the corresponding field. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo profile = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\DataProfileResult\Profile\Field\ProfileInfo $var + * @return $this + */ + public function setProfile($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataProfileResult\Profile\Field\ProfileInfo::class); + $this->profile = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile/Field/ProfileInfo.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile/Field/ProfileInfo.php new file mode 100644 index 000000000000..f880d6be35fb --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile/Field/ProfileInfo.php @@ -0,0 +1,275 @@ +google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo + */ +class ProfileInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Ratio of rows with null value against total scanned + * rows. + * + * Generated from protobuf field double null_ratio = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $null_ratio = 0.0; + /** + * Output only. Ratio of rows with distinct values against total scanned + * rows. Not available for complex non-groupable field type, including + * RECORD, ARRAY, GEOGRAPHY, and JSON, as well as fields with REPEATABLE + * mode. + * + * Generated from protobuf field double distinct_ratio = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $distinct_ratio = 0.0; + /** + * Output only. The list of top N non-null values, frequency and ratio + * with which they occur in the scanned data. N is 10 or equal to the + * number of distinct values in the field, whichever is smaller. Not + * available for complex non-groupable field type, including RECORD, + * ARRAY, GEOGRAPHY, and JSON, as well as fields with REPEATABLE mode. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $top_n_values; + protected $field_info; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type float $null_ratio + * Output only. Ratio of rows with null value against total scanned + * rows. + * @type float $distinct_ratio + * Output only. Ratio of rows with distinct values against total scanned + * rows. Not available for complex non-groupable field type, including + * RECORD, ARRAY, GEOGRAPHY, and JSON, as well as fields with REPEATABLE + * mode. + * @type \Google\Cloud\Dataplex\V1\DataProfileResult\Profile\Field\ProfileInfo\TopNValue[] $top_n_values + * Output only. The list of top N non-null values, frequency and ratio + * with which they occur in the scanned data. N is 10 or equal to the + * number of distinct values in the field, whichever is smaller. Not + * available for complex non-groupable field type, including RECORD, + * ARRAY, GEOGRAPHY, and JSON, as well as fields with REPEATABLE mode. + * @type \Google\Cloud\Dataplex\V1\DataProfileResult\Profile\Field\ProfileInfo\StringFieldInfo $string_profile + * String type field information. + * @type \Google\Cloud\Dataplex\V1\DataProfileResult\Profile\Field\ProfileInfo\IntegerFieldInfo $integer_profile + * Integer type field information. + * @type \Google\Cloud\Dataplex\V1\DataProfileResult\Profile\Field\ProfileInfo\DoubleFieldInfo $double_profile + * Double type field information. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataProfile::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Ratio of rows with null value against total scanned + * rows. + * + * Generated from protobuf field double null_ratio = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return float + */ + public function getNullRatio() + { + return $this->null_ratio; + } + + /** + * Output only. Ratio of rows with null value against total scanned + * rows. + * + * Generated from protobuf field double null_ratio = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param float $var + * @return $this + */ + public function setNullRatio($var) + { + GPBUtil::checkDouble($var); + $this->null_ratio = $var; + + return $this; + } + + /** + * Output only. Ratio of rows with distinct values against total scanned + * rows. Not available for complex non-groupable field type, including + * RECORD, ARRAY, GEOGRAPHY, and JSON, as well as fields with REPEATABLE + * mode. + * + * Generated from protobuf field double distinct_ratio = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return float + */ + public function getDistinctRatio() + { + return $this->distinct_ratio; + } + + /** + * Output only. Ratio of rows with distinct values against total scanned + * rows. Not available for complex non-groupable field type, including + * RECORD, ARRAY, GEOGRAPHY, and JSON, as well as fields with REPEATABLE + * mode. + * + * Generated from protobuf field double distinct_ratio = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param float $var + * @return $this + */ + public function setDistinctRatio($var) + { + GPBUtil::checkDouble($var); + $this->distinct_ratio = $var; + + return $this; + } + + /** + * Output only. The list of top N non-null values, frequency and ratio + * with which they occur in the scanned data. N is 10 or equal to the + * number of distinct values in the field, whichever is smaller. Not + * available for complex non-groupable field type, including RECORD, + * ARRAY, GEOGRAPHY, and JSON, as well as fields with REPEATABLE mode. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField<\Google\Cloud\Dataplex\V1\DataProfileResult\Profile\Field\ProfileInfo\TopNValue> + */ + public function getTopNValues() + { + return $this->top_n_values; + } + + /** + * Output only. The list of top N non-null values, frequency and ratio + * with which they occur in the scanned data. N is 10 or equal to the + * number of distinct values in the field, whichever is smaller. Not + * available for complex non-groupable field type, including RECORD, + * ARRAY, GEOGRAPHY, and JSON, as well as fields with REPEATABLE mode. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\DataProfileResult\Profile\Field\ProfileInfo\TopNValue[] $var + * @return $this + */ + public function setTopNValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\DataProfileResult\Profile\Field\ProfileInfo\TopNValue::class); + $this->top_n_values = $arr; + + return $this; + } + + /** + * String type field information. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo string_profile = 101; + * @return \Google\Cloud\Dataplex\V1\DataProfileResult\Profile\Field\ProfileInfo\StringFieldInfo|null + */ + public function getStringProfile() + { + return $this->readOneof(101); + } + + public function hasStringProfile() + { + return $this->hasOneof(101); + } + + /** + * String type field information. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo string_profile = 101; + * @param \Google\Cloud\Dataplex\V1\DataProfileResult\Profile\Field\ProfileInfo\StringFieldInfo $var + * @return $this + */ + public function setStringProfile($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataProfileResult\Profile\Field\ProfileInfo\StringFieldInfo::class); + $this->writeOneof(101, $var); + + return $this; + } + + /** + * Integer type field information. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfo integer_profile = 102; + * @return \Google\Cloud\Dataplex\V1\DataProfileResult\Profile\Field\ProfileInfo\IntegerFieldInfo|null + */ + public function getIntegerProfile() + { + return $this->readOneof(102); + } + + public function hasIntegerProfile() + { + return $this->hasOneof(102); + } + + /** + * Integer type field information. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfo integer_profile = 102; + * @param \Google\Cloud\Dataplex\V1\DataProfileResult\Profile\Field\ProfileInfo\IntegerFieldInfo $var + * @return $this + */ + public function setIntegerProfile($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataProfileResult\Profile\Field\ProfileInfo\IntegerFieldInfo::class); + $this->writeOneof(102, $var); + + return $this; + } + + /** + * Double type field information. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo double_profile = 103; + * @return \Google\Cloud\Dataplex\V1\DataProfileResult\Profile\Field\ProfileInfo\DoubleFieldInfo|null + */ + public function getDoubleProfile() + { + return $this->readOneof(103); + } + + public function hasDoubleProfile() + { + return $this->hasOneof(103); + } + + /** + * Double type field information. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo double_profile = 103; + * @param \Google\Cloud\Dataplex\V1\DataProfileResult\Profile\Field\ProfileInfo\DoubleFieldInfo $var + * @return $this + */ + public function setDoubleProfile($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataProfileResult\Profile\Field\ProfileInfo\DoubleFieldInfo::class); + $this->writeOneof(103, $var); + + return $this; + } + + /** + * @return string + */ + public function getFieldInfo() + { + return $this->whichOneof("field_info"); + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile/Field/ProfileInfo/DoubleFieldInfo.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile/Field/ProfileInfo/DoubleFieldInfo.php new file mode 100644 index 000000000000..56873bbbd665 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile/Field/ProfileInfo/DoubleFieldInfo.php @@ -0,0 +1,263 @@ +google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo + */ +class DoubleFieldInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Average of non-null values in the scanned data. NaN, + * if the field has a NaN. + * + * Generated from protobuf field double average = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $average = 0.0; + /** + * Output only. Standard deviation of non-null values in the scanned + * data. NaN, if the field has a NaN. + * + * Generated from protobuf field double standard_deviation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $standard_deviation = 0.0; + /** + * Output only. Minimum of non-null values in the scanned data. NaN, + * if the field has a NaN. + * + * Generated from protobuf field double min = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $min = 0.0; + /** + * Output only. A quartile divides the number of data points into four + * parts, or quarters, of more-or-less equal size. Three main + * quartiles used are: The first quartile (Q1) splits off the lowest + * 25% of data from the highest 75%. It is also known as the lower or + * 25th empirical quartile, as 25% of the data is below this point. + * The second quartile (Q2) is the median of a data set. So, 50% of + * the data lies below this point. The third quartile (Q3) splits off + * the highest 25% of data from the lowest 75%. It is known as the + * upper or 75th empirical quartile, as 75% of the data lies below + * this point. Here, the quartiles is provided as an ordered list of + * quartile values for the scanned data, occurring in order Q1, + * median, Q3. + * + * Generated from protobuf field repeated double quartiles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $quartiles; + /** + * Output only. Maximum of non-null values in the scanned data. NaN, + * if the field has a NaN. + * + * Generated from protobuf field double max = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $max = 0.0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type float $average + * Output only. Average of non-null values in the scanned data. NaN, + * if the field has a NaN. + * @type float $standard_deviation + * Output only. Standard deviation of non-null values in the scanned + * data. NaN, if the field has a NaN. + * @type float $min + * Output only. Minimum of non-null values in the scanned data. NaN, + * if the field has a NaN. + * @type float[] $quartiles + * Output only. A quartile divides the number of data points into four + * parts, or quarters, of more-or-less equal size. Three main + * quartiles used are: The first quartile (Q1) splits off the lowest + * 25% of data from the highest 75%. It is also known as the lower or + * 25th empirical quartile, as 25% of the data is below this point. + * The second quartile (Q2) is the median of a data set. So, 50% of + * the data lies below this point. The third quartile (Q3) splits off + * the highest 25% of data from the lowest 75%. It is known as the + * upper or 75th empirical quartile, as 75% of the data lies below + * this point. Here, the quartiles is provided as an ordered list of + * quartile values for the scanned data, occurring in order Q1, + * median, Q3. + * @type float $max + * Output only. Maximum of non-null values in the scanned data. NaN, + * if the field has a NaN. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataProfile::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Average of non-null values in the scanned data. NaN, + * if the field has a NaN. + * + * Generated from protobuf field double average = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return float + */ + public function getAverage() + { + return $this->average; + } + + /** + * Output only. Average of non-null values in the scanned data. NaN, + * if the field has a NaN. + * + * Generated from protobuf field double average = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param float $var + * @return $this + */ + public function setAverage($var) + { + GPBUtil::checkDouble($var); + $this->average = $var; + + return $this; + } + + /** + * Output only. Standard deviation of non-null values in the scanned + * data. NaN, if the field has a NaN. + * + * Generated from protobuf field double standard_deviation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return float + */ + public function getStandardDeviation() + { + return $this->standard_deviation; + } + + /** + * Output only. Standard deviation of non-null values in the scanned + * data. NaN, if the field has a NaN. + * + * Generated from protobuf field double standard_deviation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param float $var + * @return $this + */ + public function setStandardDeviation($var) + { + GPBUtil::checkDouble($var); + $this->standard_deviation = $var; + + return $this; + } + + /** + * Output only. Minimum of non-null values in the scanned data. NaN, + * if the field has a NaN. + * + * Generated from protobuf field double min = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return float + */ + public function getMin() + { + return $this->min; + } + + /** + * Output only. Minimum of non-null values in the scanned data. NaN, + * if the field has a NaN. + * + * Generated from protobuf field double min = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param float $var + * @return $this + */ + public function setMin($var) + { + GPBUtil::checkDouble($var); + $this->min = $var; + + return $this; + } + + /** + * Output only. A quartile divides the number of data points into four + * parts, or quarters, of more-or-less equal size. Three main + * quartiles used are: The first quartile (Q1) splits off the lowest + * 25% of data from the highest 75%. It is also known as the lower or + * 25th empirical quartile, as 25% of the data is below this point. + * The second quartile (Q2) is the median of a data set. So, 50% of + * the data lies below this point. The third quartile (Q3) splits off + * the highest 25% of data from the lowest 75%. It is known as the + * upper or 75th empirical quartile, as 75% of the data lies below + * this point. Here, the quartiles is provided as an ordered list of + * quartile values for the scanned data, occurring in order Q1, + * median, Q3. + * + * Generated from protobuf field repeated double quartiles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField + */ + public function getQuartiles() + { + return $this->quartiles; + } + + /** + * Output only. A quartile divides the number of data points into four + * parts, or quarters, of more-or-less equal size. Three main + * quartiles used are: The first quartile (Q1) splits off the lowest + * 25% of data from the highest 75%. It is also known as the lower or + * 25th empirical quartile, as 25% of the data is below this point. + * The second quartile (Q2) is the median of a data set. So, 50% of + * the data lies below this point. The third quartile (Q3) splits off + * the highest 25% of data from the lowest 75%. It is known as the + * upper or 75th empirical quartile, as 75% of the data lies below + * this point. Here, the quartiles is provided as an ordered list of + * quartile values for the scanned data, occurring in order Q1, + * median, Q3. + * + * Generated from protobuf field repeated double quartiles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param float[] $var + * @return $this + */ + public function setQuartiles($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::DOUBLE); + $this->quartiles = $arr; + + return $this; + } + + /** + * Output only. Maximum of non-null values in the scanned data. NaN, + * if the field has a NaN. + * + * Generated from protobuf field double max = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return float + */ + public function getMax() + { + return $this->max; + } + + /** + * Output only. Maximum of non-null values in the scanned data. NaN, + * if the field has a NaN. + * + * Generated from protobuf field double max = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param float $var + * @return $this + */ + public function setMax($var) + { + GPBUtil::checkDouble($var); + $this->max = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile/Field/ProfileInfo/IntegerFieldInfo.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile/Field/ProfileInfo/IntegerFieldInfo.php new file mode 100644 index 000000000000..4e9b76e9de51 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile/Field/ProfileInfo/IntegerFieldInfo.php @@ -0,0 +1,263 @@ +google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfo + */ +class IntegerFieldInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Average of non-null values in the scanned data. NaN, + * if the field has a NaN. + * + * Generated from protobuf field double average = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $average = 0.0; + /** + * Output only. Standard deviation of non-null values in the scanned + * data. NaN, if the field has a NaN. + * + * Generated from protobuf field double standard_deviation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $standard_deviation = 0.0; + /** + * Output only. Minimum of non-null values in the scanned data. NaN, + * if the field has a NaN. + * + * Generated from protobuf field int64 min = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $min = 0; + /** + * Output only. A quartile divides the number of data points into four + * parts, or quarters, of more-or-less equal size. Three main + * quartiles used are: The first quartile (Q1) splits off the lowest + * 25% of data from the highest 75%. It is also known as the lower or + * 25th empirical quartile, as 25% of the data is below this point. + * The second quartile (Q2) is the median of a data set. So, 50% of + * the data lies below this point. The third quartile (Q3) splits off + * the highest 25% of data from the lowest 75%. It is known as the + * upper or 75th empirical quartile, as 75% of the data lies below + * this point. Here, the quartiles is provided as an ordered list of + * approximate quartile values for the scanned data, occurring in + * order Q1, median, Q3. + * + * Generated from protobuf field repeated int64 quartiles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $quartiles; + /** + * Output only. Maximum of non-null values in the scanned data. NaN, + * if the field has a NaN. + * + * Generated from protobuf field int64 max = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $max = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type float $average + * Output only. Average of non-null values in the scanned data. NaN, + * if the field has a NaN. + * @type float $standard_deviation + * Output only. Standard deviation of non-null values in the scanned + * data. NaN, if the field has a NaN. + * @type int|string $min + * Output only. Minimum of non-null values in the scanned data. NaN, + * if the field has a NaN. + * @type int[]|string[] $quartiles + * Output only. A quartile divides the number of data points into four + * parts, or quarters, of more-or-less equal size. Three main + * quartiles used are: The first quartile (Q1) splits off the lowest + * 25% of data from the highest 75%. It is also known as the lower or + * 25th empirical quartile, as 25% of the data is below this point. + * The second quartile (Q2) is the median of a data set. So, 50% of + * the data lies below this point. The third quartile (Q3) splits off + * the highest 25% of data from the lowest 75%. It is known as the + * upper or 75th empirical quartile, as 75% of the data lies below + * this point. Here, the quartiles is provided as an ordered list of + * approximate quartile values for the scanned data, occurring in + * order Q1, median, Q3. + * @type int|string $max + * Output only. Maximum of non-null values in the scanned data. NaN, + * if the field has a NaN. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataProfile::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Average of non-null values in the scanned data. NaN, + * if the field has a NaN. + * + * Generated from protobuf field double average = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return float + */ + public function getAverage() + { + return $this->average; + } + + /** + * Output only. Average of non-null values in the scanned data. NaN, + * if the field has a NaN. + * + * Generated from protobuf field double average = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param float $var + * @return $this + */ + public function setAverage($var) + { + GPBUtil::checkDouble($var); + $this->average = $var; + + return $this; + } + + /** + * Output only. Standard deviation of non-null values in the scanned + * data. NaN, if the field has a NaN. + * + * Generated from protobuf field double standard_deviation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return float + */ + public function getStandardDeviation() + { + return $this->standard_deviation; + } + + /** + * Output only. Standard deviation of non-null values in the scanned + * data. NaN, if the field has a NaN. + * + * Generated from protobuf field double standard_deviation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param float $var + * @return $this + */ + public function setStandardDeviation($var) + { + GPBUtil::checkDouble($var); + $this->standard_deviation = $var; + + return $this; + } + + /** + * Output only. Minimum of non-null values in the scanned data. NaN, + * if the field has a NaN. + * + * Generated from protobuf field int64 min = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getMin() + { + return $this->min; + } + + /** + * Output only. Minimum of non-null values in the scanned data. NaN, + * if the field has a NaN. + * + * Generated from protobuf field int64 min = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setMin($var) + { + GPBUtil::checkInt64($var); + $this->min = $var; + + return $this; + } + + /** + * Output only. A quartile divides the number of data points into four + * parts, or quarters, of more-or-less equal size. Three main + * quartiles used are: The first quartile (Q1) splits off the lowest + * 25% of data from the highest 75%. It is also known as the lower or + * 25th empirical quartile, as 25% of the data is below this point. + * The second quartile (Q2) is the median of a data set. So, 50% of + * the data lies below this point. The third quartile (Q3) splits off + * the highest 25% of data from the lowest 75%. It is known as the + * upper or 75th empirical quartile, as 75% of the data lies below + * this point. Here, the quartiles is provided as an ordered list of + * approximate quartile values for the scanned data, occurring in + * order Q1, median, Q3. + * + * Generated from protobuf field repeated int64 quartiles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField|RepeatedField + */ + public function getQuartiles() + { + return $this->quartiles; + } + + /** + * Output only. A quartile divides the number of data points into four + * parts, or quarters, of more-or-less equal size. Three main + * quartiles used are: The first quartile (Q1) splits off the lowest + * 25% of data from the highest 75%. It is also known as the lower or + * 25th empirical quartile, as 25% of the data is below this point. + * The second quartile (Q2) is the median of a data set. So, 50% of + * the data lies below this point. The third quartile (Q3) splits off + * the highest 25% of data from the lowest 75%. It is known as the + * upper or 75th empirical quartile, as 75% of the data lies below + * this point. Here, the quartiles is provided as an ordered list of + * approximate quartile values for the scanned data, occurring in + * order Q1, median, Q3. + * + * Generated from protobuf field repeated int64 quartiles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int[]|string[] $var + * @return $this + */ + public function setQuartiles($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT64); + $this->quartiles = $arr; + + return $this; + } + + /** + * Output only. Maximum of non-null values in the scanned data. NaN, + * if the field has a NaN. + * + * Generated from protobuf field int64 max = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getMax() + { + return $this->max; + } + + /** + * Output only. Maximum of non-null values in the scanned data. NaN, + * if the field has a NaN. + * + * Generated from protobuf field int64 max = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setMax($var) + { + GPBUtil::checkInt64($var); + $this->max = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile/Field/ProfileInfo/StringFieldInfo.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile/Field/ProfileInfo/StringFieldInfo.php new file mode 100644 index 000000000000..cc23dceb39ca --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile/Field/ProfileInfo/StringFieldInfo.php @@ -0,0 +1,135 @@ +google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo + */ +class StringFieldInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Minimum length of non-null values in the scanned data. + * + * Generated from protobuf field int64 min_length = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $min_length = 0; + /** + * Output only. Maximum length of non-null values in the scanned data. + * + * Generated from protobuf field int64 max_length = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $max_length = 0; + /** + * Output only. Average length of non-null values in the scanned data. + * + * Generated from protobuf field double average_length = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $average_length = 0.0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $min_length + * Output only. Minimum length of non-null values in the scanned data. + * @type int|string $max_length + * Output only. Maximum length of non-null values in the scanned data. + * @type float $average_length + * Output only. Average length of non-null values in the scanned data. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataProfile::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Minimum length of non-null values in the scanned data. + * + * Generated from protobuf field int64 min_length = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getMinLength() + { + return $this->min_length; + } + + /** + * Output only. Minimum length of non-null values in the scanned data. + * + * Generated from protobuf field int64 min_length = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setMinLength($var) + { + GPBUtil::checkInt64($var); + $this->min_length = $var; + + return $this; + } + + /** + * Output only. Maximum length of non-null values in the scanned data. + * + * Generated from protobuf field int64 max_length = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getMaxLength() + { + return $this->max_length; + } + + /** + * Output only. Maximum length of non-null values in the scanned data. + * + * Generated from protobuf field int64 max_length = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setMaxLength($var) + { + GPBUtil::checkInt64($var); + $this->max_length = $var; + + return $this; + } + + /** + * Output only. Average length of non-null values in the scanned data. + * + * Generated from protobuf field double average_length = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return float + */ + public function getAverageLength() + { + return $this->average_length; + } + + /** + * Output only. Average length of non-null values in the scanned data. + * + * Generated from protobuf field double average_length = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param float $var + * @return $this + */ + public function setAverageLength($var) + { + GPBUtil::checkDouble($var); + $this->average_length = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile/Field/ProfileInfo/TopNValue.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile/Field/ProfileInfo/TopNValue.php new file mode 100644 index 000000000000..efda45c97d31 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile/Field/ProfileInfo/TopNValue.php @@ -0,0 +1,139 @@ +google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue + */ +class TopNValue extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. String value of a top N non-null value. + * + * Generated from protobuf field string value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $value = ''; + /** + * Output only. Count of the corresponding value in the scanned data. + * + * Generated from protobuf field int64 count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $count = 0; + /** + * Output only. Ratio of the corresponding value in the field against + * the total number of rows in the scanned data. + * + * Generated from protobuf field double ratio = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $ratio = 0.0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $value + * Output only. String value of a top N non-null value. + * @type int|string $count + * Output only. Count of the corresponding value in the scanned data. + * @type float $ratio + * Output only. Ratio of the corresponding value in the field against + * the total number of rows in the scanned data. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataProfile::initOnce(); + parent::__construct($data); + } + + /** + * Output only. String value of a top N non-null value. + * + * Generated from protobuf field string value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getValue() + { + return $this->value; + } + + /** + * Output only. String value of a top N non-null value. + * + * Generated from protobuf field string value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkString($var, True); + $this->value = $var; + + return $this; + } + + /** + * Output only. Count of the corresponding value in the scanned data. + * + * Generated from protobuf field int64 count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getCount() + { + return $this->count; + } + + /** + * Output only. Count of the corresponding value in the scanned data. + * + * Generated from protobuf field int64 count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setCount($var) + { + GPBUtil::checkInt64($var); + $this->count = $var; + + return $this; + } + + /** + * Output only. Ratio of the corresponding value in the field against + * the total number of rows in the scanned data. + * + * Generated from protobuf field double ratio = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return float + */ + public function getRatio() + { + return $this->ratio; + } + + /** + * Output only. Ratio of the corresponding value in the field against + * the total number of rows in the scanned data. + * + * Generated from protobuf field double ratio = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param float $var + * @return $this + */ + public function setRatio($var) + { + GPBUtil::checkDouble($var); + $this->ratio = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileSpec.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileSpec.php new file mode 100644 index 000000000000..c9f0f682394b --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileSpec.php @@ -0,0 +1,353 @@ +google.cloud.dataplex.v1.DataProfileSpec + */ +class DataProfileSpec extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The percentage of the records to be selected from the dataset for + * DataScan. + * * Value can range between 0.0 and 100.0 with up to 3 significant decimal + * digits. + * * Sampling is not applied if `sampling_percent` is not specified, 0 or + * 100. + * + * Generated from protobuf field float sampling_percent = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $sampling_percent = 0.0; + /** + * Optional. A filter applied to all rows in a single DataScan job. + * The filter needs to be a valid SQL expression for a WHERE clause in + * BigQuery standard SQL syntax. + * Example: col1 >= 0 AND col2 < 10 + * + * Generated from protobuf field string row_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $row_filter = ''; + /** + * Optional. Actions to take upon job completion.. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileSpec.PostScanActions post_scan_actions = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $post_scan_actions = null; + /** + * Optional. The fields to include in data profile. + * If not specified, all fields at the time of profile scan job execution are + * included, except for ones listed in `exclude_fields`. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileSpec.SelectedFields include_fields = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $include_fields = null; + /** + * Optional. The fields to exclude from data profile. + * If specified, the fields will be excluded from data profile, regardless of + * `include_fields` value. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileSpec.SelectedFields exclude_fields = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $exclude_fields = null; + /** + * Optional. If set, the latest DataScan job result will be published as + * Dataplex Universal Catalog metadata. + * + * Generated from protobuf field bool catalog_publishing_enabled = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $catalog_publishing_enabled = false; + /** + * Optional. The execution mode for the profile scan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileSpec.Mode mode = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $mode = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type float $sampling_percent + * Optional. The percentage of the records to be selected from the dataset for + * DataScan. + * * Value can range between 0.0 and 100.0 with up to 3 significant decimal + * digits. + * * Sampling is not applied if `sampling_percent` is not specified, 0 or + * 100. + * @type string $row_filter + * Optional. A filter applied to all rows in a single DataScan job. + * The filter needs to be a valid SQL expression for a WHERE clause in + * BigQuery standard SQL syntax. + * Example: col1 >= 0 AND col2 < 10 + * @type \Google\Cloud\Dataplex\V1\DataProfileSpec\PostScanActions $post_scan_actions + * Optional. Actions to take upon job completion.. + * @type \Google\Cloud\Dataplex\V1\DataProfileSpec\SelectedFields $include_fields + * Optional. The fields to include in data profile. + * If not specified, all fields at the time of profile scan job execution are + * included, except for ones listed in `exclude_fields`. + * @type \Google\Cloud\Dataplex\V1\DataProfileSpec\SelectedFields $exclude_fields + * Optional. The fields to exclude from data profile. + * If specified, the fields will be excluded from data profile, regardless of + * `include_fields` value. + * @type bool $catalog_publishing_enabled + * Optional. If set, the latest DataScan job result will be published as + * Dataplex Universal Catalog metadata. + * @type int $mode + * Optional. The execution mode for the profile scan. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataProfile::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The percentage of the records to be selected from the dataset for + * DataScan. + * * Value can range between 0.0 and 100.0 with up to 3 significant decimal + * digits. + * * Sampling is not applied if `sampling_percent` is not specified, 0 or + * 100. + * + * Generated from protobuf field float sampling_percent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return float + */ + public function getSamplingPercent() + { + return $this->sampling_percent; + } + + /** + * Optional. The percentage of the records to be selected from the dataset for + * DataScan. + * * Value can range between 0.0 and 100.0 with up to 3 significant decimal + * digits. + * * Sampling is not applied if `sampling_percent` is not specified, 0 or + * 100. + * + * Generated from protobuf field float sampling_percent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param float $var + * @return $this + */ + public function setSamplingPercent($var) + { + GPBUtil::checkFloat($var); + $this->sampling_percent = $var; + + return $this; + } + + /** + * Optional. A filter applied to all rows in a single DataScan job. + * The filter needs to be a valid SQL expression for a WHERE clause in + * BigQuery standard SQL syntax. + * Example: col1 >= 0 AND col2 < 10 + * + * Generated from protobuf field string row_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getRowFilter() + { + return $this->row_filter; + } + + /** + * Optional. A filter applied to all rows in a single DataScan job. + * The filter needs to be a valid SQL expression for a WHERE clause in + * BigQuery standard SQL syntax. + * Example: col1 >= 0 AND col2 < 10 + * + * Generated from protobuf field string row_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setRowFilter($var) + { + GPBUtil::checkString($var, True); + $this->row_filter = $var; + + return $this; + } + + /** + * Optional. Actions to take upon job completion.. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileSpec.PostScanActions post_scan_actions = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataplex\V1\DataProfileSpec\PostScanActions|null + */ + public function getPostScanActions() + { + return $this->post_scan_actions; + } + + public function hasPostScanActions() + { + return isset($this->post_scan_actions); + } + + public function clearPostScanActions() + { + unset($this->post_scan_actions); + } + + /** + * Optional. Actions to take upon job completion.. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileSpec.PostScanActions post_scan_actions = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataplex\V1\DataProfileSpec\PostScanActions $var + * @return $this + */ + public function setPostScanActions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataProfileSpec\PostScanActions::class); + $this->post_scan_actions = $var; + + return $this; + } + + /** + * Optional. The fields to include in data profile. + * If not specified, all fields at the time of profile scan job execution are + * included, except for ones listed in `exclude_fields`. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileSpec.SelectedFields include_fields = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataplex\V1\DataProfileSpec\SelectedFields|null + */ + public function getIncludeFields() + { + return $this->include_fields; + } + + public function hasIncludeFields() + { + return isset($this->include_fields); + } + + public function clearIncludeFields() + { + unset($this->include_fields); + } + + /** + * Optional. The fields to include in data profile. + * If not specified, all fields at the time of profile scan job execution are + * included, except for ones listed in `exclude_fields`. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileSpec.SelectedFields include_fields = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataplex\V1\DataProfileSpec\SelectedFields $var + * @return $this + */ + public function setIncludeFields($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataProfileSpec\SelectedFields::class); + $this->include_fields = $var; + + return $this; + } + + /** + * Optional. The fields to exclude from data profile. + * If specified, the fields will be excluded from data profile, regardless of + * `include_fields` value. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileSpec.SelectedFields exclude_fields = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataplex\V1\DataProfileSpec\SelectedFields|null + */ + public function getExcludeFields() + { + return $this->exclude_fields; + } + + public function hasExcludeFields() + { + return isset($this->exclude_fields); + } + + public function clearExcludeFields() + { + unset($this->exclude_fields); + } + + /** + * Optional. The fields to exclude from data profile. + * If specified, the fields will be excluded from data profile, regardless of + * `include_fields` value. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileSpec.SelectedFields exclude_fields = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataplex\V1\DataProfileSpec\SelectedFields $var + * @return $this + */ + public function setExcludeFields($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataProfileSpec\SelectedFields::class); + $this->exclude_fields = $var; + + return $this; + } + + /** + * Optional. If set, the latest DataScan job result will be published as + * Dataplex Universal Catalog metadata. + * + * Generated from protobuf field bool catalog_publishing_enabled = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getCatalogPublishingEnabled() + { + return $this->catalog_publishing_enabled; + } + + /** + * Optional. If set, the latest DataScan job result will be published as + * Dataplex Universal Catalog metadata. + * + * Generated from protobuf field bool catalog_publishing_enabled = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setCatalogPublishingEnabled($var) + { + GPBUtil::checkBool($var); + $this->catalog_publishing_enabled = $var; + + return $this; + } + + /** + * Optional. The execution mode for the profile scan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileSpec.Mode mode = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getMode() + { + return $this->mode; + } + + /** + * Optional. The execution mode for the profile scan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileSpec.Mode mode = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setMode($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\DataProfileSpec\Mode::class); + $this->mode = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileSpec/Mode.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileSpec/Mode.php new file mode 100644 index 000000000000..ae4854e6c3b1 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileSpec/Mode.php @@ -0,0 +1,66 @@ +google.cloud.dataplex.v1.DataProfileSpec.Mode + */ +class Mode +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum MODE_UNSPECIFIED = 0; + */ + const MODE_UNSPECIFIED = 0; + /** + * Performs standard profiling. The behavior is controlled by other fields + * such as `sampling_percent`, `row_filter`, and column filters. + * This mode allows for full scans or custom sampling. + * + * Generated from protobuf enum STANDARD = 1; + */ + const STANDARD = 1; + /** + * Specifies lightweight profiling mode. This mode is optimized for + * low-latency, low-fidelity profiling. + * When this mode is selected, the following fields must not be set: + * `sampling_percent`, `row_filter`, `include_fields`, and `exclude_fields`. + * + * Generated from protobuf enum LIGHTWEIGHT = 2; + */ + const LIGHTWEIGHT = 2; + + private static $valueToName = [ + self::MODE_UNSPECIFIED => 'MODE_UNSPECIFIED', + self::STANDARD => 'STANDARD', + self::LIGHTWEIGHT => 'LIGHTWEIGHT', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileSpec/PostScanActions.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileSpec/PostScanActions.php new file mode 100644 index 000000000000..b4e5c8165baf --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileSpec/PostScanActions.php @@ -0,0 +1,81 @@ +google.cloud.dataplex.v1.DataProfileSpec.PostScanActions + */ +class PostScanActions extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. If set, results will be exported to the provided BigQuery + * table. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileSpec.PostScanActions.BigQueryExport bigquery_export = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $bigquery_export = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\DataProfileSpec\PostScanActions\BigQueryExport $bigquery_export + * Optional. If set, results will be exported to the provided BigQuery + * table. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataProfile::initOnce(); + parent::__construct($data); + } + + /** + * Optional. If set, results will be exported to the provided BigQuery + * table. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileSpec.PostScanActions.BigQueryExport bigquery_export = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataplex\V1\DataProfileSpec\PostScanActions\BigQueryExport|null + */ + public function getBigqueryExport() + { + return $this->bigquery_export; + } + + public function hasBigqueryExport() + { + return isset($this->bigquery_export); + } + + public function clearBigqueryExport() + { + unset($this->bigquery_export); + } + + /** + * Optional. If set, results will be exported to the provided BigQuery + * table. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileSpec.PostScanActions.BigQueryExport bigquery_export = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataplex\V1\DataProfileSpec\PostScanActions\BigQueryExport $var + * @return $this + */ + public function setBigqueryExport($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataProfileSpec\PostScanActions\BigQueryExport::class); + $this->bigquery_export = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileSpec/PostScanActions/BigQueryExport.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileSpec/PostScanActions/BigQueryExport.php new file mode 100644 index 000000000000..37d56c41d9c2 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileSpec/PostScanActions/BigQueryExport.php @@ -0,0 +1,75 @@ +google.cloud.dataplex.v1.DataProfileSpec.PostScanActions.BigQueryExport + */ +class BigQueryExport extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The BigQuery table to export DataProfileScan results to. + * Format: + * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID + * + * Generated from protobuf field string results_table = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $results_table = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $results_table + * Optional. The BigQuery table to export DataProfileScan results to. + * Format: + * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataProfile::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The BigQuery table to export DataProfileScan results to. + * Format: + * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID + * + * Generated from protobuf field string results_table = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getResultsTable() + { + return $this->results_table; + } + + /** + * Optional. The BigQuery table to export DataProfileScan results to. + * Format: + * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID + * + * Generated from protobuf field string results_table = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setResultsTable($var) + { + GPBUtil::checkString($var, True); + $this->results_table = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileSpec/SelectedFields.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileSpec/SelectedFields.php new file mode 100644 index 000000000000..7337c572de87 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileSpec/SelectedFields.php @@ -0,0 +1,87 @@ +google.cloud.dataplex.v1.DataProfileSpec.SelectedFields + */ +class SelectedFields extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Expected input is a list of fully qualified names of fields as + * in the schema. + * Only top-level field names for nested fields are supported. + * For instance, if 'x' is of nested field type, listing 'x' is supported + * but 'x.y.z' is not supported. Here 'y' and 'y.z' are nested fields of + * 'x'. + * + * Generated from protobuf field repeated string field_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $field_names; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string[] $field_names + * Optional. Expected input is a list of fully qualified names of fields as + * in the schema. + * Only top-level field names for nested fields are supported. + * For instance, if 'x' is of nested field type, listing 'x' is supported + * but 'x.y.z' is not supported. Here 'y' and 'y.z' are nested fields of + * 'x'. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataProfile::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Expected input is a list of fully qualified names of fields as + * in the schema. + * Only top-level field names for nested fields are supported. + * For instance, if 'x' is of nested field type, listing 'x' is supported + * but 'x.y.z' is not supported. Here 'y' and 'y.z' are nested fields of + * 'x'. + * + * Generated from protobuf field repeated string field_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getFieldNames() + { + return $this->field_names; + } + + /** + * Optional. Expected input is a list of fully qualified names of fields as + * in the schema. + * Only top-level field names for nested fields are supported. + * For instance, if 'x' is of nested field type, listing 'x' is supported + * but 'x.y.z' is not supported. Here 'y' and 'y.z' are nested fields of + * 'x'. + * + * Generated from protobuf field repeated string field_names = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setFieldNames($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->field_names = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityColumnResult.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityColumnResult.php new file mode 100644 index 000000000000..4488d31cd171 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityColumnResult.php @@ -0,0 +1,192 @@ +google.cloud.dataplex.v1.DataQualityColumnResult + */ +class DataQualityColumnResult extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The column specified in the DataQualityRule. + * + * Generated from protobuf field string column = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $column = ''; + /** + * Output only. The column-level data quality score for this data scan job if + * and only if the 'column' field is set. + * The score ranges between between [0, 100] (up to two decimal + * points). + * + * Generated from protobuf field optional float score = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $score = null; + /** + * Output only. Whether the column passed or failed. + * + * Generated from protobuf field bool passed = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $passed = false; + /** + * Output only. The dimension-level results for this column. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityDimensionResult dimensions = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $dimensions; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $column + * Output only. The column specified in the DataQualityRule. + * @type float $score + * Output only. The column-level data quality score for this data scan job if + * and only if the 'column' field is set. + * The score ranges between between [0, 100] (up to two decimal + * points). + * @type bool $passed + * Output only. Whether the column passed or failed. + * @type \Google\Cloud\Dataplex\V1\DataQualityDimensionResult[] $dimensions + * Output only. The dimension-level results for this column. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The column specified in the DataQualityRule. + * + * Generated from protobuf field string column = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getColumn() + { + return $this->column; + } + + /** + * Output only. The column specified in the DataQualityRule. + * + * Generated from protobuf field string column = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setColumn($var) + { + GPBUtil::checkString($var, True); + $this->column = $var; + + return $this; + } + + /** + * Output only. The column-level data quality score for this data scan job if + * and only if the 'column' field is set. + * The score ranges between between [0, 100] (up to two decimal + * points). + * + * Generated from protobuf field optional float score = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return float + */ + public function getScore() + { + return isset($this->score) ? $this->score : 0.0; + } + + public function hasScore() + { + return isset($this->score); + } + + public function clearScore() + { + unset($this->score); + } + + /** + * Output only. The column-level data quality score for this data scan job if + * and only if the 'column' field is set. + * The score ranges between between [0, 100] (up to two decimal + * points). + * + * Generated from protobuf field optional float score = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param float $var + * @return $this + */ + public function setScore($var) + { + GPBUtil::checkFloat($var); + $this->score = $var; + + return $this; + } + + /** + * Output only. Whether the column passed or failed. + * + * Generated from protobuf field bool passed = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getPassed() + { + return $this->passed; + } + + /** + * Output only. Whether the column passed or failed. + * + * Generated from protobuf field bool passed = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setPassed($var) + { + GPBUtil::checkBool($var); + $this->passed = $var; + + return $this; + } + + /** + * Output only. The dimension-level results for this column. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityDimensionResult dimensions = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField<\Google\Cloud\Dataplex\V1\DataQualityDimensionResult> + */ + public function getDimensions() + { + return $this->dimensions; + } + + /** + * Output only. The dimension-level results for this column. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityDimensionResult dimensions = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\DataQualityDimensionResult[] $var + * @return $this + */ + public function setDimensions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\DataQualityDimensionResult::class); + $this->dimensions = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityDimension.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityDimension.php new file mode 100644 index 000000000000..4b7d457ab0fa --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityDimension.php @@ -0,0 +1,72 @@ +google.cloud.dataplex.v1.DataQualityDimension + */ +class DataQualityDimension extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The dimension name a rule belongs to. Custom dimension name is + * supported with all uppercase letters and maximum length of 30 characters. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. The dimension name a rule belongs to. Custom dimension name is + * supported with all uppercase letters and maximum length of 30 characters. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The dimension name a rule belongs to. Custom dimension name is + * supported with all uppercase letters and maximum length of 30 characters. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. The dimension name a rule belongs to. Custom dimension name is + * supported with all uppercase letters and maximum length of 30 characters. + * + * 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; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityDimensionResult.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityDimensionResult.php new file mode 100644 index 000000000000..d63825da0950 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityDimensionResult.php @@ -0,0 +1,168 @@ +google.cloud.dataplex.v1.DataQualityDimensionResult + */ +class DataQualityDimensionResult extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The dimension config specified in the DataQualitySpec, as is. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityDimension dimension = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $dimension = null; + /** + * Output only. Whether the dimension passed or failed. + * + * Generated from protobuf field bool passed = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $passed = false; + /** + * Output only. The dimension-level data quality score for this data scan job + * if and only if the 'dimension' field is set. + * The score ranges between [0, 100] (up to two decimal + * points). + * + * Generated from protobuf field optional float score = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $score = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\DataQualityDimension $dimension + * Output only. The dimension config specified in the DataQualitySpec, as is. + * @type bool $passed + * Output only. Whether the dimension passed or failed. + * @type float $score + * Output only. The dimension-level data quality score for this data scan job + * if and only if the 'dimension' field is set. + * The score ranges between [0, 100] (up to two decimal + * points). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The dimension config specified in the DataQualitySpec, as is. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityDimension dimension = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataplex\V1\DataQualityDimension|null + */ + public function getDimension() + { + return $this->dimension; + } + + public function hasDimension() + { + return isset($this->dimension); + } + + public function clearDimension() + { + unset($this->dimension); + } + + /** + * Output only. The dimension config specified in the DataQualitySpec, as is. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityDimension dimension = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\DataQualityDimension $var + * @return $this + */ + public function setDimension($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataQualityDimension::class); + $this->dimension = $var; + + return $this; + } + + /** + * Output only. Whether the dimension passed or failed. + * + * Generated from protobuf field bool passed = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getPassed() + { + return $this->passed; + } + + /** + * Output only. Whether the dimension passed or failed. + * + * Generated from protobuf field bool passed = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setPassed($var) + { + GPBUtil::checkBool($var); + $this->passed = $var; + + return $this; + } + + /** + * Output only. The dimension-level data quality score for this data scan job + * if and only if the 'dimension' field is set. + * The score ranges between [0, 100] (up to two decimal + * points). + * + * Generated from protobuf field optional float score = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return float + */ + public function getScore() + { + return isset($this->score) ? $this->score : 0.0; + } + + public function hasScore() + { + return isset($this->score); + } + + public function clearScore() + { + unset($this->score); + } + + /** + * Output only. The dimension-level data quality score for this data scan job + * if and only if the 'dimension' field is set. + * The score ranges between [0, 100] (up to two decimal + * points). + * + * Generated from protobuf field optional float score = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param float $var + * @return $this + */ + public function setScore($var) + { + GPBUtil::checkFloat($var); + $this->score = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityResult.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityResult.php new file mode 100644 index 000000000000..79907982f372 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityResult.php @@ -0,0 +1,447 @@ +google.cloud.dataplex.v1.DataQualityResult + */ +class DataQualityResult extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Overall data quality result -- `true` if all rules passed. + * + * Generated from protobuf field bool passed = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $passed = false; + /** + * Output only. The overall data quality score. + * The score ranges between [0, 100] (up to two decimal points). + * + * Generated from protobuf field optional float score = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $score = null; + /** + * Output only. A list of results at the dimension level. + * A dimension will have a corresponding `DataQualityDimensionResult` if and + * only if there is at least one rule with the 'dimension' field set to it. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityDimensionResult dimensions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $dimensions; + /** + * Output only. A list of results at the column level. + * A column will have a corresponding `DataQualityColumnResult` if and only if + * there is at least one rule with the 'column' field set to it. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityColumnResult columns = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $columns; + /** + * Output only. A list of all the rules in a job, and their results. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityRuleResult rules = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $rules; + /** + * Output only. The count of rows processed. + * + * Generated from protobuf field int64 row_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $row_count = 0; + /** + * Output only. The data scanned for this result. + * + * Generated from protobuf field .google.cloud.dataplex.v1.ScannedData scanned_data = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $scanned_data = null; + /** + * Output only. The result of post scan actions. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityResult.PostScanActionsResult post_scan_actions_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $post_scan_actions_result = null; + /** + * Output only. The status of publishing the data scan as Dataplex Universal + * Catalog metadata. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScanCatalogPublishingStatus catalog_publishing_status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $catalog_publishing_status = null; + /** + * Output only. The generated assets for anomaly detection. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets anomaly_detection_generated_assets = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $anomaly_detection_generated_assets = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $passed + * Output only. Overall data quality result -- `true` if all rules passed. + * @type float $score + * Output only. The overall data quality score. + * The score ranges between [0, 100] (up to two decimal points). + * @type \Google\Cloud\Dataplex\V1\DataQualityDimensionResult[] $dimensions + * Output only. A list of results at the dimension level. + * A dimension will have a corresponding `DataQualityDimensionResult` if and + * only if there is at least one rule with the 'dimension' field set to it. + * @type \Google\Cloud\Dataplex\V1\DataQualityColumnResult[] $columns + * Output only. A list of results at the column level. + * A column will have a corresponding `DataQualityColumnResult` if and only if + * there is at least one rule with the 'column' field set to it. + * @type \Google\Cloud\Dataplex\V1\DataQualityRuleResult[] $rules + * Output only. A list of all the rules in a job, and their results. + * @type int|string $row_count + * Output only. The count of rows processed. + * @type \Google\Cloud\Dataplex\V1\ScannedData $scanned_data + * Output only. The data scanned for this result. + * @type \Google\Cloud\Dataplex\V1\DataQualityResult\PostScanActionsResult $post_scan_actions_result + * Output only. The result of post scan actions. + * @type \Google\Cloud\Dataplex\V1\DataScanCatalogPublishingStatus $catalog_publishing_status + * Output only. The status of publishing the data scan as Dataplex Universal + * Catalog metadata. + * @type \Google\Cloud\Dataplex\V1\DataQualityResult\AnomalyDetectionGeneratedAssets $anomaly_detection_generated_assets + * Output only. The generated assets for anomaly detection. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Overall data quality result -- `true` if all rules passed. + * + * Generated from protobuf field bool passed = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getPassed() + { + return $this->passed; + } + + /** + * Output only. Overall data quality result -- `true` if all rules passed. + * + * Generated from protobuf field bool passed = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setPassed($var) + { + GPBUtil::checkBool($var); + $this->passed = $var; + + return $this; + } + + /** + * Output only. The overall data quality score. + * The score ranges between [0, 100] (up to two decimal points). + * + * Generated from protobuf field optional float score = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return float + */ + public function getScore() + { + return isset($this->score) ? $this->score : 0.0; + } + + public function hasScore() + { + return isset($this->score); + } + + public function clearScore() + { + unset($this->score); + } + + /** + * Output only. The overall data quality score. + * The score ranges between [0, 100] (up to two decimal points). + * + * Generated from protobuf field optional float score = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param float $var + * @return $this + */ + public function setScore($var) + { + GPBUtil::checkFloat($var); + $this->score = $var; + + return $this; + } + + /** + * Output only. A list of results at the dimension level. + * A dimension will have a corresponding `DataQualityDimensionResult` if and + * only if there is at least one rule with the 'dimension' field set to it. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityDimensionResult dimensions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField<\Google\Cloud\Dataplex\V1\DataQualityDimensionResult> + */ + public function getDimensions() + { + return $this->dimensions; + } + + /** + * Output only. A list of results at the dimension level. + * A dimension will have a corresponding `DataQualityDimensionResult` if and + * only if there is at least one rule with the 'dimension' field set to it. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityDimensionResult dimensions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\DataQualityDimensionResult[] $var + * @return $this + */ + public function setDimensions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\DataQualityDimensionResult::class); + $this->dimensions = $arr; + + return $this; + } + + /** + * Output only. A list of results at the column level. + * A column will have a corresponding `DataQualityColumnResult` if and only if + * there is at least one rule with the 'column' field set to it. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityColumnResult columns = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField<\Google\Cloud\Dataplex\V1\DataQualityColumnResult> + */ + public function getColumns() + { + return $this->columns; + } + + /** + * Output only. A list of results at the column level. + * A column will have a corresponding `DataQualityColumnResult` if and only if + * there is at least one rule with the 'column' field set to it. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityColumnResult columns = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\DataQualityColumnResult[] $var + * @return $this + */ + public function setColumns($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\DataQualityColumnResult::class); + $this->columns = $arr; + + return $this; + } + + /** + * Output only. A list of all the rules in a job, and their results. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityRuleResult rules = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField<\Google\Cloud\Dataplex\V1\DataQualityRuleResult> + */ + public function getRules() + { + return $this->rules; + } + + /** + * Output only. A list of all the rules in a job, and their results. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityRuleResult rules = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\DataQualityRuleResult[] $var + * @return $this + */ + public function setRules($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\DataQualityRuleResult::class); + $this->rules = $arr; + + return $this; + } + + /** + * Output only. The count of rows processed. + * + * Generated from protobuf field int64 row_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getRowCount() + { + return $this->row_count; + } + + /** + * Output only. The count of rows processed. + * + * Generated from protobuf field int64 row_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setRowCount($var) + { + GPBUtil::checkInt64($var); + $this->row_count = $var; + + return $this; + } + + /** + * Output only. The data scanned for this result. + * + * Generated from protobuf field .google.cloud.dataplex.v1.ScannedData scanned_data = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataplex\V1\ScannedData|null + */ + public function getScannedData() + { + return $this->scanned_data; + } + + public function hasScannedData() + { + return isset($this->scanned_data); + } + + public function clearScannedData() + { + unset($this->scanned_data); + } + + /** + * Output only. The data scanned for this result. + * + * Generated from protobuf field .google.cloud.dataplex.v1.ScannedData scanned_data = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\ScannedData $var + * @return $this + */ + public function setScannedData($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\ScannedData::class); + $this->scanned_data = $var; + + return $this; + } + + /** + * Output only. The result of post scan actions. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityResult.PostScanActionsResult post_scan_actions_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataplex\V1\DataQualityResult\PostScanActionsResult|null + */ + public function getPostScanActionsResult() + { + return $this->post_scan_actions_result; + } + + public function hasPostScanActionsResult() + { + return isset($this->post_scan_actions_result); + } + + public function clearPostScanActionsResult() + { + unset($this->post_scan_actions_result); + } + + /** + * Output only. The result of post scan actions. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityResult.PostScanActionsResult post_scan_actions_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\DataQualityResult\PostScanActionsResult $var + * @return $this + */ + public function setPostScanActionsResult($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataQualityResult\PostScanActionsResult::class); + $this->post_scan_actions_result = $var; + + return $this; + } + + /** + * Output only. The status of publishing the data scan as Dataplex Universal + * Catalog metadata. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScanCatalogPublishingStatus catalog_publishing_status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataplex\V1\DataScanCatalogPublishingStatus|null + */ + public function getCatalogPublishingStatus() + { + return $this->catalog_publishing_status; + } + + public function hasCatalogPublishingStatus() + { + return isset($this->catalog_publishing_status); + } + + public function clearCatalogPublishingStatus() + { + unset($this->catalog_publishing_status); + } + + /** + * Output only. The status of publishing the data scan as Dataplex Universal + * Catalog metadata. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScanCatalogPublishingStatus catalog_publishing_status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\DataScanCatalogPublishingStatus $var + * @return $this + */ + public function setCatalogPublishingStatus($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataScanCatalogPublishingStatus::class); + $this->catalog_publishing_status = $var; + + return $this; + } + + /** + * Output only. The generated assets for anomaly detection. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets anomaly_detection_generated_assets = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataplex\V1\DataQualityResult\AnomalyDetectionGeneratedAssets|null + */ + public function getAnomalyDetectionGeneratedAssets() + { + return $this->anomaly_detection_generated_assets; + } + + public function hasAnomalyDetectionGeneratedAssets() + { + return isset($this->anomaly_detection_generated_assets); + } + + public function clearAnomalyDetectionGeneratedAssets() + { + unset($this->anomaly_detection_generated_assets); + } + + /** + * Output only. The generated assets for anomaly detection. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets anomaly_detection_generated_assets = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\DataQualityResult\AnomalyDetectionGeneratedAssets $var + * @return $this + */ + public function setAnomalyDetectionGeneratedAssets($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataQualityResult\AnomalyDetectionGeneratedAssets::class); + $this->anomaly_detection_generated_assets = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityResult/AnomalyDetectionGeneratedAssets.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityResult/AnomalyDetectionGeneratedAssets.php new file mode 100644 index 000000000000..ed6bdeda4810 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityResult/AnomalyDetectionGeneratedAssets.php @@ -0,0 +1,213 @@ +google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets + */ +class AnomalyDetectionGeneratedAssets extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The result table for anomaly detection. + * Format: + * PROJECT_ID.DATASET_ID.TABLE_ID + * If the result table is set at AnomalyDetectionAssets, the result table + * here would be the same as the one set in the + * AnomalyDetectionAssets.result_table. + * + * Generated from protobuf field string result_table = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $result_table = ''; + /** + * Output only. The intermediate table for data anomaly detection. + * Format: + * PROJECT_ID.DATASET_ID.TABLE_ID + * + * Generated from protobuf field string data_intermediate_table = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $data_intermediate_table = ''; + /** + * Output only. The intermediate table for freshness anomaly detection. + * Format: + * PROJECT_ID.DATASET_ID.TABLE_ID + * + * Generated from protobuf field string freshness_intermediate_table = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $freshness_intermediate_table = ''; + /** + * Output only. The intermediate table for volume anomaly detection. + * Format: + * PROJECT_ID.DATASET_ID.TABLE_ID + * + * Generated from protobuf field string volume_intermediate_table = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $volume_intermediate_table = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $result_table + * Output only. The result table for anomaly detection. + * Format: + * PROJECT_ID.DATASET_ID.TABLE_ID + * If the result table is set at AnomalyDetectionAssets, the result table + * here would be the same as the one set in the + * AnomalyDetectionAssets.result_table. + * @type string $data_intermediate_table + * Output only. The intermediate table for data anomaly detection. + * Format: + * PROJECT_ID.DATASET_ID.TABLE_ID + * @type string $freshness_intermediate_table + * Output only. The intermediate table for freshness anomaly detection. + * Format: + * PROJECT_ID.DATASET_ID.TABLE_ID + * @type string $volume_intermediate_table + * Output only. The intermediate table for volume anomaly detection. + * Format: + * PROJECT_ID.DATASET_ID.TABLE_ID + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The result table for anomaly detection. + * Format: + * PROJECT_ID.DATASET_ID.TABLE_ID + * If the result table is set at AnomalyDetectionAssets, the result table + * here would be the same as the one set in the + * AnomalyDetectionAssets.result_table. + * + * Generated from protobuf field string result_table = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getResultTable() + { + return $this->result_table; + } + + /** + * Output only. The result table for anomaly detection. + * Format: + * PROJECT_ID.DATASET_ID.TABLE_ID + * If the result table is set at AnomalyDetectionAssets, the result table + * here would be the same as the one set in the + * AnomalyDetectionAssets.result_table. + * + * Generated from protobuf field string result_table = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setResultTable($var) + { + GPBUtil::checkString($var, True); + $this->result_table = $var; + + return $this; + } + + /** + * Output only. The intermediate table for data anomaly detection. + * Format: + * PROJECT_ID.DATASET_ID.TABLE_ID + * + * Generated from protobuf field string data_intermediate_table = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDataIntermediateTable() + { + return $this->data_intermediate_table; + } + + /** + * Output only. The intermediate table for data anomaly detection. + * Format: + * PROJECT_ID.DATASET_ID.TABLE_ID + * + * Generated from protobuf field string data_intermediate_table = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDataIntermediateTable($var) + { + GPBUtil::checkString($var, True); + $this->data_intermediate_table = $var; + + return $this; + } + + /** + * Output only. The intermediate table for freshness anomaly detection. + * Format: + * PROJECT_ID.DATASET_ID.TABLE_ID + * + * Generated from protobuf field string freshness_intermediate_table = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getFreshnessIntermediateTable() + { + return $this->freshness_intermediate_table; + } + + /** + * Output only. The intermediate table for freshness anomaly detection. + * Format: + * PROJECT_ID.DATASET_ID.TABLE_ID + * + * Generated from protobuf field string freshness_intermediate_table = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setFreshnessIntermediateTable($var) + { + GPBUtil::checkString($var, True); + $this->freshness_intermediate_table = $var; + + return $this; + } + + /** + * Output only. The intermediate table for volume anomaly detection. + * Format: + * PROJECT_ID.DATASET_ID.TABLE_ID + * + * Generated from protobuf field string volume_intermediate_table = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getVolumeIntermediateTable() + { + return $this->volume_intermediate_table; + } + + /** + * Output only. The intermediate table for volume anomaly detection. + * Format: + * PROJECT_ID.DATASET_ID.TABLE_ID + * + * Generated from protobuf field string volume_intermediate_table = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setVolumeIntermediateTable($var) + { + GPBUtil::checkString($var, True); + $this->volume_intermediate_table = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityResult/PostScanActionsResult.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityResult/PostScanActionsResult.php new file mode 100644 index 000000000000..2f01c7b96304 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityResult/PostScanActionsResult.php @@ -0,0 +1,77 @@ +google.cloud.dataplex.v1.DataQualityResult.PostScanActionsResult + */ +class PostScanActionsResult extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The result of BigQuery export post scan action. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityResult.PostScanActionsResult.BigQueryExportResult bigquery_export_result = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $bigquery_export_result = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\DataQualityResult\PostScanActionsResult\BigQueryExportResult $bigquery_export_result + * Output only. The result of BigQuery export post scan action. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The result of BigQuery export post scan action. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityResult.PostScanActionsResult.BigQueryExportResult bigquery_export_result = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataplex\V1\DataQualityResult\PostScanActionsResult\BigQueryExportResult|null + */ + public function getBigqueryExportResult() + { + return $this->bigquery_export_result; + } + + public function hasBigqueryExportResult() + { + return isset($this->bigquery_export_result); + } + + public function clearBigqueryExportResult() + { + unset($this->bigquery_export_result); + } + + /** + * Output only. The result of BigQuery export post scan action. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityResult.PostScanActionsResult.BigQueryExportResult bigquery_export_result = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\DataQualityResult\PostScanActionsResult\BigQueryExportResult $var + * @return $this + */ + public function setBigqueryExportResult($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataQualityResult\PostScanActionsResult\BigQueryExportResult::class); + $this->bigquery_export_result = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityResult/PostScanActionsResult/BigQueryExportResult.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityResult/PostScanActionsResult/BigQueryExportResult.php new file mode 100644 index 000000000000..80ec36e7a6f5 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityResult/PostScanActionsResult/BigQueryExportResult.php @@ -0,0 +1,101 @@ +google.cloud.dataplex.v1.DataQualityResult.PostScanActionsResult.BigQueryExportResult + */ +class BigQueryExportResult extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Execution state for the BigQuery exporting. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityResult.PostScanActionsResult.BigQueryExportResult.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Output only. Additional information about the BigQuery exporting. + * + * Generated from protobuf field string message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $message = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $state + * Output only. Execution state for the BigQuery exporting. + * @type string $message + * Output only. Additional information about the BigQuery exporting. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Execution state for the BigQuery exporting. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityResult.PostScanActionsResult.BigQueryExportResult.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. Execution state for the BigQuery exporting. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityResult.PostScanActionsResult.BigQueryExportResult.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\DataQualityResult\PostScanActionsResult\BigQueryExportResult\State::class); + $this->state = $var; + + return $this; + } + + /** + * Output only. Additional information about the BigQuery exporting. + * + * Generated from protobuf field string message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getMessage() + { + return $this->message; + } + + /** + * Output only. Additional information about the BigQuery exporting. + * + * Generated from protobuf field string message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkString($var, True); + $this->message = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityResult/PostScanActionsResult/BigQueryExportResult/State.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityResult/PostScanActionsResult/BigQueryExportResult/State.php new file mode 100644 index 000000000000..442a3b22fcb1 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityResult/PostScanActionsResult/BigQueryExportResult/State.php @@ -0,0 +1,69 @@ +google.cloud.dataplex.v1.DataQualityResult.PostScanActionsResult.BigQueryExportResult.State + */ +class State +{ + /** + * The exporting state is unspecified. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * The exporting completed successfully. + * + * Generated from protobuf enum SUCCEEDED = 1; + */ + const SUCCEEDED = 1; + /** + * The exporting is no longer running due to an error. + * + * Generated from protobuf enum FAILED = 2; + */ + const FAILED = 2; + /** + * The exporting is skipped due to no valid scan result to export + * (usually caused by scan failed). + * + * Generated from protobuf enum SKIPPED = 3; + */ + const SKIPPED = 3; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::SUCCEEDED => 'SUCCEEDED', + self::FAILED => 'FAILED', + self::SKIPPED => 'SKIPPED', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule.php new file mode 100644 index 000000000000..94c6a80933c2 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule.php @@ -0,0 +1,845 @@ +google.cloud.dataplex.v1.DataQualityRule + */ +class DataQualityRule extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The unnested column which this rule is evaluated against. + * + * Generated from protobuf field string column = 500 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $column = ''; + /** + * Optional. Rows with `null` values will automatically fail a rule, unless + * `ignore_null` is `true`. In that case, such `null` rows are trivially + * considered passing. + * This field is only valid for the following type of rules: + * * RangeExpectation + * * RegexExpectation + * * SetExpectation + * * UniquenessExpectation + * + * Generated from protobuf field bool ignore_null = 501 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $ignore_null = false; + /** + * Optional. The dimension a rule belongs to. Results are also aggregated at + * the dimension level. Custom dimension name is supported with all uppercase + * letters and maximum length of 30 characters. + * + * Generated from protobuf field string dimension = 502 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $dimension = ''; + /** + * Optional. The minimum ratio of **passing_rows / total_rows** required to + * pass this rule, with a range of [0.0, 1.0]. + * 0 indicates default value (i.e. 1.0). + * This field is only valid for row-level type rules. + * + * Generated from protobuf field double threshold = 503 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $threshold = 0.0; + /** + * Optional. A mutable name for the rule. + * * The name must contain only letters (a-z, A-Z), numbers (0-9), or + * hyphens (-). + * * The maximum length is 63 characters. + * * Must start with a letter. + * * Must end with a number or a letter. + * + * Generated from protobuf field string name = 504 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $name = ''; + /** + * Optional. Description of the rule. + * * The maximum length is 1,024 characters. + * + * Generated from protobuf field string description = 505 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Optional. Whether the Rule is active or suspended. + * Default is false. + * + * Generated from protobuf field bool suspended = 506 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $suspended = false; + /** + * Optional. Map of attribute name and value linked to the rule. The rules to + * evaluate can be filtered based on attributes provided here and a filter + * expression provided in the DataQualitySpec.filter field. + * + * Generated from protobuf field map attributes = 507 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $attributes; + /** + * Output only. Contains information about the source of the rule and its + * relationship with the BigQuery table, where applicable. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.RuleSource rule_source = 508 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $rule_source = null; + /** + * Optional. Specifies the debug queries for this rule. + * Currently, only one query is supported, but this may be expanded in the + * future. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityRule.DebugQuery debug_queries = 510 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $debug_queries; + protected $rule_type; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\DataQualityRule\RangeExpectation $range_expectation + * Row-level rule which evaluates whether each column value lies between a + * specified range. + * @type \Google\Cloud\Dataplex\V1\DataQualityRule\NonNullExpectation $non_null_expectation + * Row-level rule which evaluates whether each column value is null. + * @type \Google\Cloud\Dataplex\V1\DataQualityRule\SetExpectation $set_expectation + * Row-level rule which evaluates whether each column value is contained by + * a specified set. + * @type \Google\Cloud\Dataplex\V1\DataQualityRule\RegexExpectation $regex_expectation + * Row-level rule which evaluates whether each column value matches a + * specified regex. + * @type \Google\Cloud\Dataplex\V1\DataQualityRule\UniquenessExpectation $uniqueness_expectation + * Row-level rule which evaluates whether each column value is unique. + * @type \Google\Cloud\Dataplex\V1\DataQualityRule\StatisticRangeExpectation $statistic_range_expectation + * Aggregate rule which evaluates whether the column aggregate + * statistic lies between a specified range. + * @type \Google\Cloud\Dataplex\V1\DataQualityRule\RowConditionExpectation $row_condition_expectation + * Row-level rule which evaluates whether each row in a table passes the + * specified condition. + * @type \Google\Cloud\Dataplex\V1\DataQualityRule\TableConditionExpectation $table_condition_expectation + * Aggregate rule which evaluates whether the provided expression is true + * for a table. + * @type \Google\Cloud\Dataplex\V1\DataQualityRule\SqlAssertion $sql_assertion + * Aggregate rule which evaluates the number of rows returned for the + * provided statement. If any rows are returned, this rule fails. + * @type \Google\Cloud\Dataplex\V1\DataQualityRule\TemplateReference $template_reference + * Aggregate rule which references a rule template and provides the + * parameters to be substituted in the template. If any rows are returned, + * this rule fails. + * @type string $column + * Optional. The unnested column which this rule is evaluated against. + * @type bool $ignore_null + * Optional. Rows with `null` values will automatically fail a rule, unless + * `ignore_null` is `true`. In that case, such `null` rows are trivially + * considered passing. + * This field is only valid for the following type of rules: + * * RangeExpectation + * * RegexExpectation + * * SetExpectation + * * UniquenessExpectation + * @type string $dimension + * Optional. The dimension a rule belongs to. Results are also aggregated at + * the dimension level. Custom dimension name is supported with all uppercase + * letters and maximum length of 30 characters. + * @type float $threshold + * Optional. The minimum ratio of **passing_rows / total_rows** required to + * pass this rule, with a range of [0.0, 1.0]. + * 0 indicates default value (i.e. 1.0). + * This field is only valid for row-level type rules. + * @type string $name + * Optional. A mutable name for the rule. + * * The name must contain only letters (a-z, A-Z), numbers (0-9), or + * hyphens (-). + * * The maximum length is 63 characters. + * * Must start with a letter. + * * Must end with a number or a letter. + * @type string $description + * Optional. Description of the rule. + * * The maximum length is 1,024 characters. + * @type bool $suspended + * Optional. Whether the Rule is active or suspended. + * Default is false. + * @type array|\Google\Protobuf\Internal\MapField $attributes + * Optional. Map of attribute name and value linked to the rule. The rules to + * evaluate can be filtered based on attributes provided here and a filter + * expression provided in the DataQualitySpec.filter field. + * @type \Google\Cloud\Dataplex\V1\DataQualityRule\RuleSource $rule_source + * Output only. Contains information about the source of the rule and its + * relationship with the BigQuery table, where applicable. + * @type \Google\Cloud\Dataplex\V1\DataQualityRule\DebugQuery[] $debug_queries + * Optional. Specifies the debug queries for this rule. + * Currently, only one query is supported, but this may be expanded in the + * future. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); + parent::__construct($data); + } + + /** + * Row-level rule which evaluates whether each column value lies between a + * specified range. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.RangeExpectation range_expectation = 1; + * @return \Google\Cloud\Dataplex\V1\DataQualityRule\RangeExpectation|null + */ + public function getRangeExpectation() + { + return $this->readOneof(1); + } + + public function hasRangeExpectation() + { + return $this->hasOneof(1); + } + + /** + * Row-level rule which evaluates whether each column value lies between a + * specified range. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.RangeExpectation range_expectation = 1; + * @param \Google\Cloud\Dataplex\V1\DataQualityRule\RangeExpectation $var + * @return $this + */ + public function setRangeExpectation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataQualityRule\RangeExpectation::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Row-level rule which evaluates whether each column value is null. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation non_null_expectation = 2; + * @return \Google\Cloud\Dataplex\V1\DataQualityRule\NonNullExpectation|null + */ + public function getNonNullExpectation() + { + return $this->readOneof(2); + } + + public function hasNonNullExpectation() + { + return $this->hasOneof(2); + } + + /** + * Row-level rule which evaluates whether each column value is null. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation non_null_expectation = 2; + * @param \Google\Cloud\Dataplex\V1\DataQualityRule\NonNullExpectation $var + * @return $this + */ + public function setNonNullExpectation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataQualityRule\NonNullExpectation::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Row-level rule which evaluates whether each column value is contained by + * a specified set. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.SetExpectation set_expectation = 3; + * @return \Google\Cloud\Dataplex\V1\DataQualityRule\SetExpectation|null + */ + public function getSetExpectation() + { + return $this->readOneof(3); + } + + public function hasSetExpectation() + { + return $this->hasOneof(3); + } + + /** + * Row-level rule which evaluates whether each column value is contained by + * a specified set. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.SetExpectation set_expectation = 3; + * @param \Google\Cloud\Dataplex\V1\DataQualityRule\SetExpectation $var + * @return $this + */ + public function setSetExpectation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataQualityRule\SetExpectation::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Row-level rule which evaluates whether each column value matches a + * specified regex. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.RegexExpectation regex_expectation = 4; + * @return \Google\Cloud\Dataplex\V1\DataQualityRule\RegexExpectation|null + */ + public function getRegexExpectation() + { + return $this->readOneof(4); + } + + public function hasRegexExpectation() + { + return $this->hasOneof(4); + } + + /** + * Row-level rule which evaluates whether each column value matches a + * specified regex. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.RegexExpectation regex_expectation = 4; + * @param \Google\Cloud\Dataplex\V1\DataQualityRule\RegexExpectation $var + * @return $this + */ + public function setRegexExpectation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataQualityRule\RegexExpectation::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Row-level rule which evaluates whether each column value is unique. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation uniqueness_expectation = 100; + * @return \Google\Cloud\Dataplex\V1\DataQualityRule\UniquenessExpectation|null + */ + public function getUniquenessExpectation() + { + return $this->readOneof(100); + } + + public function hasUniquenessExpectation() + { + return $this->hasOneof(100); + } + + /** + * Row-level rule which evaluates whether each column value is unique. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation uniqueness_expectation = 100; + * @param \Google\Cloud\Dataplex\V1\DataQualityRule\UniquenessExpectation $var + * @return $this + */ + public function setUniquenessExpectation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataQualityRule\UniquenessExpectation::class); + $this->writeOneof(100, $var); + + return $this; + } + + /** + * Aggregate rule which evaluates whether the column aggregate + * statistic lies between a specified range. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation statistic_range_expectation = 101; + * @return \Google\Cloud\Dataplex\V1\DataQualityRule\StatisticRangeExpectation|null + */ + public function getStatisticRangeExpectation() + { + return $this->readOneof(101); + } + + public function hasStatisticRangeExpectation() + { + return $this->hasOneof(101); + } + + /** + * Aggregate rule which evaluates whether the column aggregate + * statistic lies between a specified range. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation statistic_range_expectation = 101; + * @param \Google\Cloud\Dataplex\V1\DataQualityRule\StatisticRangeExpectation $var + * @return $this + */ + public function setStatisticRangeExpectation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataQualityRule\StatisticRangeExpectation::class); + $this->writeOneof(101, $var); + + return $this; + } + + /** + * Row-level rule which evaluates whether each row in a table passes the + * specified condition. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation row_condition_expectation = 200; + * @return \Google\Cloud\Dataplex\V1\DataQualityRule\RowConditionExpectation|null + */ + public function getRowConditionExpectation() + { + return $this->readOneof(200); + } + + public function hasRowConditionExpectation() + { + return $this->hasOneof(200); + } + + /** + * Row-level rule which evaluates whether each row in a table passes the + * specified condition. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation row_condition_expectation = 200; + * @param \Google\Cloud\Dataplex\V1\DataQualityRule\RowConditionExpectation $var + * @return $this + */ + public function setRowConditionExpectation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataQualityRule\RowConditionExpectation::class); + $this->writeOneof(200, $var); + + return $this; + } + + /** + * Aggregate rule which evaluates whether the provided expression is true + * for a table. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation table_condition_expectation = 201; + * @return \Google\Cloud\Dataplex\V1\DataQualityRule\TableConditionExpectation|null + */ + public function getTableConditionExpectation() + { + return $this->readOneof(201); + } + + public function hasTableConditionExpectation() + { + return $this->hasOneof(201); + } + + /** + * Aggregate rule which evaluates whether the provided expression is true + * for a table. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation table_condition_expectation = 201; + * @param \Google\Cloud\Dataplex\V1\DataQualityRule\TableConditionExpectation $var + * @return $this + */ + public function setTableConditionExpectation($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataQualityRule\TableConditionExpectation::class); + $this->writeOneof(201, $var); + + return $this; + } + + /** + * Aggregate rule which evaluates the number of rows returned for the + * provided statement. If any rows are returned, this rule fails. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.SqlAssertion sql_assertion = 202; + * @return \Google\Cloud\Dataplex\V1\DataQualityRule\SqlAssertion|null + */ + public function getSqlAssertion() + { + return $this->readOneof(202); + } + + public function hasSqlAssertion() + { + return $this->hasOneof(202); + } + + /** + * Aggregate rule which evaluates the number of rows returned for the + * provided statement. If any rows are returned, this rule fails. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.SqlAssertion sql_assertion = 202; + * @param \Google\Cloud\Dataplex\V1\DataQualityRule\SqlAssertion $var + * @return $this + */ + public function setSqlAssertion($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataQualityRule\SqlAssertion::class); + $this->writeOneof(202, $var); + + return $this; + } + + /** + * Aggregate rule which references a rule template and provides the + * parameters to be substituted in the template. If any rows are returned, + * this rule fails. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.TemplateReference template_reference = 5; + * @return \Google\Cloud\Dataplex\V1\DataQualityRule\TemplateReference|null + */ + public function getTemplateReference() + { + return $this->readOneof(5); + } + + public function hasTemplateReference() + { + return $this->hasOneof(5); + } + + /** + * Aggregate rule which references a rule template and provides the + * parameters to be substituted in the template. If any rows are returned, + * this rule fails. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.TemplateReference template_reference = 5; + * @param \Google\Cloud\Dataplex\V1\DataQualityRule\TemplateReference $var + * @return $this + */ + public function setTemplateReference($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataQualityRule\TemplateReference::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * Optional. The unnested column which this rule is evaluated against. + * + * Generated from protobuf field string column = 500 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getColumn() + { + return $this->column; + } + + /** + * Optional. The unnested column which this rule is evaluated against. + * + * Generated from protobuf field string column = 500 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setColumn($var) + { + GPBUtil::checkString($var, True); + $this->column = $var; + + return $this; + } + + /** + * Optional. Rows with `null` values will automatically fail a rule, unless + * `ignore_null` is `true`. In that case, such `null` rows are trivially + * considered passing. + * This field is only valid for the following type of rules: + * * RangeExpectation + * * RegexExpectation + * * SetExpectation + * * UniquenessExpectation + * + * Generated from protobuf field bool ignore_null = 501 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getIgnoreNull() + { + return $this->ignore_null; + } + + /** + * Optional. Rows with `null` values will automatically fail a rule, unless + * `ignore_null` is `true`. In that case, such `null` rows are trivially + * considered passing. + * This field is only valid for the following type of rules: + * * RangeExpectation + * * RegexExpectation + * * SetExpectation + * * UniquenessExpectation + * + * Generated from protobuf field bool ignore_null = 501 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setIgnoreNull($var) + { + GPBUtil::checkBool($var); + $this->ignore_null = $var; + + return $this; + } + + /** + * Optional. The dimension a rule belongs to. Results are also aggregated at + * the dimension level. Custom dimension name is supported with all uppercase + * letters and maximum length of 30 characters. + * + * Generated from protobuf field string dimension = 502 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDimension() + { + return $this->dimension; + } + + /** + * Optional. The dimension a rule belongs to. Results are also aggregated at + * the dimension level. Custom dimension name is supported with all uppercase + * letters and maximum length of 30 characters. + * + * Generated from protobuf field string dimension = 502 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDimension($var) + { + GPBUtil::checkString($var, True); + $this->dimension = $var; + + return $this; + } + + /** + * Optional. The minimum ratio of **passing_rows / total_rows** required to + * pass this rule, with a range of [0.0, 1.0]. + * 0 indicates default value (i.e. 1.0). + * This field is only valid for row-level type rules. + * + * Generated from protobuf field double threshold = 503 [(.google.api.field_behavior) = OPTIONAL]; + * @return float + */ + public function getThreshold() + { + return $this->threshold; + } + + /** + * Optional. The minimum ratio of **passing_rows / total_rows** required to + * pass this rule, with a range of [0.0, 1.0]. + * 0 indicates default value (i.e. 1.0). + * This field is only valid for row-level type rules. + * + * Generated from protobuf field double threshold = 503 [(.google.api.field_behavior) = OPTIONAL]; + * @param float $var + * @return $this + */ + public function setThreshold($var) + { + GPBUtil::checkDouble($var); + $this->threshold = $var; + + return $this; + } + + /** + * Optional. A mutable name for the rule. + * * The name must contain only letters (a-z, A-Z), numbers (0-9), or + * hyphens (-). + * * The maximum length is 63 characters. + * * Must start with a letter. + * * Must end with a number or a letter. + * + * Generated from protobuf field string name = 504 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Optional. A mutable name for the rule. + * * The name must contain only letters (a-z, A-Z), numbers (0-9), or + * hyphens (-). + * * The maximum length is 63 characters. + * * Must start with a letter. + * * Must end with a number or a letter. + * + * Generated from protobuf field string name = 504 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. Description of the rule. + * * The maximum length is 1,024 characters. + * + * Generated from protobuf field string description = 505 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. Description of the rule. + * * The maximum length is 1,024 characters. + * + * Generated from protobuf field string description = 505 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Optional. Whether the Rule is active or suspended. + * Default is false. + * + * Generated from protobuf field bool suspended = 506 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getSuspended() + { + return $this->suspended; + } + + /** + * Optional. Whether the Rule is active or suspended. + * Default is false. + * + * Generated from protobuf field bool suspended = 506 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setSuspended($var) + { + GPBUtil::checkBool($var); + $this->suspended = $var; + + return $this; + } + + /** + * Optional. Map of attribute name and value linked to the rule. The rules to + * evaluate can be filtered based on attributes provided here and a filter + * expression provided in the DataQualitySpec.filter field. + * + * Generated from protobuf field map attributes = 507 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getAttributes() + { + return $this->attributes; + } + + /** + * Optional. Map of attribute name and value linked to the rule. The rules to + * evaluate can be filtered based on attributes provided here and a filter + * expression provided in the DataQualitySpec.filter field. + * + * Generated from protobuf field map attributes = 507 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setAttributes($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->attributes = $arr; + + return $this; + } + + /** + * Output only. Contains information about the source of the rule and its + * relationship with the BigQuery table, where applicable. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.RuleSource rule_source = 508 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataplex\V1\DataQualityRule\RuleSource|null + */ + public function getRuleSource() + { + return $this->rule_source; + } + + public function hasRuleSource() + { + return isset($this->rule_source); + } + + public function clearRuleSource() + { + unset($this->rule_source); + } + + /** + * Output only. Contains information about the source of the rule and its + * relationship with the BigQuery table, where applicable. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.RuleSource rule_source = 508 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\DataQualityRule\RuleSource $var + * @return $this + */ + public function setRuleSource($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataQualityRule\RuleSource::class); + $this->rule_source = $var; + + return $this; + } + + /** + * Optional. Specifies the debug queries for this rule. + * Currently, only one query is supported, but this may be expanded in the + * future. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityRule.DebugQuery debug_queries = 510 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\Dataplex\V1\DataQualityRule\DebugQuery> + */ + public function getDebugQueries() + { + return $this->debug_queries; + } + + /** + * Optional. Specifies the debug queries for this rule. + * Currently, only one query is supported, but this may be expanded in the + * future. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityRule.DebugQuery debug_queries = 510 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataplex\V1\DataQualityRule\DebugQuery[] $var + * @return $this + */ + public function setDebugQueries($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\DataQualityRule\DebugQuery::class); + $this->debug_queries = $arr; + + return $this; + } + + /** + * @return string + */ + public function getRuleType() + { + return $this->whichOneof("rule_type"); + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/DebugQuery.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/DebugQuery.php new file mode 100644 index 000000000000..68ef2374e47e --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/DebugQuery.php @@ -0,0 +1,120 @@ +google.cloud.dataplex.v1.DataQualityRule.DebugQuery + */ +class DebugQuery extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Specifies the description of the debug query. + * * The maximum length is 1,024 characters. + * + * Generated from protobuf field string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Required. Specifies the SQL statement to be executed. + * + * Generated from protobuf field string sql_statement = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $sql_statement = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $description + * Optional. Specifies the description of the debug query. + * * The maximum length is 1,024 characters. + * @type string $sql_statement + * Required. Specifies the SQL statement to be executed. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Specifies the description of the debug query. + * * The maximum length is 1,024 characters. + * + * Generated from protobuf field string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. Specifies the description of the debug query. + * * The maximum length is 1,024 characters. + * + * Generated from protobuf field string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Required. Specifies the SQL statement to be executed. + * + * Generated from protobuf field string sql_statement = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getSqlStatement() + { + return $this->sql_statement; + } + + /** + * Required. Specifies the SQL statement to be executed. + * + * Generated from protobuf field string sql_statement = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setSqlStatement($var) + { + GPBUtil::checkString($var, True); + $this->sql_statement = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/NonNullExpectation.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/NonNullExpectation.php new file mode 100644 index 000000000000..301435c17ab5 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/NonNullExpectation.php @@ -0,0 +1,33 @@ +google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation + */ +class NonNullExpectation extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/RangeExpectation.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/RangeExpectation.php new file mode 100644 index 000000000000..523a722bcc9c --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/RangeExpectation.php @@ -0,0 +1,201 @@ +google.cloud.dataplex.v1.DataQualityRule.RangeExpectation + */ +class RangeExpectation extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The minimum column value allowed for a row to pass this + * validation. At least one of `min_value` and `max_value` need to be + * provided. + * + * Generated from protobuf field string min_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $min_value = ''; + /** + * Optional. The maximum column value allowed for a row to pass this + * validation. At least one of `min_value` and `max_value` need to be + * provided. + * + * Generated from protobuf field string max_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $max_value = ''; + /** + * Optional. Whether each value needs to be strictly greater than ('>') the + * minimum, or if equality is allowed. + * Only relevant if a `min_value` has been defined. Default = false. + * + * Generated from protobuf field bool strict_min_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $strict_min_enabled = false; + /** + * Optional. Whether each value needs to be strictly lesser than ('<') the + * maximum, or if equality is allowed. + * Only relevant if a `max_value` has been defined. Default = false. + * + * Generated from protobuf field bool strict_max_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $strict_max_enabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $min_value + * Optional. The minimum column value allowed for a row to pass this + * validation. At least one of `min_value` and `max_value` need to be + * provided. + * @type string $max_value + * Optional. The maximum column value allowed for a row to pass this + * validation. At least one of `min_value` and `max_value` need to be + * provided. + * @type bool $strict_min_enabled + * Optional. Whether each value needs to be strictly greater than ('>') the + * minimum, or if equality is allowed. + * Only relevant if a `min_value` has been defined. Default = false. + * @type bool $strict_max_enabled + * Optional. Whether each value needs to be strictly lesser than ('<') the + * maximum, or if equality is allowed. + * Only relevant if a `max_value` has been defined. Default = false. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The minimum column value allowed for a row to pass this + * validation. At least one of `min_value` and `max_value` need to be + * provided. + * + * Generated from protobuf field string min_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getMinValue() + { + return $this->min_value; + } + + /** + * Optional. The minimum column value allowed for a row to pass this + * validation. At least one of `min_value` and `max_value` need to be + * provided. + * + * Generated from protobuf field string min_value = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setMinValue($var) + { + GPBUtil::checkString($var, True); + $this->min_value = $var; + + return $this; + } + + /** + * Optional. The maximum column value allowed for a row to pass this + * validation. At least one of `min_value` and `max_value` need to be + * provided. + * + * Generated from protobuf field string max_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getMaxValue() + { + return $this->max_value; + } + + /** + * Optional. The maximum column value allowed for a row to pass this + * validation. At least one of `min_value` and `max_value` need to be + * provided. + * + * Generated from protobuf field string max_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setMaxValue($var) + { + GPBUtil::checkString($var, True); + $this->max_value = $var; + + return $this; + } + + /** + * Optional. Whether each value needs to be strictly greater than ('>') the + * minimum, or if equality is allowed. + * Only relevant if a `min_value` has been defined. Default = false. + * + * Generated from protobuf field bool strict_min_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getStrictMinEnabled() + { + return $this->strict_min_enabled; + } + + /** + * Optional. Whether each value needs to be strictly greater than ('>') the + * minimum, or if equality is allowed. + * Only relevant if a `min_value` has been defined. Default = false. + * + * Generated from protobuf field bool strict_min_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setStrictMinEnabled($var) + { + GPBUtil::checkBool($var); + $this->strict_min_enabled = $var; + + return $this; + } + + /** + * Optional. Whether each value needs to be strictly lesser than ('<') the + * maximum, or if equality is allowed. + * Only relevant if a `max_value` has been defined. Default = false. + * + * Generated from protobuf field bool strict_max_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getStrictMaxEnabled() + { + return $this->strict_max_enabled; + } + + /** + * Optional. Whether each value needs to be strictly lesser than ('<') the + * maximum, or if equality is allowed. + * Only relevant if a `max_value` has been defined. Default = false. + * + * Generated from protobuf field bool strict_max_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setStrictMaxEnabled($var) + { + GPBUtil::checkBool($var); + $this->strict_max_enabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/RegexExpectation.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/RegexExpectation.php new file mode 100644 index 000000000000..a6662cbe0c1b --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/RegexExpectation.php @@ -0,0 +1,67 @@ +google.cloud.dataplex.v1.DataQualityRule.RegexExpectation + */ +class RegexExpectation extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. A regular expression the column value is expected to match. + * + * Generated from protobuf field string regex = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $regex = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $regex + * Optional. A regular expression the column value is expected to match. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); + parent::__construct($data); + } + + /** + * Optional. A regular expression the column value is expected to match. + * + * Generated from protobuf field string regex = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getRegex() + { + return $this->regex; + } + + /** + * Optional. A regular expression the column value is expected to match. + * + * Generated from protobuf field string regex = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setRegex($var) + { + GPBUtil::checkString($var, True); + $this->regex = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/RowConditionExpectation.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/RowConditionExpectation.php new file mode 100644 index 000000000000..1009049c105e --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/RowConditionExpectation.php @@ -0,0 +1,71 @@ += 0 AND col2 < 10 + * + * Generated from protobuf message google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation + */ +class RowConditionExpectation extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The SQL expression. + * + * Generated from protobuf field string sql_expression = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $sql_expression = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $sql_expression + * Optional. The SQL expression. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The SQL expression. + * + * Generated from protobuf field string sql_expression = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getSqlExpression() + { + return $this->sql_expression; + } + + /** + * Optional. The SQL expression. + * + * Generated from protobuf field string sql_expression = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setSqlExpression($var) + { + GPBUtil::checkString($var, True); + $this->sql_expression = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/RuleSource.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/RuleSource.php new file mode 100644 index 000000000000..df974ce23fce --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/RuleSource.php @@ -0,0 +1,75 @@ +google.cloud.dataplex.v1.DataQualityRule.RuleSource + */ +class RuleSource extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Rule path elements represent information about the + * individual items in the relationship path between the scan resource and + * rule origin in that order. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityRule.RuleSource.RulePathElement rule_path_elements = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $rule_path_elements; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\DataQualityRule\RuleSource\RulePathElement[] $rule_path_elements + * Output only. Rule path elements represent information about the + * individual items in the relationship path between the scan resource and + * rule origin in that order. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Rule path elements represent information about the + * individual items in the relationship path between the scan resource and + * rule origin in that order. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityRule.RuleSource.RulePathElement rule_path_elements = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField<\Google\Cloud\Dataplex\V1\DataQualityRule\RuleSource\RulePathElement> + */ + public function getRulePathElements() + { + return $this->rule_path_elements; + } + + /** + * Output only. Rule path elements represent information about the + * individual items in the relationship path between the scan resource and + * rule origin in that order. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityRule.RuleSource.RulePathElement rule_path_elements = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\DataQualityRule\RuleSource\RulePathElement[] $var + * @return $this + */ + public function setRulePathElements($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\DataQualityRule\RuleSource\RulePathElement::class); + $this->rule_path_elements = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/RuleSource/RulePathElement.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/RuleSource/RulePathElement.php new file mode 100644 index 000000000000..f896d32d936d --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/RuleSource/RulePathElement.php @@ -0,0 +1,118 @@ +google.cloud.dataplex.v1.DataQualityRule.RuleSource.RulePathElement + */ +class RulePathElement extends \Google\Protobuf\Internal\Message +{ + protected $source_type; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\DataQualityRule\RuleSource\RulePathElement\EntrySource $entry_source + * Output only. Entry source represents information about the related + * source entry. + * @type \Google\Cloud\Dataplex\V1\DataQualityRule\RuleSource\RulePathElement\EntryLinkSource $entry_link_source + * Output only. Entry link source represents information about the entry + * link. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Entry source represents information about the related + * source entry. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.RuleSource.RulePathElement.EntrySource entry_source = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataplex\V1\DataQualityRule\RuleSource\RulePathElement\EntrySource|null + */ + public function getEntrySource() + { + return $this->readOneof(1); + } + + public function hasEntrySource() + { + return $this->hasOneof(1); + } + + /** + * Output only. Entry source represents information about the related + * source entry. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.RuleSource.RulePathElement.EntrySource entry_source = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\DataQualityRule\RuleSource\RulePathElement\EntrySource $var + * @return $this + */ + public function setEntrySource($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataQualityRule\RuleSource\RulePathElement\EntrySource::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Output only. Entry link source represents information about the entry + * link. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.RuleSource.RulePathElement.EntryLinkSource entry_link_source = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataplex\V1\DataQualityRule\RuleSource\RulePathElement\EntryLinkSource|null + */ + public function getEntryLinkSource() + { + return $this->readOneof(2); + } + + public function hasEntryLinkSource() + { + return $this->hasOneof(2); + } + + /** + * Output only. Entry link source represents information about the entry + * link. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.RuleSource.RulePathElement.EntryLinkSource entry_link_source = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\DataQualityRule\RuleSource\RulePathElement\EntryLinkSource $var + * @return $this + */ + public function setEntryLinkSource($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataQualityRule\RuleSource\RulePathElement\EntryLinkSource::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getSourceType() + { + return $this->whichOneof("source_type"); + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/RuleSource/RulePathElement/EntryLinkSource.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/RuleSource/RulePathElement/EntryLinkSource.php new file mode 100644 index 000000000000..d30ce4bedea6 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/RuleSource/RulePathElement/EntryLinkSource.php @@ -0,0 +1,117 @@ +google.cloud.dataplex.v1.DataQualityRule.RuleSource.RulePathElement.EntryLinkSource + */ +class EntryLinkSource extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The entry link type to represent the current + * relationship between the entry and the next entry in the path. + * In the form of: + * `projects/{project_id_or_number}/locations/{location_id}/entryLinkTypes/{entry_link_type_id}` + * + * Generated from protobuf field string entry_link_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $entry_link_type = ''; + /** + * Output only. The entry link name in the form of: + * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entryLinks/{entry_link_id}` + * + * Generated from protobuf field string entry_link = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $entry_link = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $entry_link_type + * Output only. The entry link type to represent the current + * relationship between the entry and the next entry in the path. + * In the form of: + * `projects/{project_id_or_number}/locations/{location_id}/entryLinkTypes/{entry_link_type_id}` + * @type string $entry_link + * Output only. The entry link name in the form of: + * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entryLinks/{entry_link_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The entry link type to represent the current + * relationship between the entry and the next entry in the path. + * In the form of: + * `projects/{project_id_or_number}/locations/{location_id}/entryLinkTypes/{entry_link_type_id}` + * + * Generated from protobuf field string entry_link_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getEntryLinkType() + { + return $this->entry_link_type; + } + + /** + * Output only. The entry link type to represent the current + * relationship between the entry and the next entry in the path. + * In the form of: + * `projects/{project_id_or_number}/locations/{location_id}/entryLinkTypes/{entry_link_type_id}` + * + * Generated from protobuf field string entry_link_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setEntryLinkType($var) + { + GPBUtil::checkString($var, True); + $this->entry_link_type = $var; + + return $this; + } + + /** + * Output only. The entry link name in the form of: + * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entryLinks/{entry_link_id}` + * + * Generated from protobuf field string entry_link = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getEntryLink() + { + return $this->entry_link; + } + + /** + * Output only. The entry link name in the form of: + * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entryLinks/{entry_link_id}` + * + * Generated from protobuf field string entry_link = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setEntryLink($var) + { + GPBUtil::checkString($var, True); + $this->entry_link = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/RuleSource/RulePathElement/EntrySource.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/RuleSource/RulePathElement/EntrySource.php new file mode 100644 index 000000000000..bae1eb1a8d6a --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/RuleSource/RulePathElement/EntrySource.php @@ -0,0 +1,147 @@ +google.cloud.dataplex.v1.DataQualityRule.RuleSource.RulePathElement.EntrySource + */ +class EntrySource extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The entry type to represent the current characteristics + * of the entry in the form of: + * `projects/{project_id_or_number}/locations/{location_id}/entryTypes/{entry-type-id}`. + * + * Generated from protobuf field string entry_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $entry_type = ''; + /** + * Output only. The entry name in the form of: + * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}` + * + * Generated from protobuf field string entry = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $entry = ''; + /** + * Output only. The display name of the entry. + * + * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $display_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $entry_type + * Output only. The entry type to represent the current characteristics + * of the entry in the form of: + * `projects/{project_id_or_number}/locations/{location_id}/entryTypes/{entry-type-id}`. + * @type string $entry + * Output only. The entry name in the form of: + * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}` + * @type string $display_name + * Output only. The display name of the entry. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The entry type to represent the current characteristics + * of the entry in the form of: + * `projects/{project_id_or_number}/locations/{location_id}/entryTypes/{entry-type-id}`. + * + * Generated from protobuf field string entry_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getEntryType() + { + return $this->entry_type; + } + + /** + * Output only. The entry type to represent the current characteristics + * of the entry in the form of: + * `projects/{project_id_or_number}/locations/{location_id}/entryTypes/{entry-type-id}`. + * + * Generated from protobuf field string entry_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setEntryType($var) + { + GPBUtil::checkString($var, True); + $this->entry_type = $var; + + return $this; + } + + /** + * Output only. The entry name in the form of: + * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}` + * + * Generated from protobuf field string entry = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getEntry() + { + return $this->entry; + } + + /** + * Output only. The entry name in the form of: + * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}` + * + * Generated from protobuf field string entry = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setEntry($var) + { + GPBUtil::checkString($var, True); + $this->entry = $var; + + return $this; + } + + /** + * Output only. The display name of the entry. + * + * 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 display name of the entry. + * + * 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; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/SetExpectation.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/SetExpectation.php new file mode 100644 index 000000000000..aa65ea31aafc --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/SetExpectation.php @@ -0,0 +1,67 @@ +google.cloud.dataplex.v1.DataQualityRule.SetExpectation + */ +class SetExpectation extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Expected values for the column value. + * + * Generated from protobuf field repeated string values = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $values; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string[] $values + * Optional. Expected values for the column value. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Expected values for the column value. + * + * Generated from protobuf field repeated string values = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getValues() + { + return $this->values; + } + + /** + * Optional. Expected values for the column value. + * + * Generated from protobuf field repeated string values = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/SqlAssertion.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/SqlAssertion.php new file mode 100644 index 000000000000..4e78209ae880 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/SqlAssertion.php @@ -0,0 +1,77 @@ +google.cloud.dataplex.v1.DataQualityRule.SqlAssertion + */ +class SqlAssertion extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The SQL statement. + * + * Generated from protobuf field string sql_statement = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $sql_statement = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $sql_statement + * Optional. The SQL statement. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The SQL statement. + * + * Generated from protobuf field string sql_statement = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getSqlStatement() + { + return $this->sql_statement; + } + + /** + * Optional. The SQL statement. + * + * Generated from protobuf field string sql_statement = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setSqlStatement($var) + { + GPBUtil::checkString($var, True); + $this->sql_statement = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/StatisticRangeExpectation.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/StatisticRangeExpectation.php new file mode 100644 index 000000000000..e61d1ed1f09a --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/StatisticRangeExpectation.php @@ -0,0 +1,236 @@ +google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation + */ +class StatisticRangeExpectation extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The aggregate metric to evaluate. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.ColumnStatistic statistic = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $statistic = 0; + /** + * Optional. The minimum column statistic value allowed for a row to pass + * this validation. + * At least one of `min_value` and `max_value` need to be provided. + * + * Generated from protobuf field string min_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $min_value = ''; + /** + * Optional. The maximum column statistic value allowed for a row to pass + * this validation. + * At least one of `min_value` and `max_value` need to be provided. + * + * Generated from protobuf field string max_value = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $max_value = ''; + /** + * Optional. Whether column statistic needs to be strictly greater than + * ('>') the minimum, or if equality is allowed. + * Only relevant if a `min_value` has been defined. Default = false. + * + * Generated from protobuf field bool strict_min_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $strict_min_enabled = false; + /** + * Optional. Whether column statistic needs to be strictly lesser than ('<') + * the maximum, or if equality is allowed. + * Only relevant if a `max_value` has been defined. Default = false. + * + * Generated from protobuf field bool strict_max_enabled = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $strict_max_enabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $statistic + * Optional. The aggregate metric to evaluate. + * @type string $min_value + * Optional. The minimum column statistic value allowed for a row to pass + * this validation. + * At least one of `min_value` and `max_value` need to be provided. + * @type string $max_value + * Optional. The maximum column statistic value allowed for a row to pass + * this validation. + * At least one of `min_value` and `max_value` need to be provided. + * @type bool $strict_min_enabled + * Optional. Whether column statistic needs to be strictly greater than + * ('>') the minimum, or if equality is allowed. + * Only relevant if a `min_value` has been defined. Default = false. + * @type bool $strict_max_enabled + * Optional. Whether column statistic needs to be strictly lesser than ('<') + * the maximum, or if equality is allowed. + * Only relevant if a `max_value` has been defined. Default = false. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The aggregate metric to evaluate. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.ColumnStatistic statistic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getStatistic() + { + return $this->statistic; + } + + /** + * Optional. The aggregate metric to evaluate. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.ColumnStatistic statistic = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setStatistic($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\DataQualityRule\StatisticRangeExpectation\ColumnStatistic::class); + $this->statistic = $var; + + return $this; + } + + /** + * Optional. The minimum column statistic value allowed for a row to pass + * this validation. + * At least one of `min_value` and `max_value` need to be provided. + * + * Generated from protobuf field string min_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getMinValue() + { + return $this->min_value; + } + + /** + * Optional. The minimum column statistic value allowed for a row to pass + * this validation. + * At least one of `min_value` and `max_value` need to be provided. + * + * Generated from protobuf field string min_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setMinValue($var) + { + GPBUtil::checkString($var, True); + $this->min_value = $var; + + return $this; + } + + /** + * Optional. The maximum column statistic value allowed for a row to pass + * this validation. + * At least one of `min_value` and `max_value` need to be provided. + * + * Generated from protobuf field string max_value = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getMaxValue() + { + return $this->max_value; + } + + /** + * Optional. The maximum column statistic value allowed for a row to pass + * this validation. + * At least one of `min_value` and `max_value` need to be provided. + * + * Generated from protobuf field string max_value = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setMaxValue($var) + { + GPBUtil::checkString($var, True); + $this->max_value = $var; + + return $this; + } + + /** + * Optional. Whether column statistic needs to be strictly greater than + * ('>') the minimum, or if equality is allowed. + * Only relevant if a `min_value` has been defined. Default = false. + * + * Generated from protobuf field bool strict_min_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getStrictMinEnabled() + { + return $this->strict_min_enabled; + } + + /** + * Optional. Whether column statistic needs to be strictly greater than + * ('>') the minimum, or if equality is allowed. + * Only relevant if a `min_value` has been defined. Default = false. + * + * Generated from protobuf field bool strict_min_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setStrictMinEnabled($var) + { + GPBUtil::checkBool($var); + $this->strict_min_enabled = $var; + + return $this; + } + + /** + * Optional. Whether column statistic needs to be strictly lesser than ('<') + * the maximum, or if equality is allowed. + * Only relevant if a `max_value` has been defined. Default = false. + * + * Generated from protobuf field bool strict_max_enabled = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getStrictMaxEnabled() + { + return $this->strict_max_enabled; + } + + /** + * Optional. Whether column statistic needs to be strictly lesser than ('<') + * the maximum, or if equality is allowed. + * Only relevant if a `max_value` has been defined. Default = false. + * + * Generated from protobuf field bool strict_max_enabled = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setStrictMaxEnabled($var) + { + GPBUtil::checkBool($var); + $this->strict_max_enabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/StatisticRangeExpectation/ColumnStatistic.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/StatisticRangeExpectation/ColumnStatistic.php new file mode 100644 index 000000000000..28a3e6b136bc --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/StatisticRangeExpectation/ColumnStatistic.php @@ -0,0 +1,68 @@ +google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.ColumnStatistic + */ +class ColumnStatistic +{ + /** + * Unspecified statistic type + * + * Generated from protobuf enum STATISTIC_UNDEFINED = 0; + */ + const STATISTIC_UNDEFINED = 0; + /** + * Evaluate the column mean + * + * Generated from protobuf enum MEAN = 1; + */ + const MEAN = 1; + /** + * Evaluate the column min + * + * Generated from protobuf enum MIN = 2; + */ + const MIN = 2; + /** + * Evaluate the column max + * + * Generated from protobuf enum MAX = 3; + */ + const MAX = 3; + + private static $valueToName = [ + self::STATISTIC_UNDEFINED => 'STATISTIC_UNDEFINED', + self::MEAN => 'MEAN', + self::MIN => 'MIN', + self::MAX => 'MAX', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/TableConditionExpectation.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/TableConditionExpectation.php new file mode 100644 index 000000000000..232980272289 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/TableConditionExpectation.php @@ -0,0 +1,71 @@ += 0 + * + * Generated from protobuf message google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation + */ +class TableConditionExpectation extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The SQL expression. + * + * Generated from protobuf field string sql_expression = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $sql_expression = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $sql_expression + * Optional. The SQL expression. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The SQL expression. + * + * Generated from protobuf field string sql_expression = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getSqlExpression() + { + return $this->sql_expression; + } + + /** + * Optional. The SQL expression. + * + * Generated from protobuf field string sql_expression = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setSqlExpression($var) + { + GPBUtil::checkString($var, True); + $this->sql_expression = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/TemplateReference.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/TemplateReference.php new file mode 100644 index 000000000000..9e17a784b7af --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/TemplateReference.php @@ -0,0 +1,213 @@ +google.cloud.dataplex.v1.DataQualityRule.TemplateReference + */ +class TemplateReference extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The template entry name. Entry must be of EntryType + * `projects/dataplex-types/locations/global/entryTypes/data-quality-rule-template` + * and contains top-level aspect of AspectType + * `projects/dataplex-types/locations/global/aspectTypes/data-quality-rule-template`. + * The format is: + * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. Provides the map of parameter name and value. + * The maximum size of the field is 120KB (encoded as UTF-8). + * + * Generated from protobuf field map values = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $values; + /** + * Output only. The resolved SQL statement generated from the template with + * parameters substituted. It is only populated in the result. + * + * Generated from protobuf field string resolved_sql = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $resolved_sql = ''; + /** + * Output only. The rule template used to resolve the rule. It is only + * populated in the result. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRuleTemplate rule_template = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $rule_template = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The template entry name. Entry must be of EntryType + * `projects/dataplex-types/locations/global/entryTypes/data-quality-rule-template` + * and contains top-level aspect of AspectType + * `projects/dataplex-types/locations/global/aspectTypes/data-quality-rule-template`. + * The format is: + * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}` + * @type array|\Google\Protobuf\Internal\MapField $values + * Optional. Provides the map of parameter name and value. + * The maximum size of the field is 120KB (encoded as UTF-8). + * @type string $resolved_sql + * Output only. The resolved SQL statement generated from the template with + * parameters substituted. It is only populated in the result. + * @type \Google\Cloud\Dataplex\V1\DataQualityRuleTemplate $rule_template + * Output only. The rule template used to resolve the rule. It is only + * populated in the result. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); + parent::__construct($data); + } + + /** + * Required. The template entry name. Entry must be of EntryType + * `projects/dataplex-types/locations/global/entryTypes/data-quality-rule-template` + * and contains top-level aspect of AspectType + * `projects/dataplex-types/locations/global/aspectTypes/data-quality-rule-template`. + * The format is: + * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}` + * + * 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 template entry name. Entry must be of EntryType + * `projects/dataplex-types/locations/global/entryTypes/data-quality-rule-template` + * and contains top-level aspect of AspectType + * `projects/dataplex-types/locations/global/aspectTypes/data-quality-rule-template`. + * The format is: + * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}` + * + * 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. Provides the map of parameter name and value. + * The maximum size of the field is 120KB (encoded as UTF-8). + * + * Generated from protobuf field map values = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getValues() + { + return $this->values; + } + + /** + * Optional. Provides the map of parameter name and value. + * The maximum size of the field is 120KB (encoded as UTF-8). + * + * Generated from protobuf field map values = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setValues($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\DataQualityRule\TemplateReference\ParameterValue::class); + $this->values = $arr; + + return $this; + } + + /** + * Output only. The resolved SQL statement generated from the template with + * parameters substituted. It is only populated in the result. + * + * Generated from protobuf field string resolved_sql = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getResolvedSql() + { + return $this->resolved_sql; + } + + /** + * Output only. The resolved SQL statement generated from the template with + * parameters substituted. It is only populated in the result. + * + * Generated from protobuf field string resolved_sql = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setResolvedSql($var) + { + GPBUtil::checkString($var, True); + $this->resolved_sql = $var; + + return $this; + } + + /** + * Output only. The rule template used to resolve the rule. It is only + * populated in the result. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRuleTemplate rule_template = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataplex\V1\DataQualityRuleTemplate|null + */ + public function getRuleTemplate() + { + return $this->rule_template; + } + + public function hasRuleTemplate() + { + return isset($this->rule_template); + } + + public function clearRuleTemplate() + { + unset($this->rule_template); + } + + /** + * Output only. The rule template used to resolve the rule. It is only + * populated in the result. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRuleTemplate rule_template = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\DataQualityRuleTemplate $var + * @return $this + */ + public function setRuleTemplate($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataQualityRuleTemplate::class); + $this->rule_template = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/TemplateReference/ParameterValue.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/TemplateReference/ParameterValue.php new file mode 100644 index 000000000000..ab4ca0c95183 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/TemplateReference/ParameterValue.php @@ -0,0 +1,67 @@ +google.cloud.dataplex.v1.DataQualityRule.TemplateReference.ParameterValue + */ +class ParameterValue extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Represents the string value of the parameter. + * + * Generated from protobuf field string value = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $value = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $value + * Required. Represents the string value of the parameter. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); + parent::__construct($data); + } + + /** + * Required. Represents the string value of the parameter. + * + * Generated from protobuf field string value = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getValue() + { + return $this->value; + } + + /** + * Required. Represents the string value of the parameter. + * + * Generated from protobuf field string value = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkString($var, True); + $this->value = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/UniquenessExpectation.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/UniquenessExpectation.php new file mode 100644 index 000000000000..1b312e53f784 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/UniquenessExpectation.php @@ -0,0 +1,33 @@ +google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation + */ +class UniquenessExpectation extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRuleResult.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRuleResult.php new file mode 100644 index 000000000000..364810237c84 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRuleResult.php @@ -0,0 +1,409 @@ +google.cloud.dataplex.v1.DataQualityRuleResult + */ +class DataQualityRuleResult extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The rule specified in the DataQualitySpec, as is. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule rule = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $rule = null; + /** + * Output only. Whether the rule passed or failed. + * + * Generated from protobuf field bool passed = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $passed = false; + /** + * Output only. The number of rows a rule was evaluated against. + * This field is only valid for row-level type rules. + * Evaluated count can be configured to either + * * include all rows (default) - with `null` rows automatically failing rule + * evaluation, or + * * exclude `null` rows from the `evaluated_count`, by setting + * `ignore_nulls = true`. + * This field is not set for rule SqlAssertion. + * + * Generated from protobuf field int64 evaluated_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $evaluated_count = 0; + /** + * Output only. The number of rows which passed a rule evaluation. + * This field is only valid for row-level type rules. + * This field is not set for rule SqlAssertion. + * + * Generated from protobuf field int64 passed_count = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $passed_count = 0; + /** + * Output only. The number of rows with null values in the specified column. + * + * Generated from protobuf field int64 null_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $null_count = 0; + /** + * Output only. The ratio of **passed_count / evaluated_count**. + * This field is only valid for row-level type rules. + * + * Generated from protobuf field double pass_ratio = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $pass_ratio = 0.0; + /** + * Output only. The query to find rows that did not pass this rule. + * This field is only valid for row-level type rules. + * + * Generated from protobuf field string failing_rows_query = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $failing_rows_query = ''; + /** + * Output only. The number of rows returned by the SQL statement in a SQL + * assertion rule. + * This field is only valid for SQL assertion rules. + * + * Generated from protobuf field int64 assertion_row_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $assertion_row_count = 0; + /** + * Output only. Contains the results of all debug queries for this rule. + * The number of result sets will correspond to the number of + * [debug_queries][google.cloud.dataplex.v1.DataQualityRule.debug_queries]. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityRuleResult.DebugQueryResultSet debug_queries_result_sets = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $debug_queries_result_sets; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\DataQualityRule $rule + * Output only. The rule specified in the DataQualitySpec, as is. + * @type bool $passed + * Output only. Whether the rule passed or failed. + * @type int|string $evaluated_count + * Output only. The number of rows a rule was evaluated against. + * This field is only valid for row-level type rules. + * Evaluated count can be configured to either + * * include all rows (default) - with `null` rows automatically failing rule + * evaluation, or + * * exclude `null` rows from the `evaluated_count`, by setting + * `ignore_nulls = true`. + * This field is not set for rule SqlAssertion. + * @type int|string $passed_count + * Output only. The number of rows which passed a rule evaluation. + * This field is only valid for row-level type rules. + * This field is not set for rule SqlAssertion. + * @type int|string $null_count + * Output only. The number of rows with null values in the specified column. + * @type float $pass_ratio + * Output only. The ratio of **passed_count / evaluated_count**. + * This field is only valid for row-level type rules. + * @type string $failing_rows_query + * Output only. The query to find rows that did not pass this rule. + * This field is only valid for row-level type rules. + * @type int|string $assertion_row_count + * Output only. The number of rows returned by the SQL statement in a SQL + * assertion rule. + * This field is only valid for SQL assertion rules. + * @type \Google\Cloud\Dataplex\V1\DataQualityRuleResult\DebugQueryResultSet[] $debug_queries_result_sets + * Output only. Contains the results of all debug queries for this rule. + * The number of result sets will correspond to the number of + * [debug_queries][google.cloud.dataplex.v1.DataQualityRule.debug_queries]. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The rule specified in the DataQualitySpec, as is. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule rule = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataplex\V1\DataQualityRule|null + */ + public function getRule() + { + return $this->rule; + } + + public function hasRule() + { + return isset($this->rule); + } + + public function clearRule() + { + unset($this->rule); + } + + /** + * Output only. The rule specified in the DataQualitySpec, as is. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule rule = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\DataQualityRule $var + * @return $this + */ + public function setRule($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataQualityRule::class); + $this->rule = $var; + + return $this; + } + + /** + * Output only. Whether the rule passed or failed. + * + * Generated from protobuf field bool passed = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getPassed() + { + return $this->passed; + } + + /** + * Output only. Whether the rule passed or failed. + * + * Generated from protobuf field bool passed = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setPassed($var) + { + GPBUtil::checkBool($var); + $this->passed = $var; + + return $this; + } + + /** + * Output only. The number of rows a rule was evaluated against. + * This field is only valid for row-level type rules. + * Evaluated count can be configured to either + * * include all rows (default) - with `null` rows automatically failing rule + * evaluation, or + * * exclude `null` rows from the `evaluated_count`, by setting + * `ignore_nulls = true`. + * This field is not set for rule SqlAssertion. + * + * Generated from protobuf field int64 evaluated_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getEvaluatedCount() + { + return $this->evaluated_count; + } + + /** + * Output only. The number of rows a rule was evaluated against. + * This field is only valid for row-level type rules. + * Evaluated count can be configured to either + * * include all rows (default) - with `null` rows automatically failing rule + * evaluation, or + * * exclude `null` rows from the `evaluated_count`, by setting + * `ignore_nulls = true`. + * This field is not set for rule SqlAssertion. + * + * Generated from protobuf field int64 evaluated_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setEvaluatedCount($var) + { + GPBUtil::checkInt64($var); + $this->evaluated_count = $var; + + return $this; + } + + /** + * Output only. The number of rows which passed a rule evaluation. + * This field is only valid for row-level type rules. + * This field is not set for rule SqlAssertion. + * + * Generated from protobuf field int64 passed_count = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getPassedCount() + { + return $this->passed_count; + } + + /** + * Output only. The number of rows which passed a rule evaluation. + * This field is only valid for row-level type rules. + * This field is not set for rule SqlAssertion. + * + * Generated from protobuf field int64 passed_count = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setPassedCount($var) + { + GPBUtil::checkInt64($var); + $this->passed_count = $var; + + return $this; + } + + /** + * Output only. The number of rows with null values in the specified column. + * + * Generated from protobuf field int64 null_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getNullCount() + { + return $this->null_count; + } + + /** + * Output only. The number of rows with null values in the specified column. + * + * Generated from protobuf field int64 null_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setNullCount($var) + { + GPBUtil::checkInt64($var); + $this->null_count = $var; + + return $this; + } + + /** + * Output only. The ratio of **passed_count / evaluated_count**. + * This field is only valid for row-level type rules. + * + * Generated from protobuf field double pass_ratio = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return float + */ + public function getPassRatio() + { + return $this->pass_ratio; + } + + /** + * Output only. The ratio of **passed_count / evaluated_count**. + * This field is only valid for row-level type rules. + * + * Generated from protobuf field double pass_ratio = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param float $var + * @return $this + */ + public function setPassRatio($var) + { + GPBUtil::checkDouble($var); + $this->pass_ratio = $var; + + return $this; + } + + /** + * Output only. The query to find rows that did not pass this rule. + * This field is only valid for row-level type rules. + * + * Generated from protobuf field string failing_rows_query = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getFailingRowsQuery() + { + return $this->failing_rows_query; + } + + /** + * Output only. The query to find rows that did not pass this rule. + * This field is only valid for row-level type rules. + * + * Generated from protobuf field string failing_rows_query = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setFailingRowsQuery($var) + { + GPBUtil::checkString($var, True); + $this->failing_rows_query = $var; + + return $this; + } + + /** + * Output only. The number of rows returned by the SQL statement in a SQL + * assertion rule. + * This field is only valid for SQL assertion rules. + * + * Generated from protobuf field int64 assertion_row_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getAssertionRowCount() + { + return $this->assertion_row_count; + } + + /** + * Output only. The number of rows returned by the SQL statement in a SQL + * assertion rule. + * This field is only valid for SQL assertion rules. + * + * Generated from protobuf field int64 assertion_row_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setAssertionRowCount($var) + { + GPBUtil::checkInt64($var); + $this->assertion_row_count = $var; + + return $this; + } + + /** + * Output only. Contains the results of all debug queries for this rule. + * The number of result sets will correspond to the number of + * [debug_queries][google.cloud.dataplex.v1.DataQualityRule.debug_queries]. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityRuleResult.DebugQueryResultSet debug_queries_result_sets = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField<\Google\Cloud\Dataplex\V1\DataQualityRuleResult\DebugQueryResultSet> + */ + public function getDebugQueriesResultSets() + { + return $this->debug_queries_result_sets; + } + + /** + * Output only. Contains the results of all debug queries for this rule. + * The number of result sets will correspond to the number of + * [debug_queries][google.cloud.dataplex.v1.DataQualityRule.debug_queries]. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityRuleResult.DebugQueryResultSet debug_queries_result_sets = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\DataQualityRuleResult\DebugQueryResultSet[] $var + * @return $this + */ + public function setDebugQueriesResultSets($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\DataQualityRuleResult\DebugQueryResultSet::class); + $this->debug_queries_result_sets = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRuleResult/DebugQueryResult.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRuleResult/DebugQueryResult.php new file mode 100644 index 000000000000..10e5747708ff --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRuleResult/DebugQueryResult.php @@ -0,0 +1,147 @@ +google.cloud.dataplex.v1.DataQualityRuleResult.DebugQueryResult + */ +class DebugQueryResult extends \Google\Protobuf\Internal\Message +{ + /** + * Specifies the name of the result. Available if provided with an explicit + * alias using `[AS] alias`. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Indicates the data type of the result. For more information, see + * [BigQuery data + * types](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types). + * + * Generated from protobuf field string type = 2; + */ + protected $type = ''; + /** + * Represents the value of the result as a string. + * + * Generated from protobuf field string value = 3; + */ + protected $value = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Specifies the name of the result. Available if provided with an explicit + * alias using `[AS] alias`. + * @type string $type + * Indicates the data type of the result. For more information, see + * [BigQuery data + * types](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types). + * @type string $value + * Represents the value of the result as a string. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); + parent::__construct($data); + } + + /** + * Specifies the name of the result. Available if provided with an explicit + * alias using `[AS] alias`. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Specifies the name of the result. Available if provided with an explicit + * alias using `[AS] alias`. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Indicates the data type of the result. For more information, see + * [BigQuery data + * types](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types). + * + * Generated from protobuf field string type = 2; + * @return string + */ + public function getType() + { + return $this->type; + } + + /** + * Indicates the data type of the result. For more information, see + * [BigQuery data + * types](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types). + * + * Generated from protobuf field string type = 2; + * @param string $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkString($var, True); + $this->type = $var; + + return $this; + } + + /** + * Represents the value of the result as a string. + * + * Generated from protobuf field string value = 3; + * @return string + */ + public function getValue() + { + return $this->value; + } + + /** + * Represents the value of the result as a string. + * + * Generated from protobuf field string value = 3; + * @param string $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkString($var, True); + $this->value = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRuleResult/DebugQueryResultSet.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRuleResult/DebugQueryResultSet.php new file mode 100644 index 000000000000..eb6e8bcae084 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRuleResult/DebugQueryResultSet.php @@ -0,0 +1,67 @@ +google.cloud.dataplex.v1.DataQualityRuleResult.DebugQueryResultSet + */ +class DebugQueryResultSet extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Contains all results. Up to 10 results can be returned. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityRuleResult.DebugQueryResult results = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $results; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\DataQualityRuleResult\DebugQueryResult[] $results + * Output only. Contains all results. Up to 10 results can be returned. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Contains all results. Up to 10 results can be returned. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityRuleResult.DebugQueryResult results = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField<\Google\Cloud\Dataplex\V1\DataQualityRuleResult\DebugQueryResult> + */ + public function getResults() + { + return $this->results; + } + + /** + * Output only. Contains all results. Up to 10 results can be returned. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityRuleResult.DebugQueryResult results = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\DataQualityRuleResult\DebugQueryResult[] $var + * @return $this + */ + public function setResults($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\DataQualityRuleResult\DebugQueryResult::class); + $this->results = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRuleTemplate.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRuleTemplate.php new file mode 100644 index 000000000000..c1756214ac97 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRuleTemplate.php @@ -0,0 +1,220 @@ +google.cloud.dataplex.v1.DataQualityRuleTemplate + */ +class DataQualityRuleTemplate extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The name of the rule template in the format: + * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $name = ''; + /** + * Output only. The dimension a rule template belongs to. Rule level results + * are also aggregated at the dimension level. + * + * Generated from protobuf field string dimension = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $dimension = ''; + /** + * Output only. Collection of SQLs for data quality rules. Currently only one + * SQL is supported. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityRuleTemplate.Sql sql_collection = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $sql_collection; + /** + * Output only. Description for input parameters + * + * Generated from protobuf field map input_parameters = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $input_parameters; + /** + * Output only. A list of features or properties supported by this rule + * template. + * + * Generated from protobuf field repeated string capabilities = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $capabilities; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. The name of the rule template in the format: + * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}` + * @type string $dimension + * Output only. The dimension a rule template belongs to. Rule level results + * are also aggregated at the dimension level. + * @type \Google\Cloud\Dataplex\V1\DataQualityRuleTemplate\Sql[] $sql_collection + * Output only. Collection of SQLs for data quality rules. Currently only one + * SQL is supported. + * @type array|\Google\Protobuf\Internal\MapField $input_parameters + * Output only. Description for input parameters + * @type string[] $capabilities + * Output only. A list of features or properties supported by this rule + * template. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataQualityRuleTemplate::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The name of the rule template in the format: + * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}` + * + * 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 rule template in the format: + * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}` + * + * 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 dimension a rule template belongs to. Rule level results + * are also aggregated at the dimension level. + * + * Generated from protobuf field string dimension = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDimension() + { + return $this->dimension; + } + + /** + * Output only. The dimension a rule template belongs to. Rule level results + * are also aggregated at the dimension level. + * + * Generated from protobuf field string dimension = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDimension($var) + { + GPBUtil::checkString($var, True); + $this->dimension = $var; + + return $this; + } + + /** + * Output only. Collection of SQLs for data quality rules. Currently only one + * SQL is supported. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityRuleTemplate.Sql sql_collection = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField<\Google\Cloud\Dataplex\V1\DataQualityRuleTemplate\Sql> + */ + public function getSqlCollection() + { + return $this->sql_collection; + } + + /** + * Output only. Collection of SQLs for data quality rules. Currently only one + * SQL is supported. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityRuleTemplate.Sql sql_collection = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\DataQualityRuleTemplate\Sql[] $var + * @return $this + */ + public function setSqlCollection($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\DataQualityRuleTemplate\Sql::class); + $this->sql_collection = $arr; + + return $this; + } + + /** + * Output only. Description for input parameters + * + * Generated from protobuf field map input_parameters = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getInputParameters() + { + return $this->input_parameters; + } + + /** + * Output only. Description for input parameters + * + * Generated from protobuf field map input_parameters = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setInputParameters($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\DataQualityRuleTemplate\ParameterDescription::class); + $this->input_parameters = $arr; + + return $this; + } + + /** + * Output only. A list of features or properties supported by this rule + * template. + * + * Generated from protobuf field repeated string capabilities = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField + */ + public function getCapabilities() + { + return $this->capabilities; + } + + /** + * Output only. A list of features or properties supported by this rule + * template. + * + * Generated from protobuf field repeated string capabilities = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string[] $var + * @return $this + */ + public function setCapabilities($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->capabilities = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRuleTemplate/ParameterDescription.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRuleTemplate/ParameterDescription.php new file mode 100644 index 000000000000..e87be15f2d67 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRuleTemplate/ParameterDescription.php @@ -0,0 +1,115 @@ +google.cloud.dataplex.v1.DataQualityRuleTemplate.ParameterDescription + */ +class ParameterDescription extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Description of the input parameter. It can include the + * type(s) supported by the parameter and intended usage. It is for + * information purposes only and does not affect the behavior of the rule + * template. + * + * Generated from protobuf field string description = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $description = ''; + /** + * Output only. The default value for the parameter if no value is provided. + * + * Generated from protobuf field string default_value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $default_value = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $description + * Output only. Description of the input parameter. It can include the + * type(s) supported by the parameter and intended usage. It is for + * information purposes only and does not affect the behavior of the rule + * template. + * @type string $default_value + * Output only. The default value for the parameter if no value is provided. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataQualityRuleTemplate::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Description of the input parameter. It can include the + * type(s) supported by the parameter and intended usage. It is for + * information purposes only and does not affect the behavior of the rule + * template. + * + * Generated from protobuf field string description = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Output only. Description of the input parameter. It can include the + * type(s) supported by the parameter and intended usage. It is for + * information purposes only and does not affect the behavior of the rule + * template. + * + * Generated from protobuf field string description = 1 [(.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 default value for the parameter if no value is provided. + * + * Generated from protobuf field string default_value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDefaultValue() + { + return $this->default_value; + } + + /** + * Output only. The default value for the parameter if no value is provided. + * + * Generated from protobuf field string default_value = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDefaultValue($var) + { + GPBUtil::checkString($var, True); + $this->default_value = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRuleTemplate/Sql.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRuleTemplate/Sql.php new file mode 100644 index 000000000000..cc971bee0aa0 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRuleTemplate/Sql.php @@ -0,0 +1,68 @@ +google.cloud.dataplex.v1.DataQualityRuleTemplate.Sql + */ +class Sql extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Templatized SQL query for data quality rules. + * + * Generated from protobuf field string query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $query = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $query + * Output only. Templatized SQL query for data quality rules. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataQualityRuleTemplate::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Templatized SQL query for data quality rules. + * + * Generated from protobuf field string query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getQuery() + { + return $this->query; + } + + /** + * Output only. Templatized SQL query for data quality rules. + * + * Generated from protobuf field string query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setQuery($var) + { + GPBUtil::checkString($var, True); + $this->query = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityScanRuleResult.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityScanRuleResult.php new file mode 100644 index 000000000000..fd7a0ac9b0e9 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityScanRuleResult.php @@ -0,0 +1,488 @@ +google.cloud.dataplex.v1.DataQualityScanRuleResult + */ +class DataQualityScanRuleResult extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier of the specific data scan job this log entry is for. + * + * Generated from protobuf field string job_id = 1; + */ + protected $job_id = ''; + /** + * The data source of the data scan (e.g. BigQuery table name). + * + * Generated from protobuf field string data_source = 2; + */ + protected $data_source = ''; + /** + * The column which this rule is evaluated against. + * + * Generated from protobuf field string column = 3; + */ + protected $column = ''; + /** + * The name of the data quality rule. + * + * Generated from protobuf field string rule_name = 4; + */ + protected $rule_name = ''; + /** + * The type of the data quality rule. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityScanRuleResult.RuleType rule_type = 5; + */ + protected $rule_type = 0; + /** + * The evaluation type of the data quality rule. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityScanRuleResult.EvaluationType evalution_type = 6; + */ + protected $evalution_type = 0; + /** + * The dimension of the data quality rule. + * + * Generated from protobuf field string rule_dimension = 7; + */ + protected $rule_dimension = ''; + /** + * The passing threshold ([0.0, 100.0]) of the data quality rule. + * + * Generated from protobuf field double threshold_percent = 8; + */ + protected $threshold_percent = 0.0; + /** + * The result of the data quality rule. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityScanRuleResult.Result result = 9; + */ + protected $result = 0; + /** + * The number of rows evaluated against the data quality rule. + * This field is only valid for rules of PER_ROW evaluation type. + * + * Generated from protobuf field int64 evaluated_row_count = 10; + */ + protected $evaluated_row_count = 0; + /** + * The number of rows which passed a rule evaluation. + * This field is only valid for rules of PER_ROW evaluation type. + * + * Generated from protobuf field int64 passed_row_count = 11; + */ + protected $passed_row_count = 0; + /** + * The number of rows with null values in the specified column. + * + * Generated from protobuf field int64 null_row_count = 12; + */ + protected $null_row_count = 0; + /** + * The number of rows returned by the SQL statement in a SQL assertion rule. + * This field is only valid for SQL assertion rules. + * + * Generated from protobuf field int64 assertion_row_count = 13; + */ + protected $assertion_row_count = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $job_id + * Identifier of the specific data scan job this log entry is for. + * @type string $data_source + * The data source of the data scan (e.g. BigQuery table name). + * @type string $column + * The column which this rule is evaluated against. + * @type string $rule_name + * The name of the data quality rule. + * @type int $rule_type + * The type of the data quality rule. + * @type int $evalution_type + * The evaluation type of the data quality rule. + * @type string $rule_dimension + * The dimension of the data quality rule. + * @type float $threshold_percent + * The passing threshold ([0.0, 100.0]) of the data quality rule. + * @type int $result + * The result of the data quality rule. + * @type int|string $evaluated_row_count + * The number of rows evaluated against the data quality rule. + * This field is only valid for rules of PER_ROW evaluation type. + * @type int|string $passed_row_count + * The number of rows which passed a rule evaluation. + * This field is only valid for rules of PER_ROW evaluation type. + * @type int|string $null_row_count + * The number of rows with null values in the specified column. + * @type int|string $assertion_row_count + * The number of rows returned by the SQL statement in a SQL assertion rule. + * This field is only valid for SQL assertion rules. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Logs::initOnce(); + parent::__construct($data); + } + + /** + * Identifier of the specific data scan job this log entry is for. + * + * Generated from protobuf field string job_id = 1; + * @return string + */ + public function getJobId() + { + return $this->job_id; + } + + /** + * Identifier of the specific data scan job this log entry is for. + * + * Generated from protobuf field string job_id = 1; + * @param string $var + * @return $this + */ + public function setJobId($var) + { + GPBUtil::checkString($var, True); + $this->job_id = $var; + + return $this; + } + + /** + * The data source of the data scan (e.g. BigQuery table name). + * + * Generated from protobuf field string data_source = 2; + * @return string + */ + public function getDataSource() + { + return $this->data_source; + } + + /** + * The data source of the data scan (e.g. BigQuery table name). + * + * Generated from protobuf field string data_source = 2; + * @param string $var + * @return $this + */ + public function setDataSource($var) + { + GPBUtil::checkString($var, True); + $this->data_source = $var; + + return $this; + } + + /** + * The column which this rule is evaluated against. + * + * Generated from protobuf field string column = 3; + * @return string + */ + public function getColumn() + { + return $this->column; + } + + /** + * The column which this rule is evaluated against. + * + * Generated from protobuf field string column = 3; + * @param string $var + * @return $this + */ + public function setColumn($var) + { + GPBUtil::checkString($var, True); + $this->column = $var; + + return $this; + } + + /** + * The name of the data quality rule. + * + * Generated from protobuf field string rule_name = 4; + * @return string + */ + public function getRuleName() + { + return $this->rule_name; + } + + /** + * The name of the data quality rule. + * + * Generated from protobuf field string rule_name = 4; + * @param string $var + * @return $this + */ + public function setRuleName($var) + { + GPBUtil::checkString($var, True); + $this->rule_name = $var; + + return $this; + } + + /** + * The type of the data quality rule. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityScanRuleResult.RuleType rule_type = 5; + * @return int + */ + public function getRuleType() + { + return $this->rule_type; + } + + /** + * The type of the data quality rule. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityScanRuleResult.RuleType rule_type = 5; + * @param int $var + * @return $this + */ + public function setRuleType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\DataQualityScanRuleResult\RuleType::class); + $this->rule_type = $var; + + return $this; + } + + /** + * The evaluation type of the data quality rule. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityScanRuleResult.EvaluationType evalution_type = 6; + * @return int + */ + public function getEvalutionType() + { + return $this->evalution_type; + } + + /** + * The evaluation type of the data quality rule. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityScanRuleResult.EvaluationType evalution_type = 6; + * @param int $var + * @return $this + */ + public function setEvalutionType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\DataQualityScanRuleResult\EvaluationType::class); + $this->evalution_type = $var; + + return $this; + } + + /** + * The dimension of the data quality rule. + * + * Generated from protobuf field string rule_dimension = 7; + * @return string + */ + public function getRuleDimension() + { + return $this->rule_dimension; + } + + /** + * The dimension of the data quality rule. + * + * Generated from protobuf field string rule_dimension = 7; + * @param string $var + * @return $this + */ + public function setRuleDimension($var) + { + GPBUtil::checkString($var, True); + $this->rule_dimension = $var; + + return $this; + } + + /** + * The passing threshold ([0.0, 100.0]) of the data quality rule. + * + * Generated from protobuf field double threshold_percent = 8; + * @return float + */ + public function getThresholdPercent() + { + return $this->threshold_percent; + } + + /** + * The passing threshold ([0.0, 100.0]) of the data quality rule. + * + * Generated from protobuf field double threshold_percent = 8; + * @param float $var + * @return $this + */ + public function setThresholdPercent($var) + { + GPBUtil::checkDouble($var); + $this->threshold_percent = $var; + + return $this; + } + + /** + * The result of the data quality rule. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityScanRuleResult.Result result = 9; + * @return int + */ + public function getResult() + { + return $this->result; + } + + /** + * The result of the data quality rule. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityScanRuleResult.Result result = 9; + * @param int $var + * @return $this + */ + public function setResult($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\DataQualityScanRuleResult\Result::class); + $this->result = $var; + + return $this; + } + + /** + * The number of rows evaluated against the data quality rule. + * This field is only valid for rules of PER_ROW evaluation type. + * + * Generated from protobuf field int64 evaluated_row_count = 10; + * @return int|string + */ + public function getEvaluatedRowCount() + { + return $this->evaluated_row_count; + } + + /** + * The number of rows evaluated against the data quality rule. + * This field is only valid for rules of PER_ROW evaluation type. + * + * Generated from protobuf field int64 evaluated_row_count = 10; + * @param int|string $var + * @return $this + */ + public function setEvaluatedRowCount($var) + { + GPBUtil::checkInt64($var); + $this->evaluated_row_count = $var; + + return $this; + } + + /** + * The number of rows which passed a rule evaluation. + * This field is only valid for rules of PER_ROW evaluation type. + * + * Generated from protobuf field int64 passed_row_count = 11; + * @return int|string + */ + public function getPassedRowCount() + { + return $this->passed_row_count; + } + + /** + * The number of rows which passed a rule evaluation. + * This field is only valid for rules of PER_ROW evaluation type. + * + * Generated from protobuf field int64 passed_row_count = 11; + * @param int|string $var + * @return $this + */ + public function setPassedRowCount($var) + { + GPBUtil::checkInt64($var); + $this->passed_row_count = $var; + + return $this; + } + + /** + * The number of rows with null values in the specified column. + * + * Generated from protobuf field int64 null_row_count = 12; + * @return int|string + */ + public function getNullRowCount() + { + return $this->null_row_count; + } + + /** + * The number of rows with null values in the specified column. + * + * Generated from protobuf field int64 null_row_count = 12; + * @param int|string $var + * @return $this + */ + public function setNullRowCount($var) + { + GPBUtil::checkInt64($var); + $this->null_row_count = $var; + + return $this; + } + + /** + * The number of rows returned by the SQL statement in a SQL assertion rule. + * This field is only valid for SQL assertion rules. + * + * Generated from protobuf field int64 assertion_row_count = 13; + * @return int|string + */ + public function getAssertionRowCount() + { + return $this->assertion_row_count; + } + + /** + * The number of rows returned by the SQL statement in a SQL assertion rule. + * This field is only valid for SQL assertion rules. + * + * Generated from protobuf field int64 assertion_row_count = 13; + * @param int|string $var + * @return $this + */ + public function setAssertionRowCount($var) + { + GPBUtil::checkInt64($var); + $this->assertion_row_count = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityScanRuleResult/EvaluationType.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityScanRuleResult/EvaluationType.php new file mode 100644 index 000000000000..d5d51f216e4a --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityScanRuleResult/EvaluationType.php @@ -0,0 +1,61 @@ +google.cloud.dataplex.v1.DataQualityScanRuleResult.EvaluationType + */ +class EvaluationType +{ + /** + * An unspecified evaluation type. + * + * Generated from protobuf enum EVALUATION_TYPE_UNSPECIFIED = 0; + */ + const EVALUATION_TYPE_UNSPECIFIED = 0; + /** + * The rule evaluation is done at per row level. + * + * Generated from protobuf enum PER_ROW = 1; + */ + const PER_ROW = 1; + /** + * The rule evaluation is done for an aggregate of rows. + * + * Generated from protobuf enum AGGREGATE = 2; + */ + const AGGREGATE = 2; + + private static $valueToName = [ + self::EVALUATION_TYPE_UNSPECIFIED => 'EVALUATION_TYPE_UNSPECIFIED', + self::PER_ROW => 'PER_ROW', + self::AGGREGATE => 'AGGREGATE', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityScanRuleResult/Result.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityScanRuleResult/Result.php new file mode 100644 index 000000000000..4a80e74ec275 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityScanRuleResult/Result.php @@ -0,0 +1,61 @@ +google.cloud.dataplex.v1.DataQualityScanRuleResult.Result + */ +class Result +{ + /** + * An unspecified result. + * + * Generated from protobuf enum RESULT_UNSPECIFIED = 0; + */ + const RESULT_UNSPECIFIED = 0; + /** + * The data quality rule passed. + * + * Generated from protobuf enum PASSED = 1; + */ + const PASSED = 1; + /** + * The data quality rule failed. + * + * Generated from protobuf enum FAILED = 2; + */ + const FAILED = 2; + + private static $valueToName = [ + self::RESULT_UNSPECIFIED => 'RESULT_UNSPECIFIED', + self::PASSED => 'PASSED', + self::FAILED => 'FAILED', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityScanRuleResult/RuleType.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityScanRuleResult/RuleType.php new file mode 100644 index 000000000000..b7519f675823 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityScanRuleResult/RuleType.php @@ -0,0 +1,127 @@ +google.cloud.dataplex.v1.DataQualityScanRuleResult.RuleType + */ +class RuleType +{ + /** + * An unspecified rule type. + * + * Generated from protobuf enum RULE_TYPE_UNSPECIFIED = 0; + */ + const RULE_TYPE_UNSPECIFIED = 0; + /** + * See + * [DataQualityRule.NonNullExpectation][google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation]. + * + * Generated from protobuf enum NON_NULL_EXPECTATION = 1; + */ + const NON_NULL_EXPECTATION = 1; + /** + * See + * [DataQualityRule.RangeExpectation][google.cloud.dataplex.v1.DataQualityRule.RangeExpectation]. + * + * Generated from protobuf enum RANGE_EXPECTATION = 2; + */ + const RANGE_EXPECTATION = 2; + /** + * See + * [DataQualityRule.RegexExpectation][google.cloud.dataplex.v1.DataQualityRule.RegexExpectation]. + * + * Generated from protobuf enum REGEX_EXPECTATION = 3; + */ + const REGEX_EXPECTATION = 3; + /** + * See + * [DataQualityRule.RowConditionExpectation][google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation]. + * + * Generated from protobuf enum ROW_CONDITION_EXPECTATION = 4; + */ + const ROW_CONDITION_EXPECTATION = 4; + /** + * See + * [DataQualityRule.SetExpectation][google.cloud.dataplex.v1.DataQualityRule.SetExpectation]. + * + * Generated from protobuf enum SET_EXPECTATION = 5; + */ + const SET_EXPECTATION = 5; + /** + * See + * [DataQualityRule.StatisticRangeExpectation][google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation]. + * + * Generated from protobuf enum STATISTIC_RANGE_EXPECTATION = 6; + */ + const STATISTIC_RANGE_EXPECTATION = 6; + /** + * See + * [DataQualityRule.TableConditionExpectation][google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation]. + * + * Generated from protobuf enum TABLE_CONDITION_EXPECTATION = 7; + */ + const TABLE_CONDITION_EXPECTATION = 7; + /** + * See + * [DataQualityRule.UniquenessExpectation][google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation]. + * + * Generated from protobuf enum UNIQUENESS_EXPECTATION = 8; + */ + const UNIQUENESS_EXPECTATION = 8; + /** + * See + * [DataQualityRule.SqlAssertion][google.cloud.dataplex.v1.DataQualityRule.SqlAssertion]. + * + * Generated from protobuf enum SQL_ASSERTION = 9; + */ + const SQL_ASSERTION = 9; + /** + * See + * [DataQualityRule.TemplateReference][google.cloud.dataplex.v1.DataQualityRule.TemplateReference]. + * + * Generated from protobuf enum TEMPLATE_REFERENCE = 10; + */ + const TEMPLATE_REFERENCE = 10; + + private static $valueToName = [ + self::RULE_TYPE_UNSPECIFIED => 'RULE_TYPE_UNSPECIFIED', + self::NON_NULL_EXPECTATION => 'NON_NULL_EXPECTATION', + self::RANGE_EXPECTATION => 'RANGE_EXPECTATION', + self::REGEX_EXPECTATION => 'REGEX_EXPECTATION', + self::ROW_CONDITION_EXPECTATION => 'ROW_CONDITION_EXPECTATION', + self::SET_EXPECTATION => 'SET_EXPECTATION', + self::STATISTIC_RANGE_EXPECTATION => 'STATISTIC_RANGE_EXPECTATION', + self::TABLE_CONDITION_EXPECTATION => 'TABLE_CONDITION_EXPECTATION', + self::UNIQUENESS_EXPECTATION => 'UNIQUENESS_EXPECTATION', + self::SQL_ASSERTION => 'SQL_ASSERTION', + self::TEMPLATE_REFERENCE => 'TEMPLATE_REFERENCE', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec.php new file mode 100644 index 000000000000..48caf1a03755 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec.php @@ -0,0 +1,389 @@ +google.cloud.dataplex.v1.DataQualitySpec + */ +class DataQualitySpec extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The list of rules to evaluate against a data source. At least one + * rule is required. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private $rules; + /** + * Optional. The percentage of the records to be selected from the dataset for + * DataScan. + * * Value can range between 0.0 and 100.0 with up to 3 significant decimal + * digits. + * * Sampling is not applied if `sampling_percent` is not specified, 0 or + * 100. + * + * Generated from protobuf field float sampling_percent = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $sampling_percent = 0.0; + /** + * Optional. A filter applied to all rows in a single DataScan job. + * The filter needs to be a valid SQL expression for a [WHERE clause in + * GoogleSQL + * syntax](https://cloud.google.com/bigquery/docs/reference/standard-sql/query-syntax#where_clause). + * Example: col1 >= 0 AND col2 < 10 + * + * Generated from protobuf field string row_filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $row_filter = ''; + /** + * Optional. Actions to take upon job completion. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions post_scan_actions = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $post_scan_actions = null; + /** + * Optional. If set, the latest DataScan job result will be published as + * Dataplex Universal Catalog metadata. + * + * Generated from protobuf field bool catalog_publishing_enabled = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $catalog_publishing_enabled = false; + /** + * Optional. If enabled, the data scan will retrieve rules defined in the + * dataplex-types.global.data-rules aspect on all paths of the catalog entry + * corresponding to the BigQuery table resource and all attached glossary + * terms. The path that data-rules aspect is attached on the table entry + * defines the column that the rule will be evaluated against. For glossary + * terms, the path that the terms are attached on the table entry defines the + * column that the rule will be evaluated against. At the start of scan + * execution, the rules reflect the latest state retrieved from the catalog + * entry and any updates on the rules thereafter are ignored for that + * execution. The updates will be reflected from the next execution. Rules + * defined in the datascan must be empty if this field is enabled. + * + * Generated from protobuf field bool enable_catalog_based_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $enable_catalog_based_rules = false; + /** + * Optional. Filter for selectively running a subset of rules. You can filter + * the request by the name or attribute key-value pairs defined on the rule. + * If not specified, all rules are run. The filter is applicable to both, the + * rules retrieved from catalog and explicitly defined rules in the scan. + * Please see [filter + * syntax](https://docs.cloud.google.com/dataplex/docs/auto-data-quality-overview#rule-filtering) + * for more details. + * + * Generated from protobuf field string filter = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\DataQualityRule[] $rules + * Required. The list of rules to evaluate against a data source. At least one + * rule is required. + * @type float $sampling_percent + * Optional. The percentage of the records to be selected from the dataset for + * DataScan. + * * Value can range between 0.0 and 100.0 with up to 3 significant decimal + * digits. + * * Sampling is not applied if `sampling_percent` is not specified, 0 or + * 100. + * @type string $row_filter + * Optional. A filter applied to all rows in a single DataScan job. + * The filter needs to be a valid SQL expression for a [WHERE clause in + * GoogleSQL + * syntax](https://cloud.google.com/bigquery/docs/reference/standard-sql/query-syntax#where_clause). + * Example: col1 >= 0 AND col2 < 10 + * @type \Google\Cloud\Dataplex\V1\DataQualitySpec\PostScanActions $post_scan_actions + * Optional. Actions to take upon job completion. + * @type bool $catalog_publishing_enabled + * Optional. If set, the latest DataScan job result will be published as + * Dataplex Universal Catalog metadata. + * @type bool $enable_catalog_based_rules + * Optional. If enabled, the data scan will retrieve rules defined in the + * dataplex-types.global.data-rules aspect on all paths of the catalog entry + * corresponding to the BigQuery table resource and all attached glossary + * terms. The path that data-rules aspect is attached on the table entry + * defines the column that the rule will be evaluated against. For glossary + * terms, the path that the terms are attached on the table entry defines the + * column that the rule will be evaluated against. At the start of scan + * execution, the rules reflect the latest state retrieved from the catalog + * entry and any updates on the rules thereafter are ignored for that + * execution. The updates will be reflected from the next execution. Rules + * defined in the datascan must be empty if this field is enabled. + * @type string $filter + * Optional. Filter for selectively running a subset of rules. You can filter + * the request by the name or attribute key-value pairs defined on the rule. + * If not specified, all rules are run. The filter is applicable to both, the + * rules retrieved from catalog and explicitly defined rules in the scan. + * Please see [filter + * syntax](https://docs.cloud.google.com/dataplex/docs/auto-data-quality-overview#rule-filtering) + * for more details. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); + parent::__construct($data); + } + + /** + * Required. The list of rules to evaluate against a data source. At least one + * rule is required. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Cloud\Dataplex\V1\DataQualityRule> + */ + public function getRules() + { + return $this->rules; + } + + /** + * Required. The list of rules to evaluate against a data source. At least one + * rule is required. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\DataQualityRule[] $var + * @return $this + */ + public function setRules($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\DataQualityRule::class); + $this->rules = $arr; + + return $this; + } + + /** + * Optional. The percentage of the records to be selected from the dataset for + * DataScan. + * * Value can range between 0.0 and 100.0 with up to 3 significant decimal + * digits. + * * Sampling is not applied if `sampling_percent` is not specified, 0 or + * 100. + * + * Generated from protobuf field float sampling_percent = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return float + */ + public function getSamplingPercent() + { + return $this->sampling_percent; + } + + /** + * Optional. The percentage of the records to be selected from the dataset for + * DataScan. + * * Value can range between 0.0 and 100.0 with up to 3 significant decimal + * digits. + * * Sampling is not applied if `sampling_percent` is not specified, 0 or + * 100. + * + * Generated from protobuf field float sampling_percent = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param float $var + * @return $this + */ + public function setSamplingPercent($var) + { + GPBUtil::checkFloat($var); + $this->sampling_percent = $var; + + return $this; + } + + /** + * Optional. A filter applied to all rows in a single DataScan job. + * The filter needs to be a valid SQL expression for a [WHERE clause in + * GoogleSQL + * syntax](https://cloud.google.com/bigquery/docs/reference/standard-sql/query-syntax#where_clause). + * Example: col1 >= 0 AND col2 < 10 + * + * Generated from protobuf field string row_filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getRowFilter() + { + return $this->row_filter; + } + + /** + * Optional. A filter applied to all rows in a single DataScan job. + * The filter needs to be a valid SQL expression for a [WHERE clause in + * GoogleSQL + * syntax](https://cloud.google.com/bigquery/docs/reference/standard-sql/query-syntax#where_clause). + * Example: col1 >= 0 AND col2 < 10 + * + * Generated from protobuf field string row_filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setRowFilter($var) + { + GPBUtil::checkString($var, True); + $this->row_filter = $var; + + return $this; + } + + /** + * Optional. Actions to take upon job completion. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions post_scan_actions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataplex\V1\DataQualitySpec\PostScanActions|null + */ + public function getPostScanActions() + { + return $this->post_scan_actions; + } + + public function hasPostScanActions() + { + return isset($this->post_scan_actions); + } + + public function clearPostScanActions() + { + unset($this->post_scan_actions); + } + + /** + * Optional. Actions to take upon job completion. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions post_scan_actions = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataplex\V1\DataQualitySpec\PostScanActions $var + * @return $this + */ + public function setPostScanActions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataQualitySpec\PostScanActions::class); + $this->post_scan_actions = $var; + + return $this; + } + + /** + * Optional. If set, the latest DataScan job result will be published as + * Dataplex Universal Catalog metadata. + * + * Generated from protobuf field bool catalog_publishing_enabled = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getCatalogPublishingEnabled() + { + return $this->catalog_publishing_enabled; + } + + /** + * Optional. If set, the latest DataScan job result will be published as + * Dataplex Universal Catalog metadata. + * + * Generated from protobuf field bool catalog_publishing_enabled = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setCatalogPublishingEnabled($var) + { + GPBUtil::checkBool($var); + $this->catalog_publishing_enabled = $var; + + return $this; + } + + /** + * Optional. If enabled, the data scan will retrieve rules defined in the + * dataplex-types.global.data-rules aspect on all paths of the catalog entry + * corresponding to the BigQuery table resource and all attached glossary + * terms. The path that data-rules aspect is attached on the table entry + * defines the column that the rule will be evaluated against. For glossary + * terms, the path that the terms are attached on the table entry defines the + * column that the rule will be evaluated against. At the start of scan + * execution, the rules reflect the latest state retrieved from the catalog + * entry and any updates on the rules thereafter are ignored for that + * execution. The updates will be reflected from the next execution. Rules + * defined in the datascan must be empty if this field is enabled. + * + * Generated from protobuf field bool enable_catalog_based_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getEnableCatalogBasedRules() + { + return $this->enable_catalog_based_rules; + } + + /** + * Optional. If enabled, the data scan will retrieve rules defined in the + * dataplex-types.global.data-rules aspect on all paths of the catalog entry + * corresponding to the BigQuery table resource and all attached glossary + * terms. The path that data-rules aspect is attached on the table entry + * defines the column that the rule will be evaluated against. For glossary + * terms, the path that the terms are attached on the table entry defines the + * column that the rule will be evaluated against. At the start of scan + * execution, the rules reflect the latest state retrieved from the catalog + * entry and any updates on the rules thereafter are ignored for that + * execution. The updates will be reflected from the next execution. Rules + * defined in the datascan must be empty if this field is enabled. + * + * Generated from protobuf field bool enable_catalog_based_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setEnableCatalogBasedRules($var) + { + GPBUtil::checkBool($var); + $this->enable_catalog_based_rules = $var; + + return $this; + } + + /** + * Optional. Filter for selectively running a subset of rules. You can filter + * the request by the name or attribute key-value pairs defined on the rule. + * If not specified, all rules are run. The filter is applicable to both, the + * rules retrieved from catalog and explicitly defined rules in the scan. + * Please see [filter + * syntax](https://docs.cloud.google.com/dataplex/docs/auto-data-quality-overview#rule-filtering) + * for more details. + * + * Generated from protobuf field string filter = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Filter for selectively running a subset of rules. You can filter + * the request by the name or attribute key-value pairs defined on the rule. + * If not specified, all rules are run. The filter is applicable to both, the + * rules retrieved from catalog and explicitly defined rules in the scan. + * Please see [filter + * syntax](https://docs.cloud.google.com/dataplex/docs/auto-data-quality-overview#rule-filtering) + * for more details. + * + * Generated from protobuf field string filter = 11 [(.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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions.php new file mode 100644 index 000000000000..775bec0eebc4 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions.php @@ -0,0 +1,129 @@ +google.cloud.dataplex.v1.DataQualitySpec.PostScanActions + */ +class PostScanActions extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. If set, results will be exported to the provided BigQuery + * table. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport bigquery_export = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $bigquery_export = null; + /** + * Optional. If set, results will be sent to the provided notification + * receipts upon triggers. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport notification_report = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $notification_report = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\DataQualitySpec\PostScanActions\BigQueryExport $bigquery_export + * Optional. If set, results will be exported to the provided BigQuery + * table. + * @type \Google\Cloud\Dataplex\V1\DataQualitySpec\PostScanActions\NotificationReport $notification_report + * Optional. If set, results will be sent to the provided notification + * receipts upon triggers. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); + parent::__construct($data); + } + + /** + * Optional. If set, results will be exported to the provided BigQuery + * table. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport bigquery_export = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataplex\V1\DataQualitySpec\PostScanActions\BigQueryExport|null + */ + public function getBigqueryExport() + { + return $this->bigquery_export; + } + + public function hasBigqueryExport() + { + return isset($this->bigquery_export); + } + + public function clearBigqueryExport() + { + unset($this->bigquery_export); + } + + /** + * Optional. If set, results will be exported to the provided BigQuery + * table. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport bigquery_export = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataplex\V1\DataQualitySpec\PostScanActions\BigQueryExport $var + * @return $this + */ + public function setBigqueryExport($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataQualitySpec\PostScanActions\BigQueryExport::class); + $this->bigquery_export = $var; + + return $this; + } + + /** + * Optional. If set, results will be sent to the provided notification + * receipts upon triggers. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport notification_report = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataplex\V1\DataQualitySpec\PostScanActions\NotificationReport|null + */ + public function getNotificationReport() + { + return $this->notification_report; + } + + public function hasNotificationReport() + { + return isset($this->notification_report); + } + + public function clearNotificationReport() + { + unset($this->notification_report); + } + + /** + * Optional. If set, results will be sent to the provided notification + * receipts upon triggers. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport notification_report = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataplex\V1\DataQualitySpec\PostScanActions\NotificationReport $var + * @return $this + */ + public function setNotificationReport($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataQualitySpec\PostScanActions\NotificationReport::class); + $this->notification_report = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions/BigQueryExport.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions/BigQueryExport.php new file mode 100644 index 000000000000..58af4d60ea09 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions/BigQueryExport.php @@ -0,0 +1,83 @@ +google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport + */ +class BigQueryExport extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The BigQuery table to export DataQualityScan results to. + * Format: + * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID + * or + * projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID + * + * Generated from protobuf field string results_table = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $results_table = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $results_table + * Optional. The BigQuery table to export DataQualityScan results to. + * Format: + * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID + * or + * projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The BigQuery table to export DataQualityScan results to. + * Format: + * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID + * or + * projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID + * + * Generated from protobuf field string results_table = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getResultsTable() + { + return $this->results_table; + } + + /** + * Optional. The BigQuery table to export DataQualityScan results to. + * Format: + * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID + * or + * projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID + * + * Generated from protobuf field string results_table = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setResultsTable($var) + { + GPBUtil::checkString($var, True); + $this->results_table = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions/JobEndTrigger.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions/JobEndTrigger.php new file mode 100644 index 000000000000..ad7adc7d6d7d --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions/JobEndTrigger.php @@ -0,0 +1,34 @@ +google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger + */ +class JobEndTrigger extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions/JobFailureTrigger.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions/JobFailureTrigger.php new file mode 100644 index 000000000000..e0405f8c1cd3 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions/JobFailureTrigger.php @@ -0,0 +1,34 @@ +google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger + */ +class JobFailureTrigger extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions/NotificationReport.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions/NotificationReport.php new file mode 100644 index 000000000000..4f36c06b0390 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions/NotificationReport.php @@ -0,0 +1,209 @@ +google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport + */ +class NotificationReport extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The recipients who will receive the notification report. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients recipients = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $recipients = null; + /** + * Optional. If set, report will be sent when score threshold is met. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger score_threshold_trigger = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $score_threshold_trigger = null; + /** + * Optional. If set, report will be sent when a scan job fails. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger job_failure_trigger = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $job_failure_trigger = null; + /** + * Optional. If set, report will be sent when a scan job ends. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger job_end_trigger = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $job_end_trigger = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\DataQualitySpec\PostScanActions\Recipients $recipients + * Required. The recipients who will receive the notification report. + * @type \Google\Cloud\Dataplex\V1\DataQualitySpec\PostScanActions\ScoreThresholdTrigger $score_threshold_trigger + * Optional. If set, report will be sent when score threshold is met. + * @type \Google\Cloud\Dataplex\V1\DataQualitySpec\PostScanActions\JobFailureTrigger $job_failure_trigger + * Optional. If set, report will be sent when a scan job fails. + * @type \Google\Cloud\Dataplex\V1\DataQualitySpec\PostScanActions\JobEndTrigger $job_end_trigger + * Optional. If set, report will be sent when a scan job ends. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); + parent::__construct($data); + } + + /** + * Required. The recipients who will receive the notification report. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients recipients = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\DataQualitySpec\PostScanActions\Recipients|null + */ + public function getRecipients() + { + return $this->recipients; + } + + public function hasRecipients() + { + return isset($this->recipients); + } + + public function clearRecipients() + { + unset($this->recipients); + } + + /** + * Required. The recipients who will receive the notification report. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients recipients = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\DataQualitySpec\PostScanActions\Recipients $var + * @return $this + */ + public function setRecipients($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataQualitySpec\PostScanActions\Recipients::class); + $this->recipients = $var; + + return $this; + } + + /** + * Optional. If set, report will be sent when score threshold is met. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger score_threshold_trigger = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataplex\V1\DataQualitySpec\PostScanActions\ScoreThresholdTrigger|null + */ + public function getScoreThresholdTrigger() + { + return $this->score_threshold_trigger; + } + + public function hasScoreThresholdTrigger() + { + return isset($this->score_threshold_trigger); + } + + public function clearScoreThresholdTrigger() + { + unset($this->score_threshold_trigger); + } + + /** + * Optional. If set, report will be sent when score threshold is met. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger score_threshold_trigger = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataplex\V1\DataQualitySpec\PostScanActions\ScoreThresholdTrigger $var + * @return $this + */ + public function setScoreThresholdTrigger($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataQualitySpec\PostScanActions\ScoreThresholdTrigger::class); + $this->score_threshold_trigger = $var; + + return $this; + } + + /** + * Optional. If set, report will be sent when a scan job fails. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger job_failure_trigger = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataplex\V1\DataQualitySpec\PostScanActions\JobFailureTrigger|null + */ + public function getJobFailureTrigger() + { + return $this->job_failure_trigger; + } + + public function hasJobFailureTrigger() + { + return isset($this->job_failure_trigger); + } + + public function clearJobFailureTrigger() + { + unset($this->job_failure_trigger); + } + + /** + * Optional. If set, report will be sent when a scan job fails. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger job_failure_trigger = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataplex\V1\DataQualitySpec\PostScanActions\JobFailureTrigger $var + * @return $this + */ + public function setJobFailureTrigger($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataQualitySpec\PostScanActions\JobFailureTrigger::class); + $this->job_failure_trigger = $var; + + return $this; + } + + /** + * Optional. If set, report will be sent when a scan job ends. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger job_end_trigger = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataplex\V1\DataQualitySpec\PostScanActions\JobEndTrigger|null + */ + public function getJobEndTrigger() + { + return $this->job_end_trigger; + } + + public function hasJobEndTrigger() + { + return isset($this->job_end_trigger); + } + + public function clearJobEndTrigger() + { + unset($this->job_end_trigger); + } + + /** + * Optional. If set, report will be sent when a scan job ends. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger job_end_trigger = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataplex\V1\DataQualitySpec\PostScanActions\JobEndTrigger $var + * @return $this + */ + public function setJobEndTrigger($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataQualitySpec\PostScanActions\JobEndTrigger::class); + $this->job_end_trigger = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions/Recipients.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions/Recipients.php new file mode 100644 index 000000000000..ca03de9872b7 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions/Recipients.php @@ -0,0 +1,72 @@ +google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients + */ +class Recipients extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The email recipients who will receive the DataQualityScan + * results report. + * + * Generated from protobuf field repeated string emails = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $emails; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string[] $emails + * Optional. The email recipients who will receive the DataQualityScan + * results report. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The email recipients who will receive the DataQualityScan + * results report. + * + * Generated from protobuf field repeated string emails = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getEmails() + { + return $this->emails; + } + + /** + * Optional. The email recipients who will receive the DataQualityScan + * results report. + * + * Generated from protobuf field repeated string emails = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setEmails($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->emails = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions/ScoreThresholdTrigger.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions/ScoreThresholdTrigger.php new file mode 100644 index 000000000000..ab8316e459e5 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions/ScoreThresholdTrigger.php @@ -0,0 +1,68 @@ +google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger + */ +class ScoreThresholdTrigger extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The score range is in [0,100]. + * + * Generated from protobuf field float score_threshold = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $score_threshold = 0.0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type float $score_threshold + * Optional. The score range is in [0,100]. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The score range is in [0,100]. + * + * Generated from protobuf field float score_threshold = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return float + */ + public function getScoreThreshold() + { + return $this->score_threshold; + } + + /** + * Optional. The score range is in [0,100]. + * + * Generated from protobuf field float score_threshold = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param float $var + * @return $this + */ + public function setScoreThreshold($var) + { + GPBUtil::checkFloat($var); + $this->score_threshold = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScan.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScan.php new file mode 100644 index 000000000000..fc8507dac394 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScan.php @@ -0,0 +1,867 @@ +google.cloud.dataplex.v1.DataScan + */ +class DataScan extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Identifier. The relative resource name of the scan, of the + * form: `projects/{project}/locations/{location_id}/dataScans/{datascan_id}`, + * where `project` refers to a *project_id* or *project_number* and + * `location_id` refers to a Google Cloud region. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. System generated globally unique ID for the scan. This ID will + * be different if the scan is deleted and re-created with the same name. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { + */ + protected $uid = ''; + /** + * Optional. Description of the scan. + * * Must be between 1-1024 characters. + * + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Optional. User friendly display name. + * * Must be between 1-256 characters. + * + * Generated from protobuf field string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $display_name = ''; + /** + * Optional. User-defined labels for the scan. + * + * Generated from protobuf field map labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $labels; + /** + * Output only. Current state of the DataScan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Output only. The time when the scan 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 scan was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Required. The data source for DataScan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataSource data = 9 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $data = null; + /** + * Optional. DataScan execution settings. + * If not specified, the fields in it will use their default values. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScan.ExecutionSpec execution_spec = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $execution_spec = null; + /** + * Output only. Status of the data scan execution. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScan.ExecutionStatus execution_status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $execution_status = null; + /** + * Output only. The type of DataScan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScanType type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $type = 0; + /** + * Optional. Immutable. The identity to run the datascan. + * If not specified, defaults to the Dataplex Service Agent. + * + * Generated from protobuf field .google.cloud.dataplex.v1.ExecutionIdentity execution_identity = 300 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + */ + protected $execution_identity = null; + protected $spec; + protected $result; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Identifier. The relative resource name of the scan, of the + * form: `projects/{project}/locations/{location_id}/dataScans/{datascan_id}`, + * where `project` refers to a *project_id* or *project_number* and + * `location_id` refers to a Google Cloud region. + * @type string $uid + * Output only. System generated globally unique ID for the scan. This ID will + * be different if the scan is deleted and re-created with the same name. + * @type string $description + * Optional. Description of the scan. + * * Must be between 1-1024 characters. + * @type string $display_name + * Optional. User friendly display name. + * * Must be between 1-256 characters. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Optional. User-defined labels for the scan. + * @type int $state + * Output only. Current state of the DataScan. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time when the scan was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time when the scan was last updated. + * @type \Google\Cloud\Dataplex\V1\DataSource $data + * Required. The data source for DataScan. + * @type \Google\Cloud\Dataplex\V1\DataScan\ExecutionSpec $execution_spec + * Optional. DataScan execution settings. + * If not specified, the fields in it will use their default values. + * @type \Google\Cloud\Dataplex\V1\DataScan\ExecutionStatus $execution_status + * Output only. Status of the data scan execution. + * @type int $type + * Output only. The type of DataScan. + * @type \Google\Cloud\Dataplex\V1\DataQualitySpec $data_quality_spec + * Settings for a data quality scan. + * @type \Google\Cloud\Dataplex\V1\DataProfileSpec $data_profile_spec + * Settings for a data profile scan. + * @type \Google\Cloud\Dataplex\V1\DataDiscoverySpec $data_discovery_spec + * Settings for a data discovery scan. + * @type \Google\Cloud\Dataplex\V1\DataDocumentationSpec $data_documentation_spec + * Settings for a data documentation scan. + * @type \Google\Cloud\Dataplex\V1\DataQualityResult $data_quality_result + * Output only. The result of a data quality scan. + * @type \Google\Cloud\Dataplex\V1\DataProfileResult $data_profile_result + * Output only. The result of a data profile scan. + * @type \Google\Cloud\Dataplex\V1\DataDiscoveryResult $data_discovery_result + * Output only. The result of a data discovery scan. + * @type \Google\Cloud\Dataplex\V1\DataDocumentationResult $data_documentation_result + * Output only. The result of a data documentation scan. + * @type \Google\Cloud\Dataplex\V1\ExecutionIdentity $execution_identity + * Optional. Immutable. The identity to run the datascan. + * If not specified, defaults to the Dataplex Service Agent. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Datascans::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Identifier. The relative resource name of the scan, of the + * form: `projects/{project}/locations/{location_id}/dataScans/{datascan_id}`, + * where `project` refers to a *project_id* or *project_number* and + * `location_id` refers to a Google Cloud region. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Identifier. The relative resource name of the scan, of the + * form: `projects/{project}/locations/{location_id}/dataScans/{datascan_id}`, + * where `project` refers to a *project_id* or *project_number* and + * `location_id` refers to a Google Cloud region. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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. System generated globally unique ID for the scan. This ID will + * be different if the scan is deleted and re-created with the same name. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { + * @return string + */ + public function getUid() + { + return $this->uid; + } + + /** + * Output only. System generated globally unique ID for the scan. This ID will + * be different if the scan is deleted and re-created with the same name. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setUid($var) + { + GPBUtil::checkString($var, True); + $this->uid = $var; + + return $this; + } + + /** + * Optional. Description of the scan. + * * Must be between 1-1024 characters. + * + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. Description of the scan. + * * Must be between 1-1024 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; + } + + /** + * Optional. User friendly display name. + * * Must be between 1-256 characters. + * + * Generated from protobuf field string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Optional. User friendly display name. + * * Must be between 1-256 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. User-defined labels for the scan. + * + * Generated from protobuf field map labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Optional. User-defined labels for the scan. + * + * Generated from protobuf field map labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Output only. Current state of the DataScan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. Current state of the DataScan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\State::class); + $this->state = $var; + + return $this; + } + + /** + * Output only. The time when the scan 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 scan 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 scan 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 scan 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; + } + + /** + * Required. The data source for DataScan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataSource data = 9 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\DataSource|null + */ + public function getData() + { + return $this->data; + } + + public function hasData() + { + return isset($this->data); + } + + public function clearData() + { + unset($this->data); + } + + /** + * Required. The data source for DataScan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataSource data = 9 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\DataSource $var + * @return $this + */ + public function setData($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataSource::class); + $this->data = $var; + + return $this; + } + + /** + * Optional. DataScan execution settings. + * If not specified, the fields in it will use their default values. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScan.ExecutionSpec execution_spec = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataplex\V1\DataScan\ExecutionSpec|null + */ + public function getExecutionSpec() + { + return $this->execution_spec; + } + + public function hasExecutionSpec() + { + return isset($this->execution_spec); + } + + public function clearExecutionSpec() + { + unset($this->execution_spec); + } + + /** + * Optional. DataScan execution settings. + * If not specified, the fields in it will use their default values. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScan.ExecutionSpec execution_spec = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataplex\V1\DataScan\ExecutionSpec $var + * @return $this + */ + public function setExecutionSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataScan\ExecutionSpec::class); + $this->execution_spec = $var; + + return $this; + } + + /** + * Output only. Status of the data scan execution. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScan.ExecutionStatus execution_status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataplex\V1\DataScan\ExecutionStatus|null + */ + public function getExecutionStatus() + { + return $this->execution_status; + } + + public function hasExecutionStatus() + { + return isset($this->execution_status); + } + + public function clearExecutionStatus() + { + unset($this->execution_status); + } + + /** + * Output only. Status of the data scan execution. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScan.ExecutionStatus execution_status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\DataScan\ExecutionStatus $var + * @return $this + */ + public function setExecutionStatus($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataScan\ExecutionStatus::class); + $this->execution_status = $var; + + return $this; + } + + /** + * Output only. The type of DataScan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScanType type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Output only. The type of DataScan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScanType type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\DataScanType::class); + $this->type = $var; + + return $this; + } + + /** + * Settings for a data quality scan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualitySpec data_quality_spec = 100; + * @return \Google\Cloud\Dataplex\V1\DataQualitySpec|null + */ + public function getDataQualitySpec() + { + return $this->readOneof(100); + } + + public function hasDataQualitySpec() + { + return $this->hasOneof(100); + } + + /** + * Settings for a data quality scan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualitySpec data_quality_spec = 100; + * @param \Google\Cloud\Dataplex\V1\DataQualitySpec $var + * @return $this + */ + public function setDataQualitySpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataQualitySpec::class); + $this->writeOneof(100, $var); + + return $this; + } + + /** + * Settings for a data profile scan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileSpec data_profile_spec = 101; + * @return \Google\Cloud\Dataplex\V1\DataProfileSpec|null + */ + public function getDataProfileSpec() + { + return $this->readOneof(101); + } + + public function hasDataProfileSpec() + { + return $this->hasOneof(101); + } + + /** + * Settings for a data profile scan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileSpec data_profile_spec = 101; + * @param \Google\Cloud\Dataplex\V1\DataProfileSpec $var + * @return $this + */ + public function setDataProfileSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataProfileSpec::class); + $this->writeOneof(101, $var); + + return $this; + } + + /** + * Settings for a data discovery scan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoverySpec data_discovery_spec = 102; + * @return \Google\Cloud\Dataplex\V1\DataDiscoverySpec|null + */ + public function getDataDiscoverySpec() + { + return $this->readOneof(102); + } + + public function hasDataDiscoverySpec() + { + return $this->hasOneof(102); + } + + /** + * Settings for a data discovery scan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoverySpec data_discovery_spec = 102; + * @param \Google\Cloud\Dataplex\V1\DataDiscoverySpec $var + * @return $this + */ + public function setDataDiscoverySpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataDiscoverySpec::class); + $this->writeOneof(102, $var); + + return $this; + } + + /** + * Settings for a data documentation scan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataDocumentationSpec data_documentation_spec = 103; + * @return \Google\Cloud\Dataplex\V1\DataDocumentationSpec|null + */ + public function getDataDocumentationSpec() + { + return $this->readOneof(103); + } + + public function hasDataDocumentationSpec() + { + return $this->hasOneof(103); + } + + /** + * Settings for a data documentation scan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataDocumentationSpec data_documentation_spec = 103; + * @param \Google\Cloud\Dataplex\V1\DataDocumentationSpec $var + * @return $this + */ + public function setDataDocumentationSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataDocumentationSpec::class); + $this->writeOneof(103, $var); + + return $this; + } + + /** + * Output only. The result of a data quality scan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityResult data_quality_result = 200 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataplex\V1\DataQualityResult|null + */ + public function getDataQualityResult() + { + return $this->readOneof(200); + } + + public function hasDataQualityResult() + { + return $this->hasOneof(200); + } + + /** + * Output only. The result of a data quality scan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityResult data_quality_result = 200 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\DataQualityResult $var + * @return $this + */ + public function setDataQualityResult($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataQualityResult::class); + $this->writeOneof(200, $var); + + return $this; + } + + /** + * Output only. The result of a data profile scan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileResult data_profile_result = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataplex\V1\DataProfileResult|null + */ + public function getDataProfileResult() + { + return $this->readOneof(201); + } + + public function hasDataProfileResult() + { + return $this->hasOneof(201); + } + + /** + * Output only. The result of a data profile scan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileResult data_profile_result = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\DataProfileResult $var + * @return $this + */ + public function setDataProfileResult($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataProfileResult::class); + $this->writeOneof(201, $var); + + return $this; + } + + /** + * Output only. The result of a data discovery scan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoveryResult data_discovery_result = 202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataplex\V1\DataDiscoveryResult|null + */ + public function getDataDiscoveryResult() + { + return $this->readOneof(202); + } + + public function hasDataDiscoveryResult() + { + return $this->hasOneof(202); + } + + /** + * Output only. The result of a data discovery scan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoveryResult data_discovery_result = 202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\DataDiscoveryResult $var + * @return $this + */ + public function setDataDiscoveryResult($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataDiscoveryResult::class); + $this->writeOneof(202, $var); + + return $this; + } + + /** + * Output only. The result of a data documentation scan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataDocumentationResult data_documentation_result = 203 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataplex\V1\DataDocumentationResult|null + */ + public function getDataDocumentationResult() + { + return $this->readOneof(203); + } + + public function hasDataDocumentationResult() + { + return $this->hasOneof(203); + } + + /** + * Output only. The result of a data documentation scan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataDocumentationResult data_documentation_result = 203 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\DataDocumentationResult $var + * @return $this + */ + public function setDataDocumentationResult($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataDocumentationResult::class); + $this->writeOneof(203, $var); + + return $this; + } + + /** + * Optional. Immutable. The identity to run the datascan. + * If not specified, defaults to the Dataplex Service Agent. + * + * Generated from protobuf field .google.cloud.dataplex.v1.ExecutionIdentity execution_identity = 300 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * @return \Google\Cloud\Dataplex\V1\ExecutionIdentity|null + */ + public function getExecutionIdentity() + { + return $this->execution_identity; + } + + public function hasExecutionIdentity() + { + return isset($this->execution_identity); + } + + public function clearExecutionIdentity() + { + unset($this->execution_identity); + } + + /** + * Optional. Immutable. The identity to run the datascan. + * If not specified, defaults to the Dataplex Service Agent. + * + * Generated from protobuf field .google.cloud.dataplex.v1.ExecutionIdentity execution_identity = 300 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * @param \Google\Cloud\Dataplex\V1\ExecutionIdentity $var + * @return $this + */ + public function setExecutionIdentity($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\ExecutionIdentity::class); + $this->execution_identity = $var; + + return $this; + } + + /** + * @return string + */ + public function getSpec() + { + return $this->whichOneof("spec"); + } + + /** + * @return string + */ + public function getResult() + { + return $this->whichOneof("result"); + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScan/ExecutionSpec.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScan/ExecutionSpec.php new file mode 100644 index 000000000000..aab963aefe04 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScan/ExecutionSpec.php @@ -0,0 +1,133 @@ +google.cloud.dataplex.v1.DataScan.ExecutionSpec + */ +class ExecutionSpec extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Spec related to how often and when a scan should be triggered. + * If not specified, the default is `OnDemand`, which means the scan will + * not run until the user calls `RunDataScan` API. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Trigger trigger = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $trigger = null; + protected $incremental; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\Trigger $trigger + * Optional. Spec related to how often and when a scan should be triggered. + * If not specified, the default is `OnDemand`, which means the scan will + * not run until the user calls `RunDataScan` API. + * @type string $field + * Immutable. The unnested field (of type *Date* or *Timestamp*) that + * contains values which monotonically increase over time. + * If not specified, a data scan will run for all data in the table. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Datascans::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Spec related to how often and when a scan should be triggered. + * If not specified, the default is `OnDemand`, which means the scan will + * not run until the user calls `RunDataScan` API. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Trigger trigger = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataplex\V1\Trigger|null + */ + public function getTrigger() + { + return $this->trigger; + } + + public function hasTrigger() + { + return isset($this->trigger); + } + + public function clearTrigger() + { + unset($this->trigger); + } + + /** + * Optional. Spec related to how often and when a scan should be triggered. + * If not specified, the default is `OnDemand`, which means the scan will + * not run until the user calls `RunDataScan` API. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Trigger trigger = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataplex\V1\Trigger $var + * @return $this + */ + public function setTrigger($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Trigger::class); + $this->trigger = $var; + + return $this; + } + + /** + * Immutable. The unnested field (of type *Date* or *Timestamp*) that + * contains values which monotonically increase over time. + * If not specified, a data scan will run for all data in the table. + * + * Generated from protobuf field string field = 100 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getField() + { + return $this->readOneof(100); + } + + public function hasField() + { + return $this->hasOneof(100); + } + + /** + * Immutable. The unnested field (of type *Date* or *Timestamp*) that + * contains values which monotonically increase over time. + * If not specified, a data scan will run for all data in the table. + * + * Generated from protobuf field string field = 100 [(.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setField($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(100, $var); + + return $this; + } + + /** + * @return string + */ + public function getIncremental() + { + return $this->whichOneof("incremental"); + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScan/ExecutionStatus.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScan/ExecutionStatus.php new file mode 100644 index 000000000000..4848ef6e6729 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScan/ExecutionStatus.php @@ -0,0 +1,165 @@ +google.cloud.dataplex.v1.DataScan.ExecutionStatus + */ +class ExecutionStatus extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The time when the latest DataScanJob started. + * + * Generated from protobuf field .google.protobuf.Timestamp latest_job_start_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $latest_job_start_time = null; + /** + * Optional. The time when the latest DataScanJob ended. + * + * Generated from protobuf field .google.protobuf.Timestamp latest_job_end_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $latest_job_end_time = null; + /** + * Optional. The time when the DataScanJob execution was created. + * + * Generated from protobuf field .google.protobuf.Timestamp latest_job_create_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $latest_job_create_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Timestamp $latest_job_start_time + * Optional. The time when the latest DataScanJob started. + * @type \Google\Protobuf\Timestamp $latest_job_end_time + * Optional. The time when the latest DataScanJob ended. + * @type \Google\Protobuf\Timestamp $latest_job_create_time + * Optional. The time when the DataScanJob execution was created. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Datascans::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The time when the latest DataScanJob started. + * + * Generated from protobuf field .google.protobuf.Timestamp latest_job_start_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getLatestJobStartTime() + { + return $this->latest_job_start_time; + } + + public function hasLatestJobStartTime() + { + return isset($this->latest_job_start_time); + } + + public function clearLatestJobStartTime() + { + unset($this->latest_job_start_time); + } + + /** + * Optional. The time when the latest DataScanJob started. + * + * Generated from protobuf field .google.protobuf.Timestamp latest_job_start_time = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setLatestJobStartTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->latest_job_start_time = $var; + + return $this; + } + + /** + * Optional. The time when the latest DataScanJob ended. + * + * Generated from protobuf field .google.protobuf.Timestamp latest_job_end_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getLatestJobEndTime() + { + return $this->latest_job_end_time; + } + + public function hasLatestJobEndTime() + { + return isset($this->latest_job_end_time); + } + + public function clearLatestJobEndTime() + { + unset($this->latest_job_end_time); + } + + /** + * Optional. The time when the latest DataScanJob ended. + * + * Generated from protobuf field .google.protobuf.Timestamp latest_job_end_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setLatestJobEndTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->latest_job_end_time = $var; + + return $this; + } + + /** + * Optional. The time when the DataScanJob execution was created. + * + * Generated from protobuf field .google.protobuf.Timestamp latest_job_create_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getLatestJobCreateTime() + { + return $this->latest_job_create_time; + } + + public function hasLatestJobCreateTime() + { + return isset($this->latest_job_create_time); + } + + public function clearLatestJobCreateTime() + { + unset($this->latest_job_create_time); + } + + /** + * Optional. The time when the DataScanJob execution was created. + * + * Generated from protobuf field .google.protobuf.Timestamp latest_job_create_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setLatestJobCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->latest_job_create_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanCatalogPublishingStatus.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanCatalogPublishingStatus.php new file mode 100644 index 000000000000..fa83fb754492 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanCatalogPublishingStatus.php @@ -0,0 +1,69 @@ +google.cloud.dataplex.v1.DataScanCatalogPublishingStatus + */ +class DataScanCatalogPublishingStatus extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Execution state for publishing. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScanCatalogPublishingStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $state + * Output only. Execution state for publishing. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DatascansCommon::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Execution state for publishing. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScanCatalogPublishingStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. Execution state for publishing. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScanCatalogPublishingStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\DataScanCatalogPublishingStatus\State::class); + $this->state = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanCatalogPublishingStatus/State.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanCatalogPublishingStatus/State.php new file mode 100644 index 000000000000..b2c44622f1b4 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanCatalogPublishingStatus/State.php @@ -0,0 +1,68 @@ +google.cloud.dataplex.v1.DataScanCatalogPublishingStatus.State + */ +class State +{ + /** + * The publishing state is unspecified. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * Publishing to catalog completed successfully. + * + * Generated from protobuf enum SUCCEEDED = 1; + */ + const SUCCEEDED = 1; + /** + * Publish to catalog failed. + * + * Generated from protobuf enum FAILED = 2; + */ + const FAILED = 2; + /** + * Publishing to catalog was skipped. + * + * Generated from protobuf enum SKIPPED = 3; + */ + const SKIPPED = 3; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::SUCCEEDED => 'SUCCEEDED', + self::FAILED => 'FAILED', + self::SKIPPED => 'SKIPPED', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent.php new file mode 100644 index 000000000000..77674ecdd17f --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent.php @@ -0,0 +1,680 @@ +google.cloud.dataplex.v1.DataScanEvent + */ +class DataScanEvent extends \Google\Protobuf\Internal\Message +{ + /** + * The data source of the data scan + * + * Generated from protobuf field string data_source = 1; + */ + protected $data_source = ''; + /** + * The identifier of the specific data scan job this log entry is for. + * + * Generated from protobuf field string job_id = 2; + */ + protected $job_id = ''; + /** + * The time when the data scan job was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 12; + */ + protected $create_time = null; + /** + * The time when the data scan job started to run. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 3; + */ + protected $start_time = null; + /** + * The time when the data scan job finished. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 4; + */ + protected $end_time = null; + /** + * The type of the data scan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScanEvent.ScanType type = 5; + */ + protected $type = 0; + /** + * The status of the data scan job. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScanEvent.State state = 6; + */ + protected $state = 0; + /** + * The message describing the data scan job event. + * + * Generated from protobuf field string message = 7; + */ + protected $message = ''; + /** + * A version identifier of the spec which was used to execute this job. + * + * Generated from protobuf field string spec_version = 8; + */ + protected $spec_version = ''; + /** + * The trigger type of the data scan job. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScanEvent.Trigger trigger = 9; + */ + protected $trigger = 0; + /** + * The scope of the data scan (e.g. full, incremental). + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScanEvent.Scope scope = 10; + */ + protected $scope = 0; + /** + * The result of post scan actions. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult post_scan_actions_result = 11; + */ + protected $post_scan_actions_result = null; + /** + * The status of publishing the data scan as Dataplex Universal Catalog + * metadata. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScanCatalogPublishingStatus catalog_publishing_status = 13; + */ + protected $catalog_publishing_status = null; + protected $result; + protected $appliedConfigs; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $data_source + * The data source of the data scan + * @type string $job_id + * The identifier of the specific data scan job this log entry is for. + * @type \Google\Protobuf\Timestamp $create_time + * The time when the data scan job was created. + * @type \Google\Protobuf\Timestamp $start_time + * The time when the data scan job started to run. + * @type \Google\Protobuf\Timestamp $end_time + * The time when the data scan job finished. + * @type int $type + * The type of the data scan. + * @type int $state + * The status of the data scan job. + * @type string $message + * The message describing the data scan job event. + * @type string $spec_version + * A version identifier of the spec which was used to execute this job. + * @type int $trigger + * The trigger type of the data scan job. + * @type int $scope + * The scope of the data scan (e.g. full, incremental). + * @type \Google\Cloud\Dataplex\V1\DataScanEvent\DataProfileResult $data_profile + * Data profile result for data profile type data scan. + * @type \Google\Cloud\Dataplex\V1\DataScanEvent\DataQualityResult $data_quality + * Data quality result for data quality type data scan. + * @type \Google\Cloud\Dataplex\V1\DataScanEvent\DataProfileAppliedConfigs $data_profile_configs + * Applied configs for data profile type data scan. + * @type \Google\Cloud\Dataplex\V1\DataScanEvent\DataQualityAppliedConfigs $data_quality_configs + * Applied configs for data quality type data scan. + * @type \Google\Cloud\Dataplex\V1\DataScanEvent\PostScanActionsResult $post_scan_actions_result + * The result of post scan actions. + * @type \Google\Cloud\Dataplex\V1\DataScanCatalogPublishingStatus $catalog_publishing_status + * The status of publishing the data scan as Dataplex Universal Catalog + * metadata. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Logs::initOnce(); + parent::__construct($data); + } + + /** + * The data source of the data scan + * + * Generated from protobuf field string data_source = 1; + * @return string + */ + public function getDataSource() + { + return $this->data_source; + } + + /** + * The data source of the data scan + * + * Generated from protobuf field string data_source = 1; + * @param string $var + * @return $this + */ + public function setDataSource($var) + { + GPBUtil::checkString($var, True); + $this->data_source = $var; + + return $this; + } + + /** + * The identifier of the specific data scan job this log entry is for. + * + * Generated from protobuf field string job_id = 2; + * @return string + */ + public function getJobId() + { + return $this->job_id; + } + + /** + * The identifier of the specific data scan job this log entry is for. + * + * Generated from protobuf field string job_id = 2; + * @param string $var + * @return $this + */ + public function setJobId($var) + { + GPBUtil::checkString($var, True); + $this->job_id = $var; + + return $this; + } + + /** + * The time when the data scan job was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 12; + * @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 time when the data scan job was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 12; + * @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 time when the data scan job started to run. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 3; + * @return \Google\Protobuf\Timestamp|null + */ + public function getStartTime() + { + return $this->start_time; + } + + public function hasStartTime() + { + return isset($this->start_time); + } + + public function clearStartTime() + { + unset($this->start_time); + } + + /** + * The time when the data scan job started to run. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 3; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setStartTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->start_time = $var; + + return $this; + } + + /** + * The time when the data scan job finished. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 4; + * @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); + } + + /** + * The time when the data scan job finished. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 4; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEndTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->end_time = $var; + + return $this; + } + + /** + * The type of the data scan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScanEvent.ScanType type = 5; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * The type of the data scan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScanEvent.ScanType type = 5; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\DataScanEvent\ScanType::class); + $this->type = $var; + + return $this; + } + + /** + * The status of the data scan job. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScanEvent.State state = 6; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * The status of the data scan job. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScanEvent.State state = 6; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\DataScanEvent\State::class); + $this->state = $var; + + return $this; + } + + /** + * The message describing the data scan job event. + * + * Generated from protobuf field string message = 7; + * @return string + */ + public function getMessage() + { + return $this->message; + } + + /** + * The message describing the data scan job event. + * + * Generated from protobuf field string message = 7; + * @param string $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkString($var, True); + $this->message = $var; + + return $this; + } + + /** + * A version identifier of the spec which was used to execute this job. + * + * Generated from protobuf field string spec_version = 8; + * @return string + */ + public function getSpecVersion() + { + return $this->spec_version; + } + + /** + * A version identifier of the spec which was used to execute this job. + * + * Generated from protobuf field string spec_version = 8; + * @param string $var + * @return $this + */ + public function setSpecVersion($var) + { + GPBUtil::checkString($var, True); + $this->spec_version = $var; + + return $this; + } + + /** + * The trigger type of the data scan job. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScanEvent.Trigger trigger = 9; + * @return int + */ + public function getTrigger() + { + return $this->trigger; + } + + /** + * The trigger type of the data scan job. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScanEvent.Trigger trigger = 9; + * @param int $var + * @return $this + */ + public function setTrigger($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\DataScanEvent\Trigger::class); + $this->trigger = $var; + + return $this; + } + + /** + * The scope of the data scan (e.g. full, incremental). + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScanEvent.Scope scope = 10; + * @return int + */ + public function getScope() + { + return $this->scope; + } + + /** + * The scope of the data scan (e.g. full, incremental). + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScanEvent.Scope scope = 10; + * @param int $var + * @return $this + */ + public function setScope($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\DataScanEvent\Scope::class); + $this->scope = $var; + + return $this; + } + + /** + * Data profile result for data profile type data scan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScanEvent.DataProfileResult data_profile = 101; + * @return \Google\Cloud\Dataplex\V1\DataScanEvent\DataProfileResult|null + */ + public function getDataProfile() + { + return $this->readOneof(101); + } + + public function hasDataProfile() + { + return $this->hasOneof(101); + } + + /** + * Data profile result for data profile type data scan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScanEvent.DataProfileResult data_profile = 101; + * @param \Google\Cloud\Dataplex\V1\DataScanEvent\DataProfileResult $var + * @return $this + */ + public function setDataProfile($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataScanEvent\DataProfileResult::class); + $this->writeOneof(101, $var); + + return $this; + } + + /** + * Data quality result for data quality type data scan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScanEvent.DataQualityResult data_quality = 102; + * @return \Google\Cloud\Dataplex\V1\DataScanEvent\DataQualityResult|null + */ + public function getDataQuality() + { + return $this->readOneof(102); + } + + public function hasDataQuality() + { + return $this->hasOneof(102); + } + + /** + * Data quality result for data quality type data scan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScanEvent.DataQualityResult data_quality = 102; + * @param \Google\Cloud\Dataplex\V1\DataScanEvent\DataQualityResult $var + * @return $this + */ + public function setDataQuality($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataScanEvent\DataQualityResult::class); + $this->writeOneof(102, $var); + + return $this; + } + + /** + * Applied configs for data profile type data scan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScanEvent.DataProfileAppliedConfigs data_profile_configs = 201; + * @return \Google\Cloud\Dataplex\V1\DataScanEvent\DataProfileAppliedConfigs|null + */ + public function getDataProfileConfigs() + { + return $this->readOneof(201); + } + + public function hasDataProfileConfigs() + { + return $this->hasOneof(201); + } + + /** + * Applied configs for data profile type data scan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScanEvent.DataProfileAppliedConfigs data_profile_configs = 201; + * @param \Google\Cloud\Dataplex\V1\DataScanEvent\DataProfileAppliedConfigs $var + * @return $this + */ + public function setDataProfileConfigs($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataScanEvent\DataProfileAppliedConfigs::class); + $this->writeOneof(201, $var); + + return $this; + } + + /** + * Applied configs for data quality type data scan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScanEvent.DataQualityAppliedConfigs data_quality_configs = 202; + * @return \Google\Cloud\Dataplex\V1\DataScanEvent\DataQualityAppliedConfigs|null + */ + public function getDataQualityConfigs() + { + return $this->readOneof(202); + } + + public function hasDataQualityConfigs() + { + return $this->hasOneof(202); + } + + /** + * Applied configs for data quality type data scan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScanEvent.DataQualityAppliedConfigs data_quality_configs = 202; + * @param \Google\Cloud\Dataplex\V1\DataScanEvent\DataQualityAppliedConfigs $var + * @return $this + */ + public function setDataQualityConfigs($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataScanEvent\DataQualityAppliedConfigs::class); + $this->writeOneof(202, $var); + + return $this; + } + + /** + * The result of post scan actions. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult post_scan_actions_result = 11; + * @return \Google\Cloud\Dataplex\V1\DataScanEvent\PostScanActionsResult|null + */ + public function getPostScanActionsResult() + { + return $this->post_scan_actions_result; + } + + public function hasPostScanActionsResult() + { + return isset($this->post_scan_actions_result); + } + + public function clearPostScanActionsResult() + { + unset($this->post_scan_actions_result); + } + + /** + * The result of post scan actions. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult post_scan_actions_result = 11; + * @param \Google\Cloud\Dataplex\V1\DataScanEvent\PostScanActionsResult $var + * @return $this + */ + public function setPostScanActionsResult($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataScanEvent\PostScanActionsResult::class); + $this->post_scan_actions_result = $var; + + return $this; + } + + /** + * The status of publishing the data scan as Dataplex Universal Catalog + * metadata. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScanCatalogPublishingStatus catalog_publishing_status = 13; + * @return \Google\Cloud\Dataplex\V1\DataScanCatalogPublishingStatus|null + */ + public function getCatalogPublishingStatus() + { + return $this->catalog_publishing_status; + } + + public function hasCatalogPublishingStatus() + { + return isset($this->catalog_publishing_status); + } + + public function clearCatalogPublishingStatus() + { + unset($this->catalog_publishing_status); + } + + /** + * The status of publishing the data scan as Dataplex Universal Catalog + * metadata. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScanCatalogPublishingStatus catalog_publishing_status = 13; + * @param \Google\Cloud\Dataplex\V1\DataScanCatalogPublishingStatus $var + * @return $this + */ + public function setCatalogPublishingStatus($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataScanCatalogPublishingStatus::class); + $this->catalog_publishing_status = $var; + + return $this; + } + + /** + * @return string + */ + public function getResult() + { + return $this->whichOneof("result"); + } + + /** + * @return string + */ + public function getAppliedConfigs() + { + return $this->whichOneof("appliedConfigs"); + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/DataProfileAppliedConfigs.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/DataProfileAppliedConfigs.php new file mode 100644 index 000000000000..b3f25ad08f3c --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/DataProfileAppliedConfigs.php @@ -0,0 +1,147 @@ +google.cloud.dataplex.v1.DataScanEvent.DataProfileAppliedConfigs + */ +class DataProfileAppliedConfigs extends \Google\Protobuf\Internal\Message +{ + /** + * The percentage of the records selected from the dataset for DataScan. + * * Value ranges between 0.0 and 100.0. + * * Value 0.0 or 100.0 imply that sampling was not applied. + * + * Generated from protobuf field float sampling_percent = 1; + */ + protected $sampling_percent = 0.0; + /** + * Boolean indicating whether a row filter was applied in the DataScan job. + * + * Generated from protobuf field bool row_filter_applied = 2; + */ + protected $row_filter_applied = false; + /** + * Boolean indicating whether a column filter was applied in the DataScan + * job. + * + * Generated from protobuf field bool column_filter_applied = 3; + */ + protected $column_filter_applied = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type float $sampling_percent + * The percentage of the records selected from the dataset for DataScan. + * * Value ranges between 0.0 and 100.0. + * * Value 0.0 or 100.0 imply that sampling was not applied. + * @type bool $row_filter_applied + * Boolean indicating whether a row filter was applied in the DataScan job. + * @type bool $column_filter_applied + * Boolean indicating whether a column filter was applied in the DataScan + * job. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Logs::initOnce(); + parent::__construct($data); + } + + /** + * The percentage of the records selected from the dataset for DataScan. + * * Value ranges between 0.0 and 100.0. + * * Value 0.0 or 100.0 imply that sampling was not applied. + * + * Generated from protobuf field float sampling_percent = 1; + * @return float + */ + public function getSamplingPercent() + { + return $this->sampling_percent; + } + + /** + * The percentage of the records selected from the dataset for DataScan. + * * Value ranges between 0.0 and 100.0. + * * Value 0.0 or 100.0 imply that sampling was not applied. + * + * Generated from protobuf field float sampling_percent = 1; + * @param float $var + * @return $this + */ + public function setSamplingPercent($var) + { + GPBUtil::checkFloat($var); + $this->sampling_percent = $var; + + return $this; + } + + /** + * Boolean indicating whether a row filter was applied in the DataScan job. + * + * Generated from protobuf field bool row_filter_applied = 2; + * @return bool + */ + public function getRowFilterApplied() + { + return $this->row_filter_applied; + } + + /** + * Boolean indicating whether a row filter was applied in the DataScan job. + * + * Generated from protobuf field bool row_filter_applied = 2; + * @param bool $var + * @return $this + */ + public function setRowFilterApplied($var) + { + GPBUtil::checkBool($var); + $this->row_filter_applied = $var; + + return $this; + } + + /** + * Boolean indicating whether a column filter was applied in the DataScan + * job. + * + * Generated from protobuf field bool column_filter_applied = 3; + * @return bool + */ + public function getColumnFilterApplied() + { + return $this->column_filter_applied; + } + + /** + * Boolean indicating whether a column filter was applied in the DataScan + * job. + * + * Generated from protobuf field bool column_filter_applied = 3; + * @param bool $var + * @return $this + */ + public function setColumnFilterApplied($var) + { + GPBUtil::checkBool($var); + $this->column_filter_applied = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/DataProfileResult.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/DataProfileResult.php new file mode 100644 index 000000000000..3ff3cc237024 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/DataProfileResult.php @@ -0,0 +1,67 @@ +google.cloud.dataplex.v1.DataScanEvent.DataProfileResult + */ +class DataProfileResult extends \Google\Protobuf\Internal\Message +{ + /** + * The count of rows processed in the data scan job. + * + * Generated from protobuf field int64 row_count = 1; + */ + protected $row_count = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $row_count + * The count of rows processed in the data scan job. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Logs::initOnce(); + parent::__construct($data); + } + + /** + * The count of rows processed in the data scan job. + * + * Generated from protobuf field int64 row_count = 1; + * @return int|string + */ + public function getRowCount() + { + return $this->row_count; + } + + /** + * The count of rows processed in the data scan job. + * + * Generated from protobuf field int64 row_count = 1; + * @param int|string $var + * @return $this + */ + public function setRowCount($var) + { + GPBUtil::checkInt64($var); + $this->row_count = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/DataQualityAppliedConfigs.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/DataQualityAppliedConfigs.php new file mode 100644 index 000000000000..4d94912e2e9e --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/DataQualityAppliedConfigs.php @@ -0,0 +1,109 @@ +google.cloud.dataplex.v1.DataScanEvent.DataQualityAppliedConfigs + */ +class DataQualityAppliedConfigs extends \Google\Protobuf\Internal\Message +{ + /** + * The percentage of the records selected from the dataset for DataScan. + * * Value ranges between 0.0 and 100.0. + * * Value 0.0 or 100.0 imply that sampling was not applied. + * + * Generated from protobuf field float sampling_percent = 1; + */ + protected $sampling_percent = 0.0; + /** + * Boolean indicating whether a row filter was applied in the DataScan job. + * + * Generated from protobuf field bool row_filter_applied = 2; + */ + protected $row_filter_applied = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type float $sampling_percent + * The percentage of the records selected from the dataset for DataScan. + * * Value ranges between 0.0 and 100.0. + * * Value 0.0 or 100.0 imply that sampling was not applied. + * @type bool $row_filter_applied + * Boolean indicating whether a row filter was applied in the DataScan job. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Logs::initOnce(); + parent::__construct($data); + } + + /** + * The percentage of the records selected from the dataset for DataScan. + * * Value ranges between 0.0 and 100.0. + * * Value 0.0 or 100.0 imply that sampling was not applied. + * + * Generated from protobuf field float sampling_percent = 1; + * @return float + */ + public function getSamplingPercent() + { + return $this->sampling_percent; + } + + /** + * The percentage of the records selected from the dataset for DataScan. + * * Value ranges between 0.0 and 100.0. + * * Value 0.0 or 100.0 imply that sampling was not applied. + * + * Generated from protobuf field float sampling_percent = 1; + * @param float $var + * @return $this + */ + public function setSamplingPercent($var) + { + GPBUtil::checkFloat($var); + $this->sampling_percent = $var; + + return $this; + } + + /** + * Boolean indicating whether a row filter was applied in the DataScan job. + * + * Generated from protobuf field bool row_filter_applied = 2; + * @return bool + */ + public function getRowFilterApplied() + { + return $this->row_filter_applied; + } + + /** + * Boolean indicating whether a row filter was applied in the DataScan job. + * + * Generated from protobuf field bool row_filter_applied = 2; + * @param bool $var + * @return $this + */ + public function setRowFilterApplied($var) + { + GPBUtil::checkBool($var); + $this->row_filter_applied = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/DataQualityResult.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/DataQualityResult.php new file mode 100644 index 000000000000..94c53d814a16 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/DataQualityResult.php @@ -0,0 +1,289 @@ +google.cloud.dataplex.v1.DataScanEvent.DataQualityResult + */ +class DataQualityResult extends \Google\Protobuf\Internal\Message +{ + /** + * The count of rows processed in the data scan job. + * + * Generated from protobuf field int64 row_count = 1; + */ + protected $row_count = 0; + /** + * Whether the data quality result was `pass` or not. + * + * Generated from protobuf field bool passed = 2; + */ + protected $passed = false; + /** + * The result of each dimension for data quality result. + * The key of the map is the name of the dimension. + * The value is the bool value depicting whether the dimension result was + * `pass` or not. + * + * Generated from protobuf field map dimension_passed = 3; + */ + private $dimension_passed; + /** + * The table-level data quality score for the data scan job. + * The data quality score ranges between [0, 100] (up to two decimal + * points). + * + * Generated from protobuf field float score = 4; + */ + protected $score = 0.0; + /** + * The score of each dimension for data quality result. + * The key of the map is the name of the dimension. + * The value is the data quality score for the dimension. + * The score ranges between [0, 100] (up to two decimal + * points). + * + * Generated from protobuf field map dimension_score = 5; + */ + private $dimension_score; + /** + * The score of each column scanned in the data scan job. + * The key of the map is the name of the column. + * The value is the data quality score for the column. + * The score ranges between [0, 100] (up to two decimal + * points). + * + * Generated from protobuf field map column_score = 6; + */ + private $column_score; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $row_count + * The count of rows processed in the data scan job. + * @type bool $passed + * Whether the data quality result was `pass` or not. + * @type array|\Google\Protobuf\Internal\MapField $dimension_passed + * The result of each dimension for data quality result. + * The key of the map is the name of the dimension. + * The value is the bool value depicting whether the dimension result was + * `pass` or not. + * @type float $score + * The table-level data quality score for the data scan job. + * The data quality score ranges between [0, 100] (up to two decimal + * points). + * @type array|\Google\Protobuf\Internal\MapField $dimension_score + * The score of each dimension for data quality result. + * The key of the map is the name of the dimension. + * The value is the data quality score for the dimension. + * The score ranges between [0, 100] (up to two decimal + * points). + * @type array|\Google\Protobuf\Internal\MapField $column_score + * The score of each column scanned in the data scan job. + * The key of the map is the name of the column. + * The value is the data quality score for the column. + * The score ranges between [0, 100] (up to two decimal + * points). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Logs::initOnce(); + parent::__construct($data); + } + + /** + * The count of rows processed in the data scan job. + * + * Generated from protobuf field int64 row_count = 1; + * @return int|string + */ + public function getRowCount() + { + return $this->row_count; + } + + /** + * The count of rows processed in the data scan job. + * + * Generated from protobuf field int64 row_count = 1; + * @param int|string $var + * @return $this + */ + public function setRowCount($var) + { + GPBUtil::checkInt64($var); + $this->row_count = $var; + + return $this; + } + + /** + * Whether the data quality result was `pass` or not. + * + * Generated from protobuf field bool passed = 2; + * @return bool + */ + public function getPassed() + { + return $this->passed; + } + + /** + * Whether the data quality result was `pass` or not. + * + * Generated from protobuf field bool passed = 2; + * @param bool $var + * @return $this + */ + public function setPassed($var) + { + GPBUtil::checkBool($var); + $this->passed = $var; + + return $this; + } + + /** + * The result of each dimension for data quality result. + * The key of the map is the name of the dimension. + * The value is the bool value depicting whether the dimension result was + * `pass` or not. + * + * Generated from protobuf field map dimension_passed = 3; + * @return \Google\Protobuf\Internal\MapField + */ + public function getDimensionPassed() + { + return $this->dimension_passed; + } + + /** + * The result of each dimension for data quality result. + * The key of the map is the name of the dimension. + * The value is the bool value depicting whether the dimension result was + * `pass` or not. + * + * Generated from protobuf field map dimension_passed = 3; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setDimensionPassed($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::BOOL); + $this->dimension_passed = $arr; + + return $this; + } + + /** + * The table-level data quality score for the data scan job. + * The data quality score ranges between [0, 100] (up to two decimal + * points). + * + * Generated from protobuf field float score = 4; + * @return float + */ + public function getScore() + { + return $this->score; + } + + /** + * The table-level data quality score for the data scan job. + * The data quality score ranges between [0, 100] (up to two decimal + * points). + * + * Generated from protobuf field float score = 4; + * @param float $var + * @return $this + */ + public function setScore($var) + { + GPBUtil::checkFloat($var); + $this->score = $var; + + return $this; + } + + /** + * The score of each dimension for data quality result. + * The key of the map is the name of the dimension. + * The value is the data quality score for the dimension. + * The score ranges between [0, 100] (up to two decimal + * points). + * + * Generated from protobuf field map dimension_score = 5; + * @return \Google\Protobuf\Internal\MapField + */ + public function getDimensionScore() + { + return $this->dimension_score; + } + + /** + * The score of each dimension for data quality result. + * The key of the map is the name of the dimension. + * The value is the data quality score for the dimension. + * The score ranges between [0, 100] (up to two decimal + * points). + * + * Generated from protobuf field map dimension_score = 5; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setDimensionScore($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::FLOAT); + $this->dimension_score = $arr; + + return $this; + } + + /** + * The score of each column scanned in the data scan job. + * The key of the map is the name of the column. + * The value is the data quality score for the column. + * The score ranges between [0, 100] (up to two decimal + * points). + * + * Generated from protobuf field map column_score = 6; + * @return \Google\Protobuf\Internal\MapField + */ + public function getColumnScore() + { + return $this->column_score; + } + + /** + * The score of each column scanned in the data scan job. + * The key of the map is the name of the column. + * The value is the data quality score for the column. + * The score ranges between [0, 100] (up to two decimal + * points). + * + * Generated from protobuf field map column_score = 6; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setColumnScore($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::FLOAT); + $this->column_score = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/PostScanActionsResult.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/PostScanActionsResult.php new file mode 100644 index 000000000000..71d5d15509ef --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/PostScanActionsResult.php @@ -0,0 +1,77 @@ +google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult + */ +class PostScanActionsResult extends \Google\Protobuf\Internal\Message +{ + /** + * The result of BigQuery export post scan action. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult.BigQueryExportResult bigquery_export_result = 1; + */ + protected $bigquery_export_result = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\DataScanEvent\PostScanActionsResult\BigQueryExportResult $bigquery_export_result + * The result of BigQuery export post scan action. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Logs::initOnce(); + parent::__construct($data); + } + + /** + * The result of BigQuery export post scan action. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult.BigQueryExportResult bigquery_export_result = 1; + * @return \Google\Cloud\Dataplex\V1\DataScanEvent\PostScanActionsResult\BigQueryExportResult|null + */ + public function getBigqueryExportResult() + { + return $this->bigquery_export_result; + } + + public function hasBigqueryExportResult() + { + return isset($this->bigquery_export_result); + } + + public function clearBigqueryExportResult() + { + unset($this->bigquery_export_result); + } + + /** + * The result of BigQuery export post scan action. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult.BigQueryExportResult bigquery_export_result = 1; + * @param \Google\Cloud\Dataplex\V1\DataScanEvent\PostScanActionsResult\BigQueryExportResult $var + * @return $this + */ + public function setBigqueryExportResult($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataScanEvent\PostScanActionsResult\BigQueryExportResult::class); + $this->bigquery_export_result = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/PostScanActionsResult/BigQueryExportResult.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/PostScanActionsResult/BigQueryExportResult.php new file mode 100644 index 000000000000..375f7a696a43 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/PostScanActionsResult/BigQueryExportResult.php @@ -0,0 +1,101 @@ +google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult.BigQueryExportResult + */ +class BigQueryExportResult extends \Google\Protobuf\Internal\Message +{ + /** + * Execution state for the BigQuery exporting. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult.BigQueryExportResult.State state = 1; + */ + protected $state = 0; + /** + * Additional information about the BigQuery exporting. + * + * Generated from protobuf field string message = 2; + */ + protected $message = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $state + * Execution state for the BigQuery exporting. + * @type string $message + * Additional information about the BigQuery exporting. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Logs::initOnce(); + parent::__construct($data); + } + + /** + * Execution state for the BigQuery exporting. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult.BigQueryExportResult.State state = 1; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Execution state for the BigQuery exporting. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult.BigQueryExportResult.State state = 1; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\DataScanEvent\PostScanActionsResult\BigQueryExportResult\State::class); + $this->state = $var; + + return $this; + } + + /** + * Additional information about the BigQuery exporting. + * + * Generated from protobuf field string message = 2; + * @return string + */ + public function getMessage() + { + return $this->message; + } + + /** + * Additional information about the BigQuery exporting. + * + * Generated from protobuf field string message = 2; + * @param string $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkString($var, True); + $this->message = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/PostScanActionsResult/BigQueryExportResult/State.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/PostScanActionsResult/BigQueryExportResult/State.php new file mode 100644 index 000000000000..82ace747ff19 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/PostScanActionsResult/BigQueryExportResult/State.php @@ -0,0 +1,69 @@ +google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult.BigQueryExportResult.State + */ +class State +{ + /** + * The exporting state is unspecified. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * The exporting completed successfully. + * + * Generated from protobuf enum SUCCEEDED = 1; + */ + const SUCCEEDED = 1; + /** + * The exporting is no longer running due to an error. + * + * Generated from protobuf enum FAILED = 2; + */ + const FAILED = 2; + /** + * The exporting is skipped due to no valid scan result to export + * (usually caused by scan failed). + * + * Generated from protobuf enum SKIPPED = 3; + */ + const SKIPPED = 3; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::SUCCEEDED => 'SUCCEEDED', + self::FAILED => 'FAILED', + self::SKIPPED => 'SKIPPED', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/ScanType.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/ScanType.php new file mode 100644 index 000000000000..4748a11f5dcf --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/ScanType.php @@ -0,0 +1,68 @@ +google.cloud.dataplex.v1.DataScanEvent.ScanType + */ +class ScanType +{ + /** + * An unspecified data scan type. + * + * Generated from protobuf enum SCAN_TYPE_UNSPECIFIED = 0; + */ + const SCAN_TYPE_UNSPECIFIED = 0; + /** + * Data scan for data profile. + * + * Generated from protobuf enum DATA_PROFILE = 1; + */ + const DATA_PROFILE = 1; + /** + * Data scan for data quality. + * + * Generated from protobuf enum DATA_QUALITY = 2; + */ + const DATA_QUALITY = 2; + /** + * Data scan for data discovery. + * + * Generated from protobuf enum DATA_DISCOVERY = 4; + */ + const DATA_DISCOVERY = 4; + + private static $valueToName = [ + self::SCAN_TYPE_UNSPECIFIED => 'SCAN_TYPE_UNSPECIFIED', + self::DATA_PROFILE => 'DATA_PROFILE', + self::DATA_QUALITY => 'DATA_QUALITY', + self::DATA_DISCOVERY => 'DATA_DISCOVERY', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/Scope.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/Scope.php new file mode 100644 index 000000000000..d1e2481a7da4 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/Scope.php @@ -0,0 +1,61 @@ +google.cloud.dataplex.v1.DataScanEvent.Scope + */ +class Scope +{ + /** + * An unspecified scope type. + * + * Generated from protobuf enum SCOPE_UNSPECIFIED = 0; + */ + const SCOPE_UNSPECIFIED = 0; + /** + * Data scan runs on all of the data. + * + * Generated from protobuf enum FULL = 1; + */ + const FULL = 1; + /** + * Data scan runs on incremental data. + * + * Generated from protobuf enum INCREMENTAL = 2; + */ + const INCREMENTAL = 2; + + private static $valueToName = [ + self::SCOPE_UNSPECIFIED => 'SCOPE_UNSPECIFIED', + self::FULL => 'FULL', + self::INCREMENTAL => 'INCREMENTAL', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/State.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/State.php new file mode 100644 index 000000000000..653c5b349bc5 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/State.php @@ -0,0 +1,82 @@ +google.cloud.dataplex.v1.DataScanEvent.State + */ +class State +{ + /** + * Unspecified job state. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * Data scan job started. + * + * Generated from protobuf enum STARTED = 1; + */ + const STARTED = 1; + /** + * Data scan job successfully completed. + * + * Generated from protobuf enum SUCCEEDED = 2; + */ + const SUCCEEDED = 2; + /** + * Data scan job was unsuccessful. + * + * Generated from protobuf enum FAILED = 3; + */ + const FAILED = 3; + /** + * Data scan job was cancelled. + * + * Generated from protobuf enum CANCELLED = 4; + */ + const CANCELLED = 4; + /** + * Data scan job was created. + * + * Generated from protobuf enum CREATED = 5; + */ + const CREATED = 5; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::STARTED => 'STARTED', + self::SUCCEEDED => 'SUCCEEDED', + self::FAILED => 'FAILED', + self::CANCELLED => 'CANCELLED', + self::CREATED => 'CREATED', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/Trigger.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/Trigger.php new file mode 100644 index 000000000000..faa77b074c99 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/Trigger.php @@ -0,0 +1,68 @@ +google.cloud.dataplex.v1.DataScanEvent.Trigger + */ +class Trigger +{ + /** + * An unspecified trigger type. + * + * Generated from protobuf enum TRIGGER_UNSPECIFIED = 0; + */ + const TRIGGER_UNSPECIFIED = 0; + /** + * Data scan triggers on demand. + * + * Generated from protobuf enum ON_DEMAND = 1; + */ + const ON_DEMAND = 1; + /** + * Data scan triggers as per schedule. + * + * Generated from protobuf enum SCHEDULE = 2; + */ + const SCHEDULE = 2; + /** + * Data scan is run one time on creation. + * + * Generated from protobuf enum ONE_TIME = 3; + */ + const ONE_TIME = 3; + + private static $valueToName = [ + self::TRIGGER_UNSPECIFIED => 'TRIGGER_UNSPECIFIED', + self::ON_DEMAND => 'ON_DEMAND', + self::SCHEDULE => 'SCHEDULE', + self::ONE_TIME => 'ONE_TIME', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanJob.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanJob.php new file mode 100644 index 000000000000..e0799f3623cf --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanJob.php @@ -0,0 +1,667 @@ +google.cloud.dataplex.v1.DataScanJob + */ +class DataScanJob extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Identifier. The relative resource name of the DataScanJob, of + * the form: + * `projects/{project}/locations/{location_id}/dataScans/{datascan_id}/jobs/{job_id}`, + * where `project` refers to a *project_id* or *project_number* and + * `location_id` refers to a Google Cloud region. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. System generated globally unique ID for the DataScanJob. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { + */ + protected $uid = ''; + /** + * Output only. The time when the DataScanJob was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. A message indicating partial failure details. + * + * Generated from protobuf field string partial_failure_message = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $partial_failure_message = ''; + /** + * Output only. The time when the DataScanJob was started. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $start_time = null; + /** + * Output only. The time when the DataScanJob ended. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $end_time = null; + /** + * Output only. Execution state for the DataScanJob. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScanJob.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Output only. Additional information about the current state. + * + * Generated from protobuf field string message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $message = ''; + /** + * Output only. The type of the parent DataScan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScanType type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $type = 0; + protected $spec; + protected $result; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Identifier. The relative resource name of the DataScanJob, of + * the form: + * `projects/{project}/locations/{location_id}/dataScans/{datascan_id}/jobs/{job_id}`, + * where `project` refers to a *project_id* or *project_number* and + * `location_id` refers to a Google Cloud region. + * @type string $uid + * Output only. System generated globally unique ID for the DataScanJob. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time when the DataScanJob was created. + * @type string $partial_failure_message + * Output only. A message indicating partial failure details. + * @type \Google\Protobuf\Timestamp $start_time + * Output only. The time when the DataScanJob was started. + * @type \Google\Protobuf\Timestamp $end_time + * Output only. The time when the DataScanJob ended. + * @type int $state + * Output only. Execution state for the DataScanJob. + * @type string $message + * Output only. Additional information about the current state. + * @type int $type + * Output only. The type of the parent DataScan. + * @type \Google\Cloud\Dataplex\V1\DataQualitySpec $data_quality_spec + * Output only. Settings for a data quality scan. + * @type \Google\Cloud\Dataplex\V1\DataProfileSpec $data_profile_spec + * Output only. Settings for a data profile scan. + * @type \Google\Cloud\Dataplex\V1\DataDiscoverySpec $data_discovery_spec + * Output only. Settings for a data discovery scan. + * @type \Google\Cloud\Dataplex\V1\DataDocumentationSpec $data_documentation_spec + * Output only. Settings for a data documentation scan. + * @type \Google\Cloud\Dataplex\V1\DataQualityResult $data_quality_result + * Output only. The result of a data quality scan. + * @type \Google\Cloud\Dataplex\V1\DataProfileResult $data_profile_result + * Output only. The result of a data profile scan. + * @type \Google\Cloud\Dataplex\V1\DataDiscoveryResult $data_discovery_result + * Output only. The result of a data discovery scan. + * @type \Google\Cloud\Dataplex\V1\DataDocumentationResult $data_documentation_result + * Output only. The result of a data documentation scan. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Datascans::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Identifier. The relative resource name of the DataScanJob, of + * the form: + * `projects/{project}/locations/{location_id}/dataScans/{datascan_id}/jobs/{job_id}`, + * where `project` refers to a *project_id* or *project_number* and + * `location_id` refers to a Google Cloud region. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Identifier. The relative resource name of the DataScanJob, of + * the form: + * `projects/{project}/locations/{location_id}/dataScans/{datascan_id}/jobs/{job_id}`, + * where `project` refers to a *project_id* or *project_number* and + * `location_id` refers to a Google Cloud region. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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. System generated globally unique ID for the DataScanJob. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { + * @return string + */ + public function getUid() + { + return $this->uid; + } + + /** + * Output only. System generated globally unique ID for the DataScanJob. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setUid($var) + { + GPBUtil::checkString($var, True); + $this->uid = $var; + + return $this; + } + + /** + * Output only. The time when the DataScanJob was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.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 DataScanJob was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.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. A message indicating partial failure details. + * + * Generated from protobuf field string partial_failure_message = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getPartialFailureMessage() + { + return $this->partial_failure_message; + } + + /** + * Output only. A message indicating partial failure details. + * + * Generated from protobuf field string partial_failure_message = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setPartialFailureMessage($var) + { + GPBUtil::checkString($var, True); + $this->partial_failure_message = $var; + + return $this; + } + + /** + * Output only. The time when the DataScanJob was started. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 3 [(.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 when the DataScanJob was started. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 3 [(.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 when the DataScanJob ended. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 4 [(.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 when the DataScanJob ended. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 4 [(.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. Execution state for the DataScanJob. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScanJob.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. Execution state for the DataScanJob. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScanJob.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\DataScanJob\State::class); + $this->state = $var; + + return $this; + } + + /** + * Output only. Additional information about the current state. + * + * Generated from protobuf field string message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getMessage() + { + return $this->message; + } + + /** + * Output only. Additional information about the current state. + * + * Generated from protobuf field string message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkString($var, True); + $this->message = $var; + + return $this; + } + + /** + * Output only. The type of the parent DataScan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScanType type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Output only. The type of the parent DataScan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScanType type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\DataScanType::class); + $this->type = $var; + + return $this; + } + + /** + * Output only. Settings for a data quality scan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualitySpec data_quality_spec = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataplex\V1\DataQualitySpec|null + */ + public function getDataQualitySpec() + { + return $this->readOneof(100); + } + + public function hasDataQualitySpec() + { + return $this->hasOneof(100); + } + + /** + * Output only. Settings for a data quality scan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualitySpec data_quality_spec = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\DataQualitySpec $var + * @return $this + */ + public function setDataQualitySpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataQualitySpec::class); + $this->writeOneof(100, $var); + + return $this; + } + + /** + * Output only. Settings for a data profile scan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileSpec data_profile_spec = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataplex\V1\DataProfileSpec|null + */ + public function getDataProfileSpec() + { + return $this->readOneof(101); + } + + public function hasDataProfileSpec() + { + return $this->hasOneof(101); + } + + /** + * Output only. Settings for a data profile scan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileSpec data_profile_spec = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\DataProfileSpec $var + * @return $this + */ + public function setDataProfileSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataProfileSpec::class); + $this->writeOneof(101, $var); + + return $this; + } + + /** + * Output only. Settings for a data discovery scan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoverySpec data_discovery_spec = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataplex\V1\DataDiscoverySpec|null + */ + public function getDataDiscoverySpec() + { + return $this->readOneof(102); + } + + public function hasDataDiscoverySpec() + { + return $this->hasOneof(102); + } + + /** + * Output only. Settings for a data discovery scan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoverySpec data_discovery_spec = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\DataDiscoverySpec $var + * @return $this + */ + public function setDataDiscoverySpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataDiscoverySpec::class); + $this->writeOneof(102, $var); + + return $this; + } + + /** + * Output only. Settings for a data documentation scan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataDocumentationSpec data_documentation_spec = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataplex\V1\DataDocumentationSpec|null + */ + public function getDataDocumentationSpec() + { + return $this->readOneof(103); + } + + public function hasDataDocumentationSpec() + { + return $this->hasOneof(103); + } + + /** + * Output only. Settings for a data documentation scan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataDocumentationSpec data_documentation_spec = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\DataDocumentationSpec $var + * @return $this + */ + public function setDataDocumentationSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataDocumentationSpec::class); + $this->writeOneof(103, $var); + + return $this; + } + + /** + * Output only. The result of a data quality scan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityResult data_quality_result = 200 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataplex\V1\DataQualityResult|null + */ + public function getDataQualityResult() + { + return $this->readOneof(200); + } + + public function hasDataQualityResult() + { + return $this->hasOneof(200); + } + + /** + * Output only. The result of a data quality scan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityResult data_quality_result = 200 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\DataQualityResult $var + * @return $this + */ + public function setDataQualityResult($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataQualityResult::class); + $this->writeOneof(200, $var); + + return $this; + } + + /** + * Output only. The result of a data profile scan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileResult data_profile_result = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataplex\V1\DataProfileResult|null + */ + public function getDataProfileResult() + { + return $this->readOneof(201); + } + + public function hasDataProfileResult() + { + return $this->hasOneof(201); + } + + /** + * Output only. The result of a data profile scan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileResult data_profile_result = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\DataProfileResult $var + * @return $this + */ + public function setDataProfileResult($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataProfileResult::class); + $this->writeOneof(201, $var); + + return $this; + } + + /** + * Output only. The result of a data discovery scan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoveryResult data_discovery_result = 202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataplex\V1\DataDiscoveryResult|null + */ + public function getDataDiscoveryResult() + { + return $this->readOneof(202); + } + + public function hasDataDiscoveryResult() + { + return $this->hasOneof(202); + } + + /** + * Output only. The result of a data discovery scan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoveryResult data_discovery_result = 202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\DataDiscoveryResult $var + * @return $this + */ + public function setDataDiscoveryResult($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataDiscoveryResult::class); + $this->writeOneof(202, $var); + + return $this; + } + + /** + * Output only. The result of a data documentation scan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataDocumentationResult data_documentation_result = 203 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataplex\V1\DataDocumentationResult|null + */ + public function getDataDocumentationResult() + { + return $this->readOneof(203); + } + + public function hasDataDocumentationResult() + { + return $this->hasOneof(203); + } + + /** + * Output only. The result of a data documentation scan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataDocumentationResult data_documentation_result = 203 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\DataDocumentationResult $var + * @return $this + */ + public function setDataDocumentationResult($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataDocumentationResult::class); + $this->writeOneof(203, $var); + + return $this; + } + + /** + * @return string + */ + public function getSpec() + { + return $this->whichOneof("spec"); + } + + /** + * @return string + */ + public function getResult() + { + return $this->whichOneof("result"); + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanJob/State.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanJob/State.php new file mode 100644 index 000000000000..5f79ddc321e2 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanJob/State.php @@ -0,0 +1,96 @@ +google.cloud.dataplex.v1.DataScanJob.State + */ +class State +{ + /** + * The DataScanJob state is unspecified. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * The DataScanJob is running. + * + * Generated from protobuf enum RUNNING = 1; + */ + const RUNNING = 1; + /** + * The DataScanJob is canceling. + * + * Generated from protobuf enum CANCELING = 2; + */ + const CANCELING = 2; + /** + * The DataScanJob cancellation was successful. + * + * Generated from protobuf enum CANCELLED = 3; + */ + const CANCELLED = 3; + /** + * The DataScanJob completed successfully. + * + * Generated from protobuf enum SUCCEEDED = 4; + */ + const SUCCEEDED = 4; + /** + * The DataScanJob is no longer running due to an error. + * + * Generated from protobuf enum FAILED = 5; + */ + const FAILED = 5; + /** + * The DataScanJob has been created but not started to run yet. + * + * Generated from protobuf enum PENDING = 7; + */ + const PENDING = 7; + /** + * The DataScanJob succeeded with errors. + * + * Generated from protobuf enum SUCCEEDED_WITH_ERRORS = 8; + */ + const SUCCEEDED_WITH_ERRORS = 8; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::RUNNING => 'RUNNING', + self::CANCELING => 'CANCELING', + self::CANCELLED => 'CANCELLED', + self::SUCCEEDED => 'SUCCEEDED', + self::FAILED => 'FAILED', + self::PENDING => 'PENDING', + self::SUCCEEDED_WITH_ERRORS => 'SUCCEEDED_WITH_ERRORS', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanType.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanType.php new file mode 100644 index 000000000000..9ae440638b10 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanType.php @@ -0,0 +1,75 @@ +google.cloud.dataplex.v1.DataScanType + */ +class DataScanType +{ + /** + * The data scan type is unspecified. + * + * Generated from protobuf enum DATA_SCAN_TYPE_UNSPECIFIED = 0; + */ + const DATA_SCAN_TYPE_UNSPECIFIED = 0; + /** + * Data quality scan. + * + * Generated from protobuf enum DATA_QUALITY = 1; + */ + const DATA_QUALITY = 1; + /** + * Data profile scan. + * + * Generated from protobuf enum DATA_PROFILE = 2; + */ + const DATA_PROFILE = 2; + /** + * Data discovery scan. + * + * Generated from protobuf enum DATA_DISCOVERY = 3; + */ + const DATA_DISCOVERY = 3; + /** + * Data documentation scan. + * + * Generated from protobuf enum DATA_DOCUMENTATION = 4; + */ + const DATA_DOCUMENTATION = 4; + + private static $valueToName = [ + self::DATA_SCAN_TYPE_UNSPECIFIED => 'DATA_SCAN_TYPE_UNSPECIFIED', + self::DATA_QUALITY => 'DATA_QUALITY', + self::DATA_PROFILE => 'DATA_PROFILE', + self::DATA_DISCOVERY => 'DATA_DISCOVERY', + self::DATA_DOCUMENTATION => 'DATA_DOCUMENTATION', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataSource.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataSource.php new file mode 100644 index 000000000000..38e25bb9c433 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataSource.php @@ -0,0 +1,150 @@ +google.cloud.dataplex.v1.DataSource + */ +class DataSource extends \Google\Protobuf\Internal\Message +{ + protected $source; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $entity + * Immutable. The Dataplex Universal Catalog entity that represents the data + * source (e.g. BigQuery table) for DataScan, of the form: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`. + * @type string $resource + * Immutable. The service-qualified full resource name of the cloud resource + * for a DataScan job to scan against. The field could either be: Cloud + * Storage bucket for DataDiscoveryScan Format: + * //storage.googleapis.com/projects/PROJECT_ID/buckets/BUCKET_ID + * or + * BigQuery table of type "TABLE" for + * DataProfileScan/DataQualityScan/DataDocumentationScan + * Format: + * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID + * or + * BigQuery dataset for DataDocumentationScan only + * Format: + * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Processing::initOnce(); + parent::__construct($data); + } + + /** + * Immutable. The Dataplex Universal Catalog entity that represents the data + * source (e.g. BigQuery table) for DataScan, of the form: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`. + * + * Generated from protobuf field string entity = 100 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { + * @return string + */ + public function getEntity() + { + return $this->readOneof(100); + } + + public function hasEntity() + { + return $this->hasOneof(100); + } + + /** + * Immutable. The Dataplex Universal Catalog entity that represents the data + * source (e.g. BigQuery table) for DataScan, of the form: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`. + * + * Generated from protobuf field string entity = 100 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setEntity($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(100, $var); + + return $this; + } + + /** + * Immutable. The service-qualified full resource name of the cloud resource + * for a DataScan job to scan against. The field could either be: Cloud + * Storage bucket for DataDiscoveryScan Format: + * //storage.googleapis.com/projects/PROJECT_ID/buckets/BUCKET_ID + * or + * BigQuery table of type "TABLE" for + * DataProfileScan/DataQualityScan/DataDocumentationScan + * Format: + * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID + * or + * BigQuery dataset for DataDocumentationScan only + * Format: + * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID + * + * Generated from protobuf field string resource = 101 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getResource() + { + return $this->readOneof(101); + } + + public function hasResource() + { + return $this->hasOneof(101); + } + + /** + * Immutable. The service-qualified full resource name of the cloud resource + * for a DataScan job to scan against. The field could either be: Cloud + * Storage bucket for DataDiscoveryScan Format: + * //storage.googleapis.com/projects/PROJECT_ID/buckets/BUCKET_ID + * or + * BigQuery table of type "TABLE" for + * DataProfileScan/DataQualityScan/DataDocumentationScan + * Format: + * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID + * or + * BigQuery dataset for DataDocumentationScan only + * Format: + * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID + * + * Generated from protobuf field string resource = 101 [(.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setResource($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(101, $var); + + return $this; + } + + /** + * @return string + */ + public function getSource() + { + return $this->whichOneof("source"); + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataTaxonomy.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataTaxonomy.php new file mode 100644 index 000000000000..ec4488a959dd --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataTaxonomy.php @@ -0,0 +1,416 @@ +google.cloud.dataplex.v1.DataTaxonomy + */ +class DataTaxonomy extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The relative resource name of the DataTaxonomy, of the form: + * projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Output only. System generated globally unique ID for the dataTaxonomy. This + * ID will be different if the DataTaxonomy is deleted and re-created with the + * same name. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $uid = ''; + /** + * Output only. The time when the DataTaxonomy was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The time when the DataTaxonomy was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Optional. Description of the DataTaxonomy. + * + * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Optional. User friendly display name. + * + * Generated from protobuf field string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $display_name = ''; + /** + * Optional. User-defined labels for the DataTaxonomy. + * + * Generated from protobuf field map labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $labels; + /** + * Output only. The number of attributes in the DataTaxonomy. + * + * Generated from protobuf field int32 attribute_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $attribute_count = 0; + /** + * This checksum is computed by the server based on the value of other + * fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 10; + */ + protected $etag = ''; + /** + * Output only. The number of classes in the DataTaxonomy. + * + * Generated from protobuf field int32 class_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $class_count = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. The relative resource name of the DataTaxonomy, of the form: + * projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id}. + * @type string $uid + * Output only. System generated globally unique ID for the dataTaxonomy. This + * ID will be different if the DataTaxonomy is deleted and re-created with the + * same name. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time when the DataTaxonomy was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time when the DataTaxonomy was last updated. + * @type string $description + * Optional. Description of the DataTaxonomy. + * @type string $display_name + * Optional. User friendly display name. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Optional. User-defined labels for the DataTaxonomy. + * @type int $attribute_count + * Output only. The number of attributes in the DataTaxonomy. + * @type string $etag + * This checksum is computed by the server based on the value of other + * fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * @type int $class_count + * Output only. The number of classes in the DataTaxonomy. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataTaxonomy::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The relative resource name of the DataTaxonomy, of the form: + * projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. The relative resource name of the DataTaxonomy, of the form: + * projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. System generated globally unique ID for the dataTaxonomy. This + * ID will be different if the DataTaxonomy is deleted and re-created with the + * same name. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getUid() + { + return $this->uid; + } + + /** + * Output only. System generated globally unique ID for the dataTaxonomy. This + * ID will be different if the DataTaxonomy is deleted and re-created with the + * same name. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setUid($var) + { + GPBUtil::checkString($var, True); + $this->uid = $var; + + return $this; + } + + /** + * Output only. The time when the DataTaxonomy was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The time when the DataTaxonomy was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. The time when the DataTaxonomy was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. The time when the DataTaxonomy was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Optional. Description of the DataTaxonomy. + * + * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. Description of the DataTaxonomy. + * + * 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; + } + + /** + * Optional. User friendly display name. + * + * Generated from protobuf field string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Optional. User friendly display name. + * + * Generated from protobuf field string display_name = 6 [(.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. User-defined labels for the DataTaxonomy. + * + * Generated from protobuf field map labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Optional. User-defined labels for the DataTaxonomy. + * + * Generated from protobuf field map labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Output only. The number of attributes in the DataTaxonomy. + * + * Generated from protobuf field int32 attribute_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getAttributeCount() + { + return $this->attribute_count; + } + + /** + * Output only. The number of attributes in the DataTaxonomy. + * + * Generated from protobuf field int32 attribute_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setAttributeCount($var) + { + GPBUtil::checkInt32($var); + $this->attribute_count = $var; + + return $this; + } + + /** + * This checksum is computed by the server based on the value of other + * fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 10; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * This checksum is computed by the server based on the value of other + * fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 10; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * Output only. The number of classes in the DataTaxonomy. + * + * Generated from protobuf field int32 class_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getClassCount() + { + return $this->class_count; + } + + /** + * Output only. The number of classes in the DataTaxonomy. + * + * Generated from protobuf field int32 class_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setClassCount($var) + { + GPBUtil::checkInt32($var); + $this->class_count = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteAspectTypeRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteAspectTypeRequest.php new file mode 100644 index 000000000000..dcecc70587bc --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteAspectTypeRequest.php @@ -0,0 +1,128 @@ +google.cloud.dataplex.v1.DeleteAspectTypeRequest + */ +class DeleteAspectTypeRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the AspectType: + * `projects/{project_number}/locations/{location_id}/aspectTypes/{aspect_type_id}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. If the client provided etag value does not match the current etag + * value, the DeleteAspectTypeRequest method returns an ABORTED error + * response. + * + * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $etag = ''; + + /** + * @param string $name Required. The resource name of the AspectType: + * `projects/{project_number}/locations/{location_id}/aspectTypes/{aspect_type_id}`. Please see + * {@see CatalogServiceClient::aspectTypeName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\DeleteAspectTypeRequest + * + * @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 resource name of the AspectType: + * `projects/{project_number}/locations/{location_id}/aspectTypes/{aspect_type_id}`. + * @type string $etag + * Optional. If the client provided etag value does not match the current etag + * value, the DeleteAspectTypeRequest method returns an ABORTED error + * response. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the AspectType: + * `projects/{project_number}/locations/{location_id}/aspectTypes/{aspect_type_id}`. + * + * 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 resource name of the AspectType: + * `projects/{project_number}/locations/{location_id}/aspectTypes/{aspect_type_id}`. + * + * 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. If the client provided etag value does not match the current etag + * value, the DeleteAspectTypeRequest method returns an ABORTED error + * response. + * + * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Optional. If the client provided etag value does not match the current etag + * value, the DeleteAspectTypeRequest method returns an ABORTED error + * response. + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteAssetRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteAssetRequest.php new file mode 100644 index 000000000000..1a4582298460 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteAssetRequest.php @@ -0,0 +1,86 @@ +google.cloud.dataplex.v1.DeleteAssetRequest + */ +class DeleteAssetRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the asset: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the asset: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. Please see + * {@see DataplexServiceClient::assetName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\DeleteAssetRequest + * + * @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 resource name of the asset: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the asset: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. + * + * 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 resource name of the asset: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteDataAssetRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteDataAssetRequest.php new file mode 100644 index 000000000000..0b498fdf53ad --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteDataAssetRequest.php @@ -0,0 +1,175 @@ +google.cloud.dataplex.v1.DeleteDataAssetRequest + */ +class DeleteDataAssetRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the data asset to delete. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}/dataAssets/{data_asset_id} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. The etag of the data asset. + * If this is provided, it must match the server's etag. + * If the etag is provided and does not match the server-computed etag, + * the request must fail with a ABORTED error code. + * + * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $etag = ''; + /** + * Optional. Validates the request without actually deleting the data asset. + * Defaults to false. + * + * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $validate_only = false; + + /** + * @param string $name Required. The name of the data asset to delete. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}/dataAssets/{data_asset_id} + * Please see {@see DataProductServiceClient::dataAssetName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\DeleteDataAssetRequest + * + * @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 data asset to delete. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}/dataAssets/{data_asset_id} + * @type string $etag + * Optional. The etag of the data asset. + * If this is provided, it must match the server's etag. + * If the etag is provided and does not match the server-computed etag, + * the request must fail with a ABORTED error code. + * @type bool $validate_only + * Optional. Validates the request without actually deleting the data asset. + * Defaults to false. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataProducts::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the data asset to delete. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}/dataAssets/{data_asset_id} + * + * 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 data asset to delete. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}/dataAssets/{data_asset_id} + * + * 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 etag of the data asset. + * If this is provided, it must match the server's etag. + * If the etag is provided and does not match the server-computed etag, + * the request must fail with a ABORTED error code. + * + * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Optional. The etag of the data asset. + * If this is provided, it must match the server's etag. + * If the etag is provided and does not match the server-computed etag, + * the request must fail with a ABORTED error code. + * + * 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; + } + + /** + * Optional. Validates the request without actually deleting the data asset. + * Defaults to false. + * + * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * Optional. Validates the request without actually deleting the data asset. + * Defaults to false. + * + * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteDataAttributeBindingRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteDataAttributeBindingRequest.php new file mode 100644 index 000000000000..77ddfaaa6166 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteDataAttributeBindingRequest.php @@ -0,0 +1,132 @@ +google.cloud.dataplex.v1.DeleteDataAttributeBindingRequest + */ +class DeleteDataAttributeBindingRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the DataAttributeBinding: + * projects/{project_number}/locations/{location_id}/dataAttributeBindings/{data_attribute_binding_id} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Required. If the client provided etag value does not match the current etag + * value, the DeleteDataAttributeBindingRequest method returns an ABORTED + * error response. Etags must be used when calling the + * DeleteDataAttributeBinding. + * + * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $etag = ''; + + /** + * @param string $name Required. The resource name of the DataAttributeBinding: + * projects/{project_number}/locations/{location_id}/dataAttributeBindings/{data_attribute_binding_id} + * Please see {@see DataTaxonomyServiceClient::dataAttributeBindingName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\DeleteDataAttributeBindingRequest + * + * @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 resource name of the DataAttributeBinding: + * projects/{project_number}/locations/{location_id}/dataAttributeBindings/{data_attribute_binding_id} + * @type string $etag + * Required. If the client provided etag value does not match the current etag + * value, the DeleteDataAttributeBindingRequest method returns an ABORTED + * error response. Etags must be used when calling the + * DeleteDataAttributeBinding. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataTaxonomy::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the DataAttributeBinding: + * projects/{project_number}/locations/{location_id}/dataAttributeBindings/{data_attribute_binding_id} + * + * 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 resource name of the DataAttributeBinding: + * projects/{project_number}/locations/{location_id}/dataAttributeBindings/{data_attribute_binding_id} + * + * 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; + } + + /** + * Required. If the client provided etag value does not match the current etag + * value, the DeleteDataAttributeBindingRequest method returns an ABORTED + * error response. Etags must be used when calling the + * DeleteDataAttributeBinding. + * + * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Required. If the client provided etag value does not match the current etag + * value, the DeleteDataAttributeBindingRequest method returns an ABORTED + * error response. Etags must be used when calling the + * DeleteDataAttributeBinding. + * + * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteDataAttributeRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteDataAttributeRequest.php new file mode 100644 index 000000000000..cc9f0905dd51 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteDataAttributeRequest.php @@ -0,0 +1,124 @@ +google.cloud.dataplex.v1.DeleteDataAttributeRequest + */ +class DeleteDataAttributeRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the DataAttribute: + * projects/{project_number}/locations/{location_id}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. If the client provided etag value does not match the current etag + * value, the DeleteDataAttribute method returns an ABORTED error response. + * + * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $etag = ''; + + /** + * @param string $name Required. The resource name of the DataAttribute: + * projects/{project_number}/locations/{location_id}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id} + * Please see {@see DataTaxonomyServiceClient::dataAttributeName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\DeleteDataAttributeRequest + * + * @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 resource name of the DataAttribute: + * projects/{project_number}/locations/{location_id}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id} + * @type string $etag + * Optional. If the client provided etag value does not match the current etag + * value, the DeleteDataAttribute method returns an ABORTED error response. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataTaxonomy::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the DataAttribute: + * projects/{project_number}/locations/{location_id}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id} + * + * 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 resource name of the DataAttribute: + * projects/{project_number}/locations/{location_id}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id} + * + * 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. If the client provided etag value does not match the current etag + * value, the DeleteDataAttribute method returns an ABORTED error response. + * + * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Optional. If the client provided etag value does not match the current etag + * value, the DeleteDataAttribute method returns an ABORTED error response. + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteDataProductRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteDataProductRequest.php new file mode 100644 index 000000000000..dfa5e5a9cd0e --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteDataProductRequest.php @@ -0,0 +1,175 @@ +google.cloud.dataplex.v1.DeleteDataProductRequest + */ +class DeleteDataProductRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the data product to delete. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. The etag of the data product. + * If an etag is provided and does not match the current etag of the data + * product, then the deletion will be blocked and an ABORTED error will be + * returned. + * + * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $etag = ''; + /** + * Optional. Validates the request without actually deleting the data product. + * Default: false. + * + * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $validate_only = false; + + /** + * @param string $name Required. The name of the data product to delete. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} + * Please see {@see DataProductServiceClient::dataProductName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\DeleteDataProductRequest + * + * @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 data product to delete. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} + * @type string $etag + * Optional. The etag of the data product. + * If an etag is provided and does not match the current etag of the data + * product, then the deletion will be blocked and an ABORTED error will be + * returned. + * @type bool $validate_only + * Optional. Validates the request without actually deleting the data product. + * Default: false. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataProducts::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the data product to delete. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} + * + * 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 data product to delete. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} + * + * 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 etag of the data product. + * If an etag is provided and does not match the current etag of the data + * product, then the deletion will be blocked and an ABORTED error will be + * returned. + * + * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Optional. The etag of the data product. + * If an etag is provided and does not match the current etag of the data + * product, then the deletion will be blocked and an ABORTED error will be + * returned. + * + * 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; + } + + /** + * Optional. Validates the request without actually deleting the data product. + * Default: false. + * + * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * Optional. Validates the request without actually deleting the data product. + * Default: false. + * + * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteDataScanRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteDataScanRequest.php new file mode 100644 index 000000000000..e6ff95f263ed --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteDataScanRequest.php @@ -0,0 +1,138 @@ +google.cloud.dataplex.v1.DeleteDataScanRequest + */ +class DeleteDataScanRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the dataScan: + * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}` + * where `project` refers to a *project_id* or *project_number* and + * `location_id` refers to a Google Cloud region. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. If set to true, any child resources of this data scan will also + * be deleted. (Otherwise, the request will only work if the data scan has no + * child resources.) + * + * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $force = false; + + /** + * @param string $name Required. The resource name of the dataScan: + * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}` + * where `project` refers to a *project_id* or *project_number* and + * `location_id` refers to a Google Cloud region. Please see + * {@see DataScanServiceClient::dataScanName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\DeleteDataScanRequest + * + * @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 resource name of the dataScan: + * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}` + * where `project` refers to a *project_id* or *project_number* and + * `location_id` refers to a Google Cloud region. + * @type bool $force + * Optional. If set to true, any child resources of this data scan will also + * be deleted. (Otherwise, the request will only work if the data scan has no + * child resources.) + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Datascans::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the dataScan: + * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}` + * where `project` refers to a *project_id* or *project_number* and + * `location_id` refers to a Google Cloud region. + * + * 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 resource name of the dataScan: + * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}` + * where `project` refers to a *project_id* or *project_number* and + * `location_id` refers to a Google Cloud region. + * + * 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. If set to true, any child resources of this data scan will also + * be deleted. (Otherwise, the request will only work if the data scan has no + * child resources.) + * + * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getForce() + { + return $this->force; + } + + /** + * Optional. If set to true, any child resources of this data scan will also + * be deleted. (Otherwise, the request will only work if the data scan has no + * child resources.) + * + * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setForce($var) + { + GPBUtil::checkBool($var); + $this->force = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteDataTaxonomyRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteDataTaxonomyRequest.php new file mode 100644 index 000000000000..9c890f303bb7 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteDataTaxonomyRequest.php @@ -0,0 +1,125 @@ +google.cloud.dataplex.v1.DeleteDataTaxonomyRequest + */ +class DeleteDataTaxonomyRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the DataTaxonomy: + * projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. If the client provided etag value does not match the current etag + * value,the DeleteDataTaxonomy method returns an ABORTED error. + * + * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $etag = ''; + + /** + * @param string $name Required. The resource name of the DataTaxonomy: + * projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id} + * Please see {@see DataTaxonomyServiceClient::dataTaxonomyName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\DeleteDataTaxonomyRequest + * + * @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 resource name of the DataTaxonomy: + * projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id} + * @type string $etag + * Optional. If the client provided etag value does not match the current etag + * value,the DeleteDataTaxonomy method returns an ABORTED error. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataTaxonomy::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the DataTaxonomy: + * projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id} + * + * 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 resource name of the DataTaxonomy: + * projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id} + * + * 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. If the client provided etag value does not match the current etag + * value,the DeleteDataTaxonomy method returns an ABORTED error. + * + * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Optional. If the client provided etag value does not match the current etag + * value,the DeleteDataTaxonomy method returns an ABORTED error. + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteEncryptionConfigRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteEncryptionConfigRequest.php new file mode 100644 index 000000000000..8fc10b83881f --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteEncryptionConfigRequest.php @@ -0,0 +1,115 @@ +google.cloud.dataplex.v1.DeleteEncryptionConfigRequest + */ +class DeleteEncryptionConfigRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the EncryptionConfig to delete. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. Etag of the EncryptionConfig. This is a strong etag. + * + * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $etag = ''; + + /** + * @param string $name Required. The name of the EncryptionConfig to delete. Please see + * {@see CmekServiceClient::encryptionConfigName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\DeleteEncryptionConfigRequest + * + * @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 EncryptionConfig to delete. + * @type string $etag + * Optional. Etag of the EncryptionConfig. This is a strong etag. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Cmek::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the EncryptionConfig to delete. + * + * 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 EncryptionConfig to delete. + * + * 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. Etag of the EncryptionConfig. This is a strong etag. + * + * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Optional. Etag of the EncryptionConfig. This is a strong etag. + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteEntityRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteEntityRequest.php new file mode 100644 index 000000000000..0985b1b90c6e --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteEntityRequest.php @@ -0,0 +1,124 @@ +google.cloud.dataplex.v1.DeleteEntityRequest + */ +class DeleteEntityRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the entity: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Required. The etag associated with the entity, which can be retrieved with + * a [GetEntity][] request. + * + * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $etag = ''; + + /** + * @param string $name Required. The resource name of the entity: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`. Please see + * {@see MetadataServiceClient::entityName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\DeleteEntityRequest + * + * @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 resource name of the entity: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`. + * @type string $etag + * Required. The etag associated with the entity, which can be retrieved with + * a [GetEntity][] request. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Metadata::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the entity: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`. + * + * 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 resource name of the entity: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`. + * + * 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; + } + + /** + * Required. The etag associated with the entity, which can be retrieved with + * a [GetEntity][] request. + * + * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Required. The etag associated with the entity, which can be retrieved with + * a [GetEntity][] request. + * + * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteEntryGroupRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteEntryGroupRequest.php new file mode 100644 index 000000000000..e45a2380e094 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteEntryGroupRequest.php @@ -0,0 +1,128 @@ +google.cloud.dataplex.v1.DeleteEntryGroupRequest + */ +class DeleteEntryGroupRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the EntryGroup: + * `projects/{project_number}/locations/{location_id}/entryGroups/{entry_group_id}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. If the client provided etag value does not match the current etag + * value, the DeleteEntryGroupRequest method returns an ABORTED error + * response. + * + * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $etag = ''; + + /** + * @param string $name Required. The resource name of the EntryGroup: + * `projects/{project_number}/locations/{location_id}/entryGroups/{entry_group_id}`. Please see + * {@see CatalogServiceClient::entryGroupName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\DeleteEntryGroupRequest + * + * @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 resource name of the EntryGroup: + * `projects/{project_number}/locations/{location_id}/entryGroups/{entry_group_id}`. + * @type string $etag + * Optional. If the client provided etag value does not match the current etag + * value, the DeleteEntryGroupRequest method returns an ABORTED error + * response. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the EntryGroup: + * `projects/{project_number}/locations/{location_id}/entryGroups/{entry_group_id}`. + * + * 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 resource name of the EntryGroup: + * `projects/{project_number}/locations/{location_id}/entryGroups/{entry_group_id}`. + * + * 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. If the client provided etag value does not match the current etag + * value, the DeleteEntryGroupRequest method returns an ABORTED error + * response. + * + * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Optional. If the client provided etag value does not match the current etag + * value, the DeleteEntryGroupRequest method returns an ABORTED error + * response. + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteEntryLinkRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteEntryLinkRequest.php new file mode 100644 index 000000000000..a7a1ef512896 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteEntryLinkRequest.php @@ -0,0 +1,86 @@ +google.cloud.dataplex.v1.DeleteEntryLinkRequest + */ +class DeleteEntryLinkRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the Entry Link: + * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entryLinks/{entry_link_id}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the Entry Link: + * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entryLinks/{entry_link_id}`. Please see + * {@see CatalogServiceClient::entryLinkName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\DeleteEntryLinkRequest + * + * @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 resource name of the Entry Link: + * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entryLinks/{entry_link_id}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the Entry Link: + * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entryLinks/{entry_link_id}`. + * + * 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 resource name of the Entry Link: + * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entryLinks/{entry_link_id}`. + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteEntryRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteEntryRequest.php new file mode 100644 index 000000000000..84df38f380db --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteEntryRequest.php @@ -0,0 +1,86 @@ +google.cloud.dataplex.v1.DeleteEntryRequest + */ +class DeleteEntryRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the Entry: + * `projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the Entry: + * `projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}`. Please see + * {@see CatalogServiceClient::entryName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\DeleteEntryRequest + * + * @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 resource name of the Entry: + * `projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the Entry: + * `projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}`. + * + * 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 resource name of the Entry: + * `projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}`. + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteEntryTypeRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteEntryTypeRequest.php new file mode 100644 index 000000000000..4498ad877b24 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteEntryTypeRequest.php @@ -0,0 +1,124 @@ +google.cloud.dataplex.v1.DeleteEntryTypeRequest + */ +class DeleteEntryTypeRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the EntryType: + * `projects/{project_number}/locations/{location_id}/entryTypes/{entry_type_id}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. If the client provided etag value does not match the current etag + * value, the DeleteEntryTypeRequest method returns an ABORTED error response. + * + * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $etag = ''; + + /** + * @param string $name Required. The resource name of the EntryType: + * `projects/{project_number}/locations/{location_id}/entryTypes/{entry_type_id}`. Please see + * {@see CatalogServiceClient::entryTypeName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\DeleteEntryTypeRequest + * + * @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 resource name of the EntryType: + * `projects/{project_number}/locations/{location_id}/entryTypes/{entry_type_id}`. + * @type string $etag + * Optional. If the client provided etag value does not match the current etag + * value, the DeleteEntryTypeRequest method returns an ABORTED error response. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the EntryType: + * `projects/{project_number}/locations/{location_id}/entryTypes/{entry_type_id}`. + * + * 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 resource name of the EntryType: + * `projects/{project_number}/locations/{location_id}/entryTypes/{entry_type_id}`. + * + * 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. If the client provided etag value does not match the current etag + * value, the DeleteEntryTypeRequest method returns an ABORTED error response. + * + * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Optional. If the client provided etag value does not match the current etag + * value, the DeleteEntryTypeRequest method returns an ABORTED error response. + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteGlossaryCategoryRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteGlossaryCategoryRequest.php new file mode 100644 index 000000000000..2ba5196cb90b --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteGlossaryCategoryRequest.php @@ -0,0 +1,91 @@ +google.cloud.dataplex.v1.DeleteGlossaryCategoryRequest + */ +class DeleteGlossaryCategoryRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the GlossaryCategory to delete. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id} + * + * 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 GlossaryCategory to delete. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id} + * Please see {@see BusinessGlossaryServiceClient::glossaryCategoryName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\DeleteGlossaryCategoryRequest + * + * @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 GlossaryCategory to delete. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id} + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\BusinessGlossary::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the GlossaryCategory to delete. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id} + * + * 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 GlossaryCategory to delete. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id} + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteGlossaryRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteGlossaryRequest.php new file mode 100644 index 000000000000..57239e24f900 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteGlossaryRequest.php @@ -0,0 +1,137 @@ +google.cloud.dataplex.v1.DeleteGlossaryRequest + */ +class DeleteGlossaryRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the Glossary to delete. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. The etag of the Glossary. + * If this is provided, it must match the server's etag. + * If the etag is provided and does not match the server-computed etag, + * the request must fail with a ABORTED error code. + * + * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $etag = ''; + + /** + * @param string $name Required. The name of the Glossary to delete. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} + * Please see {@see BusinessGlossaryServiceClient::glossaryName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\DeleteGlossaryRequest + * + * @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 Glossary to delete. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} + * @type string $etag + * Optional. The etag of the Glossary. + * If this is provided, it must match the server's etag. + * If the etag is provided and does not match the server-computed etag, + * the request must fail with a ABORTED error code. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\BusinessGlossary::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the Glossary to delete. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} + * + * 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 Glossary to delete. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} + * + * 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 etag of the Glossary. + * If this is provided, it must match the server's etag. + * If the etag is provided and does not match the server-computed etag, + * the request must fail with a ABORTED error code. + * + * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Optional. The etag of the Glossary. + * If this is provided, it must match the server's etag. + * If the etag is provided and does not match the server-computed etag, + * the request must fail with a ABORTED error code. + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteGlossaryTermRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteGlossaryTermRequest.php new file mode 100644 index 000000000000..ca20386fe848 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteGlossaryTermRequest.php @@ -0,0 +1,91 @@ +google.cloud.dataplex.v1.DeleteGlossaryTermRequest + */ +class DeleteGlossaryTermRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the GlossaryTerm to delete. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/terms/{term_id} + * + * 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 GlossaryTerm to delete. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/terms/{term_id} + * Please see {@see BusinessGlossaryServiceClient::glossaryTermName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\DeleteGlossaryTermRequest + * + * @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 GlossaryTerm to delete. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/terms/{term_id} + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\BusinessGlossary::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the GlossaryTerm to delete. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/terms/{term_id} + * + * 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 GlossaryTerm to delete. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/terms/{term_id} + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteLakeRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteLakeRequest.php new file mode 100644 index 000000000000..e916132725cc --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteLakeRequest.php @@ -0,0 +1,86 @@ +google.cloud.dataplex.v1.DeleteLakeRequest + */ +class DeleteLakeRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the lake: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the lake: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. Please see + * {@see DataplexServiceClient::lakeName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\DeleteLakeRequest + * + * @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 resource name of the lake: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the lake: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. + * + * 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 resource name of the lake: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteMetadataFeedRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteMetadataFeedRequest.php new file mode 100644 index 000000000000..0ffed2b7b5c5 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteMetadataFeedRequest.php @@ -0,0 +1,86 @@ +google.cloud.dataplex.v1.DeleteMetadataFeedRequest + */ +class DeleteMetadataFeedRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the metadata feed, in the format + * `projects/{project_id_or_number}/locations/{location_id}/MetadataFeeds/{metadata_feed_id}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the metadata feed, in the format + * `projects/{project_id_or_number}/locations/{location_id}/MetadataFeeds/{metadata_feed_id}`. Please see + * {@see CatalogServiceClient::metadataFeedName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\DeleteMetadataFeedRequest + * + * @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 resource name of the metadata feed, in the format + * `projects/{project_id_or_number}/locations/{location_id}/MetadataFeeds/{metadata_feed_id}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the metadata feed, in the format + * `projects/{project_id_or_number}/locations/{location_id}/MetadataFeeds/{metadata_feed_id}`. + * + * 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 resource name of the metadata feed, in the format + * `projects/{project_id_or_number}/locations/{location_id}/MetadataFeeds/{metadata_feed_id}`. + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeletePartitionRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeletePartitionRequest.php new file mode 100644 index 000000000000..c809a750bb9d --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeletePartitionRequest.php @@ -0,0 +1,142 @@ +google.cloud.dataplex.v1.DeletePartitionRequest + */ +class DeletePartitionRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the partition. + * format: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}/partitions/{partition_value_path}`. + * The {partition_value_path} segment consists of an ordered sequence of + * partition values separated by "/". All values must be provided. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. The etag associated with the partition. + * + * Generated from protobuf field string etag = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * @deprecated + */ + protected $etag = ''; + + /** + * @param string $name Required. The resource name of the partition. + * format: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}/partitions/{partition_value_path}`. + * The {partition_value_path} segment consists of an ordered sequence of + * partition values separated by "/". All values must be provided. Please see + * {@see MetadataServiceClient::partitionName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\DeletePartitionRequest + * + * @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 resource name of the partition. + * format: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}/partitions/{partition_value_path}`. + * The {partition_value_path} segment consists of an ordered sequence of + * partition values separated by "/". All values must be provided. + * @type string $etag + * Optional. The etag associated with the partition. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Metadata::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the partition. + * format: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}/partitions/{partition_value_path}`. + * The {partition_value_path} segment consists of an ordered sequence of + * partition values separated by "/". All values must be provided. + * + * 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 resource name of the partition. + * format: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}/partitions/{partition_value_path}`. + * The {partition_value_path} segment consists of an ordered sequence of + * partition values separated by "/". All values must be provided. + * + * 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 etag associated with the partition. + * + * Generated from protobuf field string etag = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * @return string + * @deprecated + */ + public function getEtag() + { + if ($this->etag !== '') { + @trigger_error('etag is deprecated.', E_USER_DEPRECATED); + } + return $this->etag; + } + + /** + * Optional. The etag associated with the partition. + * + * Generated from protobuf field string etag = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + * @deprecated + */ + public function setEtag($var) + { + @trigger_error('etag is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteTaskRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteTaskRequest.php new file mode 100644 index 000000000000..d06ee8e31c0b --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteTaskRequest.php @@ -0,0 +1,86 @@ +google.cloud.dataplex.v1.DeleteTaskRequest + */ +class DeleteTaskRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the task: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/task/{task_id}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the task: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/task/{task_id}`. Please see + * {@see DataplexServiceClient::taskName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\DeleteTaskRequest + * + * @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 resource name of the task: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/task/{task_id}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the task: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/task/{task_id}`. + * + * 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 resource name of the task: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/task/{task_id}`. + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteZoneRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteZoneRequest.php new file mode 100644 index 000000000000..6a3a444a74bb --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteZoneRequest.php @@ -0,0 +1,86 @@ +google.cloud.dataplex.v1.DeleteZoneRequest + */ +class DeleteZoneRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the zone: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the zone: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. Please see + * {@see DataplexServiceClient::zoneName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\DeleteZoneRequest + * + * @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 resource name of the zone: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the zone: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. + * + * 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 resource name of the zone: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent.php new file mode 100644 index 000000000000..1a6f25ededa0 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent.php @@ -0,0 +1,445 @@ +google.cloud.dataplex.v1.DiscoveryEvent + */ +class DiscoveryEvent extends \Google\Protobuf\Internal\Message +{ + /** + * The log message. + * + * Generated from protobuf field string message = 1; + */ + protected $message = ''; + /** + * The id of the associated lake. + * + * Generated from protobuf field string lake_id = 2; + */ + protected $lake_id = ''; + /** + * The id of the associated zone. + * + * Generated from protobuf field string zone_id = 3; + */ + protected $zone_id = ''; + /** + * The id of the associated asset. + * + * Generated from protobuf field string asset_id = 4; + */ + protected $asset_id = ''; + /** + * The data location associated with the event. + * + * Generated from protobuf field string data_location = 5; + */ + protected $data_location = ''; + /** + * The id of the associated datascan for standalone discovery. + * + * Generated from protobuf field string datascan_id = 6; + */ + protected $datascan_id = ''; + /** + * The type of the event being logged. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DiscoveryEvent.EventType type = 10; + */ + protected $type = 0; + protected $details; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $message + * The log message. + * @type string $lake_id + * The id of the associated lake. + * @type string $zone_id + * The id of the associated zone. + * @type string $asset_id + * The id of the associated asset. + * @type string $data_location + * The data location associated with the event. + * @type string $datascan_id + * The id of the associated datascan for standalone discovery. + * @type int $type + * The type of the event being logged. + * @type \Google\Cloud\Dataplex\V1\DiscoveryEvent\ConfigDetails $config + * Details about discovery configuration in effect. + * @type \Google\Cloud\Dataplex\V1\DiscoveryEvent\EntityDetails $entity + * Details about the entity associated with the event. + * @type \Google\Cloud\Dataplex\V1\DiscoveryEvent\PartitionDetails $partition + * Details about the partition associated with the event. + * @type \Google\Cloud\Dataplex\V1\DiscoveryEvent\ActionDetails $action + * Details about the action associated with the event. + * @type \Google\Cloud\Dataplex\V1\DiscoveryEvent\TableDetails $table + * Details about the BigQuery table publishing associated with the event. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Logs::initOnce(); + parent::__construct($data); + } + + /** + * The log message. + * + * Generated from protobuf field string message = 1; + * @return string + */ + public function getMessage() + { + return $this->message; + } + + /** + * The log message. + * + * Generated from protobuf field string message = 1; + * @param string $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkString($var, True); + $this->message = $var; + + return $this; + } + + /** + * The id of the associated lake. + * + * Generated from protobuf field string lake_id = 2; + * @return string + */ + public function getLakeId() + { + return $this->lake_id; + } + + /** + * The id of the associated lake. + * + * Generated from protobuf field string lake_id = 2; + * @param string $var + * @return $this + */ + public function setLakeId($var) + { + GPBUtil::checkString($var, True); + $this->lake_id = $var; + + return $this; + } + + /** + * The id of the associated zone. + * + * Generated from protobuf field string zone_id = 3; + * @return string + */ + public function getZoneId() + { + return $this->zone_id; + } + + /** + * The id of the associated zone. + * + * Generated from protobuf field string zone_id = 3; + * @param string $var + * @return $this + */ + public function setZoneId($var) + { + GPBUtil::checkString($var, True); + $this->zone_id = $var; + + return $this; + } + + /** + * The id of the associated asset. + * + * Generated from protobuf field string asset_id = 4; + * @return string + */ + public function getAssetId() + { + return $this->asset_id; + } + + /** + * The id of the associated asset. + * + * Generated from protobuf field string asset_id = 4; + * @param string $var + * @return $this + */ + public function setAssetId($var) + { + GPBUtil::checkString($var, True); + $this->asset_id = $var; + + return $this; + } + + /** + * The data location associated with the event. + * + * Generated from protobuf field string data_location = 5; + * @return string + */ + public function getDataLocation() + { + return $this->data_location; + } + + /** + * The data location associated with the event. + * + * Generated from protobuf field string data_location = 5; + * @param string $var + * @return $this + */ + public function setDataLocation($var) + { + GPBUtil::checkString($var, True); + $this->data_location = $var; + + return $this; + } + + /** + * The id of the associated datascan for standalone discovery. + * + * Generated from protobuf field string datascan_id = 6; + * @return string + */ + public function getDatascanId() + { + return $this->datascan_id; + } + + /** + * The id of the associated datascan for standalone discovery. + * + * Generated from protobuf field string datascan_id = 6; + * @param string $var + * @return $this + */ + public function setDatascanId($var) + { + GPBUtil::checkString($var, True); + $this->datascan_id = $var; + + return $this; + } + + /** + * The type of the event being logged. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DiscoveryEvent.EventType type = 10; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * The type of the event being logged. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DiscoveryEvent.EventType type = 10; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\DiscoveryEvent\EventType::class); + $this->type = $var; + + return $this; + } + + /** + * Details about discovery configuration in effect. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails config = 20; + * @return \Google\Cloud\Dataplex\V1\DiscoveryEvent\ConfigDetails|null + */ + public function getConfig() + { + return $this->readOneof(20); + } + + public function hasConfig() + { + return $this->hasOneof(20); + } + + /** + * Details about discovery configuration in effect. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails config = 20; + * @param \Google\Cloud\Dataplex\V1\DiscoveryEvent\ConfigDetails $var + * @return $this + */ + public function setConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DiscoveryEvent\ConfigDetails::class); + $this->writeOneof(20, $var); + + return $this; + } + + /** + * Details about the entity associated with the event. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails entity = 21; + * @return \Google\Cloud\Dataplex\V1\DiscoveryEvent\EntityDetails|null + */ + public function getEntity() + { + return $this->readOneof(21); + } + + public function hasEntity() + { + return $this->hasOneof(21); + } + + /** + * Details about the entity associated with the event. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails entity = 21; + * @param \Google\Cloud\Dataplex\V1\DiscoveryEvent\EntityDetails $var + * @return $this + */ + public function setEntity($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DiscoveryEvent\EntityDetails::class); + $this->writeOneof(21, $var); + + return $this; + } + + /** + * Details about the partition associated with the event. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails partition = 22; + * @return \Google\Cloud\Dataplex\V1\DiscoveryEvent\PartitionDetails|null + */ + public function getPartition() + { + return $this->readOneof(22); + } + + public function hasPartition() + { + return $this->hasOneof(22); + } + + /** + * Details about the partition associated with the event. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails partition = 22; + * @param \Google\Cloud\Dataplex\V1\DiscoveryEvent\PartitionDetails $var + * @return $this + */ + public function setPartition($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DiscoveryEvent\PartitionDetails::class); + $this->writeOneof(22, $var); + + return $this; + } + + /** + * Details about the action associated with the event. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails action = 23; + * @return \Google\Cloud\Dataplex\V1\DiscoveryEvent\ActionDetails|null + */ + public function getAction() + { + return $this->readOneof(23); + } + + public function hasAction() + { + return $this->hasOneof(23); + } + + /** + * Details about the action associated with the event. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails action = 23; + * @param \Google\Cloud\Dataplex\V1\DiscoveryEvent\ActionDetails $var + * @return $this + */ + public function setAction($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DiscoveryEvent\ActionDetails::class); + $this->writeOneof(23, $var); + + return $this; + } + + /** + * Details about the BigQuery table publishing associated with the event. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DiscoveryEvent.TableDetails table = 24; + * @return \Google\Cloud\Dataplex\V1\DiscoveryEvent\TableDetails|null + */ + public function getTable() + { + return $this->readOneof(24); + } + + public function hasTable() + { + return $this->hasOneof(24); + } + + /** + * Details about the BigQuery table publishing associated with the event. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DiscoveryEvent.TableDetails table = 24; + * @param \Google\Cloud\Dataplex\V1\DiscoveryEvent\TableDetails $var + * @return $this + */ + public function setTable($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DiscoveryEvent\TableDetails::class); + $this->writeOneof(24, $var); + + return $this; + } + + /** + * @return string + */ + public function getDetails() + { + return $this->whichOneof("details"); + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/ActionDetails.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/ActionDetails.php new file mode 100644 index 000000000000..e76f31845228 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/ActionDetails.php @@ -0,0 +1,105 @@ +google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails + */ +class ActionDetails extends \Google\Protobuf\Internal\Message +{ + /** + * The type of action. + * Eg. IncompatibleDataSchema, InvalidDataFormat + * + * Generated from protobuf field string type = 1; + */ + protected $type = ''; + /** + * The human readable issue associated with the action. + * + * Generated from protobuf field string issue = 2; + */ + protected $issue = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $type + * The type of action. + * Eg. IncompatibleDataSchema, InvalidDataFormat + * @type string $issue + * The human readable issue associated with the action. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Logs::initOnce(); + parent::__construct($data); + } + + /** + * The type of action. + * Eg. IncompatibleDataSchema, InvalidDataFormat + * + * Generated from protobuf field string type = 1; + * @return string + */ + public function getType() + { + return $this->type; + } + + /** + * The type of action. + * Eg. IncompatibleDataSchema, InvalidDataFormat + * + * Generated from protobuf field string type = 1; + * @param string $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkString($var, True); + $this->type = $var; + + return $this; + } + + /** + * The human readable issue associated with the action. + * + * Generated from protobuf field string issue = 2; + * @return string + */ + public function getIssue() + { + return $this->issue; + } + + /** + * The human readable issue associated with the action. + * + * Generated from protobuf field string issue = 2; + * @param string $var + * @return $this + */ + public function setIssue($var) + { + GPBUtil::checkString($var, True); + $this->issue = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/ConfigDetails.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/ConfigDetails.php new file mode 100644 index 000000000000..08162707f962 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/ConfigDetails.php @@ -0,0 +1,79 @@ +google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails + */ +class ConfigDetails extends \Google\Protobuf\Internal\Message +{ + /** + * A list of discovery configuration parameters in effect. + * The keys are the field paths within DiscoverySpec. + * Eg. includePatterns, excludePatterns, csvOptions.disableTypeInference, + * etc. + * + * Generated from protobuf field map parameters = 1; + */ + private $parameters; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\MapField $parameters + * A list of discovery configuration parameters in effect. + * The keys are the field paths within DiscoverySpec. + * Eg. includePatterns, excludePatterns, csvOptions.disableTypeInference, + * etc. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Logs::initOnce(); + parent::__construct($data); + } + + /** + * A list of discovery configuration parameters in effect. + * The keys are the field paths within DiscoverySpec. + * Eg. includePatterns, excludePatterns, csvOptions.disableTypeInference, + * etc. + * + * Generated from protobuf field map parameters = 1; + * @return \Google\Protobuf\Internal\MapField + */ + public function getParameters() + { + return $this->parameters; + } + + /** + * A list of discovery configuration parameters in effect. + * The keys are the field paths within DiscoverySpec. + * Eg. includePatterns, excludePatterns, csvOptions.disableTypeInference, + * etc. + * + * Generated from protobuf field map parameters = 1; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setParameters($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->parameters = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/EntityDetails.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/EntityDetails.php new file mode 100644 index 000000000000..d9ef2d1b0b93 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/EntityDetails.php @@ -0,0 +1,105 @@ +google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails + */ +class EntityDetails extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the entity resource. + * The name is the fully-qualified resource name. + * + * Generated from protobuf field string entity = 1; + */ + protected $entity = ''; + /** + * The type of the entity resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DiscoveryEvent.EntityType type = 2; + */ + protected $type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $entity + * The name of the entity resource. + * The name is the fully-qualified resource name. + * @type int $type + * The type of the entity resource. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Logs::initOnce(); + parent::__construct($data); + } + + /** + * The name of the entity resource. + * The name is the fully-qualified resource name. + * + * Generated from protobuf field string entity = 1; + * @return string + */ + public function getEntity() + { + return $this->entity; + } + + /** + * The name of the entity resource. + * The name is the fully-qualified resource name. + * + * Generated from protobuf field string entity = 1; + * @param string $var + * @return $this + */ + public function setEntity($var) + { + GPBUtil::checkString($var, True); + $this->entity = $var; + + return $this; + } + + /** + * The type of the entity resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DiscoveryEvent.EntityType type = 2; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * The type of the entity resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DiscoveryEvent.EntityType type = 2; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\DiscoveryEvent\EntityType::class); + $this->type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/EntityType.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/EntityType.php new file mode 100644 index 000000000000..5e25b56d0361 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/EntityType.php @@ -0,0 +1,61 @@ +google.cloud.dataplex.v1.DiscoveryEvent.EntityType + */ +class EntityType +{ + /** + * An unspecified event type. + * + * Generated from protobuf enum ENTITY_TYPE_UNSPECIFIED = 0; + */ + const ENTITY_TYPE_UNSPECIFIED = 0; + /** + * Entities representing structured data. + * + * Generated from protobuf enum TABLE = 1; + */ + const TABLE = 1; + /** + * Entities representing unstructured data. + * + * Generated from protobuf enum FILESET = 2; + */ + const FILESET = 2; + + private static $valueToName = [ + self::ENTITY_TYPE_UNSPECIFIED => 'ENTITY_TYPE_UNSPECIFIED', + self::TABLE => 'TABLE', + self::FILESET => 'FILESET', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/EventType.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/EventType.php new file mode 100644 index 000000000000..c12eeaed685f --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/EventType.php @@ -0,0 +1,124 @@ +google.cloud.dataplex.v1.DiscoveryEvent.EventType + */ +class EventType +{ + /** + * An unspecified event type. + * + * Generated from protobuf enum EVENT_TYPE_UNSPECIFIED = 0; + */ + const EVENT_TYPE_UNSPECIFIED = 0; + /** + * An event representing discovery configuration in effect. + * + * Generated from protobuf enum CONFIG = 1; + */ + const CONFIG = 1; + /** + * An event representing a metadata entity being created. + * + * Generated from protobuf enum ENTITY_CREATED = 2; + */ + const ENTITY_CREATED = 2; + /** + * An event representing a metadata entity being updated. + * + * Generated from protobuf enum ENTITY_UPDATED = 3; + */ + const ENTITY_UPDATED = 3; + /** + * An event representing a metadata entity being deleted. + * + * Generated from protobuf enum ENTITY_DELETED = 4; + */ + const ENTITY_DELETED = 4; + /** + * An event representing a partition being created. + * + * Generated from protobuf enum PARTITION_CREATED = 5; + */ + const PARTITION_CREATED = 5; + /** + * An event representing a partition being updated. + * + * Generated from protobuf enum PARTITION_UPDATED = 6; + */ + const PARTITION_UPDATED = 6; + /** + * An event representing a partition being deleted. + * + * Generated from protobuf enum PARTITION_DELETED = 7; + */ + const PARTITION_DELETED = 7; + /** + * An event representing a table being published. + * + * Generated from protobuf enum TABLE_PUBLISHED = 10; + */ + const TABLE_PUBLISHED = 10; + /** + * An event representing a table being updated. + * + * Generated from protobuf enum TABLE_UPDATED = 11; + */ + const TABLE_UPDATED = 11; + /** + * An event representing a table being skipped in publishing. + * + * Generated from protobuf enum TABLE_IGNORED = 12; + */ + const TABLE_IGNORED = 12; + /** + * An event representing a table being deleted. + * + * Generated from protobuf enum TABLE_DELETED = 13; + */ + const TABLE_DELETED = 13; + + private static $valueToName = [ + self::EVENT_TYPE_UNSPECIFIED => 'EVENT_TYPE_UNSPECIFIED', + self::CONFIG => 'CONFIG', + self::ENTITY_CREATED => 'ENTITY_CREATED', + self::ENTITY_UPDATED => 'ENTITY_UPDATED', + self::ENTITY_DELETED => 'ENTITY_DELETED', + self::PARTITION_CREATED => 'PARTITION_CREATED', + self::PARTITION_UPDATED => 'PARTITION_UPDATED', + self::PARTITION_DELETED => 'PARTITION_DELETED', + self::TABLE_PUBLISHED => 'TABLE_PUBLISHED', + self::TABLE_UPDATED => 'TABLE_UPDATED', + self::TABLE_IGNORED => 'TABLE_IGNORED', + self::TABLE_DELETED => 'TABLE_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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/PartitionDetails.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/PartitionDetails.php new file mode 100644 index 000000000000..cc178f56d9f1 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/PartitionDetails.php @@ -0,0 +1,181 @@ +google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails + */ +class PartitionDetails extends \Google\Protobuf\Internal\Message +{ + /** + * The name to the partition resource. + * The name is the fully-qualified resource name. + * + * Generated from protobuf field string partition = 1; + */ + protected $partition = ''; + /** + * The name to the containing entity resource. + * The name is the fully-qualified resource name. + * + * Generated from protobuf field string entity = 2; + */ + protected $entity = ''; + /** + * The type of the containing entity resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DiscoveryEvent.EntityType type = 3; + */ + protected $type = 0; + /** + * The locations of the data items (e.g., a Cloud Storage objects) sampled + * for metadata inference. + * + * Generated from protobuf field repeated string sampled_data_locations = 4; + */ + private $sampled_data_locations; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $partition + * The name to the partition resource. + * The name is the fully-qualified resource name. + * @type string $entity + * The name to the containing entity resource. + * The name is the fully-qualified resource name. + * @type int $type + * The type of the containing entity resource. + * @type string[] $sampled_data_locations + * The locations of the data items (e.g., a Cloud Storage objects) sampled + * for metadata inference. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Logs::initOnce(); + parent::__construct($data); + } + + /** + * The name to the partition resource. + * The name is the fully-qualified resource name. + * + * Generated from protobuf field string partition = 1; + * @return string + */ + public function getPartition() + { + return $this->partition; + } + + /** + * The name to the partition resource. + * The name is the fully-qualified resource name. + * + * Generated from protobuf field string partition = 1; + * @param string $var + * @return $this + */ + public function setPartition($var) + { + GPBUtil::checkString($var, True); + $this->partition = $var; + + return $this; + } + + /** + * The name to the containing entity resource. + * The name is the fully-qualified resource name. + * + * Generated from protobuf field string entity = 2; + * @return string + */ + public function getEntity() + { + return $this->entity; + } + + /** + * The name to the containing entity resource. + * The name is the fully-qualified resource name. + * + * Generated from protobuf field string entity = 2; + * @param string $var + * @return $this + */ + public function setEntity($var) + { + GPBUtil::checkString($var, True); + $this->entity = $var; + + return $this; + } + + /** + * The type of the containing entity resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DiscoveryEvent.EntityType type = 3; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * The type of the containing entity resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DiscoveryEvent.EntityType type = 3; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\DiscoveryEvent\EntityType::class); + $this->type = $var; + + return $this; + } + + /** + * The locations of the data items (e.g., a Cloud Storage objects) sampled + * for metadata inference. + * + * Generated from protobuf field repeated string sampled_data_locations = 4; + * @return RepeatedField + */ + public function getSampledDataLocations() + { + return $this->sampled_data_locations; + } + + /** + * The locations of the data items (e.g., a Cloud Storage objects) sampled + * for metadata inference. + * + * Generated from protobuf field repeated string sampled_data_locations = 4; + * @param string[] $var + * @return $this + */ + public function setSampledDataLocations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->sampled_data_locations = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/TableDetails.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/TableDetails.php new file mode 100644 index 000000000000..5373d89ed802 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/TableDetails.php @@ -0,0 +1,101 @@ +google.cloud.dataplex.v1.DiscoveryEvent.TableDetails + */ +class TableDetails extends \Google\Protobuf\Internal\Message +{ + /** + * The fully-qualified resource name of the table resource. + * + * Generated from protobuf field string table = 1; + */ + protected $table = ''; + /** + * The type of the table resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DiscoveryEvent.TableType type = 2; + */ + protected $type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $table + * The fully-qualified resource name of the table resource. + * @type int $type + * The type of the table resource. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Logs::initOnce(); + parent::__construct($data); + } + + /** + * The fully-qualified resource name of the table resource. + * + * Generated from protobuf field string table = 1; + * @return string + */ + public function getTable() + { + return $this->table; + } + + /** + * The fully-qualified resource name of the table resource. + * + * Generated from protobuf field string table = 1; + * @param string $var + * @return $this + */ + public function setTable($var) + { + GPBUtil::checkString($var, True); + $this->table = $var; + + return $this; + } + + /** + * The type of the table resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DiscoveryEvent.TableType type = 2; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * The type of the table resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DiscoveryEvent.TableType type = 2; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\DiscoveryEvent\TableType::class); + $this->type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/TableType.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/TableType.php new file mode 100644 index 000000000000..5c4382d5c357 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/TableType.php @@ -0,0 +1,68 @@ +google.cloud.dataplex.v1.DiscoveryEvent.TableType + */ +class TableType +{ + /** + * An unspecified table type. + * + * Generated from protobuf enum TABLE_TYPE_UNSPECIFIED = 0; + */ + const TABLE_TYPE_UNSPECIFIED = 0; + /** + * External table type. + * + * Generated from protobuf enum EXTERNAL_TABLE = 1; + */ + const EXTERNAL_TABLE = 1; + /** + * BigLake table type. + * + * Generated from protobuf enum BIGLAKE_TABLE = 2; + */ + const BIGLAKE_TABLE = 2; + /** + * Object table type for unstructured data. + * + * Generated from protobuf enum OBJECT_TABLE = 3; + */ + const OBJECT_TABLE = 3; + + private static $valueToName = [ + self::TABLE_TYPE_UNSPECIFIED => 'TABLE_TYPE_UNSPECIFIED', + self::EXTERNAL_TABLE => 'EXTERNAL_TABLE', + self::BIGLAKE_TABLE => 'BIGLAKE_TABLE', + self::OBJECT_TABLE => 'OBJECT_TABLE', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EncryptionConfig.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EncryptionConfig.php new file mode 100644 index 000000000000..1566c937feef --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EncryptionConfig.php @@ -0,0 +1,356 @@ +google.cloud.dataplex.v1.EncryptionConfig + */ +class EncryptionConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the EncryptionConfig. + * Format: + * organizations/{organization}/locations/{location}/encryptionConfigs/{encryption_config} + * Global location is not supported. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. If a key is chosen, it means that the customer is using CMEK. + * If a key is not chosen, it means that the customer is using Google managed + * encryption. + * + * Generated from protobuf field string key = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $key = ''; + /** + * Output only. The time when the Encryption configuration was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The time when the Encryption configuration was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Output only. The state of encryption of the databases. + * + * Generated from protobuf field .google.cloud.dataplex.v1.EncryptionConfig.EncryptionState encryption_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $encryption_state = 0; + /** + * Etag of the EncryptionConfig. This is a strong etag. + * + * Generated from protobuf field string etag = 6; + */ + protected $etag = ''; + /** + * Output only. Details of the failure if anything related to Cmek db fails. + * + * Generated from protobuf field .google.cloud.dataplex.v1.EncryptionConfig.FailureDetails failure_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $failure_details = null; + /** + * Optional. Represent the state of CMEK opt-in for metastore. + * + * Generated from protobuf field bool enable_metastore_encryption = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $enable_metastore_encryption = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the EncryptionConfig. + * Format: + * organizations/{organization}/locations/{location}/encryptionConfigs/{encryption_config} + * Global location is not supported. + * @type string $key + * Optional. If a key is chosen, it means that the customer is using CMEK. + * If a key is not chosen, it means that the customer is using Google managed + * encryption. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time when the Encryption configuration was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time when the Encryption configuration was last updated. + * @type int $encryption_state + * Output only. The state of encryption of the databases. + * @type string $etag + * Etag of the EncryptionConfig. This is a strong etag. + * @type \Google\Cloud\Dataplex\V1\EncryptionConfig\FailureDetails $failure_details + * Output only. Details of the failure if anything related to Cmek db fails. + * @type bool $enable_metastore_encryption + * Optional. Represent the state of CMEK opt-in for metastore. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Cmek::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the EncryptionConfig. + * Format: + * organizations/{organization}/locations/{location}/encryptionConfigs/{encryption_config} + * Global location is not supported. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the EncryptionConfig. + * Format: + * organizations/{organization}/locations/{location}/encryptionConfigs/{encryption_config} + * Global location is not supported. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. If a key is chosen, it means that the customer is using CMEK. + * If a key is not chosen, it means that the customer is using Google managed + * encryption. + * + * Generated from protobuf field string key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getKey() + { + return $this->key; + } + + /** + * Optional. If a key is chosen, it means that the customer is using CMEK. + * If a key is not chosen, it means that the customer is using Google managed + * encryption. + * + * Generated from protobuf field string key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setKey($var) + { + GPBUtil::checkString($var, True); + $this->key = $var; + + return $this; + } + + /** + * Output only. The time when the Encryption configuration was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The time when the Encryption configuration was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. The time when the Encryption configuration was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. The time when the Encryption configuration was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Output only. The state of encryption of the databases. + * + * Generated from protobuf field .google.cloud.dataplex.v1.EncryptionConfig.EncryptionState encryption_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getEncryptionState() + { + return $this->encryption_state; + } + + /** + * Output only. The state of encryption of the databases. + * + * Generated from protobuf field .google.cloud.dataplex.v1.EncryptionConfig.EncryptionState encryption_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setEncryptionState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\EncryptionConfig\EncryptionState::class); + $this->encryption_state = $var; + + return $this; + } + + /** + * Etag of the EncryptionConfig. This is a strong etag. + * + * Generated from protobuf field string etag = 6; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Etag of the EncryptionConfig. This is a strong etag. + * + * Generated from protobuf field string etag = 6; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * Output only. Details of the failure if anything related to Cmek db fails. + * + * Generated from protobuf field .google.cloud.dataplex.v1.EncryptionConfig.FailureDetails failure_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataplex\V1\EncryptionConfig\FailureDetails|null + */ + public function getFailureDetails() + { + return $this->failure_details; + } + + public function hasFailureDetails() + { + return isset($this->failure_details); + } + + public function clearFailureDetails() + { + unset($this->failure_details); + } + + /** + * Output only. Details of the failure if anything related to Cmek db fails. + * + * Generated from protobuf field .google.cloud.dataplex.v1.EncryptionConfig.FailureDetails failure_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\EncryptionConfig\FailureDetails $var + * @return $this + */ + public function setFailureDetails($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\EncryptionConfig\FailureDetails::class); + $this->failure_details = $var; + + return $this; + } + + /** + * Optional. Represent the state of CMEK opt-in for metastore. + * + * Generated from protobuf field bool enable_metastore_encryption = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getEnableMetastoreEncryption() + { + return $this->enable_metastore_encryption; + } + + /** + * Optional. Represent the state of CMEK opt-in for metastore. + * + * Generated from protobuf field bool enable_metastore_encryption = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setEnableMetastoreEncryption($var) + { + GPBUtil::checkBool($var); + $this->enable_metastore_encryption = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EncryptionConfig/EncryptionState.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EncryptionConfig/EncryptionState.php new file mode 100644 index 000000000000..2d99b42e1546 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EncryptionConfig/EncryptionState.php @@ -0,0 +1,73 @@ +google.cloud.dataplex.v1.EncryptionConfig.EncryptionState + */ +class EncryptionState +{ + /** + * State is not specified. + * + * Generated from protobuf enum ENCRYPTION_STATE_UNSPECIFIED = 0; + */ + const ENCRYPTION_STATE_UNSPECIFIED = 0; + /** + * The encryption state of the database when the EncryptionConfig is created + * or updated. If the encryption fails, it is retried indefinitely and the + * state is shown as ENCRYPTING. + * + * Generated from protobuf enum ENCRYPTING = 1; + */ + const ENCRYPTING = 1; + /** + * The encryption of data has completed successfully. + * + * Generated from protobuf enum COMPLETED = 2; + */ + const COMPLETED = 2; + /** + * The encryption of data has failed. + * The state is set to FAILED when the encryption fails due to reasons like + * permission issues, invalid key etc. + * + * Generated from protobuf enum FAILED = 3; + */ + const FAILED = 3; + + private static $valueToName = [ + self::ENCRYPTION_STATE_UNSPECIFIED => 'ENCRYPTION_STATE_UNSPECIFIED', + self::ENCRYPTING => 'ENCRYPTING', + self::COMPLETED => 'COMPLETED', + self::FAILED => 'FAILED', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EncryptionConfig/FailureDetails.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EncryptionConfig/FailureDetails.php new file mode 100644 index 000000000000..09a9987e4d3c --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EncryptionConfig/FailureDetails.php @@ -0,0 +1,105 @@ +google.cloud.dataplex.v1.EncryptionConfig.FailureDetails + */ +class FailureDetails extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The error code for the failure. + * + * Generated from protobuf field .google.cloud.dataplex.v1.EncryptionConfig.FailureDetails.ErrorCode error_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $error_code = 0; + /** + * Output only. The error message will be shown to the user. Set only if the + * error code is REQUIRE_USER_ACTION. + * + * Generated from protobuf field string error_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $error_message = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $error_code + * Output only. The error code for the failure. + * @type string $error_message + * Output only. The error message will be shown to the user. Set only if the + * error code is REQUIRE_USER_ACTION. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Cmek::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The error code for the failure. + * + * Generated from protobuf field .google.cloud.dataplex.v1.EncryptionConfig.FailureDetails.ErrorCode error_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getErrorCode() + { + return $this->error_code; + } + + /** + * Output only. The error code for the failure. + * + * Generated from protobuf field .google.cloud.dataplex.v1.EncryptionConfig.FailureDetails.ErrorCode error_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setErrorCode($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\EncryptionConfig\FailureDetails\ErrorCode::class); + $this->error_code = $var; + + return $this; + } + + /** + * Output only. The error message will be shown to the user. Set only if the + * error code is REQUIRE_USER_ACTION. + * + * Generated from protobuf field string error_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getErrorMessage() + { + return $this->error_message; + } + + /** + * Output only. The error message will be shown to the user. Set only if the + * error code is REQUIRE_USER_ACTION. + * + * Generated from protobuf field string error_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setErrorMessage($var) + { + GPBUtil::checkString($var, True); + $this->error_message = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EncryptionConfig/FailureDetails/ErrorCode.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EncryptionConfig/FailureDetails/ErrorCode.php new file mode 100644 index 000000000000..0b6e138b55ce --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EncryptionConfig/FailureDetails/ErrorCode.php @@ -0,0 +1,61 @@ +google.cloud.dataplex.v1.EncryptionConfig.FailureDetails.ErrorCode + */ +class ErrorCode +{ + /** + * The error code is not specified + * + * Generated from protobuf enum UNKNOWN = 0; + */ + const UNKNOWN = 0; + /** + * Error because of internal server error, will be retried automatically. + * + * Generated from protobuf enum INTERNAL_ERROR = 1; + */ + const INTERNAL_ERROR = 1; + /** + * User action is required to resolve the error. + * + * Generated from protobuf enum REQUIRE_USER_ACTION = 2; + */ + const REQUIRE_USER_ACTION = 2; + + private static $valueToName = [ + self::UNKNOWN => 'UNKNOWN', + self::INTERNAL_ERROR => 'INTERNAL_ERROR', + self::REQUIRE_USER_ACTION => 'REQUIRE_USER_ACTION', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Entity.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Entity.php new file mode 100644 index 000000000000..b0effa886b78 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Entity.php @@ -0,0 +1,785 @@ +google.cloud.dataplex.v1.Entity + */ +class Entity extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The resource name of the entity, of the form: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{id}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. Display name must be shorter than or equal to 256 characters. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $display_name = ''; + /** + * Optional. User friendly longer description text. Must be shorter than or + * equal to 1024 characters. + * + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Output only. The time when the entity was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The time when the entity was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Required. A user-provided entity ID. It is mutable, and will be used as the + * published table name. Specifying a new ID in an update entity + * request will override the existing value. + * The ID must contain only letters (a-z, A-Z), numbers (0-9), and + * underscores, and consist of 256 or fewer characters. + * + * Generated from protobuf field string id = 7 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $id = ''; + /** + * Optional. The etag associated with the entity, which can be retrieved with + * a [GetEntity][] request. Required for update and delete requests. + * + * Generated from protobuf field string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $etag = ''; + /** + * Required. Immutable. The type of entity. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Entity.Type type = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + */ + protected $type = 0; + /** + * Required. Immutable. The ID of the asset associated with the storage + * location containing the entity data. The entity must be with in the same + * zone with the asset. + * + * Generated from protobuf field string asset = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + */ + protected $asset = ''; + /** + * Required. Immutable. The storage path of the entity data. + * For Cloud Storage data, this is the fully-qualified path to the entity, + * such as `gs://bucket/path/to/data`. For BigQuery data, this is the name of + * the table resource, such as + * `projects/project_id/datasets/dataset_id/tables/table_id`. + * + * Generated from protobuf field string data_path = 12 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + */ + protected $data_path = ''; + /** + * Optional. The set of items within the data path constituting the data in + * the entity, represented as a glob path. Example: + * `gs://bucket/path/to/data/*{@*}*.csv`. + * + * Generated from protobuf field string data_path_pattern = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $data_path_pattern = ''; + /** + * Output only. The name of the associated Data Catalog entry. + * + * Generated from protobuf field string catalog_entry = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $catalog_entry = ''; + /** + * Required. Immutable. Identifies the storage system of the entity data. + * + * Generated from protobuf field .google.cloud.dataplex.v1.StorageSystem system = 15 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + */ + protected $system = 0; + /** + * Required. Identifies the storage format of the entity data. + * It does not apply to entities with data stored in BigQuery. + * + * Generated from protobuf field .google.cloud.dataplex.v1.StorageFormat format = 16 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $format = null; + /** + * Output only. Metadata stores that the entity is compatible with. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Entity.CompatibilityStatus compatibility = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $compatibility = null; + /** + * Output only. Identifies the access mechanism to the entity. Not user + * settable. + * + * Generated from protobuf field .google.cloud.dataplex.v1.StorageAccess access = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $access = null; + /** + * Output only. System generated unique ID for the Entity. This ID will be + * different if the Entity is deleted and re-created with the same name. + * + * Generated from protobuf field string uid = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $uid = ''; + /** + * Required. The description of the data structure and layout. + * The schema is not included in list responses. It is only included in + * `SCHEMA` and `FULL` entity views of a `GetEntity` response. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Schema schema = 50 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $schema = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. The resource name of the entity, of the form: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{id}`. + * @type string $display_name + * Optional. Display name must be shorter than or equal to 256 characters. + * @type string $description + * Optional. User friendly longer description text. Must be shorter than or + * equal to 1024 characters. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time when the entity was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time when the entity was last updated. + * @type string $id + * Required. A user-provided entity ID. It is mutable, and will be used as the + * published table name. Specifying a new ID in an update entity + * request will override the existing value. + * The ID must contain only letters (a-z, A-Z), numbers (0-9), and + * underscores, and consist of 256 or fewer characters. + * @type string $etag + * Optional. The etag associated with the entity, which can be retrieved with + * a [GetEntity][] request. Required for update and delete requests. + * @type int $type + * Required. Immutable. The type of entity. + * @type string $asset + * Required. Immutable. The ID of the asset associated with the storage + * location containing the entity data. The entity must be with in the same + * zone with the asset. + * @type string $data_path + * Required. Immutable. The storage path of the entity data. + * For Cloud Storage data, this is the fully-qualified path to the entity, + * such as `gs://bucket/path/to/data`. For BigQuery data, this is the name of + * the table resource, such as + * `projects/project_id/datasets/dataset_id/tables/table_id`. + * @type string $data_path_pattern + * Optional. The set of items within the data path constituting the data in + * the entity, represented as a glob path. Example: + * `gs://bucket/path/to/data/*{@*}*.csv`. + * @type string $catalog_entry + * Output only. The name of the associated Data Catalog entry. + * @type int $system + * Required. Immutable. Identifies the storage system of the entity data. + * @type \Google\Cloud\Dataplex\V1\StorageFormat $format + * Required. Identifies the storage format of the entity data. + * It does not apply to entities with data stored in BigQuery. + * @type \Google\Cloud\Dataplex\V1\Entity\CompatibilityStatus $compatibility + * Output only. Metadata stores that the entity is compatible with. + * @type \Google\Cloud\Dataplex\V1\StorageAccess $access + * Output only. Identifies the access mechanism to the entity. Not user + * settable. + * @type string $uid + * Output only. System generated unique ID for the Entity. This ID will be + * different if the Entity is deleted and re-created with the same name. + * @type \Google\Cloud\Dataplex\V1\Schema $schema + * Required. The description of the data structure and layout. + * The schema is not included in list responses. It is only included in + * `SCHEMA` and `FULL` entity views of a `GetEntity` response. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Metadata::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The resource name of the entity, of the form: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{id}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. The resource name of the entity, of the form: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{id}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. Display name must be shorter than or equal to 256 characters. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Optional. Display name must be shorter than or equal to 256 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. User friendly longer description text. Must be shorter than or + * equal to 1024 characters. + * + * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. User friendly longer description text. Must be shorter than or + * equal to 1024 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; + } + + /** + * Output only. The time when the entity was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.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 entity was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.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 entity was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.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 entity was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.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; + } + + /** + * Required. A user-provided entity ID. It is mutable, and will be used as the + * published table name. Specifying a new ID in an update entity + * request will override the existing value. + * The ID must contain only letters (a-z, A-Z), numbers (0-9), and + * underscores, and consist of 256 or fewer characters. + * + * Generated from protobuf field string id = 7 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getId() + { + return $this->id; + } + + /** + * Required. A user-provided entity ID. It is mutable, and will be used as the + * published table name. Specifying a new ID in an update entity + * request will override the existing value. + * The ID must contain only letters (a-z, A-Z), numbers (0-9), and + * underscores, and consist of 256 or fewer characters. + * + * Generated from protobuf field string id = 7 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setId($var) + { + GPBUtil::checkString($var, True); + $this->id = $var; + + return $this; + } + + /** + * Optional. The etag associated with the entity, which can be retrieved with + * a [GetEntity][] request. Required for update and delete requests. + * + * Generated from protobuf field string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Optional. The etag associated with the entity, which can be retrieved with + * a [GetEntity][] request. Required for update and delete requests. + * + * Generated from protobuf field string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * Required. Immutable. The type of entity. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Entity.Type type = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Required. Immutable. The type of entity. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Entity.Type type = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\Entity\Type::class); + $this->type = $var; + + return $this; + } + + /** + * Required. Immutable. The ID of the asset associated with the storage + * location containing the entity data. The entity must be with in the same + * zone with the asset. + * + * Generated from protobuf field string asset = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getAsset() + { + return $this->asset; + } + + /** + * Required. Immutable. The ID of the asset associated with the storage + * location containing the entity data. The entity must be with in the same + * zone with the asset. + * + * Generated from protobuf field string asset = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setAsset($var) + { + GPBUtil::checkString($var, True); + $this->asset = $var; + + return $this; + } + + /** + * Required. Immutable. The storage path of the entity data. + * For Cloud Storage data, this is the fully-qualified path to the entity, + * such as `gs://bucket/path/to/data`. For BigQuery data, this is the name of + * the table resource, such as + * `projects/project_id/datasets/dataset_id/tables/table_id`. + * + * Generated from protobuf field string data_path = 12 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getDataPath() + { + return $this->data_path; + } + + /** + * Required. Immutable. The storage path of the entity data. + * For Cloud Storage data, this is the fully-qualified path to the entity, + * such as `gs://bucket/path/to/data`. For BigQuery data, this is the name of + * the table resource, such as + * `projects/project_id/datasets/dataset_id/tables/table_id`. + * + * Generated from protobuf field string data_path = 12 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setDataPath($var) + { + GPBUtil::checkString($var, True); + $this->data_path = $var; + + return $this; + } + + /** + * Optional. The set of items within the data path constituting the data in + * the entity, represented as a glob path. Example: + * `gs://bucket/path/to/data/*{@*}*.csv`. + * + * Generated from protobuf field string data_path_pattern = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDataPathPattern() + { + return $this->data_path_pattern; + } + + /** + * Optional. The set of items within the data path constituting the data in + * the entity, represented as a glob path. Example: + * `gs://bucket/path/to/data/*{@*}*.csv`. + * + * Generated from protobuf field string data_path_pattern = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDataPathPattern($var) + { + GPBUtil::checkString($var, True); + $this->data_path_pattern = $var; + + return $this; + } + + /** + * Output only. The name of the associated Data Catalog entry. + * + * Generated from protobuf field string catalog_entry = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getCatalogEntry() + { + return $this->catalog_entry; + } + + /** + * Output only. The name of the associated Data Catalog entry. + * + * Generated from protobuf field string catalog_entry = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setCatalogEntry($var) + { + GPBUtil::checkString($var, True); + $this->catalog_entry = $var; + + return $this; + } + + /** + * Required. Immutable. Identifies the storage system of the entity data. + * + * Generated from protobuf field .google.cloud.dataplex.v1.StorageSystem system = 15 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @return int + */ + public function getSystem() + { + return $this->system; + } + + /** + * Required. Immutable. Identifies the storage system of the entity data. + * + * Generated from protobuf field .google.cloud.dataplex.v1.StorageSystem system = 15 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @param int $var + * @return $this + */ + public function setSystem($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\StorageSystem::class); + $this->system = $var; + + return $this; + } + + /** + * Required. Identifies the storage format of the entity data. + * It does not apply to entities with data stored in BigQuery. + * + * Generated from protobuf field .google.cloud.dataplex.v1.StorageFormat format = 16 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\StorageFormat|null + */ + public function getFormat() + { + return $this->format; + } + + public function hasFormat() + { + return isset($this->format); + } + + public function clearFormat() + { + unset($this->format); + } + + /** + * Required. Identifies the storage format of the entity data. + * It does not apply to entities with data stored in BigQuery. + * + * Generated from protobuf field .google.cloud.dataplex.v1.StorageFormat format = 16 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\StorageFormat $var + * @return $this + */ + public function setFormat($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\StorageFormat::class); + $this->format = $var; + + return $this; + } + + /** + * Output only. Metadata stores that the entity is compatible with. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Entity.CompatibilityStatus compatibility = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataplex\V1\Entity\CompatibilityStatus|null + */ + public function getCompatibility() + { + return $this->compatibility; + } + + public function hasCompatibility() + { + return isset($this->compatibility); + } + + public function clearCompatibility() + { + unset($this->compatibility); + } + + /** + * Output only. Metadata stores that the entity is compatible with. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Entity.CompatibilityStatus compatibility = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\Entity\CompatibilityStatus $var + * @return $this + */ + public function setCompatibility($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Entity\CompatibilityStatus::class); + $this->compatibility = $var; + + return $this; + } + + /** + * Output only. Identifies the access mechanism to the entity. Not user + * settable. + * + * Generated from protobuf field .google.cloud.dataplex.v1.StorageAccess access = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataplex\V1\StorageAccess|null + */ + public function getAccess() + { + return $this->access; + } + + public function hasAccess() + { + return isset($this->access); + } + + public function clearAccess() + { + unset($this->access); + } + + /** + * Output only. Identifies the access mechanism to the entity. Not user + * settable. + * + * Generated from protobuf field .google.cloud.dataplex.v1.StorageAccess access = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\StorageAccess $var + * @return $this + */ + public function setAccess($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\StorageAccess::class); + $this->access = $var; + + return $this; + } + + /** + * Output only. System generated unique ID for the Entity. This ID will be + * different if the Entity is deleted and re-created with the same name. + * + * Generated from protobuf field string uid = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getUid() + { + return $this->uid; + } + + /** + * Output only. System generated unique ID for the Entity. This ID will be + * different if the Entity is deleted and re-created with the same name. + * + * Generated from protobuf field string uid = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setUid($var) + { + GPBUtil::checkString($var, True); + $this->uid = $var; + + return $this; + } + + /** + * Required. The description of the data structure and layout. + * The schema is not included in list responses. It is only included in + * `SCHEMA` and `FULL` entity views of a `GetEntity` response. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Schema schema = 50 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\Schema|null + */ + public function getSchema() + { + return $this->schema; + } + + public function hasSchema() + { + return isset($this->schema); + } + + public function clearSchema() + { + unset($this->schema); + } + + /** + * Required. The description of the data structure and layout. + * The schema is not included in list responses. It is only included in + * `SCHEMA` and `FULL` entity views of a `GetEntity` response. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Schema schema = 50 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\Schema $var + * @return $this + */ + public function setSchema($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Schema::class); + $this->schema = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Entity/CompatibilityStatus.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Entity/CompatibilityStatus.php new file mode 100644 index 000000000000..f8c4097333a6 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Entity/CompatibilityStatus.php @@ -0,0 +1,121 @@ +google.cloud.dataplex.v1.Entity.CompatibilityStatus + */ +class CompatibilityStatus extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Whether this entity is compatible with Hive Metastore. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility hive_metastore = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $hive_metastore = null; + /** + * Output only. Whether this entity is compatible with BigQuery. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility bigquery = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $bigquery = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\Entity\CompatibilityStatus\Compatibility $hive_metastore + * Output only. Whether this entity is compatible with Hive Metastore. + * @type \Google\Cloud\Dataplex\V1\Entity\CompatibilityStatus\Compatibility $bigquery + * Output only. Whether this entity is compatible with BigQuery. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Metadata::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Whether this entity is compatible with Hive Metastore. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility hive_metastore = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataplex\V1\Entity\CompatibilityStatus\Compatibility|null + */ + public function getHiveMetastore() + { + return $this->hive_metastore; + } + + public function hasHiveMetastore() + { + return isset($this->hive_metastore); + } + + public function clearHiveMetastore() + { + unset($this->hive_metastore); + } + + /** + * Output only. Whether this entity is compatible with Hive Metastore. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility hive_metastore = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\Entity\CompatibilityStatus\Compatibility $var + * @return $this + */ + public function setHiveMetastore($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Entity\CompatibilityStatus\Compatibility::class); + $this->hive_metastore = $var; + + return $this; + } + + /** + * Output only. Whether this entity is compatible with BigQuery. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility bigquery = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataplex\V1\Entity\CompatibilityStatus\Compatibility|null + */ + public function getBigquery() + { + return $this->bigquery; + } + + public function hasBigquery() + { + return isset($this->bigquery); + } + + public function clearBigquery() + { + unset($this->bigquery); + } + + /** + * Output only. Whether this entity is compatible with BigQuery. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility bigquery = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\Entity\CompatibilityStatus\Compatibility $var + * @return $this + */ + public function setBigquery($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Entity\CompatibilityStatus\Compatibility::class); + $this->bigquery = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Entity/CompatibilityStatus/Compatibility.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Entity/CompatibilityStatus/Compatibility.php new file mode 100644 index 000000000000..33ac94ba7571 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Entity/CompatibilityStatus/Compatibility.php @@ -0,0 +1,109 @@ +google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility + */ +class Compatibility extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Whether the entity is compatible and can be represented in + * the metadata store. + * + * Generated from protobuf field bool compatible = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $compatible = false; + /** + * Output only. Provides additional detail if the entity is incompatible + * with the metadata store. + * + * Generated from protobuf field string reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $reason = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $compatible + * Output only. Whether the entity is compatible and can be represented in + * the metadata store. + * @type string $reason + * Output only. Provides additional detail if the entity is incompatible + * with the metadata store. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Metadata::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Whether the entity is compatible and can be represented in + * the metadata store. + * + * Generated from protobuf field bool compatible = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getCompatible() + { + return $this->compatible; + } + + /** + * Output only. Whether the entity is compatible and can be represented in + * the metadata store. + * + * Generated from protobuf field bool compatible = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setCompatible($var) + { + GPBUtil::checkBool($var); + $this->compatible = $var; + + return $this; + } + + /** + * Output only. Provides additional detail if the entity is incompatible + * with the metadata store. + * + * Generated from protobuf field string reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getReason() + { + return $this->reason; + } + + /** + * Output only. Provides additional detail if the entity is incompatible + * with the metadata store. + * + * Generated from protobuf field string reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setReason($var) + { + GPBUtil::checkString($var, True); + $this->reason = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Entity/Type.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Entity/Type.php new file mode 100644 index 000000000000..f361551e7a22 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Entity/Type.php @@ -0,0 +1,61 @@ +google.cloud.dataplex.v1.Entity.Type + */ +class Type +{ + /** + * Type unspecified. + * + * Generated from protobuf enum TYPE_UNSPECIFIED = 0; + */ + const TYPE_UNSPECIFIED = 0; + /** + * Structured and semi-structured data. + * + * Generated from protobuf enum TABLE = 1; + */ + const TABLE = 1; + /** + * Unstructured data. + * + * Generated from protobuf enum FILESET = 2; + */ + const FILESET = 2; + + private static $valueToName = [ + self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', + self::TABLE => 'TABLE', + self::FILESET => 'FILESET', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Entry.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Entry.php new file mode 100644 index 000000000000..cf1d224ecd1f --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Entry.php @@ -0,0 +1,400 @@ +google.cloud.dataplex.v1.Entry + */ +class Entry extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The relative resource name of the entry, in the format + * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Required. Immutable. The relative resource name of the entry type that was + * used to create this entry, in the format + * `projects/{project_id_or_number}/locations/{location_id}/entryTypes/{entry_type_id}`. + * + * Generated from protobuf field string entry_type = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + */ + protected $entry_type = ''; + /** + * Output only. The time when the entry was created in Dataplex Universal + * Catalog. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The time when the entry was last updated in Dataplex Universal + * Catalog. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Optional. The aspects that are attached to the entry. Depending on how the + * aspect is attached to the entry, the format of the aspect key can be one of + * the following: + * * If the aspect is attached directly to the entry: + * `{project_id_or_number}.{location_id}.{aspect_type_id}` + * * If the aspect is attached to an entry's path: + * `{project_id_or_number}.{location_id}.{aspect_type_id}\@{path}` + * + * Generated from protobuf field map aspects = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $aspects; + /** + * Optional. Immutable. The resource name of the parent entry, in the format + * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}`. + * + * Generated from protobuf field string parent_entry = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + */ + protected $parent_entry = ''; + /** + * Optional. A name for the entry that can be referenced by an external + * system. For more information, see [Fully qualified + * names](https://cloud.google.com/data-catalog/docs/fully-qualified-names). + * The maximum size of the field is 4000 characters. + * + * Generated from protobuf field string fully_qualified_name = 12 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $fully_qualified_name = ''; + /** + * Optional. Information related to the source system of the data resource + * that is represented by the entry. + * + * Generated from protobuf field .google.cloud.dataplex.v1.EntrySource entry_source = 15 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $entry_source = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The relative resource name of the entry, in the format + * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}`. + * @type string $entry_type + * Required. Immutable. The relative resource name of the entry type that was + * used to create this entry, in the format + * `projects/{project_id_or_number}/locations/{location_id}/entryTypes/{entry_type_id}`. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time when the entry was created in Dataplex Universal + * Catalog. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time when the entry was last updated in Dataplex Universal + * Catalog. + * @type array|\Google\Protobuf\Internal\MapField $aspects + * Optional. The aspects that are attached to the entry. Depending on how the + * aspect is attached to the entry, the format of the aspect key can be one of + * the following: + * * If the aspect is attached directly to the entry: + * `{project_id_or_number}.{location_id}.{aspect_type_id}` + * * If the aspect is attached to an entry's path: + * `{project_id_or_number}.{location_id}.{aspect_type_id}\@{path}` + * @type string $parent_entry + * Optional. Immutable. The resource name of the parent entry, in the format + * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}`. + * @type string $fully_qualified_name + * Optional. A name for the entry that can be referenced by an external + * system. For more information, see [Fully qualified + * names](https://cloud.google.com/data-catalog/docs/fully-qualified-names). + * The maximum size of the field is 4000 characters. + * @type \Google\Cloud\Dataplex\V1\EntrySource $entry_source + * Optional. Information related to the source system of the data resource + * that is represented by the entry. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The relative resource name of the entry, in the format + * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The relative resource name of the entry, in the format + * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}`. + * + * 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. Immutable. The relative resource name of the entry type that was + * used to create this entry, in the format + * `projects/{project_id_or_number}/locations/{location_id}/entryTypes/{entry_type_id}`. + * + * Generated from protobuf field string entry_type = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getEntryType() + { + return $this->entry_type; + } + + /** + * Required. Immutable. The relative resource name of the entry type that was + * used to create this entry, in the format + * `projects/{project_id_or_number}/locations/{location_id}/entryTypes/{entry_type_id}`. + * + * Generated from protobuf field string entry_type = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setEntryType($var) + { + GPBUtil::checkString($var, True); + $this->entry_type = $var; + + return $this; + } + + /** + * Output only. The time when the entry was created in Dataplex Universal + * Catalog. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.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 entry was created in Dataplex Universal + * Catalog. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.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 entry was last updated in Dataplex Universal + * Catalog. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.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 entry was last updated in Dataplex Universal + * Catalog. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.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 aspects that are attached to the entry. Depending on how the + * aspect is attached to the entry, the format of the aspect key can be one of + * the following: + * * If the aspect is attached directly to the entry: + * `{project_id_or_number}.{location_id}.{aspect_type_id}` + * * If the aspect is attached to an entry's path: + * `{project_id_or_number}.{location_id}.{aspect_type_id}\@{path}` + * + * Generated from protobuf field map aspects = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getAspects() + { + return $this->aspects; + } + + /** + * Optional. The aspects that are attached to the entry. Depending on how the + * aspect is attached to the entry, the format of the aspect key can be one of + * the following: + * * If the aspect is attached directly to the entry: + * `{project_id_or_number}.{location_id}.{aspect_type_id}` + * * If the aspect is attached to an entry's path: + * `{project_id_or_number}.{location_id}.{aspect_type_id}\@{path}` + * + * Generated from protobuf field map aspects = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setAspects($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\Aspect::class); + $this->aspects = $arr; + + return $this; + } + + /** + * Optional. Immutable. The resource name of the parent entry, in the format + * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}`. + * + * Generated from protobuf field string parent_entry = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getParentEntry() + { + return $this->parent_entry; + } + + /** + * Optional. Immutable. The resource name of the parent entry, in the format + * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}`. + * + * Generated from protobuf field string parent_entry = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setParentEntry($var) + { + GPBUtil::checkString($var, True); + $this->parent_entry = $var; + + return $this; + } + + /** + * Optional. A name for the entry that can be referenced by an external + * system. For more information, see [Fully qualified + * names](https://cloud.google.com/data-catalog/docs/fully-qualified-names). + * The maximum size of the field is 4000 characters. + * + * Generated from protobuf field string fully_qualified_name = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFullyQualifiedName() + { + return $this->fully_qualified_name; + } + + /** + * Optional. A name for the entry that can be referenced by an external + * system. For more information, see [Fully qualified + * names](https://cloud.google.com/data-catalog/docs/fully-qualified-names). + * The maximum size of the field is 4000 characters. + * + * Generated from protobuf field string fully_qualified_name = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFullyQualifiedName($var) + { + GPBUtil::checkString($var, True); + $this->fully_qualified_name = $var; + + return $this; + } + + /** + * Optional. Information related to the source system of the data resource + * that is represented by the entry. + * + * Generated from protobuf field .google.cloud.dataplex.v1.EntrySource entry_source = 15 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataplex\V1\EntrySource|null + */ + public function getEntrySource() + { + return $this->entry_source; + } + + public function hasEntrySource() + { + return isset($this->entry_source); + } + + public function clearEntrySource() + { + unset($this->entry_source); + } + + /** + * Optional. Information related to the source system of the data resource + * that is represented by the entry. + * + * Generated from protobuf field .google.cloud.dataplex.v1.EntrySource entry_source = 15 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataplex\V1\EntrySource $var + * @return $this + */ + public function setEntrySource($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\EntrySource::class); + $this->entry_source = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryGroup.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryGroup.php new file mode 100644 index 000000000000..2e3fad9f1e00 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryGroup.php @@ -0,0 +1,383 @@ +google.cloud.dataplex.v1.EntryGroup + */ +class EntryGroup extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The relative resource name of the EntryGroup, in the format + * projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Output only. System generated globally unique ID for the EntryGroup. If you + * delete and recreate the EntryGroup with the same name, this ID will be + * different. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $uid = ''; + /** + * Output only. The time when the EntryGroup was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The time when the EntryGroup was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Optional. Description of the EntryGroup. + * + * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Optional. User friendly display name. + * + * Generated from protobuf field string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $display_name = ''; + /** + * Optional. User-defined labels for the EntryGroup. + * + * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $labels; + /** + * This checksum is computed by the service, and might be sent on update and + * delete requests to ensure the client has an up-to-date value before + * proceeding. + * + * Generated from protobuf field string etag = 8; + */ + protected $etag = ''; + /** + * Output only. Denotes the transfer status of the Entry Group. It is + * unspecified for Entry Group created from Dataplex API. + * + * Generated from protobuf field .google.cloud.dataplex.v1.TransferStatus transfer_status = 202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $transfer_status = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. The relative resource name of the EntryGroup, in the format + * projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}. + * @type string $uid + * Output only. System generated globally unique ID for the EntryGroup. If you + * delete and recreate the EntryGroup with the same name, this ID will be + * different. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time when the EntryGroup was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time when the EntryGroup was last updated. + * @type string $description + * Optional. Description of the EntryGroup. + * @type string $display_name + * Optional. User friendly display name. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Optional. User-defined labels for the EntryGroup. + * @type string $etag + * This checksum is computed by the service, and might be sent on update and + * delete requests to ensure the client has an up-to-date value before + * proceeding. + * @type int $transfer_status + * Output only. Denotes the transfer status of the Entry Group. It is + * unspecified for Entry Group created from Dataplex API. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The relative resource name of the EntryGroup, in the format + * projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. The relative resource name of the EntryGroup, in the format + * projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. System generated globally unique ID for the EntryGroup. If you + * delete and recreate the EntryGroup with the same name, this ID will be + * different. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getUid() + { + return $this->uid; + } + + /** + * Output only. System generated globally unique ID for the EntryGroup. If you + * delete and recreate the EntryGroup with the same name, this ID will be + * different. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setUid($var) + { + GPBUtil::checkString($var, True); + $this->uid = $var; + + return $this; + } + + /** + * Output only. The time when the EntryGroup was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The time when the EntryGroup was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. The time when the EntryGroup was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. The time when the EntryGroup was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Optional. Description of the EntryGroup. + * + * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. Description of the EntryGroup. + * + * 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; + } + + /** + * Optional. User friendly display name. + * + * Generated from protobuf field string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Optional. User friendly display name. + * + * Generated from protobuf field string display_name = 6 [(.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. User-defined labels for the EntryGroup. + * + * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Optional. User-defined labels for the EntryGroup. + * + * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * This checksum is computed by the service, and might be sent on update and + * delete requests to ensure the client has an up-to-date value before + * proceeding. + * + * Generated from protobuf field string etag = 8; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * This checksum is computed by the service, and might be sent on update and + * delete requests to ensure the client has an up-to-date value before + * proceeding. + * + * Generated from protobuf field string etag = 8; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * Output only. Denotes the transfer status of the Entry Group. It is + * unspecified for Entry Group created from Dataplex API. + * + * Generated from protobuf field .google.cloud.dataplex.v1.TransferStatus transfer_status = 202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getTransferStatus() + { + return $this->transfer_status; + } + + /** + * Output only. Denotes the transfer status of the Entry Group. It is + * unspecified for Entry Group created from Dataplex API. + * + * Generated from protobuf field .google.cloud.dataplex.v1.TransferStatus transfer_status = 202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setTransferStatus($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\TransferStatus::class); + $this->transfer_status = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryLink.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryLink.php new file mode 100644 index 000000000000..0baba86f32a1 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryLink.php @@ -0,0 +1,309 @@ +google.cloud.dataplex.v1.EntryLink + */ +class EntryLink extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Immutable. Identifier. The relative resource name of the Entry + * Link, of the form: + * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entryLinks/{entry_link_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Required. Immutable. Relative resource name of the Entry Link Type used to + * create this Entry Link. For example: + * - Entry link between synonym terms in a glossary: + * `projects/dataplex-types/locations/global/entryLinkTypes/synonym` + * - Entry link between related terms in a glossary: + * `projects/dataplex-types/locations/global/entryLinkTypes/related` + * - Entry link between glossary terms and data assets: + * `projects/dataplex-types/locations/global/entryLinkTypes/definition` + * + * Generated from protobuf field string entry_link_type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + */ + protected $entry_link_type = ''; + /** + * Output only. The time when the Entry Link was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The time when the Entry Link was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Optional. The aspects that are attached to the entry link. + * The format of the aspect key has to be the following: + * `{project_id_or_number}.{location_id}.{aspect_type_id}` + * Currently, only a single aspect of a Dataplex-owned Aspect Type is allowed. + * + * Generated from protobuf field map aspects = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $aspects; + /** + * Required. Immutable. Specifies the Entries referenced in the Entry Link. + * There should be exactly two entry references. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.EntryLink.EntryReference entry_references = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + */ + private $entry_references; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Immutable. Identifier. The relative resource name of the Entry + * Link, of the form: + * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entryLinks/{entry_link_id}` + * @type string $entry_link_type + * Required. Immutable. Relative resource name of the Entry Link Type used to + * create this Entry Link. For example: + * - Entry link between synonym terms in a glossary: + * `projects/dataplex-types/locations/global/entryLinkTypes/synonym` + * - Entry link between related terms in a glossary: + * `projects/dataplex-types/locations/global/entryLinkTypes/related` + * - Entry link between glossary terms and data assets: + * `projects/dataplex-types/locations/global/entryLinkTypes/definition` + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time when the Entry Link was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time when the Entry Link was last updated. + * @type array|\Google\Protobuf\Internal\MapField $aspects + * Optional. The aspects that are attached to the entry link. + * The format of the aspect key has to be the following: + * `{project_id_or_number}.{location_id}.{aspect_type_id}` + * Currently, only a single aspect of a Dataplex-owned Aspect Type is allowed. + * @type \Google\Cloud\Dataplex\V1\EntryLink\EntryReference[] $entry_references + * Required. Immutable. Specifies the Entries referenced in the Entry Link. + * There should be exactly two entry references. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Immutable. Identifier. The relative resource name of the Entry + * Link, of the form: + * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entryLinks/{entry_link_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Immutable. Identifier. The relative resource name of the Entry + * Link, of the form: + * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entryLinks/{entry_link_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. Immutable. Relative resource name of the Entry Link Type used to + * create this Entry Link. For example: + * - Entry link between synonym terms in a glossary: + * `projects/dataplex-types/locations/global/entryLinkTypes/synonym` + * - Entry link between related terms in a glossary: + * `projects/dataplex-types/locations/global/entryLinkTypes/related` + * - Entry link between glossary terms and data assets: + * `projects/dataplex-types/locations/global/entryLinkTypes/definition` + * + * Generated from protobuf field string entry_link_type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getEntryLinkType() + { + return $this->entry_link_type; + } + + /** + * Required. Immutable. Relative resource name of the Entry Link Type used to + * create this Entry Link. For example: + * - Entry link between synonym terms in a glossary: + * `projects/dataplex-types/locations/global/entryLinkTypes/synonym` + * - Entry link between related terms in a glossary: + * `projects/dataplex-types/locations/global/entryLinkTypes/related` + * - Entry link between glossary terms and data assets: + * `projects/dataplex-types/locations/global/entryLinkTypes/definition` + * + * Generated from protobuf field string entry_link_type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setEntryLinkType($var) + { + GPBUtil::checkString($var, True); + $this->entry_link_type = $var; + + return $this; + } + + /** + * Output only. The time when the Entry Link was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The time when the Entry Link was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. The time when the Entry Link was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. The time when the Entry Link was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Optional. The aspects that are attached to the entry link. + * The format of the aspect key has to be the following: + * `{project_id_or_number}.{location_id}.{aspect_type_id}` + * Currently, only a single aspect of a Dataplex-owned Aspect Type is allowed. + * + * Generated from protobuf field map aspects = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getAspects() + { + return $this->aspects; + } + + /** + * Optional. The aspects that are attached to the entry link. + * The format of the aspect key has to be the following: + * `{project_id_or_number}.{location_id}.{aspect_type_id}` + * Currently, only a single aspect of a Dataplex-owned Aspect Type is allowed. + * + * Generated from protobuf field map aspects = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setAspects($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\Aspect::class); + $this->aspects = $arr; + + return $this; + } + + /** + * Required. Immutable. Specifies the Entries referenced in the Entry Link. + * There should be exactly two entry references. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.EntryLink.EntryReference entry_references = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @return RepeatedField<\Google\Cloud\Dataplex\V1\EntryLink\EntryReference> + */ + public function getEntryReferences() + { + return $this->entry_references; + } + + /** + * Required. Immutable. Specifies the Entries referenced in the Entry Link. + * There should be exactly two entry references. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.EntryLink.EntryReference entry_references = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @param \Google\Cloud\Dataplex\V1\EntryLink\EntryReference[] $var + * @return $this + */ + public function setEntryReferences($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\EntryLink\EntryReference::class); + $this->entry_references = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryLink/EntryReference.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryLink/EntryReference.php new file mode 100644 index 000000000000..adf2e3adbb4f --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryLink/EntryReference.php @@ -0,0 +1,151 @@ +google.cloud.dataplex.v1.EntryLink.EntryReference + */ +class EntryReference extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Immutable. The relative resource name of the referenced Entry, + * of the form: + * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + */ + protected $name = ''; + /** + * Immutable. The path in the Entry that is referenced in the Entry Link. + * Empty path denotes that the Entry itself is referenced in the Entry + * Link. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $path = ''; + /** + * Required. Immutable. The reference type of the Entry. + * + * Generated from protobuf field .google.cloud.dataplex.v1.EntryLink.EntryReference.Type type = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + */ + protected $type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Immutable. The relative resource name of the referenced Entry, + * of the form: + * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}` + * @type string $path + * Immutable. The path in the Entry that is referenced in the Entry Link. + * Empty path denotes that the Entry itself is referenced in the Entry + * Link. + * @type int $type + * Required. Immutable. The reference type of the Entry. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. Immutable. The relative resource name of the referenced Entry, + * of the form: + * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Immutable. The relative resource name of the referenced Entry, + * of the form: + * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Immutable. The path in the Entry that is referenced in the Entry Link. + * Empty path denotes that the Entry itself is referenced in the Entry + * Link. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getPath() + { + return $this->path; + } + + /** + * Immutable. The path in the Entry that is referenced in the Entry Link. + * Empty path denotes that the Entry itself is referenced in the Entry + * Link. + * + * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setPath($var) + { + GPBUtil::checkString($var, True); + $this->path = $var; + + return $this; + } + + /** + * Required. Immutable. The reference type of the Entry. + * + * Generated from protobuf field .google.cloud.dataplex.v1.EntryLink.EntryReference.Type type = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Required. Immutable. The reference type of the Entry. + * + * Generated from protobuf field .google.cloud.dataplex.v1.EntryLink.EntryReference.Type type = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\EntryLink\EntryReference\Type::class); + $this->type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryLink/EntryReference/Type.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryLink/EntryReference/Type.php new file mode 100644 index 000000000000..ed0eb9c50bb5 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryLink/EntryReference/Type.php @@ -0,0 +1,62 @@ +google.cloud.dataplex.v1.EntryLink.EntryReference.Type + */ +class Type +{ + /** + * Unspecified reference type. Implies that the Entry is referenced + * in a non-directional Entry Link. + * + * Generated from protobuf enum UNSPECIFIED = 0; + */ + const UNSPECIFIED = 0; + /** + * The Entry is referenced as the source of the directional Entry Link. + * + * Generated from protobuf enum SOURCE = 2; + */ + const SOURCE = 2; + /** + * The Entry is referenced as the target of the directional Entry Link. + * + * Generated from protobuf enum TARGET = 3; + */ + const TARGET = 3; + + private static $valueToName = [ + self::UNSPECIFIED => 'UNSPECIFIED', + self::SOURCE => 'SOURCE', + self::TARGET => 'TARGET', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryLinkEvent.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryLinkEvent.php new file mode 100644 index 000000000000..17daca559de7 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryLinkEvent.php @@ -0,0 +1,135 @@ +google.cloud.dataplex.v1.EntryLinkEvent + */ +class EntryLinkEvent extends \Google\Protobuf\Internal\Message +{ + /** + * The log message. + * + * Generated from protobuf field string message = 1; + */ + protected $message = ''; + /** + * The type of the event. + * + * Generated from protobuf field .google.cloud.dataplex.v1.EntryLinkEvent.EventType event_type = 2; + */ + protected $event_type = 0; + /** + * Name of the resource. + * + * Generated from protobuf field string resource = 3; + */ + protected $resource = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $message + * The log message. + * @type int $event_type + * The type of the event. + * @type string $resource + * Name of the resource. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Logs::initOnce(); + parent::__construct($data); + } + + /** + * The log message. + * + * Generated from protobuf field string message = 1; + * @return string + */ + public function getMessage() + { + return $this->message; + } + + /** + * The log message. + * + * Generated from protobuf field string message = 1; + * @param string $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkString($var, True); + $this->message = $var; + + return $this; + } + + /** + * The type of the event. + * + * Generated from protobuf field .google.cloud.dataplex.v1.EntryLinkEvent.EventType event_type = 2; + * @return int + */ + public function getEventType() + { + return $this->event_type; + } + + /** + * The type of the event. + * + * Generated from protobuf field .google.cloud.dataplex.v1.EntryLinkEvent.EventType event_type = 2; + * @param int $var + * @return $this + */ + public function setEventType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\EntryLinkEvent\EventType::class); + $this->event_type = $var; + + return $this; + } + + /** + * Name of the resource. + * + * Generated from protobuf field string resource = 3; + * @return string + */ + public function getResource() + { + return $this->resource; + } + + /** + * Name of the resource. + * + * Generated from protobuf field string resource = 3; + * @param string $var + * @return $this + */ + public function setResource($var) + { + GPBUtil::checkString($var, True); + $this->resource = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryLinkEvent/EventType.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryLinkEvent/EventType.php new file mode 100644 index 000000000000..176622c58042 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryLinkEvent/EventType.php @@ -0,0 +1,61 @@ +google.cloud.dataplex.v1.EntryLinkEvent.EventType + */ +class EventType +{ + /** + * An unspecified event type. + * + * Generated from protobuf enum EVENT_TYPE_UNSPECIFIED = 0; + */ + const EVENT_TYPE_UNSPECIFIED = 0; + /** + * EntryLink create event. + * + * Generated from protobuf enum ENTRY_LINK_CREATE = 1; + */ + const ENTRY_LINK_CREATE = 1; + /** + * EntryLink delete event. + * + * Generated from protobuf enum ENTRY_LINK_DELETE = 2; + */ + const ENTRY_LINK_DELETE = 2; + + private static $valueToName = [ + self::EVENT_TYPE_UNSPECIFIED => 'EVENT_TYPE_UNSPECIFIED', + self::ENTRY_LINK_CREATE => 'ENTRY_LINK_CREATE', + self::ENTRY_LINK_DELETE => 'ENTRY_LINK_DELETE', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntrySource.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntrySource.php new file mode 100644 index 000000000000..7209036837ad --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntrySource.php @@ -0,0 +1,446 @@ +google.cloud.dataplex.v1.EntrySource + */ +class EntrySource extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the resource in the source system. + * Maximum length is 4,000 characters. + * + * Generated from protobuf field string resource = 1; + */ + protected $resource = ''; + /** + * The name of the source system. + * Maximum length is 64 characters. + * + * Generated from protobuf field string system = 2; + */ + protected $system = ''; + /** + * The platform containing the source system. + * Maximum length is 64 characters. + * + * Generated from protobuf field string platform = 3; + */ + protected $platform = ''; + /** + * A user-friendly display name. + * Maximum length is 500 characters. + * + * Generated from protobuf field string display_name = 5; + */ + protected $display_name = ''; + /** + * A description of the data resource. + * Maximum length is 2,000 characters. + * + * Generated from protobuf field string description = 6; + */ + protected $description = ''; + /** + * User-defined labels. + * The maximum size of keys and values is 128 characters each. + * + * Generated from protobuf field map labels = 7; + */ + private $labels; + /** + * Immutable. The entries representing the ancestors of the data resource in + * the source system. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.EntrySource.Ancestor ancestors = 9 [(.google.api.field_behavior) = IMMUTABLE]; + */ + private $ancestors; + /** + * The time when the resource was created in the source system. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 10; + */ + protected $create_time = null; + /** + * The time when the resource was last updated in the source system. If the + * entry exists in the system and its `EntrySource` has `update_time` + * populated, further updates to the `EntrySource` of the entry must provide + * incremental updates to its `update_time`. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 11; + */ + protected $update_time = null; + /** + * Output only. Location of the resource in the source system. You can search + * the entry by this location. By default, this should match the location of + * the entry group containing this entry. A different value allows capturing + * the source location for data external to Google Cloud. + * + * Generated from protobuf field string location = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $location = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $resource + * The name of the resource in the source system. + * Maximum length is 4,000 characters. + * @type string $system + * The name of the source system. + * Maximum length is 64 characters. + * @type string $platform + * The platform containing the source system. + * Maximum length is 64 characters. + * @type string $display_name + * A user-friendly display name. + * Maximum length is 500 characters. + * @type string $description + * A description of the data resource. + * Maximum length is 2,000 characters. + * @type array|\Google\Protobuf\Internal\MapField $labels + * User-defined labels. + * The maximum size of keys and values is 128 characters each. + * @type \Google\Cloud\Dataplex\V1\EntrySource\Ancestor[] $ancestors + * Immutable. The entries representing the ancestors of the data resource in + * the source system. + * @type \Google\Protobuf\Timestamp $create_time + * The time when the resource was created in the source system. + * @type \Google\Protobuf\Timestamp $update_time + * The time when the resource was last updated in the source system. If the + * entry exists in the system and its `EntrySource` has `update_time` + * populated, further updates to the `EntrySource` of the entry must provide + * incremental updates to its `update_time`. + * @type string $location + * Output only. Location of the resource in the source system. You can search + * the entry by this location. By default, this should match the location of + * the entry group containing this entry. A different value allows capturing + * the source location for data external to Google Cloud. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * The name of the resource in the source system. + * Maximum length is 4,000 characters. + * + * Generated from protobuf field string resource = 1; + * @return string + */ + public function getResource() + { + return $this->resource; + } + + /** + * The name of the resource in the source system. + * Maximum length is 4,000 characters. + * + * Generated from protobuf field string resource = 1; + * @param string $var + * @return $this + */ + public function setResource($var) + { + GPBUtil::checkString($var, True); + $this->resource = $var; + + return $this; + } + + /** + * The name of the source system. + * Maximum length is 64 characters. + * + * Generated from protobuf field string system = 2; + * @return string + */ + public function getSystem() + { + return $this->system; + } + + /** + * The name of the source system. + * Maximum length is 64 characters. + * + * Generated from protobuf field string system = 2; + * @param string $var + * @return $this + */ + public function setSystem($var) + { + GPBUtil::checkString($var, True); + $this->system = $var; + + return $this; + } + + /** + * The platform containing the source system. + * Maximum length is 64 characters. + * + * Generated from protobuf field string platform = 3; + * @return string + */ + public function getPlatform() + { + return $this->platform; + } + + /** + * The platform containing the source system. + * Maximum length is 64 characters. + * + * Generated from protobuf field string platform = 3; + * @param string $var + * @return $this + */ + public function setPlatform($var) + { + GPBUtil::checkString($var, True); + $this->platform = $var; + + return $this; + } + + /** + * A user-friendly display name. + * Maximum length is 500 characters. + * + * Generated from protobuf field string display_name = 5; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * A user-friendly display name. + * Maximum length is 500 characters. + * + * Generated from protobuf field string display_name = 5; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * A description of the data resource. + * Maximum length is 2,000 characters. + * + * Generated from protobuf field string description = 6; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * A description of the data resource. + * Maximum length is 2,000 characters. + * + * Generated from protobuf field string description = 6; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * User-defined labels. + * The maximum size of keys and values is 128 characters each. + * + * Generated from protobuf field map labels = 7; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * User-defined labels. + * The maximum size of keys and values is 128 characters each. + * + * Generated from protobuf field map labels = 7; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Immutable. The entries representing the ancestors of the data resource in + * the source system. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.EntrySource.Ancestor ancestors = 9 [(.google.api.field_behavior) = IMMUTABLE]; + * @return RepeatedField<\Google\Cloud\Dataplex\V1\EntrySource\Ancestor> + */ + public function getAncestors() + { + return $this->ancestors; + } + + /** + * Immutable. The entries representing the ancestors of the data resource in + * the source system. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.EntrySource.Ancestor ancestors = 9 [(.google.api.field_behavior) = IMMUTABLE]; + * @param \Google\Cloud\Dataplex\V1\EntrySource\Ancestor[] $var + * @return $this + */ + public function setAncestors($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\EntrySource\Ancestor::class); + $this->ancestors = $arr; + + return $this; + } + + /** + * The time when the resource was created in the source system. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 10; + * @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 time when the resource was created in the source system. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 10; + * @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 time when the resource was last updated in the source system. If the + * entry exists in the system and its `EntrySource` has `update_time` + * populated, further updates to the `EntrySource` of the entry must provide + * incremental updates to its `update_time`. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 11; + * @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 time when the resource was last updated in the source system. If the + * entry exists in the system and its `EntrySource` has `update_time` + * populated, further updates to the `EntrySource` of the entry must provide + * incremental updates to its `update_time`. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 11; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Output only. Location of the resource in the source system. You can search + * the entry by this location. By default, this should match the location of + * the entry group containing this entry. A different value allows capturing + * the source location for data external to Google Cloud. + * + * Generated from protobuf field string location = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getLocation() + { + return $this->location; + } + + /** + * Output only. Location of the resource in the source system. You can search + * the entry by this location. By default, this should match the location of + * the entry group containing this entry. A different value allows capturing + * the source location for data external to Google Cloud. + * + * Generated from protobuf field string location = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkString($var, True); + $this->location = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntrySource/Ancestor.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntrySource/Ancestor.php new file mode 100644 index 000000000000..23799acc1eb5 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntrySource/Ancestor.php @@ -0,0 +1,102 @@ +google.cloud.dataplex.v1.EntrySource.Ancestor + */ +class Ancestor extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The name of the ancestor resource. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $name = ''; + /** + * Optional. The type of the ancestor resource. + * + * Generated from protobuf field string type = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $type = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Optional. The name of the ancestor resource. + * @type string $type + * Optional. The type of the ancestor resource. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The name of the ancestor resource. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Optional. The name of the ancestor resource. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. The type of the ancestor resource. + * + * Generated from protobuf field string type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getType() + { + return $this->type; + } + + /** + * Optional. The type of the ancestor resource. + * + * Generated from protobuf field string type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkString($var, True); + $this->type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryType.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryType.php new file mode 100644 index 000000000000..a3b4423ec8b3 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryType.php @@ -0,0 +1,533 @@ +google.cloud.dataplex.v1.EntryType + */ +class EntryType extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The relative resource name of the EntryType, of the form: + * projects/{project_number}/locations/{location_id}/entryTypes/{entry_type_id}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Output only. System generated globally unique ID for the EntryType. This ID + * will be different if the EntryType is deleted and re-created with the same + * name. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $uid = ''; + /** + * Output only. The time when the EntryType was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The time when the EntryType was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Optional. Description of the EntryType. + * + * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Optional. User friendly display name. + * + * Generated from protobuf field string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $display_name = ''; + /** + * Optional. User-defined labels for the EntryType. + * + * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $labels; + /** + * Optional. This checksum is computed by the service, and might be sent on + * update and delete requests to ensure the client has an up-to-date value + * before proceeding. + * + * Generated from protobuf field string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $etag = ''; + /** + * Optional. Indicates the classes this Entry Type belongs to, for example, + * TABLE, DATABASE, MODEL. + * + * Generated from protobuf field repeated string type_aliases = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $type_aliases; + /** + * Optional. The platform that Entries of this type belongs to. + * + * Generated from protobuf field string platform = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $platform = ''; + /** + * Optional. The system that Entries of this type belongs to. Examples include + * CloudSQL, MariaDB etc + * + * Generated from protobuf field string system = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $system = ''; + /** + * AspectInfo for the entry type. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.EntryType.AspectInfo required_aspects = 50; + */ + private $required_aspects; + /** + * Immutable. Authorization defined for this type. + * + * Generated from protobuf field .google.cloud.dataplex.v1.EntryType.Authorization authorization = 51 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $authorization = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. The relative resource name of the EntryType, of the form: + * projects/{project_number}/locations/{location_id}/entryTypes/{entry_type_id}. + * @type string $uid + * Output only. System generated globally unique ID for the EntryType. This ID + * will be different if the EntryType is deleted and re-created with the same + * name. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time when the EntryType was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time when the EntryType was last updated. + * @type string $description + * Optional. Description of the EntryType. + * @type string $display_name + * Optional. User friendly display name. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Optional. User-defined labels for the EntryType. + * @type string $etag + * Optional. This checksum is computed by the service, and might be sent on + * update and delete requests to ensure the client has an up-to-date value + * before proceeding. + * @type string[] $type_aliases + * Optional. Indicates the classes this Entry Type belongs to, for example, + * TABLE, DATABASE, MODEL. + * @type string $platform + * Optional. The platform that Entries of this type belongs to. + * @type string $system + * Optional. The system that Entries of this type belongs to. Examples include + * CloudSQL, MariaDB etc + * @type \Google\Cloud\Dataplex\V1\EntryType\AspectInfo[] $required_aspects + * AspectInfo for the entry type. + * @type \Google\Cloud\Dataplex\V1\EntryType\Authorization $authorization + * Immutable. Authorization defined for this type. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The relative resource name of the EntryType, of the form: + * projects/{project_number}/locations/{location_id}/entryTypes/{entry_type_id}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. The relative resource name of the EntryType, of the form: + * projects/{project_number}/locations/{location_id}/entryTypes/{entry_type_id}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. System generated globally unique ID for the EntryType. This ID + * will be different if the EntryType is deleted and re-created with the same + * name. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getUid() + { + return $this->uid; + } + + /** + * Output only. System generated globally unique ID for the EntryType. This ID + * will be different if the EntryType is deleted and re-created with the same + * name. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setUid($var) + { + GPBUtil::checkString($var, True); + $this->uid = $var; + + return $this; + } + + /** + * Output only. The time when the EntryType was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The time when the EntryType was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. The time when the EntryType was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. The time when the EntryType was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Optional. Description of the EntryType. + * + * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. Description of the EntryType. + * + * 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; + } + + /** + * Optional. User friendly display name. + * + * Generated from protobuf field string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Optional. User friendly display name. + * + * Generated from protobuf field string display_name = 6 [(.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. User-defined labels for the EntryType. + * + * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Optional. User-defined labels for the EntryType. + * + * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Optional. This checksum is computed by the service, and might be sent on + * update and delete requests to ensure the client has an up-to-date value + * before proceeding. + * + * Generated from protobuf field string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Optional. This checksum is computed by the service, and might be sent on + * update and delete requests to ensure the client has an up-to-date value + * before proceeding. + * + * Generated from protobuf field string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setEtag($var) + { + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + + /** + * Optional. Indicates the classes this Entry Type belongs to, for example, + * TABLE, DATABASE, MODEL. + * + * Generated from protobuf field repeated string type_aliases = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getTypeAliases() + { + return $this->type_aliases; + } + + /** + * Optional. Indicates the classes this Entry Type belongs to, for example, + * TABLE, DATABASE, MODEL. + * + * Generated from protobuf field repeated string type_aliases = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setTypeAliases($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->type_aliases = $arr; + + return $this; + } + + /** + * Optional. The platform that Entries of this type belongs to. + * + * Generated from protobuf field string platform = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPlatform() + { + return $this->platform; + } + + /** + * Optional. The platform that Entries of this type belongs to. + * + * Generated from protobuf field string platform = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPlatform($var) + { + GPBUtil::checkString($var, True); + $this->platform = $var; + + return $this; + } + + /** + * Optional. The system that Entries of this type belongs to. Examples include + * CloudSQL, MariaDB etc + * + * Generated from protobuf field string system = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getSystem() + { + return $this->system; + } + + /** + * Optional. The system that Entries of this type belongs to. Examples include + * CloudSQL, MariaDB etc + * + * Generated from protobuf field string system = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setSystem($var) + { + GPBUtil::checkString($var, True); + $this->system = $var; + + return $this; + } + + /** + * AspectInfo for the entry type. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.EntryType.AspectInfo required_aspects = 50; + * @return RepeatedField<\Google\Cloud\Dataplex\V1\EntryType\AspectInfo> + */ + public function getRequiredAspects() + { + return $this->required_aspects; + } + + /** + * AspectInfo for the entry type. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.EntryType.AspectInfo required_aspects = 50; + * @param \Google\Cloud\Dataplex\V1\EntryType\AspectInfo[] $var + * @return $this + */ + public function setRequiredAspects($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\EntryType\AspectInfo::class); + $this->required_aspects = $arr; + + return $this; + } + + /** + * Immutable. Authorization defined for this type. + * + * Generated from protobuf field .google.cloud.dataplex.v1.EntryType.Authorization authorization = 51 [(.google.api.field_behavior) = IMMUTABLE]; + * @return \Google\Cloud\Dataplex\V1\EntryType\Authorization|null + */ + public function getAuthorization() + { + return $this->authorization; + } + + public function hasAuthorization() + { + return isset($this->authorization); + } + + public function clearAuthorization() + { + unset($this->authorization); + } + + /** + * Immutable. Authorization defined for this type. + * + * Generated from protobuf field .google.cloud.dataplex.v1.EntryType.Authorization authorization = 51 [(.google.api.field_behavior) = IMMUTABLE]; + * @param \Google\Cloud\Dataplex\V1\EntryType\Authorization $var + * @return $this + */ + public function setAuthorization($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\EntryType\Authorization::class); + $this->authorization = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryType/AspectInfo.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryType/AspectInfo.php new file mode 100644 index 000000000000..e848732582d0 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryType/AspectInfo.php @@ -0,0 +1,65 @@ +google.cloud.dataplex.v1.EntryType.AspectInfo + */ +class AspectInfo extends \Google\Protobuf\Internal\Message +{ + /** + * Required aspect type for the entry type. + * + * Generated from protobuf field string type = 1 [(.google.api.resource_reference) = { + */ + protected $type = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $type + * Required aspect type for the entry type. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Required aspect type for the entry type. + * + * Generated from protobuf field string type = 1 [(.google.api.resource_reference) = { + * @return string + */ + public function getType() + { + return $this->type; + } + + /** + * Required aspect type for the entry type. + * + * Generated from protobuf field string type = 1 [(.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkString($var, True); + $this->type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryType/Authorization.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryType/Authorization.php new file mode 100644 index 000000000000..67511cde1b9c --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryType/Authorization.php @@ -0,0 +1,75 @@ +google.cloud.dataplex.v1.EntryType.Authorization + */ +class Authorization extends \Google\Protobuf\Internal\Message +{ + /** + * Immutable. The IAM permission grantable on the Entry Group to allow + * access to instantiate Entries of Dataplex Universal Catalog owned Entry + * Types, only settable for Dataplex Universal Catalog owned Types. + * + * Generated from protobuf field string alternate_use_permission = 1 [(.google.api.field_behavior) = IMMUTABLE]; + */ + protected $alternate_use_permission = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $alternate_use_permission + * Immutable. The IAM permission grantable on the Entry Group to allow + * access to instantiate Entries of Dataplex Universal Catalog owned Entry + * Types, only settable for Dataplex Universal Catalog owned Types. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Immutable. The IAM permission grantable on the Entry Group to allow + * access to instantiate Entries of Dataplex Universal Catalog owned Entry + * Types, only settable for Dataplex Universal Catalog owned Types. + * + * Generated from protobuf field string alternate_use_permission = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getAlternateUsePermission() + { + return $this->alternate_use_permission; + } + + /** + * Immutable. The IAM permission grantable on the Entry Group to allow + * access to instantiate Entries of Dataplex Universal Catalog owned Entry + * Types, only settable for Dataplex Universal Catalog owned Types. + * + * Generated from protobuf field string alternate_use_permission = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setAlternateUsePermission($var) + { + GPBUtil::checkString($var, True); + $this->alternate_use_permission = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryView.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryView.php new file mode 100644 index 000000000000..b3cb7b133f2f --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryView.php @@ -0,0 +1,78 @@ +google.cloud.dataplex.v1.EntryView + */ +class EntryView +{ + /** + * Unspecified EntryView. Defaults to FULL. + * + * Generated from protobuf enum ENTRY_VIEW_UNSPECIFIED = 0; + */ + const ENTRY_VIEW_UNSPECIFIED = 0; + /** + * Returns entry only, without aspects. + * + * Generated from protobuf enum BASIC = 1; + */ + const BASIC = 1; + /** + * Returns all required aspects as well as the keys of all non-required + * aspects. + * + * Generated from protobuf enum FULL = 2; + */ + const FULL = 2; + /** + * Returns aspects matching custom fields in GetEntryRequest. If the number of + * aspects exceeds 100, the first 100 will be returned. + * + * Generated from protobuf enum CUSTOM = 3; + */ + const CUSTOM = 3; + /** + * Returns all aspects. If the number of aspects exceeds 100, the first + * 100 will be returned. + * + * Generated from protobuf enum ALL = 4; + */ + const ALL = 4; + + private static $valueToName = [ + self::ENTRY_VIEW_UNSPECIFIED => 'ENTRY_VIEW_UNSPECIFIED', + self::BASIC => 'BASIC', + self::FULL => 'FULL', + self::CUSTOM => 'CUSTOM', + self::ALL => 'ALL', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment.php new file mode 100644 index 000000000000..d022d8c6b308 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment.php @@ -0,0 +1,518 @@ +google.cloud.dataplex.v1.Environment + */ +class Environment extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The relative resource name of the environment, of the form: + * projects/{project_id}/locations/{location_id}/lakes/{lake_id}/environment/{environment_id} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. User friendly display name. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $display_name = ''; + /** + * Output only. System generated globally unique ID for the environment. This + * ID will be different if the environment is deleted and re-created with the + * same name. + * + * Generated from protobuf field string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $uid = ''; + /** + * Output only. Environment creation time. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The time when the environment was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Optional. User defined labels for the environment. + * + * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $labels; + /** + * Optional. Description of the environment. + * + * Generated from protobuf field string description = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Output only. Current state of the environment. + * + * Generated from protobuf field .google.cloud.dataplex.v1.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Required. Infrastructure specification for the Environment. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Environment.InfrastructureSpec infrastructure_spec = 100 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $infrastructure_spec = null; + /** + * Optional. Configuration for sessions created for this environment. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Environment.SessionSpec session_spec = 101 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $session_spec = null; + /** + * Output only. Status of sessions created for this environment. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Environment.SessionStatus session_status = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $session_status = null; + /** + * Output only. URI Endpoints to access sessions associated with the + * Environment. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Environment.Endpoints endpoints = 200 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $endpoints = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. The relative resource name of the environment, of the form: + * projects/{project_id}/locations/{location_id}/lakes/{lake_id}/environment/{environment_id} + * @type string $display_name + * Optional. User friendly display name. + * @type string $uid + * Output only. System generated globally unique ID for the environment. This + * ID will be different if the environment is deleted and re-created with the + * same name. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Environment creation time. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time when the environment was last updated. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Optional. User defined labels for the environment. + * @type string $description + * Optional. Description of the environment. + * @type int $state + * Output only. Current state of the environment. + * @type \Google\Cloud\Dataplex\V1\Environment\InfrastructureSpec $infrastructure_spec + * Required. Infrastructure specification for the Environment. + * @type \Google\Cloud\Dataplex\V1\Environment\SessionSpec $session_spec + * Optional. Configuration for sessions created for this environment. + * @type \Google\Cloud\Dataplex\V1\Environment\SessionStatus $session_status + * Output only. Status of sessions created for this environment. + * @type \Google\Cloud\Dataplex\V1\Environment\Endpoints $endpoints + * Output only. URI Endpoints to access sessions associated with the + * Environment. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Analyze::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The relative resource name of the environment, of the form: + * projects/{project_id}/locations/{location_id}/lakes/{lake_id}/environment/{environment_id} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. The relative resource name of the environment, of the form: + * projects/{project_id}/locations/{location_id}/lakes/{lake_id}/environment/{environment_id} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. User friendly display name. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Optional. User friendly display name. + * + * 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; + } + + /** + * Output only. System generated globally unique ID for the environment. This + * ID will be different if the environment is deleted and re-created with the + * same name. + * + * Generated from protobuf field string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getUid() + { + return $this->uid; + } + + /** + * Output only. System generated globally unique ID for the environment. This + * ID will be different if the environment is deleted and re-created with the + * same name. + * + * Generated from protobuf field string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setUid($var) + { + GPBUtil::checkString($var, True); + $this->uid = $var; + + return $this; + } + + /** + * Output only. Environment creation time. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.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. Environment creation time. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.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 environment was last updated. + * + * 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 time when the environment was last updated. + * + * 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. User defined labels for the environment. + * + * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Optional. User defined labels for the environment. + * + * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Optional. Description of the environment. + * + * Generated from protobuf field string description = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. Description of the environment. + * + * Generated from protobuf field string description = 7 [(.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. Current state of the environment. + * + * Generated from protobuf field .google.cloud.dataplex.v1.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. Current state of the environment. + * + * Generated from protobuf field .google.cloud.dataplex.v1.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\State::class); + $this->state = $var; + + return $this; + } + + /** + * Required. Infrastructure specification for the Environment. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Environment.InfrastructureSpec infrastructure_spec = 100 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\Environment\InfrastructureSpec|null + */ + public function getInfrastructureSpec() + { + return $this->infrastructure_spec; + } + + public function hasInfrastructureSpec() + { + return isset($this->infrastructure_spec); + } + + public function clearInfrastructureSpec() + { + unset($this->infrastructure_spec); + } + + /** + * Required. Infrastructure specification for the Environment. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Environment.InfrastructureSpec infrastructure_spec = 100 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\Environment\InfrastructureSpec $var + * @return $this + */ + public function setInfrastructureSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Environment\InfrastructureSpec::class); + $this->infrastructure_spec = $var; + + return $this; + } + + /** + * Optional. Configuration for sessions created for this environment. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Environment.SessionSpec session_spec = 101 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataplex\V1\Environment\SessionSpec|null + */ + public function getSessionSpec() + { + return $this->session_spec; + } + + public function hasSessionSpec() + { + return isset($this->session_spec); + } + + public function clearSessionSpec() + { + unset($this->session_spec); + } + + /** + * Optional. Configuration for sessions created for this environment. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Environment.SessionSpec session_spec = 101 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataplex\V1\Environment\SessionSpec $var + * @return $this + */ + public function setSessionSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Environment\SessionSpec::class); + $this->session_spec = $var; + + return $this; + } + + /** + * Output only. Status of sessions created for this environment. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Environment.SessionStatus session_status = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataplex\V1\Environment\SessionStatus|null + */ + public function getSessionStatus() + { + return $this->session_status; + } + + public function hasSessionStatus() + { + return isset($this->session_status); + } + + public function clearSessionStatus() + { + unset($this->session_status); + } + + /** + * Output only. Status of sessions created for this environment. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Environment.SessionStatus session_status = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\Environment\SessionStatus $var + * @return $this + */ + public function setSessionStatus($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Environment\SessionStatus::class); + $this->session_status = $var; + + return $this; + } + + /** + * Output only. URI Endpoints to access sessions associated with the + * Environment. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Environment.Endpoints endpoints = 200 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataplex\V1\Environment\Endpoints|null + */ + public function getEndpoints() + { + return $this->endpoints; + } + + public function hasEndpoints() + { + return isset($this->endpoints); + } + + public function clearEndpoints() + { + unset($this->endpoints); + } + + /** + * Output only. URI Endpoints to access sessions associated with the + * Environment. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Environment.Endpoints endpoints = 200 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\Environment\Endpoints $var + * @return $this + */ + public function setEndpoints($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Environment\Endpoints::class); + $this->endpoints = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment/Endpoints.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment/Endpoints.php new file mode 100644 index 000000000000..0223c47e35ac --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment/Endpoints.php @@ -0,0 +1,101 @@ +google.cloud.dataplex.v1.Environment.Endpoints + */ +class Endpoints extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. URI to serve notebook APIs + * + * Generated from protobuf field string notebooks = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $notebooks = ''; + /** + * Output only. URI to serve SQL APIs + * + * Generated from protobuf field string sql = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $sql = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $notebooks + * Output only. URI to serve notebook APIs + * @type string $sql + * Output only. URI to serve SQL APIs + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Analyze::initOnce(); + parent::__construct($data); + } + + /** + * Output only. URI to serve notebook APIs + * + * Generated from protobuf field string notebooks = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getNotebooks() + { + return $this->notebooks; + } + + /** + * Output only. URI to serve notebook APIs + * + * Generated from protobuf field string notebooks = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setNotebooks($var) + { + GPBUtil::checkString($var, True); + $this->notebooks = $var; + + return $this; + } + + /** + * Output only. URI to serve SQL APIs + * + * Generated from protobuf field string sql = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getSql() + { + return $this->sql; + } + + /** + * Output only. URI to serve SQL APIs + * + * Generated from protobuf field string sql = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setSql($var) + { + GPBUtil::checkString($var, True); + $this->sql = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment/InfrastructureSpec.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment/InfrastructureSpec.php new file mode 100644 index 000000000000..f5418db3a776 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment/InfrastructureSpec.php @@ -0,0 +1,120 @@ +google.cloud.dataplex.v1.Environment.InfrastructureSpec + */ +class InfrastructureSpec extends \Google\Protobuf\Internal\Message +{ + protected $resources; + protected $runtime; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\Environment\InfrastructureSpec\ComputeResources $compute + * Optional. Compute resources needed for analyze interactive workloads. + * @type \Google\Cloud\Dataplex\V1\Environment\InfrastructureSpec\OsImageRuntime $os_image + * Required. Software Runtime Configuration for analyze interactive + * workloads. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Analyze::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Compute resources needed for analyze interactive workloads. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources compute = 50 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataplex\V1\Environment\InfrastructureSpec\ComputeResources|null + */ + public function getCompute() + { + return $this->readOneof(50); + } + + public function hasCompute() + { + return $this->hasOneof(50); + } + + /** + * Optional. Compute resources needed for analyze interactive workloads. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources compute = 50 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataplex\V1\Environment\InfrastructureSpec\ComputeResources $var + * @return $this + */ + public function setCompute($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Environment\InfrastructureSpec\ComputeResources::class); + $this->writeOneof(50, $var); + + return $this; + } + + /** + * Required. Software Runtime Configuration for analyze interactive + * workloads. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime os_image = 100 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\Environment\InfrastructureSpec\OsImageRuntime|null + */ + public function getOsImage() + { + return $this->readOneof(100); + } + + public function hasOsImage() + { + return $this->hasOneof(100); + } + + /** + * Required. Software Runtime Configuration for analyze interactive + * workloads. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime os_image = 100 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\Environment\InfrastructureSpec\OsImageRuntime $var + * @return $this + */ + public function setOsImage($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Environment\InfrastructureSpec\OsImageRuntime::class); + $this->writeOneof(100, $var); + + return $this; + } + + /** + * @return string + */ + public function getResources() + { + return $this->whichOneof("resources"); + } + + /** + * @return string + */ + public function getRuntime() + { + return $this->whichOneof("runtime"); + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment/InfrastructureSpec/ComputeResources.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment/InfrastructureSpec/ComputeResources.php new file mode 100644 index 000000000000..d76cd1a01fec --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment/InfrastructureSpec/ComputeResources.php @@ -0,0 +1,143 @@ +google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources + */ +class ComputeResources extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Size in GB of the disk. Default is 100 GB. + * + * Generated from protobuf field int32 disk_size_gb = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $disk_size_gb = 0; + /** + * Optional. Total number of nodes in the sessions created for this + * environment. + * + * Generated from protobuf field int32 node_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $node_count = 0; + /** + * Optional. Max configurable nodes. + * If max_node_count > node_count, then auto-scaling is enabled. + * + * Generated from protobuf field int32 max_node_count = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $max_node_count = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $disk_size_gb + * Optional. Size in GB of the disk. Default is 100 GB. + * @type int $node_count + * Optional. Total number of nodes in the sessions created for this + * environment. + * @type int $max_node_count + * Optional. Max configurable nodes. + * If max_node_count > node_count, then auto-scaling is enabled. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Analyze::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Size in GB of the disk. Default is 100 GB. + * + * Generated from protobuf field int32 disk_size_gb = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getDiskSizeGb() + { + return $this->disk_size_gb; + } + + /** + * Optional. Size in GB of the disk. Default is 100 GB. + * + * Generated from protobuf field int32 disk_size_gb = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setDiskSizeGb($var) + { + GPBUtil::checkInt32($var); + $this->disk_size_gb = $var; + + return $this; + } + + /** + * Optional. Total number of nodes in the sessions created for this + * environment. + * + * Generated from protobuf field int32 node_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getNodeCount() + { + return $this->node_count; + } + + /** + * Optional. Total number of nodes in the sessions created for this + * environment. + * + * Generated from protobuf field int32 node_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setNodeCount($var) + { + GPBUtil::checkInt32($var); + $this->node_count = $var; + + return $this; + } + + /** + * Optional. Max configurable nodes. + * If max_node_count > node_count, then auto-scaling is enabled. + * + * Generated from protobuf field int32 max_node_count = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getMaxNodeCount() + { + return $this->max_node_count; + } + + /** + * Optional. Max configurable nodes. + * If max_node_count > node_count, then auto-scaling is enabled. + * + * Generated from protobuf field int32 max_node_count = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setMaxNodeCount($var) + { + GPBUtil::checkInt32($var); + $this->max_node_count = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment/InfrastructureSpec/OsImageRuntime.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment/InfrastructureSpec/OsImageRuntime.php new file mode 100644 index 000000000000..6dcd3d32cb4a --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment/InfrastructureSpec/OsImageRuntime.php @@ -0,0 +1,197 @@ +google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime + */ +class OsImageRuntime extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Dataplex Universal Catalog Image version. + * + * Generated from protobuf field string image_version = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $image_version = ''; + /** + * Optional. List of Java jars to be included in the runtime environment. + * Valid input includes Cloud Storage URIs to Jar binaries. + * For example, gs://bucket-name/my/path/to/file.jar + * + * Generated from protobuf field repeated string java_libraries = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $java_libraries; + /** + * Optional. A list of python packages to be installed. + * Valid formats include Cloud Storage URI to a PIP installable library. + * For example, gs://bucket-name/my/path/to/lib.tar.gz + * + * Generated from protobuf field repeated string python_packages = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $python_packages; + /** + * Optional. Spark properties to provide configuration for use in sessions + * created for this environment. The properties to set on daemon config + * files. Property keys are specified in `prefix:property` format. The + * prefix must be "spark". + * + * Generated from protobuf field map properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $properties; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $image_version + * Required. Dataplex Universal Catalog Image version. + * @type string[] $java_libraries + * Optional. List of Java jars to be included in the runtime environment. + * Valid input includes Cloud Storage URIs to Jar binaries. + * For example, gs://bucket-name/my/path/to/file.jar + * @type string[] $python_packages + * Optional. A list of python packages to be installed. + * Valid formats include Cloud Storage URI to a PIP installable library. + * For example, gs://bucket-name/my/path/to/lib.tar.gz + * @type array|\Google\Protobuf\Internal\MapField $properties + * Optional. Spark properties to provide configuration for use in sessions + * created for this environment. The properties to set on daemon config + * files. Property keys are specified in `prefix:property` format. The + * prefix must be "spark". + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Analyze::initOnce(); + parent::__construct($data); + } + + /** + * Required. Dataplex Universal Catalog Image version. + * + * Generated from protobuf field string image_version = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getImageVersion() + { + return $this->image_version; + } + + /** + * Required. Dataplex Universal Catalog Image version. + * + * Generated from protobuf field string image_version = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setImageVersion($var) + { + GPBUtil::checkString($var, True); + $this->image_version = $var; + + return $this; + } + + /** + * Optional. List of Java jars to be included in the runtime environment. + * Valid input includes Cloud Storage URIs to Jar binaries. + * For example, gs://bucket-name/my/path/to/file.jar + * + * Generated from protobuf field repeated string java_libraries = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getJavaLibraries() + { + return $this->java_libraries; + } + + /** + * Optional. List of Java jars to be included in the runtime environment. + * Valid input includes Cloud Storage URIs to Jar binaries. + * For example, gs://bucket-name/my/path/to/file.jar + * + * Generated from protobuf field repeated string java_libraries = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setJavaLibraries($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->java_libraries = $arr; + + return $this; + } + + /** + * Optional. A list of python packages to be installed. + * Valid formats include Cloud Storage URI to a PIP installable library. + * For example, gs://bucket-name/my/path/to/lib.tar.gz + * + * Generated from protobuf field repeated string python_packages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getPythonPackages() + { + return $this->python_packages; + } + + /** + * Optional. A list of python packages to be installed. + * Valid formats include Cloud Storage URI to a PIP installable library. + * For example, gs://bucket-name/my/path/to/lib.tar.gz + * + * Generated from protobuf field repeated string python_packages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setPythonPackages($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->python_packages = $arr; + + return $this; + } + + /** + * Optional. Spark properties to provide configuration for use in sessions + * created for this environment. The properties to set on daemon config + * files. Property keys are specified in `prefix:property` format. The + * prefix must be "spark". + * + * Generated from protobuf field map properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getProperties() + { + return $this->properties; + } + + /** + * Optional. Spark properties to provide configuration for use in sessions + * created for this environment. The properties to set on daemon config + * files. Property keys are specified in `prefix:property` format. The + * prefix must be "spark". + * + * Generated from protobuf field map properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setProperties($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->properties = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment/SessionSpec.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment/SessionSpec.php new file mode 100644 index 000000000000..288498530d75 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment/SessionSpec.php @@ -0,0 +1,131 @@ +google.cloud.dataplex.v1.Environment.SessionSpec + */ +class SessionSpec extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The idle time configuration of the session. The session will be + * auto-terminated at the end of this period. + * + * Generated from protobuf field .google.protobuf.Duration max_idle_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $max_idle_duration = null; + /** + * Optional. If True, this causes sessions to be pre-created and available + * for faster startup to enable interactive exploration use-cases. This + * defaults to False to avoid additional billed charges. These can only be + * set to True for the environment with name set to "default", and with + * default configuration. + * + * Generated from protobuf field bool enable_fast_startup = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $enable_fast_startup = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Duration $max_idle_duration + * Optional. The idle time configuration of the session. The session will be + * auto-terminated at the end of this period. + * @type bool $enable_fast_startup + * Optional. If True, this causes sessions to be pre-created and available + * for faster startup to enable interactive exploration use-cases. This + * defaults to False to avoid additional billed charges. These can only be + * set to True for the environment with name set to "default", and with + * default configuration. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Analyze::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The idle time configuration of the session. The session will be + * auto-terminated at the end of this period. + * + * Generated from protobuf field .google.protobuf.Duration max_idle_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Duration|null + */ + public function getMaxIdleDuration() + { + return $this->max_idle_duration; + } + + public function hasMaxIdleDuration() + { + return isset($this->max_idle_duration); + } + + public function clearMaxIdleDuration() + { + unset($this->max_idle_duration); + } + + /** + * Optional. The idle time configuration of the session. The session will be + * auto-terminated at the end of this period. + * + * Generated from protobuf field .google.protobuf.Duration max_idle_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setMaxIdleDuration($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->max_idle_duration = $var; + + return $this; + } + + /** + * Optional. If True, this causes sessions to be pre-created and available + * for faster startup to enable interactive exploration use-cases. This + * defaults to False to avoid additional billed charges. These can only be + * set to True for the environment with name set to "default", and with + * default configuration. + * + * Generated from protobuf field bool enable_fast_startup = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getEnableFastStartup() + { + return $this->enable_fast_startup; + } + + /** + * Optional. If True, this causes sessions to be pre-created and available + * for faster startup to enable interactive exploration use-cases. This + * defaults to False to avoid additional billed charges. These can only be + * set to True for the environment with name set to "default", and with + * default configuration. + * + * Generated from protobuf field bool enable_fast_startup = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setEnableFastStartup($var) + { + GPBUtil::checkBool($var); + $this->enable_fast_startup = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment/SessionStatus.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment/SessionStatus.php new file mode 100644 index 000000000000..067299e6ebb6 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment/SessionStatus.php @@ -0,0 +1,71 @@ +google.cloud.dataplex.v1.Environment.SessionStatus + */ +class SessionStatus extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Queries over sessions to mark whether the environment is + * currently active or not + * + * Generated from protobuf field bool active = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $active = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $active + * Output only. Queries over sessions to mark whether the environment is + * currently active or not + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Analyze::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Queries over sessions to mark whether the environment is + * currently active or not + * + * Generated from protobuf field bool active = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getActive() + { + return $this->active; + } + + /** + * Output only. Queries over sessions to mark whether the environment is + * currently active or not + * + * Generated from protobuf field bool active = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setActive($var) + { + GPBUtil::checkBool($var); + $this->active = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ExecutionIdentity.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ExecutionIdentity.php new file mode 100644 index 000000000000..02f5c114a548 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ExecutionIdentity.php @@ -0,0 +1,144 @@ +google.cloud.dataplex.v1.ExecutionIdentity + */ +class ExecutionIdentity extends \Google\Protobuf\Internal\Message +{ + protected $identity; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\ExecutionIdentity\DataplexServiceAgent $dataplex_service_agent + * Optional. The Dataplex service agent associated with the user's project. + * @type \Google\Cloud\Dataplex\V1\ExecutionIdentity\UserCredential $user_credential + * Optional. The credential of the calling user. Supports only ONE_TIME + * trigger type. + * @type \Google\Cloud\Dataplex\V1\ExecutionIdentity\ServiceAccount $service_account + * Optional. The provided service account. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Datascans::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The Dataplex service agent associated with the user's project. + * + * Generated from protobuf field .google.cloud.dataplex.v1.ExecutionIdentity.DataplexServiceAgent dataplex_service_agent = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataplex\V1\ExecutionIdentity\DataplexServiceAgent|null + */ + public function getDataplexServiceAgent() + { + return $this->readOneof(1); + } + + public function hasDataplexServiceAgent() + { + return $this->hasOneof(1); + } + + /** + * Optional. The Dataplex service agent associated with the user's project. + * + * Generated from protobuf field .google.cloud.dataplex.v1.ExecutionIdentity.DataplexServiceAgent dataplex_service_agent = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataplex\V1\ExecutionIdentity\DataplexServiceAgent $var + * @return $this + */ + public function setDataplexServiceAgent($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\ExecutionIdentity\DataplexServiceAgent::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Optional. The credential of the calling user. Supports only ONE_TIME + * trigger type. + * + * Generated from protobuf field .google.cloud.dataplex.v1.ExecutionIdentity.UserCredential user_credential = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataplex\V1\ExecutionIdentity\UserCredential|null + */ + public function getUserCredential() + { + return $this->readOneof(2); + } + + public function hasUserCredential() + { + return $this->hasOneof(2); + } + + /** + * Optional. The credential of the calling user. Supports only ONE_TIME + * trigger type. + * + * Generated from protobuf field .google.cloud.dataplex.v1.ExecutionIdentity.UserCredential user_credential = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataplex\V1\ExecutionIdentity\UserCredential $var + * @return $this + */ + public function setUserCredential($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\ExecutionIdentity\UserCredential::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Optional. The provided service account. + * + * Generated from protobuf field .google.cloud.dataplex.v1.ExecutionIdentity.ServiceAccount service_account = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataplex\V1\ExecutionIdentity\ServiceAccount|null + */ + public function getServiceAccount() + { + return $this->readOneof(3); + } + + public function hasServiceAccount() + { + return $this->hasOneof(3); + } + + /** + * Optional. The provided service account. + * + * Generated from protobuf field .google.cloud.dataplex.v1.ExecutionIdentity.ServiceAccount service_account = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataplex\V1\ExecutionIdentity\ServiceAccount $var + * @return $this + */ + public function setServiceAccount($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\ExecutionIdentity\ServiceAccount::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * @return string + */ + public function getIdentity() + { + return $this->whichOneof("identity"); + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ExecutionIdentity/DataplexServiceAgent.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ExecutionIdentity/DataplexServiceAgent.php new file mode 100644 index 000000000000..3acec9b3ed4b --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ExecutionIdentity/DataplexServiceAgent.php @@ -0,0 +1,33 @@ +google.cloud.dataplex.v1.ExecutionIdentity.DataplexServiceAgent + */ +class DataplexServiceAgent extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Datascans::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ExecutionIdentity/ServiceAccount.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ExecutionIdentity/ServiceAccount.php new file mode 100644 index 000000000000..fd0af2eafa19 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ExecutionIdentity/ServiceAccount.php @@ -0,0 +1,83 @@ +google.cloud.dataplex.v1.ExecutionIdentity.ServiceAccount + */ +class ServiceAccount extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Service account email. The datascan will execute with this + * service account's credentials. The user calling this API must have + * permissions to act as this service account. Dataplex service agent must + * be granted iam.serviceAccounts.getAccessToken permission on this service + * account, for example, through the iam.serviceAccountTokenCreator role . + * + * Generated from protobuf field string email = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $email = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $email + * Required. Service account email. The datascan will execute with this + * service account's credentials. The user calling this API must have + * permissions to act as this service account. Dataplex service agent must + * be granted iam.serviceAccounts.getAccessToken permission on this service + * account, for example, through the iam.serviceAccountTokenCreator role . + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Datascans::initOnce(); + parent::__construct($data); + } + + /** + * Required. Service account email. The datascan will execute with this + * service account's credentials. The user calling this API must have + * permissions to act as this service account. Dataplex service agent must + * be granted iam.serviceAccounts.getAccessToken permission on this service + * account, for example, through the iam.serviceAccountTokenCreator role . + * + * Generated from protobuf field string email = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getEmail() + { + return $this->email; + } + + /** + * Required. Service account email. The datascan will execute with this + * service account's credentials. The user calling this API must have + * permissions to act as this service account. Dataplex service agent must + * be granted iam.serviceAccounts.getAccessToken permission on this service + * account, for example, through the iam.serviceAccountTokenCreator role . + * + * Generated from protobuf field string email = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setEmail($var) + { + GPBUtil::checkString($var, True); + $this->email = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ExecutionIdentity/UserCredential.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ExecutionIdentity/UserCredential.php new file mode 100644 index 000000000000..8efb59845cb0 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ExecutionIdentity/UserCredential.php @@ -0,0 +1,33 @@ +google.cloud.dataplex.v1.ExecutionIdentity.UserCredential + */ +class UserCredential extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Datascans::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GenerateDataQualityRulesRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GenerateDataQualityRulesRequest.php new file mode 100644 index 000000000000..ee94cc9fab3f --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GenerateDataQualityRulesRequest.php @@ -0,0 +1,101 @@ +google.cloud.dataplex.v1.GenerateDataQualityRulesRequest + */ +class GenerateDataQualityRulesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name must be one of the following: + * * The name of a data scan with at least one successful, completed data + * profiling job + * * The name of a successful, completed data profiling job (a data scan job + * where the job type is data profiling) + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $name = ''; + + /** + * @param string $name Required. The name must be one of the following: + * + * * The name of a data scan with at least one successful, completed data + * profiling job + * * The name of a successful, completed data profiling job (a data scan job + * where the job type is data profiling) + * + * @return \Google\Cloud\Dataplex\V1\GenerateDataQualityRulesRequest + * + * @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 must be one of the following: + * * The name of a data scan with at least one successful, completed data + * profiling job + * * The name of a successful, completed data profiling job (a data scan job + * where the job type is data profiling) + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Datascans::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name must be one of the following: + * * The name of a data scan with at least one successful, completed data + * profiling job + * * The name of a successful, completed data profiling job (a data scan job + * where the job type is data profiling) + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name must be one of the following: + * * The name of a data scan with at least one successful, completed data + * profiling job + * * The name of a successful, completed data profiling job (a data scan job + * where the job type is data profiling) + * + * 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; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GenerateDataQualityRulesResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GenerateDataQualityRulesResponse.php new file mode 100644 index 000000000000..af00a06a5900 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GenerateDataQualityRulesResponse.php @@ -0,0 +1,71 @@ +google.cloud.dataplex.v1.GenerateDataQualityRulesResponse + */ +class GenerateDataQualityRulesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The data quality rules that Dataplex Universal Catalog generates based on + * the results of a data profiling scan. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityRule rule = 1; + */ + private $rule; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\DataQualityRule[] $rule + * The data quality rules that Dataplex Universal Catalog generates based on + * the results of a data profiling scan. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Datascans::initOnce(); + parent::__construct($data); + } + + /** + * The data quality rules that Dataplex Universal Catalog generates based on + * the results of a data profiling scan. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityRule rule = 1; + * @return RepeatedField<\Google\Cloud\Dataplex\V1\DataQualityRule> + */ + public function getRule() + { + return $this->rule; + } + + /** + * The data quality rules that Dataplex Universal Catalog generates based on + * the results of a data profiling scan. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityRule rule = 1; + * @param \Google\Cloud\Dataplex\V1\DataQualityRule[] $var + * @return $this + */ + public function setRule($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\DataQualityRule::class); + $this->rule = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetAspectTypeRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetAspectTypeRequest.php new file mode 100644 index 000000000000..a4d6c099e4b5 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetAspectTypeRequest.php @@ -0,0 +1,86 @@ +google.cloud.dataplex.v1.GetAspectTypeRequest + */ +class GetAspectTypeRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the AspectType: + * `projects/{project_number}/locations/{location_id}/aspectTypes/{aspect_type_id}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the AspectType: + * `projects/{project_number}/locations/{location_id}/aspectTypes/{aspect_type_id}`. Please see + * {@see CatalogServiceClient::aspectTypeName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\GetAspectTypeRequest + * + * @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 resource name of the AspectType: + * `projects/{project_number}/locations/{location_id}/aspectTypes/{aspect_type_id}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the AspectType: + * `projects/{project_number}/locations/{location_id}/aspectTypes/{aspect_type_id}`. + * + * 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 resource name of the AspectType: + * `projects/{project_number}/locations/{location_id}/aspectTypes/{aspect_type_id}`. + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetAssetRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetAssetRequest.php new file mode 100644 index 000000000000..147242c0aa58 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetAssetRequest.php @@ -0,0 +1,86 @@ +google.cloud.dataplex.v1.GetAssetRequest + */ +class GetAssetRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the asset: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the asset: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. Please see + * {@see DataplexServiceClient::assetName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\GetAssetRequest + * + * @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 resource name of the asset: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the asset: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. + * + * 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 resource name of the asset: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataAssetRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataAssetRequest.php new file mode 100644 index 000000000000..212d6df9eb18 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataAssetRequest.php @@ -0,0 +1,91 @@ +google.cloud.dataplex.v1.GetDataAssetRequest + */ +class GetDataAssetRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the data asset to retrieve. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}/dataAssets/{data_asset_id} + * + * 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 data asset to retrieve. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}/dataAssets/{data_asset_id} + * Please see {@see DataProductServiceClient::dataAssetName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\GetDataAssetRequest + * + * @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 data asset to retrieve. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}/dataAssets/{data_asset_id} + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataProducts::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the data asset to retrieve. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}/dataAssets/{data_asset_id} + * + * 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 data asset to retrieve. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}/dataAssets/{data_asset_id} + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataAttributeBindingRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataAttributeBindingRequest.php new file mode 100644 index 000000000000..659f6ce1cce0 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataAttributeBindingRequest.php @@ -0,0 +1,86 @@ +google.cloud.dataplex.v1.GetDataAttributeBindingRequest + */ +class GetDataAttributeBindingRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the DataAttributeBinding: + * projects/{project_number}/locations/{location_id}/dataAttributeBindings/{data_attribute_binding_id} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the DataAttributeBinding: + * projects/{project_number}/locations/{location_id}/dataAttributeBindings/{data_attribute_binding_id} + * Please see {@see DataTaxonomyServiceClient::dataAttributeBindingName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\GetDataAttributeBindingRequest + * + * @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 resource name of the DataAttributeBinding: + * projects/{project_number}/locations/{location_id}/dataAttributeBindings/{data_attribute_binding_id} + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataTaxonomy::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the DataAttributeBinding: + * projects/{project_number}/locations/{location_id}/dataAttributeBindings/{data_attribute_binding_id} + * + * 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 resource name of the DataAttributeBinding: + * projects/{project_number}/locations/{location_id}/dataAttributeBindings/{data_attribute_binding_id} + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataAttributeRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataAttributeRequest.php new file mode 100644 index 000000000000..460e54add09c --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataAttributeRequest.php @@ -0,0 +1,86 @@ +google.cloud.dataplex.v1.GetDataAttributeRequest + */ +class GetDataAttributeRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the dataAttribute: + * projects/{project_number}/locations/{location_id}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the dataAttribute: + * projects/{project_number}/locations/{location_id}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id} + * Please see {@see DataTaxonomyServiceClient::dataAttributeName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\GetDataAttributeRequest + * + * @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 resource name of the dataAttribute: + * projects/{project_number}/locations/{location_id}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id} + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataTaxonomy::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the dataAttribute: + * projects/{project_number}/locations/{location_id}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id} + * + * 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 resource name of the dataAttribute: + * projects/{project_number}/locations/{location_id}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id} + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataProductRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataProductRequest.php new file mode 100644 index 000000000000..5d9708d4feef --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataProductRequest.php @@ -0,0 +1,91 @@ +google.cloud.dataplex.v1.GetDataProductRequest + */ +class GetDataProductRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the data product to retrieve. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} + * + * 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 data product to retrieve. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} + * Please see {@see DataProductServiceClient::dataProductName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\GetDataProductRequest + * + * @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 data product to retrieve. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataProducts::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the data product to retrieve. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} + * + * 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 data product to retrieve. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataScanJobRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataScanJobRequest.php new file mode 100644 index 000000000000..098b4b5a7cb0 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataScanJobRequest.php @@ -0,0 +1,130 @@ +google.cloud.dataplex.v1.GetDataScanJobRequest + */ +class GetDataScanJobRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the DataScanJob: + * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}/jobs/{data_scan_job_id}` + * where `project` refers to a *project_id* or *project_number* and + * `location_id` refers to a Google Cloud region. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. Select the DataScanJob view to return. Defaults to `BASIC`. + * + * Generated from protobuf field .google.cloud.dataplex.v1.GetDataScanJobRequest.DataScanJobView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $view = 0; + + /** + * @param string $name Required. The resource name of the DataScanJob: + * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}/jobs/{data_scan_job_id}` + * where `project` refers to a *project_id* or *project_number* and + * `location_id` refers to a Google Cloud region. Please see + * {@see DataScanServiceClient::dataScanJobName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\GetDataScanJobRequest + * + * @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 resource name of the DataScanJob: + * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}/jobs/{data_scan_job_id}` + * where `project` refers to a *project_id* or *project_number* and + * `location_id` refers to a Google Cloud region. + * @type int $view + * Optional. Select the DataScanJob view to return. Defaults to `BASIC`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Datascans::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the DataScanJob: + * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}/jobs/{data_scan_job_id}` + * where `project` refers to a *project_id* or *project_number* and + * `location_id` refers to a Google Cloud region. + * + * 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 resource name of the DataScanJob: + * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}/jobs/{data_scan_job_id}` + * where `project` refers to a *project_id* or *project_number* and + * `location_id` refers to a Google Cloud region. + * + * 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. Select the DataScanJob view to return. Defaults to `BASIC`. + * + * Generated from protobuf field .google.cloud.dataplex.v1.GetDataScanJobRequest.DataScanJobView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getView() + { + return $this->view; + } + + /** + * Optional. Select the DataScanJob view to return. Defaults to `BASIC`. + * + * Generated from protobuf field .google.cloud.dataplex.v1.GetDataScanJobRequest.DataScanJobView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setView($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\GetDataScanJobRequest\DataScanJobView::class); + $this->view = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataScanJobRequest/DataScanJobView.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataScanJobRequest/DataScanJobView.php new file mode 100644 index 000000000000..8aabb5ea909b --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataScanJobRequest/DataScanJobView.php @@ -0,0 +1,61 @@ +google.cloud.dataplex.v1.GetDataScanJobRequest.DataScanJobView + */ +class DataScanJobView +{ + /** + * The API will default to the `BASIC` view. + * + * Generated from protobuf enum DATA_SCAN_JOB_VIEW_UNSPECIFIED = 0; + */ + const DATA_SCAN_JOB_VIEW_UNSPECIFIED = 0; + /** + * Basic view that does not include *spec* and *result*. + * + * Generated from protobuf enum BASIC = 1; + */ + const BASIC = 1; + /** + * Include everything. + * + * Generated from protobuf enum FULL = 10; + */ + const FULL = 10; + + private static $valueToName = [ + self::DATA_SCAN_JOB_VIEW_UNSPECIFIED => 'DATA_SCAN_JOB_VIEW_UNSPECIFIED', + self::BASIC => 'BASIC', + self::FULL => '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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataScanRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataScanRequest.php new file mode 100644 index 000000000000..3a05eba9e3b7 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataScanRequest.php @@ -0,0 +1,130 @@ +google.cloud.dataplex.v1.GetDataScanRequest + */ +class GetDataScanRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the dataScan: + * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}` + * where `project` refers to a *project_id* or *project_number* and + * `location_id` refers to a Google Cloud region. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. Select the DataScan view to return. Defaults to `BASIC`. + * + * Generated from protobuf field .google.cloud.dataplex.v1.GetDataScanRequest.DataScanView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $view = 0; + + /** + * @param string $name Required. The resource name of the dataScan: + * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}` + * where `project` refers to a *project_id* or *project_number* and + * `location_id` refers to a Google Cloud region. Please see + * {@see DataScanServiceClient::dataScanName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\GetDataScanRequest + * + * @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 resource name of the dataScan: + * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}` + * where `project` refers to a *project_id* or *project_number* and + * `location_id` refers to a Google Cloud region. + * @type int $view + * Optional. Select the DataScan view to return. Defaults to `BASIC`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Datascans::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the dataScan: + * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}` + * where `project` refers to a *project_id* or *project_number* and + * `location_id` refers to a Google Cloud region. + * + * 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 resource name of the dataScan: + * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}` + * where `project` refers to a *project_id* or *project_number* and + * `location_id` refers to a Google Cloud region. + * + * 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. Select the DataScan view to return. Defaults to `BASIC`. + * + * Generated from protobuf field .google.cloud.dataplex.v1.GetDataScanRequest.DataScanView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getView() + { + return $this->view; + } + + /** + * Optional. Select the DataScan view to return. Defaults to `BASIC`. + * + * Generated from protobuf field .google.cloud.dataplex.v1.GetDataScanRequest.DataScanView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setView($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\GetDataScanRequest\DataScanView::class); + $this->view = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataScanRequest/DataScanView.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataScanRequest/DataScanView.php new file mode 100644 index 000000000000..9575438b667f --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataScanRequest/DataScanView.php @@ -0,0 +1,61 @@ +google.cloud.dataplex.v1.GetDataScanRequest.DataScanView + */ +class DataScanView +{ + /** + * The API will default to the `BASIC` view. + * + * Generated from protobuf enum DATA_SCAN_VIEW_UNSPECIFIED = 0; + */ + const DATA_SCAN_VIEW_UNSPECIFIED = 0; + /** + * Basic view that does not include *spec* and *result*. + * + * Generated from protobuf enum BASIC = 1; + */ + const BASIC = 1; + /** + * Include everything. + * + * Generated from protobuf enum FULL = 10; + */ + const FULL = 10; + + private static $valueToName = [ + self::DATA_SCAN_VIEW_UNSPECIFIED => 'DATA_SCAN_VIEW_UNSPECIFIED', + self::BASIC => 'BASIC', + self::FULL => '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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataTaxonomyRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataTaxonomyRequest.php new file mode 100644 index 000000000000..edd1bb48a65a --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataTaxonomyRequest.php @@ -0,0 +1,74 @@ +google.cloud.dataplex.v1.GetDataTaxonomyRequest + */ +class GetDataTaxonomyRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Please see {@see DataTaxonomyServiceClient::dataTaxonomyName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\GetDataTaxonomyRequest + * + * @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 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataTaxonomy::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEncryptionConfigRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEncryptionConfigRequest.php new file mode 100644 index 000000000000..4f14141d006a --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEncryptionConfigRequest.php @@ -0,0 +1,81 @@ +google.cloud.dataplex.v1.GetEncryptionConfigRequest + */ +class GetEncryptionConfigRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the EncryptionConfig to fetch. + * + * 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 EncryptionConfig to fetch. Please see + * {@see CmekServiceClient::encryptionConfigName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\GetEncryptionConfigRequest + * + * @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 EncryptionConfig to fetch. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Cmek::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the EncryptionConfig to fetch. + * + * 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 EncryptionConfig to fetch. + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEntityRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEntityRequest.php new file mode 100644 index 000000000000..bc586da3eb95 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEntityRequest.php @@ -0,0 +1,124 @@ +google.cloud.dataplex.v1.GetEntityRequest + */ +class GetEntityRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the entity: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}.` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. Used to select the subset of entity information to return. + * Defaults to `BASIC`. + * + * Generated from protobuf field .google.cloud.dataplex.v1.GetEntityRequest.EntityView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $view = 0; + + /** + * @param string $name Required. The resource name of the entity: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}.` + * Please see {@see MetadataServiceClient::entityName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\GetEntityRequest + * + * @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 resource name of the entity: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}.` + * @type int $view + * Optional. Used to select the subset of entity information to return. + * Defaults to `BASIC`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Metadata::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the entity: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}.` + * + * 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 resource name of the entity: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}.` + * + * 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. Used to select the subset of entity information to return. + * Defaults to `BASIC`. + * + * Generated from protobuf field .google.cloud.dataplex.v1.GetEntityRequest.EntityView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getView() + { + return $this->view; + } + + /** + * Optional. Used to select the subset of entity information to return. + * Defaults to `BASIC`. + * + * Generated from protobuf field .google.cloud.dataplex.v1.GetEntityRequest.EntityView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setView($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\GetEntityRequest\EntityView::class); + $this->view = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEntityRequest/EntityView.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEntityRequest/EntityView.php new file mode 100644 index 000000000000..ded47cbb64d7 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEntityRequest/EntityView.php @@ -0,0 +1,68 @@ +google.cloud.dataplex.v1.GetEntityRequest.EntityView + */ +class EntityView +{ + /** + * The API will default to the `BASIC` view. + * + * Generated from protobuf enum ENTITY_VIEW_UNSPECIFIED = 0; + */ + const ENTITY_VIEW_UNSPECIFIED = 0; + /** + * Minimal view that does not include the schema. + * + * Generated from protobuf enum BASIC = 1; + */ + const BASIC = 1; + /** + * Include basic information and schema. + * + * Generated from protobuf enum SCHEMA = 2; + */ + const SCHEMA = 2; + /** + * Include everything. Currently, this is the same as the SCHEMA view. + * + * Generated from protobuf enum FULL = 4; + */ + const FULL = 4; + + private static $valueToName = [ + self::ENTITY_VIEW_UNSPECIFIED => 'ENTITY_VIEW_UNSPECIFIED', + self::BASIC => 'BASIC', + self::SCHEMA => 'SCHEMA', + self::FULL => '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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEntryGroupRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEntryGroupRequest.php new file mode 100644 index 000000000000..3fb667fcf54e --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEntryGroupRequest.php @@ -0,0 +1,86 @@ +google.cloud.dataplex.v1.GetEntryGroupRequest + */ +class GetEntryGroupRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the EntryGroup: + * `projects/{project_number}/locations/{location_id}/entryGroups/{entry_group_id}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the EntryGroup: + * `projects/{project_number}/locations/{location_id}/entryGroups/{entry_group_id}`. Please see + * {@see CatalogServiceClient::entryGroupName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\GetEntryGroupRequest + * + * @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 resource name of the EntryGroup: + * `projects/{project_number}/locations/{location_id}/entryGroups/{entry_group_id}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the EntryGroup: + * `projects/{project_number}/locations/{location_id}/entryGroups/{entry_group_id}`. + * + * 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 resource name of the EntryGroup: + * `projects/{project_number}/locations/{location_id}/entryGroups/{entry_group_id}`. + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEntryLinkRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEntryLinkRequest.php new file mode 100644 index 000000000000..5bc0c0da16a0 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEntryLinkRequest.php @@ -0,0 +1,86 @@ +google.cloud.dataplex.v1.GetEntryLinkRequest + */ +class GetEntryLinkRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the Entry Link: + * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entryLinks/{entry_link_id}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the Entry Link: + * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entryLinks/{entry_link_id}`. Please see + * {@see CatalogServiceClient::entryLinkName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\GetEntryLinkRequest + * + * @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 resource name of the Entry Link: + * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entryLinks/{entry_link_id}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the Entry Link: + * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entryLinks/{entry_link_id}`. + * + * 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 resource name of the Entry Link: + * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entryLinks/{entry_link_id}`. + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEntryRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEntryRequest.php new file mode 100644 index 000000000000..425cfc062f0b --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEntryRequest.php @@ -0,0 +1,212 @@ +google.cloud.dataplex.v1.GetEntryRequest + */ +class GetEntryRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the Entry: + * `projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. View to control which parts of an entry the service should + * return. + * **Please check the limitations on returned aspects in the Entry view + * documentation. Amount of returned aspects depends on the selected Entry + * View.** + * + * Generated from protobuf field .google.cloud.dataplex.v1.EntryView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $view = 0; + /** + * Optional. Limits the aspects returned to the provided aspect types. + * It only works for CUSTOM view. + * + * Generated from protobuf field repeated string aspect_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $aspect_types; + /** + * Optional. Limits the aspects returned to those associated with the provided + * paths within the Entry. It only works for CUSTOM view. + * + * Generated from protobuf field repeated string paths = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $paths; + + /** + * @param string $name Required. The resource name of the Entry: + * `projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}`. Please see + * {@see CatalogServiceClient::entryName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\GetEntryRequest + * + * @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 resource name of the Entry: + * `projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}`. + * @type int $view + * Optional. View to control which parts of an entry the service should + * return. + * **Please check the limitations on returned aspects in the Entry view + * documentation. Amount of returned aspects depends on the selected Entry + * View.** + * @type string[] $aspect_types + * Optional. Limits the aspects returned to the provided aspect types. + * It only works for CUSTOM view. + * @type string[] $paths + * Optional. Limits the aspects returned to those associated with the provided + * paths within the Entry. It only works for CUSTOM view. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the Entry: + * `projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}`. + * + * 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 resource name of the Entry: + * `projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}`. + * + * 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. View to control which parts of an entry the service should + * return. + * **Please check the limitations on returned aspects in the Entry view + * documentation. Amount of returned aspects depends on the selected Entry + * View.** + * + * Generated from protobuf field .google.cloud.dataplex.v1.EntryView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getView() + { + return $this->view; + } + + /** + * Optional. View to control which parts of an entry the service should + * return. + * **Please check the limitations on returned aspects in the Entry view + * documentation. Amount of returned aspects depends on the selected Entry + * View.** + * + * Generated from protobuf field .google.cloud.dataplex.v1.EntryView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setView($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\EntryView::class); + $this->view = $var; + + return $this; + } + + /** + * Optional. Limits the aspects returned to the provided aspect types. + * It only works for CUSTOM view. + * + * Generated from protobuf field repeated string aspect_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getAspectTypes() + { + return $this->aspect_types; + } + + /** + * Optional. Limits the aspects returned to the provided aspect types. + * It only works for CUSTOM view. + * + * Generated from protobuf field repeated string aspect_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setAspectTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->aspect_types = $arr; + + return $this; + } + + /** + * Optional. Limits the aspects returned to those associated with the provided + * paths within the Entry. It only works for CUSTOM view. + * + * Generated from protobuf field repeated string paths = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getPaths() + { + return $this->paths; + } + + /** + * Optional. Limits the aspects returned to those associated with the provided + * paths within the Entry. It only works for CUSTOM view. + * + * Generated from protobuf field repeated string paths = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setPaths($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->paths = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEntryTypeRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEntryTypeRequest.php new file mode 100644 index 000000000000..8b44476e954b --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEntryTypeRequest.php @@ -0,0 +1,86 @@ +google.cloud.dataplex.v1.GetEntryTypeRequest + */ +class GetEntryTypeRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the EntryType: + * `projects/{project_number}/locations/{location_id}/entryTypes/{entry_type_id}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the EntryType: + * `projects/{project_number}/locations/{location_id}/entryTypes/{entry_type_id}`. Please see + * {@see CatalogServiceClient::entryTypeName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\GetEntryTypeRequest + * + * @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 resource name of the EntryType: + * `projects/{project_number}/locations/{location_id}/entryTypes/{entry_type_id}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the EntryType: + * `projects/{project_number}/locations/{location_id}/entryTypes/{entry_type_id}`. + * + * 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 resource name of the EntryType: + * `projects/{project_number}/locations/{location_id}/entryTypes/{entry_type_id}`. + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetGlossaryCategoryRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetGlossaryCategoryRequest.php new file mode 100644 index 000000000000..2365273dfe74 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetGlossaryCategoryRequest.php @@ -0,0 +1,91 @@ +google.cloud.dataplex.v1.GetGlossaryCategoryRequest + */ +class GetGlossaryCategoryRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the GlossaryCategory to retrieve. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id} + * + * 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 GlossaryCategory to retrieve. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id} + * Please see {@see BusinessGlossaryServiceClient::glossaryCategoryName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\GetGlossaryCategoryRequest + * + * @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 GlossaryCategory to retrieve. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id} + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\BusinessGlossary::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the GlossaryCategory to retrieve. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id} + * + * 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 GlossaryCategory to retrieve. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id} + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetGlossaryRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetGlossaryRequest.php new file mode 100644 index 000000000000..dbcb2179a495 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetGlossaryRequest.php @@ -0,0 +1,91 @@ +google.cloud.dataplex.v1.GetGlossaryRequest + */ +class GetGlossaryRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the Glossary to retrieve. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} + * + * 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 Glossary to retrieve. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} + * Please see {@see BusinessGlossaryServiceClient::glossaryName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\GetGlossaryRequest + * + * @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 Glossary to retrieve. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\BusinessGlossary::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the Glossary to retrieve. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} + * + * 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 Glossary to retrieve. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetGlossaryTermRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetGlossaryTermRequest.php new file mode 100644 index 000000000000..9a79380c0954 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetGlossaryTermRequest.php @@ -0,0 +1,91 @@ +google.cloud.dataplex.v1.GetGlossaryTermRequest + */ +class GetGlossaryTermRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the GlossaryTerm to retrieve. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/terms/{term_id} + * + * 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 GlossaryTerm to retrieve. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/terms/{term_id} + * Please see {@see BusinessGlossaryServiceClient::glossaryTermName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\GetGlossaryTermRequest + * + * @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 GlossaryTerm to retrieve. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/terms/{term_id} + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\BusinessGlossary::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the GlossaryTerm to retrieve. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/terms/{term_id} + * + * 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 GlossaryTerm to retrieve. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/terms/{term_id} + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetJobRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetJobRequest.php new file mode 100644 index 000000000000..ac0be8636aa3 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetJobRequest.php @@ -0,0 +1,86 @@ +google.cloud.dataplex.v1.GetJobRequest + */ +class GetJobRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the job: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}/jobs/{job_id}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the job: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}/jobs/{job_id}`. Please see + * {@see DataplexServiceClient::jobName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\GetJobRequest + * + * @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 resource name of the job: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}/jobs/{job_id}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the job: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}/jobs/{job_id}`. + * + * 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 resource name of the job: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}/jobs/{job_id}`. + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetLakeRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetLakeRequest.php new file mode 100644 index 000000000000..245bcc5e833f --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetLakeRequest.php @@ -0,0 +1,86 @@ +google.cloud.dataplex.v1.GetLakeRequest + */ +class GetLakeRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the lake: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the lake: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. Please see + * {@see DataplexServiceClient::lakeName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\GetLakeRequest + * + * @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 resource name of the lake: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the lake: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. + * + * 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 resource name of the lake: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetMetadataFeedRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetMetadataFeedRequest.php new file mode 100644 index 000000000000..e0e10eba8085 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetMetadataFeedRequest.php @@ -0,0 +1,86 @@ +google.cloud.dataplex.v1.GetMetadataFeedRequest + */ +class GetMetadataFeedRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the metadata feed, in the format + * `projects/{project_id_or_number}/locations/{location_id}/MetadataFeeds/{metadata_feed_id}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the metadata feed, in the format + * `projects/{project_id_or_number}/locations/{location_id}/MetadataFeeds/{metadata_feed_id}`. Please see + * {@see CatalogServiceClient::metadataFeedName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\GetMetadataFeedRequest + * + * @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 resource name of the metadata feed, in the format + * `projects/{project_id_or_number}/locations/{location_id}/MetadataFeeds/{metadata_feed_id}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the metadata feed, in the format + * `projects/{project_id_or_number}/locations/{location_id}/MetadataFeeds/{metadata_feed_id}`. + * + * 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 resource name of the metadata feed, in the format + * `projects/{project_id_or_number}/locations/{location_id}/MetadataFeeds/{metadata_feed_id}`. + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetMetadataJobRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetMetadataJobRequest.php new file mode 100644 index 000000000000..16f4fbe8c486 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetMetadataJobRequest.php @@ -0,0 +1,86 @@ +google.cloud.dataplex.v1.GetMetadataJobRequest + */ +class GetMetadataJobRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the metadata job, in the format + * `projects/{project_id_or_number}/locations/{location_id}/metadataJobs/{metadata_job_id}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the metadata job, in the format + * `projects/{project_id_or_number}/locations/{location_id}/metadataJobs/{metadata_job_id}`. Please see + * {@see CatalogServiceClient::metadataJobName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\GetMetadataJobRequest + * + * @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 resource name of the metadata job, in the format + * `projects/{project_id_or_number}/locations/{location_id}/metadataJobs/{metadata_job_id}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the metadata job, in the format + * `projects/{project_id_or_number}/locations/{location_id}/metadataJobs/{metadata_job_id}`. + * + * 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 resource name of the metadata job, in the format + * `projects/{project_id_or_number}/locations/{location_id}/metadataJobs/{metadata_job_id}`. + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetPartitionRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetPartitionRequest.php new file mode 100644 index 000000000000..0a489b5ddf3a --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetPartitionRequest.php @@ -0,0 +1,96 @@ +google.cloud.dataplex.v1.GetPartitionRequest + */ +class GetPartitionRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the partition: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}/partitions/{partition_value_path}`. + * The {partition_value_path} segment consists of an ordered sequence of + * partition values separated by "/". All values must be provided. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the partition: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}/partitions/{partition_value_path}`. + * The {partition_value_path} segment consists of an ordered sequence of + * partition values separated by "/". All values must be provided. Please see + * {@see MetadataServiceClient::partitionName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\GetPartitionRequest + * + * @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 resource name of the partition: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}/partitions/{partition_value_path}`. + * The {partition_value_path} segment consists of an ordered sequence of + * partition values separated by "/". All values must be provided. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Metadata::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the partition: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}/partitions/{partition_value_path}`. + * The {partition_value_path} segment consists of an ordered sequence of + * partition values separated by "/". All values must be provided. + * + * 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 resource name of the partition: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}/partitions/{partition_value_path}`. + * The {partition_value_path} segment consists of an ordered sequence of + * partition values separated by "/". All values must be provided. + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetTaskRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetTaskRequest.php new file mode 100644 index 000000000000..787c4b059860 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetTaskRequest.php @@ -0,0 +1,86 @@ +google.cloud.dataplex.v1.GetTaskRequest + */ +class GetTaskRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the task: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{tasks_id}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the task: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{tasks_id}`. Please see + * {@see DataplexServiceClient::taskName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\GetTaskRequest + * + * @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 resource name of the task: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{tasks_id}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the task: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{tasks_id}`. + * + * 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 resource name of the task: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{tasks_id}`. + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetZoneRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetZoneRequest.php new file mode 100644 index 000000000000..91601083b194 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetZoneRequest.php @@ -0,0 +1,86 @@ +google.cloud.dataplex.v1.GetZoneRequest + */ +class GetZoneRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the zone: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the zone: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. Please see + * {@see DataplexServiceClient::zoneName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\GetZoneRequest + * + * @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 resource name of the zone: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the zone: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. + * + * 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 resource name of the zone: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Glossary.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Glossary.php new file mode 100644 index 000000000000..bd71da1af5a4 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Glossary.php @@ -0,0 +1,427 @@ +google.cloud.dataplex.v1.Glossary + */ +class Glossary extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Identifier. The resource name of the Glossary. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. System generated unique id for the Glossary. This ID will be + * different if the Glossary is deleted and re-created with the + * same name. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { + */ + protected $uid = ''; + /** + * Optional. User friendly display name of the Glossary. This is user-mutable. + * This will be same as the GlossaryId, if not specified. + * + * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $display_name = ''; + /** + * Optional. The user-mutable description of the Glossary. + * + * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Output only. The time at which the Glossary was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The time at which the Glossary was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Optional. User-defined labels for the Glossary. + * + * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $labels; + /** + * Output only. The number of GlossaryTerms in the Glossary. + * + * Generated from protobuf field int32 term_count = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $term_count = 0; + /** + * Output only. The number of GlossaryCategories in the Glossary. + * + * Generated from protobuf field int32 category_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $category_count = 0; + /** + * Optional. Needed for resource freshness validation. + * This checksum is computed by the server based on the value of other + * fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $etag = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Identifier. The resource name of the Glossary. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} + * @type string $uid + * Output only. System generated unique id for the Glossary. This ID will be + * different if the Glossary is deleted and re-created with the + * same name. + * @type string $display_name + * Optional. User friendly display name of the Glossary. This is user-mutable. + * This will be same as the GlossaryId, if not specified. + * @type string $description + * Optional. The user-mutable description of the Glossary. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time at which the Glossary was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time at which the Glossary was last updated. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Optional. User-defined labels for the Glossary. + * @type int $term_count + * Output only. The number of GlossaryTerms in the Glossary. + * @type int $category_count + * Output only. The number of GlossaryCategories in the Glossary. + * @type string $etag + * Optional. Needed for resource freshness validation. + * This checksum is computed by the server based on the value of other + * fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\BusinessGlossary::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Identifier. The resource name of the Glossary. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Identifier. The resource name of the Glossary. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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. System generated unique id for the Glossary. This ID will be + * different if the Glossary is deleted and re-created with the + * same name. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { + * @return string + */ + public function getUid() + { + return $this->uid; + } + + /** + * Output only. System generated unique id for the Glossary. This ID will be + * different if the Glossary is deleted and re-created with the + * same name. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setUid($var) + { + GPBUtil::checkString($var, True); + $this->uid = $var; + + return $this; + } + + /** + * Optional. User friendly display name of the Glossary. This is user-mutable. + * This will be same as the GlossaryId, if not specified. + * + * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Optional. User friendly display name of the Glossary. This is user-mutable. + * This will be same as the GlossaryId, if not specified. + * + * Generated from protobuf field string display_name = 3 [(.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 user-mutable description of the Glossary. + * + * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. The user-mutable description of the Glossary. + * + * 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; + } + + /** + * Output only. The time at which the Glossary was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.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 Glossary was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.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 Glossary was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.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 Glossary was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.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. User-defined labels for the Glossary. + * + * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Optional. User-defined labels for the Glossary. + * + * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Output only. The number of GlossaryTerms in the Glossary. + * + * Generated from protobuf field int32 term_count = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getTermCount() + { + return $this->term_count; + } + + /** + * Output only. The number of GlossaryTerms in the Glossary. + * + * Generated from protobuf field int32 term_count = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setTermCount($var) + { + GPBUtil::checkInt32($var); + $this->term_count = $var; + + return $this; + } + + /** + * Output only. The number of GlossaryCategories in the Glossary. + * + * Generated from protobuf field int32 category_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getCategoryCount() + { + return $this->category_count; + } + + /** + * Output only. The number of GlossaryCategories in the Glossary. + * + * Generated from protobuf field int32 category_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setCategoryCount($var) + { + GPBUtil::checkInt32($var); + $this->category_count = $var; + + return $this; + } + + /** + * Optional. Needed for resource freshness validation. + * This checksum is computed by the server based on the value of other + * fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEtag() + { + return $this->etag; + } + + /** + * Optional. Needed for resource freshness validation. + * This checksum is computed by the server based on the value of other + * fields, and may be sent on update and delete requests to ensure the + * client has an up-to-date value before proceeding. + * + * Generated from protobuf field string etag = 10 [(.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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GlossaryCategory.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GlossaryCategory.php new file mode 100644 index 000000000000..dcc70bf8adda --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GlossaryCategory.php @@ -0,0 +1,370 @@ +google.cloud.dataplex.v1.GlossaryCategory + */ +class GlossaryCategory extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Identifier. The resource name of the GlossaryCategory. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. System generated unique id for the GlossaryCategory. This ID + * will be different if the GlossaryCategory is deleted and re-created with + * the same name. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { + */ + protected $uid = ''; + /** + * Optional. User friendly display name of the GlossaryCategory. This is + * user-mutable. This will be same as the GlossaryCategoryId, if not + * specified. + * + * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $display_name = ''; + /** + * Optional. The user-mutable description of the GlossaryCategory. + * + * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Output only. The time at which the GlossaryCategory was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The time at which the GlossaryCategory was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Optional. User-defined labels for the GlossaryCategory. + * + * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $labels; + /** + * Required. The immediate parent of the GlossaryCategory in the + * resource-hierarchy. It can either be a Glossary or a GlossaryCategory. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} + * OR + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id} + * + * Generated from protobuf field string parent = 8 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $parent = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Identifier. The resource name of the GlossaryCategory. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id} + * @type string $uid + * Output only. System generated unique id for the GlossaryCategory. This ID + * will be different if the GlossaryCategory is deleted and re-created with + * the same name. + * @type string $display_name + * Optional. User friendly display name of the GlossaryCategory. This is + * user-mutable. This will be same as the GlossaryCategoryId, if not + * specified. + * @type string $description + * Optional. The user-mutable description of the GlossaryCategory. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time at which the GlossaryCategory was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time at which the GlossaryCategory was last updated. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Optional. User-defined labels for the GlossaryCategory. + * @type string $parent + * Required. The immediate parent of the GlossaryCategory in the + * resource-hierarchy. It can either be a Glossary or a GlossaryCategory. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} + * OR + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id} + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\BusinessGlossary::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Identifier. The resource name of the GlossaryCategory. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Identifier. The resource name of the GlossaryCategory. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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. System generated unique id for the GlossaryCategory. This ID + * will be different if the GlossaryCategory is deleted and re-created with + * the same name. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { + * @return string + */ + public function getUid() + { + return $this->uid; + } + + /** + * Output only. System generated unique id for the GlossaryCategory. This ID + * will be different if the GlossaryCategory is deleted and re-created with + * the same name. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setUid($var) + { + GPBUtil::checkString($var, True); + $this->uid = $var; + + return $this; + } + + /** + * Optional. User friendly display name of the GlossaryCategory. This is + * user-mutable. This will be same as the GlossaryCategoryId, if not + * specified. + * + * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Optional. User friendly display name of the GlossaryCategory. This is + * user-mutable. This will be same as the GlossaryCategoryId, if not + * specified. + * + * Generated from protobuf field string display_name = 3 [(.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 user-mutable description of the GlossaryCategory. + * + * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. The user-mutable description of the GlossaryCategory. + * + * 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; + } + + /** + * Output only. The time at which the GlossaryCategory was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.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 GlossaryCategory was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.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 GlossaryCategory was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.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 GlossaryCategory was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.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. User-defined labels for the GlossaryCategory. + * + * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Optional. User-defined labels for the GlossaryCategory. + * + * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Required. The immediate parent of the GlossaryCategory in the + * resource-hierarchy. It can either be a Glossary or a GlossaryCategory. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} + * OR + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id} + * + * Generated from protobuf field string parent = 8 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The immediate parent of the GlossaryCategory in the + * resource-hierarchy. It can either be a Glossary or a GlossaryCategory. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} + * OR + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id} + * + * Generated from protobuf field string parent = 8 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GlossaryTerm.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GlossaryTerm.php new file mode 100644 index 000000000000..fe99add30223 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GlossaryTerm.php @@ -0,0 +1,367 @@ +google.cloud.dataplex.v1.GlossaryTerm + */ +class GlossaryTerm extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Identifier. The resource name of the GlossaryTerm. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/terms/{term_id} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. System generated unique id for the GlossaryTerm. This ID will + * be different if the GlossaryTerm is deleted and re-created with the same + * name. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { + */ + protected $uid = ''; + /** + * Optional. User friendly display name of the GlossaryTerm. This is + * user-mutable. This will be same as the GlossaryTermId, if not specified. + * + * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $display_name = ''; + /** + * Optional. The user-mutable description of the GlossaryTerm. + * + * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Output only. The time at which the GlossaryTerm was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The time at which the GlossaryTerm was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Optional. User-defined labels for the GlossaryTerm. + * + * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $labels; + /** + * Required. The immediate parent of the GlossaryTerm in the + * resource-hierarchy. It can either be a Glossary or a GlossaryCategory. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} + * OR + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id} + * + * Generated from protobuf field string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Identifier. The resource name of the GlossaryTerm. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/terms/{term_id} + * @type string $uid + * Output only. System generated unique id for the GlossaryTerm. This ID will + * be different if the GlossaryTerm is deleted and re-created with the same + * name. + * @type string $display_name + * Optional. User friendly display name of the GlossaryTerm. This is + * user-mutable. This will be same as the GlossaryTermId, if not specified. + * @type string $description + * Optional. The user-mutable description of the GlossaryTerm. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time at which the GlossaryTerm was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time at which the GlossaryTerm was last updated. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Optional. User-defined labels for the GlossaryTerm. + * @type string $parent + * Required. The immediate parent of the GlossaryTerm in the + * resource-hierarchy. It can either be a Glossary or a GlossaryCategory. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} + * OR + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id} + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\BusinessGlossary::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Identifier. The resource name of the GlossaryTerm. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/terms/{term_id} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Identifier. The resource name of the GlossaryTerm. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/terms/{term_id} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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. System generated unique id for the GlossaryTerm. This ID will + * be different if the GlossaryTerm is deleted and re-created with the same + * name. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { + * @return string + */ + public function getUid() + { + return $this->uid; + } + + /** + * Output only. System generated unique id for the GlossaryTerm. This ID will + * be different if the GlossaryTerm is deleted and re-created with the same + * name. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setUid($var) + { + GPBUtil::checkString($var, True); + $this->uid = $var; + + return $this; + } + + /** + * Optional. User friendly display name of the GlossaryTerm. This is + * user-mutable. This will be same as the GlossaryTermId, if not specified. + * + * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Optional. User friendly display name of the GlossaryTerm. This is + * user-mutable. This will be same as the GlossaryTermId, if not specified. + * + * Generated from protobuf field string display_name = 3 [(.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 user-mutable description of the GlossaryTerm. + * + * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. The user-mutable description of the GlossaryTerm. + * + * 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; + } + + /** + * Output only. The time at which the GlossaryTerm was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.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 GlossaryTerm was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.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 GlossaryTerm was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.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 GlossaryTerm was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.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. User-defined labels for the GlossaryTerm. + * + * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Optional. User-defined labels for the GlossaryTerm. + * + * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Required. The immediate parent of the GlossaryTerm in the + * resource-hierarchy. It can either be a Glossary or a GlossaryCategory. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} + * OR + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id} + * + * Generated from protobuf field string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The immediate parent of the GlossaryTerm in the + * resource-hierarchy. It can either be a Glossary or a GlossaryCategory. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} + * OR + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id} + * + * Generated from protobuf field string parent = 8 [(.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; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GovernanceEvent.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GovernanceEvent.php new file mode 100644 index 000000000000..1b178e4ae45d --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GovernanceEvent.php @@ -0,0 +1,149 @@ +google.cloud.dataplex.v1.GovernanceEvent + */ +class GovernanceEvent extends \Google\Protobuf\Internal\Message +{ + /** + * The log message. + * + * Generated from protobuf field string message = 1; + */ + protected $message = ''; + /** + * The type of the event. + * + * Generated from protobuf field .google.cloud.dataplex.v1.GovernanceEvent.EventType event_type = 2; + */ + protected $event_type = 0; + /** + * Entity resource information if the log event is associated with a + * specific entity. + * + * Generated from protobuf field optional .google.cloud.dataplex.v1.GovernanceEvent.Entity entity = 3; + */ + protected $entity = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $message + * The log message. + * @type int $event_type + * The type of the event. + * @type \Google\Cloud\Dataplex\V1\GovernanceEvent\Entity $entity + * Entity resource information if the log event is associated with a + * specific entity. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Logs::initOnce(); + parent::__construct($data); + } + + /** + * The log message. + * + * Generated from protobuf field string message = 1; + * @return string + */ + public function getMessage() + { + return $this->message; + } + + /** + * The log message. + * + * Generated from protobuf field string message = 1; + * @param string $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkString($var, True); + $this->message = $var; + + return $this; + } + + /** + * The type of the event. + * + * Generated from protobuf field .google.cloud.dataplex.v1.GovernanceEvent.EventType event_type = 2; + * @return int + */ + public function getEventType() + { + return $this->event_type; + } + + /** + * The type of the event. + * + * Generated from protobuf field .google.cloud.dataplex.v1.GovernanceEvent.EventType event_type = 2; + * @param int $var + * @return $this + */ + public function setEventType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\GovernanceEvent\EventType::class); + $this->event_type = $var; + + return $this; + } + + /** + * Entity resource information if the log event is associated with a + * specific entity. + * + * Generated from protobuf field optional .google.cloud.dataplex.v1.GovernanceEvent.Entity entity = 3; + * @return \Google\Cloud\Dataplex\V1\GovernanceEvent\Entity|null + */ + public function getEntity() + { + return $this->entity; + } + + public function hasEntity() + { + return isset($this->entity); + } + + public function clearEntity() + { + unset($this->entity); + } + + /** + * Entity resource information if the log event is associated with a + * specific entity. + * + * Generated from protobuf field optional .google.cloud.dataplex.v1.GovernanceEvent.Entity entity = 3; + * @param \Google\Cloud\Dataplex\V1\GovernanceEvent\Entity $var + * @return $this + */ + public function setEntity($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\GovernanceEvent\Entity::class); + $this->entity = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GovernanceEvent/Entity.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GovernanceEvent/Entity.php new file mode 100644 index 000000000000..c8bdbe16d13d --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GovernanceEvent/Entity.php @@ -0,0 +1,109 @@ +google.cloud.dataplex.v1.GovernanceEvent.Entity + */ +class Entity extends \Google\Protobuf\Internal\Message +{ + /** + * The Entity resource the log event is associated with. + * Format: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}` + * + * Generated from protobuf field string entity = 1 [(.google.api.resource_reference) = { + */ + protected $entity = ''; + /** + * Type of entity. + * + * Generated from protobuf field .google.cloud.dataplex.v1.GovernanceEvent.Entity.EntityType entity_type = 2; + */ + protected $entity_type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $entity + * The Entity resource the log event is associated with. + * Format: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}` + * @type int $entity_type + * Type of entity. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Logs::initOnce(); + parent::__construct($data); + } + + /** + * The Entity resource the log event is associated with. + * Format: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}` + * + * Generated from protobuf field string entity = 1 [(.google.api.resource_reference) = { + * @return string + */ + public function getEntity() + { + return $this->entity; + } + + /** + * The Entity resource the log event is associated with. + * Format: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}` + * + * Generated from protobuf field string entity = 1 [(.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setEntity($var) + { + GPBUtil::checkString($var, True); + $this->entity = $var; + + return $this; + } + + /** + * Type of entity. + * + * Generated from protobuf field .google.cloud.dataplex.v1.GovernanceEvent.Entity.EntityType entity_type = 2; + * @return int + */ + public function getEntityType() + { + return $this->entity_type; + } + + /** + * Type of entity. + * + * Generated from protobuf field .google.cloud.dataplex.v1.GovernanceEvent.Entity.EntityType entity_type = 2; + * @param int $var + * @return $this + */ + public function setEntityType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\GovernanceEvent\Entity\EntityType::class); + $this->entity_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GovernanceEvent/Entity/EntityType.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GovernanceEvent/Entity/EntityType.php new file mode 100644 index 000000000000..9010d27cc00e --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GovernanceEvent/Entity/EntityType.php @@ -0,0 +1,61 @@ +google.cloud.dataplex.v1.GovernanceEvent.Entity.EntityType + */ +class EntityType +{ + /** + * An unspecified Entity type. + * + * Generated from protobuf enum ENTITY_TYPE_UNSPECIFIED = 0; + */ + const ENTITY_TYPE_UNSPECIFIED = 0; + /** + * Table entity type. + * + * Generated from protobuf enum TABLE = 1; + */ + const TABLE = 1; + /** + * Fileset entity type. + * + * Generated from protobuf enum FILESET = 2; + */ + const FILESET = 2; + + private static $valueToName = [ + self::ENTITY_TYPE_UNSPECIFIED => 'ENTITY_TYPE_UNSPECIFIED', + self::TABLE => 'TABLE', + self::FILESET => 'FILESET', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GovernanceEvent/EventType.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GovernanceEvent/EventType.php new file mode 100644 index 000000000000..73aaa03e675d --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GovernanceEvent/EventType.php @@ -0,0 +1,159 @@ +google.cloud.dataplex.v1.GovernanceEvent.EventType + */ +class EventType +{ + /** + * An unspecified event type. + * + * Generated from protobuf enum EVENT_TYPE_UNSPECIFIED = 0; + */ + const EVENT_TYPE_UNSPECIFIED = 0; + /** + * Resource IAM policy update event. + * + * Generated from protobuf enum RESOURCE_IAM_POLICY_UPDATE = 1; + */ + const RESOURCE_IAM_POLICY_UPDATE = 1; + /** + * BigQuery table create event. + * + * Generated from protobuf enum BIGQUERY_TABLE_CREATE = 2; + */ + const BIGQUERY_TABLE_CREATE = 2; + /** + * BigQuery table update event. + * + * Generated from protobuf enum BIGQUERY_TABLE_UPDATE = 3; + */ + const BIGQUERY_TABLE_UPDATE = 3; + /** + * BigQuery table delete event. + * + * Generated from protobuf enum BIGQUERY_TABLE_DELETE = 4; + */ + const BIGQUERY_TABLE_DELETE = 4; + /** + * BigQuery connection create event. + * + * Generated from protobuf enum BIGQUERY_CONNECTION_CREATE = 5; + */ + const BIGQUERY_CONNECTION_CREATE = 5; + /** + * BigQuery connection update event. + * + * Generated from protobuf enum BIGQUERY_CONNECTION_UPDATE = 6; + */ + const BIGQUERY_CONNECTION_UPDATE = 6; + /** + * BigQuery connection delete event. + * + * Generated from protobuf enum BIGQUERY_CONNECTION_DELETE = 7; + */ + const BIGQUERY_CONNECTION_DELETE = 7; + /** + * BigQuery taxonomy created. + * + * Generated from protobuf enum BIGQUERY_TAXONOMY_CREATE = 10; + */ + const BIGQUERY_TAXONOMY_CREATE = 10; + /** + * BigQuery policy tag created. + * + * Generated from protobuf enum BIGQUERY_POLICY_TAG_CREATE = 11; + */ + const BIGQUERY_POLICY_TAG_CREATE = 11; + /** + * BigQuery policy tag deleted. + * + * Generated from protobuf enum BIGQUERY_POLICY_TAG_DELETE = 12; + */ + const BIGQUERY_POLICY_TAG_DELETE = 12; + /** + * BigQuery set iam policy for policy tag. + * + * Generated from protobuf enum BIGQUERY_POLICY_TAG_SET_IAM_POLICY = 13; + */ + const BIGQUERY_POLICY_TAG_SET_IAM_POLICY = 13; + /** + * Access policy update event. + * + * Generated from protobuf enum ACCESS_POLICY_UPDATE = 14; + */ + const ACCESS_POLICY_UPDATE = 14; + /** + * Number of resources matched with particular Query. + * + * Generated from protobuf enum GOVERNANCE_RULE_MATCHED_RESOURCES = 15; + */ + const GOVERNANCE_RULE_MATCHED_RESOURCES = 15; + /** + * Rule processing exceeds the allowed limit. + * + * Generated from protobuf enum GOVERNANCE_RULE_SEARCH_LIMIT_EXCEEDS = 16; + */ + const GOVERNANCE_RULE_SEARCH_LIMIT_EXCEEDS = 16; + /** + * Rule processing errors. + * + * Generated from protobuf enum GOVERNANCE_RULE_ERRORS = 17; + */ + const GOVERNANCE_RULE_ERRORS = 17; + /** + * Governance rule processing Event. + * + * Generated from protobuf enum GOVERNANCE_RULE_PROCESSING = 18; + */ + const GOVERNANCE_RULE_PROCESSING = 18; + + private static $valueToName = [ + self::EVENT_TYPE_UNSPECIFIED => 'EVENT_TYPE_UNSPECIFIED', + self::RESOURCE_IAM_POLICY_UPDATE => 'RESOURCE_IAM_POLICY_UPDATE', + self::BIGQUERY_TABLE_CREATE => 'BIGQUERY_TABLE_CREATE', + self::BIGQUERY_TABLE_UPDATE => 'BIGQUERY_TABLE_UPDATE', + self::BIGQUERY_TABLE_DELETE => 'BIGQUERY_TABLE_DELETE', + self::BIGQUERY_CONNECTION_CREATE => 'BIGQUERY_CONNECTION_CREATE', + self::BIGQUERY_CONNECTION_UPDATE => 'BIGQUERY_CONNECTION_UPDATE', + self::BIGQUERY_CONNECTION_DELETE => 'BIGQUERY_CONNECTION_DELETE', + self::BIGQUERY_TAXONOMY_CREATE => 'BIGQUERY_TAXONOMY_CREATE', + self::BIGQUERY_POLICY_TAG_CREATE => 'BIGQUERY_POLICY_TAG_CREATE', + self::BIGQUERY_POLICY_TAG_DELETE => 'BIGQUERY_POLICY_TAG_DELETE', + self::BIGQUERY_POLICY_TAG_SET_IAM_POLICY => 'BIGQUERY_POLICY_TAG_SET_IAM_POLICY', + self::ACCESS_POLICY_UPDATE => 'ACCESS_POLICY_UPDATE', + self::GOVERNANCE_RULE_MATCHED_RESOURCES => 'GOVERNANCE_RULE_MATCHED_RESOURCES', + self::GOVERNANCE_RULE_SEARCH_LIMIT_EXCEEDS => 'GOVERNANCE_RULE_SEARCH_LIMIT_EXCEEDS', + self::GOVERNANCE_RULE_ERRORS => 'GOVERNANCE_RULE_ERRORS', + self::GOVERNANCE_RULE_PROCESSING => 'GOVERNANCE_RULE_PROCESSING', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ImportItem.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ImportItem.php new file mode 100644 index 000000000000..000eb8b72585 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ImportItem.php @@ -0,0 +1,329 @@ +google.cloud.dataplex.v1.ImportItem + */ +class ImportItem extends \Google\Protobuf\Internal\Message +{ + /** + * Information about an entry and its attached aspects. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Entry entry = 1; + */ + protected $entry = null; + /** + * Information about the entry link. User should provide either one of the + * entry or entry_link. While providing entry_link, user should not + * provide update_mask and aspect_keys. + * + * Generated from protobuf field .google.cloud.dataplex.v1.EntryLink entry_link = 4; + */ + protected $entry_link = null; + /** + * The fields to update, in paths that are relative to the `Entry` resource. + * Separate each field with a comma. + * In `FULL` entry sync mode, Dataplex Universal Catalog includes the paths of + * all of the fields for an entry that can be modified, including aspects. + * This means that Dataplex Universal Catalog replaces the existing entry with + * the entry in the metadata import file. All modifiable fields are updated, + * regardless of the fields that are listed in the update mask, and regardless + * of whether a field is present in the `entry` object. + * The `update_mask` field is ignored when an entry is created or re-created. + * In an aspect-only metadata job (when entry sync mode is `NONE`), set this + * value to `aspects`. + * Dataplex Universal Catalog also determines which entries and aspects to + * modify by comparing the values and timestamps that you provide in the + * metadata import file with the values and timestamps that exist in your + * project. For more information, see [Comparison + * logic](https://cloud.google.com/dataplex/docs/import-metadata#data-modification-logic). + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; + */ + protected $update_mask = null; + /** + * The aspects to modify. Supports the following syntaxes: + * * `{aspect_type_reference}`: matches aspects that belong to the specified + * aspect type and are attached directly to the entry. + * * `{aspect_type_reference}\@{path}`: matches aspects that belong to the + * specified aspect type and path. + * * `{aspect_type_reference}\@*` : matches aspects of the given type for all + * paths. + * * `*\@path` : matches aspects of all types on the given path. + * Replace `{aspect_type_reference}` with a reference to the aspect type, in + * the format + * `{project_id_or_number}.{location_id}.{aspect_type_id}`. + * In `FULL` entry sync mode, if you leave this field empty, it is treated as + * specifying exactly those aspects that are present within the specified + * entry. Dataplex Universal Catalog implicitly adds the keys for all of the + * required aspects of an entry. + * + * Generated from protobuf field repeated string aspect_keys = 3; + */ + private $aspect_keys; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\Entry $entry + * Information about an entry and its attached aspects. + * @type \Google\Cloud\Dataplex\V1\EntryLink $entry_link + * Information about the entry link. User should provide either one of the + * entry or entry_link. While providing entry_link, user should not + * provide update_mask and aspect_keys. + * @type \Google\Protobuf\FieldMask $update_mask + * The fields to update, in paths that are relative to the `Entry` resource. + * Separate each field with a comma. + * In `FULL` entry sync mode, Dataplex Universal Catalog includes the paths of + * all of the fields for an entry that can be modified, including aspects. + * This means that Dataplex Universal Catalog replaces the existing entry with + * the entry in the metadata import file. All modifiable fields are updated, + * regardless of the fields that are listed in the update mask, and regardless + * of whether a field is present in the `entry` object. + * The `update_mask` field is ignored when an entry is created or re-created. + * In an aspect-only metadata job (when entry sync mode is `NONE`), set this + * value to `aspects`. + * Dataplex Universal Catalog also determines which entries and aspects to + * modify by comparing the values and timestamps that you provide in the + * metadata import file with the values and timestamps that exist in your + * project. For more information, see [Comparison + * logic](https://cloud.google.com/dataplex/docs/import-metadata#data-modification-logic). + * @type string[] $aspect_keys + * The aspects to modify. Supports the following syntaxes: + * * `{aspect_type_reference}`: matches aspects that belong to the specified + * aspect type and are attached directly to the entry. + * * `{aspect_type_reference}\@{path}`: matches aspects that belong to the + * specified aspect type and path. + * * `{aspect_type_reference}\@*` : matches aspects of the given type for all + * paths. + * * `*\@path` : matches aspects of all types on the given path. + * Replace `{aspect_type_reference}` with a reference to the aspect type, in + * the format + * `{project_id_or_number}.{location_id}.{aspect_type_id}`. + * In `FULL` entry sync mode, if you leave this field empty, it is treated as + * specifying exactly those aspects that are present within the specified + * entry. Dataplex Universal Catalog implicitly adds the keys for all of the + * required aspects of an entry. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Information about an entry and its attached aspects. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Entry entry = 1; + * @return \Google\Cloud\Dataplex\V1\Entry|null + */ + public function getEntry() + { + return $this->entry; + } + + public function hasEntry() + { + return isset($this->entry); + } + + public function clearEntry() + { + unset($this->entry); + } + + /** + * Information about an entry and its attached aspects. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Entry entry = 1; + * @param \Google\Cloud\Dataplex\V1\Entry $var + * @return $this + */ + public function setEntry($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Entry::class); + $this->entry = $var; + + return $this; + } + + /** + * Information about the entry link. User should provide either one of the + * entry or entry_link. While providing entry_link, user should not + * provide update_mask and aspect_keys. + * + * Generated from protobuf field .google.cloud.dataplex.v1.EntryLink entry_link = 4; + * @return \Google\Cloud\Dataplex\V1\EntryLink|null + */ + public function getEntryLink() + { + return $this->entry_link; + } + + public function hasEntryLink() + { + return isset($this->entry_link); + } + + public function clearEntryLink() + { + unset($this->entry_link); + } + + /** + * Information about the entry link. User should provide either one of the + * entry or entry_link. While providing entry_link, user should not + * provide update_mask and aspect_keys. + * + * Generated from protobuf field .google.cloud.dataplex.v1.EntryLink entry_link = 4; + * @param \Google\Cloud\Dataplex\V1\EntryLink $var + * @return $this + */ + public function setEntryLink($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\EntryLink::class); + $this->entry_link = $var; + + return $this; + } + + /** + * The fields to update, in paths that are relative to the `Entry` resource. + * Separate each field with a comma. + * In `FULL` entry sync mode, Dataplex Universal Catalog includes the paths of + * all of the fields for an entry that can be modified, including aspects. + * This means that Dataplex Universal Catalog replaces the existing entry with + * the entry in the metadata import file. All modifiable fields are updated, + * regardless of the fields that are listed in the update mask, and regardless + * of whether a field is present in the `entry` object. + * The `update_mask` field is ignored when an entry is created or re-created. + * In an aspect-only metadata job (when entry sync mode is `NONE`), set this + * value to `aspects`. + * Dataplex Universal Catalog also determines which entries and aspects to + * modify by comparing the values and timestamps that you provide in the + * metadata import file with the values and timestamps that exist in your + * project. For more information, see [Comparison + * logic](https://cloud.google.com/dataplex/docs/import-metadata#data-modification-logic). + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; + * @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); + } + + /** + * The fields to update, in paths that are relative to the `Entry` resource. + * Separate each field with a comma. + * In `FULL` entry sync mode, Dataplex Universal Catalog includes the paths of + * all of the fields for an entry that can be modified, including aspects. + * This means that Dataplex Universal Catalog replaces the existing entry with + * the entry in the metadata import file. All modifiable fields are updated, + * regardless of the fields that are listed in the update mask, and regardless + * of whether a field is present in the `entry` object. + * The `update_mask` field is ignored when an entry is created or re-created. + * In an aspect-only metadata job (when entry sync mode is `NONE`), set this + * value to `aspects`. + * Dataplex Universal Catalog also determines which entries and aspects to + * modify by comparing the values and timestamps that you provide in the + * metadata import file with the values and timestamps that exist in your + * project. For more information, see [Comparison + * logic](https://cloud.google.com/dataplex/docs/import-metadata#data-modification-logic). + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + + /** + * The aspects to modify. Supports the following syntaxes: + * * `{aspect_type_reference}`: matches aspects that belong to the specified + * aspect type and are attached directly to the entry. + * * `{aspect_type_reference}\@{path}`: matches aspects that belong to the + * specified aspect type and path. + * * `{aspect_type_reference}\@*` : matches aspects of the given type for all + * paths. + * * `*\@path` : matches aspects of all types on the given path. + * Replace `{aspect_type_reference}` with a reference to the aspect type, in + * the format + * `{project_id_or_number}.{location_id}.{aspect_type_id}`. + * In `FULL` entry sync mode, if you leave this field empty, it is treated as + * specifying exactly those aspects that are present within the specified + * entry. Dataplex Universal Catalog implicitly adds the keys for all of the + * required aspects of an entry. + * + * Generated from protobuf field repeated string aspect_keys = 3; + * @return RepeatedField + */ + public function getAspectKeys() + { + return $this->aspect_keys; + } + + /** + * The aspects to modify. Supports the following syntaxes: + * * `{aspect_type_reference}`: matches aspects that belong to the specified + * aspect type and are attached directly to the entry. + * * `{aspect_type_reference}\@{path}`: matches aspects that belong to the + * specified aspect type and path. + * * `{aspect_type_reference}\@*` : matches aspects of the given type for all + * paths. + * * `*\@path` : matches aspects of all types on the given path. + * Replace `{aspect_type_reference}` with a reference to the aspect type, in + * the format + * `{project_id_or_number}.{location_id}.{aspect_type_id}`. + * In `FULL` entry sync mode, if you leave this field empty, it is treated as + * specifying exactly those aspects that are present within the specified + * entry. Dataplex Universal Catalog implicitly adds the keys for all of the + * required aspects of an entry. + * + * Generated from protobuf field repeated string aspect_keys = 3; + * @param string[] $var + * @return $this + */ + public function setAspectKeys($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->aspect_keys = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Job.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Job.php new file mode 100644 index 000000000000..6d7e4768d7a5 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Job.php @@ -0,0 +1,483 @@ +google.cloud.dataplex.v1.Job + */ +class Job extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The relative resource name of the job, of the form: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}/jobs/{job_id}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Output only. System generated globally unique ID for the job. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $uid = ''; + /** + * Output only. The time when the job was started. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $start_time = null; + /** + * Output only. The time when the job ended. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $end_time = null; + /** + * Output only. Execution state for the job. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Job.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Output only. The number of times the job has been retried (excluding the + * initial attempt). + * + * Generated from protobuf field uint32 retry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $retry_count = 0; + /** + * Output only. The underlying service running a job. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Job.Service service = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $service = 0; + /** + * Output only. The full resource name for the job run under a particular + * service. + * + * Generated from protobuf field string service_job = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $service_job = ''; + /** + * Output only. Additional information about the current state. + * + * Generated from protobuf field string message = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $message = ''; + /** + * Output only. User-defined labels for the task. + * + * Generated from protobuf field map labels = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $labels; + /** + * Output only. Job execution trigger. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Job.Trigger trigger = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $trigger = 0; + /** + * Output only. Spec related to how a task is executed. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Task.ExecutionSpec execution_spec = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $execution_spec = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. The relative resource name of the job, of the form: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}/jobs/{job_id}`. + * @type string $uid + * Output only. System generated globally unique ID for the job. + * @type \Google\Protobuf\Timestamp $start_time + * Output only. The time when the job was started. + * @type \Google\Protobuf\Timestamp $end_time + * Output only. The time when the job ended. + * @type int $state + * Output only. Execution state for the job. + * @type int $retry_count + * Output only. The number of times the job has been retried (excluding the + * initial attempt). + * @type int $service + * Output only. The underlying service running a job. + * @type string $service_job + * Output only. The full resource name for the job run under a particular + * service. + * @type string $message + * Output only. Additional information about the current state. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Output only. User-defined labels for the task. + * @type int $trigger + * Output only. Job execution trigger. + * @type \Google\Cloud\Dataplex\V1\Task\ExecutionSpec $execution_spec + * Output only. Spec related to how a task is executed. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Tasks::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The relative resource name of the job, of the form: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}/jobs/{job_id}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. The relative resource name of the job, of the form: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}/jobs/{job_id}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. System generated globally unique ID for the job. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getUid() + { + return $this->uid; + } + + /** + * Output only. System generated globally unique ID for the job. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setUid($var) + { + GPBUtil::checkString($var, True); + $this->uid = $var; + + return $this; + } + + /** + * Output only. The time when the job was started. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 3 [(.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 when the job was started. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 3 [(.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 when the job ended. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 4 [(.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 when the job ended. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 4 [(.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. Execution state for the job. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Job.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. Execution state for the job. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Job.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\Job\State::class); + $this->state = $var; + + return $this; + } + + /** + * Output only. The number of times the job has been retried (excluding the + * initial attempt). + * + * Generated from protobuf field uint32 retry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getRetryCount() + { + return $this->retry_count; + } + + /** + * Output only. The number of times the job has been retried (excluding the + * initial attempt). + * + * Generated from protobuf field uint32 retry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setRetryCount($var) + { + GPBUtil::checkUint32($var); + $this->retry_count = $var; + + return $this; + } + + /** + * Output only. The underlying service running a job. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Job.Service service = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getService() + { + return $this->service; + } + + /** + * Output only. The underlying service running a job. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Job.Service service = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setService($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\Job\Service::class); + $this->service = $var; + + return $this; + } + + /** + * Output only. The full resource name for the job run under a particular + * service. + * + * Generated from protobuf field string service_job = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getServiceJob() + { + return $this->service_job; + } + + /** + * Output only. The full resource name for the job run under a particular + * service. + * + * Generated from protobuf field string service_job = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setServiceJob($var) + { + GPBUtil::checkString($var, True); + $this->service_job = $var; + + return $this; + } + + /** + * Output only. Additional information about the current state. + * + * Generated from protobuf field string message = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getMessage() + { + return $this->message; + } + + /** + * Output only. Additional information about the current state. + * + * Generated from protobuf field string message = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkString($var, True); + $this->message = $var; + + return $this; + } + + /** + * Output only. User-defined labels for the task. + * + * Generated from protobuf field map labels = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Output only. User-defined labels for the task. + * + * Generated from protobuf field map labels = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Output only. Job execution trigger. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Job.Trigger trigger = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getTrigger() + { + return $this->trigger; + } + + /** + * Output only. Job execution trigger. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Job.Trigger trigger = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setTrigger($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\Job\Trigger::class); + $this->trigger = $var; + + return $this; + } + + /** + * Output only. Spec related to how a task is executed. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Task.ExecutionSpec execution_spec = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataplex\V1\Task\ExecutionSpec|null + */ + public function getExecutionSpec() + { + return $this->execution_spec; + } + + public function hasExecutionSpec() + { + return isset($this->execution_spec); + } + + public function clearExecutionSpec() + { + unset($this->execution_spec); + } + + /** + * Output only. Spec related to how a task is executed. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Task.ExecutionSpec execution_spec = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\Task\ExecutionSpec $var + * @return $this + */ + public function setExecutionSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Task\ExecutionSpec::class); + $this->execution_spec = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Job/Service.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Job/Service.php new file mode 100644 index 000000000000..96943f043b4f --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Job/Service.php @@ -0,0 +1,52 @@ +google.cloud.dataplex.v1.Job.Service + */ +class Service +{ + /** + * Service used to run the job is unspecified. + * + * Generated from protobuf enum SERVICE_UNSPECIFIED = 0; + */ + const SERVICE_UNSPECIFIED = 0; + /** + * Dataproc service is used to run this job. + * + * Generated from protobuf enum DATAPROC = 1; + */ + const DATAPROC = 1; + + private static $valueToName = [ + self::SERVICE_UNSPECIFIED => 'SERVICE_UNSPECIFIED', + self::DATAPROC => 'DATAPROC', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Job/State.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Job/State.php new file mode 100644 index 000000000000..f7c9880d69f0 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Job/State.php @@ -0,0 +1,87 @@ +google.cloud.dataplex.v1.Job.State + */ +class State +{ + /** + * The job state is unknown. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * The job is running. + * + * Generated from protobuf enum RUNNING = 1; + */ + const RUNNING = 1; + /** + * The job is cancelling. + * + * Generated from protobuf enum CANCELLING = 2; + */ + const CANCELLING = 2; + /** + * The job cancellation was successful. + * + * Generated from protobuf enum CANCELLED = 3; + */ + const CANCELLED = 3; + /** + * The job completed successfully. + * + * Generated from protobuf enum SUCCEEDED = 4; + */ + const SUCCEEDED = 4; + /** + * The job is no longer running due to an error. + * + * Generated from protobuf enum FAILED = 5; + */ + const FAILED = 5; + /** + * The job was cancelled outside of Dataplex Universal Catalog. + * + * Generated from protobuf enum ABORTED = 6; + */ + const ABORTED = 6; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::RUNNING => 'RUNNING', + self::CANCELLING => 'CANCELLING', + self::CANCELLED => 'CANCELLED', + self::SUCCEEDED => 'SUCCEEDED', + self::FAILED => 'FAILED', + self::ABORTED => 'ABORTED', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Job/Trigger.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Job/Trigger.php new file mode 100644 index 000000000000..b5fce57187c6 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Job/Trigger.php @@ -0,0 +1,62 @@ +google.cloud.dataplex.v1.Job.Trigger + */ +class Trigger +{ + /** + * The trigger is unspecified. + * + * Generated from protobuf enum TRIGGER_UNSPECIFIED = 0; + */ + const TRIGGER_UNSPECIFIED = 0; + /** + * The job was triggered by Dataplex Universal Catalog based on trigger spec + * from task definition. + * + * Generated from protobuf enum TASK_CONFIG = 1; + */ + const TASK_CONFIG = 1; + /** + * The job was triggered by the explicit call of Task API. + * + * Generated from protobuf enum RUN_REQUEST = 2; + */ + const RUN_REQUEST = 2; + + private static $valueToName = [ + self::TRIGGER_UNSPECIFIED => 'TRIGGER_UNSPECIFIED', + self::TASK_CONFIG => 'TASK_CONFIG', + self::RUN_REQUEST => 'RUN_REQUEST', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/JobEvent.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/JobEvent.php new file mode 100644 index 000000000000..4dfe549484ae --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/JobEvent.php @@ -0,0 +1,394 @@ +google.cloud.dataplex.v1.JobEvent + */ +class JobEvent extends \Google\Protobuf\Internal\Message +{ + /** + * The log message. + * + * Generated from protobuf field string message = 1; + */ + protected $message = ''; + /** + * The unique id identifying the job. + * + * Generated from protobuf field string job_id = 2; + */ + protected $job_id = ''; + /** + * The time when the job started running. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 3; + */ + protected $start_time = null; + /** + * The time when the job ended running. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 4; + */ + protected $end_time = null; + /** + * The job state on completion. + * + * Generated from protobuf field .google.cloud.dataplex.v1.JobEvent.State state = 5; + */ + protected $state = 0; + /** + * The number of retries. + * + * Generated from protobuf field int32 retries = 6; + */ + protected $retries = 0; + /** + * The type of the job. + * + * Generated from protobuf field .google.cloud.dataplex.v1.JobEvent.Type type = 7; + */ + protected $type = 0; + /** + * The service used to execute the job. + * + * Generated from protobuf field .google.cloud.dataplex.v1.JobEvent.Service service = 8; + */ + protected $service = 0; + /** + * The reference to the job within the service. + * + * Generated from protobuf field string service_job = 9; + */ + protected $service_job = ''; + /** + * Job execution trigger. + * + * Generated from protobuf field .google.cloud.dataplex.v1.JobEvent.ExecutionTrigger execution_trigger = 11; + */ + protected $execution_trigger = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $message + * The log message. + * @type string $job_id + * The unique id identifying the job. + * @type \Google\Protobuf\Timestamp $start_time + * The time when the job started running. + * @type \Google\Protobuf\Timestamp $end_time + * The time when the job ended running. + * @type int $state + * The job state on completion. + * @type int $retries + * The number of retries. + * @type int $type + * The type of the job. + * @type int $service + * The service used to execute the job. + * @type string $service_job + * The reference to the job within the service. + * @type int $execution_trigger + * Job execution trigger. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Logs::initOnce(); + parent::__construct($data); + } + + /** + * The log message. + * + * Generated from protobuf field string message = 1; + * @return string + */ + public function getMessage() + { + return $this->message; + } + + /** + * The log message. + * + * Generated from protobuf field string message = 1; + * @param string $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkString($var, True); + $this->message = $var; + + return $this; + } + + /** + * The unique id identifying the job. + * + * Generated from protobuf field string job_id = 2; + * @return string + */ + public function getJobId() + { + return $this->job_id; + } + + /** + * The unique id identifying the job. + * + * Generated from protobuf field string job_id = 2; + * @param string $var + * @return $this + */ + public function setJobId($var) + { + GPBUtil::checkString($var, True); + $this->job_id = $var; + + return $this; + } + + /** + * The time when the job started running. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 3; + * @return \Google\Protobuf\Timestamp|null + */ + public function getStartTime() + { + return $this->start_time; + } + + public function hasStartTime() + { + return isset($this->start_time); + } + + public function clearStartTime() + { + unset($this->start_time); + } + + /** + * The time when the job started running. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 3; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setStartTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->start_time = $var; + + return $this; + } + + /** + * The time when the job ended running. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 4; + * @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); + } + + /** + * The time when the job ended running. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 4; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEndTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->end_time = $var; + + return $this; + } + + /** + * The job state on completion. + * + * Generated from protobuf field .google.cloud.dataplex.v1.JobEvent.State state = 5; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * The job state on completion. + * + * Generated from protobuf field .google.cloud.dataplex.v1.JobEvent.State state = 5; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\JobEvent\State::class); + $this->state = $var; + + return $this; + } + + /** + * The number of retries. + * + * Generated from protobuf field int32 retries = 6; + * @return int + */ + public function getRetries() + { + return $this->retries; + } + + /** + * The number of retries. + * + * Generated from protobuf field int32 retries = 6; + * @param int $var + * @return $this + */ + public function setRetries($var) + { + GPBUtil::checkInt32($var); + $this->retries = $var; + + return $this; + } + + /** + * The type of the job. + * + * Generated from protobuf field .google.cloud.dataplex.v1.JobEvent.Type type = 7; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * The type of the job. + * + * Generated from protobuf field .google.cloud.dataplex.v1.JobEvent.Type type = 7; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\JobEvent\Type::class); + $this->type = $var; + + return $this; + } + + /** + * The service used to execute the job. + * + * Generated from protobuf field .google.cloud.dataplex.v1.JobEvent.Service service = 8; + * @return int + */ + public function getService() + { + return $this->service; + } + + /** + * The service used to execute the job. + * + * Generated from protobuf field .google.cloud.dataplex.v1.JobEvent.Service service = 8; + * @param int $var + * @return $this + */ + public function setService($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\JobEvent\Service::class); + $this->service = $var; + + return $this; + } + + /** + * The reference to the job within the service. + * + * Generated from protobuf field string service_job = 9; + * @return string + */ + public function getServiceJob() + { + return $this->service_job; + } + + /** + * The reference to the job within the service. + * + * Generated from protobuf field string service_job = 9; + * @param string $var + * @return $this + */ + public function setServiceJob($var) + { + GPBUtil::checkString($var, True); + $this->service_job = $var; + + return $this; + } + + /** + * Job execution trigger. + * + * Generated from protobuf field .google.cloud.dataplex.v1.JobEvent.ExecutionTrigger execution_trigger = 11; + * @return int + */ + public function getExecutionTrigger() + { + return $this->execution_trigger; + } + + /** + * Job execution trigger. + * + * Generated from protobuf field .google.cloud.dataplex.v1.JobEvent.ExecutionTrigger execution_trigger = 11; + * @param int $var + * @return $this + */ + public function setExecutionTrigger($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\JobEvent\ExecutionTrigger::class); + $this->execution_trigger = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/JobEvent/ExecutionTrigger.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/JobEvent/ExecutionTrigger.php new file mode 100644 index 000000000000..3405712d4be9 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/JobEvent/ExecutionTrigger.php @@ -0,0 +1,62 @@ +google.cloud.dataplex.v1.JobEvent.ExecutionTrigger + */ +class ExecutionTrigger +{ + /** + * The job execution trigger is unspecified. + * + * Generated from protobuf enum EXECUTION_TRIGGER_UNSPECIFIED = 0; + */ + const EXECUTION_TRIGGER_UNSPECIFIED = 0; + /** + * The job was triggered by Dataplex Universal Catalog based on trigger spec + * from task definition. + * + * Generated from protobuf enum TASK_CONFIG = 1; + */ + const TASK_CONFIG = 1; + /** + * The job was triggered by the explicit call of Task API. + * + * Generated from protobuf enum RUN_REQUEST = 2; + */ + const RUN_REQUEST = 2; + + private static $valueToName = [ + self::EXECUTION_TRIGGER_UNSPECIFIED => 'EXECUTION_TRIGGER_UNSPECIFIED', + self::TASK_CONFIG => 'TASK_CONFIG', + self::RUN_REQUEST => 'RUN_REQUEST', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/JobEvent/Service.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/JobEvent/Service.php new file mode 100644 index 000000000000..f844b336f18b --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/JobEvent/Service.php @@ -0,0 +1,54 @@ +google.cloud.dataplex.v1.JobEvent.Service + */ +class Service +{ + /** + * Unspecified service. + * + * Generated from protobuf enum SERVICE_UNSPECIFIED = 0; + */ + const SERVICE_UNSPECIFIED = 0; + /** + * Cloud Dataproc. + * + * Generated from protobuf enum DATAPROC = 1; + */ + const DATAPROC = 1; + + private static $valueToName = [ + self::SERVICE_UNSPECIFIED => 'SERVICE_UNSPECIFIED', + self::DATAPROC => 'DATAPROC', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/JobEvent/State.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/JobEvent/State.php new file mode 100644 index 000000000000..36f252852734 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/JobEvent/State.php @@ -0,0 +1,75 @@ +google.cloud.dataplex.v1.JobEvent.State + */ +class State +{ + /** + * Unspecified job state. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * Job successfully completed. + * + * Generated from protobuf enum SUCCEEDED = 1; + */ + const SUCCEEDED = 1; + /** + * Job was unsuccessful. + * + * Generated from protobuf enum FAILED = 2; + */ + const FAILED = 2; + /** + * Job was cancelled by the user. + * + * Generated from protobuf enum CANCELLED = 3; + */ + const CANCELLED = 3; + /** + * Job was cancelled or aborted via the service executing the job. + * + * Generated from protobuf enum ABORTED = 4; + */ + const ABORTED = 4; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::SUCCEEDED => 'SUCCEEDED', + self::FAILED => 'FAILED', + self::CANCELLED => 'CANCELLED', + self::ABORTED => 'ABORTED', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/JobEvent/Type.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/JobEvent/Type.php new file mode 100644 index 000000000000..5e713ba16814 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/JobEvent/Type.php @@ -0,0 +1,61 @@ +google.cloud.dataplex.v1.JobEvent.Type + */ +class Type +{ + /** + * Unspecified job type. + * + * Generated from protobuf enum TYPE_UNSPECIFIED = 0; + */ + const TYPE_UNSPECIFIED = 0; + /** + * Spark jobs. + * + * Generated from protobuf enum SPARK = 1; + */ + const SPARK = 1; + /** + * Notebook jobs. + * + * Generated from protobuf enum NOTEBOOK = 2; + */ + const NOTEBOOK = 2; + + private static $valueToName = [ + self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', + self::SPARK => 'SPARK', + self::NOTEBOOK => 'NOTEBOOK', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Lake.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Lake.php new file mode 100644 index 000000000000..e17180689ec1 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Lake.php @@ -0,0 +1,518 @@ +google.cloud.dataplex.v1.Lake + */ +class Lake extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The relative resource name of the lake, of the form: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. User friendly display name. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $display_name = ''; + /** + * Output only. System generated globally unique ID for the lake. This ID will + * be different if the lake is deleted and re-created with the same name. + * + * Generated from protobuf field string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $uid = ''; + /** + * Output only. The time when the lake was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The time when the lake was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Optional. User-defined labels for the lake. + * + * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $labels; + /** + * Optional. Description of the lake. + * + * Generated from protobuf field string description = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Output only. Current state of the lake. + * + * Generated from protobuf field .google.cloud.dataplex.v1.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Output only. Service account associated with this lake. This service + * account must be authorized to access or operate on resources managed by the + * lake. + * + * Generated from protobuf field string service_account = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $service_account = ''; + /** + * Optional. Settings to manage lake and Dataproc Metastore service instance + * association. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Lake.Metastore metastore = 102 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $metastore = null; + /** + * Output only. Aggregated status of the underlying assets of the lake. + * + * Generated from protobuf field .google.cloud.dataplex.v1.AssetStatus asset_status = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $asset_status = null; + /** + * Output only. Metastore status of the lake. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Lake.MetastoreStatus metastore_status = 104 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $metastore_status = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. The relative resource name of the lake, of the form: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. + * @type string $display_name + * Optional. User friendly display name. + * @type string $uid + * Output only. System generated globally unique ID for the lake. This ID will + * be different if the lake is deleted and re-created with the same name. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time when the lake was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time when the lake was last updated. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Optional. User-defined labels for the lake. + * @type string $description + * Optional. Description of the lake. + * @type int $state + * Output only. Current state of the lake. + * @type string $service_account + * Output only. Service account associated with this lake. This service + * account must be authorized to access or operate on resources managed by the + * lake. + * @type \Google\Cloud\Dataplex\V1\Lake\Metastore $metastore + * Optional. Settings to manage lake and Dataproc Metastore service instance + * association. + * @type \Google\Cloud\Dataplex\V1\AssetStatus $asset_status + * Output only. Aggregated status of the underlying assets of the lake. + * @type \Google\Cloud\Dataplex\V1\Lake\MetastoreStatus $metastore_status + * Output only. Metastore status of the lake. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The relative resource name of the lake, of the form: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. The relative resource name of the lake, of the form: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. User friendly display name. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Optional. User friendly display name. + * + * 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; + } + + /** + * Output only. System generated globally unique ID for the lake. This ID will + * be different if the lake is deleted and re-created with the same name. + * + * Generated from protobuf field string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getUid() + { + return $this->uid; + } + + /** + * Output only. System generated globally unique ID for the lake. This ID will + * be different if the lake is deleted and re-created with the same name. + * + * Generated from protobuf field string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setUid($var) + { + GPBUtil::checkString($var, True); + $this->uid = $var; + + return $this; + } + + /** + * Output only. The time when the lake was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.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 lake was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.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 lake was last updated. + * + * 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 time when the lake was last updated. + * + * 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. User-defined labels for the lake. + * + * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Optional. User-defined labels for the lake. + * + * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Optional. Description of the lake. + * + * Generated from protobuf field string description = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. Description of the lake. + * + * Generated from protobuf field string description = 7 [(.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. Current state of the lake. + * + * Generated from protobuf field .google.cloud.dataplex.v1.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. Current state of the lake. + * + * Generated from protobuf field .google.cloud.dataplex.v1.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\State::class); + $this->state = $var; + + return $this; + } + + /** + * Output only. Service account associated with this lake. This service + * account must be authorized to access or operate on resources managed by the + * lake. + * + * Generated from protobuf field string service_account = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getServiceAccount() + { + return $this->service_account; + } + + /** + * Output only. Service account associated with this lake. This service + * account must be authorized to access or operate on resources managed by the + * lake. + * + * Generated from protobuf field string service_account = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setServiceAccount($var) + { + GPBUtil::checkString($var, True); + $this->service_account = $var; + + return $this; + } + + /** + * Optional. Settings to manage lake and Dataproc Metastore service instance + * association. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Lake.Metastore metastore = 102 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataplex\V1\Lake\Metastore|null + */ + public function getMetastore() + { + return $this->metastore; + } + + public function hasMetastore() + { + return isset($this->metastore); + } + + public function clearMetastore() + { + unset($this->metastore); + } + + /** + * Optional. Settings to manage lake and Dataproc Metastore service instance + * association. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Lake.Metastore metastore = 102 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataplex\V1\Lake\Metastore $var + * @return $this + */ + public function setMetastore($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Lake\Metastore::class); + $this->metastore = $var; + + return $this; + } + + /** + * Output only. Aggregated status of the underlying assets of the lake. + * + * Generated from protobuf field .google.cloud.dataplex.v1.AssetStatus asset_status = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataplex\V1\AssetStatus|null + */ + public function getAssetStatus() + { + return $this->asset_status; + } + + public function hasAssetStatus() + { + return isset($this->asset_status); + } + + public function clearAssetStatus() + { + unset($this->asset_status); + } + + /** + * Output only. Aggregated status of the underlying assets of the lake. + * + * Generated from protobuf field .google.cloud.dataplex.v1.AssetStatus asset_status = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\AssetStatus $var + * @return $this + */ + public function setAssetStatus($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\AssetStatus::class); + $this->asset_status = $var; + + return $this; + } + + /** + * Output only. Metastore status of the lake. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Lake.MetastoreStatus metastore_status = 104 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataplex\V1\Lake\MetastoreStatus|null + */ + public function getMetastoreStatus() + { + return $this->metastore_status; + } + + public function hasMetastoreStatus() + { + return isset($this->metastore_status); + } + + public function clearMetastoreStatus() + { + unset($this->metastore_status); + } + + /** + * Output only. Metastore status of the lake. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Lake.MetastoreStatus metastore_status = 104 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\Lake\MetastoreStatus $var + * @return $this + */ + public function setMetastoreStatus($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Lake\MetastoreStatus::class); + $this->metastore_status = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Lake/Metastore.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Lake/Metastore.php new file mode 100644 index 000000000000..85ed438a4520 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Lake/Metastore.php @@ -0,0 +1,79 @@ +google.cloud.dataplex.v1.Lake.Metastore + */ +class Metastore extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. A relative reference to the Dataproc Metastore + * (https://cloud.google.com/dataproc-metastore/docs) service associated + * with the lake: + * `projects/{project_id}/locations/{location_id}/services/{service_id}` + * + * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $service = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $service + * Optional. A relative reference to the Dataproc Metastore + * (https://cloud.google.com/dataproc-metastore/docs) service associated + * with the lake: + * `projects/{project_id}/locations/{location_id}/services/{service_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Optional. A relative reference to the Dataproc Metastore + * (https://cloud.google.com/dataproc-metastore/docs) service associated + * with the lake: + * `projects/{project_id}/locations/{location_id}/services/{service_id}` + * + * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getService() + { + return $this->service; + } + + /** + * Optional. A relative reference to the Dataproc Metastore + * (https://cloud.google.com/dataproc-metastore/docs) service associated + * with the lake: + * `projects/{project_id}/locations/{location_id}/services/{service_id}` + * + * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setService($var) + { + GPBUtil::checkString($var, True); + $this->service = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Lake/MetastoreStatus.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Lake/MetastoreStatus.php new file mode 100644 index 000000000000..68ff03ab9278 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Lake/MetastoreStatus.php @@ -0,0 +1,179 @@ +google.cloud.dataplex.v1.Lake.MetastoreStatus + */ +class MetastoreStatus extends \Google\Protobuf\Internal\Message +{ + /** + * Current state of association. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Lake.MetastoreStatus.State state = 1; + */ + protected $state = 0; + /** + * Additional information about the current status. + * + * Generated from protobuf field string message = 2; + */ + protected $message = ''; + /** + * Last update time of the metastore status of the lake. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 3; + */ + protected $update_time = null; + /** + * The URI of the endpoint used to access the Metastore service. + * + * Generated from protobuf field string endpoint = 4; + */ + protected $endpoint = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $state + * Current state of association. + * @type string $message + * Additional information about the current status. + * @type \Google\Protobuf\Timestamp $update_time + * Last update time of the metastore status of the lake. + * @type string $endpoint + * The URI of the endpoint used to access the Metastore service. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Current state of association. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Lake.MetastoreStatus.State state = 1; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Current state of association. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Lake.MetastoreStatus.State state = 1; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\Lake\MetastoreStatus\State::class); + $this->state = $var; + + return $this; + } + + /** + * Additional information about the current status. + * + * Generated from protobuf field string message = 2; + * @return string + */ + public function getMessage() + { + return $this->message; + } + + /** + * Additional information about the current status. + * + * Generated from protobuf field string message = 2; + * @param string $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkString($var, True); + $this->message = $var; + + return $this; + } + + /** + * Last update time of the metastore status of the lake. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 3; + * @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); + } + + /** + * Last update time of the metastore status of the lake. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 3; + * @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 URI of the endpoint used to access the Metastore service. + * + * Generated from protobuf field string endpoint = 4; + * @return string + */ + public function getEndpoint() + { + return $this->endpoint; + } + + /** + * The URI of the endpoint used to access the Metastore service. + * + * Generated from protobuf field string endpoint = 4; + * @param string $var + * @return $this + */ + public function setEndpoint($var) + { + GPBUtil::checkString($var, True); + $this->endpoint = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Lake/MetastoreStatus/State.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Lake/MetastoreStatus/State.php new file mode 100644 index 000000000000..a2761863c8b5 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Lake/MetastoreStatus/State.php @@ -0,0 +1,75 @@ +google.cloud.dataplex.v1.Lake.MetastoreStatus.State + */ +class State +{ + /** + * Unspecified. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * A Metastore service instance is not associated with the lake. + * + * Generated from protobuf enum NONE = 1; + */ + const NONE = 1; + /** + * A Metastore service instance is attached to the lake. + * + * Generated from protobuf enum READY = 2; + */ + const READY = 2; + /** + * Attach/detach is in progress. + * + * Generated from protobuf enum UPDATING = 3; + */ + const UPDATING = 3; + /** + * Attach/detach could not be done due to errors. + * + * Generated from protobuf enum ERROR = 4; + */ + const ERROR = 4; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::NONE => 'NONE', + self::READY => 'READY', + self::UPDATING => 'UPDATING', + self::ERROR => 'ERROR', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListActionsResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListActionsResponse.php new file mode 100644 index 000000000000..6319285e369b --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListActionsResponse.php @@ -0,0 +1,105 @@ +google.cloud.dataplex.v1.ListActionsResponse + */ +class ListActionsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Actions under the given parent lake/zone/asset. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.Action actions = 1; + */ + private $actions; + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * 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\Dataplex\V1\Action[] $actions + * Actions under the given parent lake/zone/asset. + * @type string $next_page_token + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Actions under the given parent lake/zone/asset. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.Action actions = 1; + * @return RepeatedField<\Google\Cloud\Dataplex\V1\Action> + */ + public function getActions() + { + return $this->actions; + } + + /** + * Actions under the given parent lake/zone/asset. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.Action actions = 1; + * @param \Google\Cloud\Dataplex\V1\Action[] $var + * @return $this + */ + public function setActions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\Action::class); + $this->actions = $arr; + + return $this; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListAspectTypesRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListAspectTypesRequest.php new file mode 100644 index 000000000000..eba3e1d453a0 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListAspectTypesRequest.php @@ -0,0 +1,275 @@ +google.cloud.dataplex.v1.ListAspectTypesRequest + */ +class ListAspectTypesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the AspectType location, of the form: + * `projects/{project_number}/locations/{location_id}` + * where `location_id` refers to a Google Cloud region. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. Maximum number of AspectTypes to return. The service may return + * fewer than this value. If unspecified, the service returns at most 10 + * AspectTypes. The maximum value is 1000; values above 1000 will be coerced + * to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. Page token received from a previous `ListAspectTypes` call. + * Provide this to retrieve the subsequent page. When paginating, all other + * parameters you provide to `ListAspectTypes` 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 = ''; + /** + * Optional. Filter request. Filters are case-sensitive. + * The service supports the following formats: + * * labels.key1 = "value1" + * * labels:key1 + * * name = "value" + * These restrictions can be conjoined with AND, OR, and NOT conjunctions. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Orders the result by `name` or `create_time` fields. + * If not specified, the ordering is undefined. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + + /** + * @param string $parent Required. The resource name of the AspectType location, of the form: + * `projects/{project_number}/locations/{location_id}` + * where `location_id` refers to a Google Cloud region. Please see + * {@see CatalogServiceClient::locationName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\ListAspectTypesRequest + * + * @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 resource name of the AspectType location, of the form: + * `projects/{project_number}/locations/{location_id}` + * where `location_id` refers to a Google Cloud region. + * @type int $page_size + * Optional. Maximum number of AspectTypes to return. The service may return + * fewer than this value. If unspecified, the service returns at most 10 + * AspectTypes. The maximum value is 1000; values above 1000 will be coerced + * to 1000. + * @type string $page_token + * Optional. Page token received from a previous `ListAspectTypes` call. + * Provide this to retrieve the subsequent page. When paginating, all other + * parameters you provide to `ListAspectTypes` must match the call that + * provided the page token. + * @type string $filter + * Optional. Filter request. Filters are case-sensitive. + * The service supports the following formats: + * * labels.key1 = "value1" + * * labels:key1 + * * name = "value" + * These restrictions can be conjoined with AND, OR, and NOT conjunctions. + * @type string $order_by + * Optional. Orders the result by `name` or `create_time` fields. + * If not specified, the ordering is undefined. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the AspectType location, of the form: + * `projects/{project_number}/locations/{location_id}` + * where `location_id` refers to a Google Cloud region. + * + * 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 resource name of the AspectType location, of the form: + * `projects/{project_number}/locations/{location_id}` + * where `location_id` refers to a Google Cloud region. + * + * 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. Maximum number of AspectTypes to return. The service may return + * fewer than this value. If unspecified, the service returns at most 10 + * AspectTypes. The maximum value is 1000; values above 1000 will be coerced + * to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. Maximum number of AspectTypes to return. The service may return + * fewer than this value. If unspecified, the service returns at most 10 + * AspectTypes. The maximum value is 1000; values above 1000 will be coerced + * to 1000. + * + * 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. Page token received from a previous `ListAspectTypes` call. + * Provide this to retrieve the subsequent page. When paginating, all other + * parameters you provide to `ListAspectTypes` 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. Page token received from a previous `ListAspectTypes` call. + * Provide this to retrieve the subsequent page. When paginating, all other + * parameters you provide to `ListAspectTypes` 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; + } + + /** + * Optional. Filter request. Filters are case-sensitive. + * The service supports the following formats: + * * labels.key1 = "value1" + * * labels:key1 + * * name = "value" + * These restrictions can be conjoined with AND, OR, and NOT conjunctions. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Filter request. Filters are case-sensitive. + * The service supports the following formats: + * * labels.key1 = "value1" + * * labels:key1 + * * name = "value" + * These restrictions can be conjoined with AND, OR, and NOT conjunctions. + * + * 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. Orders the result by `name` or `create_time` fields. + * If not specified, the ordering is undefined. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Orders the result by `name` or `create_time` fields. + * If not specified, the ordering is undefined. + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListAspectTypesResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListAspectTypesResponse.php new file mode 100644 index 000000000000..e1c7e8a1ba9a --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListAspectTypesResponse.php @@ -0,0 +1,139 @@ +google.cloud.dataplex.v1.ListAspectTypesResponse + */ +class ListAspectTypesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * AspectTypes under the given parent location. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.AspectType aspect_types = 1; + */ + private $aspect_types; + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Locations that the service couldn't reach. + * + * Generated from protobuf field repeated string unreachable_locations = 3; + */ + private $unreachable_locations; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\AspectType[] $aspect_types + * AspectTypes under the given parent location. + * @type string $next_page_token + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * @type string[] $unreachable_locations + * Locations that the service couldn't reach. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * AspectTypes under the given parent location. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.AspectType aspect_types = 1; + * @return RepeatedField<\Google\Cloud\Dataplex\V1\AspectType> + */ + public function getAspectTypes() + { + return $this->aspect_types; + } + + /** + * AspectTypes under the given parent location. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.AspectType aspect_types = 1; + * @param \Google\Cloud\Dataplex\V1\AspectType[] $var + * @return $this + */ + public function setAspectTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\AspectType::class); + $this->aspect_types = $arr; + + return $this; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Locations that the service couldn't reach. + * + * Generated from protobuf field repeated string unreachable_locations = 3; + * @return RepeatedField + */ + public function getUnreachableLocations() + { + return $this->unreachable_locations; + } + + /** + * Locations that the service couldn't reach. + * + * Generated from protobuf field repeated string unreachable_locations = 3; + * @param string[] $var + * @return $this + */ + public function setUnreachableLocations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unreachable_locations = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListAssetActionsRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListAssetActionsRequest.php new file mode 100644 index 000000000000..50f49a478867 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListAssetActionsRequest.php @@ -0,0 +1,174 @@ +google.cloud.dataplex.v1.ListAssetActionsRequest + */ +class ListAssetActionsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the parent asset: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. Maximum number of actions to return. The service may return fewer + * than this value. If unspecified, at most 10 actions will be returned. The + * maximum value is 1000; values above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. Page token received from a previous `ListAssetActions` call. + * Provide this to retrieve the subsequent page. When paginating, all other + * parameters provided to `ListAssetActions` 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 resource name of the parent asset: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. Please see + * {@see DataplexServiceClient::assetName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\ListAssetActionsRequest + * + * @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 resource name of the parent asset: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. + * @type int $page_size + * Optional. Maximum number of actions to return. The service may return fewer + * than this value. If unspecified, at most 10 actions will be returned. The + * maximum value is 1000; values above 1000 will be coerced to 1000. + * @type string $page_token + * Optional. Page token received from a previous `ListAssetActions` call. + * Provide this to retrieve the subsequent page. When paginating, all other + * parameters provided to `ListAssetActions` must match the call that provided + * the page token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the parent asset: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. + * + * 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 resource name of the parent asset: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. + * + * 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. Maximum number of actions to return. The service may return fewer + * than this value. If unspecified, at most 10 actions will be returned. The + * maximum value is 1000; values above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. Maximum number of actions to return. The service may return fewer + * than this value. If unspecified, at most 10 actions will be returned. The + * maximum value is 1000; values above 1000 will be coerced to 1000. + * + * 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. Page token received from a previous `ListAssetActions` call. + * Provide this to retrieve the subsequent page. When paginating, all other + * parameters provided to `ListAssetActions` 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. Page token received from a previous `ListAssetActions` call. + * Provide this to retrieve the subsequent page. When paginating, all other + * parameters provided to `ListAssetActions` 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListAssetsRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListAssetsRequest.php new file mode 100644 index 000000000000..57181e20ba5c --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListAssetsRequest.php @@ -0,0 +1,242 @@ +google.cloud.dataplex.v1.ListAssetsRequest + */ +class ListAssetsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the parent zone: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. Maximum number of asset to return. The service may return fewer + * than this value. If unspecified, at most 10 assets will be returned. The + * maximum value is 1000; values above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. Page token received from a previous `ListAssets` call. Provide + * this to retrieve the subsequent page. When paginating, all other parameters + * provided to `ListAssets` 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 = ''; + /** + * Optional. Filter request. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Order by fields for the result. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + + /** + * @param string $parent Required. The resource name of the parent zone: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. Please see + * {@see DataplexServiceClient::zoneName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\ListAssetsRequest + * + * @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 resource name of the parent zone: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. + * @type int $page_size + * Optional. Maximum number of asset to return. The service may return fewer + * than this value. If unspecified, at most 10 assets will be returned. The + * maximum value is 1000; values above 1000 will be coerced to 1000. + * @type string $page_token + * Optional. Page token received from a previous `ListAssets` call. Provide + * this to retrieve the subsequent page. When paginating, all other parameters + * provided to `ListAssets` must match the call that provided the page + * token. + * @type string $filter + * Optional. Filter request. + * @type string $order_by + * Optional. Order by fields for the result. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the parent zone: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. + * + * 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 resource name of the parent zone: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. + * + * 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. Maximum number of asset to return. The service may return fewer + * than this value. If unspecified, at most 10 assets will be returned. The + * maximum value is 1000; values above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. Maximum number of asset to return. The service may return fewer + * than this value. If unspecified, at most 10 assets will be returned. The + * maximum value is 1000; values above 1000 will be coerced to 1000. + * + * 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. Page token received from a previous `ListAssets` call. Provide + * this to retrieve the subsequent page. When paginating, all other parameters + * provided to `ListAssets` 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. Page token received from a previous `ListAssets` call. Provide + * this to retrieve the subsequent page. When paginating, all other parameters + * provided to `ListAssets` 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; + } + + /** + * Optional. Filter request. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Filter request. + * + * 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. Order by fields for the result. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Order by fields for the result. + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListAssetsResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListAssetsResponse.php new file mode 100644 index 000000000000..fe96e264e2b6 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListAssetsResponse.php @@ -0,0 +1,105 @@ +google.cloud.dataplex.v1.ListAssetsResponse + */ +class ListAssetsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Asset under the given parent zone. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.Asset assets = 1; + */ + private $assets; + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * 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\Dataplex\V1\Asset[] $assets + * Asset under the given parent zone. + * @type string $next_page_token + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Asset under the given parent zone. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.Asset assets = 1; + * @return RepeatedField<\Google\Cloud\Dataplex\V1\Asset> + */ + public function getAssets() + { + return $this->assets; + } + + /** + * Asset under the given parent zone. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.Asset assets = 1; + * @param \Google\Cloud\Dataplex\V1\Asset[] $var + * @return $this + */ + public function setAssets($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\Asset::class); + $this->assets = $arr; + + return $this; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataAssetsRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataAssetsRequest.php new file mode 100644 index 000000000000..f073b9e49930 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataAssetsRequest.php @@ -0,0 +1,267 @@ +google.cloud.dataplex.v1.ListDataAssetsRequest + */ +class ListDataAssetsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which has this collection of data assets. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. Filter expression that filters data assets listed in the + * response. + * + * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Order by expression that orders data assets listed in the + * response. + * Supported `order_by` fields are: `name` or `create_time`. + * If not specified, the ordering is undefined. + * + * Generated from protobuf field string order_by = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. The maximum number of data assets to return. The service may + * return fewer than this value. If unspecified, at most 50 data assets will + * be returned. The maximum value is 1000; values above 1000 will be coerced + * to 1000. + * + * Generated from protobuf field int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListDataAssets` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListDataAssets` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + + /** + * @param string $parent Required. The parent, which has this collection of data assets. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} + * Please see {@see DataProductServiceClient::dataProductName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\ListDataAssetsRequest + * + * @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, which has this collection of data assets. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} + * @type string $filter + * Optional. Filter expression that filters data assets listed in the + * response. + * @type string $order_by + * Optional. Order by expression that orders data assets listed in the + * response. + * Supported `order_by` fields are: `name` or `create_time`. + * If not specified, the ordering is undefined. + * @type int $page_size + * Optional. The maximum number of data assets to return. The service may + * return fewer than this value. If unspecified, at most 50 data assets will + * be returned. The maximum value is 1000; values above 1000 will be coerced + * to 1000. + * @type string $page_token + * Optional. A page token, received from a previous `ListDataAssets` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListDataAssets` must + * match the call that provided the page token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataProducts::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which has this collection of data assets. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} + * + * 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, which has this collection of data assets. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} + * + * 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. Filter expression that filters data assets listed in the + * response. + * + * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Filter expression that filters data assets listed in the + * response. + * + * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. Order by expression that orders data assets listed in the + * response. + * Supported `order_by` fields are: `name` or `create_time`. + * If not specified, the ordering is undefined. + * + * Generated from protobuf field string order_by = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Order by expression that orders data assets listed in the + * response. + * Supported `order_by` fields are: `name` or `create_time`. + * If not specified, the ordering is undefined. + * + * Generated from protobuf field string order_by = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. The maximum number of data assets to return. The service may + * return fewer than this value. If unspecified, at most 50 data assets will + * be returned. The maximum value is 1000; values above 1000 will be coerced + * to 1000. + * + * Generated from protobuf field int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of data assets to return. The service may + * return fewer than this value. If unspecified, at most 50 data assets will + * be returned. The maximum value is 1000; values above 1000 will be coerced + * to 1000. + * + * Generated from protobuf field int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `ListDataAssets` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListDataAssets` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `ListDataAssets` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListDataAssets` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 5 [(.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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataAssetsResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataAssetsResponse.php new file mode 100644 index 000000000000..b8a6ac4beb0c --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataAssetsResponse.php @@ -0,0 +1,105 @@ +google.cloud.dataplex.v1.ListDataAssetsResponse + */ +class ListDataAssetsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The data assets for the requested filter criteria. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataAsset data_assets = 1; + */ + private $data_assets; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is empty, then 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\Dataplex\V1\DataAsset[] $data_assets + * The data assets for the requested filter criteria. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is empty, then there are no subsequent pages. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataProducts::initOnce(); + parent::__construct($data); + } + + /** + * The data assets for the requested filter criteria. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataAsset data_assets = 1; + * @return RepeatedField<\Google\Cloud\Dataplex\V1\DataAsset> + */ + public function getDataAssets() + { + return $this->data_assets; + } + + /** + * The data assets for the requested filter criteria. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataAsset data_assets = 1; + * @param \Google\Cloud\Dataplex\V1\DataAsset[] $var + * @return $this + */ + public function setDataAssets($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\DataAsset::class); + $this->data_assets = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is empty, then 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 can be sent as `page_token` to retrieve the next page. + * If this field is empty, then 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataAttributeBindingsRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataAttributeBindingsRequest.php new file mode 100644 index 000000000000..1007e6037b38 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataAttributeBindingsRequest.php @@ -0,0 +1,262 @@ +google.cloud.dataplex.v1.ListDataAttributeBindingsRequest + */ +class ListDataAttributeBindingsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the Location: + * projects/{project_number}/locations/{location_id} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. Maximum number of DataAttributeBindings to return. The service + * may return fewer than this value. If unspecified, at most 10 + * DataAttributeBindings will be returned. The maximum value is 1000; values + * above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. Page token received from a previous `ListDataAttributeBindings` + * call. Provide this to retrieve the subsequent page. When paginating, all + * other parameters provided to `ListDataAttributeBindings` 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 = ''; + /** + * Optional. Filter request. + * Filter using resource: filter=resource:"resource-name" + * Filter using attribute: filter=attributes:"attribute-name" + * Filter using attribute in paths list: + * filter=paths.attributes:"attribute-name" + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Order by fields for the result. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + + /** + * @param string $parent Required. The resource name of the Location: + * projects/{project_number}/locations/{location_id} + * Please see {@see DataTaxonomyServiceClient::locationName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\ListDataAttributeBindingsRequest + * + * @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 resource name of the Location: + * projects/{project_number}/locations/{location_id} + * @type int $page_size + * Optional. Maximum number of DataAttributeBindings to return. The service + * may return fewer than this value. If unspecified, at most 10 + * DataAttributeBindings will be returned. The maximum value is 1000; values + * above 1000 will be coerced to 1000. + * @type string $page_token + * Optional. Page token received from a previous `ListDataAttributeBindings` + * call. Provide this to retrieve the subsequent page. When paginating, all + * other parameters provided to `ListDataAttributeBindings` must match the + * call that provided the page token. + * @type string $filter + * Optional. Filter request. + * Filter using resource: filter=resource:"resource-name" + * Filter using attribute: filter=attributes:"attribute-name" + * Filter using attribute in paths list: + * filter=paths.attributes:"attribute-name" + * @type string $order_by + * Optional. Order by fields for the result. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataTaxonomy::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the Location: + * projects/{project_number}/locations/{location_id} + * + * 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 resource name of the Location: + * projects/{project_number}/locations/{location_id} + * + * 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. Maximum number of DataAttributeBindings to return. The service + * may return fewer than this value. If unspecified, at most 10 + * DataAttributeBindings will be returned. The maximum value is 1000; values + * above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. Maximum number of DataAttributeBindings to return. The service + * may return fewer than this value. If unspecified, at most 10 + * DataAttributeBindings will be returned. The maximum value is 1000; values + * above 1000 will be coerced to 1000. + * + * 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. Page token received from a previous `ListDataAttributeBindings` + * call. Provide this to retrieve the subsequent page. When paginating, all + * other parameters provided to `ListDataAttributeBindings` 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. Page token received from a previous `ListDataAttributeBindings` + * call. Provide this to retrieve the subsequent page. When paginating, all + * other parameters provided to `ListDataAttributeBindings` 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; + } + + /** + * Optional. Filter request. + * Filter using resource: filter=resource:"resource-name" + * Filter using attribute: filter=attributes:"attribute-name" + * Filter using attribute in paths list: + * filter=paths.attributes:"attribute-name" + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Filter request. + * Filter using resource: filter=resource:"resource-name" + * Filter using attribute: filter=attributes:"attribute-name" + * Filter using attribute in paths list: + * filter=paths.attributes:"attribute-name" + * + * 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. Order by fields for the result. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Order by fields for the result. + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataAttributeBindingsResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataAttributeBindingsResponse.php new file mode 100644 index 000000000000..cbc2cb30fb2b --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataAttributeBindingsResponse.php @@ -0,0 +1,139 @@ +google.cloud.dataplex.v1.ListDataAttributeBindingsResponse + */ +class ListDataAttributeBindingsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * DataAttributeBindings under the given parent Location. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataAttributeBinding data_attribute_bindings = 1; + */ + private $data_attribute_bindings; + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable_locations = 3; + */ + private $unreachable_locations; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\DataAttributeBinding[] $data_attribute_bindings + * DataAttributeBindings under the given parent Location. + * @type string $next_page_token + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * @type string[] $unreachable_locations + * Locations that could not be reached. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataTaxonomy::initOnce(); + parent::__construct($data); + } + + /** + * DataAttributeBindings under the given parent Location. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataAttributeBinding data_attribute_bindings = 1; + * @return RepeatedField<\Google\Cloud\Dataplex\V1\DataAttributeBinding> + */ + public function getDataAttributeBindings() + { + return $this->data_attribute_bindings; + } + + /** + * DataAttributeBindings under the given parent Location. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataAttributeBinding data_attribute_bindings = 1; + * @param \Google\Cloud\Dataplex\V1\DataAttributeBinding[] $var + * @return $this + */ + public function setDataAttributeBindings($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\DataAttributeBinding::class); + $this->data_attribute_bindings = $arr; + + return $this; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable_locations = 3; + * @return RepeatedField + */ + public function getUnreachableLocations() + { + return $this->unreachable_locations; + } + + /** + * Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable_locations = 3; + * @param string[] $var + * @return $this + */ + public function setUnreachableLocations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unreachable_locations = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataAttributesRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataAttributesRequest.php new file mode 100644 index 000000000000..15a9f5fc64e0 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataAttributesRequest.php @@ -0,0 +1,246 @@ +google.cloud.dataplex.v1.ListDataAttributesRequest + */ +class ListDataAttributesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the DataTaxonomy: + * projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. Maximum number of DataAttributes to return. The service may + * return fewer than this value. If unspecified, at most 10 dataAttributes + * will be returned. The maximum value is 1000; values above 1000 will be + * coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. Page token received from a previous `ListDataAttributes` call. + * Provide this to retrieve the subsequent page. When paginating, all other + * parameters provided to `ListDataAttributes` 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 = ''; + /** + * Optional. Filter request. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Order by fields for the result. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + + /** + * @param string $parent Required. The resource name of the DataTaxonomy: + * projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id} + * Please see {@see DataTaxonomyServiceClient::dataTaxonomyName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\ListDataAttributesRequest + * + * @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 resource name of the DataTaxonomy: + * projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id} + * @type int $page_size + * Optional. Maximum number of DataAttributes to return. The service may + * return fewer than this value. If unspecified, at most 10 dataAttributes + * will be returned. The maximum value is 1000; values above 1000 will be + * coerced to 1000. + * @type string $page_token + * Optional. Page token received from a previous `ListDataAttributes` call. + * Provide this to retrieve the subsequent page. When paginating, all other + * parameters provided to `ListDataAttributes` must match the call that + * provided the page token. + * @type string $filter + * Optional. Filter request. + * @type string $order_by + * Optional. Order by fields for the result. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataTaxonomy::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the DataTaxonomy: + * projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id} + * + * 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 resource name of the DataTaxonomy: + * projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id} + * + * 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. Maximum number of DataAttributes to return. The service may + * return fewer than this value. If unspecified, at most 10 dataAttributes + * will be returned. The maximum value is 1000; values above 1000 will be + * coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. Maximum number of DataAttributes to return. The service may + * return fewer than this value. If unspecified, at most 10 dataAttributes + * will be returned. The maximum value is 1000; values above 1000 will be + * coerced to 1000. + * + * 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. Page token received from a previous `ListDataAttributes` call. + * Provide this to retrieve the subsequent page. When paginating, all other + * parameters provided to `ListDataAttributes` 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. Page token received from a previous `ListDataAttributes` call. + * Provide this to retrieve the subsequent page. When paginating, all other + * parameters provided to `ListDataAttributes` 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; + } + + /** + * Optional. Filter request. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Filter request. + * + * 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. Order by fields for the result. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Order by fields for the result. + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataAttributesResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataAttributesResponse.php new file mode 100644 index 000000000000..70c3655a575a --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataAttributesResponse.php @@ -0,0 +1,139 @@ +google.cloud.dataplex.v1.ListDataAttributesResponse + */ +class ListDataAttributesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * DataAttributes under the given parent DataTaxonomy. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataAttribute data_attributes = 1; + */ + private $data_attributes; + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable_locations = 3; + */ + private $unreachable_locations; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\DataAttribute[] $data_attributes + * DataAttributes under the given parent DataTaxonomy. + * @type string $next_page_token + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * @type string[] $unreachable_locations + * Locations that could not be reached. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataTaxonomy::initOnce(); + parent::__construct($data); + } + + /** + * DataAttributes under the given parent DataTaxonomy. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataAttribute data_attributes = 1; + * @return RepeatedField<\Google\Cloud\Dataplex\V1\DataAttribute> + */ + public function getDataAttributes() + { + return $this->data_attributes; + } + + /** + * DataAttributes under the given parent DataTaxonomy. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataAttribute data_attributes = 1; + * @param \Google\Cloud\Dataplex\V1\DataAttribute[] $var + * @return $this + */ + public function setDataAttributes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\DataAttribute::class); + $this->data_attributes = $arr; + + return $this; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable_locations = 3; + * @return RepeatedField + */ + public function getUnreachableLocations() + { + return $this->unreachable_locations; + } + + /** + * Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable_locations = 3; + * @param string[] $var + * @return $this + */ + public function setUnreachableLocations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unreachable_locations = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataProductsRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataProductsRequest.php new file mode 100644 index 000000000000..942839cdea11 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataProductsRequest.php @@ -0,0 +1,286 @@ +google.cloud.dataplex.v1.ListDataProductsRequest + */ +class ListDataProductsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which has this collection of data products. + * Format: `projects/{project_id_or_number}/locations/{location_id}`. + * Supports listing across all locations with the wildcard `-` (hyphen) + * character. Example: `projects/{project_id_or_number}/locations/-` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. Filter expression that filters data products listed in the + * response. + * Example of using this filter is: `display_name="my-data-product"` + * + * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. The maximum number of data products to return. The service may + * return fewer than this value. If unspecified, at most 50 data products will + * be returned. The maximum value is 1000; values above 1000 will be coerced + * to 1000. + * + * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListDataProducts` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListDataProducts` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Order by expression that orders data products listed in the + * response. + * Supported Order by fields are: `name` or `create_time`. + * If not specified, the ordering is undefined. + * Ordering by `create_time` is not supported when listing resources across + * locations (i.e. when request contains `/locations/-`). + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + + /** + * @param string $parent Required. The parent, which has this collection of data products. + * + * Format: `projects/{project_id_or_number}/locations/{location_id}`. + * + * Supports listing across all locations with the wildcard `-` (hyphen) + * character. Example: `projects/{project_id_or_number}/locations/-` + * Please see {@see DataProductServiceClient::locationName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\ListDataProductsRequest + * + * @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, which has this collection of data products. + * Format: `projects/{project_id_or_number}/locations/{location_id}`. + * Supports listing across all locations with the wildcard `-` (hyphen) + * character. Example: `projects/{project_id_or_number}/locations/-` + * @type string $filter + * Optional. Filter expression that filters data products listed in the + * response. + * Example of using this filter is: `display_name="my-data-product"` + * @type int $page_size + * Optional. The maximum number of data products to return. The service may + * return fewer than this value. If unspecified, at most 50 data products will + * be returned. The maximum value is 1000; values above 1000 will be coerced + * to 1000. + * @type string $page_token + * Optional. A page token, received from a previous `ListDataProducts` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListDataProducts` must + * match the call that provided the page token. + * @type string $order_by + * Optional. Order by expression that orders data products listed in the + * response. + * Supported Order by fields are: `name` or `create_time`. + * If not specified, the ordering is undefined. + * Ordering by `create_time` is not supported when listing resources across + * locations (i.e. when request contains `/locations/-`). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataProducts::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which has this collection of data products. + * Format: `projects/{project_id_or_number}/locations/{location_id}`. + * Supports listing across all locations with the wildcard `-` (hyphen) + * character. Example: `projects/{project_id_or_number}/locations/-` + * + * 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, which has this collection of data products. + * Format: `projects/{project_id_or_number}/locations/{location_id}`. + * Supports listing across all locations with the wildcard `-` (hyphen) + * character. Example: `projects/{project_id_or_number}/locations/-` + * + * 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. Filter expression that filters data products listed in the + * response. + * Example of using this filter is: `display_name="my-data-product"` + * + * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Filter expression that filters data products listed in the + * response. + * Example of using this filter is: `display_name="my-data-product"` + * + * Generated from protobuf field string filter = 2 [(.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 maximum number of data products to return. The service may + * return fewer than this value. If unspecified, at most 50 data products will + * be returned. The maximum value is 1000; values above 1000 will be coerced + * to 1000. + * + * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of data products to return. The service may + * return fewer than this value. If unspecified, at most 50 data products will + * be returned. The maximum value is 1000; values above 1000 will be coerced + * to 1000. + * + * 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 page token, received from a previous `ListDataProducts` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListDataProducts` must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `ListDataProducts` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListDataProducts` must + * match the call that provided the page token. + * + * 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. Order by expression that orders data products listed in the + * response. + * Supported Order by fields are: `name` or `create_time`. + * If not specified, the ordering is undefined. + * Ordering by `create_time` is not supported when listing resources across + * locations (i.e. when request contains `/locations/-`). + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Order by expression that orders data products listed in the + * response. + * Supported Order by fields are: `name` or `create_time`. + * If not specified, the ordering is undefined. + * Ordering by `create_time` is not supported when listing resources across + * locations (i.e. when request contains `/locations/-`). + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataProductsResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataProductsResponse.php new file mode 100644 index 000000000000..ffa39cd40fe0 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataProductsResponse.php @@ -0,0 +1,139 @@ +google.cloud.dataplex.v1.ListDataProductsResponse + */ +class ListDataProductsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The data products for the requested filter criteria. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataProduct data_products = 1; + */ + private $data_products; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is empty, then there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Unordered list. Locations that the service couldn't reach. + * + * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + */ + private $unreachable; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\DataProduct[] $data_products + * The data products for the requested filter criteria. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is empty, then there are no subsequent pages. + * @type string[] $unreachable + * Unordered list. Locations that the service couldn't reach. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataProducts::initOnce(); + parent::__construct($data); + } + + /** + * The data products for the requested filter criteria. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataProduct data_products = 1; + * @return RepeatedField<\Google\Cloud\Dataplex\V1\DataProduct> + */ + public function getDataProducts() + { + return $this->data_products; + } + + /** + * The data products for the requested filter criteria. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataProduct data_products = 1; + * @param \Google\Cloud\Dataplex\V1\DataProduct[] $var + * @return $this + */ + public function setDataProducts($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\DataProduct::class); + $this->data_products = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is empty, then 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 can be sent as `page_token` to retrieve the next page. + * If this field is empty, then 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; + } + + /** + * Unordered list. Locations that the service couldn't reach. + * + * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * @return RepeatedField + */ + public function getUnreachable() + { + return $this->unreachable; + } + + /** + * Unordered list. Locations that the service couldn't reach. + * + * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * @param string[] $var + * @return $this + */ + public function setUnreachable($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unreachable = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataScanJobsRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataScanJobsRequest.php new file mode 100644 index 000000000000..db38ce7a7696 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataScanJobsRequest.php @@ -0,0 +1,266 @@ +google.cloud.dataplex.v1.ListDataScanJobsRequest + */ +class ListDataScanJobsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the parent environment: + * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}` + * where `project` refers to a *project_id* or *project_number* and + * `location_id` refers to a Google Cloud region. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. Maximum number of DataScanJobs to return. The service may return + * fewer than this value. If unspecified, at most 10 DataScanJobs will be + * returned. The maximum value is 1000; values above 1000 will be coerced to + * 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. Page token received from a previous `ListDataScanJobs` call. + * Provide this to retrieve the subsequent page. When paginating, all other + * parameters provided to `ListDataScanJobs` 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 = ''; + /** + * Optional. An expression for filtering the results of the ListDataScanJobs + * request. + * If unspecified, all datascan jobs will be returned. Multiple filters can be + * applied (with `AND`, `OR` logical operators). Filters are case-sensitive. + * Allowed fields are: + * - `start_time` + * - `end_time` + * `start_time` and `end_time` expect RFC-3339 formatted strings (e.g. + * 2018-10-08T18:30:00-07:00). + * For instance, 'start_time > 2018-10-08T00:00:00.123456789Z AND end_time < + * 2018-10-09T00:00:00.123456789Z' limits results to DataScanJobs between + * specified start and end times. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * @param string $parent Required. The resource name of the parent environment: + * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}` + * where `project` refers to a *project_id* or *project_number* and + * `location_id` refers to a Google Cloud region. Please see + * {@see DataScanServiceClient::dataScanName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\ListDataScanJobsRequest + * + * @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 resource name of the parent environment: + * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}` + * where `project` refers to a *project_id* or *project_number* and + * `location_id` refers to a Google Cloud region. + * @type int $page_size + * Optional. Maximum number of DataScanJobs to return. The service may return + * fewer than this value. If unspecified, at most 10 DataScanJobs will be + * returned. The maximum value is 1000; values above 1000 will be coerced to + * 1000. + * @type string $page_token + * Optional. Page token received from a previous `ListDataScanJobs` call. + * Provide this to retrieve the subsequent page. When paginating, all other + * parameters provided to `ListDataScanJobs` must match the call that provided + * the page token. + * @type string $filter + * Optional. An expression for filtering the results of the ListDataScanJobs + * request. + * If unspecified, all datascan jobs will be returned. Multiple filters can be + * applied (with `AND`, `OR` logical operators). Filters are case-sensitive. + * Allowed fields are: + * - `start_time` + * - `end_time` + * `start_time` and `end_time` expect RFC-3339 formatted strings (e.g. + * 2018-10-08T18:30:00-07:00). + * For instance, 'start_time > 2018-10-08T00:00:00.123456789Z AND end_time < + * 2018-10-09T00:00:00.123456789Z' limits results to DataScanJobs between + * specified start and end times. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Datascans::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the parent environment: + * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}` + * where `project` refers to a *project_id* or *project_number* and + * `location_id` refers to a Google Cloud region. + * + * 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 resource name of the parent environment: + * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}` + * where `project` refers to a *project_id* or *project_number* and + * `location_id` refers to a Google Cloud region. + * + * 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. Maximum number of DataScanJobs to return. The service may return + * fewer than this value. If unspecified, at most 10 DataScanJobs will be + * returned. The maximum value is 1000; values above 1000 will be coerced to + * 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. Maximum number of DataScanJobs to return. The service may return + * fewer than this value. If unspecified, at most 10 DataScanJobs will be + * returned. The maximum value is 1000; values above 1000 will be coerced to + * 1000. + * + * 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. Page token received from a previous `ListDataScanJobs` call. + * Provide this to retrieve the subsequent page. When paginating, all other + * parameters provided to `ListDataScanJobs` 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. Page token received from a previous `ListDataScanJobs` call. + * Provide this to retrieve the subsequent page. When paginating, all other + * parameters provided to `ListDataScanJobs` 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; + } + + /** + * Optional. An expression for filtering the results of the ListDataScanJobs + * request. + * If unspecified, all datascan jobs will be returned. Multiple filters can be + * applied (with `AND`, `OR` logical operators). Filters are case-sensitive. + * Allowed fields are: + * - `start_time` + * - `end_time` + * `start_time` and `end_time` expect RFC-3339 formatted strings (e.g. + * 2018-10-08T18:30:00-07:00). + * For instance, 'start_time > 2018-10-08T00:00:00.123456789Z AND end_time < + * 2018-10-09T00:00:00.123456789Z' limits results to DataScanJobs between + * specified start and end times. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. An expression for filtering the results of the ListDataScanJobs + * request. + * If unspecified, all datascan jobs will be returned. Multiple filters can be + * applied (with `AND`, `OR` logical operators). Filters are case-sensitive. + * Allowed fields are: + * - `start_time` + * - `end_time` + * `start_time` and `end_time` expect RFC-3339 formatted strings (e.g. + * 2018-10-08T18:30:00-07:00). + * For instance, 'start_time > 2018-10-08T00:00:00.123456789Z AND end_time < + * 2018-10-09T00:00:00.123456789Z' limits results to DataScanJobs between + * specified start and end times. + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataScanJobsResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataScanJobsResponse.php new file mode 100644 index 000000000000..8ec00a239bec --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataScanJobsResponse.php @@ -0,0 +1,105 @@ +google.cloud.dataplex.v1.ListDataScanJobsResponse + */ +class ListDataScanJobsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * DataScanJobs (`BASIC` view only) under a given dataScan. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataScanJob data_scan_jobs = 1; + */ + private $data_scan_jobs; + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * 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\Dataplex\V1\DataScanJob[] $data_scan_jobs + * DataScanJobs (`BASIC` view only) under a given dataScan. + * @type string $next_page_token + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Datascans::initOnce(); + parent::__construct($data); + } + + /** + * DataScanJobs (`BASIC` view only) under a given dataScan. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataScanJob data_scan_jobs = 1; + * @return RepeatedField<\Google\Cloud\Dataplex\V1\DataScanJob> + */ + public function getDataScanJobs() + { + return $this->data_scan_jobs; + } + + /** + * DataScanJobs (`BASIC` view only) under a given dataScan. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataScanJob data_scan_jobs = 1; + * @param \Google\Cloud\Dataplex\V1\DataScanJob[] $var + * @return $this + */ + public function setDataScanJobs($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\DataScanJob::class); + $this->data_scan_jobs = $arr; + + return $this; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataScansRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataScansRequest.php new file mode 100644 index 000000000000..3643e95afce9 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataScansRequest.php @@ -0,0 +1,256 @@ +google.cloud.dataplex.v1.ListDataScansRequest + */ +class ListDataScansRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the parent location: + * `projects/{project}/locations/{location_id}` + * where `project` refers to a *project_id* or *project_number* and + * `location_id` refers to a Google Cloud region. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. Maximum number of dataScans to return. The service may return + * fewer than this value. If unspecified, at most 500 scans will be returned. + * The maximum value is 1000; values above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. Page token received from a previous `ListDataScans` call. Provide + * this to retrieve the subsequent page. When paginating, all other parameters + * provided to `ListDataScans` 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 = ''; + /** + * Optional. Filter request. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Order by fields (`name` or `create_time`) for the result. + * If not specified, the ordering is undefined. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + + /** + * @param string $parent Required. The resource name of the parent location: + * `projects/{project}/locations/{location_id}` + * where `project` refers to a *project_id* or *project_number* and + * `location_id` refers to a Google Cloud region. Please see + * {@see DataScanServiceClient::locationName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\ListDataScansRequest + * + * @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 resource name of the parent location: + * `projects/{project}/locations/{location_id}` + * where `project` refers to a *project_id* or *project_number* and + * `location_id` refers to a Google Cloud region. + * @type int $page_size + * Optional. Maximum number of dataScans to return. The service may return + * fewer than this value. If unspecified, at most 500 scans will be returned. + * The maximum value is 1000; values above 1000 will be coerced to 1000. + * @type string $page_token + * Optional. Page token received from a previous `ListDataScans` call. Provide + * this to retrieve the subsequent page. When paginating, all other parameters + * provided to `ListDataScans` must match the call that provided the + * page token. + * @type string $filter + * Optional. Filter request. + * @type string $order_by + * Optional. Order by fields (`name` or `create_time`) for the result. + * If not specified, the ordering is undefined. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Datascans::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the parent location: + * `projects/{project}/locations/{location_id}` + * where `project` refers to a *project_id* or *project_number* and + * `location_id` refers to a Google Cloud region. + * + * 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 resource name of the parent location: + * `projects/{project}/locations/{location_id}` + * where `project` refers to a *project_id* or *project_number* and + * `location_id` refers to a Google Cloud region. + * + * 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. Maximum number of dataScans to return. The service may return + * fewer than this value. If unspecified, at most 500 scans will be returned. + * The maximum value is 1000; values above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. Maximum number of dataScans to return. The service may return + * fewer than this value. If unspecified, at most 500 scans will be returned. + * The maximum value is 1000; values above 1000 will be coerced to 1000. + * + * 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. Page token received from a previous `ListDataScans` call. Provide + * this to retrieve the subsequent page. When paginating, all other parameters + * provided to `ListDataScans` 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. Page token received from a previous `ListDataScans` call. Provide + * this to retrieve the subsequent page. When paginating, all other parameters + * provided to `ListDataScans` 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; + } + + /** + * Optional. Filter request. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Filter request. + * + * 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. Order by fields (`name` or `create_time`) for the result. + * If not specified, the ordering is undefined. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Order by fields (`name` or `create_time`) for the result. + * If not specified, the ordering is undefined. + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataScansResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataScansResponse.php new file mode 100644 index 000000000000..2038026be5de --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataScansResponse.php @@ -0,0 +1,139 @@ +google.cloud.dataplex.v1.ListDataScansResponse + */ +class ListDataScansResponse extends \Google\Protobuf\Internal\Message +{ + /** + * DataScans (`BASIC` view only) under the given parent location. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataScan data_scans = 1; + */ + private $data_scans; + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + */ + private $unreachable; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\DataScan[] $data_scans + * DataScans (`BASIC` view only) under the given parent location. + * @type string $next_page_token + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * @type string[] $unreachable + * Locations that could not be reached. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Datascans::initOnce(); + parent::__construct($data); + } + + /** + * DataScans (`BASIC` view only) under the given parent location. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataScan data_scans = 1; + * @return RepeatedField<\Google\Cloud\Dataplex\V1\DataScan> + */ + public function getDataScans() + { + return $this->data_scans; + } + + /** + * DataScans (`BASIC` view only) under the given parent location. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataScan data_scans = 1; + * @param \Google\Cloud\Dataplex\V1\DataScan[] $var + * @return $this + */ + public function setDataScans($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\DataScan::class); + $this->data_scans = $arr; + + return $this; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + * @return RepeatedField + */ + public function getUnreachable() + { + return $this->unreachable; + } + + /** + * Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable = 3; + * @param string[] $var + * @return $this + */ + public function setUnreachable($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unreachable = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataTaxonomiesRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataTaxonomiesRequest.php new file mode 100644 index 000000000000..11dc8914c625 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataTaxonomiesRequest.php @@ -0,0 +1,251 @@ +google.cloud.dataplex.v1.ListDataTaxonomiesRequest + */ +class ListDataTaxonomiesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the DataTaxonomy location, of the form: + * projects/{project_number}/locations/{location_id} + * where `location_id` refers to a Google Cloud region. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. Maximum number of DataTaxonomies to return. The service may + * return fewer than this value. If unspecified, at most 10 DataTaxonomies + * will be returned. The maximum value is 1000; values above 1000 will be + * coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. Page token received from a previous ` ListDataTaxonomies` call. + * Provide this to retrieve the subsequent page. When paginating, all other + * parameters provided to ` ListDataTaxonomies` 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 = ''; + /** + * Optional. Filter request. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Order by fields for the result. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + + /** + * @param string $parent Required. The resource name of the DataTaxonomy location, of the form: + * projects/{project_number}/locations/{location_id} + * where `location_id` refers to a Google Cloud region. Please see + * {@see DataTaxonomyServiceClient::locationName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\ListDataTaxonomiesRequest + * + * @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 resource name of the DataTaxonomy location, of the form: + * projects/{project_number}/locations/{location_id} + * where `location_id` refers to a Google Cloud region. + * @type int $page_size + * Optional. Maximum number of DataTaxonomies to return. The service may + * return fewer than this value. If unspecified, at most 10 DataTaxonomies + * will be returned. The maximum value is 1000; values above 1000 will be + * coerced to 1000. + * @type string $page_token + * Optional. Page token received from a previous ` ListDataTaxonomies` call. + * Provide this to retrieve the subsequent page. When paginating, all other + * parameters provided to ` ListDataTaxonomies` must match the call that + * provided the page token. + * @type string $filter + * Optional. Filter request. + * @type string $order_by + * Optional. Order by fields for the result. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataTaxonomy::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the DataTaxonomy location, of the form: + * projects/{project_number}/locations/{location_id} + * where `location_id` refers to a Google Cloud region. + * + * 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 resource name of the DataTaxonomy location, of the form: + * projects/{project_number}/locations/{location_id} + * where `location_id` refers to a Google Cloud region. + * + * 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. Maximum number of DataTaxonomies to return. The service may + * return fewer than this value. If unspecified, at most 10 DataTaxonomies + * will be returned. The maximum value is 1000; values above 1000 will be + * coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. Maximum number of DataTaxonomies to return. The service may + * return fewer than this value. If unspecified, at most 10 DataTaxonomies + * will be returned. The maximum value is 1000; values above 1000 will be + * coerced to 1000. + * + * 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. Page token received from a previous ` ListDataTaxonomies` call. + * Provide this to retrieve the subsequent page. When paginating, all other + * parameters provided to ` ListDataTaxonomies` 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. Page token received from a previous ` ListDataTaxonomies` call. + * Provide this to retrieve the subsequent page. When paginating, all other + * parameters provided to ` ListDataTaxonomies` 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; + } + + /** + * Optional. Filter request. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Filter request. + * + * 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. Order by fields for the result. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Order by fields for the result. + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataTaxonomiesResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataTaxonomiesResponse.php new file mode 100644 index 000000000000..b014118a717b --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataTaxonomiesResponse.php @@ -0,0 +1,139 @@ +google.cloud.dataplex.v1.ListDataTaxonomiesResponse + */ +class ListDataTaxonomiesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * DataTaxonomies under the given parent location. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataTaxonomy data_taxonomies = 1; + */ + private $data_taxonomies; + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable_locations = 3; + */ + private $unreachable_locations; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\DataTaxonomy[] $data_taxonomies + * DataTaxonomies under the given parent location. + * @type string $next_page_token + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * @type string[] $unreachable_locations + * Locations that could not be reached. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataTaxonomy::initOnce(); + parent::__construct($data); + } + + /** + * DataTaxonomies under the given parent location. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataTaxonomy data_taxonomies = 1; + * @return RepeatedField<\Google\Cloud\Dataplex\V1\DataTaxonomy> + */ + public function getDataTaxonomies() + { + return $this->data_taxonomies; + } + + /** + * DataTaxonomies under the given parent location. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataTaxonomy data_taxonomies = 1; + * @param \Google\Cloud\Dataplex\V1\DataTaxonomy[] $var + * @return $this + */ + public function setDataTaxonomies($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\DataTaxonomy::class); + $this->data_taxonomies = $arr; + + return $this; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable_locations = 3; + * @return RepeatedField + */ + public function getUnreachableLocations() + { + return $this->unreachable_locations; + } + + /** + * Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable_locations = 3; + * @param string[] $var + * @return $this + */ + public function setUnreachableLocations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unreachable_locations = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEncryptionConfigsRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEncryptionConfigsRequest.php new file mode 100644 index 000000000000..578d218aa887 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEncryptionConfigsRequest.php @@ -0,0 +1,297 @@ +google.cloud.dataplex.v1.ListEncryptionConfigsRequest + */ +class ListEncryptionConfigsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The location for which the EncryptionConfig is to be listed. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. Maximum number of EncryptionConfigs to return. The service may + * return fewer than this value. If unspecified, at most 10 EncryptionConfigs + * will be returned. The maximum value is 1000; values above 1000 will be + * coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. Page token received from a previous `ListEncryptionConfigs` call. + * Provide this to retrieve the subsequent page. When paginating, the + * parameters - filter and order_by provided to `ListEncryptionConfigs` 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 = ''; + /** + * Optional. Filter the EncryptionConfigs to be returned. + * Using bare literals: (These values will be matched anywhere it may appear + * in the object's field values) + * * filter=some_value + * Using fields: (These values will be matched only in the specified field) + * * filter=some_field=some_value + * Supported fields: + * * name, key, create_time, update_time, encryption_state + * Example: + * * filter=name=organizations/123/locations/us-central1/encryptionConfigs/test-config + * conjunctions: (AND, OR, NOT) + * * filter=name=organizations/123/locations/us-central1/encryptionConfigs/test-config + * AND mode=CMEK + * logical operators: (>, <, >=, <=, !=, =, :), + * * filter=create_time>2024-05-01T00:00:00.000Z + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Order by fields for the result. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + + /** + * @param string $parent Required. The location for which the EncryptionConfig is to be listed. Please see + * {@see CmekServiceClient::organizationLocationName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\ListEncryptionConfigsRequest + * + * @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 location for which the EncryptionConfig is to be listed. + * @type int $page_size + * Optional. Maximum number of EncryptionConfigs to return. The service may + * return fewer than this value. If unspecified, at most 10 EncryptionConfigs + * will be returned. The maximum value is 1000; values above 1000 will be + * coerced to 1000. + * @type string $page_token + * Optional. Page token received from a previous `ListEncryptionConfigs` call. + * Provide this to retrieve the subsequent page. When paginating, the + * parameters - filter and order_by provided to `ListEncryptionConfigs` must + * match the call that provided the page token. + * @type string $filter + * Optional. Filter the EncryptionConfigs to be returned. + * Using bare literals: (These values will be matched anywhere it may appear + * in the object's field values) + * * filter=some_value + * Using fields: (These values will be matched only in the specified field) + * * filter=some_field=some_value + * Supported fields: + * * name, key, create_time, update_time, encryption_state + * Example: + * * filter=name=organizations/123/locations/us-central1/encryptionConfigs/test-config + * conjunctions: (AND, OR, NOT) + * * filter=name=organizations/123/locations/us-central1/encryptionConfigs/test-config + * AND mode=CMEK + * logical operators: (>, <, >=, <=, !=, =, :), + * * filter=create_time>2024-05-01T00:00:00.000Z + * @type string $order_by + * Optional. Order by fields for the result. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Cmek::initOnce(); + parent::__construct($data); + } + + /** + * Required. The location for which the EncryptionConfig is to be listed. + * + * 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 location for which the EncryptionConfig is to be listed. + * + * 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. Maximum number of EncryptionConfigs to return. The service may + * return fewer than this value. If unspecified, at most 10 EncryptionConfigs + * will be returned. The maximum value is 1000; values above 1000 will be + * coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. Maximum number of EncryptionConfigs to return. The service may + * return fewer than this value. If unspecified, at most 10 EncryptionConfigs + * will be returned. The maximum value is 1000; values above 1000 will be + * coerced to 1000. + * + * 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. Page token received from a previous `ListEncryptionConfigs` call. + * Provide this to retrieve the subsequent page. When paginating, the + * parameters - filter and order_by provided to `ListEncryptionConfigs` 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. Page token received from a previous `ListEncryptionConfigs` call. + * Provide this to retrieve the subsequent page. When paginating, the + * parameters - filter and order_by provided to `ListEncryptionConfigs` 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; + } + + /** + * Optional. Filter the EncryptionConfigs to be returned. + * Using bare literals: (These values will be matched anywhere it may appear + * in the object's field values) + * * filter=some_value + * Using fields: (These values will be matched only in the specified field) + * * filter=some_field=some_value + * Supported fields: + * * name, key, create_time, update_time, encryption_state + * Example: + * * filter=name=organizations/123/locations/us-central1/encryptionConfigs/test-config + * conjunctions: (AND, OR, NOT) + * * filter=name=organizations/123/locations/us-central1/encryptionConfigs/test-config + * AND mode=CMEK + * logical operators: (>, <, >=, <=, !=, =, :), + * * filter=create_time>2024-05-01T00:00:00.000Z + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Filter the EncryptionConfigs to be returned. + * Using bare literals: (These values will be matched anywhere it may appear + * in the object's field values) + * * filter=some_value + * Using fields: (These values will be matched only in the specified field) + * * filter=some_field=some_value + * Supported fields: + * * name, key, create_time, update_time, encryption_state + * Example: + * * filter=name=organizations/123/locations/us-central1/encryptionConfigs/test-config + * conjunctions: (AND, OR, NOT) + * * filter=name=organizations/123/locations/us-central1/encryptionConfigs/test-config + * AND mode=CMEK + * logical operators: (>, <, >=, <=, !=, =, :), + * * filter=create_time>2024-05-01T00:00:00.000Z + * + * 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. Order by fields for the result. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Order by fields for the result. + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEncryptionConfigsResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEncryptionConfigsResponse.php new file mode 100644 index 000000000000..04cdb97afff2 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEncryptionConfigsResponse.php @@ -0,0 +1,139 @@ +google.cloud.dataplex.v1.ListEncryptionConfigsResponse + */ +class ListEncryptionConfigsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of EncryptionConfigs under the given parent location. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.EncryptionConfig encryption_configs = 1; + */ + private $encryption_configs; + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable_locations = 3 [(.google.api.resource_reference) = { + */ + private $unreachable_locations; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\EncryptionConfig[] $encryption_configs + * The list of EncryptionConfigs under the given parent location. + * @type string $next_page_token + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * @type string[] $unreachable_locations + * Locations that could not be reached. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Cmek::initOnce(); + parent::__construct($data); + } + + /** + * The list of EncryptionConfigs under the given parent location. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.EncryptionConfig encryption_configs = 1; + * @return RepeatedField<\Google\Cloud\Dataplex\V1\EncryptionConfig> + */ + public function getEncryptionConfigs() + { + return $this->encryption_configs; + } + + /** + * The list of EncryptionConfigs under the given parent location. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.EncryptionConfig encryption_configs = 1; + * @param \Google\Cloud\Dataplex\V1\EncryptionConfig[] $var + * @return $this + */ + public function setEncryptionConfigs($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\EncryptionConfig::class); + $this->encryption_configs = $arr; + + return $this; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable_locations = 3 [(.google.api.resource_reference) = { + * @return RepeatedField + */ + public function getUnreachableLocations() + { + return $this->unreachable_locations; + } + + /** + * Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable_locations = 3 [(.google.api.resource_reference) = { + * @param string[] $var + * @return $this + */ + public function setUnreachableLocations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unreachable_locations = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntitiesRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntitiesRequest.php new file mode 100644 index 000000000000..ca616d8417f6 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntitiesRequest.php @@ -0,0 +1,270 @@ +google.cloud.dataplex.v1.ListEntitiesRequest + */ +class ListEntitiesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the parent zone: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. Specify the entity view to make a partial list request. + * + * Generated from protobuf field .google.cloud.dataplex.v1.ListEntitiesRequest.EntityView view = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $view = 0; + /** + * Optional. Maximum number of entities to return. The service may return + * fewer than this value. If unspecified, 100 entities will be returned by + * default. The maximum value is 500; larger values will will be truncated to + * 500. + * + * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. Page token received from a previous `ListEntities` call. Provide + * this to retrieve the subsequent page. When paginating, all other parameters + * provided to `ListEntities` must match the call that provided the + * page token. + * + * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. The following filter parameters can be added to the URL to limit + * the entities returned by the API: + * - Entity ID: ?filter="id=entityID" + * - Asset ID: ?filter="asset=assetID" + * - Data path ?filter="data_path=gs://my-bucket" + * - Is HIVE compatible: ?filter="hive_compatible=true" + * - Is BigQuery compatible: ?filter="bigquery_compatible=true" + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * @param string $parent Required. The resource name of the parent zone: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. Please see + * {@see MetadataServiceClient::zoneName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\ListEntitiesRequest + * + * @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 resource name of the parent zone: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. + * @type int $view + * Required. Specify the entity view to make a partial list request. + * @type int $page_size + * Optional. Maximum number of entities to return. The service may return + * fewer than this value. If unspecified, 100 entities will be returned by + * default. The maximum value is 500; larger values will will be truncated to + * 500. + * @type string $page_token + * Optional. Page token received from a previous `ListEntities` call. Provide + * this to retrieve the subsequent page. When paginating, all other parameters + * provided to `ListEntities` must match the call that provided the + * page token. + * @type string $filter + * Optional. The following filter parameters can be added to the URL to limit + * the entities returned by the API: + * - Entity ID: ?filter="id=entityID" + * - Asset ID: ?filter="asset=assetID" + * - Data path ?filter="data_path=gs://my-bucket" + * - Is HIVE compatible: ?filter="hive_compatible=true" + * - Is BigQuery compatible: ?filter="bigquery_compatible=true" + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Metadata::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the parent zone: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. + * + * 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 resource name of the parent zone: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. + * + * 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. Specify the entity view to make a partial list request. + * + * Generated from protobuf field .google.cloud.dataplex.v1.ListEntitiesRequest.EntityView view = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getView() + { + return $this->view; + } + + /** + * Required. Specify the entity view to make a partial list request. + * + * Generated from protobuf field .google.cloud.dataplex.v1.ListEntitiesRequest.EntityView view = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setView($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\ListEntitiesRequest\EntityView::class); + $this->view = $var; + + return $this; + } + + /** + * Optional. Maximum number of entities to return. The service may return + * fewer than this value. If unspecified, 100 entities will be returned by + * default. The maximum value is 500; larger values will will be truncated to + * 500. + * + * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. Maximum number of entities to return. The service may return + * fewer than this value. If unspecified, 100 entities will be returned by + * default. The maximum value is 500; larger values will will be truncated to + * 500. + * + * 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. Page token received from a previous `ListEntities` call. Provide + * this to retrieve the subsequent page. When paginating, all other parameters + * provided to `ListEntities` must match the call that provided the + * page token. + * + * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. Page token received from a previous `ListEntities` call. Provide + * this to retrieve the subsequent page. When paginating, all other parameters + * provided to `ListEntities` must match the call that provided the + * page token. + * + * 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 following filter parameters can be added to the URL to limit + * the entities returned by the API: + * - Entity ID: ?filter="id=entityID" + * - Asset ID: ?filter="asset=assetID" + * - Data path ?filter="data_path=gs://my-bucket" + * - Is HIVE compatible: ?filter="hive_compatible=true" + * - Is BigQuery compatible: ?filter="bigquery_compatible=true" + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. The following filter parameters can be added to the URL to limit + * the entities returned by the API: + * - Entity ID: ?filter="id=entityID" + * - Asset ID: ?filter="asset=assetID" + * - Data path ?filter="data_path=gs://my-bucket" + * - Is HIVE compatible: ?filter="hive_compatible=true" + * - Is BigQuery compatible: ?filter="bigquery_compatible=true" + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntitiesRequest/EntityView.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntitiesRequest/EntityView.php new file mode 100644 index 000000000000..6c5ed2eb6cae --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntitiesRequest/EntityView.php @@ -0,0 +1,62 @@ +google.cloud.dataplex.v1.ListEntitiesRequest.EntityView + */ +class EntityView +{ + /** + * The default unset value. Return both table and fileset entities + * if unspecified. + * + * Generated from protobuf enum ENTITY_VIEW_UNSPECIFIED = 0; + */ + const ENTITY_VIEW_UNSPECIFIED = 0; + /** + * Only list table entities. + * + * Generated from protobuf enum TABLES = 1; + */ + const TABLES = 1; + /** + * Only list fileset entities. + * + * Generated from protobuf enum FILESETS = 2; + */ + const FILESETS = 2; + + private static $valueToName = [ + self::ENTITY_VIEW_UNSPECIFIED => 'ENTITY_VIEW_UNSPECIFIED', + self::TABLES => 'TABLES', + self::FILESETS => 'FILESETS', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntitiesResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntitiesResponse.php new file mode 100644 index 000000000000..d73b46a8b79e --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntitiesResponse.php @@ -0,0 +1,105 @@ +google.cloud.dataplex.v1.ListEntitiesResponse + */ +class ListEntitiesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Entities in the specified parent zone. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.Entity entities = 1; + */ + private $entities; + /** + * Token to retrieve the next page of results, or empty if there are no + * remaining results in the list. + * + * 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\Dataplex\V1\Entity[] $entities + * Entities in the specified parent zone. + * @type string $next_page_token + * Token to retrieve the next page of results, or empty if there are no + * remaining results in the list. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Metadata::initOnce(); + parent::__construct($data); + } + + /** + * Entities in the specified parent zone. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.Entity entities = 1; + * @return RepeatedField<\Google\Cloud\Dataplex\V1\Entity> + */ + public function getEntities() + { + return $this->entities; + } + + /** + * Entities in the specified parent zone. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.Entity entities = 1; + * @param \Google\Cloud\Dataplex\V1\Entity[] $var + * @return $this + */ + public function setEntities($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\Entity::class); + $this->entities = $arr; + + return $this; + } + + /** + * Token to retrieve the next page of results, or empty if there are no + * remaining results in the list. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Token to retrieve the next page of results, or empty if there are no + * remaining results in the list. + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntriesRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntriesRequest.php new file mode 100644 index 000000000000..ce501048eda1 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntriesRequest.php @@ -0,0 +1,272 @@ +google.cloud.dataplex.v1.ListEntriesRequest + */ +class ListEntriesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the parent Entry Group: + * `projects/{project}/locations/{location}/entryGroups/{entry_group}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. Number of items to return per page. If there are remaining + * results, the service returns a next_page_token. If unspecified, the service + * returns at most 10 Entries. The maximum value is 100; values above 100 will + * be coerced to 100. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. Page token received from a previous `ListEntries` call. Provide + * this to retrieve the subsequent page. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. A filter on the entries to return. Filters are case-sensitive. + * You can filter the request by the following fields: + * * entry_type + * * entry_source.display_name + * * parent_entry + * The comparison operators are =, !=, <, >, <=, >=. The service compares + * strings according to lexical order. + * You can use the logical operators AND, OR, NOT in the filter. + * You can use Wildcard "*", but for entry_type and parent_entry you need to + * provide the full project id or number. + * You cannot use parent_entry in conjunction with other fields. + * Example filter expressions: + * * "entry_source.display_name=AnExampleDisplayName" + * * "entry_type=projects/example-project/locations/global/entryTypes/example-entry_type" + * * "entry_type=projects/example-project/locations/us/entryTypes/a* OR + * entry_type=projects/another-project/locations/*" + * * "NOT entry_source.display_name=AnotherExampleDisplayName" + * * "parent_entry=projects/example-project/locations/us/entryGroups/example-entry-group/entries/example-entry" + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * @param string $parent Required. The resource name of the parent Entry Group: + * `projects/{project}/locations/{location}/entryGroups/{entry_group}`. Please see + * {@see CatalogServiceClient::entryGroupName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\ListEntriesRequest + * + * @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 resource name of the parent Entry Group: + * `projects/{project}/locations/{location}/entryGroups/{entry_group}`. + * @type int $page_size + * Optional. Number of items to return per page. If there are remaining + * results, the service returns a next_page_token. If unspecified, the service + * returns at most 10 Entries. The maximum value is 100; values above 100 will + * be coerced to 100. + * @type string $page_token + * Optional. Page token received from a previous `ListEntries` call. Provide + * this to retrieve the subsequent page. + * @type string $filter + * Optional. A filter on the entries to return. Filters are case-sensitive. + * You can filter the request by the following fields: + * * entry_type + * * entry_source.display_name + * * parent_entry + * The comparison operators are =, !=, <, >, <=, >=. The service compares + * strings according to lexical order. + * You can use the logical operators AND, OR, NOT in the filter. + * You can use Wildcard "*", but for entry_type and parent_entry you need to + * provide the full project id or number. + * You cannot use parent_entry in conjunction with other fields. + * Example filter expressions: + * * "entry_source.display_name=AnExampleDisplayName" + * * "entry_type=projects/example-project/locations/global/entryTypes/example-entry_type" + * * "entry_type=projects/example-project/locations/us/entryTypes/a* OR + * entry_type=projects/another-project/locations/*" + * * "NOT entry_source.display_name=AnotherExampleDisplayName" + * * "parent_entry=projects/example-project/locations/us/entryGroups/example-entry-group/entries/example-entry" + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the parent Entry Group: + * `projects/{project}/locations/{location}/entryGroups/{entry_group}`. + * + * 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 resource name of the parent Entry Group: + * `projects/{project}/locations/{location}/entryGroups/{entry_group}`. + * + * 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. Number of items to return per page. If there are remaining + * results, the service returns a next_page_token. If unspecified, the service + * returns at most 10 Entries. The maximum value is 100; values above 100 will + * be coerced to 100. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. Number of items to return per page. If there are remaining + * results, the service returns a next_page_token. If unspecified, the service + * returns at most 10 Entries. The maximum value is 100; values above 100 will + * be coerced to 100. + * + * 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. Page token received from a previous `ListEntries` call. Provide + * this to retrieve the subsequent page. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. Page token received from a previous `ListEntries` call. Provide + * this to retrieve the subsequent page. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. A filter on the entries to return. Filters are case-sensitive. + * You can filter the request by the following fields: + * * entry_type + * * entry_source.display_name + * * parent_entry + * The comparison operators are =, !=, <, >, <=, >=. The service compares + * strings according to lexical order. + * You can use the logical operators AND, OR, NOT in the filter. + * You can use Wildcard "*", but for entry_type and parent_entry you need to + * provide the full project id or number. + * You cannot use parent_entry in conjunction with other fields. + * Example filter expressions: + * * "entry_source.display_name=AnExampleDisplayName" + * * "entry_type=projects/example-project/locations/global/entryTypes/example-entry_type" + * * "entry_type=projects/example-project/locations/us/entryTypes/a* OR + * entry_type=projects/another-project/locations/*" + * * "NOT entry_source.display_name=AnotherExampleDisplayName" + * * "parent_entry=projects/example-project/locations/us/entryGroups/example-entry-group/entries/example-entry" + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. A filter on the entries to return. Filters are case-sensitive. + * You can filter the request by the following fields: + * * entry_type + * * entry_source.display_name + * * parent_entry + * The comparison operators are =, !=, <, >, <=, >=. The service compares + * strings according to lexical order. + * You can use the logical operators AND, OR, NOT in the filter. + * You can use Wildcard "*", but for entry_type and parent_entry you need to + * provide the full project id or number. + * You cannot use parent_entry in conjunction with other fields. + * Example filter expressions: + * * "entry_source.display_name=AnExampleDisplayName" + * * "entry_type=projects/example-project/locations/global/entryTypes/example-entry_type" + * * "entry_type=projects/example-project/locations/us/entryTypes/a* OR + * entry_type=projects/another-project/locations/*" + * * "NOT entry_source.display_name=AnotherExampleDisplayName" + * * "parent_entry=projects/example-project/locations/us/entryGroups/example-entry-group/entries/example-entry" + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntriesResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntriesResponse.php new file mode 100644 index 000000000000..2a665ae0b631 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntriesResponse.php @@ -0,0 +1,105 @@ +google.cloud.dataplex.v1.ListEntriesResponse + */ +class ListEntriesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of entries under the given parent location. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.Entry entries = 1; + */ + private $entries; + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * 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\Dataplex\V1\Entry[] $entries + * The list of entries under the given parent location. + * @type string $next_page_token + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * The list of entries under the given parent location. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.Entry entries = 1; + * @return RepeatedField<\Google\Cloud\Dataplex\V1\Entry> + */ + public function getEntries() + { + return $this->entries; + } + + /** + * The list of entries under the given parent location. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.Entry entries = 1; + * @param \Google\Cloud\Dataplex\V1\Entry[] $var + * @return $this + */ + public function setEntries($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\Entry::class); + $this->entries = $arr; + + return $this; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntryGroupsRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntryGroupsRequest.php new file mode 100644 index 000000000000..fb6c5c85cbd5 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntryGroupsRequest.php @@ -0,0 +1,251 @@ +google.cloud.dataplex.v1.ListEntryGroupsRequest + */ +class ListEntryGroupsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the entryGroup location, of the form: + * `projects/{project_number}/locations/{location_id}` + * where `location_id` refers to a Google Cloud region. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. Maximum number of EntryGroups to return. The service may return + * fewer than this value. If unspecified, the service returns at most 10 + * EntryGroups. The maximum value is 1000; values above 1000 will be coerced + * to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. Page token received from a previous `ListEntryGroups` call. + * Provide this to retrieve the subsequent page. When paginating, all other + * parameters you provide to `ListEntryGroups` 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 = ''; + /** + * Optional. Filter request. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Order by fields for the result. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + + /** + * @param string $parent Required. The resource name of the entryGroup location, of the form: + * `projects/{project_number}/locations/{location_id}` + * where `location_id` refers to a Google Cloud region. Please see + * {@see CatalogServiceClient::locationName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\ListEntryGroupsRequest + * + * @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 resource name of the entryGroup location, of the form: + * `projects/{project_number}/locations/{location_id}` + * where `location_id` refers to a Google Cloud region. + * @type int $page_size + * Optional. Maximum number of EntryGroups to return. The service may return + * fewer than this value. If unspecified, the service returns at most 10 + * EntryGroups. The maximum value is 1000; values above 1000 will be coerced + * to 1000. + * @type string $page_token + * Optional. Page token received from a previous `ListEntryGroups` call. + * Provide this to retrieve the subsequent page. When paginating, all other + * parameters you provide to `ListEntryGroups` must match the call that + * provided the page token. + * @type string $filter + * Optional. Filter request. + * @type string $order_by + * Optional. Order by fields for the result. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the entryGroup location, of the form: + * `projects/{project_number}/locations/{location_id}` + * where `location_id` refers to a Google Cloud region. + * + * 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 resource name of the entryGroup location, of the form: + * `projects/{project_number}/locations/{location_id}` + * where `location_id` refers to a Google Cloud region. + * + * 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. Maximum number of EntryGroups to return. The service may return + * fewer than this value. If unspecified, the service returns at most 10 + * EntryGroups. The maximum value is 1000; values above 1000 will be coerced + * to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. Maximum number of EntryGroups to return. The service may return + * fewer than this value. If unspecified, the service returns at most 10 + * EntryGroups. The maximum value is 1000; values above 1000 will be coerced + * to 1000. + * + * 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. Page token received from a previous `ListEntryGroups` call. + * Provide this to retrieve the subsequent page. When paginating, all other + * parameters you provide to `ListEntryGroups` 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. Page token received from a previous `ListEntryGroups` call. + * Provide this to retrieve the subsequent page. When paginating, all other + * parameters you provide to `ListEntryGroups` 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; + } + + /** + * Optional. Filter request. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Filter request. + * + * 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. Order by fields for the result. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Order by fields for the result. + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntryGroupsResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntryGroupsResponse.php new file mode 100644 index 000000000000..2a91bbc5b618 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntryGroupsResponse.php @@ -0,0 +1,139 @@ +google.cloud.dataplex.v1.ListEntryGroupsResponse + */ +class ListEntryGroupsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Entry groups under the given parent location. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.EntryGroup entry_groups = 1; + */ + private $entry_groups; + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Locations that the service couldn't reach. + * + * Generated from protobuf field repeated string unreachable_locations = 3; + */ + private $unreachable_locations; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\EntryGroup[] $entry_groups + * Entry groups under the given parent location. + * @type string $next_page_token + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * @type string[] $unreachable_locations + * Locations that the service couldn't reach. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Entry groups under the given parent location. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.EntryGroup entry_groups = 1; + * @return RepeatedField<\Google\Cloud\Dataplex\V1\EntryGroup> + */ + public function getEntryGroups() + { + return $this->entry_groups; + } + + /** + * Entry groups under the given parent location. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.EntryGroup entry_groups = 1; + * @param \Google\Cloud\Dataplex\V1\EntryGroup[] $var + * @return $this + */ + public function setEntryGroups($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\EntryGroup::class); + $this->entry_groups = $arr; + + return $this; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Locations that the service couldn't reach. + * + * Generated from protobuf field repeated string unreachable_locations = 3; + * @return RepeatedField + */ + public function getUnreachableLocations() + { + return $this->unreachable_locations; + } + + /** + * Locations that the service couldn't reach. + * + * Generated from protobuf field repeated string unreachable_locations = 3; + * @param string[] $var + * @return $this + */ + public function setUnreachableLocations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unreachable_locations = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntryTypesRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntryTypesRequest.php new file mode 100644 index 000000000000..15e13aca2b6a --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntryTypesRequest.php @@ -0,0 +1,275 @@ +google.cloud.dataplex.v1.ListEntryTypesRequest + */ +class ListEntryTypesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the EntryType location, of the form: + * `projects/{project_number}/locations/{location_id}` + * where `location_id` refers to a Google Cloud region. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. Maximum number of EntryTypes to return. The service may return + * fewer than this value. If unspecified, the service returns at most 10 + * EntryTypes. The maximum value is 1000; values above 1000 will be coerced to + * 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. Page token received from a previous `ListEntryTypes` call. + * Provide this to retrieve the subsequent page. When paginating, all other + * parameters you provided to `ListEntryTypes` 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 = ''; + /** + * Optional. Filter request. Filters are case-sensitive. + * The service supports the following formats: + * * labels.key1 = "value1" + * * labels:key1 + * * name = "value" + * These restrictions can be conjoined with AND, OR, and NOT conjunctions. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Orders the result by `name` or `create_time` fields. + * If not specified, the ordering is undefined. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + + /** + * @param string $parent Required. The resource name of the EntryType location, of the form: + * `projects/{project_number}/locations/{location_id}` + * where `location_id` refers to a Google Cloud region. Please see + * {@see CatalogServiceClient::locationName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\ListEntryTypesRequest + * + * @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 resource name of the EntryType location, of the form: + * `projects/{project_number}/locations/{location_id}` + * where `location_id` refers to a Google Cloud region. + * @type int $page_size + * Optional. Maximum number of EntryTypes to return. The service may return + * fewer than this value. If unspecified, the service returns at most 10 + * EntryTypes. The maximum value is 1000; values above 1000 will be coerced to + * 1000. + * @type string $page_token + * Optional. Page token received from a previous `ListEntryTypes` call. + * Provide this to retrieve the subsequent page. When paginating, all other + * parameters you provided to `ListEntryTypes` must match the call that + * provided the page token. + * @type string $filter + * Optional. Filter request. Filters are case-sensitive. + * The service supports the following formats: + * * labels.key1 = "value1" + * * labels:key1 + * * name = "value" + * These restrictions can be conjoined with AND, OR, and NOT conjunctions. + * @type string $order_by + * Optional. Orders the result by `name` or `create_time` fields. + * If not specified, the ordering is undefined. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the EntryType location, of the form: + * `projects/{project_number}/locations/{location_id}` + * where `location_id` refers to a Google Cloud region. + * + * 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 resource name of the EntryType location, of the form: + * `projects/{project_number}/locations/{location_id}` + * where `location_id` refers to a Google Cloud region. + * + * 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. Maximum number of EntryTypes to return. The service may return + * fewer than this value. If unspecified, the service returns at most 10 + * EntryTypes. The maximum value is 1000; values above 1000 will be coerced to + * 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. Maximum number of EntryTypes to return. The service may return + * fewer than this value. If unspecified, the service returns at most 10 + * EntryTypes. The maximum value is 1000; values above 1000 will be coerced to + * 1000. + * + * 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. Page token received from a previous `ListEntryTypes` call. + * Provide this to retrieve the subsequent page. When paginating, all other + * parameters you provided to `ListEntryTypes` 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. Page token received from a previous `ListEntryTypes` call. + * Provide this to retrieve the subsequent page. When paginating, all other + * parameters you provided to `ListEntryTypes` 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; + } + + /** + * Optional. Filter request. Filters are case-sensitive. + * The service supports the following formats: + * * labels.key1 = "value1" + * * labels:key1 + * * name = "value" + * These restrictions can be conjoined with AND, OR, and NOT conjunctions. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Filter request. Filters are case-sensitive. + * The service supports the following formats: + * * labels.key1 = "value1" + * * labels:key1 + * * name = "value" + * These restrictions can be conjoined with AND, OR, and NOT conjunctions. + * + * 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. Orders the result by `name` or `create_time` fields. + * If not specified, the ordering is undefined. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Orders the result by `name` or `create_time` fields. + * If not specified, the ordering is undefined. + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntryTypesResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntryTypesResponse.php new file mode 100644 index 000000000000..0410050f3e86 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntryTypesResponse.php @@ -0,0 +1,139 @@ +google.cloud.dataplex.v1.ListEntryTypesResponse + */ +class ListEntryTypesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * EntryTypes under the given parent location. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.EntryType entry_types = 1; + */ + private $entry_types; + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Locations that the service couldn't reach. + * + * Generated from protobuf field repeated string unreachable_locations = 3; + */ + private $unreachable_locations; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\EntryType[] $entry_types + * EntryTypes under the given parent location. + * @type string $next_page_token + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * @type string[] $unreachable_locations + * Locations that the service couldn't reach. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * EntryTypes under the given parent location. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.EntryType entry_types = 1; + * @return RepeatedField<\Google\Cloud\Dataplex\V1\EntryType> + */ + public function getEntryTypes() + { + return $this->entry_types; + } + + /** + * EntryTypes under the given parent location. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.EntryType entry_types = 1; + * @param \Google\Cloud\Dataplex\V1\EntryType[] $var + * @return $this + */ + public function setEntryTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\EntryType::class); + $this->entry_types = $arr; + + return $this; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Locations that the service couldn't reach. + * + * Generated from protobuf field repeated string unreachable_locations = 3; + * @return RepeatedField + */ + public function getUnreachableLocations() + { + return $this->unreachable_locations; + } + + /** + * Locations that the service couldn't reach. + * + * Generated from protobuf field repeated string unreachable_locations = 3; + * @param string[] $var + * @return $this + */ + public function setUnreachableLocations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unreachable_locations = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListGlossariesRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListGlossariesRequest.php new file mode 100644 index 000000000000..aaee2e953664 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListGlossariesRequest.php @@ -0,0 +1,279 @@ +google.cloud.dataplex.v1.ListGlossariesRequest + */ +class ListGlossariesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which has this collection of Glossaries. + * Format: projects/{project_id_or_number}/locations/{location_id} + * where `location_id` refers to a Google Cloud region. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of Glossaries to return. The service may + * return fewer than this value. If unspecified, at most 50 Glossaries will be + * returned. The maximum value is 1000; values above 1000 will be coerced to + * 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListGlossaries` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListGlossaries` 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 = ''; + /** + * Optional. Filter expression that filters Glossaries listed in the response. + * Filters on proto fields of Glossary are supported. + * Examples of using a filter are: + * - `display_name="my-glossary"` + * - `categoryCount=1` + * - `termCount=0` + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Order by expression that orders Glossaries listed in the + * response. Order by fields are: `name` or `create_time` for the result. If + * not specified, the ordering is undefined. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + + /** + * @param string $parent Required. The parent, which has this collection of Glossaries. + * Format: projects/{project_id_or_number}/locations/{location_id} + * where `location_id` refers to a Google Cloud region. Please see + * {@see BusinessGlossaryServiceClient::locationName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\ListGlossariesRequest + * + * @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, which has this collection of Glossaries. + * Format: projects/{project_id_or_number}/locations/{location_id} + * where `location_id` refers to a Google Cloud region. + * @type int $page_size + * Optional. The maximum number of Glossaries to return. The service may + * return fewer than this value. If unspecified, at most 50 Glossaries will be + * returned. The maximum value is 1000; values above 1000 will be coerced to + * 1000. + * @type string $page_token + * Optional. A page token, received from a previous `ListGlossaries` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListGlossaries` must + * match the call that provided the page token. + * @type string $filter + * Optional. Filter expression that filters Glossaries listed in the response. + * Filters on proto fields of Glossary are supported. + * Examples of using a filter are: + * - `display_name="my-glossary"` + * - `categoryCount=1` + * - `termCount=0` + * @type string $order_by + * Optional. Order by expression that orders Glossaries listed in the + * response. Order by fields are: `name` or `create_time` for the result. If + * not specified, the ordering is undefined. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\BusinessGlossary::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which has this collection of Glossaries. + * Format: projects/{project_id_or_number}/locations/{location_id} + * where `location_id` refers to a Google Cloud region. + * + * 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, which has this collection of Glossaries. + * Format: projects/{project_id_or_number}/locations/{location_id} + * where `location_id` refers to a Google Cloud region. + * + * 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 Glossaries to return. The service may + * return fewer than this value. If unspecified, at most 50 Glossaries will be + * returned. The maximum value is 1000; values above 1000 will be coerced to + * 1000. + * + * 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 Glossaries to return. The service may + * return fewer than this value. If unspecified, at most 50 Glossaries will be + * returned. The maximum value is 1000; values above 1000 will be coerced to + * 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `ListGlossaries` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListGlossaries` 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 page token, received from a previous `ListGlossaries` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListGlossaries` 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; + } + + /** + * Optional. Filter expression that filters Glossaries listed in the response. + * Filters on proto fields of Glossary are supported. + * Examples of using a filter are: + * - `display_name="my-glossary"` + * - `categoryCount=1` + * - `termCount=0` + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Filter expression that filters Glossaries listed in the response. + * Filters on proto fields of Glossary are supported. + * Examples of using a filter are: + * - `display_name="my-glossary"` + * - `categoryCount=1` + * - `termCount=0` + * + * 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. Order by expression that orders Glossaries listed in the + * response. Order by fields are: `name` or `create_time` for the result. If + * not specified, the ordering is undefined. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Order by expression that orders Glossaries listed in the + * response. Order by fields are: `name` or `create_time` for the result. If + * not specified, the ordering is undefined. + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListGlossariesResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListGlossariesResponse.php new file mode 100644 index 000000000000..7d13943ca5a6 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListGlossariesResponse.php @@ -0,0 +1,139 @@ +google.cloud.dataplex.v1.ListGlossariesResponse + */ +class ListGlossariesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Lists the Glossaries in the specified parent. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.Glossary glossaries = 1; + */ + private $glossaries; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Locations that the service couldn't reach. + * + * Generated from protobuf field repeated string unreachable_locations = 3; + */ + private $unreachable_locations; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\Glossary[] $glossaries + * Lists the Glossaries in the specified parent. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type string[] $unreachable_locations + * Locations that the service couldn't reach. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\BusinessGlossary::initOnce(); + parent::__construct($data); + } + + /** + * Lists the Glossaries in the specified parent. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.Glossary glossaries = 1; + * @return RepeatedField<\Google\Cloud\Dataplex\V1\Glossary> + */ + public function getGlossaries() + { + return $this->glossaries; + } + + /** + * Lists the Glossaries in the specified parent. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.Glossary glossaries = 1; + * @param \Google\Cloud\Dataplex\V1\Glossary[] $var + * @return $this + */ + public function setGlossaries($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\Glossary::class); + $this->glossaries = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Locations that the service couldn't reach. + * + * Generated from protobuf field repeated string unreachable_locations = 3; + * @return RepeatedField + */ + public function getUnreachableLocations() + { + return $this->unreachable_locations; + } + + /** + * Locations that the service couldn't reach. + * + * Generated from protobuf field repeated string unreachable_locations = 3; + * @param string[] $var + * @return $this + */ + public function setUnreachableLocations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unreachable_locations = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListGlossaryCategoriesRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListGlossaryCategoriesRequest.php new file mode 100644 index 000000000000..2e6b993c0151 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListGlossaryCategoriesRequest.php @@ -0,0 +1,300 @@ +google.cloud.dataplex.v1.ListGlossaryCategoriesRequest + */ +class ListGlossaryCategoriesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which has this collection of GlossaryCategories. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} + * Location is the Google Cloud region. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of GlossaryCategories to return. The service + * may return fewer than this value. If unspecified, at most 50 + * GlossaryCategories will be returned. The maximum value is 1000; values + * above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListGlossaryCategories` + * call. Provide this to retrieve the subsequent page. When paginating, all + * other parameters provided to `ListGlossaryCategories` 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 = ''; + /** + * Optional. Filter expression that filters GlossaryCategories listed in the + * response. Filters are supported on the following fields: + * - immediate_parent + * Examples of using a filter are: + * - + * `immediate_parent="projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}"` + * - + * `immediate_parent="projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id}"` + * This will only return the GlossaryCategories that are directly nested + * under the specified parent. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Order by expression that orders GlossaryCategories listed in the + * response. Order by fields are: `name` or `create_time` for the result. If + * not specified, the ordering is undefined. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + + /** + * @param string $parent Required. The parent, which has this collection of GlossaryCategories. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} + * Location is the Google Cloud region. Please see + * {@see BusinessGlossaryServiceClient::glossaryName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\ListGlossaryCategoriesRequest + * + * @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, which has this collection of GlossaryCategories. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} + * Location is the Google Cloud region. + * @type int $page_size + * Optional. The maximum number of GlossaryCategories to return. The service + * may return fewer than this value. If unspecified, at most 50 + * GlossaryCategories will be returned. The maximum value is 1000; values + * above 1000 will be coerced to 1000. + * @type string $page_token + * Optional. A page token, received from a previous `ListGlossaryCategories` + * call. Provide this to retrieve the subsequent page. When paginating, all + * other parameters provided to `ListGlossaryCategories` must match the call + * that provided the page token. + * @type string $filter + * Optional. Filter expression that filters GlossaryCategories listed in the + * response. Filters are supported on the following fields: + * - immediate_parent + * Examples of using a filter are: + * - + * `immediate_parent="projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}"` + * - + * `immediate_parent="projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id}"` + * This will only return the GlossaryCategories that are directly nested + * under the specified parent. + * @type string $order_by + * Optional. Order by expression that orders GlossaryCategories listed in the + * response. Order by fields are: `name` or `create_time` for the result. If + * not specified, the ordering is undefined. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\BusinessGlossary::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which has this collection of GlossaryCategories. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} + * Location is the Google Cloud region. + * + * 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, which has this collection of GlossaryCategories. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} + * Location is the Google Cloud region. + * + * 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 GlossaryCategories to return. The service + * may return fewer than this value. If unspecified, at most 50 + * GlossaryCategories will be returned. The maximum value is 1000; values + * above 1000 will be coerced to 1000. + * + * 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 GlossaryCategories to return. The service + * may return fewer than this value. If unspecified, at most 50 + * GlossaryCategories will be returned. The maximum value is 1000; values + * above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `ListGlossaryCategories` + * call. Provide this to retrieve the subsequent page. When paginating, all + * other parameters provided to `ListGlossaryCategories` 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 page token, received from a previous `ListGlossaryCategories` + * call. Provide this to retrieve the subsequent page. When paginating, all + * other parameters provided to `ListGlossaryCategories` 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; + } + + /** + * Optional. Filter expression that filters GlossaryCategories listed in the + * response. Filters are supported on the following fields: + * - immediate_parent + * Examples of using a filter are: + * - + * `immediate_parent="projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}"` + * - + * `immediate_parent="projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id}"` + * This will only return the GlossaryCategories that are directly nested + * under the specified parent. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Filter expression that filters GlossaryCategories listed in the + * response. Filters are supported on the following fields: + * - immediate_parent + * Examples of using a filter are: + * - + * `immediate_parent="projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}"` + * - + * `immediate_parent="projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id}"` + * This will only return the GlossaryCategories that are directly nested + * under the specified parent. + * + * 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. Order by expression that orders GlossaryCategories listed in the + * response. Order by fields are: `name` or `create_time` for the result. If + * not specified, the ordering is undefined. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Order by expression that orders GlossaryCategories listed in the + * response. Order by fields are: `name` or `create_time` for the result. If + * not specified, the ordering is undefined. + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListGlossaryCategoriesResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListGlossaryCategoriesResponse.php new file mode 100644 index 000000000000..5645bb6e76c1 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListGlossaryCategoriesResponse.php @@ -0,0 +1,139 @@ +google.cloud.dataplex.v1.ListGlossaryCategoriesResponse + */ +class ListGlossaryCategoriesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Lists the GlossaryCategories in the specified parent. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.GlossaryCategory categories = 1; + */ + private $categories; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Locations that the service couldn't reach. + * + * Generated from protobuf field repeated string unreachable_locations = 3; + */ + private $unreachable_locations; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\GlossaryCategory[] $categories + * Lists the GlossaryCategories in the specified parent. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type string[] $unreachable_locations + * Locations that the service couldn't reach. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\BusinessGlossary::initOnce(); + parent::__construct($data); + } + + /** + * Lists the GlossaryCategories in the specified parent. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.GlossaryCategory categories = 1; + * @return RepeatedField<\Google\Cloud\Dataplex\V1\GlossaryCategory> + */ + public function getCategories() + { + return $this->categories; + } + + /** + * Lists the GlossaryCategories in the specified parent. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.GlossaryCategory categories = 1; + * @param \Google\Cloud\Dataplex\V1\GlossaryCategory[] $var + * @return $this + */ + public function setCategories($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\GlossaryCategory::class); + $this->categories = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Locations that the service couldn't reach. + * + * Generated from protobuf field repeated string unreachable_locations = 3; + * @return RepeatedField + */ + public function getUnreachableLocations() + { + return $this->unreachable_locations; + } + + /** + * Locations that the service couldn't reach. + * + * Generated from protobuf field repeated string unreachable_locations = 3; + * @param string[] $var + * @return $this + */ + public function setUnreachableLocations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unreachable_locations = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListGlossaryTermsRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListGlossaryTermsRequest.php new file mode 100644 index 000000000000..86f9499a7dbd --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListGlossaryTermsRequest.php @@ -0,0 +1,300 @@ +google.cloud.dataplex.v1.ListGlossaryTermsRequest + */ +class ListGlossaryTermsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which has this collection of GlossaryTerms. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} + * where `location_id` refers to a Google Cloud region. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of GlossaryTerms to return. The service may + * return fewer than this value. If unspecified, at most 50 GlossaryTerms will + * be returned. The maximum value is 1000; values above 1000 will be coerced + * to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListGlossaryTerms` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListGlossaryTerms` 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 = ''; + /** + * Optional. Filter expression that filters GlossaryTerms listed in the + * response. Filters are supported on the following fields: + * - immediate_parent + * Examples of using a filter are: + * - + * `immediate_parent="projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}"` + * - + * `immediate_parent="projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id}"` + * This will only return the GlossaryTerms that are directly nested under the + * specified parent. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Order by expression that orders GlossaryTerms listed in the + * response. Order by fields are: `name` or `create_time` for the result. If + * not specified, the ordering is undefined. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + + /** + * @param string $parent Required. The parent, which has this collection of GlossaryTerms. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} + * where `location_id` refers to a Google Cloud region. Please see + * {@see BusinessGlossaryServiceClient::glossaryName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\ListGlossaryTermsRequest + * + * @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, which has this collection of GlossaryTerms. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} + * where `location_id` refers to a Google Cloud region. + * @type int $page_size + * Optional. The maximum number of GlossaryTerms to return. The service may + * return fewer than this value. If unspecified, at most 50 GlossaryTerms will + * be returned. The maximum value is 1000; values above 1000 will be coerced + * to 1000. + * @type string $page_token + * Optional. A page token, received from a previous `ListGlossaryTerms` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListGlossaryTerms` must + * match the call that provided the page token. + * @type string $filter + * Optional. Filter expression that filters GlossaryTerms listed in the + * response. Filters are supported on the following fields: + * - immediate_parent + * Examples of using a filter are: + * - + * `immediate_parent="projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}"` + * - + * `immediate_parent="projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id}"` + * This will only return the GlossaryTerms that are directly nested under the + * specified parent. + * @type string $order_by + * Optional. Order by expression that orders GlossaryTerms listed in the + * response. Order by fields are: `name` or `create_time` for the result. If + * not specified, the ordering is undefined. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\BusinessGlossary::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which has this collection of GlossaryTerms. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} + * where `location_id` refers to a Google Cloud region. + * + * 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, which has this collection of GlossaryTerms. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} + * where `location_id` refers to a Google Cloud region. + * + * 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 GlossaryTerms to return. The service may + * return fewer than this value. If unspecified, at most 50 GlossaryTerms will + * be returned. The maximum value is 1000; values above 1000 will be coerced + * to 1000. + * + * 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 GlossaryTerms to return. The service may + * return fewer than this value. If unspecified, at most 50 GlossaryTerms will + * be returned. The maximum value is 1000; values above 1000 will be coerced + * to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `ListGlossaryTerms` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListGlossaryTerms` 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 page token, received from a previous `ListGlossaryTerms` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListGlossaryTerms` 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; + } + + /** + * Optional. Filter expression that filters GlossaryTerms listed in the + * response. Filters are supported on the following fields: + * - immediate_parent + * Examples of using a filter are: + * - + * `immediate_parent="projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}"` + * - + * `immediate_parent="projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id}"` + * This will only return the GlossaryTerms that are directly nested under the + * specified parent. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Filter expression that filters GlossaryTerms listed in the + * response. Filters are supported on the following fields: + * - immediate_parent + * Examples of using a filter are: + * - + * `immediate_parent="projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}"` + * - + * `immediate_parent="projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id}"` + * This will only return the GlossaryTerms that are directly nested under the + * specified parent. + * + * 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. Order by expression that orders GlossaryTerms listed in the + * response. Order by fields are: `name` or `create_time` for the result. If + * not specified, the ordering is undefined. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Order by expression that orders GlossaryTerms listed in the + * response. Order by fields are: `name` or `create_time` for the result. If + * not specified, the ordering is undefined. + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListGlossaryTermsResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListGlossaryTermsResponse.php new file mode 100644 index 000000000000..84d267266b3f --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListGlossaryTermsResponse.php @@ -0,0 +1,139 @@ +google.cloud.dataplex.v1.ListGlossaryTermsResponse + */ +class ListGlossaryTermsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Lists the GlossaryTerms in the specified parent. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.GlossaryTerm terms = 1; + */ + private $terms; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Locations that the service couldn't reach. + * + * Generated from protobuf field repeated string unreachable_locations = 3; + */ + private $unreachable_locations; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\GlossaryTerm[] $terms + * Lists the GlossaryTerms in the specified parent. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type string[] $unreachable_locations + * Locations that the service couldn't reach. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\BusinessGlossary::initOnce(); + parent::__construct($data); + } + + /** + * Lists the GlossaryTerms in the specified parent. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.GlossaryTerm terms = 1; + * @return RepeatedField<\Google\Cloud\Dataplex\V1\GlossaryTerm> + */ + public function getTerms() + { + return $this->terms; + } + + /** + * Lists the GlossaryTerms in the specified parent. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.GlossaryTerm terms = 1; + * @param \Google\Cloud\Dataplex\V1\GlossaryTerm[] $var + * @return $this + */ + public function setTerms($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\GlossaryTerm::class); + $this->terms = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Locations that the service couldn't reach. + * + * Generated from protobuf field repeated string unreachable_locations = 3; + * @return RepeatedField + */ + public function getUnreachableLocations() + { + return $this->unreachable_locations; + } + + /** + * Locations that the service couldn't reach. + * + * Generated from protobuf field repeated string unreachable_locations = 3; + * @param string[] $var + * @return $this + */ + public function setUnreachableLocations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unreachable_locations = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListJobsRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListJobsRequest.php new file mode 100644 index 000000000000..89a4a70f54bb --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListJobsRequest.php @@ -0,0 +1,174 @@ +google.cloud.dataplex.v1.ListJobsRequest + */ +class ListJobsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the parent environment: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. Maximum number of jobs to return. The service may return fewer + * than this value. If unspecified, at most 10 jobs will be returned. The + * maximum value is 1000; values above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. Page token received from a previous `ListJobs` call. Provide this + * to retrieve the subsequent page. When paginating, all other parameters + * provided to `ListJobs` 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 resource name of the parent environment: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}`. Please see + * {@see DataplexServiceClient::taskName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\ListJobsRequest + * + * @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 resource name of the parent environment: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}`. + * @type int $page_size + * Optional. Maximum number of jobs to return. The service may return fewer + * than this value. If unspecified, at most 10 jobs will be returned. The + * maximum value is 1000; values above 1000 will be coerced to 1000. + * @type string $page_token + * Optional. Page token received from a previous `ListJobs` call. Provide this + * to retrieve the subsequent page. When paginating, all other parameters + * provided to `ListJobs` must match the call that provided the page + * token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the parent environment: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}`. + * + * 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 resource name of the parent environment: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}`. + * + * 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. Maximum number of jobs to return. The service may return fewer + * than this value. If unspecified, at most 10 jobs will be returned. The + * maximum value is 1000; values above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. Maximum number of jobs to return. The service may return fewer + * than this value. If unspecified, at most 10 jobs will be returned. The + * maximum value is 1000; values above 1000 will be coerced to 1000. + * + * 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. Page token received from a previous `ListJobs` call. Provide this + * to retrieve the subsequent page. When paginating, all other parameters + * provided to `ListJobs` 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. Page token received from a previous `ListJobs` call. Provide this + * to retrieve the subsequent page. When paginating, all other parameters + * provided to `ListJobs` 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListJobsResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListJobsResponse.php new file mode 100644 index 000000000000..b2ef827a6180 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListJobsResponse.php @@ -0,0 +1,105 @@ +google.cloud.dataplex.v1.ListJobsResponse + */ +class ListJobsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Jobs under a given task. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.Job jobs = 1; + */ + private $jobs; + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * 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\Dataplex\V1\Job[] $jobs + * Jobs under a given task. + * @type string $next_page_token + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Jobs under a given task. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.Job jobs = 1; + * @return RepeatedField<\Google\Cloud\Dataplex\V1\Job> + */ + public function getJobs() + { + return $this->jobs; + } + + /** + * Jobs under a given task. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.Job jobs = 1; + * @param \Google\Cloud\Dataplex\V1\Job[] $var + * @return $this + */ + public function setJobs($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\Job::class); + $this->jobs = $arr; + + return $this; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListLakeActionsRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListLakeActionsRequest.php new file mode 100644 index 000000000000..f9298aaeb0e9 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListLakeActionsRequest.php @@ -0,0 +1,174 @@ +google.cloud.dataplex.v1.ListLakeActionsRequest + */ +class ListLakeActionsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the parent lake: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. Maximum number of actions to return. The service may return fewer + * than this value. If unspecified, at most 10 actions will be returned. The + * maximum value is 1000; values above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. Page token received from a previous `ListLakeActions` call. + * Provide this to retrieve the subsequent page. When paginating, all other + * parameters provided to `ListLakeActions` 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 resource name of the parent lake: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. Please see + * {@see DataplexServiceClient::lakeName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\ListLakeActionsRequest + * + * @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 resource name of the parent lake: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. + * @type int $page_size + * Optional. Maximum number of actions to return. The service may return fewer + * than this value. If unspecified, at most 10 actions will be returned. The + * maximum value is 1000; values above 1000 will be coerced to 1000. + * @type string $page_token + * Optional. Page token received from a previous `ListLakeActions` call. + * Provide this to retrieve the subsequent page. When paginating, all other + * parameters provided to `ListLakeActions` must match the call that provided + * the page token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the parent lake: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. + * + * 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 resource name of the parent lake: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. + * + * 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. Maximum number of actions to return. The service may return fewer + * than this value. If unspecified, at most 10 actions will be returned. The + * maximum value is 1000; values above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. Maximum number of actions to return. The service may return fewer + * than this value. If unspecified, at most 10 actions will be returned. The + * maximum value is 1000; values above 1000 will be coerced to 1000. + * + * 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. Page token received from a previous `ListLakeActions` call. + * Provide this to retrieve the subsequent page. When paginating, all other + * parameters provided to `ListLakeActions` 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. Page token received from a previous `ListLakeActions` call. + * Provide this to retrieve the subsequent page. When paginating, all other + * parameters provided to `ListLakeActions` 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListLakesRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListLakesRequest.php new file mode 100644 index 000000000000..f5322cedbc14 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListLakesRequest.php @@ -0,0 +1,243 @@ +google.cloud.dataplex.v1.ListLakesRequest + */ +class ListLakesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the lake location, of the form: + * `projects/{project_number}/locations/{location_id}` + * where `location_id` refers to a Google Cloud region. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. Maximum number of Lakes to return. The service may return fewer + * than this value. If unspecified, at most 10 lakes will be returned. The + * maximum value is 1000; values above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. Page token received from a previous `ListLakes` call. Provide + * this to retrieve the subsequent page. When paginating, all other parameters + * provided to `ListLakes` 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 = ''; + /** + * Optional. Filter request. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Order by fields for the result. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + + /** + * @param string $parent Required. The resource name of the lake location, of the form: + * `projects/{project_number}/locations/{location_id}` + * where `location_id` refers to a Google Cloud region. Please see + * {@see DataplexServiceClient::locationName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\ListLakesRequest + * + * @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 resource name of the lake location, of the form: + * `projects/{project_number}/locations/{location_id}` + * where `location_id` refers to a Google Cloud region. + * @type int $page_size + * Optional. Maximum number of Lakes to return. The service may return fewer + * than this value. If unspecified, at most 10 lakes will be returned. The + * maximum value is 1000; values above 1000 will be coerced to 1000. + * @type string $page_token + * Optional. Page token received from a previous `ListLakes` call. Provide + * this to retrieve the subsequent page. When paginating, all other parameters + * provided to `ListLakes` must match the call that provided the page token. + * @type string $filter + * Optional. Filter request. + * @type string $order_by + * Optional. Order by fields for the result. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the lake location, of the form: + * `projects/{project_number}/locations/{location_id}` + * where `location_id` refers to a Google Cloud region. + * + * 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 resource name of the lake location, of the form: + * `projects/{project_number}/locations/{location_id}` + * where `location_id` refers to a Google Cloud region. + * + * 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. Maximum number of Lakes to return. The service may return fewer + * than this value. If unspecified, at most 10 lakes will be returned. The + * maximum value is 1000; values above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. Maximum number of Lakes to return. The service may return fewer + * than this value. If unspecified, at most 10 lakes will be returned. The + * maximum value is 1000; values above 1000 will be coerced to 1000. + * + * 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. Page token received from a previous `ListLakes` call. Provide + * this to retrieve the subsequent page. When paginating, all other parameters + * provided to `ListLakes` 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. Page token received from a previous `ListLakes` call. Provide + * this to retrieve the subsequent page. When paginating, all other parameters + * provided to `ListLakes` 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; + } + + /** + * Optional. Filter request. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Filter request. + * + * 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. Order by fields for the result. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Order by fields for the result. + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListLakesResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListLakesResponse.php new file mode 100644 index 000000000000..22a5c8db3d0e --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListLakesResponse.php @@ -0,0 +1,139 @@ +google.cloud.dataplex.v1.ListLakesResponse + */ +class ListLakesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Lakes under the given parent location. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.Lake lakes = 1; + */ + private $lakes; + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable_locations = 3; + */ + private $unreachable_locations; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\Lake[] $lakes + * Lakes under the given parent location. + * @type string $next_page_token + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * @type string[] $unreachable_locations + * Locations that could not be reached. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Lakes under the given parent location. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.Lake lakes = 1; + * @return RepeatedField<\Google\Cloud\Dataplex\V1\Lake> + */ + public function getLakes() + { + return $this->lakes; + } + + /** + * Lakes under the given parent location. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.Lake lakes = 1; + * @param \Google\Cloud\Dataplex\V1\Lake[] $var + * @return $this + */ + public function setLakes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\Lake::class); + $this->lakes = $arr; + + return $this; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable_locations = 3; + * @return RepeatedField + */ + public function getUnreachableLocations() + { + return $this->unreachable_locations; + } + + /** + * Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable_locations = 3; + * @param string[] $var + * @return $this + */ + public function setUnreachableLocations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unreachable_locations = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListMetadataFeedsRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListMetadataFeedsRequest.php new file mode 100644 index 000000000000..0763a3bb13cd --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListMetadataFeedsRequest.php @@ -0,0 +1,270 @@ +google.cloud.dataplex.v1.ListMetadataFeedsRequest + */ +class ListMetadataFeedsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the parent location, in the format + * `projects/{project_id_or_number}/locations/{location_id}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of metadata feeds to return. The service + * might return fewer feeds than this value. If unspecified, at most 10 feeds + * are returned. The maximum value is 1,000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. The page token received from a previous `ListMetadataFeeds` call. + * Provide this token to retrieve the subsequent page of results. When + * paginating, all other parameters that are provided to the + * `ListMetadataFeeds` 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 = ''; + /** + * Optional. Filter request. Filters are case-sensitive. + * The service supports the following formats: + * * `labels.key1 = "value1"` + * * `labels:key1` + * * `name = "value"` + * You can combine filters with `AND`, `OR`, and `NOT` operators. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. The field to sort the results by, either `name` or `create_time`. + * If not specified, the ordering is undefined. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + + /** + * @param string $parent Required. The resource name of the parent location, in the format + * `projects/{project_id_or_number}/locations/{location_id}` + * Please see {@see CatalogServiceClient::locationName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\ListMetadataFeedsRequest + * + * @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 resource name of the parent location, in the format + * `projects/{project_id_or_number}/locations/{location_id}` + * @type int $page_size + * Optional. The maximum number of metadata feeds to return. The service + * might return fewer feeds than this value. If unspecified, at most 10 feeds + * are returned. The maximum value is 1,000. + * @type string $page_token + * Optional. The page token received from a previous `ListMetadataFeeds` call. + * Provide this token to retrieve the subsequent page of results. When + * paginating, all other parameters that are provided to the + * `ListMetadataFeeds` request must match the call that provided the + * page token. + * @type string $filter + * Optional. Filter request. Filters are case-sensitive. + * The service supports the following formats: + * * `labels.key1 = "value1"` + * * `labels:key1` + * * `name = "value"` + * You can combine filters with `AND`, `OR`, and `NOT` operators. + * @type string $order_by + * Optional. The field to sort the results by, either `name` or `create_time`. + * If not specified, the ordering is undefined. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the parent location, in the format + * `projects/{project_id_or_number}/locations/{location_id}` + * + * 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 resource name of the parent location, in the format + * `projects/{project_id_or_number}/locations/{location_id}` + * + * 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 metadata feeds to return. The service + * might return fewer feeds than this value. If unspecified, at most 10 feeds + * are returned. The maximum value is 1,000. + * + * 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 metadata feeds to return. The service + * might return fewer feeds than this value. If unspecified, at most 10 feeds + * are returned. The maximum value is 1,000. + * + * 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 page token received from a previous `ListMetadataFeeds` call. + * Provide this token to retrieve the subsequent page of results. When + * paginating, all other parameters that are provided to the + * `ListMetadataFeeds` 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. The page token received from a previous `ListMetadataFeeds` call. + * Provide this token to retrieve the subsequent page of results. When + * paginating, all other parameters that are provided to the + * `ListMetadataFeeds` 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; + } + + /** + * Optional. Filter request. Filters are case-sensitive. + * The service supports the following formats: + * * `labels.key1 = "value1"` + * * `labels:key1` + * * `name = "value"` + * You can combine filters with `AND`, `OR`, and `NOT` operators. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Filter request. Filters are case-sensitive. + * The service supports the following formats: + * * `labels.key1 = "value1"` + * * `labels:key1` + * * `name = "value"` + * You can combine filters with `AND`, `OR`, and `NOT` operators. + * + * 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 field to sort the results by, either `name` or `create_time`. + * If not specified, the ordering is undefined. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. The field to sort the results by, either `name` or `create_time`. + * If not specified, the ordering is undefined. + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListMetadataFeedsResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListMetadataFeedsResponse.php new file mode 100644 index 000000000000..a8794174c182 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListMetadataFeedsResponse.php @@ -0,0 +1,139 @@ +google.cloud.dataplex.v1.ListMetadataFeedsResponse + */ +class ListMetadataFeedsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of metadata feeds under the specified parent location. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.MetadataFeed metadata_feeds = 1; + */ + private $metadata_feeds; + /** + * A token to retrieve the next page of results. If there are no more results + * in the list, the value is empty. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Unordered list. Locations that the service couldn't reach. + * + * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + */ + private $unreachable; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\MetadataFeed[] $metadata_feeds + * List of metadata feeds under the specified parent location. + * @type string $next_page_token + * A token to retrieve the next page of results. If there are no more results + * in the list, the value is empty. + * @type string[] $unreachable + * Unordered list. Locations that the service couldn't reach. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * List of metadata feeds under the specified parent location. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.MetadataFeed metadata_feeds = 1; + * @return RepeatedField<\Google\Cloud\Dataplex\V1\MetadataFeed> + */ + public function getMetadataFeeds() + { + return $this->metadata_feeds; + } + + /** + * List of metadata feeds under the specified parent location. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.MetadataFeed metadata_feeds = 1; + * @param \Google\Cloud\Dataplex\V1\MetadataFeed[] $var + * @return $this + */ + public function setMetadataFeeds($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\MetadataFeed::class); + $this->metadata_feeds = $arr; + + return $this; + } + + /** + * A token to retrieve the next page of results. If there are no more results + * in the list, the value is empty. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token to retrieve the next page of results. If there are no more results + * in the list, the value is empty. + * + * 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; + } + + /** + * Unordered list. Locations that the service couldn't reach. + * + * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * @return RepeatedField + */ + public function getUnreachable() + { + return $this->unreachable; + } + + /** + * Unordered list. Locations that the service couldn't reach. + * + * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * @param string[] $var + * @return $this + */ + public function setUnreachable($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unreachable = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListMetadataJobsRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListMetadataJobsRequest.php new file mode 100644 index 000000000000..caa163823c62 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListMetadataJobsRequest.php @@ -0,0 +1,270 @@ +google.cloud.dataplex.v1.ListMetadataJobsRequest + */ +class ListMetadataJobsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the parent location, in the format + * `projects/{project_id_or_number}/locations/{location_id}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of metadata jobs to return. The service might + * return fewer jobs than this value. If unspecified, at most 10 jobs are + * returned. The maximum value is 1,000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. The page token received from a previous `ListMetadataJobs` call. + * Provide this token to retrieve the subsequent page of results. When + * paginating, all other parameters that are provided to the + * `ListMetadataJobs` 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 = ''; + /** + * Optional. Filter request. Filters are case-sensitive. + * The service supports the following formats: + * * `labels.key1 = "value1"` + * * `labels:key1` + * * `name = "value"` + * You can combine filters with `AND`, `OR`, and `NOT` operators. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. The field to sort the results by, either `name` or `create_time`. + * If not specified, the ordering is undefined. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + + /** + * @param string $parent Required. The resource name of the parent location, in the format + * `projects/{project_id_or_number}/locations/{location_id}` + * Please see {@see CatalogServiceClient::locationName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\ListMetadataJobsRequest + * + * @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 resource name of the parent location, in the format + * `projects/{project_id_or_number}/locations/{location_id}` + * @type int $page_size + * Optional. The maximum number of metadata jobs to return. The service might + * return fewer jobs than this value. If unspecified, at most 10 jobs are + * returned. The maximum value is 1,000. + * @type string $page_token + * Optional. The page token received from a previous `ListMetadataJobs` call. + * Provide this token to retrieve the subsequent page of results. When + * paginating, all other parameters that are provided to the + * `ListMetadataJobs` request must match the call that provided the page + * token. + * @type string $filter + * Optional. Filter request. Filters are case-sensitive. + * The service supports the following formats: + * * `labels.key1 = "value1"` + * * `labels:key1` + * * `name = "value"` + * You can combine filters with `AND`, `OR`, and `NOT` operators. + * @type string $order_by + * Optional. The field to sort the results by, either `name` or `create_time`. + * If not specified, the ordering is undefined. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the parent location, in the format + * `projects/{project_id_or_number}/locations/{location_id}` + * + * 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 resource name of the parent location, in the format + * `projects/{project_id_or_number}/locations/{location_id}` + * + * 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 metadata jobs to return. The service might + * return fewer jobs than this value. If unspecified, at most 10 jobs are + * returned. The maximum value is 1,000. + * + * 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 metadata jobs to return. The service might + * return fewer jobs than this value. If unspecified, at most 10 jobs are + * returned. The maximum value is 1,000. + * + * 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 page token received from a previous `ListMetadataJobs` call. + * Provide this token to retrieve the subsequent page of results. When + * paginating, all other parameters that are provided to the + * `ListMetadataJobs` 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. The page token received from a previous `ListMetadataJobs` call. + * Provide this token to retrieve the subsequent page of results. When + * paginating, all other parameters that are provided to the + * `ListMetadataJobs` 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; + } + + /** + * Optional. Filter request. Filters are case-sensitive. + * The service supports the following formats: + * * `labels.key1 = "value1"` + * * `labels:key1` + * * `name = "value"` + * You can combine filters with `AND`, `OR`, and `NOT` operators. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Filter request. Filters are case-sensitive. + * The service supports the following formats: + * * `labels.key1 = "value1"` + * * `labels:key1` + * * `name = "value"` + * You can combine filters with `AND`, `OR`, and `NOT` operators. + * + * 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 field to sort the results by, either `name` or `create_time`. + * If not specified, the ordering is undefined. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. The field to sort the results by, either `name` or `create_time`. + * If not specified, the ordering is undefined. + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListMetadataJobsResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListMetadataJobsResponse.php new file mode 100644 index 000000000000..729750f0caa2 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListMetadataJobsResponse.php @@ -0,0 +1,139 @@ +google.cloud.dataplex.v1.ListMetadataJobsResponse + */ +class ListMetadataJobsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Metadata jobs under the specified parent location. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.MetadataJob metadata_jobs = 1; + */ + private $metadata_jobs; + /** + * A token to retrieve the next page of results. If there are no more results + * in the list, the value is empty. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Locations that the service couldn't reach. + * + * Generated from protobuf field repeated string unreachable_locations = 3; + */ + private $unreachable_locations; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\MetadataJob[] $metadata_jobs + * Metadata jobs under the specified parent location. + * @type string $next_page_token + * A token to retrieve the next page of results. If there are no more results + * in the list, the value is empty. + * @type string[] $unreachable_locations + * Locations that the service couldn't reach. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Metadata jobs under the specified parent location. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.MetadataJob metadata_jobs = 1; + * @return RepeatedField<\Google\Cloud\Dataplex\V1\MetadataJob> + */ + public function getMetadataJobs() + { + return $this->metadata_jobs; + } + + /** + * Metadata jobs under the specified parent location. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.MetadataJob metadata_jobs = 1; + * @param \Google\Cloud\Dataplex\V1\MetadataJob[] $var + * @return $this + */ + public function setMetadataJobs($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\MetadataJob::class); + $this->metadata_jobs = $arr; + + return $this; + } + + /** + * A token to retrieve the next page of results. If there are no more results + * in the list, the value is empty. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token to retrieve the next page of results. If there are no more results + * in the list, the value is empty. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Locations that the service couldn't reach. + * + * Generated from protobuf field repeated string unreachable_locations = 3; + * @return RepeatedField + */ + public function getUnreachableLocations() + { + return $this->unreachable_locations; + } + + /** + * Locations that the service couldn't reach. + * + * Generated from protobuf field repeated string unreachable_locations = 3; + * @param string[] $var + * @return $this + */ + public function setUnreachableLocations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unreachable_locations = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListPartitionsRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListPartitionsRequest.php new file mode 100644 index 000000000000..7c16f2dfbb49 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListPartitionsRequest.php @@ -0,0 +1,268 @@ +google.cloud.dataplex.v1.ListPartitionsRequest + */ +class ListPartitionsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the parent entity: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. Maximum number of partitions to return. The service may return + * fewer than this value. If unspecified, 100 partitions will be returned by + * default. The maximum page size is 500; larger values will will be truncated + * to 500. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. Page token received from a previous `ListPartitions` call. + * Provide this to retrieve the subsequent page. When paginating, all other + * parameters provided to `ListPartitions` 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 = ''; + /** + * Optional. Filter the partitions returned to the caller using a key value + * pair expression. Supported operators and syntax: + * - logic operators: AND, OR + * - comparison operators: <, >, >=, <= ,=, != + * - LIKE operators: + * - The right hand of a LIKE operator supports "." and + * "*" for wildcard searches, for example "value1 LIKE ".*oo.*" + * - parenthetical grouping: ( ) + * Sample filter expression: `?filter="key1 < value1 OR key2 > value2" + * **Notes:** + * - Keys to the left of operators are case insensitive. + * - Partition results are sorted first by creation time, then by + * lexicographic order. + * - Up to 20 key value filter pairs are allowed, but due to performance + * considerations, only the first 10 will be used as a filter. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * @param string $parent Required. The resource name of the parent entity: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`. Please see + * {@see MetadataServiceClient::entityName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\ListPartitionsRequest + * + * @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 resource name of the parent entity: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`. + * @type int $page_size + * Optional. Maximum number of partitions to return. The service may return + * fewer than this value. If unspecified, 100 partitions will be returned by + * default. The maximum page size is 500; larger values will will be truncated + * to 500. + * @type string $page_token + * Optional. Page token received from a previous `ListPartitions` call. + * Provide this to retrieve the subsequent page. When paginating, all other + * parameters provided to `ListPartitions` must match the call that provided + * the page token. + * @type string $filter + * Optional. Filter the partitions returned to the caller using a key value + * pair expression. Supported operators and syntax: + * - logic operators: AND, OR + * - comparison operators: <, >, >=, <= ,=, != + * - LIKE operators: + * - The right hand of a LIKE operator supports "." and + * "*" for wildcard searches, for example "value1 LIKE ".*oo.*" + * - parenthetical grouping: ( ) + * Sample filter expression: `?filter="key1 < value1 OR key2 > value2" + * **Notes:** + * - Keys to the left of operators are case insensitive. + * - Partition results are sorted first by creation time, then by + * lexicographic order. + * - Up to 20 key value filter pairs are allowed, but due to performance + * considerations, only the first 10 will be used as a filter. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Metadata::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the parent entity: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`. + * + * 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 resource name of the parent entity: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`. + * + * 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. Maximum number of partitions to return. The service may return + * fewer than this value. If unspecified, 100 partitions will be returned by + * default. The maximum page size is 500; larger values will will be truncated + * to 500. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. Maximum number of partitions to return. The service may return + * fewer than this value. If unspecified, 100 partitions will be returned by + * default. The maximum page size is 500; larger values will will be truncated + * to 500. + * + * 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. Page token received from a previous `ListPartitions` call. + * Provide this to retrieve the subsequent page. When paginating, all other + * parameters provided to `ListPartitions` 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. Page token received from a previous `ListPartitions` call. + * Provide this to retrieve the subsequent page. When paginating, all other + * parameters provided to `ListPartitions` 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; + } + + /** + * Optional. Filter the partitions returned to the caller using a key value + * pair expression. Supported operators and syntax: + * - logic operators: AND, OR + * - comparison operators: <, >, >=, <= ,=, != + * - LIKE operators: + * - The right hand of a LIKE operator supports "." and + * "*" for wildcard searches, for example "value1 LIKE ".*oo.*" + * - parenthetical grouping: ( ) + * Sample filter expression: `?filter="key1 < value1 OR key2 > value2" + * **Notes:** + * - Keys to the left of operators are case insensitive. + * - Partition results are sorted first by creation time, then by + * lexicographic order. + * - Up to 20 key value filter pairs are allowed, but due to performance + * considerations, only the first 10 will be used as a filter. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Filter the partitions returned to the caller using a key value + * pair expression. Supported operators and syntax: + * - logic operators: AND, OR + * - comparison operators: <, >, >=, <= ,=, != + * - LIKE operators: + * - The right hand of a LIKE operator supports "." and + * "*" for wildcard searches, for example "value1 LIKE ".*oo.*" + * - parenthetical grouping: ( ) + * Sample filter expression: `?filter="key1 < value1 OR key2 > value2" + * **Notes:** + * - Keys to the left of operators are case insensitive. + * - Partition results are sorted first by creation time, then by + * lexicographic order. + * - Up to 20 key value filter pairs are allowed, but due to performance + * considerations, only the first 10 will be used as a filter. + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListPartitionsResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListPartitionsResponse.php new file mode 100644 index 000000000000..f247f20455e6 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListPartitionsResponse.php @@ -0,0 +1,105 @@ +google.cloud.dataplex.v1.ListPartitionsResponse + */ +class ListPartitionsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Partitions under the specified parent entity. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.Partition partitions = 1; + */ + private $partitions; + /** + * Token to retrieve the next page of results, or empty if there are no + * remaining results in the list. + * + * 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\Dataplex\V1\Partition[] $partitions + * Partitions under the specified parent entity. + * @type string $next_page_token + * Token to retrieve the next page of results, or empty if there are no + * remaining results in the list. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Metadata::initOnce(); + parent::__construct($data); + } + + /** + * Partitions under the specified parent entity. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.Partition partitions = 1; + * @return RepeatedField<\Google\Cloud\Dataplex\V1\Partition> + */ + public function getPartitions() + { + return $this->partitions; + } + + /** + * Partitions under the specified parent entity. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.Partition partitions = 1; + * @param \Google\Cloud\Dataplex\V1\Partition[] $var + * @return $this + */ + public function setPartitions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\Partition::class); + $this->partitions = $arr; + + return $this; + } + + /** + * Token to retrieve the next page of results, or empty if there are no + * remaining results in the list. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Token to retrieve the next page of results, or empty if there are no + * remaining results in the list. + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListTasksRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListTasksRequest.php new file mode 100644 index 000000000000..30f8ba23e79e --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListTasksRequest.php @@ -0,0 +1,238 @@ +google.cloud.dataplex.v1.ListTasksRequest + */ +class ListTasksRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the parent lake: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. Maximum number of tasks to return. The service may return fewer + * than this value. If unspecified, at most 10 tasks will be returned. The + * maximum value is 1000; values above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. Page token received from a previous `ListZones` call. Provide + * this to retrieve the subsequent page. When paginating, all other parameters + * provided to `ListZones` 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 = ''; + /** + * Optional. Filter request. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Order by fields for the result. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + + /** + * @param string $parent Required. The resource name of the parent lake: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. Please see + * {@see DataplexServiceClient::lakeName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\ListTasksRequest + * + * @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 resource name of the parent lake: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. + * @type int $page_size + * Optional. Maximum number of tasks to return. The service may return fewer + * than this value. If unspecified, at most 10 tasks will be returned. The + * maximum value is 1000; values above 1000 will be coerced to 1000. + * @type string $page_token + * Optional. Page token received from a previous `ListZones` call. Provide + * this to retrieve the subsequent page. When paginating, all other parameters + * provided to `ListZones` must match the call that provided the page token. + * @type string $filter + * Optional. Filter request. + * @type string $order_by + * Optional. Order by fields for the result. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the parent lake: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. + * + * 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 resource name of the parent lake: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. + * + * 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. Maximum number of tasks to return. The service may return fewer + * than this value. If unspecified, at most 10 tasks will be returned. The + * maximum value is 1000; values above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. Maximum number of tasks to return. The service may return fewer + * than this value. If unspecified, at most 10 tasks will be returned. The + * maximum value is 1000; values above 1000 will be coerced to 1000. + * + * 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. Page token received from a previous `ListZones` call. Provide + * this to retrieve the subsequent page. When paginating, all other parameters + * provided to `ListZones` 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. Page token received from a previous `ListZones` call. Provide + * this to retrieve the subsequent page. When paginating, all other parameters + * provided to `ListZones` 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; + } + + /** + * Optional. Filter request. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Filter request. + * + * 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. Order by fields for the result. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Order by fields for the result. + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListTasksResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListTasksResponse.php new file mode 100644 index 000000000000..54cce8924b70 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListTasksResponse.php @@ -0,0 +1,139 @@ +google.cloud.dataplex.v1.ListTasksResponse + */ +class ListTasksResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Tasks under the given parent lake. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.Task tasks = 1; + */ + private $tasks; + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable_locations = 3; + */ + private $unreachable_locations; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\Task[] $tasks + * Tasks under the given parent lake. + * @type string $next_page_token + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * @type string[] $unreachable_locations + * Locations that could not be reached. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Tasks under the given parent lake. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.Task tasks = 1; + * @return RepeatedField<\Google\Cloud\Dataplex\V1\Task> + */ + public function getTasks() + { + return $this->tasks; + } + + /** + * Tasks under the given parent lake. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.Task tasks = 1; + * @param \Google\Cloud\Dataplex\V1\Task[] $var + * @return $this + */ + public function setTasks($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\Task::class); + $this->tasks = $arr; + + return $this; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable_locations = 3; + * @return RepeatedField + */ + public function getUnreachableLocations() + { + return $this->unreachable_locations; + } + + /** + * Locations that could not be reached. + * + * Generated from protobuf field repeated string unreachable_locations = 3; + * @param string[] $var + * @return $this + */ + public function setUnreachableLocations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unreachable_locations = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListZoneActionsRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListZoneActionsRequest.php new file mode 100644 index 000000000000..e50944e42070 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListZoneActionsRequest.php @@ -0,0 +1,174 @@ +google.cloud.dataplex.v1.ListZoneActionsRequest + */ +class ListZoneActionsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the parent zone: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. Maximum number of actions to return. The service may return fewer + * than this value. If unspecified, at most 10 actions will be returned. The + * maximum value is 1000; values above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. Page token received from a previous `ListZoneActions` call. + * Provide this to retrieve the subsequent page. When paginating, all other + * parameters provided to `ListZoneActions` 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 resource name of the parent zone: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. Please see + * {@see DataplexServiceClient::zoneName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\ListZoneActionsRequest + * + * @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 resource name of the parent zone: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. + * @type int $page_size + * Optional. Maximum number of actions to return. The service may return fewer + * than this value. If unspecified, at most 10 actions will be returned. The + * maximum value is 1000; values above 1000 will be coerced to 1000. + * @type string $page_token + * Optional. Page token received from a previous `ListZoneActions` call. + * Provide this to retrieve the subsequent page. When paginating, all other + * parameters provided to `ListZoneActions` must match the call that provided + * the page token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the parent zone: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. + * + * 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 resource name of the parent zone: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. + * + * 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. Maximum number of actions to return. The service may return fewer + * than this value. If unspecified, at most 10 actions will be returned. The + * maximum value is 1000; values above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. Maximum number of actions to return. The service may return fewer + * than this value. If unspecified, at most 10 actions will be returned. The + * maximum value is 1000; values above 1000 will be coerced to 1000. + * + * 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. Page token received from a previous `ListZoneActions` call. + * Provide this to retrieve the subsequent page. When paginating, all other + * parameters provided to `ListZoneActions` 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. Page token received from a previous `ListZoneActions` call. + * Provide this to retrieve the subsequent page. When paginating, all other + * parameters provided to `ListZoneActions` 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListZonesRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListZonesRequest.php new file mode 100644 index 000000000000..28578b10985a --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListZonesRequest.php @@ -0,0 +1,238 @@ +google.cloud.dataplex.v1.ListZonesRequest + */ +class ListZonesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the parent lake: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. Maximum number of zones to return. The service may return fewer + * than this value. If unspecified, at most 10 zones will be returned. The + * maximum value is 1000; values above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. Page token received from a previous `ListZones` call. Provide + * this to retrieve the subsequent page. When paginating, all other parameters + * provided to `ListZones` 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 = ''; + /** + * Optional. Filter request. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Order by fields for the result. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + + /** + * @param string $parent Required. The resource name of the parent lake: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. Please see + * {@see DataplexServiceClient::lakeName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\ListZonesRequest + * + * @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 resource name of the parent lake: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. + * @type int $page_size + * Optional. Maximum number of zones to return. The service may return fewer + * than this value. If unspecified, at most 10 zones will be returned. The + * maximum value is 1000; values above 1000 will be coerced to 1000. + * @type string $page_token + * Optional. Page token received from a previous `ListZones` call. Provide + * this to retrieve the subsequent page. When paginating, all other parameters + * provided to `ListZones` must match the call that provided the page token. + * @type string $filter + * Optional. Filter request. + * @type string $order_by + * Optional. Order by fields for the result. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the parent lake: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. + * + * 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 resource name of the parent lake: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. + * + * 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. Maximum number of zones to return. The service may return fewer + * than this value. If unspecified, at most 10 zones will be returned. The + * maximum value is 1000; values above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. Maximum number of zones to return. The service may return fewer + * than this value. If unspecified, at most 10 zones will be returned. The + * maximum value is 1000; values above 1000 will be coerced to 1000. + * + * 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. Page token received from a previous `ListZones` call. Provide + * this to retrieve the subsequent page. When paginating, all other parameters + * provided to `ListZones` 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. Page token received from a previous `ListZones` call. Provide + * this to retrieve the subsequent page. When paginating, all other parameters + * provided to `ListZones` 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; + } + + /** + * Optional. Filter request. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Filter request. + * + * 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. Order by fields for the result. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Order by fields for the result. + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListZonesResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListZonesResponse.php new file mode 100644 index 000000000000..8b3a095f6f3e --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListZonesResponse.php @@ -0,0 +1,105 @@ +google.cloud.dataplex.v1.ListZonesResponse + */ +class ListZonesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Zones under the given parent lake. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.Zone zones = 1; + */ + private $zones; + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * 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\Dataplex\V1\Zone[] $zones + * Zones under the given parent lake. + * @type string $next_page_token + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Zones under the given parent lake. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.Zone zones = 1; + * @return RepeatedField<\Google\Cloud\Dataplex\V1\Zone> + */ + public function getZones() + { + return $this->zones; + } + + /** + * Zones under the given parent lake. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.Zone zones = 1; + * @param \Google\Cloud\Dataplex\V1\Zone[] $var + * @return $this + */ + public function setZones($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\Zone::class); + $this->zones = $arr; + + return $this; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/LookupContextRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/LookupContextRequest.php new file mode 100644 index 000000000000..aad7968a1d54 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/LookupContextRequest.php @@ -0,0 +1,213 @@ +google.cloud.dataplex.v1.LookupContextRequest + */ +class LookupContextRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The project to which the request should be attributed in the + * following form: `projects/{project}/locations/{location}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $name = ''; + /** + * Required. The entry names to look up the context for. The maximum number of + * resources for a request is limited to 10. + * ## Examples: + * `projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}` + * + * Generated from protobuf field repeated string resources = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + private $resources; + /** + * Optional. The text representing contextual information for which metadata + * context is being requested. + * + * Generated from protobuf field string context = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $context = ''; + /** + * Optional. Allows to configure the context. + * Supported options: + * - `format` - The format of the context (one of `yaml`, + * `xml`, `json`, default is `yaml`). + * - `context_budget` - If provided, the output will be intelligently + * truncated on a best-effort basis to contain approximately the desired + * amount of characters. There is no guarantee to achieve the specific amount. + * + * Generated from protobuf field map options = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $options; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The project to which the request should be attributed in the + * following form: `projects/{project}/locations/{location}`. + * @type string[] $resources + * Required. The entry names to look up the context for. The maximum number of + * resources for a request is limited to 10. + * ## Examples: + * `projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}` + * @type string $context + * Optional. The text representing contextual information for which metadata + * context is being requested. + * @type array|\Google\Protobuf\Internal\MapField $options + * Optional. Allows to configure the context. + * Supported options: + * - `format` - The format of the context (one of `yaml`, + * `xml`, `json`, default is `yaml`). + * - `context_budget` - If provided, the output will be intelligently + * truncated on a best-effort basis to contain approximately the desired + * amount of characters. There is no guarantee to achieve the specific amount. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The project to which the request should be attributed in the + * following form: `projects/{project}/locations/{location}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The project to which the request should be attributed in the + * following form: `projects/{project}/locations/{location}`. + * + * 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 entry names to look up the context for. The maximum number of + * resources for a request is limited to 10. + * ## Examples: + * `projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}` + * + * Generated from protobuf field repeated string resources = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return RepeatedField + */ + public function getResources() + { + return $this->resources; + } + + /** + * Required. The entry names to look up the context for. The maximum number of + * resources for a request is limited to 10. + * ## Examples: + * `projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}` + * + * Generated from protobuf field repeated string resources = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string[] $var + * @return $this + */ + public function setResources($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->resources = $arr; + + return $this; + } + + /** + * Optional. The text representing contextual information for which metadata + * context is being requested. + * + * Generated from protobuf field string context = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getContext() + { + return $this->context; + } + + /** + * Optional. The text representing contextual information for which metadata + * context is being requested. + * + * Generated from protobuf field string context = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setContext($var) + { + GPBUtil::checkString($var, True); + $this->context = $var; + + return $this; + } + + /** + * Optional. Allows to configure the context. + * Supported options: + * - `format` - The format of the context (one of `yaml`, + * `xml`, `json`, default is `yaml`). + * - `context_budget` - If provided, the output will be intelligently + * truncated on a best-effort basis to contain approximately the desired + * amount of characters. There is no guarantee to achieve the specific amount. + * + * Generated from protobuf field map options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getOptions() + { + return $this->options; + } + + /** + * Optional. Allows to configure the context. + * Supported options: + * - `format` - The format of the context (one of `yaml`, + * `xml`, `json`, default is `yaml`). + * - `context_budget` - If provided, the output will be intelligently + * truncated on a best-effort basis to contain approximately the desired + * amount of characters. There is no guarantee to achieve the specific amount. + * + * Generated from protobuf field map options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setOptions($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->options = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/LookupContextResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/LookupContextResponse.php new file mode 100644 index 000000000000..8d292fb2d3b6 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/LookupContextResponse.php @@ -0,0 +1,71 @@ +google.cloud.dataplex.v1.LookupContextResponse + */ +class LookupContextResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Pre-formatted block of text containing the context for the requested + * resources. + * + * Generated from protobuf field string context = 1; + */ + protected $context = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $context + * Pre-formatted block of text containing the context for the requested + * resources. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Pre-formatted block of text containing the context for the requested + * resources. + * + * Generated from protobuf field string context = 1; + * @return string + */ + public function getContext() + { + return $this->context; + } + + /** + * Pre-formatted block of text containing the context for the requested + * resources. + * + * Generated from protobuf field string context = 1; + * @param string $var + * @return $this + */ + public function setContext($var) + { + GPBUtil::checkString($var, True); + $this->context = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/LookupEntryLinksRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/LookupEntryLinksRequest.php new file mode 100644 index 000000000000..efe9268554b5 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/LookupEntryLinksRequest.php @@ -0,0 +1,277 @@ +google.cloud.dataplex.v1.LookupEntryLinksRequest + */ +class LookupEntryLinksRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The project to which the request should be attributed to + * Format: `projects/{project_id_or_number}/locations/{location_id}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $name = ''; + /** + * Required. The resource name of the referred Entry. + * Format: + * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}`. + * Entry Links which references this entry will be returned in the response. + * + * Generated from protobuf field string entry = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $entry = ''; + /** + * Mode of entry reference. + * + * Generated from protobuf field .google.cloud.dataplex.v1.LookupEntryLinksRequest.EntryMode entry_mode = 3; + */ + protected $entry_mode = 0; + /** + * Entry link types to filter the response by. If empty, all entry link types + * will be returned. At most 10 entry link types can be specified. + * + * Generated from protobuf field repeated string entry_link_types = 4; + */ + private $entry_link_types; + /** + * Maximum number of EntryLinks to return. The service may return fewer + * than this value. If unspecified, at most 10 EntryLinks will be returned. + * The maximum value is 10; values above 10 will be coerced to 10. + * + * Generated from protobuf field int32 page_size = 5; + */ + protected $page_size = 0; + /** + * Page token received from a previous `LookupEntryLinks` call. Provide this + * to retrieve the subsequent page. When paginating, all other parameters that + * are provided to the `LookupEntryLinks` request must match the call that + * provided the page token. + * + * Generated from protobuf field string page_token = 6; + */ + protected $page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The project to which the request should be attributed to + * Format: `projects/{project_id_or_number}/locations/{location_id}`. + * @type string $entry + * Required. The resource name of the referred Entry. + * Format: + * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}`. + * Entry Links which references this entry will be returned in the response. + * @type int $entry_mode + * Mode of entry reference. + * @type string[] $entry_link_types + * Entry link types to filter the response by. If empty, all entry link types + * will be returned. At most 10 entry link types can be specified. + * @type int $page_size + * Maximum number of EntryLinks to return. The service may return fewer + * than this value. If unspecified, at most 10 EntryLinks will be returned. + * The maximum value is 10; values above 10 will be coerced to 10. + * @type string $page_token + * Page token received from a previous `LookupEntryLinks` call. Provide this + * to retrieve the subsequent page. When paginating, all other parameters that + * are provided to the `LookupEntryLinks` request must match the call that + * provided the page token. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The project to which the request should be attributed to + * Format: `projects/{project_id_or_number}/locations/{location_id}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The project to which the request should be attributed to + * Format: `projects/{project_id_or_number}/locations/{location_id}`. + * + * 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 resource name of the referred Entry. + * Format: + * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}`. + * Entry Links which references this entry will be returned in the response. + * + * Generated from protobuf field string entry = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getEntry() + { + return $this->entry; + } + + /** + * Required. The resource name of the referred Entry. + * Format: + * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}`. + * Entry Links which references this entry will be returned in the response. + * + * Generated from protobuf field string entry = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setEntry($var) + { + GPBUtil::checkString($var, True); + $this->entry = $var; + + return $this; + } + + /** + * Mode of entry reference. + * + * Generated from protobuf field .google.cloud.dataplex.v1.LookupEntryLinksRequest.EntryMode entry_mode = 3; + * @return int + */ + public function getEntryMode() + { + return $this->entry_mode; + } + + /** + * Mode of entry reference. + * + * Generated from protobuf field .google.cloud.dataplex.v1.LookupEntryLinksRequest.EntryMode entry_mode = 3; + * @param int $var + * @return $this + */ + public function setEntryMode($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\LookupEntryLinksRequest\EntryMode::class); + $this->entry_mode = $var; + + return $this; + } + + /** + * Entry link types to filter the response by. If empty, all entry link types + * will be returned. At most 10 entry link types can be specified. + * + * Generated from protobuf field repeated string entry_link_types = 4; + * @return RepeatedField + */ + public function getEntryLinkTypes() + { + return $this->entry_link_types; + } + + /** + * Entry link types to filter the response by. If empty, all entry link types + * will be returned. At most 10 entry link types can be specified. + * + * Generated from protobuf field repeated string entry_link_types = 4; + * @param string[] $var + * @return $this + */ + public function setEntryLinkTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->entry_link_types = $arr; + + return $this; + } + + /** + * Maximum number of EntryLinks to return. The service may return fewer + * than this value. If unspecified, at most 10 EntryLinks will be returned. + * The maximum value is 10; values above 10 will be coerced to 10. + * + * Generated from protobuf field int32 page_size = 5; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Maximum number of EntryLinks to return. The service may return fewer + * than this value. If unspecified, at most 10 EntryLinks will be returned. + * The maximum value is 10; values above 10 will be coerced to 10. + * + * Generated from protobuf field int32 page_size = 5; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Page token received from a previous `LookupEntryLinks` call. Provide this + * to retrieve the subsequent page. When paginating, all other parameters that + * are provided to the `LookupEntryLinks` request must match the call that + * provided the page token. + * + * Generated from protobuf field string page_token = 6; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Page token received from a previous `LookupEntryLinks` call. Provide this + * to retrieve the subsequent page. When paginating, all other parameters that + * are provided to the `LookupEntryLinks` request must match the call that + * provided the page token. + * + * Generated from protobuf field string page_token = 6; + * @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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/LookupEntryLinksRequest/EntryMode.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/LookupEntryLinksRequest/EntryMode.php new file mode 100644 index 000000000000..15716d25d3a2 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/LookupEntryLinksRequest/EntryMode.php @@ -0,0 +1,62 @@ +google.cloud.dataplex.v1.LookupEntryLinksRequest.EntryMode + */ +class EntryMode +{ + /** + * Unspecified entry mode. Returns both directional and non-directional + * entry links which references the entry. + * + * Generated from protobuf enum ENTRY_MODE_UNSPECIFIED = 0; + */ + const ENTRY_MODE_UNSPECIFIED = 0; + /** + * Returns all directed entry links which references the entry as source. + * + * Generated from protobuf enum SOURCE = 1; + */ + const SOURCE = 1; + /** + * Return all directed entry links which references the entry as target. + * + * Generated from protobuf enum TARGET = 2; + */ + const TARGET = 2; + + private static $valueToName = [ + self::ENTRY_MODE_UNSPECIFIED => 'ENTRY_MODE_UNSPECIFIED', + self::SOURCE => 'SOURCE', + self::TARGET => 'TARGET', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/LookupEntryLinksResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/LookupEntryLinksResponse.php new file mode 100644 index 000000000000..abbb41e3ad83 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/LookupEntryLinksResponse.php @@ -0,0 +1,105 @@ +google.cloud.dataplex.v1.LookupEntryLinksResponse + */ +class LookupEntryLinksResponse extends \Google\Protobuf\Internal\Message +{ + /** + * List of entry links that reference the specified entry. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.EntryLink entry_links = 1; + */ + private $entry_links; + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * 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\Dataplex\V1\EntryLink[] $entry_links + * List of entry links that reference the specified entry. + * @type string $next_page_token + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * List of entry links that reference the specified entry. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.EntryLink entry_links = 1; + * @return RepeatedField<\Google\Cloud\Dataplex\V1\EntryLink> + */ + public function getEntryLinks() + { + return $this->entry_links; + } + + /** + * List of entry links that reference the specified entry. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.EntryLink entry_links = 1; + * @param \Google\Cloud\Dataplex\V1\EntryLink[] $var + * @return $this + */ + public function setEntryLinks($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\EntryLink::class); + $this->entry_links = $arr; + + return $this; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/LookupEntryRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/LookupEntryRequest.php new file mode 100644 index 000000000000..34e44e82a6c1 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/LookupEntryRequest.php @@ -0,0 +1,235 @@ +google.cloud.dataplex.v1.LookupEntryRequest + */ +class LookupEntryRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The project to which the request should be attributed in the + * following form: `projects/{project}/locations/{location}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $name = ''; + /** + * Optional. View to control which parts of an entry the service should + * return. + * **Please check the limitations on returned aspects in the Entry view + * documentation. Amount of returned aspects depends on the selected Entry + * View.** + * + * Generated from protobuf field .google.cloud.dataplex.v1.EntryView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $view = 0; + /** + * Optional. Limits the aspects returned to the provided aspect types. + * It only works for CUSTOM view. + * + * Generated from protobuf field repeated string aspect_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $aspect_types; + /** + * Optional. Limits the aspects returned to those associated with the provided + * paths within the Entry. It only works for CUSTOM view. + * + * Generated from protobuf field repeated string paths = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $paths; + /** + * Required. The resource name of the Entry: + * `projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}`. + * + * Generated from protobuf field string entry = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $entry = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The project to which the request should be attributed in the + * following form: `projects/{project}/locations/{location}`. + * @type int $view + * Optional. View to control which parts of an entry the service should + * return. + * **Please check the limitations on returned aspects in the Entry view + * documentation. Amount of returned aspects depends on the selected Entry + * View.** + * @type string[] $aspect_types + * Optional. Limits the aspects returned to the provided aspect types. + * It only works for CUSTOM view. + * @type string[] $paths + * Optional. Limits the aspects returned to those associated with the provided + * paths within the Entry. It only works for CUSTOM view. + * @type string $entry + * Required. The resource name of the Entry: + * `projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The project to which the request should be attributed in the + * following form: `projects/{project}/locations/{location}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The project to which the request should be attributed in the + * following form: `projects/{project}/locations/{location}`. + * + * 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. View to control which parts of an entry the service should + * return. + * **Please check the limitations on returned aspects in the Entry view + * documentation. Amount of returned aspects depends on the selected Entry + * View.** + * + * Generated from protobuf field .google.cloud.dataplex.v1.EntryView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getView() + { + return $this->view; + } + + /** + * Optional. View to control which parts of an entry the service should + * return. + * **Please check the limitations on returned aspects in the Entry view + * documentation. Amount of returned aspects depends on the selected Entry + * View.** + * + * Generated from protobuf field .google.cloud.dataplex.v1.EntryView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setView($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\EntryView::class); + $this->view = $var; + + return $this; + } + + /** + * Optional. Limits the aspects returned to the provided aspect types. + * It only works for CUSTOM view. + * + * Generated from protobuf field repeated string aspect_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getAspectTypes() + { + return $this->aspect_types; + } + + /** + * Optional. Limits the aspects returned to the provided aspect types. + * It only works for CUSTOM view. + * + * Generated from protobuf field repeated string aspect_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setAspectTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->aspect_types = $arr; + + return $this; + } + + /** + * Optional. Limits the aspects returned to those associated with the provided + * paths within the Entry. It only works for CUSTOM view. + * + * Generated from protobuf field repeated string paths = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getPaths() + { + return $this->paths; + } + + /** + * Optional. Limits the aspects returned to those associated with the provided + * paths within the Entry. It only works for CUSTOM view. + * + * Generated from protobuf field repeated string paths = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setPaths($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->paths = $arr; + + return $this; + } + + /** + * Required. The resource name of the Entry: + * `projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}`. + * + * Generated from protobuf field string entry = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getEntry() + { + return $this->entry; + } + + /** + * Required. The resource name of the Entry: + * `projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}`. + * + * Generated from protobuf field string entry = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setEntry($var) + { + GPBUtil::checkString($var, True); + $this->entry = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataFeed.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataFeed.php new file mode 100644 index 000000000000..a5d5c82cf63b --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataFeed.php @@ -0,0 +1,382 @@ +google.cloud.dataplex.v1.MetadataFeed + */ +class MetadataFeed extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the metadata feed, in the format + * `projects/{project_id_or_number}/locations/{location_id}/metadataFeeds/{metadata_feed_id}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. A system-generated, globally unique ID for the metadata job. + * If the metadata job is deleted and then re-created with the same name, this + * ID is different. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { + */ + protected $uid = ''; + /** + * Required. The scope of the metadata feed. + * Only the in scope changes are published. + * + * Generated from protobuf field .google.cloud.dataplex.v1.MetadataFeed.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $scope = null; + /** + * Optional. The filters of the metadata feed. + * Only the changes that match the filters are published. + * + * Generated from protobuf field .google.cloud.dataplex.v1.MetadataFeed.Filters filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filters = null; + /** + * Output only. The time when the feed was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The time when the feed was updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Optional. User-defined labels. + * + * Generated from protobuf field map labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $labels; + protected $endpoint; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the metadata feed, in the format + * `projects/{project_id_or_number}/locations/{location_id}/metadataFeeds/{metadata_feed_id}`. + * @type string $uid + * Output only. A system-generated, globally unique ID for the metadata job. + * If the metadata job is deleted and then re-created with the same name, this + * ID is different. + * @type \Google\Cloud\Dataplex\V1\MetadataFeed\Scope $scope + * Required. The scope of the metadata feed. + * Only the in scope changes are published. + * @type \Google\Cloud\Dataplex\V1\MetadataFeed\Filters $filters + * Optional. The filters of the metadata feed. + * Only the changes that match the filters are published. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time when the feed was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time when the feed was updated. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Optional. User-defined labels. + * @type string $pubsub_topic + * Optional. The pubsub topic that you want the metadata feed messages to + * publish to. Please grant Dataplex service account the permission to + * publish messages to the topic. The service account is: + * service-{PROJECT_NUMBER}\@gcp-sa-dataplex.iam.gserviceaccount.com. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the metadata feed, in the format + * `projects/{project_id_or_number}/locations/{location_id}/metadataFeeds/{metadata_feed_id}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the metadata feed, in the format + * `projects/{project_id_or_number}/locations/{location_id}/metadataFeeds/{metadata_feed_id}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. A system-generated, globally unique ID for the metadata job. + * If the metadata job is deleted and then re-created with the same name, this + * ID is different. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { + * @return string + */ + public function getUid() + { + return $this->uid; + } + + /** + * Output only. A system-generated, globally unique ID for the metadata job. + * If the metadata job is deleted and then re-created with the same name, this + * ID is different. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setUid($var) + { + GPBUtil::checkString($var, True); + $this->uid = $var; + + return $this; + } + + /** + * Required. The scope of the metadata feed. + * Only the in scope changes are published. + * + * Generated from protobuf field .google.cloud.dataplex.v1.MetadataFeed.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\MetadataFeed\Scope|null + */ + public function getScope() + { + return $this->scope; + } + + public function hasScope() + { + return isset($this->scope); + } + + public function clearScope() + { + unset($this->scope); + } + + /** + * Required. The scope of the metadata feed. + * Only the in scope changes are published. + * + * Generated from protobuf field .google.cloud.dataplex.v1.MetadataFeed.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\MetadataFeed\Scope $var + * @return $this + */ + public function setScope($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\MetadataFeed\Scope::class); + $this->scope = $var; + + return $this; + } + + /** + * Optional. The filters of the metadata feed. + * Only the changes that match the filters are published. + * + * Generated from protobuf field .google.cloud.dataplex.v1.MetadataFeed.Filters filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataplex\V1\MetadataFeed\Filters|null + */ + public function getFilters() + { + return $this->filters; + } + + public function hasFilters() + { + return isset($this->filters); + } + + public function clearFilters() + { + unset($this->filters); + } + + /** + * Optional. The filters of the metadata feed. + * Only the changes that match the filters are published. + * + * Generated from protobuf field .google.cloud.dataplex.v1.MetadataFeed.Filters filters = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataplex\V1\MetadataFeed\Filters $var + * @return $this + */ + public function setFilters($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\MetadataFeed\Filters::class); + $this->filters = $var; + + return $this; + } + + /** + * Output only. The time when the feed was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.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 feed was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.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 feed was updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.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 feed was updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.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. User-defined labels. + * + * Generated from protobuf field map labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Optional. User-defined labels. + * + * Generated from protobuf field map labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Optional. The pubsub topic that you want the metadata feed messages to + * publish to. Please grant Dataplex service account the permission to + * publish messages to the topic. The service account is: + * service-{PROJECT_NUMBER}\@gcp-sa-dataplex.iam.gserviceaccount.com. + * + * Generated from protobuf field string pubsub_topic = 100 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPubsubTopic() + { + return $this->readOneof(100); + } + + public function hasPubsubTopic() + { + return $this->hasOneof(100); + } + + /** + * Optional. The pubsub topic that you want the metadata feed messages to + * publish to. Please grant Dataplex service account the permission to + * publish messages to the topic. The service account is: + * service-{PROJECT_NUMBER}\@gcp-sa-dataplex.iam.gserviceaccount.com. + * + * Generated from protobuf field string pubsub_topic = 100 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPubsubTopic($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(100, $var); + + return $this; + } + + /** + * @return string + */ + public function getEndpoint() + { + return $this->whichOneof("endpoint"); + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataFeed/Filters.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataFeed/Filters.php new file mode 100644 index 000000000000..3d13aaa206a3 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataFeed/Filters.php @@ -0,0 +1,163 @@ +google.cloud.dataplex.v1.MetadataFeed.Filters + */ +class Filters extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The entry types that you want to listen to, specified as + * relative resource names in the format + * `projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}`. + * Only entries that belong to the specified entry types are published. + * + * Generated from protobuf field repeated string entry_types = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $entry_types; + /** + * Optional. The aspect types that you want to listen to. Depending on how + * the aspect is attached to the entry, in the format: + * `projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}`. + * + * Generated from protobuf field repeated string aspect_types = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $aspect_types; + /** + * Optional. The type of change that you want to listen to. + * If not specified, all changes are published. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.MetadataFeed.Filters.ChangeType change_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $change_types; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string[] $entry_types + * Optional. The entry types that you want to listen to, specified as + * relative resource names in the format + * `projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}`. + * Only entries that belong to the specified entry types are published. + * @type string[] $aspect_types + * Optional. The aspect types that you want to listen to. Depending on how + * the aspect is attached to the entry, in the format: + * `projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}`. + * @type int[] $change_types + * Optional. The type of change that you want to listen to. + * If not specified, all changes are published. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The entry types that you want to listen to, specified as + * relative resource names in the format + * `projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}`. + * Only entries that belong to the specified entry types are published. + * + * Generated from protobuf field repeated string entry_types = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return RepeatedField + */ + public function getEntryTypes() + { + return $this->entry_types; + } + + /** + * Optional. The entry types that you want to listen to, specified as + * relative resource names in the format + * `projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}`. + * Only entries that belong to the specified entry types are published. + * + * Generated from protobuf field repeated string entry_types = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string[] $var + * @return $this + */ + public function setEntryTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->entry_types = $arr; + + return $this; + } + + /** + * Optional. The aspect types that you want to listen to. Depending on how + * the aspect is attached to the entry, in the format: + * `projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}`. + * + * Generated from protobuf field repeated string aspect_types = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return RepeatedField + */ + public function getAspectTypes() + { + return $this->aspect_types; + } + + /** + * Optional. The aspect types that you want to listen to. Depending on how + * the aspect is attached to the entry, in the format: + * `projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}`. + * + * Generated from protobuf field repeated string aspect_types = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string[] $var + * @return $this + */ + public function setAspectTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->aspect_types = $arr; + + return $this; + } + + /** + * Optional. The type of change that you want to listen to. + * If not specified, all changes are published. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.MetadataFeed.Filters.ChangeType change_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getChangeTypes() + { + return $this->change_types; + } + + /** + * Optional. The type of change that you want to listen to. + * If not specified, all changes are published. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.MetadataFeed.Filters.ChangeType change_types = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param int[] $var + * @return $this + */ + public function setChangeTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Dataplex\V1\MetadataFeed\Filters\ChangeType::class); + $this->change_types = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataFeed/Filters/ChangeType.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataFeed/Filters/ChangeType.php new file mode 100644 index 000000000000..2946567d4d8b --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataFeed/Filters/ChangeType.php @@ -0,0 +1,68 @@ +google.cloud.dataplex.v1.MetadataFeed.Filters.ChangeType + */ +class ChangeType +{ + /** + * Unspecified change type. Defaults to UNSPECIFIED. + * + * Generated from protobuf enum CHANGE_TYPE_UNSPECIFIED = 0; + */ + const CHANGE_TYPE_UNSPECIFIED = 0; + /** + * The change is a create event. + * + * Generated from protobuf enum CREATE = 1; + */ + const CREATE = 1; + /** + * The change is an update event. + * + * Generated from protobuf enum UPDATE = 2; + */ + const UPDATE = 2; + /** + * The change is a delete event. + * + * Generated from protobuf enum DELETE = 3; + */ + const DELETE = 3; + + private static $valueToName = [ + self::CHANGE_TYPE_UNSPECIFIED => 'CHANGE_TYPE_UNSPECIFIED', + self::CREATE => 'CREATE', + self::UPDATE => 'UPDATE', + self::DELETE => 'DELETE', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataFeed/Scope.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataFeed/Scope.php new file mode 100644 index 000000000000..4fb47441685a --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataFeed/Scope.php @@ -0,0 +1,172 @@ +google.cloud.dataplex.v1.MetadataFeed.Scope + */ +class Scope extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Whether the metadata feed is at the organization-level. + * - If `true`, all changes happened to the entries in the same + * organization as the feed are published. + * - If `false`, you must specify a list of projects or a list of entry + * groups whose entries you want to listen to. + * The default is `false`. + * + * Generated from protobuf field bool organization_level = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $organization_level = false; + /** + * Optional. The projects whose entries you want to listen to. + * Must be in the same organization as the feed. + * Must be in the format: `projects/{project_id_or_number}`. + * + * Generated from protobuf field repeated string projects = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $projects; + /** + * Optional. The entry groups whose entries you want to listen to. + * Must be in the format: + * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`. + * + * Generated from protobuf field repeated string entry_groups = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $entry_groups; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $organization_level + * Optional. Whether the metadata feed is at the organization-level. + * - If `true`, all changes happened to the entries in the same + * organization as the feed are published. + * - If `false`, you must specify a list of projects or a list of entry + * groups whose entries you want to listen to. + * The default is `false`. + * @type string[] $projects + * Optional. The projects whose entries you want to listen to. + * Must be in the same organization as the feed. + * Must be in the format: `projects/{project_id_or_number}`. + * @type string[] $entry_groups + * Optional. The entry groups whose entries you want to listen to. + * Must be in the format: + * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Whether the metadata feed is at the organization-level. + * - If `true`, all changes happened to the entries in the same + * organization as the feed are published. + * - If `false`, you must specify a list of projects or a list of entry + * groups whose entries you want to listen to. + * The default is `false`. + * + * Generated from protobuf field bool organization_level = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getOrganizationLevel() + { + return $this->organization_level; + } + + /** + * Optional. Whether the metadata feed is at the organization-level. + * - If `true`, all changes happened to the entries in the same + * organization as the feed are published. + * - If `false`, you must specify a list of projects or a list of entry + * groups whose entries you want to listen to. + * The default is `false`. + * + * Generated from protobuf field bool organization_level = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setOrganizationLevel($var) + { + GPBUtil::checkBool($var); + $this->organization_level = $var; + + return $this; + } + + /** + * Optional. The projects whose entries you want to listen to. + * Must be in the same organization as the feed. + * Must be in the format: `projects/{project_id_or_number}`. + * + * Generated from protobuf field repeated string projects = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return RepeatedField + */ + public function getProjects() + { + return $this->projects; + } + + /** + * Optional. The projects whose entries you want to listen to. + * Must be in the same organization as the feed. + * Must be in the format: `projects/{project_id_or_number}`. + * + * Generated from protobuf field repeated string projects = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string[] $var + * @return $this + */ + public function setProjects($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->projects = $arr; + + return $this; + } + + /** + * Optional. The entry groups whose entries you want to listen to. + * Must be in the format: + * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`. + * + * Generated from protobuf field repeated string entry_groups = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return RepeatedField + */ + public function getEntryGroups() + { + return $this->entry_groups; + } + + /** + * Optional. The entry groups whose entries you want to listen to. + * Must be in the format: + * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`. + * + * Generated from protobuf field repeated string entry_groups = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string[] $var + * @return $this + */ + public function setEntryGroups($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->entry_groups = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob.php new file mode 100644 index 000000000000..23b571952f4e --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob.php @@ -0,0 +1,467 @@ +google.cloud.dataplex.v1.MetadataJob + */ +class MetadataJob extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Identifier. The name of the resource that the configuration is + * applied to, in the format + * `projects/{project_number}/locations/{location_id}/metadataJobs/{metadata_job_id}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. A system-generated, globally unique ID for the metadata job. + * If the metadata job is deleted and then re-created with the same name, this + * ID is different. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { + */ + protected $uid = ''; + /** + * Output only. The time when the metadata job was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The time when the metadata job was updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Optional. User-defined labels. + * + * Generated from protobuf field map labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $labels; + /** + * Required. Metadata job type. + * + * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.Type type = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $type = 0; + /** + * Output only. Metadata job status. + * + * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.Status status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $status = null; + protected $spec; + protected $result; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Identifier. The name of the resource that the configuration is + * applied to, in the format + * `projects/{project_number}/locations/{location_id}/metadataJobs/{metadata_job_id}`. + * @type string $uid + * Output only. A system-generated, globally unique ID for the metadata job. + * If the metadata job is deleted and then re-created with the same name, this + * ID is different. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time when the metadata job was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time when the metadata job was updated. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Optional. User-defined labels. + * @type int $type + * Required. Metadata job type. + * @type \Google\Cloud\Dataplex\V1\MetadataJob\ImportJobSpec $import_spec + * Import job specification. + * @type \Google\Cloud\Dataplex\V1\MetadataJob\ExportJobSpec $export_spec + * Export job specification. + * @type \Google\Cloud\Dataplex\V1\MetadataJob\ImportJobResult $import_result + * Output only. Import job result. + * @type \Google\Cloud\Dataplex\V1\MetadataJob\ExportJobResult $export_result + * Output only. Export job result. + * @type \Google\Cloud\Dataplex\V1\MetadataJob\Status $status + * Output only. Metadata job status. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Identifier. The name of the resource that the configuration is + * applied to, in the format + * `projects/{project_number}/locations/{location_id}/metadataJobs/{metadata_job_id}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Identifier. The name of the resource that the configuration is + * applied to, in the format + * `projects/{project_number}/locations/{location_id}/metadataJobs/{metadata_job_id}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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. A system-generated, globally unique ID for the metadata job. + * If the metadata job is deleted and then re-created with the same name, this + * ID is different. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { + * @return string + */ + public function getUid() + { + return $this->uid; + } + + /** + * Output only. A system-generated, globally unique ID for the metadata job. + * If the metadata job is deleted and then re-created with the same name, this + * ID is different. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setUid($var) + { + GPBUtil::checkString($var, True); + $this->uid = $var; + + return $this; + } + + /** + * Output only. The time when the metadata job was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The time when the metadata job was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. The time when the metadata job was updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. The time when the metadata job was updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Optional. User-defined labels. + * + * Generated from protobuf field map labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Optional. User-defined labels. + * + * Generated from protobuf field map labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Required. Metadata job type. + * + * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.Type type = 6 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Required. Metadata job type. + * + * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.Type type = 6 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\MetadataJob\Type::class); + $this->type = $var; + + return $this; + } + + /** + * Import job specification. + * + * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.ImportJobSpec import_spec = 100; + * @return \Google\Cloud\Dataplex\V1\MetadataJob\ImportJobSpec|null + */ + public function getImportSpec() + { + return $this->readOneof(100); + } + + public function hasImportSpec() + { + return $this->hasOneof(100); + } + + /** + * Import job specification. + * + * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.ImportJobSpec import_spec = 100; + * @param \Google\Cloud\Dataplex\V1\MetadataJob\ImportJobSpec $var + * @return $this + */ + public function setImportSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\MetadataJob\ImportJobSpec::class); + $this->writeOneof(100, $var); + + return $this; + } + + /** + * Export job specification. + * + * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.ExportJobSpec export_spec = 101; + * @return \Google\Cloud\Dataplex\V1\MetadataJob\ExportJobSpec|null + */ + public function getExportSpec() + { + return $this->readOneof(101); + } + + public function hasExportSpec() + { + return $this->hasOneof(101); + } + + /** + * Export job specification. + * + * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.ExportJobSpec export_spec = 101; + * @param \Google\Cloud\Dataplex\V1\MetadataJob\ExportJobSpec $var + * @return $this + */ + public function setExportSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\MetadataJob\ExportJobSpec::class); + $this->writeOneof(101, $var); + + return $this; + } + + /** + * Output only. Import job result. + * + * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.ImportJobResult import_result = 200 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataplex\V1\MetadataJob\ImportJobResult|null + */ + public function getImportResult() + { + return $this->readOneof(200); + } + + public function hasImportResult() + { + return $this->hasOneof(200); + } + + /** + * Output only. Import job result. + * + * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.ImportJobResult import_result = 200 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\MetadataJob\ImportJobResult $var + * @return $this + */ + public function setImportResult($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\MetadataJob\ImportJobResult::class); + $this->writeOneof(200, $var); + + return $this; + } + + /** + * Output only. Export job result. + * + * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.ExportJobResult export_result = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataplex\V1\MetadataJob\ExportJobResult|null + */ + public function getExportResult() + { + return $this->readOneof(201); + } + + public function hasExportResult() + { + return $this->hasOneof(201); + } + + /** + * Output only. Export job result. + * + * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.ExportJobResult export_result = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\MetadataJob\ExportJobResult $var + * @return $this + */ + public function setExportResult($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\MetadataJob\ExportJobResult::class); + $this->writeOneof(201, $var); + + return $this; + } + + /** + * Output only. Metadata job status. + * + * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.Status status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataplex\V1\MetadataJob\Status|null + */ + public function getStatus() + { + return $this->status; + } + + public function hasStatus() + { + return isset($this->status); + } + + public function clearStatus() + { + unset($this->status); + } + + /** + * Output only. Metadata job status. + * + * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.Status status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\MetadataJob\Status $var + * @return $this + */ + public function setStatus($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\MetadataJob\Status::class); + $this->status = $var; + + return $this; + } + + /** + * @return string + */ + public function getSpec() + { + return $this->whichOneof("spec"); + } + + /** + * @return string + */ + public function getResult() + { + return $this->whichOneof("result"); + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ExportJobResult.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ExportJobResult.php new file mode 100644 index 000000000000..fcbe368ce23d --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ExportJobResult.php @@ -0,0 +1,103 @@ +google.cloud.dataplex.v1.MetadataJob.ExportJobResult + */ +class ExportJobResult extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The number of entries that were exported. + * + * Generated from protobuf field int64 exported_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $exported_entries = 0; + /** + * Output only. The error message if the metadata export job failed. + * + * Generated from protobuf field string error_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $error_message = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $exported_entries + * Output only. The number of entries that were exported. + * @type string $error_message + * Output only. The error message if the metadata export job failed. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The number of entries that were exported. + * + * Generated from protobuf field int64 exported_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getExportedEntries() + { + return $this->exported_entries; + } + + /** + * Output only. The number of entries that were exported. + * + * Generated from protobuf field int64 exported_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setExportedEntries($var) + { + GPBUtil::checkInt64($var); + $this->exported_entries = $var; + + return $this; + } + + /** + * Output only. The error message if the metadata export job failed. + * + * Generated from protobuf field string error_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getErrorMessage() + { + return $this->error_message; + } + + /** + * Output only. The error message if the metadata export job failed. + * + * Generated from protobuf field string error_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setErrorMessage($var) + { + GPBUtil::checkString($var, True); + $this->error_message = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ExportJobSpec.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ExportJobSpec.php new file mode 100644 index 000000000000..e33f319c362b --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ExportJobSpec.php @@ -0,0 +1,139 @@ +google.cloud.dataplex.v1.MetadataJob.ExportJobSpec + */ +class ExportJobSpec extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The scope of the export job. + * + * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.ExportJobSpec.ExportJobScope scope = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $scope = null; + /** + * Required. The root path of the Cloud Storage bucket to export the + * metadata to, in the format `gs://{bucket}/`. You can optionally specify a + * custom prefix after the bucket name, in the format + * `gs://{bucket}/{prefix}/`. The maximum length of the custom prefix is 128 + * characters. Dataplex Universal Catalog constructs the object path for the + * exported files by using the bucket name and prefix that you provide, + * followed by a system-generated path. + * The bucket must be in the same VPC Service Controls perimeter as the job. + * + * Generated from protobuf field string output_path = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $output_path = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\MetadataJob\ExportJobSpec\ExportJobScope $scope + * Required. The scope of the export job. + * @type string $output_path + * Required. The root path of the Cloud Storage bucket to export the + * metadata to, in the format `gs://{bucket}/`. You can optionally specify a + * custom prefix after the bucket name, in the format + * `gs://{bucket}/{prefix}/`. The maximum length of the custom prefix is 128 + * characters. Dataplex Universal Catalog constructs the object path for the + * exported files by using the bucket name and prefix that you provide, + * followed by a system-generated path. + * The bucket must be in the same VPC Service Controls perimeter as the job. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The scope of the export job. + * + * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.ExportJobSpec.ExportJobScope scope = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\MetadataJob\ExportJobSpec\ExportJobScope|null + */ + public function getScope() + { + return $this->scope; + } + + public function hasScope() + { + return isset($this->scope); + } + + public function clearScope() + { + unset($this->scope); + } + + /** + * Required. The scope of the export job. + * + * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.ExportJobSpec.ExportJobScope scope = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\MetadataJob\ExportJobSpec\ExportJobScope $var + * @return $this + */ + public function setScope($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\MetadataJob\ExportJobSpec\ExportJobScope::class); + $this->scope = $var; + + return $this; + } + + /** + * Required. The root path of the Cloud Storage bucket to export the + * metadata to, in the format `gs://{bucket}/`. You can optionally specify a + * custom prefix after the bucket name, in the format + * `gs://{bucket}/{prefix}/`. The maximum length of the custom prefix is 128 + * characters. Dataplex Universal Catalog constructs the object path for the + * exported files by using the bucket name and prefix that you provide, + * followed by a system-generated path. + * The bucket must be in the same VPC Service Controls perimeter as the job. + * + * Generated from protobuf field string output_path = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getOutputPath() + { + return $this->output_path; + } + + /** + * Required. The root path of the Cloud Storage bucket to export the + * metadata to, in the format `gs://{bucket}/`. You can optionally specify a + * custom prefix after the bucket name, in the format + * `gs://{bucket}/{prefix}/`. The maximum length of the custom prefix is 128 + * characters. Dataplex Universal Catalog constructs the object path for the + * exported files by using the bucket name and prefix that you provide, + * followed by a system-generated path. + * The bucket must be in the same VPC Service Controls perimeter as the job. + * + * Generated from protobuf field string output_path = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setOutputPath($var) + { + GPBUtil::checkString($var, True); + $this->output_path = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ExportJobSpec/ExportJobScope.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ExportJobSpec/ExportJobScope.php new file mode 100644 index 000000000000..4cfffa6d7fca --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ExportJobSpec/ExportJobScope.php @@ -0,0 +1,323 @@ +google.cloud.dataplex.v1.MetadataJob.ExportJobSpec.ExportJobScope + */ +class ExportJobScope extends \Google\Protobuf\Internal\Message +{ + /** + * Whether the metadata export job is an organization-level export job. + * - If `true`, the job exports the entries from the same organization and + * VPC Service Controls perimeter as the job. The project that the job + * belongs to determines the VPC Service Controls perimeter. If you set + * the job scope to be at the organization level, then don't provide a + * list of projects or entry groups. + * - If `false`, you must specify a list of projects or a list of entry + * groups whose entries you want to export. + * The default is `false`. + * + * Generated from protobuf field bool organization_level = 1; + */ + protected $organization_level = false; + /** + * The projects whose metadata you want to export, in the format + * `projects/{project_id_or_number}`. Only the entries from + * the specified projects are exported. + * The projects must be in the same organization and VPC Service Controls + * perimeter as the job. + * If you set the job scope to be a list of projects, then set the + * organization-level export flag to false and don't provide a list of + * entry groups. + * + * Generated from protobuf field repeated string projects = 2 [(.google.api.resource_reference) = { + */ + private $projects; + /** + * The entry groups whose metadata you want to export, in the format + * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`. + * Only the entries in the specified entry groups are exported. + * The entry groups must be in the same location and the same VPC Service + * Controls perimeter as the job. + * If you set the job scope to be a list of entry groups, then set the + * organization-level export flag to false and don't provide a list of + * projects. + * + * Generated from protobuf field repeated string entry_groups = 3 [(.google.api.resource_reference) = { + */ + private $entry_groups; + /** + * The entry types that are in scope for the export job, specified as + * relative resource names in the format + * `projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}`. + * Only entries that belong to the specified entry types are affected by + * the job. + * + * Generated from protobuf field repeated string entry_types = 4 [(.google.api.resource_reference) = { + */ + private $entry_types; + /** + * The aspect types that are in scope for the export job, specified as + * relative resource names in the format + * `projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}`. + * Only aspects that belong to the specified aspect types are affected by + * the job. + * + * Generated from protobuf field repeated string aspect_types = 5 [(.google.api.resource_reference) = { + */ + private $aspect_types; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $organization_level + * Whether the metadata export job is an organization-level export job. + * - If `true`, the job exports the entries from the same organization and + * VPC Service Controls perimeter as the job. The project that the job + * belongs to determines the VPC Service Controls perimeter. If you set + * the job scope to be at the organization level, then don't provide a + * list of projects or entry groups. + * - If `false`, you must specify a list of projects or a list of entry + * groups whose entries you want to export. + * The default is `false`. + * @type string[] $projects + * The projects whose metadata you want to export, in the format + * `projects/{project_id_or_number}`. Only the entries from + * the specified projects are exported. + * The projects must be in the same organization and VPC Service Controls + * perimeter as the job. + * If you set the job scope to be a list of projects, then set the + * organization-level export flag to false and don't provide a list of + * entry groups. + * @type string[] $entry_groups + * The entry groups whose metadata you want to export, in the format + * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`. + * Only the entries in the specified entry groups are exported. + * The entry groups must be in the same location and the same VPC Service + * Controls perimeter as the job. + * If you set the job scope to be a list of entry groups, then set the + * organization-level export flag to false and don't provide a list of + * projects. + * @type string[] $entry_types + * The entry types that are in scope for the export job, specified as + * relative resource names in the format + * `projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}`. + * Only entries that belong to the specified entry types are affected by + * the job. + * @type string[] $aspect_types + * The aspect types that are in scope for the export job, specified as + * relative resource names in the format + * `projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}`. + * Only aspects that belong to the specified aspect types are affected by + * the job. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Whether the metadata export job is an organization-level export job. + * - If `true`, the job exports the entries from the same organization and + * VPC Service Controls perimeter as the job. The project that the job + * belongs to determines the VPC Service Controls perimeter. If you set + * the job scope to be at the organization level, then don't provide a + * list of projects or entry groups. + * - If `false`, you must specify a list of projects or a list of entry + * groups whose entries you want to export. + * The default is `false`. + * + * Generated from protobuf field bool organization_level = 1; + * @return bool + */ + public function getOrganizationLevel() + { + return $this->organization_level; + } + + /** + * Whether the metadata export job is an organization-level export job. + * - If `true`, the job exports the entries from the same organization and + * VPC Service Controls perimeter as the job. The project that the job + * belongs to determines the VPC Service Controls perimeter. If you set + * the job scope to be at the organization level, then don't provide a + * list of projects or entry groups. + * - If `false`, you must specify a list of projects or a list of entry + * groups whose entries you want to export. + * The default is `false`. + * + * Generated from protobuf field bool organization_level = 1; + * @param bool $var + * @return $this + */ + public function setOrganizationLevel($var) + { + GPBUtil::checkBool($var); + $this->organization_level = $var; + + return $this; + } + + /** + * The projects whose metadata you want to export, in the format + * `projects/{project_id_or_number}`. Only the entries from + * the specified projects are exported. + * The projects must be in the same organization and VPC Service Controls + * perimeter as the job. + * If you set the job scope to be a list of projects, then set the + * organization-level export flag to false and don't provide a list of + * entry groups. + * + * Generated from protobuf field repeated string projects = 2 [(.google.api.resource_reference) = { + * @return RepeatedField + */ + public function getProjects() + { + return $this->projects; + } + + /** + * The projects whose metadata you want to export, in the format + * `projects/{project_id_or_number}`. Only the entries from + * the specified projects are exported. + * The projects must be in the same organization and VPC Service Controls + * perimeter as the job. + * If you set the job scope to be a list of projects, then set the + * organization-level export flag to false and don't provide a list of + * entry groups. + * + * Generated from protobuf field repeated string projects = 2 [(.google.api.resource_reference) = { + * @param string[] $var + * @return $this + */ + public function setProjects($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->projects = $arr; + + return $this; + } + + /** + * The entry groups whose metadata you want to export, in the format + * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`. + * Only the entries in the specified entry groups are exported. + * The entry groups must be in the same location and the same VPC Service + * Controls perimeter as the job. + * If you set the job scope to be a list of entry groups, then set the + * organization-level export flag to false and don't provide a list of + * projects. + * + * Generated from protobuf field repeated string entry_groups = 3 [(.google.api.resource_reference) = { + * @return RepeatedField + */ + public function getEntryGroups() + { + return $this->entry_groups; + } + + /** + * The entry groups whose metadata you want to export, in the format + * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`. + * Only the entries in the specified entry groups are exported. + * The entry groups must be in the same location and the same VPC Service + * Controls perimeter as the job. + * If you set the job scope to be a list of entry groups, then set the + * organization-level export flag to false and don't provide a list of + * projects. + * + * Generated from protobuf field repeated string entry_groups = 3 [(.google.api.resource_reference) = { + * @param string[] $var + * @return $this + */ + public function setEntryGroups($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->entry_groups = $arr; + + return $this; + } + + /** + * The entry types that are in scope for the export job, specified as + * relative resource names in the format + * `projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}`. + * Only entries that belong to the specified entry types are affected by + * the job. + * + * Generated from protobuf field repeated string entry_types = 4 [(.google.api.resource_reference) = { + * @return RepeatedField + */ + public function getEntryTypes() + { + return $this->entry_types; + } + + /** + * The entry types that are in scope for the export job, specified as + * relative resource names in the format + * `projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}`. + * Only entries that belong to the specified entry types are affected by + * the job. + * + * Generated from protobuf field repeated string entry_types = 4 [(.google.api.resource_reference) = { + * @param string[] $var + * @return $this + */ + public function setEntryTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->entry_types = $arr; + + return $this; + } + + /** + * The aspect types that are in scope for the export job, specified as + * relative resource names in the format + * `projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}`. + * Only aspects that belong to the specified aspect types are affected by + * the job. + * + * Generated from protobuf field repeated string aspect_types = 5 [(.google.api.resource_reference) = { + * @return RepeatedField + */ + public function getAspectTypes() + { + return $this->aspect_types; + } + + /** + * The aspect types that are in scope for the export job, specified as + * relative resource names in the format + * `projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}`. + * Only aspects that belong to the specified aspect types are affected by + * the job. + * + * Generated from protobuf field repeated string aspect_types = 5 [(.google.api.resource_reference) = { + * @param string[] $var + * @return $this + */ + public function setAspectTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->aspect_types = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ImportJobResult.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ImportJobResult.php new file mode 100644 index 000000000000..1b0b9fdcc35d --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ImportJobResult.php @@ -0,0 +1,357 @@ +google.cloud.dataplex.v1.MetadataJob.ImportJobResult + */ +class ImportJobResult extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The total number of entries that were deleted. + * + * Generated from protobuf field int64 deleted_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $deleted_entries = 0; + /** + * Output only. The total number of entries that were updated. + * + * Generated from protobuf field int64 updated_entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $updated_entries = 0; + /** + * Output only. The total number of entries that were created. + * + * Generated from protobuf field int64 created_entries = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $created_entries = 0; + /** + * Output only. The total number of entries that were unchanged. + * + * Generated from protobuf field int64 unchanged_entries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $unchanged_entries = 0; + /** + * Output only. The total number of entries that were recreated. + * + * Generated from protobuf field int64 recreated_entries = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $recreated_entries = 0; + /** + * Output only. The time when the status was updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Output only. The total number of entry links that were successfully + * deleted. + * + * Generated from protobuf field int64 deleted_entry_links = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $deleted_entry_links = 0; + /** + * Output only. The total number of entry links that were successfully + * created. + * + * Generated from protobuf field int64 created_entry_links = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $created_entry_links = 0; + /** + * Output only. The total number of entry links that were left unchanged. + * + * Generated from protobuf field int64 unchanged_entry_links = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $unchanged_entry_links = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $deleted_entries + * Output only. The total number of entries that were deleted. + * @type int|string $updated_entries + * Output only. The total number of entries that were updated. + * @type int|string $created_entries + * Output only. The total number of entries that were created. + * @type int|string $unchanged_entries + * Output only. The total number of entries that were unchanged. + * @type int|string $recreated_entries + * Output only. The total number of entries that were recreated. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time when the status was updated. + * @type int|string $deleted_entry_links + * Output only. The total number of entry links that were successfully + * deleted. + * @type int|string $created_entry_links + * Output only. The total number of entry links that were successfully + * created. + * @type int|string $unchanged_entry_links + * Output only. The total number of entry links that were left unchanged. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The total number of entries that were deleted. + * + * Generated from protobuf field int64 deleted_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getDeletedEntries() + { + return $this->deleted_entries; + } + + /** + * Output only. The total number of entries that were deleted. + * + * Generated from protobuf field int64 deleted_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setDeletedEntries($var) + { + GPBUtil::checkInt64($var); + $this->deleted_entries = $var; + + return $this; + } + + /** + * Output only. The total number of entries that were updated. + * + * Generated from protobuf field int64 updated_entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getUpdatedEntries() + { + return $this->updated_entries; + } + + /** + * Output only. The total number of entries that were updated. + * + * Generated from protobuf field int64 updated_entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setUpdatedEntries($var) + { + GPBUtil::checkInt64($var); + $this->updated_entries = $var; + + return $this; + } + + /** + * Output only. The total number of entries that were created. + * + * Generated from protobuf field int64 created_entries = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getCreatedEntries() + { + return $this->created_entries; + } + + /** + * Output only. The total number of entries that were created. + * + * Generated from protobuf field int64 created_entries = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setCreatedEntries($var) + { + GPBUtil::checkInt64($var); + $this->created_entries = $var; + + return $this; + } + + /** + * Output only. The total number of entries that were unchanged. + * + * Generated from protobuf field int64 unchanged_entries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getUnchangedEntries() + { + return $this->unchanged_entries; + } + + /** + * Output only. The total number of entries that were unchanged. + * + * Generated from protobuf field int64 unchanged_entries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setUnchangedEntries($var) + { + GPBUtil::checkInt64($var); + $this->unchanged_entries = $var; + + return $this; + } + + /** + * Output only. The total number of entries that were recreated. + * + * Generated from protobuf field int64 recreated_entries = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getRecreatedEntries() + { + return $this->recreated_entries; + } + + /** + * Output only. The total number of entries that were recreated. + * + * Generated from protobuf field int64 recreated_entries = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setRecreatedEntries($var) + { + GPBUtil::checkInt64($var); + $this->recreated_entries = $var; + + return $this; + } + + /** + * Output only. The time when the status was updated. + * + * 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 time when the status was updated. + * + * 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; + } + + /** + * Output only. The total number of entry links that were successfully + * deleted. + * + * Generated from protobuf field int64 deleted_entry_links = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getDeletedEntryLinks() + { + return $this->deleted_entry_links; + } + + /** + * Output only. The total number of entry links that were successfully + * deleted. + * + * Generated from protobuf field int64 deleted_entry_links = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setDeletedEntryLinks($var) + { + GPBUtil::checkInt64($var); + $this->deleted_entry_links = $var; + + return $this; + } + + /** + * Output only. The total number of entry links that were successfully + * created. + * + * Generated from protobuf field int64 created_entry_links = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getCreatedEntryLinks() + { + return $this->created_entry_links; + } + + /** + * Output only. The total number of entry links that were successfully + * created. + * + * Generated from protobuf field int64 created_entry_links = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setCreatedEntryLinks($var) + { + GPBUtil::checkInt64($var); + $this->created_entry_links = $var; + + return $this; + } + + /** + * Output only. The total number of entry links that were left unchanged. + * + * Generated from protobuf field int64 unchanged_entry_links = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getUnchangedEntryLinks() + { + return $this->unchanged_entry_links; + } + + /** + * Output only. The total number of entry links that were left unchanged. + * + * Generated from protobuf field int64 unchanged_entry_links = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setUnchangedEntryLinks($var) + { + GPBUtil::checkInt64($var); + $this->unchanged_entry_links = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ImportJobSpec.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ImportJobSpec.php new file mode 100644 index 000000000000..73826c21e7e8 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ImportJobSpec.php @@ -0,0 +1,348 @@ +google.cloud.dataplex.v1.MetadataJob.ImportJobSpec + */ +class ImportJobSpec extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The URI of a Cloud Storage bucket or folder (beginning with + * `gs://` and ending with `/`) that contains the metadata import files for + * this job. + * A metadata import file defines the values to set for each of the entries + * and aspects in a metadata import job. For more information about how to + * create a metadata import file and the file requirements, see [Metadata + * import + * file](https://cloud.google.com/dataplex/docs/import-metadata#metadata-import-file). + * You can provide multiple metadata import files in the same metadata job. + * The bucket or folder must contain at least one metadata import file, in + * JSON Lines format (either `.json` or `.jsonl` file extension). + * In `FULL` entry sync mode, don't save the metadata import file in a + * folder named `SOURCE_STORAGE_URI/deletions/`. + * **Caution**: If the metadata import file contains no data, all entries + * and aspects that belong to the job's scope are deleted. + * + * Generated from protobuf field string source_storage_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $source_storage_uri = ''; + /** + * Optional. The time when the process that created the metadata import + * files began. + * + * Generated from protobuf field .google.protobuf.Timestamp source_create_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $source_create_time = null; + /** + * Required. A boundary on the scope of impact that the metadata import job + * can have. + * + * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.ImportJobScope scope = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $scope = null; + /** + * Required. The sync mode for entries. + * + * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.SyncMode entry_sync_mode = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $entry_sync_mode = 0; + /** + * Required. The sync mode for aspects. + * + * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.SyncMode aspect_sync_mode = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $aspect_sync_mode = 0; + /** + * Optional. The level of logs to write to Cloud Logging for this job. + * Debug-level logs provide highly-detailed information for + * troubleshooting, but their increased verbosity could incur [additional + * costs](https://cloud.google.com/stackdriver/pricing) that might not be + * merited for all jobs. + * If unspecified, defaults to `INFO`. + * + * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.LogLevel log_level = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $log_level = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $source_storage_uri + * Optional. The URI of a Cloud Storage bucket or folder (beginning with + * `gs://` and ending with `/`) that contains the metadata import files for + * this job. + * A metadata import file defines the values to set for each of the entries + * and aspects in a metadata import job. For more information about how to + * create a metadata import file and the file requirements, see [Metadata + * import + * file](https://cloud.google.com/dataplex/docs/import-metadata#metadata-import-file). + * You can provide multiple metadata import files in the same metadata job. + * The bucket or folder must contain at least one metadata import file, in + * JSON Lines format (either `.json` or `.jsonl` file extension). + * In `FULL` entry sync mode, don't save the metadata import file in a + * folder named `SOURCE_STORAGE_URI/deletions/`. + * **Caution**: If the metadata import file contains no data, all entries + * and aspects that belong to the job's scope are deleted. + * @type \Google\Protobuf\Timestamp $source_create_time + * Optional. The time when the process that created the metadata import + * files began. + * @type \Google\Cloud\Dataplex\V1\MetadataJob\ImportJobSpec\ImportJobScope $scope + * Required. A boundary on the scope of impact that the metadata import job + * can have. + * @type int $entry_sync_mode + * Required. The sync mode for entries. + * @type int $aspect_sync_mode + * Required. The sync mode for aspects. + * @type int $log_level + * Optional. The level of logs to write to Cloud Logging for this job. + * Debug-level logs provide highly-detailed information for + * troubleshooting, but their increased verbosity could incur [additional + * costs](https://cloud.google.com/stackdriver/pricing) that might not be + * merited for all jobs. + * If unspecified, defaults to `INFO`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The URI of a Cloud Storage bucket or folder (beginning with + * `gs://` and ending with `/`) that contains the metadata import files for + * this job. + * A metadata import file defines the values to set for each of the entries + * and aspects in a metadata import job. For more information about how to + * create a metadata import file and the file requirements, see [Metadata + * import + * file](https://cloud.google.com/dataplex/docs/import-metadata#metadata-import-file). + * You can provide multiple metadata import files in the same metadata job. + * The bucket or folder must contain at least one metadata import file, in + * JSON Lines format (either `.json` or `.jsonl` file extension). + * In `FULL` entry sync mode, don't save the metadata import file in a + * folder named `SOURCE_STORAGE_URI/deletions/`. + * **Caution**: If the metadata import file contains no data, all entries + * and aspects that belong to the job's scope are deleted. + * + * Generated from protobuf field string source_storage_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getSourceStorageUri() + { + return $this->source_storage_uri; + } + + /** + * Optional. The URI of a Cloud Storage bucket or folder (beginning with + * `gs://` and ending with `/`) that contains the metadata import files for + * this job. + * A metadata import file defines the values to set for each of the entries + * and aspects in a metadata import job. For more information about how to + * create a metadata import file and the file requirements, see [Metadata + * import + * file](https://cloud.google.com/dataplex/docs/import-metadata#metadata-import-file). + * You can provide multiple metadata import files in the same metadata job. + * The bucket or folder must contain at least one metadata import file, in + * JSON Lines format (either `.json` or `.jsonl` file extension). + * In `FULL` entry sync mode, don't save the metadata import file in a + * folder named `SOURCE_STORAGE_URI/deletions/`. + * **Caution**: If the metadata import file contains no data, all entries + * and aspects that belong to the job's scope are deleted. + * + * Generated from protobuf field string source_storage_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setSourceStorageUri($var) + { + GPBUtil::checkString($var, True); + $this->source_storage_uri = $var; + + return $this; + } + + /** + * Optional. The time when the process that created the metadata import + * files began. + * + * Generated from protobuf field .google.protobuf.Timestamp source_create_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getSourceCreateTime() + { + return $this->source_create_time; + } + + public function hasSourceCreateTime() + { + return isset($this->source_create_time); + } + + public function clearSourceCreateTime() + { + unset($this->source_create_time); + } + + /** + * Optional. The time when the process that created the metadata import + * files began. + * + * Generated from protobuf field .google.protobuf.Timestamp source_create_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setSourceCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->source_create_time = $var; + + return $this; + } + + /** + * Required. A boundary on the scope of impact that the metadata import job + * can have. + * + * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.ImportJobScope scope = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\MetadataJob\ImportJobSpec\ImportJobScope|null + */ + public function getScope() + { + return $this->scope; + } + + public function hasScope() + { + return isset($this->scope); + } + + public function clearScope() + { + unset($this->scope); + } + + /** + * Required. A boundary on the scope of impact that the metadata import job + * can have. + * + * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.ImportJobScope scope = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\MetadataJob\ImportJobSpec\ImportJobScope $var + * @return $this + */ + public function setScope($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\MetadataJob\ImportJobSpec\ImportJobScope::class); + $this->scope = $var; + + return $this; + } + + /** + * Required. The sync mode for entries. + * + * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.SyncMode entry_sync_mode = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getEntrySyncMode() + { + return $this->entry_sync_mode; + } + + /** + * Required. The sync mode for entries. + * + * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.SyncMode entry_sync_mode = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setEntrySyncMode($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\MetadataJob\ImportJobSpec\SyncMode::class); + $this->entry_sync_mode = $var; + + return $this; + } + + /** + * Required. The sync mode for aspects. + * + * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.SyncMode aspect_sync_mode = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getAspectSyncMode() + { + return $this->aspect_sync_mode; + } + + /** + * Required. The sync mode for aspects. + * + * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.SyncMode aspect_sync_mode = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setAspectSyncMode($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\MetadataJob\ImportJobSpec\SyncMode::class); + $this->aspect_sync_mode = $var; + + return $this; + } + + /** + * Optional. The level of logs to write to Cloud Logging for this job. + * Debug-level logs provide highly-detailed information for + * troubleshooting, but their increased verbosity could incur [additional + * costs](https://cloud.google.com/stackdriver/pricing) that might not be + * merited for all jobs. + * If unspecified, defaults to `INFO`. + * + * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.LogLevel log_level = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getLogLevel() + { + return $this->log_level; + } + + /** + * Optional. The level of logs to write to Cloud Logging for this job. + * Debug-level logs provide highly-detailed information for + * troubleshooting, but their increased verbosity could incur [additional + * costs](https://cloud.google.com/stackdriver/pricing) that might not be + * merited for all jobs. + * If unspecified, defaults to `INFO`. + * + * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.LogLevel log_level = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setLogLevel($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\MetadataJob\ImportJobSpec\LogLevel::class); + $this->log_level = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ImportJobSpec/ImportJobScope.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ImportJobSpec/ImportJobScope.php new file mode 100644 index 000000000000..9a5c74a6414c --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ImportJobSpec/ImportJobScope.php @@ -0,0 +1,417 @@ +google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.ImportJobScope + */ +class ImportJobScope extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The entry groups that are in scope for the import job, + * specified as relative resource names in the format + * `projects/{project_number_or_id}/locations/{location_id}/entryGroups/{entry_group_id}`. + * Only entries and aspects that belong to the specified entry groups are + * affected by the job. + * The entry groups and the job must be in the same location. + * + * Generated from protobuf field repeated string entry_groups = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + private $entry_groups; + /** + * Required. The entry types that are in scope for the import job, + * specified as relative resource names in the format + * `projects/{project_number_or_id}/locations/{location_id}/entryTypes/{entry_type_id}`. + * The job modifies only the entries and aspects that belong to these + * entry types. + * If the metadata import file attempts to modify an entry whose type + * isn't included in this list, the import job is halted before modifying + * any entries or aspects. + * The location of an entry type must either match the location of the + * job, or the entry type must be global. + * + * Generated from protobuf field repeated string entry_types = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + private $entry_types; + /** + * Optional. The aspect types that are in scope for the import job, + * specified as relative resource names in the format + * `projects/{project_number_or_id}/locations/{location_id}/aspectTypes/{aspect_type_id}`. + * The job modifies only the aspects that belong to these aspect types. + * This field is required when creating an aspect-only import job. + * If the metadata import file attempts to modify an aspect whose type + * isn't included in this list, the import job is halted before modifying + * any entries or aspects. + * The location of an aspect type must either match the location of the + * job, or the aspect type must be global. + * + * Generated from protobuf field repeated string aspect_types = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $aspect_types; + /** + * Optional. The glossaries that are in scope for the import job, + * specified as relative resource names in the format + * `projects/{project_number_or_id}/locations/{location_id}/glossaries/{glossary_id}`. + * While importing Business Glossary entries, the user must + * provide glossaries. While importing entries, the user does not have to + * provide glossaries. If the metadata import file attempts to modify + * Business Glossary entries whose glossary isn't included in this list, + * the import job will skip those entries. + * The location of a glossary must either match the location of the + * job, or the glossary must be global. + * + * Generated from protobuf field repeated string glossaries = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $glossaries; + /** + * Optional. The entry link types that are in scope for the import job, + * specified as relative resource names in the format + * `projects/{project_number_or_id}/locations/{location_id}/entryLinkTypes/{entry_link_type_id}`. + * The job modifies only the entryLinks that belong to these entry link + * types. + * If the metadata import file attempts to create or delete an entry link + * whose entry link type isn't included in this list, the import job will + * skip those entry links. + * + * Generated from protobuf field repeated string entry_link_types = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $entry_link_types; + /** + * Optional. Defines the scope of entries that can be referenced in the + * entry links. + * Currently, projects are supported as valid scopes. + * Format: `projects/{project_number_or_id}` + * If the metadata import file attempts to create an entry link + * which references an entry that is not in the scope, the import job will + * skip that entry link. + * + * Generated from protobuf field repeated string referenced_entry_scopes = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $referenced_entry_scopes; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string[] $entry_groups + * Required. The entry groups that are in scope for the import job, + * specified as relative resource names in the format + * `projects/{project_number_or_id}/locations/{location_id}/entryGroups/{entry_group_id}`. + * Only entries and aspects that belong to the specified entry groups are + * affected by the job. + * The entry groups and the job must be in the same location. + * @type string[] $entry_types + * Required. The entry types that are in scope for the import job, + * specified as relative resource names in the format + * `projects/{project_number_or_id}/locations/{location_id}/entryTypes/{entry_type_id}`. + * The job modifies only the entries and aspects that belong to these + * entry types. + * If the metadata import file attempts to modify an entry whose type + * isn't included in this list, the import job is halted before modifying + * any entries or aspects. + * The location of an entry type must either match the location of the + * job, or the entry type must be global. + * @type string[] $aspect_types + * Optional. The aspect types that are in scope for the import job, + * specified as relative resource names in the format + * `projects/{project_number_or_id}/locations/{location_id}/aspectTypes/{aspect_type_id}`. + * The job modifies only the aspects that belong to these aspect types. + * This field is required when creating an aspect-only import job. + * If the metadata import file attempts to modify an aspect whose type + * isn't included in this list, the import job is halted before modifying + * any entries or aspects. + * The location of an aspect type must either match the location of the + * job, or the aspect type must be global. + * @type string[] $glossaries + * Optional. The glossaries that are in scope for the import job, + * specified as relative resource names in the format + * `projects/{project_number_or_id}/locations/{location_id}/glossaries/{glossary_id}`. + * While importing Business Glossary entries, the user must + * provide glossaries. While importing entries, the user does not have to + * provide glossaries. If the metadata import file attempts to modify + * Business Glossary entries whose glossary isn't included in this list, + * the import job will skip those entries. + * The location of a glossary must either match the location of the + * job, or the glossary must be global. + * @type string[] $entry_link_types + * Optional. The entry link types that are in scope for the import job, + * specified as relative resource names in the format + * `projects/{project_number_or_id}/locations/{location_id}/entryLinkTypes/{entry_link_type_id}`. + * The job modifies only the entryLinks that belong to these entry link + * types. + * If the metadata import file attempts to create or delete an entry link + * whose entry link type isn't included in this list, the import job will + * skip those entry links. + * @type string[] $referenced_entry_scopes + * Optional. Defines the scope of entries that can be referenced in the + * entry links. + * Currently, projects are supported as valid scopes. + * Format: `projects/{project_number_or_id}` + * If the metadata import file attempts to create an entry link + * which references an entry that is not in the scope, the import job will + * skip that entry link. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The entry groups that are in scope for the import job, + * specified as relative resource names in the format + * `projects/{project_number_or_id}/locations/{location_id}/entryGroups/{entry_group_id}`. + * Only entries and aspects that belong to the specified entry groups are + * affected by the job. + * The entry groups and the job must be in the same location. + * + * Generated from protobuf field repeated string entry_groups = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return RepeatedField + */ + public function getEntryGroups() + { + return $this->entry_groups; + } + + /** + * Required. The entry groups that are in scope for the import job, + * specified as relative resource names in the format + * `projects/{project_number_or_id}/locations/{location_id}/entryGroups/{entry_group_id}`. + * Only entries and aspects that belong to the specified entry groups are + * affected by the job. + * The entry groups and the job must be in the same location. + * + * Generated from protobuf field repeated string entry_groups = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string[] $var + * @return $this + */ + public function setEntryGroups($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->entry_groups = $arr; + + return $this; + } + + /** + * Required. The entry types that are in scope for the import job, + * specified as relative resource names in the format + * `projects/{project_number_or_id}/locations/{location_id}/entryTypes/{entry_type_id}`. + * The job modifies only the entries and aspects that belong to these + * entry types. + * If the metadata import file attempts to modify an entry whose type + * isn't included in this list, the import job is halted before modifying + * any entries or aspects. + * The location of an entry type must either match the location of the + * job, or the entry type must be global. + * + * Generated from protobuf field repeated string entry_types = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return RepeatedField + */ + public function getEntryTypes() + { + return $this->entry_types; + } + + /** + * Required. The entry types that are in scope for the import job, + * specified as relative resource names in the format + * `projects/{project_number_or_id}/locations/{location_id}/entryTypes/{entry_type_id}`. + * The job modifies only the entries and aspects that belong to these + * entry types. + * If the metadata import file attempts to modify an entry whose type + * isn't included in this list, the import job is halted before modifying + * any entries or aspects. + * The location of an entry type must either match the location of the + * job, or the entry type must be global. + * + * Generated from protobuf field repeated string entry_types = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string[] $var + * @return $this + */ + public function setEntryTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->entry_types = $arr; + + return $this; + } + + /** + * Optional. The aspect types that are in scope for the import job, + * specified as relative resource names in the format + * `projects/{project_number_or_id}/locations/{location_id}/aspectTypes/{aspect_type_id}`. + * The job modifies only the aspects that belong to these aspect types. + * This field is required when creating an aspect-only import job. + * If the metadata import file attempts to modify an aspect whose type + * isn't included in this list, the import job is halted before modifying + * any entries or aspects. + * The location of an aspect type must either match the location of the + * job, or the aspect type must be global. + * + * Generated from protobuf field repeated string aspect_types = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return RepeatedField + */ + public function getAspectTypes() + { + return $this->aspect_types; + } + + /** + * Optional. The aspect types that are in scope for the import job, + * specified as relative resource names in the format + * `projects/{project_number_or_id}/locations/{location_id}/aspectTypes/{aspect_type_id}`. + * The job modifies only the aspects that belong to these aspect types. + * This field is required when creating an aspect-only import job. + * If the metadata import file attempts to modify an aspect whose type + * isn't included in this list, the import job is halted before modifying + * any entries or aspects. + * The location of an aspect type must either match the location of the + * job, or the aspect type must be global. + * + * Generated from protobuf field repeated string aspect_types = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string[] $var + * @return $this + */ + public function setAspectTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->aspect_types = $arr; + + return $this; + } + + /** + * Optional. The glossaries that are in scope for the import job, + * specified as relative resource names in the format + * `projects/{project_number_or_id}/locations/{location_id}/glossaries/{glossary_id}`. + * While importing Business Glossary entries, the user must + * provide glossaries. While importing entries, the user does not have to + * provide glossaries. If the metadata import file attempts to modify + * Business Glossary entries whose glossary isn't included in this list, + * the import job will skip those entries. + * The location of a glossary must either match the location of the + * job, or the glossary must be global. + * + * Generated from protobuf field repeated string glossaries = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return RepeatedField + */ + public function getGlossaries() + { + return $this->glossaries; + } + + /** + * Optional. The glossaries that are in scope for the import job, + * specified as relative resource names in the format + * `projects/{project_number_or_id}/locations/{location_id}/glossaries/{glossary_id}`. + * While importing Business Glossary entries, the user must + * provide glossaries. While importing entries, the user does not have to + * provide glossaries. If the metadata import file attempts to modify + * Business Glossary entries whose glossary isn't included in this list, + * the import job will skip those entries. + * The location of a glossary must either match the location of the + * job, or the glossary must be global. + * + * Generated from protobuf field repeated string glossaries = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string[] $var + * @return $this + */ + public function setGlossaries($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->glossaries = $arr; + + return $this; + } + + /** + * Optional. The entry link types that are in scope for the import job, + * specified as relative resource names in the format + * `projects/{project_number_or_id}/locations/{location_id}/entryLinkTypes/{entry_link_type_id}`. + * The job modifies only the entryLinks that belong to these entry link + * types. + * If the metadata import file attempts to create or delete an entry link + * whose entry link type isn't included in this list, the import job will + * skip those entry links. + * + * Generated from protobuf field repeated string entry_link_types = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getEntryLinkTypes() + { + return $this->entry_link_types; + } + + /** + * Optional. The entry link types that are in scope for the import job, + * specified as relative resource names in the format + * `projects/{project_number_or_id}/locations/{location_id}/entryLinkTypes/{entry_link_type_id}`. + * The job modifies only the entryLinks that belong to these entry link + * types. + * If the metadata import file attempts to create or delete an entry link + * whose entry link type isn't included in this list, the import job will + * skip those entry links. + * + * Generated from protobuf field repeated string entry_link_types = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setEntryLinkTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->entry_link_types = $arr; + + return $this; + } + + /** + * Optional. Defines the scope of entries that can be referenced in the + * entry links. + * Currently, projects are supported as valid scopes. + * Format: `projects/{project_number_or_id}` + * If the metadata import file attempts to create an entry link + * which references an entry that is not in the scope, the import job will + * skip that entry link. + * + * Generated from protobuf field repeated string referenced_entry_scopes = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getReferencedEntryScopes() + { + return $this->referenced_entry_scopes; + } + + /** + * Optional. Defines the scope of entries that can be referenced in the + * entry links. + * Currently, projects are supported as valid scopes. + * Format: `projects/{project_number_or_id}` + * If the metadata import file attempts to create an entry link + * which references an entry that is not in the scope, the import job will + * skip that entry link. + * + * Generated from protobuf field repeated string referenced_entry_scopes = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setReferencedEntryScopes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->referenced_entry_scopes = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ImportJobSpec/LogLevel.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ImportJobSpec/LogLevel.php new file mode 100644 index 000000000000..162485d3dec2 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ImportJobSpec/LogLevel.php @@ -0,0 +1,71 @@ +google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.LogLevel + */ +class LogLevel +{ + /** + * Log level unspecified. + * + * Generated from protobuf enum LOG_LEVEL_UNSPECIFIED = 0; + */ + const LOG_LEVEL_UNSPECIFIED = 0; + /** + * Debug-level logging. Captures detailed logs for each import item. Use + * debug-level logging to troubleshoot issues with specific import items. + * For example, use debug-level logging to identify resources that are + * missing from the job scope, entries or aspects that don't conform to + * the associated entry type or aspect type, or other misconfigurations + * with the metadata import file. + * Depending on the size of your metadata job and the number of logs that + * are generated, debug-level logging might incur + * [additional costs](https://cloud.google.com/stackdriver/pricing). + * + * Generated from protobuf enum DEBUG = 1; + */ + const DEBUG = 1; + /** + * Info-level logging. Captures logs at the overall job level. Includes + * aggregate logs about import items, but doesn't specify which import + * item has an error. + * + * Generated from protobuf enum INFO = 2; + */ + const INFO = 2; + + private static $valueToName = [ + self::LOG_LEVEL_UNSPECIFIED => 'LOG_LEVEL_UNSPECIFIED', + self::DEBUG => 'DEBUG', + self::INFO => 'INFO', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ImportJobSpec/SyncMode.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ImportJobSpec/SyncMode.php new file mode 100644 index 000000000000..e123213441ac --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ImportJobSpec/SyncMode.php @@ -0,0 +1,80 @@ +google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.SyncMode + */ +class SyncMode +{ + /** + * Sync mode unspecified. + * + * Generated from protobuf enum SYNC_MODE_UNSPECIFIED = 0; + */ + const SYNC_MODE_UNSPECIFIED = 0; + /** + * All resources in the job's scope are modified. If a resource exists in + * Dataplex Universal Catalog but isn't included in the metadata import + * file, the resource is deleted when you run the metadata job. Use this + * mode to perform a full sync of the set of entries in the job scope. + * This sync mode is supported for entries. + * + * Generated from protobuf enum FULL = 1; + */ + const FULL = 1; + /** + * Only the resources that are explicitly included in the + * metadata import file are modified. Use this mode to modify a subset of + * resources while leaving unreferenced resources unchanged. + * This sync mode is supported for aspects. + * + * Generated from protobuf enum INCREMENTAL = 2; + */ + const INCREMENTAL = 2; + /** + * If entry sync mode is `NONE`, then aspects are modified according + * to the aspect sync mode. Other metadata that belongs to entries in the + * job's scope isn't modified. + * This sync mode is supported for entries. + * + * Generated from protobuf enum NONE = 3; + */ + const NONE = 3; + + private static $valueToName = [ + self::SYNC_MODE_UNSPECIFIED => 'SYNC_MODE_UNSPECIFIED', + self::FULL => 'FULL', + self::INCREMENTAL => 'INCREMENTAL', + self::NONE => 'NONE', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/Status.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/Status.php new file mode 100644 index 000000000000..8897363a6746 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/Status.php @@ -0,0 +1,179 @@ +google.cloud.dataplex.v1.MetadataJob.Status + */ +class Status extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. State of the metadata job. + * + * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.Status.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Output only. Message relating to the progression of a metadata job. + * + * Generated from protobuf field string message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $message = ''; + /** + * Output only. Progress tracking. + * + * Generated from protobuf field int32 completion_percent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $completion_percent = 0; + /** + * Output only. The time when the status was updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $state + * Output only. State of the metadata job. + * @type string $message + * Output only. Message relating to the progression of a metadata job. + * @type int $completion_percent + * Output only. Progress tracking. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time when the status was updated. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Output only. State of the metadata job. + * + * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.Status.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. State of the metadata job. + * + * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.Status.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\MetadataJob\Status\State::class); + $this->state = $var; + + return $this; + } + + /** + * Output only. Message relating to the progression of a metadata job. + * + * Generated from protobuf field string message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getMessage() + { + return $this->message; + } + + /** + * Output only. Message relating to the progression of a metadata job. + * + * Generated from protobuf field string message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkString($var, True); + $this->message = $var; + + return $this; + } + + /** + * Output only. Progress tracking. + * + * Generated from protobuf field int32 completion_percent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getCompletionPercent() + { + return $this->completion_percent; + } + + /** + * Output only. Progress tracking. + * + * Generated from protobuf field int32 completion_percent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setCompletionPercent($var) + { + GPBUtil::checkInt32($var); + $this->completion_percent = $var; + + return $this; + } + + /** + * Output only. The time when the status was updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. The time when the status was updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/Status/State.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/Status/State.php new file mode 100644 index 000000000000..ba6cf330b1d0 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/Status/State.php @@ -0,0 +1,96 @@ +google.cloud.dataplex.v1.MetadataJob.Status.State + */ +class State +{ + /** + * State unspecified. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * The job is queued. + * + * Generated from protobuf enum QUEUED = 1; + */ + const QUEUED = 1; + /** + * The job is running. + * + * Generated from protobuf enum RUNNING = 2; + */ + const RUNNING = 2; + /** + * The job is being canceled. + * + * Generated from protobuf enum CANCELING = 3; + */ + const CANCELING = 3; + /** + * The job is canceled. + * + * Generated from protobuf enum CANCELED = 4; + */ + const CANCELED = 4; + /** + * The job succeeded. + * + * Generated from protobuf enum SUCCEEDED = 5; + */ + const SUCCEEDED = 5; + /** + * The job failed. + * + * Generated from protobuf enum FAILED = 6; + */ + const FAILED = 6; + /** + * The job completed with some errors. + * + * Generated from protobuf enum SUCCEEDED_WITH_ERRORS = 7; + */ + const SUCCEEDED_WITH_ERRORS = 7; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::QUEUED => 'QUEUED', + self::RUNNING => 'RUNNING', + self::CANCELING => 'CANCELING', + self::CANCELED => 'CANCELED', + self::SUCCEEDED => 'SUCCEEDED', + self::FAILED => 'FAILED', + self::SUCCEEDED_WITH_ERRORS => 'SUCCEEDED_WITH_ERRORS', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/Type.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/Type.php new file mode 100644 index 000000000000..f0aac989ac09 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/Type.php @@ -0,0 +1,61 @@ +google.cloud.dataplex.v1.MetadataJob.Type + */ +class Type +{ + /** + * Unspecified. + * + * Generated from protobuf enum TYPE_UNSPECIFIED = 0; + */ + const TYPE_UNSPECIFIED = 0; + /** + * Import job. + * + * Generated from protobuf enum IMPORT = 1; + */ + const IMPORT = 1; + /** + * Export job. + * + * Generated from protobuf enum EXPORT = 2; + */ + const EXPORT = 2; + + private static $valueToName = [ + self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', + self::IMPORT => 'IMPORT', + self::EXPORT => 'EXPORT', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ModifyEntryRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ModifyEntryRequest.php new file mode 100644 index 000000000000..015927c9a6d1 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ModifyEntryRequest.php @@ -0,0 +1,299 @@ +google.cloud.dataplex.v1.ModifyEntryRequest + */ +class ModifyEntryRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The project to which the request should be attributed in the + * following form: `projects/{project}/locations/{location}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $name = ''; + /** + * Required. The entry to modify. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Entry entry = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $entry = null; + /** + * Optional. Mask of fields to update. To update Aspects, the update_mask must + * contain the value "aspects". + * If the update_mask is empty, the service will update all modifiable fields + * present in the request. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $update_mask = null; + /** + * Optional. If set to true, any aspects not specified in the request will be + * deleted. The default is false. + * + * Generated from protobuf field bool delete_missing_aspects = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $delete_missing_aspects = false; + /** + * Optional. The aspect keys which the service should modify. It supports + * the following syntaxes: + * * `` - matches an aspect of the given type and empty + * path. + * * `\@path` - matches an aspect of the given type and + * specified path. For example, to attach an aspect to a field that is + * specified by the `schema` aspect, the path should have the format + * `Schema.`. + * * `\@*` - matches aspects of the given type for all + * paths. + * * `*\@path` - matches aspects of all types on the given path. + * The service will not remove existing aspects matching the syntax unless + * `delete_missing_aspects` is set to true. + * If this field is left empty, the service treats it as specifying + * exactly those Aspects present in the request. + * + * Generated from protobuf field repeated string aspect_keys = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $aspect_keys; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The project to which the request should be attributed in the + * following form: `projects/{project}/locations/{location}`. + * @type \Google\Cloud\Dataplex\V1\Entry $entry + * Required. The entry to modify. + * @type \Google\Protobuf\FieldMask $update_mask + * Optional. Mask of fields to update. To update Aspects, the update_mask must + * contain the value "aspects". + * If the update_mask is empty, the service will update all modifiable fields + * present in the request. + * @type bool $delete_missing_aspects + * Optional. If set to true, any aspects not specified in the request will be + * deleted. The default is false. + * @type string[] $aspect_keys + * Optional. The aspect keys which the service should modify. It supports + * the following syntaxes: + * * `` - matches an aspect of the given type and empty + * path. + * * `\@path` - matches an aspect of the given type and + * specified path. For example, to attach an aspect to a field that is + * specified by the `schema` aspect, the path should have the format + * `Schema.`. + * * `\@*` - matches aspects of the given type for all + * paths. + * * `*\@path` - matches aspects of all types on the given path. + * The service will not remove existing aspects matching the syntax unless + * `delete_missing_aspects` is set to true. + * If this field is left empty, the service treats it as specifying + * exactly those Aspects present in the request. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The project to which the request should be attributed in the + * following form: `projects/{project}/locations/{location}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The project to which the request should be attributed in the + * following form: `projects/{project}/locations/{location}`. + * + * 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 entry to modify. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Entry entry = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\Entry|null + */ + public function getEntry() + { + return $this->entry; + } + + public function hasEntry() + { + return isset($this->entry); + } + + public function clearEntry() + { + unset($this->entry); + } + + /** + * Required. The entry to modify. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Entry entry = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\Entry $var + * @return $this + */ + public function setEntry($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Entry::class); + $this->entry = $var; + + return $this; + } + + /** + * Optional. Mask of fields to update. To update Aspects, the update_mask must + * contain the value "aspects". + * If the update_mask is empty, the service will update all modifiable fields + * present in the request. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.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. Mask of fields to update. To update Aspects, the update_mask must + * contain the value "aspects". + * If the update_mask is empty, the service will update all modifiable fields + * present in the request. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.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; + } + + /** + * Optional. If set to true, any aspects not specified in the request will be + * deleted. The default is false. + * + * Generated from protobuf field bool delete_missing_aspects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getDeleteMissingAspects() + { + return $this->delete_missing_aspects; + } + + /** + * Optional. If set to true, any aspects not specified in the request will be + * deleted. The default is false. + * + * Generated from protobuf field bool delete_missing_aspects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setDeleteMissingAspects($var) + { + GPBUtil::checkBool($var); + $this->delete_missing_aspects = $var; + + return $this; + } + + /** + * Optional. The aspect keys which the service should modify. It supports + * the following syntaxes: + * * `` - matches an aspect of the given type and empty + * path. + * * `\@path` - matches an aspect of the given type and + * specified path. For example, to attach an aspect to a field that is + * specified by the `schema` aspect, the path should have the format + * `Schema.`. + * * `\@*` - matches aspects of the given type for all + * paths. + * * `*\@path` - matches aspects of all types on the given path. + * The service will not remove existing aspects matching the syntax unless + * `delete_missing_aspects` is set to true. + * If this field is left empty, the service treats it as specifying + * exactly those Aspects present in the request. + * + * Generated from protobuf field repeated string aspect_keys = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getAspectKeys() + { + return $this->aspect_keys; + } + + /** + * Optional. The aspect keys which the service should modify. It supports + * the following syntaxes: + * * `` - matches an aspect of the given type and empty + * path. + * * `\@path` - matches an aspect of the given type and + * specified path. For example, to attach an aspect to a field that is + * specified by the `schema` aspect, the path should have the format + * `Schema.`. + * * `\@*` - matches aspects of the given type for all + * paths. + * * `*\@path` - matches aspects of all types on the given path. + * The service will not remove existing aspects matching the syntax unless + * `delete_missing_aspects` is set to true. + * If this field is left empty, the service treats it as specifying + * exactly those Aspects present in the request. + * + * Generated from protobuf field repeated string aspect_keys = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setAspectKeys($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->aspect_keys = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/OperationMetadata.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/OperationMetadata.php new file mode 100644 index 000000000000..4ced29ea115e --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/OperationMetadata.php @@ -0,0 +1,307 @@ +google.cloud.dataplex.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. Server-defined resource path for the target of the operation. + * + * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $target = ''; + /** + * Output only. Name of the verb executed by the operation. + * + * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $verb = ''; + /** + * Output only. Human-readable status of the operation, if any. + * + * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $status_message = ''; + /** + * Output only. Identifies whether the user has requested cancellation + * of the operation. Operations that have successfully been cancelled + * have [Operation.error][] value with a + * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + * `Code.CANCELLED`. + * + * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $requested_cancellation = false; + /** + * Output only. API version used to start the operation. + * + * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $api_version = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time the operation was created. + * @type \Google\Protobuf\Timestamp $end_time + * Output only. The time the operation finished running. + * @type string $target + * Output only. Server-defined resource path for the target of the operation. + * @type string $verb + * Output only. Name of the verb executed by the operation. + * @type string $status_message + * Output only. Human-readable status of the operation, if any. + * @type bool $requested_cancellation + * Output only. Identifies whether the user has requested cancellation + * of the operation. Operations that have successfully been cancelled + * have [Operation.error][] value with a + * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + * `Code.CANCELLED`. + * @type string $api_version + * Output only. API version used to start the operation. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The time the operation was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The time the operation was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. The time the operation finished running. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getEndTime() + { + return $this->end_time; + } + + public function hasEndTime() + { + return isset($this->end_time); + } + + public function clearEndTime() + { + unset($this->end_time); + } + + /** + * Output only. The time the operation finished running. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEndTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->end_time = $var; + + return $this; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * + * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getTarget() + { + return $this->target; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * + * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setTarget($var) + { + GPBUtil::checkString($var, True); + $this->target = $var; + + return $this; + } + + /** + * Output only. Name of the verb executed by the operation. + * + * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getVerb() + { + return $this->verb; + } + + /** + * Output only. Name of the verb executed by the operation. + * + * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setVerb($var) + { + GPBUtil::checkString($var, True); + $this->verb = $var; + + return $this; + } + + /** + * Output only. Human-readable status of the operation, if any. + * + * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getStatusMessage() + { + return $this->status_message; + } + + /** + * Output only. Human-readable status of the operation, if any. + * + * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setStatusMessage($var) + { + GPBUtil::checkString($var, True); + $this->status_message = $var; + + return $this; + } + + /** + * Output only. Identifies whether the user has requested cancellation + * of the operation. Operations that have successfully been cancelled + * have [Operation.error][] value with a + * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + * `Code.CANCELLED`. + * + * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getRequestedCancellation() + { + return $this->requested_cancellation; + } + + /** + * Output only. Identifies whether the user has requested cancellation + * of the operation. Operations that have successfully been cancelled + * have [Operation.error][] value with a + * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + * `Code.CANCELLED`. + * + * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setRequestedCancellation($var) + { + GPBUtil::checkBool($var); + $this->requested_cancellation = $var; + + return $this; + } + + /** + * Output only. API version used to start the operation. + * + * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getApiVersion() + { + return $this->api_version; + } + + /** + * Output only. API version used to start the operation. + * + * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setApiVersion($var) + { + GPBUtil::checkString($var, True); + $this->api_version = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Partition.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Partition.php new file mode 100644 index 000000000000..58cde53fa4c1 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Partition.php @@ -0,0 +1,204 @@ +google.cloud.dataplex.v1.Partition + */ +class Partition extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Partition values used in the HTTP URL must be + * double encoded. For example, `url_encode(url_encode(value))` can be used + * to encode "US:CA/CA#Sunnyvale so that the request URL ends + * with "/partitions/US%253ACA/CA%2523Sunnyvale". + * The name field in the response retains the encoded format. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Required. Immutable. The set of values representing the partition, which + * correspond to the partition schema defined in the parent entity. + * + * Generated from protobuf field repeated string values = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + */ + private $values; + /** + * Required. Immutable. The location of the entity data within the partition, + * for example, `gs://bucket/path/to/entity/key1=value1/key2=value2`. Or + * `projects//datasets//tables/` + * + * Generated from protobuf field string location = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + */ + protected $location = ''; + /** + * Optional. The etag for this partition. + * + * Generated from protobuf field string etag = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * @deprecated + */ + protected $etag = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. Partition values used in the HTTP URL must be + * double encoded. For example, `url_encode(url_encode(value))` can be used + * to encode "US:CA/CA#Sunnyvale so that the request URL ends + * with "/partitions/US%253ACA/CA%2523Sunnyvale". + * The name field in the response retains the encoded format. + * @type string[] $values + * Required. Immutable. The set of values representing the partition, which + * correspond to the partition schema defined in the parent entity. + * @type string $location + * Required. Immutable. The location of the entity data within the partition, + * for example, `gs://bucket/path/to/entity/key1=value1/key2=value2`. Or + * `projects//datasets//tables/` + * @type string $etag + * Optional. The etag for this partition. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Metadata::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Partition values used in the HTTP URL must be + * double encoded. For example, `url_encode(url_encode(value))` can be used + * to encode "US:CA/CA#Sunnyvale so that the request URL ends + * with "/partitions/US%253ACA/CA%2523Sunnyvale". + * The name field in the response retains the encoded format. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. Partition values used in the HTTP URL must be + * double encoded. For example, `url_encode(url_encode(value))` can be used + * to encode "US:CA/CA#Sunnyvale so that the request URL ends + * with "/partitions/US%253ACA/CA%2523Sunnyvale". + * The name field in the response retains the encoded format. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. Immutable. The set of values representing the partition, which + * correspond to the partition schema defined in the parent entity. + * + * Generated from protobuf field repeated string values = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @return RepeatedField + */ + public function getValues() + { + return $this->values; + } + + /** + * Required. Immutable. The set of values representing the partition, which + * correspond to the partition schema defined in the parent entity. + * + * Generated from protobuf field repeated string values = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @param string[] $var + * @return $this + */ + public function setValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->values = $arr; + + return $this; + } + + /** + * Required. Immutable. The location of the entity data within the partition, + * for example, `gs://bucket/path/to/entity/key1=value1/key2=value2`. Or + * `projects//datasets//tables/` + * + * Generated from protobuf field string location = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @return string + */ + public function getLocation() + { + return $this->location; + } + + /** + * Required. Immutable. The location of the entity data within the partition, + * for example, `gs://bucket/path/to/entity/key1=value1/key2=value2`. Or + * `projects//datasets//tables/` + * + * Generated from protobuf field string location = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @param string $var + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkString($var, True); + $this->location = $var; + + return $this; + } + + /** + * Optional. The etag for this partition. + * + * Generated from protobuf field string etag = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * @return string + * @deprecated + */ + public function getEtag() + { + if ($this->etag !== '') { + @trigger_error('etag is deprecated.', E_USER_DEPRECATED); + } + return $this->etag; + } + + /** + * Optional. The etag for this partition. + * + * Generated from protobuf field string etag = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + * @deprecated + */ + public function setEtag($var) + { + @trigger_error('etag is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->etag = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/RequestDataProductAccessRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/RequestDataProductAccessRequest.php new file mode 100644 index 000000000000..195591139df8 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/RequestDataProductAccessRequest.php @@ -0,0 +1,175 @@ +google.cloud.dataplex.v1.RequestDataProductAccessRequest + */ +class RequestDataProductAccessRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the data product. + * Format: + * projects/{project_number}/locations/{location_id}/dataProducts/{data_product_id} + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The change request for the data product access request. + * + * Generated from protobuf field .google.cloud.dataplex.v1.ChangeRequest change_request = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $change_request = null; + /** + * Optional. Validates the request without actually creating the access change + * request. Defaults to false. + * + * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $validate_only = false; + + /** + * @param string $parent Required. The resource name of the data product. + * Format: + * projects/{project_number}/locations/{location_id}/dataProducts/{data_product_id} + * Please see {@see DataProductServiceClient::dataProductName()} for help formatting this field. + * @param \Google\Cloud\Dataplex\V1\ChangeRequest $changeRequest Required. The change request for the data product access request. + * + * @return \Google\Cloud\Dataplex\V1\RequestDataProductAccessRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\Dataplex\V1\ChangeRequest $changeRequest): self + { + return (new self()) + ->setParent($parent) + ->setChangeRequest($changeRequest); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The resource name of the data product. + * Format: + * projects/{project_number}/locations/{location_id}/dataProducts/{data_product_id} + * @type \Google\Cloud\Dataplex\V1\ChangeRequest $change_request + * Required. The change request for the data product access request. + * @type bool $validate_only + * Optional. Validates the request without actually creating the access change + * request. Defaults to false. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataProducts::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the data product. + * Format: + * projects/{project_number}/locations/{location_id}/dataProducts/{data_product_id} + * + * 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 resource name of the data product. + * Format: + * projects/{project_number}/locations/{location_id}/dataProducts/{data_product_id} + * + * 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 change request for the data product access request. + * + * Generated from protobuf field .google.cloud.dataplex.v1.ChangeRequest change_request = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\ChangeRequest|null + */ + public function getChangeRequest() + { + return $this->change_request; + } + + public function hasChangeRequest() + { + return isset($this->change_request); + } + + public function clearChangeRequest() + { + unset($this->change_request); + } + + /** + * Required. The change request for the data product access request. + * + * Generated from protobuf field .google.cloud.dataplex.v1.ChangeRequest change_request = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\ChangeRequest $var + * @return $this + */ + public function setChangeRequest($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\ChangeRequest::class); + $this->change_request = $var; + + return $this; + } + + /** + * Optional. Validates the request without actually creating the access change + * request. Defaults to false. + * + * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * Optional. Validates the request without actually creating the access change + * request. Defaults to false. + * + * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/RequestDataProductAccessResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/RequestDataProductAccessResponse.php new file mode 100644 index 000000000000..af9f4d7d8a79 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/RequestDataProductAccessResponse.php @@ -0,0 +1,75 @@ +google.cloud.dataplex.v1.RequestDataProductAccessResponse + */ +class RequestDataProductAccessResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The resource name of the created ChangeRequest. + * Format: + * projects/{project_number}/locations/{location_id}/changeRequests/{change_request_id} + * + * Generated from protobuf field string change_request_name = 1 [(.google.api.resource_reference) = { + */ + protected $change_request_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $change_request_name + * The resource name of the created ChangeRequest. + * Format: + * projects/{project_number}/locations/{location_id}/changeRequests/{change_request_id} + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataProducts::initOnce(); + parent::__construct($data); + } + + /** + * The resource name of the created ChangeRequest. + * Format: + * projects/{project_number}/locations/{location_id}/changeRequests/{change_request_id} + * + * Generated from protobuf field string change_request_name = 1 [(.google.api.resource_reference) = { + * @return string + */ + public function getChangeRequestName() + { + return $this->change_request_name; + } + + /** + * The resource name of the created ChangeRequest. + * Format: + * projects/{project_number}/locations/{location_id}/changeRequests/{change_request_id} + * + * Generated from protobuf field string change_request_name = 1 [(.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setChangeRequestName($var) + { + GPBUtil::checkString($var, True); + $this->change_request_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ResourceAccessSpec.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ResourceAccessSpec.php new file mode 100644 index 000000000000..780435d3f889 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ResourceAccessSpec.php @@ -0,0 +1,145 @@ +google.cloud.dataplex.v1.ResourceAccessSpec + */ +class ResourceAccessSpec extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The format of strings follows the pattern followed by IAM in the + * bindings. user:{email}, serviceAccount:{email} group:{email}. + * The set of principals to be granted reader role on the resource. + * + * Generated from protobuf field repeated string readers = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $readers; + /** + * Optional. The set of principals to be granted writer role on the resource. + * + * Generated from protobuf field repeated string writers = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $writers; + /** + * Optional. The set of principals to be granted owner role on the resource. + * + * Generated from protobuf field repeated string owners = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $owners; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string[] $readers + * Optional. The format of strings follows the pattern followed by IAM in the + * bindings. user:{email}, serviceAccount:{email} group:{email}. + * The set of principals to be granted reader role on the resource. + * @type string[] $writers + * Optional. The set of principals to be granted writer role on the resource. + * @type string[] $owners + * Optional. The set of principals to be granted owner role on the resource. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Security::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The format of strings follows the pattern followed by IAM in the + * bindings. user:{email}, serviceAccount:{email} group:{email}. + * The set of principals to be granted reader role on the resource. + * + * Generated from protobuf field repeated string readers = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getReaders() + { + return $this->readers; + } + + /** + * Optional. The format of strings follows the pattern followed by IAM in the + * bindings. user:{email}, serviceAccount:{email} group:{email}. + * The set of principals to be granted reader role on the resource. + * + * Generated from protobuf field repeated string readers = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setReaders($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->readers = $arr; + + return $this; + } + + /** + * Optional. The set of principals to be granted writer role on the resource. + * + * Generated from protobuf field repeated string writers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getWriters() + { + return $this->writers; + } + + /** + * Optional. The set of principals to be granted writer role on the resource. + * + * Generated from protobuf field repeated string writers = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setWriters($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->writers = $arr; + + return $this; + } + + /** + * Optional. The set of principals to be granted owner role on the resource. + * + * Generated from protobuf field repeated string owners = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getOwners() + { + return $this->owners; + } + + /** + * Optional. The set of principals to be granted owner role on the resource. + * + * Generated from protobuf field repeated string owners = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setOwners($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->owners = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/RunDataScanRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/RunDataScanRequest.php new file mode 100644 index 000000000000..daac50f844c1 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/RunDataScanRequest.php @@ -0,0 +1,102 @@ +google.cloud.dataplex.v1.RunDataScanRequest + */ +class RunDataScanRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the DataScan: + * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}`. + * where `project` refers to a *project_id* or *project_number* and + * `location_id` refers to a Google Cloud region. + * Only **OnDemand** data scans are allowed. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the DataScan: + * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}`. + * where `project` refers to a *project_id* or *project_number* and + * `location_id` refers to a Google Cloud region. + * + * Only **OnDemand** data scans are allowed. Please see + * {@see DataScanServiceClient::dataScanName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\RunDataScanRequest + * + * @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 resource name of the DataScan: + * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}`. + * where `project` refers to a *project_id* or *project_number* and + * `location_id` refers to a Google Cloud region. + * Only **OnDemand** data scans are allowed. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Datascans::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the DataScan: + * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}`. + * where `project` refers to a *project_id* or *project_number* and + * `location_id` refers to a Google Cloud region. + * Only **OnDemand** data scans are allowed. + * + * 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 resource name of the DataScan: + * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}`. + * where `project` refers to a *project_id* or *project_number* and + * `location_id` refers to a Google Cloud region. + * Only **OnDemand** data scans are allowed. + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/RunDataScanResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/RunDataScanResponse.php new file mode 100644 index 000000000000..b3d45e135ea8 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/RunDataScanResponse.php @@ -0,0 +1,77 @@ +google.cloud.dataplex.v1.RunDataScanResponse + */ +class RunDataScanResponse extends \Google\Protobuf\Internal\Message +{ + /** + * DataScanJob created by RunDataScan request. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScanJob job = 1; + */ + protected $job = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\DataScanJob $job + * DataScanJob created by RunDataScan request. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Datascans::initOnce(); + parent::__construct($data); + } + + /** + * DataScanJob created by RunDataScan request. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScanJob job = 1; + * @return \Google\Cloud\Dataplex\V1\DataScanJob|null + */ + public function getJob() + { + return $this->job; + } + + public function hasJob() + { + return isset($this->job); + } + + public function clearJob() + { + unset($this->job); + } + + /** + * DataScanJob created by RunDataScan request. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScanJob job = 1; + * @param \Google\Cloud\Dataplex\V1\DataScanJob $var + * @return $this + */ + public function setJob($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataScanJob::class); + $this->job = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/RunTaskRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/RunTaskRequest.php new file mode 100644 index 000000000000..6188f19cfdf4 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/RunTaskRequest.php @@ -0,0 +1,200 @@ +google.cloud.dataplex.v1.RunTaskRequest + */ +class RunTaskRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the task: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. User-defined labels for the task. If the map is left empty, the + * task will run with existing labels from task definition. If the map + * contains an entry with a new key, the same will be added to existing set of + * labels. If the map contains an entry with an existing label key in task + * definition, the task will run with new label value for that entry. Clearing + * an existing label will require label value to be explicitly set to a hyphen + * "-". The label value cannot be empty. + * + * Generated from protobuf field map labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $labels; + /** + * Optional. Execution spec arguments. If the map is left empty, the task will + * run with existing execution spec args from task definition. If the map + * contains an entry with a new key, the same will be added to existing set of + * args. If the map contains an entry with an existing arg key in task + * definition, the task will run with new arg value for that entry. Clearing + * an existing arg will require arg value to be explicitly set to a hyphen + * "-". The arg value cannot be empty. + * + * Generated from protobuf field map args = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $args; + + /** + * @param string $name Required. The resource name of the task: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}`. Please see + * {@see DataplexServiceClient::taskName()} for help formatting this field. + * + * @return \Google\Cloud\Dataplex\V1\RunTaskRequest + * + * @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 resource name of the task: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}`. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Optional. User-defined labels for the task. If the map is left empty, the + * task will run with existing labels from task definition. If the map + * contains an entry with a new key, the same will be added to existing set of + * labels. If the map contains an entry with an existing label key in task + * definition, the task will run with new label value for that entry. Clearing + * an existing label will require label value to be explicitly set to a hyphen + * "-". The label value cannot be empty. + * @type array|\Google\Protobuf\Internal\MapField $args + * Optional. Execution spec arguments. If the map is left empty, the task will + * run with existing execution spec args from task definition. If the map + * contains an entry with a new key, the same will be added to existing set of + * args. If the map contains an entry with an existing arg key in task + * definition, the task will run with new arg value for that entry. Clearing + * an existing arg will require arg value to be explicitly set to a hyphen + * "-". The arg value cannot be empty. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the task: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}`. + * + * 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 resource name of the task: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}`. + * + * 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. User-defined labels for the task. If the map is left empty, the + * task will run with existing labels from task definition. If the map + * contains an entry with a new key, the same will be added to existing set of + * labels. If the map contains an entry with an existing label key in task + * definition, the task will run with new label value for that entry. Clearing + * an existing label will require label value to be explicitly set to a hyphen + * "-". The label value cannot be empty. + * + * Generated from protobuf field map labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Optional. User-defined labels for the task. If the map is left empty, the + * task will run with existing labels from task definition. If the map + * contains an entry with a new key, the same will be added to existing set of + * labels. If the map contains an entry with an existing label key in task + * definition, the task will run with new label value for that entry. Clearing + * an existing label will require label value to be explicitly set to a hyphen + * "-". The label value cannot be empty. + * + * Generated from protobuf field map labels = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Optional. Execution spec arguments. If the map is left empty, the task will + * run with existing execution spec args from task definition. If the map + * contains an entry with a new key, the same will be added to existing set of + * args. If the map contains an entry with an existing arg key in task + * definition, the task will run with new arg value for that entry. Clearing + * an existing arg will require arg value to be explicitly set to a hyphen + * "-". The arg value cannot be empty. + * + * Generated from protobuf field map args = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getArgs() + { + return $this->args; + } + + /** + * Optional. Execution spec arguments. If the map is left empty, the task will + * run with existing execution spec args from task definition. If the map + * contains an entry with a new key, the same will be added to existing set of + * args. If the map contains an entry with an existing arg key in task + * definition, the task will run with new arg value for that entry. Clearing + * an existing arg will require arg value to be explicitly set to a hyphen + * "-". The arg value cannot be empty. + * + * Generated from protobuf field map args = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setArgs($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->args = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/RunTaskResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/RunTaskResponse.php new file mode 100644 index 000000000000..d692a310b0b3 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/RunTaskResponse.php @@ -0,0 +1,75 @@ +google.cloud.dataplex.v1.RunTaskResponse + */ +class RunTaskResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Jobs created by RunTask API. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Job job = 1; + */ + protected $job = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\Job $job + * Jobs created by RunTask API. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Jobs created by RunTask API. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Job job = 1; + * @return \Google\Cloud\Dataplex\V1\Job|null + */ + public function getJob() + { + return $this->job; + } + + public function hasJob() + { + return isset($this->job); + } + + public function clearJob() + { + unset($this->job); + } + + /** + * Jobs created by RunTask API. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Job job = 1; + * @param \Google\Cloud\Dataplex\V1\Job $var + * @return $this + */ + public function setJob($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Job::class); + $this->job = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ScannedData.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ScannedData.php new file mode 100644 index 000000000000..8b1f291a382f --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ScannedData.php @@ -0,0 +1,75 @@ +google.cloud.dataplex.v1.ScannedData + */ +class ScannedData extends \Google\Protobuf\Internal\Message +{ + protected $data_range; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\ScannedData\IncrementalField $incremental_field + * The range denoted by values of an incremental field + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Processing::initOnce(); + parent::__construct($data); + } + + /** + * The range denoted by values of an incremental field + * + * Generated from protobuf field .google.cloud.dataplex.v1.ScannedData.IncrementalField incremental_field = 1; + * @return \Google\Cloud\Dataplex\V1\ScannedData\IncrementalField|null + */ + public function getIncrementalField() + { + return $this->readOneof(1); + } + + public function hasIncrementalField() + { + return $this->hasOneof(1); + } + + /** + * The range denoted by values of an incremental field + * + * Generated from protobuf field .google.cloud.dataplex.v1.ScannedData.IncrementalField incremental_field = 1; + * @param \Google\Cloud\Dataplex\V1\ScannedData\IncrementalField $var + * @return $this + */ + public function setIncrementalField($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\ScannedData\IncrementalField::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * @return string + */ + public function getDataRange() + { + return $this->whichOneof("data_range"); + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ScannedData/IncrementalField.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ScannedData/IncrementalField.php new file mode 100644 index 000000000000..17fc6b65bdd6 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ScannedData/IncrementalField.php @@ -0,0 +1,139 @@ +google.cloud.dataplex.v1.ScannedData.IncrementalField + */ +class IncrementalField extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The field that contains values which monotonically increases + * over time (e.g. a timestamp column). + * + * Generated from protobuf field string field = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $field = ''; + /** + * Output only. Value that marks the start of the range. + * + * Generated from protobuf field string start = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $start = ''; + /** + * Output only. Value that marks the end of the range. + * + * Generated from protobuf field string end = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $end = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $field + * Output only. The field that contains values which monotonically increases + * over time (e.g. a timestamp column). + * @type string $start + * Output only. Value that marks the start of the range. + * @type string $end + * Output only. Value that marks the end of the range. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Processing::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The field that contains values which monotonically increases + * over time (e.g. a timestamp column). + * + * Generated from protobuf field string field = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getField() + { + return $this->field; + } + + /** + * Output only. The field that contains values which monotonically increases + * over time (e.g. a timestamp column). + * + * Generated from protobuf field string field = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setField($var) + { + GPBUtil::checkString($var, True); + $this->field = $var; + + return $this; + } + + /** + * Output only. Value that marks the start of the range. + * + * Generated from protobuf field string start = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getStart() + { + return $this->start; + } + + /** + * Output only. Value that marks the start of the range. + * + * Generated from protobuf field string start = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setStart($var) + { + GPBUtil::checkString($var, True); + $this->start = $var; + + return $this; + } + + /** + * Output only. Value that marks the end of the range. + * + * Generated from protobuf field string end = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getEnd() + { + return $this->end; + } + + /** + * Output only. Value that marks the end of the range. + * + * Generated from protobuf field string end = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setEnd($var) + { + GPBUtil::checkString($var, True); + $this->end = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Schema.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Schema.php new file mode 100644 index 000000000000..15f8ef1f8397 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Schema.php @@ -0,0 +1,229 @@ +google.cloud.dataplex.v1.Schema + */ +class Schema extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Set to `true` if user-managed or `false` if managed by Dataplex + * Universal Catalog. The default is `false` (managed by Dataplex Universal + * Catalog). + * - Set to `false`to enable Dataplex Universal Catalog discovery to update + * the schema. + * including new data discovery, schema inference, and schema evolution. + * Users retain the ability to input and edit the schema. Dataplex Universal + * Catalog treats schema input by the user as though produced by a previous + * Dataplex Universal Catalog discovery operation, and it will evolve the + * schema and take action based on that treatment. + * - Set to `true` to fully manage the entity + * schema. This setting guarantees that Dataplex Universal Catalog will not + * change schema fields. + * + * Generated from protobuf field bool user_managed = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $user_managed = false; + /** + * Optional. The sequence of fields describing data in table entities. + * **Note:** BigQuery SchemaFields are immutable. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.Schema.SchemaField fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $fields; + /** + * Optional. The sequence of fields describing the partition structure in + * entities. If this field is empty, there are no partitions within the data. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.Schema.PartitionField partition_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $partition_fields; + /** + * Optional. The structure of paths containing partition data within the + * entity. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Schema.PartitionStyle partition_style = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $partition_style = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $user_managed + * Required. Set to `true` if user-managed or `false` if managed by Dataplex + * Universal Catalog. The default is `false` (managed by Dataplex Universal + * Catalog). + * - Set to `false`to enable Dataplex Universal Catalog discovery to update + * the schema. + * including new data discovery, schema inference, and schema evolution. + * Users retain the ability to input and edit the schema. Dataplex Universal + * Catalog treats schema input by the user as though produced by a previous + * Dataplex Universal Catalog discovery operation, and it will evolve the + * schema and take action based on that treatment. + * - Set to `true` to fully manage the entity + * schema. This setting guarantees that Dataplex Universal Catalog will not + * change schema fields. + * @type \Google\Cloud\Dataplex\V1\Schema\SchemaField[] $fields + * Optional. The sequence of fields describing data in table entities. + * **Note:** BigQuery SchemaFields are immutable. + * @type \Google\Cloud\Dataplex\V1\Schema\PartitionField[] $partition_fields + * Optional. The sequence of fields describing the partition structure in + * entities. If this field is empty, there are no partitions within the data. + * @type int $partition_style + * Optional. The structure of paths containing partition data within the + * entity. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Metadata::initOnce(); + parent::__construct($data); + } + + /** + * Required. Set to `true` if user-managed or `false` if managed by Dataplex + * Universal Catalog. The default is `false` (managed by Dataplex Universal + * Catalog). + * - Set to `false`to enable Dataplex Universal Catalog discovery to update + * the schema. + * including new data discovery, schema inference, and schema evolution. + * Users retain the ability to input and edit the schema. Dataplex Universal + * Catalog treats schema input by the user as though produced by a previous + * Dataplex Universal Catalog discovery operation, and it will evolve the + * schema and take action based on that treatment. + * - Set to `true` to fully manage the entity + * schema. This setting guarantees that Dataplex Universal Catalog will not + * change schema fields. + * + * Generated from protobuf field bool user_managed = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return bool + */ + public function getUserManaged() + { + return $this->user_managed; + } + + /** + * Required. Set to `true` if user-managed or `false` if managed by Dataplex + * Universal Catalog. The default is `false` (managed by Dataplex Universal + * Catalog). + * - Set to `false`to enable Dataplex Universal Catalog discovery to update + * the schema. + * including new data discovery, schema inference, and schema evolution. + * Users retain the ability to input and edit the schema. Dataplex Universal + * Catalog treats schema input by the user as though produced by a previous + * Dataplex Universal Catalog discovery operation, and it will evolve the + * schema and take action based on that treatment. + * - Set to `true` to fully manage the entity + * schema. This setting guarantees that Dataplex Universal Catalog will not + * change schema fields. + * + * Generated from protobuf field bool user_managed = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param bool $var + * @return $this + */ + public function setUserManaged($var) + { + GPBUtil::checkBool($var); + $this->user_managed = $var; + + return $this; + } + + /** + * Optional. The sequence of fields describing data in table entities. + * **Note:** BigQuery SchemaFields are immutable. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.Schema.SchemaField fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\Dataplex\V1\Schema\SchemaField> + */ + public function getFields() + { + return $this->fields; + } + + /** + * Optional. The sequence of fields describing data in table entities. + * **Note:** BigQuery SchemaFields are immutable. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.Schema.SchemaField fields = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataplex\V1\Schema\SchemaField[] $var + * @return $this + */ + public function setFields($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\Schema\SchemaField::class); + $this->fields = $arr; + + return $this; + } + + /** + * Optional. The sequence of fields describing the partition structure in + * entities. If this field is empty, there are no partitions within the data. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.Schema.PartitionField partition_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\Dataplex\V1\Schema\PartitionField> + */ + public function getPartitionFields() + { + return $this->partition_fields; + } + + /** + * Optional. The sequence of fields describing the partition structure in + * entities. If this field is empty, there are no partitions within the data. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.Schema.PartitionField partition_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataplex\V1\Schema\PartitionField[] $var + * @return $this + */ + public function setPartitionFields($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\Schema\PartitionField::class); + $this->partition_fields = $arr; + + return $this; + } + + /** + * Optional. The structure of paths containing partition data within the + * entity. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Schema.PartitionStyle partition_style = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPartitionStyle() + { + return $this->partition_style; + } + + /** + * Optional. The structure of paths containing partition data within the + * entity. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Schema.PartitionStyle partition_style = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPartitionStyle($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\Schema\PartitionStyle::class); + $this->partition_style = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Schema/Mode.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Schema/Mode.php new file mode 100644 index 000000000000..49fa0ba5bfb2 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Schema/Mode.php @@ -0,0 +1,68 @@ +google.cloud.dataplex.v1.Schema.Mode + */ +class Mode +{ + /** + * Mode unspecified. + * + * Generated from protobuf enum MODE_UNSPECIFIED = 0; + */ + const MODE_UNSPECIFIED = 0; + /** + * The field has required semantics. + * + * Generated from protobuf enum REQUIRED = 1; + */ + const REQUIRED = 1; + /** + * The field has optional semantics, and may be null. + * + * Generated from protobuf enum NULLABLE = 2; + */ + const NULLABLE = 2; + /** + * The field has repeated (0 or more) semantics, and is a list of values. + * + * Generated from protobuf enum REPEATED = 3; + */ + const REPEATED = 3; + + private static $valueToName = [ + self::MODE_UNSPECIFIED => 'MODE_UNSPECIFIED', + self::REQUIRED => 'REQUIRED', + self::NULLABLE => 'NULLABLE', + self::REPEATED => 'REPEATED', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Schema/PartitionField.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Schema/PartitionField.php new file mode 100644 index 000000000000..6b19171b56a0 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Schema/PartitionField.php @@ -0,0 +1,112 @@ +google.cloud.dataplex.v1.Schema.PartitionField + */ +class PartitionField extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Partition field name must consist of letters, numbers, and + * underscores only, with a maximum of length of 256 characters, and must + * begin with a letter or underscore.. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $name = ''; + /** + * Required. Immutable. The type of field. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Schema.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + */ + protected $type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. Partition field name must consist of letters, numbers, and + * underscores only, with a maximum of length of 256 characters, and must + * begin with a letter or underscore.. + * @type int $type + * Required. Immutable. The type of field. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Metadata::initOnce(); + parent::__construct($data); + } + + /** + * Required. Partition field name must consist of letters, numbers, and + * underscores only, with a maximum of length of 256 characters, and must + * begin with a letter or underscore.. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. Partition field name must consist of letters, numbers, and + * underscores only, with a maximum of length of 256 characters, and must + * begin with a letter or underscore.. + * + * 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. Immutable. The type of field. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Schema.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Required. Immutable. The type of field. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Schema.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\Schema\Type::class); + $this->type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Schema/PartitionStyle.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Schema/PartitionStyle.php new file mode 100644 index 000000000000..c79cc68f3208 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Schema/PartitionStyle.php @@ -0,0 +1,56 @@ +google.cloud.dataplex.v1.Schema.PartitionStyle + */ +class PartitionStyle +{ + /** + * PartitionStyle unspecified + * + * Generated from protobuf enum PARTITION_STYLE_UNSPECIFIED = 0; + */ + const PARTITION_STYLE_UNSPECIFIED = 0; + /** + * Partitions are hive-compatible. + * Examples: `gs://bucket/path/to/table/dt=2019-10-31/lang=en`, + * `gs://bucket/path/to/table/dt=2019-10-31/lang=en/late`. + * + * Generated from protobuf enum HIVE_COMPATIBLE = 1; + */ + const HIVE_COMPATIBLE = 1; + + private static $valueToName = [ + self::PARTITION_STYLE_UNSPECIFIED => 'PARTITION_STYLE_UNSPECIFIED', + self::HIVE_COMPATIBLE => 'HIVE_COMPATIBLE', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Schema/SchemaField.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Schema/SchemaField.php new file mode 100644 index 000000000000..7700b8ee3727 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Schema/SchemaField.php @@ -0,0 +1,215 @@ +google.cloud.dataplex.v1.Schema.SchemaField + */ +class SchemaField extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the field. Must contain only letters, numbers and + * underscores, with a maximum length of 767 characters, + * and must begin with a letter or underscore. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $name = ''; + /** + * Optional. User friendly field description. Must be less than or equal to + * 1024 characters. + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Required. The type of field. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Schema.Type type = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $type = 0; + /** + * Required. Additional field semantics. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Schema.Mode mode = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $mode = 0; + /** + * Optional. Any nested field for complex types. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.Schema.SchemaField fields = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $fields; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the field. Must contain only letters, numbers and + * underscores, with a maximum length of 767 characters, + * and must begin with a letter or underscore. + * @type string $description + * Optional. User friendly field description. Must be less than or equal to + * 1024 characters. + * @type int $type + * Required. The type of field. + * @type int $mode + * Required. Additional field semantics. + * @type \Google\Cloud\Dataplex\V1\Schema\SchemaField[] $fields + * Optional. Any nested field for complex types. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Metadata::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the field. Must contain only letters, numbers and + * underscores, with a maximum length of 767 characters, + * and must begin with a letter or underscore. + * + * 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 field. Must contain only letters, numbers and + * underscores, with a maximum length of 767 characters, + * and must begin with a letter or underscore. + * + * 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. User friendly field description. Must be less than or equal to + * 1024 characters. + * + * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. User friendly field description. Must be less than or equal to + * 1024 characters. + * + * Generated from protobuf field string description = 2 [(.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 type of field. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Schema.Type type = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Required. The type of field. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Schema.Type type = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\Schema\Type::class); + $this->type = $var; + + return $this; + } + + /** + * Required. Additional field semantics. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Schema.Mode mode = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getMode() + { + return $this->mode; + } + + /** + * Required. Additional field semantics. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Schema.Mode mode = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setMode($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\Schema\Mode::class); + $this->mode = $var; + + return $this; + } + + /** + * Optional. Any nested field for complex types. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.Schema.SchemaField fields = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Cloud\Dataplex\V1\Schema\SchemaField> + */ + public function getFields() + { + return $this->fields; + } + + /** + * Optional. Any nested field for complex types. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.Schema.SchemaField fields = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataplex\V1\Schema\SchemaField[] $var + * @return $this + */ + public function setFields($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\Schema\SchemaField::class); + $this->fields = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Schema/Type.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Schema/Type.php new file mode 100644 index 000000000000..695253a17ef4 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Schema/Type.php @@ -0,0 +1,153 @@ +google.cloud.dataplex.v1.Schema.Type + */ +class Type +{ + /** + * SchemaType unspecified. + * + * Generated from protobuf enum TYPE_UNSPECIFIED = 0; + */ + const TYPE_UNSPECIFIED = 0; + /** + * Boolean field. + * + * Generated from protobuf enum BOOLEAN = 1; + */ + const BOOLEAN = 1; + /** + * Single byte numeric field. + * + * Generated from protobuf enum BYTE = 2; + */ + const BYTE = 2; + /** + * 16-bit numeric field. + * + * Generated from protobuf enum INT16 = 3; + */ + const INT16 = 3; + /** + * 32-bit numeric field. + * + * Generated from protobuf enum INT32 = 4; + */ + const INT32 = 4; + /** + * 64-bit numeric field. + * + * Generated from protobuf enum INT64 = 5; + */ + const INT64 = 5; + /** + * Floating point numeric field. + * + * Generated from protobuf enum FLOAT = 6; + */ + const FLOAT = 6; + /** + * Double precision numeric field. + * + * Generated from protobuf enum DOUBLE = 7; + */ + const DOUBLE = 7; + /** + * Real value numeric field. + * + * Generated from protobuf enum DECIMAL = 8; + */ + const DECIMAL = 8; + /** + * Sequence of characters field. + * + * Generated from protobuf enum STRING = 9; + */ + const STRING = 9; + /** + * Sequence of bytes field. + * + * Generated from protobuf enum BINARY = 10; + */ + const BINARY = 10; + /** + * Date and time field. + * + * Generated from protobuf enum TIMESTAMP = 11; + */ + const TIMESTAMP = 11; + /** + * Date field. + * + * Generated from protobuf enum DATE = 12; + */ + const DATE = 12; + /** + * Time field. + * + * Generated from protobuf enum TIME = 13; + */ + const TIME = 13; + /** + * Structured field. Nested fields that define the structure of the map. + * If all nested fields are nullable, this field represents a union. + * + * Generated from protobuf enum RECORD = 14; + */ + const RECORD = 14; + /** + * Null field that does not have values. + * + * Generated from protobuf enum NULL = 100; + */ + const NULL = 100; + + private static $valueToName = [ + self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', + self::BOOLEAN => 'BOOLEAN', + self::BYTE => 'BYTE', + self::INT16 => 'INT16', + self::INT32 => 'INT32', + self::INT64 => 'INT64', + self::FLOAT => 'FLOAT', + self::DOUBLE => 'DOUBLE', + self::DECIMAL => 'DECIMAL', + self::STRING => 'STRING', + self::BINARY => 'BINARY', + self::TIMESTAMP => 'TIMESTAMP', + self::DATE => 'DATE', + self::TIME => 'TIME', + self::RECORD => 'RECORD', + self::NULL => 'NULL', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SearchEntriesRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SearchEntriesRequest.php new file mode 100644 index 000000000000..20587ecc1063 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SearchEntriesRequest.php @@ -0,0 +1,344 @@ +google.cloud.dataplex.v1.SearchEntriesRequest + */ +class SearchEntriesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The project to which the request should be attributed in the + * following form: `projects/{project}/locations/global`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Required. The query against which entries in scope should be matched. + * The query syntax is defined in [Search syntax for Dataplex Universal + * Catalog](https://cloud.google.com/dataplex/docs/search-syntax). + * + * Generated from protobuf field string query = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $query = ''; + /** + * Optional. Number of results in the search page. If <=0, then defaults + * to 10. Max limit for page_size is 1000. Throws an invalid argument for + * page_size > 1000. + * + * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. Page token received from a previous `SearchEntries` call. Provide + * this to retrieve the subsequent page. + * + * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Specifies the ordering of results. + * Supported values are: + * * `relevance` + * * `last_modified_timestamp` + * * `last_modified_timestamp asc` + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. The scope under which the search should be operating. It must + * either be `organizations/` or `projects/`. If it is + * unspecified, it defaults to the organization where the project provided in + * `name` is located. + * + * Generated from protobuf field string scope = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $scope = ''; + /** + * Optional. Specifies whether the search should understand the meaning and + * intent behind the query, rather than just matching keywords. + * + * Generated from protobuf field bool semantic_search = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $semantic_search = false; + + /** + * @param string $name Required. The project to which the request should be attributed in the + * following form: `projects/{project}/locations/global`. Please see + * {@see CatalogServiceClient::locationName()} for help formatting this field. + * @param string $query Required. The query against which entries in scope should be matched. + * The query syntax is defined in [Search syntax for Dataplex Universal + * Catalog](https://cloud.google.com/dataplex/docs/search-syntax). + * + * @return \Google\Cloud\Dataplex\V1\SearchEntriesRequest + * + * @experimental + */ + public static function build(string $name, string $query): self + { + return (new self()) + ->setName($name) + ->setQuery($query); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The project to which the request should be attributed in the + * following form: `projects/{project}/locations/global`. + * @type string $query + * Required. The query against which entries in scope should be matched. + * The query syntax is defined in [Search syntax for Dataplex Universal + * Catalog](https://cloud.google.com/dataplex/docs/search-syntax). + * @type int $page_size + * Optional. Number of results in the search page. If <=0, then defaults + * to 10. Max limit for page_size is 1000. Throws an invalid argument for + * page_size > 1000. + * @type string $page_token + * Optional. Page token received from a previous `SearchEntries` call. Provide + * this to retrieve the subsequent page. + * @type string $order_by + * Optional. Specifies the ordering of results. + * Supported values are: + * * `relevance` + * * `last_modified_timestamp` + * * `last_modified_timestamp asc` + * @type string $scope + * Optional. The scope under which the search should be operating. It must + * either be `organizations/` or `projects/`. If it is + * unspecified, it defaults to the organization where the project provided in + * `name` is located. + * @type bool $semantic_search + * Optional. Specifies whether the search should understand the meaning and + * intent behind the query, rather than just matching keywords. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. The project to which the request should be attributed in the + * following form: `projects/{project}/locations/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 project to which the request should be attributed in the + * following form: `projects/{project}/locations/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; + } + + /** + * Required. The query against which entries in scope should be matched. + * The query syntax is defined in [Search syntax for Dataplex Universal + * Catalog](https://cloud.google.com/dataplex/docs/search-syntax). + * + * Generated from protobuf field string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getQuery() + { + return $this->query; + } + + /** + * Required. The query against which entries in scope should be matched. + * The query syntax is defined in [Search syntax for Dataplex Universal + * Catalog](https://cloud.google.com/dataplex/docs/search-syntax). + * + * Generated from protobuf field string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setQuery($var) + { + GPBUtil::checkString($var, True); + $this->query = $var; + + return $this; + } + + /** + * Optional. Number of results in the search page. If <=0, then defaults + * to 10. Max limit for page_size is 1000. Throws an invalid argument for + * page_size > 1000. + * + * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. Number of results in the search page. If <=0, then defaults + * to 10. Max limit for page_size is 1000. Throws an invalid argument for + * page_size > 1000. + * + * 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. Page token received from a previous `SearchEntries` call. Provide + * this to retrieve the subsequent page. + * + * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. Page token received from a previous `SearchEntries` call. Provide + * this to retrieve the subsequent page. + * + * 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. Specifies the ordering of results. + * Supported values are: + * * `relevance` + * * `last_modified_timestamp` + * * `last_modified_timestamp asc` + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Specifies the ordering of results. + * Supported values are: + * * `relevance` + * * `last_modified_timestamp` + * * `last_modified_timestamp asc` + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. The scope under which the search should be operating. It must + * either be `organizations/` or `projects/`. If it is + * unspecified, it defaults to the organization where the project provided in + * `name` is located. + * + * Generated from protobuf field string scope = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getScope() + { + return $this->scope; + } + + /** + * Optional. The scope under which the search should be operating. It must + * either be `organizations/` or `projects/`. If it is + * unspecified, it defaults to the organization where the project provided in + * `name` is located. + * + * Generated from protobuf field string scope = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setScope($var) + { + GPBUtil::checkString($var, True); + $this->scope = $var; + + return $this; + } + + /** + * Optional. Specifies whether the search should understand the meaning and + * intent behind the query, rather than just matching keywords. + * + * Generated from protobuf field bool semantic_search = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getSemanticSearch() + { + return $this->semantic_search; + } + + /** + * Optional. Specifies whether the search should understand the meaning and + * intent behind the query, rather than just matching keywords. + * + * Generated from protobuf field bool semantic_search = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setSemanticSearch($var) + { + GPBUtil::checkBool($var); + $this->semantic_search = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SearchEntriesResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SearchEntriesResponse.php new file mode 100644 index 000000000000..685bb33416f0 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SearchEntriesResponse.php @@ -0,0 +1,179 @@ +google.cloud.dataplex.v1.SearchEntriesResponse + */ +class SearchEntriesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The results matching the search query. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.SearchEntriesResult results = 1; + */ + private $results; + /** + * The estimated total number of matching entries. This number isn't + * guaranteed to be accurate. + * + * Generated from protobuf field int32 total_size = 2; + */ + protected $total_size = 0; + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 3; + */ + protected $next_page_token = ''; + /** + * Locations that the service couldn't reach. Search results don't include + * data from these locations. + * + * Generated from protobuf field repeated string unreachable = 4; + */ + private $unreachable; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\SearchEntriesResult[] $results + * The results matching the search query. + * @type int $total_size + * The estimated total number of matching entries. This number isn't + * guaranteed to be accurate. + * @type string $next_page_token + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * @type string[] $unreachable + * Locations that the service couldn't reach. Search results don't include + * data from these locations. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * The results matching the search query. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.SearchEntriesResult results = 1; + * @return RepeatedField<\Google\Cloud\Dataplex\V1\SearchEntriesResult> + */ + public function getResults() + { + return $this->results; + } + + /** + * The results matching the search query. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.SearchEntriesResult results = 1; + * @param \Google\Cloud\Dataplex\V1\SearchEntriesResult[] $var + * @return $this + */ + public function setResults($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\SearchEntriesResult::class); + $this->results = $arr; + + return $this; + } + + /** + * The estimated total number of matching entries. This number isn't + * guaranteed to be accurate. + * + * Generated from protobuf field int32 total_size = 2; + * @return int + */ + public function getTotalSize() + { + return $this->total_size; + } + + /** + * The estimated total number of matching entries. This number isn't + * guaranteed to be accurate. + * + * Generated from protobuf field int32 total_size = 2; + * @param int $var + * @return $this + */ + public function setTotalSize($var) + { + GPBUtil::checkInt32($var); + $this->total_size = $var; + + return $this; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 3; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + * + * Generated from protobuf field string next_page_token = 3; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Locations that the service couldn't reach. Search results don't include + * data from these locations. + * + * Generated from protobuf field repeated string unreachable = 4; + * @return RepeatedField + */ + public function getUnreachable() + { + return $this->unreachable; + } + + /** + * Locations that the service couldn't reach. Search results don't include + * data from these locations. + * + * Generated from protobuf field repeated string unreachable = 4; + * @param string[] $var + * @return $this + */ + public function setUnreachable($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->unreachable = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SearchEntriesResult.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SearchEntriesResult.php new file mode 100644 index 000000000000..ba2453995145 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SearchEntriesResult.php @@ -0,0 +1,166 @@ +google.cloud.dataplex.v1.SearchEntriesResult + */ +class SearchEntriesResult extends \Google\Protobuf\Internal\Message +{ + /** + * Linked resource name. + * + * Generated from protobuf field string linked_resource = 8 [deprecated = true]; + * @deprecated + */ + protected $linked_resource = ''; + /** + * Generated from protobuf field .google.cloud.dataplex.v1.Entry dataplex_entry = 9; + */ + protected $dataplex_entry = null; + /** + * Snippets. + * + * Generated from protobuf field .google.cloud.dataplex.v1.SearchEntriesResult.Snippets snippets = 12 [deprecated = true]; + * @deprecated + */ + protected $snippets = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $linked_resource + * Linked resource name. + * @type \Google\Cloud\Dataplex\V1\Entry $dataplex_entry + * @type \Google\Cloud\Dataplex\V1\SearchEntriesResult\Snippets $snippets + * Snippets. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Linked resource name. + * + * Generated from protobuf field string linked_resource = 8 [deprecated = true]; + * @return string + * @deprecated + */ + public function getLinkedResource() + { + if ($this->linked_resource !== '') { + @trigger_error('linked_resource is deprecated.', E_USER_DEPRECATED); + } + return $this->linked_resource; + } + + /** + * Linked resource name. + * + * Generated from protobuf field string linked_resource = 8 [deprecated = true]; + * @param string $var + * @return $this + * @deprecated + */ + public function setLinkedResource($var) + { + @trigger_error('linked_resource is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkString($var, True); + $this->linked_resource = $var; + + return $this; + } + + /** + * Generated from protobuf field .google.cloud.dataplex.v1.Entry dataplex_entry = 9; + * @return \Google\Cloud\Dataplex\V1\Entry|null + */ + public function getDataplexEntry() + { + return $this->dataplex_entry; + } + + public function hasDataplexEntry() + { + return isset($this->dataplex_entry); + } + + public function clearDataplexEntry() + { + unset($this->dataplex_entry); + } + + /** + * Generated from protobuf field .google.cloud.dataplex.v1.Entry dataplex_entry = 9; + * @param \Google\Cloud\Dataplex\V1\Entry $var + * @return $this + */ + public function setDataplexEntry($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Entry::class); + $this->dataplex_entry = $var; + + return $this; + } + + /** + * Snippets. + * + * Generated from protobuf field .google.cloud.dataplex.v1.SearchEntriesResult.Snippets snippets = 12 [deprecated = true]; + * @return \Google\Cloud\Dataplex\V1\SearchEntriesResult\Snippets|null + * @deprecated + */ + public function getSnippets() + { + if (isset($this->snippets)) { + @trigger_error('snippets is deprecated.', E_USER_DEPRECATED); + } + return $this->snippets; + } + + public function hasSnippets() + { + if (isset($this->snippets)) { + @trigger_error('snippets is deprecated.', E_USER_DEPRECATED); + } + return isset($this->snippets); + } + + public function clearSnippets() + { + @trigger_error('snippets is deprecated.', E_USER_DEPRECATED); + unset($this->snippets); + } + + /** + * Snippets. + * + * Generated from protobuf field .google.cloud.dataplex.v1.SearchEntriesResult.Snippets snippets = 12 [deprecated = true]; + * @param \Google\Cloud\Dataplex\V1\SearchEntriesResult\Snippets $var + * @return $this + * @deprecated + */ + public function setSnippets($var) + { + @trigger_error('snippets is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\SearchEntriesResult\Snippets::class); + $this->snippets = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SearchEntriesResult/Snippets.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SearchEntriesResult/Snippets.php new file mode 100644 index 000000000000..9ce8e6e57efd --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SearchEntriesResult/Snippets.php @@ -0,0 +1,90 @@ +google.cloud.dataplex.v1.SearchEntriesResult.Snippets + */ +class Snippets extends \Google\Protobuf\Internal\Message +{ + /** + * Entry + * + * Generated from protobuf field .google.cloud.dataplex.v1.Entry dataplex_entry = 1 [deprecated = true]; + * @deprecated + */ + protected $dataplex_entry = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\Entry $dataplex_entry + * Entry + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Entry + * + * Generated from protobuf field .google.cloud.dataplex.v1.Entry dataplex_entry = 1 [deprecated = true]; + * @return \Google\Cloud\Dataplex\V1\Entry|null + * @deprecated + */ + public function getDataplexEntry() + { + if (isset($this->dataplex_entry)) { + @trigger_error('dataplex_entry is deprecated.', E_USER_DEPRECATED); + } + return $this->dataplex_entry; + } + + public function hasDataplexEntry() + { + if (isset($this->dataplex_entry)) { + @trigger_error('dataplex_entry is deprecated.', E_USER_DEPRECATED); + } + return isset($this->dataplex_entry); + } + + public function clearDataplexEntry() + { + @trigger_error('dataplex_entry is deprecated.', E_USER_DEPRECATED); + unset($this->dataplex_entry); + } + + /** + * Entry + * + * Generated from protobuf field .google.cloud.dataplex.v1.Entry dataplex_entry = 1 [deprecated = true]; + * @param \Google\Cloud\Dataplex\V1\Entry $var + * @return $this + * @deprecated + */ + public function setDataplexEntry($var) + { + @trigger_error('dataplex_entry is deprecated.', E_USER_DEPRECATED); + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Entry::class); + $this->dataplex_entry = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Session.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Session.php new file mode 100644 index 000000000000..33982d9128b8 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Session.php @@ -0,0 +1,183 @@ +google.cloud.dataplex.v1.Session + */ +class Session extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The relative resource name of the content, of the form: + * projects/{project_id}/locations/{location_id}/lakes/{lake_id}/environment/{environment_id}/sessions/{session_id} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Output only. Email of user running the session. + * + * Generated from protobuf field string user_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $user_id = ''; + /** + * Output only. Session start time. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. State of Session + * + * Generated from protobuf field .google.cloud.dataplex.v1.State state = 4 [(.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. The relative resource name of the content, of the form: + * projects/{project_id}/locations/{location_id}/lakes/{lake_id}/environment/{environment_id}/sessions/{session_id} + * @type string $user_id + * Output only. Email of user running the session. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. Session start time. + * @type int $state + * Output only. State of Session + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Analyze::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The relative resource name of the content, of the form: + * projects/{project_id}/locations/{location_id}/lakes/{lake_id}/environment/{environment_id}/sessions/{session_id} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. The relative resource name of the content, of the form: + * projects/{project_id}/locations/{location_id}/lakes/{lake_id}/environment/{environment_id}/sessions/{session_id} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. Email of user running the session. + * + * Generated from protobuf field string user_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getUserId() + { + return $this->user_id; + } + + /** + * Output only. Email of user running the session. + * + * Generated from protobuf field string user_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setUserId($var) + { + GPBUtil::checkString($var, True); + $this->user_id = $var; + + return $this; + } + + /** + * Output only. Session start time. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. Session start time. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. State of Session + * + * Generated from protobuf field .google.cloud.dataplex.v1.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. State of Session + * + * Generated from protobuf field .google.cloud.dataplex.v1.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\State::class); + $this->state = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SessionEvent.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SessionEvent.php new file mode 100644 index 000000000000..44ae01d973a6 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SessionEvent.php @@ -0,0 +1,332 @@ +google.cloud.dataplex.v1.SessionEvent + */ +class SessionEvent extends \Google\Protobuf\Internal\Message +{ + /** + * The log message. + * + * Generated from protobuf field string message = 1; + */ + protected $message = ''; + /** + * The information about the user that created the session. It will be the + * email address of the user. + * + * Generated from protobuf field string user_id = 2; + */ + protected $user_id = ''; + /** + * Unique identifier for the session. + * + * Generated from protobuf field string session_id = 3; + */ + protected $session_id = ''; + /** + * The type of the event. + * + * Generated from protobuf field .google.cloud.dataplex.v1.SessionEvent.EventType type = 4; + */ + protected $type = 0; + /** + * The status of the event. + * + * Generated from protobuf field bool event_succeeded = 6; + */ + protected $event_succeeded = false; + /** + * If the session is associated with an environment with fast startup enabled, + * and was created before being assigned to a user. + * + * Generated from protobuf field bool fast_startup_enabled = 7; + */ + protected $fast_startup_enabled = false; + /** + * The idle duration of a warm pooled session before it is assigned to user. + * + * Generated from protobuf field .google.protobuf.Duration unassigned_duration = 8; + */ + protected $unassigned_duration = null; + protected $detail; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $message + * The log message. + * @type string $user_id + * The information about the user that created the session. It will be the + * email address of the user. + * @type string $session_id + * Unique identifier for the session. + * @type int $type + * The type of the event. + * @type \Google\Cloud\Dataplex\V1\SessionEvent\QueryDetail $query + * The execution details of the query. + * @type bool $event_succeeded + * The status of the event. + * @type bool $fast_startup_enabled + * If the session is associated with an environment with fast startup enabled, + * and was created before being assigned to a user. + * @type \Google\Protobuf\Duration $unassigned_duration + * The idle duration of a warm pooled session before it is assigned to user. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Logs::initOnce(); + parent::__construct($data); + } + + /** + * The log message. + * + * Generated from protobuf field string message = 1; + * @return string + */ + public function getMessage() + { + return $this->message; + } + + /** + * The log message. + * + * Generated from protobuf field string message = 1; + * @param string $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkString($var, True); + $this->message = $var; + + return $this; + } + + /** + * The information about the user that created the session. It will be the + * email address of the user. + * + * Generated from protobuf field string user_id = 2; + * @return string + */ + public function getUserId() + { + return $this->user_id; + } + + /** + * The information about the user that created the session. It will be the + * email address of the user. + * + * Generated from protobuf field string user_id = 2; + * @param string $var + * @return $this + */ + public function setUserId($var) + { + GPBUtil::checkString($var, True); + $this->user_id = $var; + + return $this; + } + + /** + * Unique identifier for the session. + * + * Generated from protobuf field string session_id = 3; + * @return string + */ + public function getSessionId() + { + return $this->session_id; + } + + /** + * Unique identifier for the session. + * + * Generated from protobuf field string session_id = 3; + * @param string $var + * @return $this + */ + public function setSessionId($var) + { + GPBUtil::checkString($var, True); + $this->session_id = $var; + + return $this; + } + + /** + * The type of the event. + * + * Generated from protobuf field .google.cloud.dataplex.v1.SessionEvent.EventType type = 4; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * The type of the event. + * + * Generated from protobuf field .google.cloud.dataplex.v1.SessionEvent.EventType type = 4; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\SessionEvent\EventType::class); + $this->type = $var; + + return $this; + } + + /** + * The execution details of the query. + * + * Generated from protobuf field .google.cloud.dataplex.v1.SessionEvent.QueryDetail query = 5; + * @return \Google\Cloud\Dataplex\V1\SessionEvent\QueryDetail|null + */ + public function getQuery() + { + return $this->readOneof(5); + } + + public function hasQuery() + { + return $this->hasOneof(5); + } + + /** + * The execution details of the query. + * + * Generated from protobuf field .google.cloud.dataplex.v1.SessionEvent.QueryDetail query = 5; + * @param \Google\Cloud\Dataplex\V1\SessionEvent\QueryDetail $var + * @return $this + */ + public function setQuery($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\SessionEvent\QueryDetail::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * The status of the event. + * + * Generated from protobuf field bool event_succeeded = 6; + * @return bool + */ + public function getEventSucceeded() + { + return $this->event_succeeded; + } + + /** + * The status of the event. + * + * Generated from protobuf field bool event_succeeded = 6; + * @param bool $var + * @return $this + */ + public function setEventSucceeded($var) + { + GPBUtil::checkBool($var); + $this->event_succeeded = $var; + + return $this; + } + + /** + * If the session is associated with an environment with fast startup enabled, + * and was created before being assigned to a user. + * + * Generated from protobuf field bool fast_startup_enabled = 7; + * @return bool + */ + public function getFastStartupEnabled() + { + return $this->fast_startup_enabled; + } + + /** + * If the session is associated with an environment with fast startup enabled, + * and was created before being assigned to a user. + * + * Generated from protobuf field bool fast_startup_enabled = 7; + * @param bool $var + * @return $this + */ + public function setFastStartupEnabled($var) + { + GPBUtil::checkBool($var); + $this->fast_startup_enabled = $var; + + return $this; + } + + /** + * The idle duration of a warm pooled session before it is assigned to user. + * + * Generated from protobuf field .google.protobuf.Duration unassigned_duration = 8; + * @return \Google\Protobuf\Duration|null + */ + public function getUnassignedDuration() + { + return $this->unassigned_duration; + } + + public function hasUnassignedDuration() + { + return isset($this->unassigned_duration); + } + + public function clearUnassignedDuration() + { + unset($this->unassigned_duration); + } + + /** + * The idle duration of a warm pooled session before it is assigned to user. + * + * Generated from protobuf field .google.protobuf.Duration unassigned_duration = 8; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setUnassignedDuration($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->unassigned_duration = $var; + + return $this; + } + + /** + * @return string + */ + public function getDetail() + { + return $this->whichOneof("detail"); + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SessionEvent/EventType.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SessionEvent/EventType.php new file mode 100644 index 000000000000..f95d0d8a4abf --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SessionEvent/EventType.php @@ -0,0 +1,76 @@ +google.cloud.dataplex.v1.SessionEvent.EventType + */ +class EventType +{ + /** + * An unspecified event type. + * + * Generated from protobuf enum EVENT_TYPE_UNSPECIFIED = 0; + */ + const EVENT_TYPE_UNSPECIFIED = 0; + /** + * Event when the session is assigned to a user. + * + * Generated from protobuf enum START = 1; + */ + const START = 1; + /** + * Event for stop of a session. + * + * Generated from protobuf enum STOP = 2; + */ + const STOP = 2; + /** + * Query events in the session. + * + * Generated from protobuf enum QUERY = 3; + */ + const QUERY = 3; + /** + * Event for creation of a cluster. It is not yet assigned to a user. + * This comes before START in the sequence + * + * Generated from protobuf enum CREATE = 4; + */ + const CREATE = 4; + + private static $valueToName = [ + self::EVENT_TYPE_UNSPECIFIED => 'EVENT_TYPE_UNSPECIFIED', + self::START => 'START', + self::STOP => 'STOP', + self::QUERY => 'QUERY', + self::CREATE => 'CREATE', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SessionEvent/QueryDetail.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SessionEvent/QueryDetail.php new file mode 100644 index 000000000000..8e2b8f1359ee --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SessionEvent/QueryDetail.php @@ -0,0 +1,247 @@ +google.cloud.dataplex.v1.SessionEvent.QueryDetail + */ +class QueryDetail extends \Google\Protobuf\Internal\Message +{ + /** + * The unique Query id identifying the query. + * + * Generated from protobuf field string query_id = 1; + */ + protected $query_id = ''; + /** + * The query text executed. + * + * Generated from protobuf field string query_text = 2; + */ + protected $query_text = ''; + /** + * Query Execution engine. + * + * Generated from protobuf field .google.cloud.dataplex.v1.SessionEvent.QueryDetail.Engine engine = 3; + */ + protected $engine = 0; + /** + * Time taken for execution of the query. + * + * Generated from protobuf field .google.protobuf.Duration duration = 4; + */ + protected $duration = null; + /** + * The size of results the query produced. + * + * Generated from protobuf field int64 result_size_bytes = 5; + */ + protected $result_size_bytes = 0; + /** + * The data processed by the query. + * + * Generated from protobuf field int64 data_processed_bytes = 6; + */ + protected $data_processed_bytes = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $query_id + * The unique Query id identifying the query. + * @type string $query_text + * The query text executed. + * @type int $engine + * Query Execution engine. + * @type \Google\Protobuf\Duration $duration + * Time taken for execution of the query. + * @type int|string $result_size_bytes + * The size of results the query produced. + * @type int|string $data_processed_bytes + * The data processed by the query. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Logs::initOnce(); + parent::__construct($data); + } + + /** + * The unique Query id identifying the query. + * + * Generated from protobuf field string query_id = 1; + * @return string + */ + public function getQueryId() + { + return $this->query_id; + } + + /** + * The unique Query id identifying the query. + * + * Generated from protobuf field string query_id = 1; + * @param string $var + * @return $this + */ + public function setQueryId($var) + { + GPBUtil::checkString($var, True); + $this->query_id = $var; + + return $this; + } + + /** + * The query text executed. + * + * Generated from protobuf field string query_text = 2; + * @return string + */ + public function getQueryText() + { + return $this->query_text; + } + + /** + * The query text executed. + * + * Generated from protobuf field string query_text = 2; + * @param string $var + * @return $this + */ + public function setQueryText($var) + { + GPBUtil::checkString($var, True); + $this->query_text = $var; + + return $this; + } + + /** + * Query Execution engine. + * + * Generated from protobuf field .google.cloud.dataplex.v1.SessionEvent.QueryDetail.Engine engine = 3; + * @return int + */ + public function getEngine() + { + return $this->engine; + } + + /** + * Query Execution engine. + * + * Generated from protobuf field .google.cloud.dataplex.v1.SessionEvent.QueryDetail.Engine engine = 3; + * @param int $var + * @return $this + */ + public function setEngine($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\SessionEvent\QueryDetail\Engine::class); + $this->engine = $var; + + return $this; + } + + /** + * Time taken for execution of the query. + * + * Generated from protobuf field .google.protobuf.Duration duration = 4; + * @return \Google\Protobuf\Duration|null + */ + public function getDuration() + { + return $this->duration; + } + + public function hasDuration() + { + return isset($this->duration); + } + + public function clearDuration() + { + unset($this->duration); + } + + /** + * Time taken for execution of the query. + * + * Generated from protobuf field .google.protobuf.Duration duration = 4; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setDuration($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->duration = $var; + + return $this; + } + + /** + * The size of results the query produced. + * + * Generated from protobuf field int64 result_size_bytes = 5; + * @return int|string + */ + public function getResultSizeBytes() + { + return $this->result_size_bytes; + } + + /** + * The size of results the query produced. + * + * Generated from protobuf field int64 result_size_bytes = 5; + * @param int|string $var + * @return $this + */ + public function setResultSizeBytes($var) + { + GPBUtil::checkInt64($var); + $this->result_size_bytes = $var; + + return $this; + } + + /** + * The data processed by the query. + * + * Generated from protobuf field int64 data_processed_bytes = 6; + * @return int|string + */ + public function getDataProcessedBytes() + { + return $this->data_processed_bytes; + } + + /** + * The data processed by the query. + * + * Generated from protobuf field int64 data_processed_bytes = 6; + * @param int|string $var + * @return $this + */ + public function setDataProcessedBytes($var) + { + GPBUtil::checkInt64($var); + $this->data_processed_bytes = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SessionEvent/QueryDetail/Engine.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SessionEvent/QueryDetail/Engine.php new file mode 100644 index 000000000000..2182e0760efb --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SessionEvent/QueryDetail/Engine.php @@ -0,0 +1,61 @@ +google.cloud.dataplex.v1.SessionEvent.QueryDetail.Engine + */ +class Engine +{ + /** + * An unspecified Engine type. + * + * Generated from protobuf enum ENGINE_UNSPECIFIED = 0; + */ + const ENGINE_UNSPECIFIED = 0; + /** + * Spark-sql engine is specified in Query. + * + * Generated from protobuf enum SPARK_SQL = 1; + */ + const SPARK_SQL = 1; + /** + * BigQuery engine is specified in Query. + * + * Generated from protobuf enum BIGQUERY = 2; + */ + const BIGQUERY = 2; + + private static $valueToName = [ + self::ENGINE_UNSPECIFIED => 'ENGINE_UNSPECIFIED', + self::SPARK_SQL => 'SPARK_SQL', + self::BIGQUERY => 'BIGQUERY', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/State.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/State.php new file mode 100644 index 000000000000..1bd046ff27a4 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/State.php @@ -0,0 +1,75 @@ +google.cloud.dataplex.v1.State + */ +class State +{ + /** + * State is not specified. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * Resource is active, i.e., ready to use. + * + * Generated from protobuf enum ACTIVE = 1; + */ + const ACTIVE = 1; + /** + * Resource is under creation. + * + * Generated from protobuf enum CREATING = 2; + */ + const CREATING = 2; + /** + * Resource is under deletion. + * + * Generated from protobuf enum DELETING = 3; + */ + const DELETING = 3; + /** + * Resource is active but has unresolved actions. + * + * Generated from protobuf enum ACTION_REQUIRED = 4; + */ + const ACTION_REQUIRED = 4; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::ACTIVE => 'ACTIVE', + self::CREATING => 'CREATING', + self::DELETING => 'DELETING', + self::ACTION_REQUIRED => 'ACTION_REQUIRED', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageAccess.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageAccess.php new file mode 100644 index 000000000000..a859ae31d2ff --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageAccess.php @@ -0,0 +1,71 @@ +google.cloud.dataplex.v1.StorageAccess + */ +class StorageAccess extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Describes the read access mechanism of the data. Not user + * settable. + * + * Generated from protobuf field .google.cloud.dataplex.v1.StorageAccess.AccessMode read = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $read = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $read + * Output only. Describes the read access mechanism of the data. Not user + * settable. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Metadata::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Describes the read access mechanism of the data. Not user + * settable. + * + * Generated from protobuf field .google.cloud.dataplex.v1.StorageAccess.AccessMode read = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getRead() + { + return $this->read; + } + + /** + * Output only. Describes the read access mechanism of the data. Not user + * settable. + * + * Generated from protobuf field .google.cloud.dataplex.v1.StorageAccess.AccessMode read = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setRead($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\StorageAccess\AccessMode::class); + $this->read = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageAccess/AccessMode.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageAccess/AccessMode.php new file mode 100644 index 000000000000..a8ef48d2ac3b --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageAccess/AccessMode.php @@ -0,0 +1,61 @@ +google.cloud.dataplex.v1.StorageAccess.AccessMode + */ +class AccessMode +{ + /** + * Access mode unspecified. + * + * Generated from protobuf enum ACCESS_MODE_UNSPECIFIED = 0; + */ + const ACCESS_MODE_UNSPECIFIED = 0; + /** + * Default. Data is accessed directly using storage APIs. + * + * Generated from protobuf enum DIRECT = 1; + */ + const DIRECT = 1; + /** + * Data is accessed through a managed interface using BigQuery APIs. + * + * Generated from protobuf enum MANAGED = 2; + */ + const MANAGED = 2; + + private static $valueToName = [ + self::ACCESS_MODE_UNSPECIFIED => 'ACCESS_MODE_UNSPECIFIED', + self::DIRECT => 'DIRECT', + self::MANAGED => 'MANAGED', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageFormat.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageFormat.php new file mode 100644 index 000000000000..8fb07a2b7405 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageFormat.php @@ -0,0 +1,311 @@ +google.cloud.dataplex.v1.StorageFormat + */ +class StorageFormat extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The data format associated with the stored data, which + * represents content type values. The value is inferred from mime type. + * + * Generated from protobuf field .google.cloud.dataplex.v1.StorageFormat.Format format = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $format = 0; + /** + * Optional. The compression type associated with the stored data. + * If unspecified, the data is uncompressed. + * + * Generated from protobuf field .google.cloud.dataplex.v1.StorageFormat.CompressionFormat compression_format = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $compression_format = 0; + /** + * Required. The mime type descriptor for the data. Must match the pattern + * {type}/{subtype}. Supported values: + * - application/x-parquet + * - application/x-avro + * - application/x-orc + * - application/x-tfrecord + * - application/x-parquet+iceberg + * - application/x-avro+iceberg + * - application/x-orc+iceberg + * - application/json + * - application/{subtypes} + * - text/csv + * - text/ + * - image/{image subtype} + * - video/{video subtype} + * - audio/{audio subtype} + * + * Generated from protobuf field string mime_type = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $mime_type = ''; + protected $options; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $format + * Output only. The data format associated with the stored data, which + * represents content type values. The value is inferred from mime type. + * @type int $compression_format + * Optional. The compression type associated with the stored data. + * If unspecified, the data is uncompressed. + * @type string $mime_type + * Required. The mime type descriptor for the data. Must match the pattern + * {type}/{subtype}. Supported values: + * - application/x-parquet + * - application/x-avro + * - application/x-orc + * - application/x-tfrecord + * - application/x-parquet+iceberg + * - application/x-avro+iceberg + * - application/x-orc+iceberg + * - application/json + * - application/{subtypes} + * - text/csv + * - text/ + * - image/{image subtype} + * - video/{video subtype} + * - audio/{audio subtype} + * @type \Google\Cloud\Dataplex\V1\StorageFormat\CsvOptions $csv + * Optional. Additional information about CSV formatted data. + * @type \Google\Cloud\Dataplex\V1\StorageFormat\JsonOptions $json + * Optional. Additional information about CSV formatted data. + * @type \Google\Cloud\Dataplex\V1\StorageFormat\IcebergOptions $iceberg + * Optional. Additional information about iceberg tables. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Metadata::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The data format associated with the stored data, which + * represents content type values. The value is inferred from mime type. + * + * Generated from protobuf field .google.cloud.dataplex.v1.StorageFormat.Format format = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getFormat() + { + return $this->format; + } + + /** + * Output only. The data format associated with the stored data, which + * represents content type values. The value is inferred from mime type. + * + * Generated from protobuf field .google.cloud.dataplex.v1.StorageFormat.Format format = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setFormat($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\StorageFormat\Format::class); + $this->format = $var; + + return $this; + } + + /** + * Optional. The compression type associated with the stored data. + * If unspecified, the data is uncompressed. + * + * Generated from protobuf field .google.cloud.dataplex.v1.StorageFormat.CompressionFormat compression_format = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getCompressionFormat() + { + return $this->compression_format; + } + + /** + * Optional. The compression type associated with the stored data. + * If unspecified, the data is uncompressed. + * + * Generated from protobuf field .google.cloud.dataplex.v1.StorageFormat.CompressionFormat compression_format = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setCompressionFormat($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\StorageFormat\CompressionFormat::class); + $this->compression_format = $var; + + return $this; + } + + /** + * Required. The mime type descriptor for the data. Must match the pattern + * {type}/{subtype}. Supported values: + * - application/x-parquet + * - application/x-avro + * - application/x-orc + * - application/x-tfrecord + * - application/x-parquet+iceberg + * - application/x-avro+iceberg + * - application/x-orc+iceberg + * - application/json + * - application/{subtypes} + * - text/csv + * - text/ + * - image/{image subtype} + * - video/{video subtype} + * - audio/{audio subtype} + * + * Generated from protobuf field string mime_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getMimeType() + { + return $this->mime_type; + } + + /** + * Required. The mime type descriptor for the data. Must match the pattern + * {type}/{subtype}. Supported values: + * - application/x-parquet + * - application/x-avro + * - application/x-orc + * - application/x-tfrecord + * - application/x-parquet+iceberg + * - application/x-avro+iceberg + * - application/x-orc+iceberg + * - application/json + * - application/{subtypes} + * - text/csv + * - text/ + * - image/{image subtype} + * - video/{video subtype} + * - audio/{audio subtype} + * + * Generated from protobuf field string mime_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setMimeType($var) + { + GPBUtil::checkString($var, True); + $this->mime_type = $var; + + return $this; + } + + /** + * Optional. Additional information about CSV formatted data. + * + * Generated from protobuf field .google.cloud.dataplex.v1.StorageFormat.CsvOptions csv = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataplex\V1\StorageFormat\CsvOptions|null + */ + public function getCsv() + { + return $this->readOneof(10); + } + + public function hasCsv() + { + return $this->hasOneof(10); + } + + /** + * Optional. Additional information about CSV formatted data. + * + * Generated from protobuf field .google.cloud.dataplex.v1.StorageFormat.CsvOptions csv = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataplex\V1\StorageFormat\CsvOptions $var + * @return $this + */ + public function setCsv($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\StorageFormat\CsvOptions::class); + $this->writeOneof(10, $var); + + return $this; + } + + /** + * Optional. Additional information about CSV formatted data. + * + * Generated from protobuf field .google.cloud.dataplex.v1.StorageFormat.JsonOptions json = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataplex\V1\StorageFormat\JsonOptions|null + */ + public function getJson() + { + return $this->readOneof(11); + } + + public function hasJson() + { + return $this->hasOneof(11); + } + + /** + * Optional. Additional information about CSV formatted data. + * + * Generated from protobuf field .google.cloud.dataplex.v1.StorageFormat.JsonOptions json = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataplex\V1\StorageFormat\JsonOptions $var + * @return $this + */ + public function setJson($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\StorageFormat\JsonOptions::class); + $this->writeOneof(11, $var); + + return $this; + } + + /** + * Optional. Additional information about iceberg tables. + * + * Generated from protobuf field .google.cloud.dataplex.v1.StorageFormat.IcebergOptions iceberg = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataplex\V1\StorageFormat\IcebergOptions|null + */ + public function getIceberg() + { + return $this->readOneof(12); + } + + public function hasIceberg() + { + return $this->hasOneof(12); + } + + /** + * Optional. Additional information about iceberg tables. + * + * Generated from protobuf field .google.cloud.dataplex.v1.StorageFormat.IcebergOptions iceberg = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataplex\V1\StorageFormat\IcebergOptions $var + * @return $this + */ + public function setIceberg($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\StorageFormat\IcebergOptions::class); + $this->writeOneof(12, $var); + + return $this; + } + + /** + * @return string + */ + public function getOptions() + { + return $this->whichOneof("options"); + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageFormat/CompressionFormat.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageFormat/CompressionFormat.php new file mode 100644 index 000000000000..437aa2881b71 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageFormat/CompressionFormat.php @@ -0,0 +1,61 @@ +google.cloud.dataplex.v1.StorageFormat.CompressionFormat + */ +class CompressionFormat +{ + /** + * CompressionFormat unspecified. Implies uncompressed data. + * + * Generated from protobuf enum COMPRESSION_FORMAT_UNSPECIFIED = 0; + */ + const COMPRESSION_FORMAT_UNSPECIFIED = 0; + /** + * GZip compressed set of files. + * + * Generated from protobuf enum GZIP = 2; + */ + const GZIP = 2; + /** + * BZip2 compressed set of files. + * + * Generated from protobuf enum BZIP2 = 3; + */ + const BZIP2 = 3; + + private static $valueToName = [ + self::COMPRESSION_FORMAT_UNSPECIFIED => 'COMPRESSION_FORMAT_UNSPECIFIED', + self::GZIP => 'GZIP', + self::BZIP2 => 'BZIP2', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageFormat/CsvOptions.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageFormat/CsvOptions.php new file mode 100644 index 000000000000..0d0faf8b26b6 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageFormat/CsvOptions.php @@ -0,0 +1,185 @@ +google.cloud.dataplex.v1.StorageFormat.CsvOptions + */ +class CsvOptions extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The character encoding of the data. Accepts "US-ASCII", + * "UTF-8", and "ISO-8859-1". Defaults to UTF-8 if unspecified. + * + * Generated from protobuf field string encoding = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $encoding = ''; + /** + * Optional. The number of rows to interpret as header rows that should be + * skipped when reading data rows. Defaults to 0. + * + * Generated from protobuf field int32 header_rows = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $header_rows = 0; + /** + * Optional. The delimiter used to separate values. Defaults to ','. + * + * Generated from protobuf field string delimiter = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $delimiter = ''; + /** + * Optional. The character used to quote column values. Accepts '"' + * (double quotation mark) or ''' (single quotation mark). Defaults to + * '"' (double quotation mark) if unspecified. + * + * Generated from protobuf field string quote = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $quote = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $encoding + * Optional. The character encoding of the data. Accepts "US-ASCII", + * "UTF-8", and "ISO-8859-1". Defaults to UTF-8 if unspecified. + * @type int $header_rows + * Optional. The number of rows to interpret as header rows that should be + * skipped when reading data rows. Defaults to 0. + * @type string $delimiter + * Optional. The delimiter used to separate values. Defaults to ','. + * @type string $quote + * Optional. The character used to quote column values. Accepts '"' + * (double quotation mark) or ''' (single quotation mark). Defaults to + * '"' (double quotation mark) if unspecified. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Metadata::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The character encoding of the data. Accepts "US-ASCII", + * "UTF-8", and "ISO-8859-1". Defaults to UTF-8 if unspecified. + * + * Generated from protobuf field string encoding = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEncoding() + { + return $this->encoding; + } + + /** + * Optional. The character encoding of the data. Accepts "US-ASCII", + * "UTF-8", and "ISO-8859-1". Defaults to UTF-8 if unspecified. + * + * Generated from protobuf field string encoding = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setEncoding($var) + { + GPBUtil::checkString($var, True); + $this->encoding = $var; + + return $this; + } + + /** + * Optional. The number of rows to interpret as header rows that should be + * skipped when reading data rows. Defaults to 0. + * + * Generated from protobuf field int32 header_rows = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getHeaderRows() + { + return $this->header_rows; + } + + /** + * Optional. The number of rows to interpret as header rows that should be + * skipped when reading data rows. Defaults to 0. + * + * Generated from protobuf field int32 header_rows = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setHeaderRows($var) + { + GPBUtil::checkInt32($var); + $this->header_rows = $var; + + return $this; + } + + /** + * Optional. The delimiter used to separate values. Defaults to ','. + * + * Generated from protobuf field string delimiter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDelimiter() + { + return $this->delimiter; + } + + /** + * Optional. The delimiter used to separate values. Defaults to ','. + * + * Generated from protobuf field string delimiter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDelimiter($var) + { + GPBUtil::checkString($var, True); + $this->delimiter = $var; + + return $this; + } + + /** + * Optional. The character used to quote column values. Accepts '"' + * (double quotation mark) or ''' (single quotation mark). Defaults to + * '"' (double quotation mark) if unspecified. + * + * Generated from protobuf field string quote = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getQuote() + { + return $this->quote; + } + + /** + * Optional. The character used to quote column values. Accepts '"' + * (double quotation mark) or ''' (single quotation mark). Defaults to + * '"' (double quotation mark) if unspecified. + * + * Generated from protobuf field string quote = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setQuote($var) + { + GPBUtil::checkString($var, True); + $this->quote = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageFormat/Format.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageFormat/Format.php new file mode 100644 index 000000000000..034df0c2839c --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageFormat/Format.php @@ -0,0 +1,131 @@ +google.cloud.dataplex.v1.StorageFormat.Format + */ +class Format +{ + /** + * Format unspecified. + * + * Generated from protobuf enum FORMAT_UNSPECIFIED = 0; + */ + const FORMAT_UNSPECIFIED = 0; + /** + * Parquet-formatted structured data. + * + * Generated from protobuf enum PARQUET = 1; + */ + const PARQUET = 1; + /** + * Avro-formatted structured data. + * + * Generated from protobuf enum AVRO = 2; + */ + const AVRO = 2; + /** + * Orc-formatted structured data. + * + * Generated from protobuf enum ORC = 3; + */ + const ORC = 3; + /** + * Csv-formatted semi-structured data. + * + * Generated from protobuf enum CSV = 100; + */ + const CSV = 100; + /** + * Json-formatted semi-structured data. + * + * Generated from protobuf enum JSON = 101; + */ + const JSON = 101; + /** + * Image data formats (such as jpg and png). + * + * Generated from protobuf enum IMAGE = 200; + */ + const IMAGE = 200; + /** + * Audio data formats (such as mp3, and wav). + * + * Generated from protobuf enum AUDIO = 201; + */ + const AUDIO = 201; + /** + * Video data formats (such as mp4 and mpg). + * + * Generated from protobuf enum VIDEO = 202; + */ + const VIDEO = 202; + /** + * Textual data formats (such as txt and xml). + * + * Generated from protobuf enum TEXT = 203; + */ + const TEXT = 203; + /** + * TensorFlow record format. + * + * Generated from protobuf enum TFRECORD = 204; + */ + const TFRECORD = 204; + /** + * Data that doesn't match a specific format. + * + * Generated from protobuf enum OTHER = 1000; + */ + const OTHER = 1000; + /** + * Data of an unknown format. + * + * Generated from protobuf enum UNKNOWN = 1001; + */ + const UNKNOWN = 1001; + + private static $valueToName = [ + self::FORMAT_UNSPECIFIED => 'FORMAT_UNSPECIFIED', + self::PARQUET => 'PARQUET', + self::AVRO => 'AVRO', + self::ORC => 'ORC', + self::CSV => 'CSV', + self::JSON => 'JSON', + self::IMAGE => 'IMAGE', + self::AUDIO => 'AUDIO', + self::VIDEO => 'VIDEO', + self::TEXT => 'TEXT', + self::TFRECORD => 'TFRECORD', + self::OTHER => 'OTHER', + self::UNKNOWN => 'UNKNOWN', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageFormat/IcebergOptions.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageFormat/IcebergOptions.php new file mode 100644 index 000000000000..6e53301b0a4b --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageFormat/IcebergOptions.php @@ -0,0 +1,71 @@ +google.cloud.dataplex.v1.StorageFormat.IcebergOptions + */ +class IcebergOptions extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The location of where the iceberg metadata is present, must be + * within the table path + * + * Generated from protobuf field string metadata_location = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $metadata_location = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $metadata_location + * Optional. The location of where the iceberg metadata is present, must be + * within the table path + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Metadata::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The location of where the iceberg metadata is present, must be + * within the table path + * + * Generated from protobuf field string metadata_location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getMetadataLocation() + { + return $this->metadata_location; + } + + /** + * Optional. The location of where the iceberg metadata is present, must be + * within the table path + * + * Generated from protobuf field string metadata_location = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setMetadataLocation($var) + { + GPBUtil::checkString($var, True); + $this->metadata_location = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageFormat/JsonOptions.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageFormat/JsonOptions.php new file mode 100644 index 000000000000..2bdd613a3a08 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageFormat/JsonOptions.php @@ -0,0 +1,71 @@ +google.cloud.dataplex.v1.StorageFormat.JsonOptions + */ +class JsonOptions extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The character encoding of the data. Accepts "US-ASCII", "UTF-8" + * and "ISO-8859-1". Defaults to UTF-8 if not specified. + * + * Generated from protobuf field string encoding = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $encoding = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $encoding + * Optional. The character encoding of the data. Accepts "US-ASCII", "UTF-8" + * and "ISO-8859-1". Defaults to UTF-8 if not specified. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Metadata::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The character encoding of the data. Accepts "US-ASCII", "UTF-8" + * and "ISO-8859-1". Defaults to UTF-8 if not specified. + * + * Generated from protobuf field string encoding = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEncoding() + { + return $this->encoding; + } + + /** + * Optional. The character encoding of the data. Accepts "US-ASCII", "UTF-8" + * and "ISO-8859-1". Defaults to UTF-8 if not specified. + * + * Generated from protobuf field string encoding = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setEncoding($var) + { + GPBUtil::checkString($var, True); + $this->encoding = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageSystem.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageSystem.php new file mode 100644 index 000000000000..e5483839dc93 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageSystem.php @@ -0,0 +1,61 @@ +google.cloud.dataplex.v1.StorageSystem + */ +class StorageSystem +{ + /** + * Storage system unspecified. + * + * Generated from protobuf enum STORAGE_SYSTEM_UNSPECIFIED = 0; + */ + const STORAGE_SYSTEM_UNSPECIFIED = 0; + /** + * The entity data is contained within a Cloud Storage bucket. + * + * Generated from protobuf enum CLOUD_STORAGE = 1; + */ + const CLOUD_STORAGE = 1; + /** + * The entity data is contained within a BigQuery dataset. + * + * Generated from protobuf enum BIGQUERY = 2; + */ + const BIGQUERY = 2; + + private static $valueToName = [ + self::STORAGE_SYSTEM_UNSPECIFIED => 'STORAGE_SYSTEM_UNSPECIFIED', + self::CLOUD_STORAGE => 'CLOUD_STORAGE', + self::BIGQUERY => 'BIGQUERY', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task.php new file mode 100644 index 000000000000..f9c058456276 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task.php @@ -0,0 +1,544 @@ +google.cloud.dataplex.v1.Task + */ +class Task extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The relative resource name of the task, of the form: + * projects/{project_number}/locations/{location_id}/lakes/{lake_id}/ + * tasks/{task_id}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Output only. System generated globally unique ID for the task. This ID will + * be different if the task is deleted and re-created with the same name. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $uid = ''; + /** + * Output only. The time when the task was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The time when the task was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Optional. Description of the task. + * + * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Optional. User friendly display name. + * + * Generated from protobuf field string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $display_name = ''; + /** + * Output only. Current state of the task. + * + * Generated from protobuf field .google.cloud.dataplex.v1.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Optional. User-defined labels for the task. + * + * Generated from protobuf field map labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $labels; + /** + * Required. Spec related to how often and when a task should be triggered. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Task.TriggerSpec trigger_spec = 100 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $trigger_spec = null; + /** + * Required. Spec related to how a task is executed. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Task.ExecutionSpec execution_spec = 101 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $execution_spec = null; + /** + * Output only. Status of the latest task executions. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Task.ExecutionStatus execution_status = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $execution_status = null; + protected $config; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. The relative resource name of the task, of the form: + * projects/{project_number}/locations/{location_id}/lakes/{lake_id}/ + * tasks/{task_id}. + * @type string $uid + * Output only. System generated globally unique ID for the task. This ID will + * be different if the task is deleted and re-created with the same name. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time when the task was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time when the task was last updated. + * @type string $description + * Optional. Description of the task. + * @type string $display_name + * Optional. User friendly display name. + * @type int $state + * Output only. Current state of the task. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Optional. User-defined labels for the task. + * @type \Google\Cloud\Dataplex\V1\Task\TriggerSpec $trigger_spec + * Required. Spec related to how often and when a task should be triggered. + * @type \Google\Cloud\Dataplex\V1\Task\ExecutionSpec $execution_spec + * Required. Spec related to how a task is executed. + * @type \Google\Cloud\Dataplex\V1\Task\ExecutionStatus $execution_status + * Output only. Status of the latest task executions. + * @type \Google\Cloud\Dataplex\V1\Task\SparkTaskConfig $spark + * Config related to running custom Spark tasks. + * @type \Google\Cloud\Dataplex\V1\Task\NotebookTaskConfig $notebook + * Config related to running scheduled Notebooks. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Tasks::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The relative resource name of the task, of the form: + * projects/{project_number}/locations/{location_id}/lakes/{lake_id}/ + * tasks/{task_id}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. The relative resource name of the task, of the form: + * projects/{project_number}/locations/{location_id}/lakes/{lake_id}/ + * tasks/{task_id}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. System generated globally unique ID for the task. This ID will + * be different if the task is deleted and re-created with the same name. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getUid() + { + return $this->uid; + } + + /** + * Output only. System generated globally unique ID for the task. This ID will + * be different if the task is deleted and re-created with the same name. + * + * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setUid($var) + { + GPBUtil::checkString($var, True); + $this->uid = $var; + + return $this; + } + + /** + * Output only. The time when the task was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The time when the task was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. The time when the task was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. The time when the task was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Optional. Description of the task. + * + * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. Description of the task. + * + * 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; + } + + /** + * Optional. User friendly display name. + * + * Generated from protobuf field string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Optional. User friendly display name. + * + * Generated from protobuf field string display_name = 6 [(.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. Current state of the task. + * + * Generated from protobuf field .google.cloud.dataplex.v1.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. Current state of the task. + * + * Generated from protobuf field .google.cloud.dataplex.v1.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\State::class); + $this->state = $var; + + return $this; + } + + /** + * Optional. User-defined labels for the task. + * + * Generated from protobuf field map labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Optional. User-defined labels for the task. + * + * Generated from protobuf field map labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Required. Spec related to how often and when a task should be triggered. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Task.TriggerSpec trigger_spec = 100 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\Task\TriggerSpec|null + */ + public function getTriggerSpec() + { + return $this->trigger_spec; + } + + public function hasTriggerSpec() + { + return isset($this->trigger_spec); + } + + public function clearTriggerSpec() + { + unset($this->trigger_spec); + } + + /** + * Required. Spec related to how often and when a task should be triggered. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Task.TriggerSpec trigger_spec = 100 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\Task\TriggerSpec $var + * @return $this + */ + public function setTriggerSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Task\TriggerSpec::class); + $this->trigger_spec = $var; + + return $this; + } + + /** + * Required. Spec related to how a task is executed. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Task.ExecutionSpec execution_spec = 101 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\Task\ExecutionSpec|null + */ + public function getExecutionSpec() + { + return $this->execution_spec; + } + + public function hasExecutionSpec() + { + return isset($this->execution_spec); + } + + public function clearExecutionSpec() + { + unset($this->execution_spec); + } + + /** + * Required. Spec related to how a task is executed. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Task.ExecutionSpec execution_spec = 101 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\Task\ExecutionSpec $var + * @return $this + */ + public function setExecutionSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Task\ExecutionSpec::class); + $this->execution_spec = $var; + + return $this; + } + + /** + * Output only. Status of the latest task executions. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Task.ExecutionStatus execution_status = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataplex\V1\Task\ExecutionStatus|null + */ + public function getExecutionStatus() + { + return $this->execution_status; + } + + public function hasExecutionStatus() + { + return isset($this->execution_status); + } + + public function clearExecutionStatus() + { + unset($this->execution_status); + } + + /** + * Output only. Status of the latest task executions. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Task.ExecutionStatus execution_status = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\Task\ExecutionStatus $var + * @return $this + */ + public function setExecutionStatus($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Task\ExecutionStatus::class); + $this->execution_status = $var; + + return $this; + } + + /** + * Config related to running custom Spark tasks. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Task.SparkTaskConfig spark = 300; + * @return \Google\Cloud\Dataplex\V1\Task\SparkTaskConfig|null + */ + public function getSpark() + { + return $this->readOneof(300); + } + + public function hasSpark() + { + return $this->hasOneof(300); + } + + /** + * Config related to running custom Spark tasks. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Task.SparkTaskConfig spark = 300; + * @param \Google\Cloud\Dataplex\V1\Task\SparkTaskConfig $var + * @return $this + */ + public function setSpark($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Task\SparkTaskConfig::class); + $this->writeOneof(300, $var); + + return $this; + } + + /** + * Config related to running scheduled Notebooks. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Task.NotebookTaskConfig notebook = 302; + * @return \Google\Cloud\Dataplex\V1\Task\NotebookTaskConfig|null + */ + public function getNotebook() + { + return $this->readOneof(302); + } + + public function hasNotebook() + { + return $this->hasOneof(302); + } + + /** + * Config related to running scheduled Notebooks. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Task.NotebookTaskConfig notebook = 302; + * @param \Google\Cloud\Dataplex\V1\Task\NotebookTaskConfig $var + * @return $this + */ + public function setNotebook($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Task\NotebookTaskConfig::class); + $this->writeOneof(302, $var); + + return $this; + } + + /** + * @return string + */ + public function getConfig() + { + return $this->whichOneof("config"); + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/ExecutionSpec.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/ExecutionSpec.php new file mode 100644 index 000000000000..3544a4865762 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/ExecutionSpec.php @@ -0,0 +1,281 @@ +google.cloud.dataplex.v1.Task.ExecutionSpec + */ +class ExecutionSpec extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The arguments to pass to the task. + * The args can use placeholders of the format ${placeholder} as + * part of key/value string. These will be interpolated before passing the + * args to the driver. Currently supported placeholders: + * - ${task_id} + * - ${job_time} + * To pass positional args, set the key as TASK_ARGS. The value should be a + * comma-separated string of all the positional arguments. To use a + * delimiter other than comma, refer to + * https://cloud.google.com/sdk/gcloud/reference/topic/escaping. In case of + * other keys being present in the args, then TASK_ARGS will be passed as + * the last argument. + * + * Generated from protobuf field map args = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $args; + /** + * Required. Service account to use to execute a task. + * If not provided, the default Compute service account for the project is + * used. + * + * Generated from protobuf field string service_account = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $service_account = ''; + /** + * Optional. The project in which jobs are run. By default, the project + * containing the Lake is used. If a project is provided, the + * [ExecutionSpec.service_account][google.cloud.dataplex.v1.Task.ExecutionSpec.service_account] + * must belong to this project. + * + * Generated from protobuf field string project = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $project = ''; + /** + * Optional. The maximum duration after which the job execution is expired. + * + * Generated from protobuf field .google.protobuf.Duration max_job_execution_lifetime = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $max_job_execution_lifetime = null; + /** + * Optional. The Cloud KMS key to use for encryption, of the form: + * `projects/{project_number}/locations/{location_id}/keyRings/{key-ring-name}/cryptoKeys/{key-name}`. + * + * Generated from protobuf field string kms_key = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $kms_key = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\MapField $args + * Optional. The arguments to pass to the task. + * The args can use placeholders of the format ${placeholder} as + * part of key/value string. These will be interpolated before passing the + * args to the driver. Currently supported placeholders: + * - ${task_id} + * - ${job_time} + * To pass positional args, set the key as TASK_ARGS. The value should be a + * comma-separated string of all the positional arguments. To use a + * delimiter other than comma, refer to + * https://cloud.google.com/sdk/gcloud/reference/topic/escaping. In case of + * other keys being present in the args, then TASK_ARGS will be passed as + * the last argument. + * @type string $service_account + * Required. Service account to use to execute a task. + * If not provided, the default Compute service account for the project is + * used. + * @type string $project + * Optional. The project in which jobs are run. By default, the project + * containing the Lake is used. If a project is provided, the + * [ExecutionSpec.service_account][google.cloud.dataplex.v1.Task.ExecutionSpec.service_account] + * must belong to this project. + * @type \Google\Protobuf\Duration $max_job_execution_lifetime + * Optional. The maximum duration after which the job execution is expired. + * @type string $kms_key + * Optional. The Cloud KMS key to use for encryption, of the form: + * `projects/{project_number}/locations/{location_id}/keyRings/{key-ring-name}/cryptoKeys/{key-name}`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Tasks::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The arguments to pass to the task. + * The args can use placeholders of the format ${placeholder} as + * part of key/value string. These will be interpolated before passing the + * args to the driver. Currently supported placeholders: + * - ${task_id} + * - ${job_time} + * To pass positional args, set the key as TASK_ARGS. The value should be a + * comma-separated string of all the positional arguments. To use a + * delimiter other than comma, refer to + * https://cloud.google.com/sdk/gcloud/reference/topic/escaping. In case of + * other keys being present in the args, then TASK_ARGS will be passed as + * the last argument. + * + * Generated from protobuf field map args = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getArgs() + { + return $this->args; + } + + /** + * Optional. The arguments to pass to the task. + * The args can use placeholders of the format ${placeholder} as + * part of key/value string. These will be interpolated before passing the + * args to the driver. Currently supported placeholders: + * - ${task_id} + * - ${job_time} + * To pass positional args, set the key as TASK_ARGS. The value should be a + * comma-separated string of all the positional arguments. To use a + * delimiter other than comma, refer to + * https://cloud.google.com/sdk/gcloud/reference/topic/escaping. In case of + * other keys being present in the args, then TASK_ARGS will be passed as + * the last argument. + * + * Generated from protobuf field map args = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setArgs($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->args = $arr; + + return $this; + } + + /** + * Required. Service account to use to execute a task. + * If not provided, the default Compute service account for the project is + * used. + * + * Generated from protobuf field string service_account = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getServiceAccount() + { + return $this->service_account; + } + + /** + * Required. Service account to use to execute a task. + * If not provided, the default Compute service account for the project is + * used. + * + * Generated from protobuf field string service_account = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setServiceAccount($var) + { + GPBUtil::checkString($var, True); + $this->service_account = $var; + + return $this; + } + + /** + * Optional. The project in which jobs are run. By default, the project + * containing the Lake is used. If a project is provided, the + * [ExecutionSpec.service_account][google.cloud.dataplex.v1.Task.ExecutionSpec.service_account] + * must belong to this project. + * + * Generated from protobuf field string project = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getProject() + { + return $this->project; + } + + /** + * Optional. The project in which jobs are run. By default, the project + * containing the Lake is used. If a project is provided, the + * [ExecutionSpec.service_account][google.cloud.dataplex.v1.Task.ExecutionSpec.service_account] + * must belong to this project. + * + * Generated from protobuf field string project = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setProject($var) + { + GPBUtil::checkString($var, True); + $this->project = $var; + + return $this; + } + + /** + * Optional. The maximum duration after which the job execution is expired. + * + * Generated from protobuf field .google.protobuf.Duration max_job_execution_lifetime = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Duration|null + */ + public function getMaxJobExecutionLifetime() + { + return $this->max_job_execution_lifetime; + } + + public function hasMaxJobExecutionLifetime() + { + return isset($this->max_job_execution_lifetime); + } + + public function clearMaxJobExecutionLifetime() + { + unset($this->max_job_execution_lifetime); + } + + /** + * Optional. The maximum duration after which the job execution is expired. + * + * Generated from protobuf field .google.protobuf.Duration max_job_execution_lifetime = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setMaxJobExecutionLifetime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->max_job_execution_lifetime = $var; + + return $this; + } + + /** + * Optional. The Cloud KMS key to use for encryption, of the form: + * `projects/{project_number}/locations/{location_id}/keyRings/{key-ring-name}/cryptoKeys/{key-name}`. + * + * Generated from protobuf field string kms_key = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getKmsKey() + { + return $this->kms_key; + } + + /** + * Optional. The Cloud KMS key to use for encryption, of the form: + * `projects/{project_number}/locations/{location_id}/keyRings/{key-ring-name}/cryptoKeys/{key-name}`. + * + * Generated from protobuf field string kms_key = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setKmsKey($var) + { + GPBUtil::checkString($var, True); + $this->kms_key = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/ExecutionStatus.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/ExecutionStatus.php new file mode 100644 index 000000000000..371153e54f52 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/ExecutionStatus.php @@ -0,0 +1,121 @@ +google.cloud.dataplex.v1.Task.ExecutionStatus + */ +class ExecutionStatus extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Last update time of the status. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Output only. latest job execution + * + * Generated from protobuf field .google.cloud.dataplex.v1.Job latest_job = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $latest_job = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Timestamp $update_time + * Output only. Last update time of the status. + * @type \Google\Cloud\Dataplex\V1\Job $latest_job + * Output only. latest job execution + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Tasks::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Last update time of the status. + * + * 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. Last update time of the status. + * + * 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; + } + + /** + * Output only. latest job execution + * + * Generated from protobuf field .google.cloud.dataplex.v1.Job latest_job = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataplex\V1\Job|null + */ + public function getLatestJob() + { + return $this->latest_job; + } + + public function hasLatestJob() + { + return isset($this->latest_job); + } + + public function clearLatestJob() + { + unset($this->latest_job); + } + + /** + * Output only. latest job execution + * + * Generated from protobuf field .google.cloud.dataplex.v1.Job latest_job = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\Job $var + * @return $this + */ + public function setLatestJob($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Job::class); + $this->latest_job = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/InfrastructureSpec.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/InfrastructureSpec.php new file mode 100644 index 000000000000..cad5d10012b4 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/InfrastructureSpec.php @@ -0,0 +1,159 @@ +google.cloud.dataplex.v1.Task.InfrastructureSpec + */ +class InfrastructureSpec extends \Google\Protobuf\Internal\Message +{ + protected $resources; + protected $runtime; + protected $network; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\Task\InfrastructureSpec\BatchComputeResources $batch + * Compute resources needed for a Task when using Dataproc Serverless. + * @type \Google\Cloud\Dataplex\V1\Task\InfrastructureSpec\ContainerImageRuntime $container_image + * Container Image Runtime Configuration. + * @type \Google\Cloud\Dataplex\V1\Task\InfrastructureSpec\VpcNetwork $vpc_network + * Vpc network. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Tasks::initOnce(); + parent::__construct($data); + } + + /** + * Compute resources needed for a Task when using Dataproc Serverless. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources batch = 52; + * @return \Google\Cloud\Dataplex\V1\Task\InfrastructureSpec\BatchComputeResources|null + */ + public function getBatch() + { + return $this->readOneof(52); + } + + public function hasBatch() + { + return $this->hasOneof(52); + } + + /** + * Compute resources needed for a Task when using Dataproc Serverless. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources batch = 52; + * @param \Google\Cloud\Dataplex\V1\Task\InfrastructureSpec\BatchComputeResources $var + * @return $this + */ + public function setBatch($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Task\InfrastructureSpec\BatchComputeResources::class); + $this->writeOneof(52, $var); + + return $this; + } + + /** + * Container Image Runtime Configuration. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime container_image = 101; + * @return \Google\Cloud\Dataplex\V1\Task\InfrastructureSpec\ContainerImageRuntime|null + */ + public function getContainerImage() + { + return $this->readOneof(101); + } + + public function hasContainerImage() + { + return $this->hasOneof(101); + } + + /** + * Container Image Runtime Configuration. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime container_image = 101; + * @param \Google\Cloud\Dataplex\V1\Task\InfrastructureSpec\ContainerImageRuntime $var + * @return $this + */ + public function setContainerImage($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Task\InfrastructureSpec\ContainerImageRuntime::class); + $this->writeOneof(101, $var); + + return $this; + } + + /** + * Vpc network. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork vpc_network = 150; + * @return \Google\Cloud\Dataplex\V1\Task\InfrastructureSpec\VpcNetwork|null + */ + public function getVpcNetwork() + { + return $this->readOneof(150); + } + + public function hasVpcNetwork() + { + return $this->hasOneof(150); + } + + /** + * Vpc network. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork vpc_network = 150; + * @param \Google\Cloud\Dataplex\V1\Task\InfrastructureSpec\VpcNetwork $var + * @return $this + */ + public function setVpcNetwork($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Task\InfrastructureSpec\VpcNetwork::class); + $this->writeOneof(150, $var); + + return $this; + } + + /** + * @return string + */ + public function getResources() + { + return $this->whichOneof("resources"); + } + + /** + * @return string + */ + public function getRuntime() + { + return $this->whichOneof("runtime"); + } + + /** + * @return string + */ + public function getNetwork() + { + return $this->whichOneof("network"); + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/InfrastructureSpec/BatchComputeResources.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/InfrastructureSpec/BatchComputeResources.php new file mode 100644 index 000000000000..c1e9b4fa0ab1 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/InfrastructureSpec/BatchComputeResources.php @@ -0,0 +1,113 @@ +google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources + */ +class BatchComputeResources extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Total number of job executors. + * Executor Count should be between 2 and 100. [Default=2] + * + * Generated from protobuf field int32 executors_count = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $executors_count = 0; + /** + * Optional. Max configurable executors. + * If max_executors_count > executors_count, then auto-scaling is enabled. + * Max Executor Count should be between 2 and 1000. [Default=1000] + * + * Generated from protobuf field int32 max_executors_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $max_executors_count = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $executors_count + * Optional. Total number of job executors. + * Executor Count should be between 2 and 100. [Default=2] + * @type int $max_executors_count + * Optional. Max configurable executors. + * If max_executors_count > executors_count, then auto-scaling is enabled. + * Max Executor Count should be between 2 and 1000. [Default=1000] + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Tasks::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Total number of job executors. + * Executor Count should be between 2 and 100. [Default=2] + * + * Generated from protobuf field int32 executors_count = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getExecutorsCount() + { + return $this->executors_count; + } + + /** + * Optional. Total number of job executors. + * Executor Count should be between 2 and 100. [Default=2] + * + * Generated from protobuf field int32 executors_count = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setExecutorsCount($var) + { + GPBUtil::checkInt32($var); + $this->executors_count = $var; + + return $this; + } + + /** + * Optional. Max configurable executors. + * If max_executors_count > executors_count, then auto-scaling is enabled. + * Max Executor Count should be between 2 and 1000. [Default=1000] + * + * Generated from protobuf field int32 max_executors_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getMaxExecutorsCount() + { + return $this->max_executors_count; + } + + /** + * Optional. Max configurable executors. + * If max_executors_count > executors_count, then auto-scaling is enabled. + * Max Executor Count should be between 2 and 1000. [Default=1000] + * + * Generated from protobuf field int32 max_executors_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setMaxExecutorsCount($var) + { + GPBUtil::checkInt32($var); + $this->max_executors_count = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/InfrastructureSpec/ContainerImageRuntime.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/InfrastructureSpec/ContainerImageRuntime.php new file mode 100644 index 000000000000..b457f1423cd0 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/InfrastructureSpec/ContainerImageRuntime.php @@ -0,0 +1,201 @@ +google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime + */ +class ContainerImageRuntime extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Container image to use. + * + * Generated from protobuf field string image = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $image = ''; + /** + * Optional. A list of Java JARS to add to the classpath. + * Valid input includes Cloud Storage URIs to Jar binaries. + * For example, gs://bucket-name/my/path/to/file.jar + * + * Generated from protobuf field repeated string java_jars = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $java_jars; + /** + * Optional. A list of python packages to be installed. + * Valid formats include Cloud Storage URI to a PIP installable library. + * For example, gs://bucket-name/my/path/to/lib.tar.gz + * + * Generated from protobuf field repeated string python_packages = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $python_packages; + /** + * Optional. Override to common configuration of open source components + * installed on the Dataproc cluster. The properties to set on daemon + * config files. Property keys are specified in `prefix:property` format, + * for example `core:hadoop.tmp.dir`. For more information, see [Cluster + * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties). + * + * Generated from protobuf field map properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $properties; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $image + * Optional. Container image to use. + * @type string[] $java_jars + * Optional. A list of Java JARS to add to the classpath. + * Valid input includes Cloud Storage URIs to Jar binaries. + * For example, gs://bucket-name/my/path/to/file.jar + * @type string[] $python_packages + * Optional. A list of python packages to be installed. + * Valid formats include Cloud Storage URI to a PIP installable library. + * For example, gs://bucket-name/my/path/to/lib.tar.gz + * @type array|\Google\Protobuf\Internal\MapField $properties + * Optional. Override to common configuration of open source components + * installed on the Dataproc cluster. The properties to set on daemon + * config files. Property keys are specified in `prefix:property` format, + * for example `core:hadoop.tmp.dir`. For more information, see [Cluster + * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Tasks::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Container image to use. + * + * Generated from protobuf field string image = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getImage() + { + return $this->image; + } + + /** + * Optional. Container image to use. + * + * Generated from protobuf field string image = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setImage($var) + { + GPBUtil::checkString($var, True); + $this->image = $var; + + return $this; + } + + /** + * Optional. A list of Java JARS to add to the classpath. + * Valid input includes Cloud Storage URIs to Jar binaries. + * For example, gs://bucket-name/my/path/to/file.jar + * + * Generated from protobuf field repeated string java_jars = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getJavaJars() + { + return $this->java_jars; + } + + /** + * Optional. A list of Java JARS to add to the classpath. + * Valid input includes Cloud Storage URIs to Jar binaries. + * For example, gs://bucket-name/my/path/to/file.jar + * + * Generated from protobuf field repeated string java_jars = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setJavaJars($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->java_jars = $arr; + + return $this; + } + + /** + * Optional. A list of python packages to be installed. + * Valid formats include Cloud Storage URI to a PIP installable library. + * For example, gs://bucket-name/my/path/to/lib.tar.gz + * + * Generated from protobuf field repeated string python_packages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getPythonPackages() + { + return $this->python_packages; + } + + /** + * Optional. A list of python packages to be installed. + * Valid formats include Cloud Storage URI to a PIP installable library. + * For example, gs://bucket-name/my/path/to/lib.tar.gz + * + * Generated from protobuf field repeated string python_packages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setPythonPackages($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->python_packages = $arr; + + return $this; + } + + /** + * Optional. Override to common configuration of open source components + * installed on the Dataproc cluster. The properties to set on daemon + * config files. Property keys are specified in `prefix:property` format, + * for example `core:hadoop.tmp.dir`. For more information, see [Cluster + * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties). + * + * Generated from protobuf field map properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getProperties() + { + return $this->properties; + } + + /** + * Optional. Override to common configuration of open source components + * installed on the Dataproc cluster. The properties to set on daemon + * config files. Property keys are specified in `prefix:property` format, + * for example `core:hadoop.tmp.dir`. For more information, see [Cluster + * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties). + * + * Generated from protobuf field map properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setProperties($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->properties = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/InfrastructureSpec/VpcNetwork.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/InfrastructureSpec/VpcNetwork.php new file mode 100644 index 000000000000..8df7ca7c85a6 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/InfrastructureSpec/VpcNetwork.php @@ -0,0 +1,145 @@ +google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork + */ +class VpcNetwork extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. List of network tags to apply to the job. + * + * Generated from protobuf field repeated string network_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $network_tags; + protected $network_name; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $network + * Optional. The Cloud VPC network in which the job is run. By default, + * the Cloud VPC network named Default within the project is used. + * @type string $sub_network + * Optional. The Cloud VPC sub-network in which the job is run. + * @type string[] $network_tags + * Optional. List of network tags to apply to the job. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Tasks::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The Cloud VPC network in which the job is run. By default, + * the Cloud VPC network named Default within the project is used. + * + * Generated from protobuf field string network = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getNetwork() + { + return $this->readOneof(1); + } + + public function hasNetwork() + { + return $this->hasOneof(1); + } + + /** + * Optional. The Cloud VPC network in which the job is run. By default, + * the Cloud VPC network named Default within the project is used. + * + * Generated from protobuf field string network = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setNetwork($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Optional. The Cloud VPC sub-network in which the job is run. + * + * Generated from protobuf field string sub_network = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getSubNetwork() + { + return $this->readOneof(2); + } + + public function hasSubNetwork() + { + return $this->hasOneof(2); + } + + /** + * Optional. The Cloud VPC sub-network in which the job is run. + * + * Generated from protobuf field string sub_network = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setSubNetwork($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Optional. List of network tags to apply to the job. + * + * Generated from protobuf field repeated string network_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getNetworkTags() + { + return $this->network_tags; + } + + /** + * Optional. List of network tags to apply to the job. + * + * Generated from protobuf field repeated string network_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setNetworkTags($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->network_tags = $arr; + + return $this; + } + + /** + * @return string + */ + public function getNetworkName() + { + return $this->whichOneof("network_name"); + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/NotebookTaskConfig.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/NotebookTaskConfig.php new file mode 100644 index 000000000000..00ffd9dfcfff --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/NotebookTaskConfig.php @@ -0,0 +1,203 @@ +google.cloud.dataplex.v1.Task.NotebookTaskConfig + */ +class NotebookTaskConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Path to input notebook. This can be the Cloud Storage URI of + * the notebook file or the path to a Notebook Content. The execution args + * are accessible as environment variables + * (`TASK_key=value`). + * + * Generated from protobuf field string notebook = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $notebook = ''; + /** + * Optional. Infrastructure specification for the execution. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Task.InfrastructureSpec infrastructure_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $infrastructure_spec = null; + /** + * Optional. Cloud Storage URIs of files to be placed in the working + * directory of each executor. + * + * Generated from protobuf field repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $file_uris; + /** + * Optional. Cloud Storage URIs of archives to be extracted into the working + * directory of each executor. Supported file types: .jar, .tar, .tar.gz, + * .tgz, and .zip. + * + * Generated from protobuf field repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $archive_uris; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $notebook + * Required. Path to input notebook. This can be the Cloud Storage URI of + * the notebook file or the path to a Notebook Content. The execution args + * are accessible as environment variables + * (`TASK_key=value`). + * @type \Google\Cloud\Dataplex\V1\Task\InfrastructureSpec $infrastructure_spec + * Optional. Infrastructure specification for the execution. + * @type string[] $file_uris + * Optional. Cloud Storage URIs of files to be placed in the working + * directory of each executor. + * @type string[] $archive_uris + * Optional. Cloud Storage URIs of archives to be extracted into the working + * directory of each executor. Supported file types: .jar, .tar, .tar.gz, + * .tgz, and .zip. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Tasks::initOnce(); + parent::__construct($data); + } + + /** + * Required. Path to input notebook. This can be the Cloud Storage URI of + * the notebook file or the path to a Notebook Content. The execution args + * are accessible as environment variables + * (`TASK_key=value`). + * + * Generated from protobuf field string notebook = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getNotebook() + { + return $this->notebook; + } + + /** + * Required. Path to input notebook. This can be the Cloud Storage URI of + * the notebook file or the path to a Notebook Content. The execution args + * are accessible as environment variables + * (`TASK_key=value`). + * + * Generated from protobuf field string notebook = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setNotebook($var) + { + GPBUtil::checkString($var, True); + $this->notebook = $var; + + return $this; + } + + /** + * Optional. Infrastructure specification for the execution. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Task.InfrastructureSpec infrastructure_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataplex\V1\Task\InfrastructureSpec|null + */ + public function getInfrastructureSpec() + { + return $this->infrastructure_spec; + } + + public function hasInfrastructureSpec() + { + return isset($this->infrastructure_spec); + } + + public function clearInfrastructureSpec() + { + unset($this->infrastructure_spec); + } + + /** + * Optional. Infrastructure specification for the execution. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Task.InfrastructureSpec infrastructure_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataplex\V1\Task\InfrastructureSpec $var + * @return $this + */ + public function setInfrastructureSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Task\InfrastructureSpec::class); + $this->infrastructure_spec = $var; + + return $this; + } + + /** + * Optional. Cloud Storage URIs of files to be placed in the working + * directory of each executor. + * + * Generated from protobuf field repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getFileUris() + { + return $this->file_uris; + } + + /** + * Optional. Cloud Storage URIs of files to be placed in the working + * directory of each executor. + * + * Generated from protobuf field repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setFileUris($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->file_uris = $arr; + + return $this; + } + + /** + * Optional. Cloud Storage URIs of archives to be extracted into the working + * directory of each executor. Supported file types: .jar, .tar, .tar.gz, + * .tgz, and .zip. + * + * Generated from protobuf field repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getArchiveUris() + { + return $this->archive_uris; + } + + /** + * Optional. Cloud Storage URIs of archives to be extracted into the working + * directory of each executor. Supported file types: .jar, .tar, .tar.gz, + * .tgz, and .zip. + * + * Generated from protobuf field repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setArchiveUris($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->archive_uris = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/SparkTaskConfig.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/SparkTaskConfig.php new file mode 100644 index 000000000000..3c921c90ddba --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/SparkTaskConfig.php @@ -0,0 +1,367 @@ +google.cloud.dataplex.v1.Task.SparkTaskConfig + */ +class SparkTaskConfig extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Cloud Storage URIs of files to be placed in the working + * directory of each executor. + * + * Generated from protobuf field repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $file_uris; + /** + * Optional. Cloud Storage URIs of archives to be extracted into the working + * directory of each executor. Supported file types: .jar, .tar, .tar.gz, + * .tgz, and .zip. + * + * Generated from protobuf field repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $archive_uris; + /** + * Optional. Infrastructure specification for the execution. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Task.InfrastructureSpec infrastructure_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $infrastructure_spec = null; + protected $driver; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $main_jar_file_uri + * The Cloud Storage URI of the jar file that contains the main class. + * The execution args are passed in as a sequence of named process + * arguments (`--key=value`). + * @type string $main_class + * The name of the driver's main class. The jar file that contains the + * class must be in the default CLASSPATH or specified in + * `jar_file_uris`. + * The execution args are passed in as a sequence of named process + * arguments (`--key=value`). + * @type string $python_script_file + * The Gcloud Storage URI of the main Python file to use as the driver. + * Must be a .py file. The execution args are passed in as a sequence of + * named process arguments (`--key=value`). + * @type string $sql_script_file + * A reference to a query file. This should be the Cloud Storage URI of + * the query file. The execution args are used to declare a set of script + * variables (`set key="value";`). + * @type string $sql_script + * The query text. + * The execution args are used to declare a set of script variables + * (`set key="value";`). + * @type string[] $file_uris + * Optional. Cloud Storage URIs of files to be placed in the working + * directory of each executor. + * @type string[] $archive_uris + * Optional. Cloud Storage URIs of archives to be extracted into the working + * directory of each executor. Supported file types: .jar, .tar, .tar.gz, + * .tgz, and .zip. + * @type \Google\Cloud\Dataplex\V1\Task\InfrastructureSpec $infrastructure_spec + * Optional. Infrastructure specification for the execution. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Tasks::initOnce(); + parent::__construct($data); + } + + /** + * The Cloud Storage URI of the jar file that contains the main class. + * The execution args are passed in as a sequence of named process + * arguments (`--key=value`). + * + * Generated from protobuf field string main_jar_file_uri = 100; + * @return string + */ + public function getMainJarFileUri() + { + return $this->readOneof(100); + } + + public function hasMainJarFileUri() + { + return $this->hasOneof(100); + } + + /** + * The Cloud Storage URI of the jar file that contains the main class. + * The execution args are passed in as a sequence of named process + * arguments (`--key=value`). + * + * Generated from protobuf field string main_jar_file_uri = 100; + * @param string $var + * @return $this + */ + public function setMainJarFileUri($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(100, $var); + + return $this; + } + + /** + * The name of the driver's main class. The jar file that contains the + * class must be in the default CLASSPATH or specified in + * `jar_file_uris`. + * The execution args are passed in as a sequence of named process + * arguments (`--key=value`). + * + * Generated from protobuf field string main_class = 101; + * @return string + */ + public function getMainClass() + { + return $this->readOneof(101); + } + + public function hasMainClass() + { + return $this->hasOneof(101); + } + + /** + * The name of the driver's main class. The jar file that contains the + * class must be in the default CLASSPATH or specified in + * `jar_file_uris`. + * The execution args are passed in as a sequence of named process + * arguments (`--key=value`). + * + * Generated from protobuf field string main_class = 101; + * @param string $var + * @return $this + */ + public function setMainClass($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(101, $var); + + return $this; + } + + /** + * The Gcloud Storage URI of the main Python file to use as the driver. + * Must be a .py file. The execution args are passed in as a sequence of + * named process arguments (`--key=value`). + * + * Generated from protobuf field string python_script_file = 102; + * @return string + */ + public function getPythonScriptFile() + { + return $this->readOneof(102); + } + + public function hasPythonScriptFile() + { + return $this->hasOneof(102); + } + + /** + * The Gcloud Storage URI of the main Python file to use as the driver. + * Must be a .py file. The execution args are passed in as a sequence of + * named process arguments (`--key=value`). + * + * Generated from protobuf field string python_script_file = 102; + * @param string $var + * @return $this + */ + public function setPythonScriptFile($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(102, $var); + + return $this; + } + + /** + * A reference to a query file. This should be the Cloud Storage URI of + * the query file. The execution args are used to declare a set of script + * variables (`set key="value";`). + * + * Generated from protobuf field string sql_script_file = 104; + * @return string + */ + public function getSqlScriptFile() + { + return $this->readOneof(104); + } + + public function hasSqlScriptFile() + { + return $this->hasOneof(104); + } + + /** + * A reference to a query file. This should be the Cloud Storage URI of + * the query file. The execution args are used to declare a set of script + * variables (`set key="value";`). + * + * Generated from protobuf field string sql_script_file = 104; + * @param string $var + * @return $this + */ + public function setSqlScriptFile($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(104, $var); + + return $this; + } + + /** + * The query text. + * The execution args are used to declare a set of script variables + * (`set key="value";`). + * + * Generated from protobuf field string sql_script = 105; + * @return string + */ + public function getSqlScript() + { + return $this->readOneof(105); + } + + public function hasSqlScript() + { + return $this->hasOneof(105); + } + + /** + * The query text. + * The execution args are used to declare a set of script variables + * (`set key="value";`). + * + * Generated from protobuf field string sql_script = 105; + * @param string $var + * @return $this + */ + public function setSqlScript($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(105, $var); + + return $this; + } + + /** + * Optional. Cloud Storage URIs of files to be placed in the working + * directory of each executor. + * + * Generated from protobuf field repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getFileUris() + { + return $this->file_uris; + } + + /** + * Optional. Cloud Storage URIs of files to be placed in the working + * directory of each executor. + * + * Generated from protobuf field repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setFileUris($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->file_uris = $arr; + + return $this; + } + + /** + * Optional. Cloud Storage URIs of archives to be extracted into the working + * directory of each executor. Supported file types: .jar, .tar, .tar.gz, + * .tgz, and .zip. + * + * Generated from protobuf field repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getArchiveUris() + { + return $this->archive_uris; + } + + /** + * Optional. Cloud Storage URIs of archives to be extracted into the working + * directory of each executor. Supported file types: .jar, .tar, .tar.gz, + * .tgz, and .zip. + * + * Generated from protobuf field repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setArchiveUris($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->archive_uris = $arr; + + return $this; + } + + /** + * Optional. Infrastructure specification for the execution. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Task.InfrastructureSpec infrastructure_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataplex\V1\Task\InfrastructureSpec|null + */ + public function getInfrastructureSpec() + { + return $this->infrastructure_spec; + } + + public function hasInfrastructureSpec() + { + return isset($this->infrastructure_spec); + } + + public function clearInfrastructureSpec() + { + unset($this->infrastructure_spec); + } + + /** + * Optional. Infrastructure specification for the execution. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Task.InfrastructureSpec infrastructure_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataplex\V1\Task\InfrastructureSpec $var + * @return $this + */ + public function setInfrastructureSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Task\InfrastructureSpec::class); + $this->infrastructure_spec = $var; + + return $this; + } + + /** + * @return string + */ + public function getDriver() + { + return $this->whichOneof("driver"); + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/TriggerSpec.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/TriggerSpec.php new file mode 100644 index 000000000000..31dd15ebe752 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/TriggerSpec.php @@ -0,0 +1,259 @@ +google.cloud.dataplex.v1.Task.TriggerSpec + */ +class TriggerSpec extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Immutable. Trigger type of the user-specified Task. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Task.TriggerSpec.Type type = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + */ + protected $type = 0; + /** + * Optional. The first run of the task will be after this time. + * If not specified, the task will run shortly after being submitted if + * ON_DEMAND and based on the schedule if RECURRING. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $start_time = null; + /** + * Optional. Prevent the task from executing. + * This does not cancel already running tasks. It is intended to temporarily + * disable RECURRING tasks. + * + * Generated from protobuf field bool disabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $disabled = false; + /** + * Optional. Number of retry attempts before aborting. + * Set to zero to never attempt to retry a failed task. + * + * Generated from protobuf field int32 max_retries = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $max_retries = 0; + protected $trigger; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $type + * Required. Immutable. Trigger type of the user-specified Task. + * @type \Google\Protobuf\Timestamp $start_time + * Optional. The first run of the task will be after this time. + * If not specified, the task will run shortly after being submitted if + * ON_DEMAND and based on the schedule if RECURRING. + * @type bool $disabled + * Optional. Prevent the task from executing. + * This does not cancel already running tasks. It is intended to temporarily + * disable RECURRING tasks. + * @type int $max_retries + * Optional. Number of retry attempts before aborting. + * Set to zero to never attempt to retry a failed task. + * @type string $schedule + * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for + * running tasks periodically. To explicitly set a timezone to the cron + * tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or + * "TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid + * string from IANA time zone database. For example, + * `CRON_TZ=America/New_York 1 * * * *`, or `TZ=America/New_York 1 * * * + * *`. This field is required for RECURRING tasks. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Tasks::initOnce(); + parent::__construct($data); + } + + /** + * Required. Immutable. Trigger type of the user-specified Task. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Task.TriggerSpec.Type type = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Required. Immutable. Trigger type of the user-specified Task. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Task.TriggerSpec.Type type = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\Task\TriggerSpec\Type::class); + $this->type = $var; + + return $this; + } + + /** + * Optional. The first run of the task will be after this time. + * If not specified, the task will run shortly after being submitted if + * ON_DEMAND and based on the schedule if RECURRING. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @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); + } + + /** + * Optional. The first run of the task will be after this time. + * If not specified, the task will run shortly after being submitted if + * ON_DEMAND and based on the schedule if RECURRING. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setStartTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->start_time = $var; + + return $this; + } + + /** + * Optional. Prevent the task from executing. + * This does not cancel already running tasks. It is intended to temporarily + * disable RECURRING tasks. + * + * Generated from protobuf field bool disabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getDisabled() + { + return $this->disabled; + } + + /** + * Optional. Prevent the task from executing. + * This does not cancel already running tasks. It is intended to temporarily + * disable RECURRING tasks. + * + * Generated from protobuf field bool disabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setDisabled($var) + { + GPBUtil::checkBool($var); + $this->disabled = $var; + + return $this; + } + + /** + * Optional. Number of retry attempts before aborting. + * Set to zero to never attempt to retry a failed task. + * + * Generated from protobuf field int32 max_retries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getMaxRetries() + { + return $this->max_retries; + } + + /** + * Optional. Number of retry attempts before aborting. + * Set to zero to never attempt to retry a failed task. + * + * Generated from protobuf field int32 max_retries = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setMaxRetries($var) + { + GPBUtil::checkInt32($var); + $this->max_retries = $var; + + return $this; + } + + /** + * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for + * running tasks periodically. To explicitly set a timezone to the cron + * tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or + * "TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid + * string from IANA time zone database. For example, + * `CRON_TZ=America/New_York 1 * * * *`, or `TZ=America/New_York 1 * * * + * *`. This field is required for RECURRING tasks. + * + * Generated from protobuf field string schedule = 100 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getSchedule() + { + return $this->readOneof(100); + } + + public function hasSchedule() + { + return $this->hasOneof(100); + } + + /** + * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for + * running tasks periodically. To explicitly set a timezone to the cron + * tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or + * "TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid + * string from IANA time zone database. For example, + * `CRON_TZ=America/New_York 1 * * * *`, or `TZ=America/New_York 1 * * * + * *`. This field is required for RECURRING tasks. + * + * Generated from protobuf field string schedule = 100 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setSchedule($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(100, $var); + + return $this; + } + + /** + * @return string + */ + public function getTrigger() + { + return $this->whichOneof("trigger"); + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/TriggerSpec/Type.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/TriggerSpec/Type.php new file mode 100644 index 000000000000..6121c0448a1b --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/TriggerSpec/Type.php @@ -0,0 +1,61 @@ +google.cloud.dataplex.v1.Task.TriggerSpec.Type + */ +class Type +{ + /** + * Unspecified trigger type. + * + * Generated from protobuf enum TYPE_UNSPECIFIED = 0; + */ + const TYPE_UNSPECIFIED = 0; + /** + * The task runs one-time shortly after Task Creation. + * + * Generated from protobuf enum ON_DEMAND = 1; + */ + const ON_DEMAND = 1; + /** + * The task is scheduled to run periodically. + * + * Generated from protobuf enum RECURRING = 2; + */ + const RECURRING = 2; + + private static $valueToName = [ + self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', + self::ON_DEMAND => 'ON_DEMAND', + self::RECURRING => 'RECURRING', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/TransferStatus.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/TransferStatus.php new file mode 100644 index 000000000000..f9c50188075b --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/TransferStatus.php @@ -0,0 +1,66 @@ +google.cloud.dataplex.v1.TransferStatus + */ +class TransferStatus +{ + /** + * The default value. It is set for resources that were not subject for + * migration from Data Catalog service. + * + * Generated from protobuf enum TRANSFER_STATUS_UNSPECIFIED = 0; + */ + const TRANSFER_STATUS_UNSPECIFIED = 0; + /** + * Indicates that a resource was migrated from Data Catalog service but it + * hasn't been transferred yet. In particular the resource cannot be updated + * from Dataplex API. + * + * Generated from protobuf enum TRANSFER_STATUS_MIGRATED = 1; + */ + const TRANSFER_STATUS_MIGRATED = 1; + /** + * Indicates that a resource was transferred from Data Catalog service. The + * resource can only be updated from Dataplex API. + * + * Generated from protobuf enum TRANSFER_STATUS_TRANSFERRED = 2; + */ + const TRANSFER_STATUS_TRANSFERRED = 2; + + private static $valueToName = [ + self::TRANSFER_STATUS_UNSPECIFIED => 'TRANSFER_STATUS_UNSPECIFIED', + self::TRANSFER_STATUS_MIGRATED => 'TRANSFER_STATUS_MIGRATED', + self::TRANSFER_STATUS_TRANSFERRED => 'TRANSFER_STATUS_TRANSFERRED', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Trigger.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Trigger.php new file mode 100644 index 000000000000..1b7f8f7b7fbd --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Trigger.php @@ -0,0 +1,144 @@ +google.cloud.dataplex.v1.Trigger + */ +class Trigger extends \Google\Protobuf\Internal\Message +{ + protected $mode; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\Trigger\OnDemand $on_demand + * The scan runs once via `RunDataScan` API. + * @type \Google\Cloud\Dataplex\V1\Trigger\Schedule $schedule + * The scan is scheduled to run periodically. + * @type \Google\Cloud\Dataplex\V1\Trigger\OneTime $one_time + * The scan runs once, and does not create an associated ScanJob child + * resource. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Processing::initOnce(); + parent::__construct($data); + } + + /** + * The scan runs once via `RunDataScan` API. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Trigger.OnDemand on_demand = 100; + * @return \Google\Cloud\Dataplex\V1\Trigger\OnDemand|null + */ + public function getOnDemand() + { + return $this->readOneof(100); + } + + public function hasOnDemand() + { + return $this->hasOneof(100); + } + + /** + * The scan runs once via `RunDataScan` API. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Trigger.OnDemand on_demand = 100; + * @param \Google\Cloud\Dataplex\V1\Trigger\OnDemand $var + * @return $this + */ + public function setOnDemand($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Trigger\OnDemand::class); + $this->writeOneof(100, $var); + + return $this; + } + + /** + * The scan is scheduled to run periodically. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Trigger.Schedule schedule = 101; + * @return \Google\Cloud\Dataplex\V1\Trigger\Schedule|null + */ + public function getSchedule() + { + return $this->readOneof(101); + } + + public function hasSchedule() + { + return $this->hasOneof(101); + } + + /** + * The scan is scheduled to run periodically. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Trigger.Schedule schedule = 101; + * @param \Google\Cloud\Dataplex\V1\Trigger\Schedule $var + * @return $this + */ + public function setSchedule($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Trigger\Schedule::class); + $this->writeOneof(101, $var); + + return $this; + } + + /** + * The scan runs once, and does not create an associated ScanJob child + * resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Trigger.OneTime one_time = 102; + * @return \Google\Cloud\Dataplex\V1\Trigger\OneTime|null + */ + public function getOneTime() + { + return $this->readOneof(102); + } + + public function hasOneTime() + { + return $this->hasOneof(102); + } + + /** + * The scan runs once, and does not create an associated ScanJob child + * resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Trigger.OneTime one_time = 102; + * @param \Google\Cloud\Dataplex\V1\Trigger\OneTime $var + * @return $this + */ + public function setOneTime($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Trigger\OneTime::class); + $this->writeOneof(102, $var); + + return $this; + } + + /** + * @return string + */ + public function getMode() + { + return $this->whichOneof("mode"); + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Trigger/OnDemand.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Trigger/OnDemand.php new file mode 100644 index 000000000000..4b7ad4570bb9 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Trigger/OnDemand.php @@ -0,0 +1,33 @@ +google.cloud.dataplex.v1.Trigger.OnDemand + */ +class OnDemand extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Processing::initOnce(); + parent::__construct($data); + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Trigger/OneTime.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Trigger/OneTime.php new file mode 100644 index 000000000000..a98dc2bf488d --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Trigger/OneTime.php @@ -0,0 +1,93 @@ +google.cloud.dataplex.v1.Trigger.OneTime + */ +class OneTime extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Time to live for OneTime scans. + * default value is 24 hours, minimum value is 0 seconds, and maximum value + * is 365 days. The time is calculated from the data scan job completion + * time. If value is set as 0 seconds, the scan will be immediately deleted + * upon job completion, regardless of whether the job succeeded or failed. + * + * Generated from protobuf field .google.protobuf.Duration ttl_after_scan_completion = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $ttl_after_scan_completion = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Duration $ttl_after_scan_completion + * Optional. Time to live for OneTime scans. + * default value is 24 hours, minimum value is 0 seconds, and maximum value + * is 365 days. The time is calculated from the data scan job completion + * time. If value is set as 0 seconds, the scan will be immediately deleted + * upon job completion, regardless of whether the job succeeded or failed. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Processing::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Time to live for OneTime scans. + * default value is 24 hours, minimum value is 0 seconds, and maximum value + * is 365 days. The time is calculated from the data scan job completion + * time. If value is set as 0 seconds, the scan will be immediately deleted + * upon job completion, regardless of whether the job succeeded or failed. + * + * Generated from protobuf field .google.protobuf.Duration ttl_after_scan_completion = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Duration|null + */ + public function getTtlAfterScanCompletion() + { + return $this->ttl_after_scan_completion; + } + + public function hasTtlAfterScanCompletion() + { + return isset($this->ttl_after_scan_completion); + } + + public function clearTtlAfterScanCompletion() + { + unset($this->ttl_after_scan_completion); + } + + /** + * Optional. Time to live for OneTime scans. + * default value is 24 hours, minimum value is 0 seconds, and maximum value + * is 365 days. The time is calculated from the data scan job completion + * time. If value is set as 0 seconds, the scan will be immediately deleted + * upon job completion, regardless of whether the job succeeded or failed. + * + * Generated from protobuf field .google.protobuf.Duration ttl_after_scan_completion = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setTtlAfterScanCompletion($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->ttl_after_scan_completion = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Trigger/Schedule.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Trigger/Schedule.php new file mode 100644 index 000000000000..ebd33ba0d353 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Trigger/Schedule.php @@ -0,0 +1,103 @@ +google.cloud.dataplex.v1.Trigger.Schedule + */ +class Schedule extends \Google\Protobuf\Internal\Message +{ + /** + * Required. [Cron](https://en.wikipedia.org/wiki/Cron) schedule for running + * scans periodically. + * To explicitly set a timezone in the cron tab, apply a prefix in the + * cron tab: **"CRON_TZ=${IANA_TIME_ZONE}"** or **"TZ=${IANA_TIME_ZONE}"**. + * The **${IANA_TIME_ZONE}** may only be a valid string from IANA time zone + * database + * ([wikipedia](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List)). + * For example, `CRON_TZ=America/New_York 1 * * * *`, or + * `TZ=America/New_York 1 * * * *`. + * This field is required for Schedule scans. + * + * Generated from protobuf field string cron = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $cron = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $cron + * Required. [Cron](https://en.wikipedia.org/wiki/Cron) schedule for running + * scans periodically. + * To explicitly set a timezone in the cron tab, apply a prefix in the + * cron tab: **"CRON_TZ=${IANA_TIME_ZONE}"** or **"TZ=${IANA_TIME_ZONE}"**. + * The **${IANA_TIME_ZONE}** may only be a valid string from IANA time zone + * database + * ([wikipedia](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List)). + * For example, `CRON_TZ=America/New_York 1 * * * *`, or + * `TZ=America/New_York 1 * * * *`. + * This field is required for Schedule scans. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Processing::initOnce(); + parent::__construct($data); + } + + /** + * Required. [Cron](https://en.wikipedia.org/wiki/Cron) schedule for running + * scans periodically. + * To explicitly set a timezone in the cron tab, apply a prefix in the + * cron tab: **"CRON_TZ=${IANA_TIME_ZONE}"** or **"TZ=${IANA_TIME_ZONE}"**. + * The **${IANA_TIME_ZONE}** may only be a valid string from IANA time zone + * database + * ([wikipedia](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List)). + * For example, `CRON_TZ=America/New_York 1 * * * *`, or + * `TZ=America/New_York 1 * * * *`. + * This field is required for Schedule scans. + * + * Generated from protobuf field string cron = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getCron() + { + return $this->cron; + } + + /** + * Required. [Cron](https://en.wikipedia.org/wiki/Cron) schedule for running + * scans periodically. + * To explicitly set a timezone in the cron tab, apply a prefix in the + * cron tab: **"CRON_TZ=${IANA_TIME_ZONE}"** or **"TZ=${IANA_TIME_ZONE}"**. + * The **${IANA_TIME_ZONE}** may only be a valid string from IANA time zone + * database + * ([wikipedia](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List)). + * For example, `CRON_TZ=America/New_York 1 * * * *`, or + * `TZ=America/New_York 1 * * * *`. + * This field is required for Schedule scans. + * + * Generated from protobuf field string cron = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setCron($var) + { + GPBUtil::checkString($var, True); + $this->cron = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateAspectTypeRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateAspectTypeRequest.php new file mode 100644 index 000000000000..c8024f33ed5f --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateAspectTypeRequest.php @@ -0,0 +1,174 @@ +google.cloud.dataplex.v1.UpdateAspectTypeRequest + */ +class UpdateAspectTypeRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. AspectType Resource + * + * Generated from protobuf field .google.cloud.dataplex.v1.AspectType aspect_type = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $aspect_type = null; + /** + * Required. Mask of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * + * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $validate_only = false; + + /** + * @param \Google\Cloud\Dataplex\V1\AspectType $aspectType Required. AspectType Resource + * @param \Google\Protobuf\FieldMask $updateMask Required. Mask of fields to update. + * + * @return \Google\Cloud\Dataplex\V1\UpdateAspectTypeRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Dataplex\V1\AspectType $aspectType, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setAspectType($aspectType) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\AspectType $aspect_type + * Required. AspectType Resource + * @type \Google\Protobuf\FieldMask $update_mask + * Required. Mask of fields to update. + * @type bool $validate_only + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. AspectType Resource + * + * Generated from protobuf field .google.cloud.dataplex.v1.AspectType aspect_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\AspectType|null + */ + public function getAspectType() + { + return $this->aspect_type; + } + + public function hasAspectType() + { + return isset($this->aspect_type); + } + + public function clearAspectType() + { + unset($this->aspect_type); + } + + /** + * Required. AspectType Resource + * + * Generated from protobuf field .google.cloud.dataplex.v1.AspectType aspect_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\AspectType $var + * @return $this + */ + public function setAspectType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\AspectType::class); + $this->aspect_type = $var; + + return $this; + } + + /** + * Required. Mask of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @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); + } + + /** + * Required. Mask of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * + * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * + * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateAssetRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateAssetRequest.php new file mode 100644 index 000000000000..1ad5f2151d8e --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateAssetRequest.php @@ -0,0 +1,179 @@ +google.cloud.dataplex.v1.UpdateAssetRequest + */ +class UpdateAssetRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Mask of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + /** + * Required. Update description. + * Only fields specified in `update_mask` are updated. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Asset asset = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $asset = null; + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * + * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $validate_only = false; + + /** + * @param \Google\Cloud\Dataplex\V1\Asset $asset Required. Update description. + * Only fields specified in `update_mask` are updated. + * @param \Google\Protobuf\FieldMask $updateMask Required. Mask of fields to update. + * + * @return \Google\Cloud\Dataplex\V1\UpdateAssetRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Dataplex\V1\Asset $asset, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setAsset($asset) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\FieldMask $update_mask + * Required. Mask of fields to update. + * @type \Google\Cloud\Dataplex\V1\Asset $asset + * Required. Update description. + * Only fields specified in `update_mask` are updated. + * @type bool $validate_only + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. Mask of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * @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); + } + + /** + * Required. Mask of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * @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. Update description. + * Only fields specified in `update_mask` are updated. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Asset asset = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\Asset|null + */ + public function getAsset() + { + return $this->asset; + } + + public function hasAsset() + { + return isset($this->asset); + } + + public function clearAsset() + { + unset($this->asset); + } + + /** + * Required. Update description. + * Only fields specified in `update_mask` are updated. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Asset asset = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\Asset $var + * @return $this + */ + public function setAsset($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Asset::class); + $this->asset = $var; + + return $this; + } + + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * + * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * + * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateDataAssetRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateDataAssetRequest.php new file mode 100644 index 000000000000..a31d7fe91e05 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateDataAssetRequest.php @@ -0,0 +1,184 @@ +google.cloud.dataplex.v1.UpdateDataAssetRequest + */ +class UpdateDataAssetRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The data asset to update. + * The data asset's `name` field is used to identify the data asset to update. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataAsset data_asset = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $data_asset = null; + /** + * Optional. The list of fields to update. + * If this is empty or not set, then all the fields will be updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $update_mask = null; + /** + * Optional. Validates the request without actually updating the data asset. + * Defaults to false. + * + * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $validate_only = false; + + /** + * @param \Google\Cloud\Dataplex\V1\DataAsset $dataAsset Required. The data asset to update. + * The data asset's `name` field is used to identify the data asset to update. + * @param \Google\Protobuf\FieldMask $updateMask Optional. The list of fields to update. + * If this is empty or not set, then all the fields will be updated. + * + * @return \Google\Cloud\Dataplex\V1\UpdateDataAssetRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Dataplex\V1\DataAsset $dataAsset, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setDataAsset($dataAsset) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\DataAsset $data_asset + * Required. The data asset to update. + * The data asset's `name` field is used to identify the data asset to update. + * @type \Google\Protobuf\FieldMask $update_mask + * Optional. The list of fields to update. + * If this is empty or not set, then all the fields will be updated. + * @type bool $validate_only + * Optional. Validates the request without actually updating the data asset. + * Defaults to false. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataProducts::initOnce(); + parent::__construct($data); + } + + /** + * Required. The data asset to update. + * The data asset's `name` field is used to identify the data asset to update. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataAsset data_asset = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\DataAsset|null + */ + public function getDataAsset() + { + return $this->data_asset; + } + + public function hasDataAsset() + { + return isset($this->data_asset); + } + + public function clearDataAsset() + { + unset($this->data_asset); + } + + /** + * Required. The data asset to update. + * The data asset's `name` field is used to identify the data asset to update. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataAsset data_asset = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\DataAsset $var + * @return $this + */ + public function setDataAsset($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataAsset::class); + $this->data_asset = $var; + + return $this; + } + + /** + * Optional. The list of fields to update. + * If this is empty or not set, then all the fields will be updated. + * + * 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 to update. + * If this is empty or not set, then all the fields will be updated. + * + * 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; + } + + /** + * Optional. Validates the request without actually updating the data asset. + * Defaults to false. + * + * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * Optional. Validates the request without actually updating the data asset. + * Defaults to false. + * + * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateDataAttributeBindingRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateDataAttributeBindingRequest.php new file mode 100644 index 000000000000..1202c5cc9f1f --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateDataAttributeBindingRequest.php @@ -0,0 +1,174 @@ +google.cloud.dataplex.v1.UpdateDataAttributeBindingRequest + */ +class UpdateDataAttributeBindingRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Mask of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + /** + * Required. Only fields specified in `update_mask` are updated. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataAttributeBinding data_attribute_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $data_attribute_binding = null; + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * + * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $validate_only = false; + + /** + * @param \Google\Cloud\Dataplex\V1\DataAttributeBinding $dataAttributeBinding Required. Only fields specified in `update_mask` are updated. + * @param \Google\Protobuf\FieldMask $updateMask Required. Mask of fields to update. + * + * @return \Google\Cloud\Dataplex\V1\UpdateDataAttributeBindingRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Dataplex\V1\DataAttributeBinding $dataAttributeBinding, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setDataAttributeBinding($dataAttributeBinding) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\FieldMask $update_mask + * Required. Mask of fields to update. + * @type \Google\Cloud\Dataplex\V1\DataAttributeBinding $data_attribute_binding + * Required. Only fields specified in `update_mask` are updated. + * @type bool $validate_only + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataTaxonomy::initOnce(); + parent::__construct($data); + } + + /** + * Required. Mask of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * @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); + } + + /** + * Required. Mask of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * @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. Only fields specified in `update_mask` are updated. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataAttributeBinding data_attribute_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\DataAttributeBinding|null + */ + public function getDataAttributeBinding() + { + return $this->data_attribute_binding; + } + + public function hasDataAttributeBinding() + { + return isset($this->data_attribute_binding); + } + + public function clearDataAttributeBinding() + { + unset($this->data_attribute_binding); + } + + /** + * Required. Only fields specified in `update_mask` are updated. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataAttributeBinding data_attribute_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\DataAttributeBinding $var + * @return $this + */ + public function setDataAttributeBinding($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataAttributeBinding::class); + $this->data_attribute_binding = $var; + + return $this; + } + + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * + * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * + * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateDataAttributeRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateDataAttributeRequest.php new file mode 100644 index 000000000000..7fd9a579b0ea --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateDataAttributeRequest.php @@ -0,0 +1,174 @@ +google.cloud.dataplex.v1.UpdateDataAttributeRequest + */ +class UpdateDataAttributeRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Mask of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + /** + * Required. Only fields specified in `update_mask` are updated. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataAttribute data_attribute = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $data_attribute = null; + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * + * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $validate_only = false; + + /** + * @param \Google\Cloud\Dataplex\V1\DataAttribute $dataAttribute Required. Only fields specified in `update_mask` are updated. + * @param \Google\Protobuf\FieldMask $updateMask Required. Mask of fields to update. + * + * @return \Google\Cloud\Dataplex\V1\UpdateDataAttributeRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Dataplex\V1\DataAttribute $dataAttribute, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setDataAttribute($dataAttribute) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\FieldMask $update_mask + * Required. Mask of fields to update. + * @type \Google\Cloud\Dataplex\V1\DataAttribute $data_attribute + * Required. Only fields specified in `update_mask` are updated. + * @type bool $validate_only + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataTaxonomy::initOnce(); + parent::__construct($data); + } + + /** + * Required. Mask of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * @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); + } + + /** + * Required. Mask of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * @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. Only fields specified in `update_mask` are updated. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataAttribute data_attribute = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\DataAttribute|null + */ + public function getDataAttribute() + { + return $this->data_attribute; + } + + public function hasDataAttribute() + { + return isset($this->data_attribute); + } + + public function clearDataAttribute() + { + unset($this->data_attribute); + } + + /** + * Required. Only fields specified in `update_mask` are updated. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataAttribute data_attribute = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\DataAttribute $var + * @return $this + */ + public function setDataAttribute($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataAttribute::class); + $this->data_attribute = $var; + + return $this; + } + + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * + * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * + * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateDataProductRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateDataProductRequest.php new file mode 100644 index 000000000000..3bd5730f3a15 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateDataProductRequest.php @@ -0,0 +1,189 @@ +google.cloud.dataplex.v1.UpdateDataProductRequest + */ +class UpdateDataProductRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The data product to update. + * The data product's `name` field is used to identify the data product to + * update. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataProduct data_product = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $data_product = null; + /** + * Optional. The list of fields to update. + * If this is empty or not set, then all the fields will be updated. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $update_mask = null; + /** + * Optional. Validates the request without actually updating the data product. + * Default: false. + * + * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $validate_only = false; + + /** + * @param \Google\Cloud\Dataplex\V1\DataProduct $dataProduct Required. The data product to update. + * The data product's `name` field is used to identify the data product to + * update. + * @param \Google\Protobuf\FieldMask $updateMask Optional. The list of fields to update. + * If this is empty or not set, then all the fields will be updated. + * + * @return \Google\Cloud\Dataplex\V1\UpdateDataProductRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Dataplex\V1\DataProduct $dataProduct, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setDataProduct($dataProduct) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\DataProduct $data_product + * Required. The data product to update. + * The data product's `name` field is used to identify the data product to + * update. + * @type \Google\Protobuf\FieldMask $update_mask + * Optional. The list of fields to update. + * If this is empty or not set, then all the fields will be updated. + * @type bool $validate_only + * Optional. Validates the request without actually updating the data product. + * Default: false. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataProducts::initOnce(); + parent::__construct($data); + } + + /** + * Required. The data product to update. + * The data product's `name` field is used to identify the data product to + * update. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataProduct data_product = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\DataProduct|null + */ + public function getDataProduct() + { + return $this->data_product; + } + + public function hasDataProduct() + { + return isset($this->data_product); + } + + public function clearDataProduct() + { + unset($this->data_product); + } + + /** + * Required. The data product to update. + * The data product's `name` field is used to identify the data product to + * update. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataProduct data_product = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\DataProduct $var + * @return $this + */ + public function setDataProduct($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataProduct::class); + $this->data_product = $var; + + return $this; + } + + /** + * Optional. The list of fields to update. + * If this is empty or not set, then all the fields will be updated. + * + * 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 to update. + * If this is empty or not set, then all the fields will be updated. + * + * 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; + } + + /** + * Optional. Validates the request without actually updating the data product. + * Default: false. + * + * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * Optional. Validates the request without actually updating the data product. + * Default: false. + * + * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateDataScanRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateDataScanRequest.php new file mode 100644 index 000000000000..e3515e81d3dd --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateDataScanRequest.php @@ -0,0 +1,180 @@ +google.cloud.dataplex.v1.UpdateDataScanRequest + */ +class UpdateDataScanRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. DataScan resource to be updated. + * Only fields specified in `update_mask` are updated. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScan data_scan = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $data_scan = null; + /** + * Optional. Mask of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $update_mask = null; + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is `false`. + * + * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $validate_only = false; + + /** + * @param \Google\Cloud\Dataplex\V1\DataScan $dataScan Required. DataScan resource to be updated. + * + * Only fields specified in `update_mask` are updated. + * @param \Google\Protobuf\FieldMask $updateMask Optional. Mask of fields to update. + * + * @return \Google\Cloud\Dataplex\V1\UpdateDataScanRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Dataplex\V1\DataScan $dataScan, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setDataScan($dataScan) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\DataScan $data_scan + * Required. DataScan resource to be updated. + * Only fields specified in `update_mask` are updated. + * @type \Google\Protobuf\FieldMask $update_mask + * Optional. Mask of fields to update. + * @type bool $validate_only + * Optional. Only validate the request, but do not perform mutations. + * The default is `false`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Datascans::initOnce(); + parent::__construct($data); + } + + /** + * Required. DataScan resource to be updated. + * Only fields specified in `update_mask` are updated. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScan data_scan = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\DataScan|null + */ + public function getDataScan() + { + return $this->data_scan; + } + + public function hasDataScan() + { + return isset($this->data_scan); + } + + public function clearDataScan() + { + unset($this->data_scan); + } + + /** + * Required. DataScan resource to be updated. + * Only fields specified in `update_mask` are updated. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataScan data_scan = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\DataScan $var + * @return $this + */ + public function setDataScan($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataScan::class); + $this->data_scan = $var; + + return $this; + } + + /** + * Optional. Mask of fields 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. Mask of fields 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; + } + + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is `false`. + * + * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is `false`. + * + * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateDataTaxonomyRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateDataTaxonomyRequest.php new file mode 100644 index 000000000000..4351810e4aba --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateDataTaxonomyRequest.php @@ -0,0 +1,175 @@ +google.cloud.dataplex.v1.UpdateDataTaxonomyRequest + */ +class UpdateDataTaxonomyRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Mask of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + /** + * Required. Only fields specified in `update_mask` are updated. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataTaxonomy data_taxonomy = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $data_taxonomy = null; + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * + * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $validate_only = false; + + /** + * @param \Google\Cloud\Dataplex\V1\DataTaxonomy $dataTaxonomy Required. Only fields specified in `update_mask` are updated. + * @param \Google\Protobuf\FieldMask $updateMask Required. Mask of fields to update. + * + * @return \Google\Cloud\Dataplex\V1\UpdateDataTaxonomyRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Dataplex\V1\DataTaxonomy $dataTaxonomy, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setDataTaxonomy($dataTaxonomy) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\FieldMask $update_mask + * Required. Mask of fields to update. + * @type \Google\Cloud\Dataplex\V1\DataTaxonomy $data_taxonomy + * Required. Only fields specified in `update_mask` are updated. + * @type bool $validate_only + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataTaxonomy::initOnce(); + parent::__construct($data); + } + + /** + * Required. Mask of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * @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); + } + + /** + * Required. Mask of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * @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. Only fields specified in `update_mask` are updated. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataTaxonomy data_taxonomy = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\DataTaxonomy|null + */ + public function getDataTaxonomy() + { + return $this->data_taxonomy; + } + + public function hasDataTaxonomy() + { + return isset($this->data_taxonomy); + } + + public function clearDataTaxonomy() + { + unset($this->data_taxonomy); + } + + /** + * Required. Only fields specified in `update_mask` are updated. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataTaxonomy data_taxonomy = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\DataTaxonomy $var + * @return $this + */ + public function setDataTaxonomy($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataTaxonomy::class); + $this->data_taxonomy = $var; + + return $this; + } + + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * + * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * + * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateEncryptionConfigRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateEncryptionConfigRequest.php new file mode 100644 index 000000000000..e2b1b7b49c6e --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateEncryptionConfigRequest.php @@ -0,0 +1,146 @@ +google.cloud.dataplex.v1.UpdateEncryptionConfigRequest + */ +class UpdateEncryptionConfigRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The EncryptionConfig to update. + * + * Generated from protobuf field .google.cloud.dataplex.v1.EncryptionConfig encryption_config = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $encryption_config = null; + /** + * Optional. Mask of fields to update. + * The service treats an omitted field mask as an implied field mask + * equivalent to all fields that are populated (have a non-empty value). + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $update_mask = null; + + /** + * @param \Google\Cloud\Dataplex\V1\EncryptionConfig $encryptionConfig Required. The EncryptionConfig to update. + * @param \Google\Protobuf\FieldMask $updateMask Optional. Mask of fields to update. + * The service treats an omitted field mask as an implied field mask + * equivalent to all fields that are populated (have a non-empty value). + * + * @return \Google\Cloud\Dataplex\V1\UpdateEncryptionConfigRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Dataplex\V1\EncryptionConfig $encryptionConfig, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setEncryptionConfig($encryptionConfig) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\EncryptionConfig $encryption_config + * Required. The EncryptionConfig to update. + * @type \Google\Protobuf\FieldMask $update_mask + * Optional. Mask of fields to update. + * The service treats an omitted field mask as an implied field mask + * equivalent to all fields that are populated (have a non-empty value). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Cmek::initOnce(); + parent::__construct($data); + } + + /** + * Required. The EncryptionConfig to update. + * + * Generated from protobuf field .google.cloud.dataplex.v1.EncryptionConfig encryption_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\EncryptionConfig|null + */ + public function getEncryptionConfig() + { + return $this->encryption_config; + } + + public function hasEncryptionConfig() + { + return isset($this->encryption_config); + } + + public function clearEncryptionConfig() + { + unset($this->encryption_config); + } + + /** + * Required. The EncryptionConfig to update. + * + * Generated from protobuf field .google.cloud.dataplex.v1.EncryptionConfig encryption_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\EncryptionConfig $var + * @return $this + */ + public function setEncryptionConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\EncryptionConfig::class); + $this->encryption_config = $var; + + return $this; + } + + /** + * Optional. Mask of fields to update. + * The service treats an omitted field mask as an implied field mask + * equivalent to all fields that are populated (have a non-empty value). + * + * 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. Mask of fields to update. + * The service treats an omitted field mask as an implied field mask + * equivalent to all fields that are populated (have a non-empty value). + * + * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateEntityRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateEntityRequest.php new file mode 100644 index 000000000000..bb23770318fc --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateEntityRequest.php @@ -0,0 +1,118 @@ +google.cloud.dataplex.v1.UpdateEntityRequest + */ +class UpdateEntityRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Update description. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Entity entity = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $entity = null; + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * + * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $validate_only = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\Entity $entity + * Required. Update description. + * @type bool $validate_only + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Metadata::initOnce(); + parent::__construct($data); + } + + /** + * Required. Update description. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Entity entity = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\Entity|null + */ + public function getEntity() + { + return $this->entity; + } + + public function hasEntity() + { + return isset($this->entity); + } + + public function clearEntity() + { + unset($this->entity); + } + + /** + * Required. Update description. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Entity entity = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\Entity $var + * @return $this + */ + public function setEntity($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Entity::class); + $this->entity = $var; + + return $this; + } + + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * + * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * + * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateEntryGroupRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateEntryGroupRequest.php new file mode 100644 index 000000000000..abd73bd98cb5 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateEntryGroupRequest.php @@ -0,0 +1,174 @@ +google.cloud.dataplex.v1.UpdateEntryGroupRequest + */ +class UpdateEntryGroupRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. EntryGroup Resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.EntryGroup entry_group = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $entry_group = null; + /** + * Required. Mask of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + /** + * Optional. The service validates the request, without performing any + * mutations. The default is false. + * + * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $validate_only = false; + + /** + * @param \Google\Cloud\Dataplex\V1\EntryGroup $entryGroup Required. EntryGroup Resource. + * @param \Google\Protobuf\FieldMask $updateMask Required. Mask of fields to update. + * + * @return \Google\Cloud\Dataplex\V1\UpdateEntryGroupRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Dataplex\V1\EntryGroup $entryGroup, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setEntryGroup($entryGroup) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\EntryGroup $entry_group + * Required. EntryGroup Resource. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. Mask of fields to update. + * @type bool $validate_only + * Optional. The service validates the request, without performing any + * mutations. The default is false. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. EntryGroup Resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.EntryGroup entry_group = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\EntryGroup|null + */ + public function getEntryGroup() + { + return $this->entry_group; + } + + public function hasEntryGroup() + { + return isset($this->entry_group); + } + + public function clearEntryGroup() + { + unset($this->entry_group); + } + + /** + * Required. EntryGroup Resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.EntryGroup entry_group = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\EntryGroup $var + * @return $this + */ + public function setEntryGroup($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\EntryGroup::class); + $this->entry_group = $var; + + return $this; + } + + /** + * Required. Mask of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @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); + } + + /** + * Required. Mask of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + + /** + * Optional. The service validates the request, without performing any + * mutations. The default is false. + * + * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * Optional. The service validates the request, without performing any + * mutations. The default is false. + * + * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateEntryLinkRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateEntryLinkRequest.php new file mode 100644 index 000000000000..3618e2b20abf --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateEntryLinkRequest.php @@ -0,0 +1,178 @@ +google.cloud.dataplex.v1.UpdateEntryLinkRequest + */ +class UpdateEntryLinkRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Entry Link resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.EntryLink entry_link = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $entry_link = null; + /** + * Optional. If set to true and the entry link doesn't exist, the service will + * create it. + * + * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $allow_missing = false; + /** + * Optional. The map keys of the Aspects which the service should modify. + * It should be the aspect type reference in the format + * `{project_id_or_number}.{location_id}.{aspect_type_id}`. + * If this field is left empty, the service treats it as specifying + * exactly those Aspects present in the request. + * + * Generated from protobuf field repeated string aspect_keys = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $aspect_keys; + + /** + * @param \Google\Cloud\Dataplex\V1\EntryLink $entryLink Required. Entry Link resource. + * + * @return \Google\Cloud\Dataplex\V1\UpdateEntryLinkRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Dataplex\V1\EntryLink $entryLink): self + { + return (new self()) + ->setEntryLink($entryLink); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\EntryLink $entry_link + * Required. Entry Link resource. + * @type bool $allow_missing + * Optional. If set to true and the entry link doesn't exist, the service will + * create it. + * @type string[] $aspect_keys + * Optional. The map keys of the Aspects which the service should modify. + * It should be the aspect type reference in the format + * `{project_id_or_number}.{location_id}.{aspect_type_id}`. + * If this field is left empty, the service treats it as specifying + * exactly those Aspects present in the request. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. Entry Link resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.EntryLink entry_link = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\EntryLink|null + */ + public function getEntryLink() + { + return $this->entry_link; + } + + public function hasEntryLink() + { + return isset($this->entry_link); + } + + public function clearEntryLink() + { + unset($this->entry_link); + } + + /** + * Required. Entry Link resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.EntryLink entry_link = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\EntryLink $var + * @return $this + */ + public function setEntryLink($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\EntryLink::class); + $this->entry_link = $var; + + return $this; + } + + /** + * Optional. If set to true and the entry link doesn't exist, the service will + * create it. + * + * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getAllowMissing() + { + return $this->allow_missing; + } + + /** + * Optional. If set to true and the entry link doesn't exist, the service will + * create it. + * + * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setAllowMissing($var) + { + GPBUtil::checkBool($var); + $this->allow_missing = $var; + + return $this; + } + + /** + * Optional. The map keys of the Aspects which the service should modify. + * It should be the aspect type reference in the format + * `{project_id_or_number}.{location_id}.{aspect_type_id}`. + * If this field is left empty, the service treats it as specifying + * exactly those Aspects present in the request. + * + * Generated from protobuf field repeated string aspect_keys = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getAspectKeys() + { + return $this->aspect_keys; + } + + /** + * Optional. The map keys of the Aspects which the service should modify. + * It should be the aspect type reference in the format + * `{project_id_or_number}.{location_id}.{aspect_type_id}`. + * If this field is left empty, the service treats it as specifying + * exactly those Aspects present in the request. + * + * Generated from protobuf field repeated string aspect_keys = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setAspectKeys($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->aspect_keys = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateEntryRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateEntryRequest.php new file mode 100644 index 000000000000..6670a0e01dd1 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateEntryRequest.php @@ -0,0 +1,322 @@ +google.cloud.dataplex.v1.UpdateEntryRequest + */ +class UpdateEntryRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Entry resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Entry entry = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $entry = null; + /** + * Optional. Mask of fields to update. To update Aspects, the update_mask must + * contain the value "aspects". + * If the update_mask is empty, the service will update all modifiable fields + * present in the request. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $update_mask = null; + /** + * Optional. If set to true and the entry doesn't exist, the service will + * create it. + * + * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $allow_missing = false; + /** + * Optional. If set to true and the aspect_keys specify aspect ranges, the + * service deletes any existing aspects from that range that weren't provided + * in the request. + * + * Generated from protobuf field bool delete_missing_aspects = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $delete_missing_aspects = false; + /** + * Optional. The map keys of the Aspects which the service should modify. It + * supports the following syntaxes: + * * `` - matches an aspect of the given type and empty + * path. + * * `\@path` - matches an aspect of the given type and + * specified path. For example, to attach an aspect to a field that is + * specified by the `schema` aspect, the path should have the format + * `Schema.`. + * * `\@*` - matches aspects of the given type for all + * paths. + * * `*\@path` - matches aspects of all types on the given path. + * The service will not remove existing aspects matching the syntax unless + * `delete_missing_aspects` is set to true. + * If this field is left empty, the service treats it as specifying + * exactly those Aspects present in the request. + * + * Generated from protobuf field repeated string aspect_keys = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $aspect_keys; + + /** + * @param \Google\Cloud\Dataplex\V1\Entry $entry Required. Entry resource. + * @param \Google\Protobuf\FieldMask $updateMask Optional. Mask of fields to update. To update Aspects, the update_mask must + * contain the value "aspects". + * + * If the update_mask is empty, the service will update all modifiable fields + * present in the request. + * + * @return \Google\Cloud\Dataplex\V1\UpdateEntryRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Dataplex\V1\Entry $entry, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setEntry($entry) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\Entry $entry + * Required. Entry resource. + * @type \Google\Protobuf\FieldMask $update_mask + * Optional. Mask of fields to update. To update Aspects, the update_mask must + * contain the value "aspects". + * If the update_mask is empty, the service will update all modifiable fields + * present in the request. + * @type bool $allow_missing + * Optional. If set to true and the entry doesn't exist, the service will + * create it. + * @type bool $delete_missing_aspects + * Optional. If set to true and the aspect_keys specify aspect ranges, the + * service deletes any existing aspects from that range that weren't provided + * in the request. + * @type string[] $aspect_keys + * Optional. The map keys of the Aspects which the service should modify. It + * supports the following syntaxes: + * * `` - matches an aspect of the given type and empty + * path. + * * `\@path` - matches an aspect of the given type and + * specified path. For example, to attach an aspect to a field that is + * specified by the `schema` aspect, the path should have the format + * `Schema.`. + * * `\@*` - matches aspects of the given type for all + * paths. + * * `*\@path` - matches aspects of all types on the given path. + * The service will not remove existing aspects matching the syntax unless + * `delete_missing_aspects` is set to true. + * If this field is left empty, the service treats it as specifying + * exactly those Aspects present in the request. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. Entry resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Entry entry = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\Entry|null + */ + public function getEntry() + { + return $this->entry; + } + + public function hasEntry() + { + return isset($this->entry); + } + + public function clearEntry() + { + unset($this->entry); + } + + /** + * Required. Entry resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Entry entry = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\Entry $var + * @return $this + */ + public function setEntry($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Entry::class); + $this->entry = $var; + + return $this; + } + + /** + * Optional. Mask of fields to update. To update Aspects, the update_mask must + * contain the value "aspects". + * If the update_mask is empty, the service will update all modifiable fields + * present in the request. + * + * 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. Mask of fields to update. To update Aspects, the update_mask must + * contain the value "aspects". + * If the update_mask is empty, the service will update all modifiable fields + * present in the request. + * + * 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; + } + + /** + * Optional. If set to true and the entry doesn't exist, the service will + * create it. + * + * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getAllowMissing() + { + return $this->allow_missing; + } + + /** + * Optional. If set to true and the entry doesn't exist, the service will + * create it. + * + * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setAllowMissing($var) + { + GPBUtil::checkBool($var); + $this->allow_missing = $var; + + return $this; + } + + /** + * Optional. If set to true and the aspect_keys specify aspect ranges, the + * service deletes any existing aspects from that range that weren't provided + * in the request. + * + * Generated from protobuf field bool delete_missing_aspects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getDeleteMissingAspects() + { + return $this->delete_missing_aspects; + } + + /** + * Optional. If set to true and the aspect_keys specify aspect ranges, the + * service deletes any existing aspects from that range that weren't provided + * in the request. + * + * Generated from protobuf field bool delete_missing_aspects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setDeleteMissingAspects($var) + { + GPBUtil::checkBool($var); + $this->delete_missing_aspects = $var; + + return $this; + } + + /** + * Optional. The map keys of the Aspects which the service should modify. It + * supports the following syntaxes: + * * `` - matches an aspect of the given type and empty + * path. + * * `\@path` - matches an aspect of the given type and + * specified path. For example, to attach an aspect to a field that is + * specified by the `schema` aspect, the path should have the format + * `Schema.`. + * * `\@*` - matches aspects of the given type for all + * paths. + * * `*\@path` - matches aspects of all types on the given path. + * The service will not remove existing aspects matching the syntax unless + * `delete_missing_aspects` is set to true. + * If this field is left empty, the service treats it as specifying + * exactly those Aspects present in the request. + * + * Generated from protobuf field repeated string aspect_keys = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getAspectKeys() + { + return $this->aspect_keys; + } + + /** + * Optional. The map keys of the Aspects which the service should modify. It + * supports the following syntaxes: + * * `` - matches an aspect of the given type and empty + * path. + * * `\@path` - matches an aspect of the given type and + * specified path. For example, to attach an aspect to a field that is + * specified by the `schema` aspect, the path should have the format + * `Schema.`. + * * `\@*` - matches aspects of the given type for all + * paths. + * * `*\@path` - matches aspects of all types on the given path. + * The service will not remove existing aspects matching the syntax unless + * `delete_missing_aspects` is set to true. + * If this field is left empty, the service treats it as specifying + * exactly those Aspects present in the request. + * + * Generated from protobuf field repeated string aspect_keys = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setAspectKeys($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->aspect_keys = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateEntryTypeRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateEntryTypeRequest.php new file mode 100644 index 000000000000..48a9a9a12e0f --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateEntryTypeRequest.php @@ -0,0 +1,174 @@ +google.cloud.dataplex.v1.UpdateEntryTypeRequest + */ +class UpdateEntryTypeRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. EntryType Resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.EntryType entry_type = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $entry_type = null; + /** + * Required. Mask of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + /** + * Optional. The service validates the request without performing any + * mutations. The default is false. + * + * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $validate_only = false; + + /** + * @param \Google\Cloud\Dataplex\V1\EntryType $entryType Required. EntryType Resource. + * @param \Google\Protobuf\FieldMask $updateMask Required. Mask of fields to update. + * + * @return \Google\Cloud\Dataplex\V1\UpdateEntryTypeRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Dataplex\V1\EntryType $entryType, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setEntryType($entryType) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\EntryType $entry_type + * Required. EntryType Resource. + * @type \Google\Protobuf\FieldMask $update_mask + * Required. Mask of fields to update. + * @type bool $validate_only + * Optional. The service validates the request without performing any + * mutations. The default is false. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. EntryType Resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.EntryType entry_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\EntryType|null + */ + public function getEntryType() + { + return $this->entry_type; + } + + public function hasEntryType() + { + return isset($this->entry_type); + } + + public function clearEntryType() + { + unset($this->entry_type); + } + + /** + * Required. EntryType Resource. + * + * Generated from protobuf field .google.cloud.dataplex.v1.EntryType entry_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\EntryType $var + * @return $this + */ + public function setEntryType($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\EntryType::class); + $this->entry_type = $var; + + return $this; + } + + /** + * Required. Mask of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @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); + } + + /** + * Required. Mask of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + + /** + * Optional. The service validates the request without performing any + * mutations. The default is false. + * + * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * Optional. The service validates the request without performing any + * mutations. The default is false. + * + * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateGlossaryCategoryRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateGlossaryCategoryRequest.php new file mode 100644 index 000000000000..9be8d0f5d3c4 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateGlossaryCategoryRequest.php @@ -0,0 +1,151 @@ +google.cloud.dataplex.v1.UpdateGlossaryCategoryRequest + */ +class UpdateGlossaryCategoryRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The GlossaryCategory to update. + * The GlossaryCategory's `name` field is used to identify the + * GlossaryCategory to update. Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id} + * + * Generated from protobuf field .google.cloud.dataplex.v1.GlossaryCategory category = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $category = null; + /** + * Required. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * @param \Google\Cloud\Dataplex\V1\GlossaryCategory $category Required. The GlossaryCategory to update. + * The GlossaryCategory's `name` field is used to identify the + * GlossaryCategory to update. Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id} + * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to update. + * + * @return \Google\Cloud\Dataplex\V1\UpdateGlossaryCategoryRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Dataplex\V1\GlossaryCategory $category, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setCategory($category) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\GlossaryCategory $category + * Required. The GlossaryCategory to update. + * The GlossaryCategory's `name` field is used to identify the + * GlossaryCategory to update. Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id} + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The list of fields to update. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\BusinessGlossary::initOnce(); + parent::__construct($data); + } + + /** + * Required. The GlossaryCategory to update. + * The GlossaryCategory's `name` field is used to identify the + * GlossaryCategory to update. Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id} + * + * Generated from protobuf field .google.cloud.dataplex.v1.GlossaryCategory category = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\GlossaryCategory|null + */ + public function getCategory() + { + return $this->category; + } + + public function hasCategory() + { + return isset($this->category); + } + + public function clearCategory() + { + unset($this->category); + } + + /** + * Required. The GlossaryCategory to update. + * The GlossaryCategory's `name` field is used to identify the + * GlossaryCategory to update. Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id} + * + * Generated from protobuf field .google.cloud.dataplex.v1.GlossaryCategory category = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\GlossaryCategory $var + * @return $this + */ + public function setCategory($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\GlossaryCategory::class); + $this->category = $var; + + return $this; + } + + /** + * Required. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @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); + } + + /** + * Required. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateGlossaryRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateGlossaryRequest.php new file mode 100644 index 000000000000..56e39f0fe6e8 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateGlossaryRequest.php @@ -0,0 +1,189 @@ +google.cloud.dataplex.v1.UpdateGlossaryRequest + */ +class UpdateGlossaryRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The Glossary to update. + * The Glossary's `name` field is used to identify the Glossary to update. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} + * + * Generated from protobuf field .google.cloud.dataplex.v1.Glossary glossary = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $glossary = null; + /** + * Required. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + /** + * Optional. Validates the request without actually updating the Glossary. + * Default: false. + * + * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $validate_only = false; + + /** + * @param \Google\Cloud\Dataplex\V1\Glossary $glossary Required. The Glossary to update. + * The Glossary's `name` field is used to identify the Glossary to update. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} + * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to update. + * + * @return \Google\Cloud\Dataplex\V1\UpdateGlossaryRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Dataplex\V1\Glossary $glossary, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setGlossary($glossary) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\Glossary $glossary + * Required. The Glossary to update. + * The Glossary's `name` field is used to identify the Glossary to update. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The list of fields to update. + * @type bool $validate_only + * Optional. Validates the request without actually updating the Glossary. + * Default: false. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\BusinessGlossary::initOnce(); + parent::__construct($data); + } + + /** + * Required. The Glossary to update. + * The Glossary's `name` field is used to identify the Glossary to update. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} + * + * Generated from protobuf field .google.cloud.dataplex.v1.Glossary glossary = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\Glossary|null + */ + public function getGlossary() + { + return $this->glossary; + } + + public function hasGlossary() + { + return isset($this->glossary); + } + + public function clearGlossary() + { + unset($this->glossary); + } + + /** + * Required. The Glossary to update. + * The Glossary's `name` field is used to identify the Glossary to update. + * Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} + * + * Generated from protobuf field .google.cloud.dataplex.v1.Glossary glossary = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\Glossary $var + * @return $this + */ + public function setGlossary($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Glossary::class); + $this->glossary = $var; + + return $this; + } + + /** + * Required. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @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); + } + + /** + * Required. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + + /** + * Optional. Validates the request without actually updating the Glossary. + * Default: false. + * + * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * Optional. Validates the request without actually updating the Glossary. + * Default: false. + * + * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateGlossaryTermRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateGlossaryTermRequest.php new file mode 100644 index 000000000000..4261ded19d40 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateGlossaryTermRequest.php @@ -0,0 +1,151 @@ +google.cloud.dataplex.v1.UpdateGlossaryTermRequest + */ +class UpdateGlossaryTermRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The GlossaryTerm to update. + * The GlossaryTerm's `name` field is used to identify the GlossaryTerm to + * update. Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/terms/{term_id} + * + * Generated from protobuf field .google.cloud.dataplex.v1.GlossaryTerm term = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $term = null; + /** + * Required. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + + /** + * @param \Google\Cloud\Dataplex\V1\GlossaryTerm $term Required. The GlossaryTerm to update. + * The GlossaryTerm's `name` field is used to identify the GlossaryTerm to + * update. Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/terms/{term_id} + * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to update. + * + * @return \Google\Cloud\Dataplex\V1\UpdateGlossaryTermRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Dataplex\V1\GlossaryTerm $term, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setTerm($term) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\GlossaryTerm $term + * Required. The GlossaryTerm to update. + * The GlossaryTerm's `name` field is used to identify the GlossaryTerm to + * update. Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/terms/{term_id} + * @type \Google\Protobuf\FieldMask $update_mask + * Required. The list of fields to update. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\BusinessGlossary::initOnce(); + parent::__construct($data); + } + + /** + * Required. The GlossaryTerm to update. + * The GlossaryTerm's `name` field is used to identify the GlossaryTerm to + * update. Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/terms/{term_id} + * + * Generated from protobuf field .google.cloud.dataplex.v1.GlossaryTerm term = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\GlossaryTerm|null + */ + public function getTerm() + { + return $this->term; + } + + public function hasTerm() + { + return isset($this->term); + } + + public function clearTerm() + { + unset($this->term); + } + + /** + * Required. The GlossaryTerm to update. + * The GlossaryTerm's `name` field is used to identify the GlossaryTerm to + * update. Format: + * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/terms/{term_id} + * + * Generated from protobuf field .google.cloud.dataplex.v1.GlossaryTerm term = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\GlossaryTerm $var + * @return $this + */ + public function setTerm($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\GlossaryTerm::class); + $this->term = $var; + + return $this; + } + + /** + * Required. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @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); + } + + /** + * Required. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * @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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateLakeRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateLakeRequest.php new file mode 100644 index 000000000000..e21e86b7b00c --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateLakeRequest.php @@ -0,0 +1,179 @@ +google.cloud.dataplex.v1.UpdateLakeRequest + */ +class UpdateLakeRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Mask of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + /** + * Required. Update description. + * Only fields specified in `update_mask` are updated. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Lake lake = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $lake = null; + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * + * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $validate_only = false; + + /** + * @param \Google\Cloud\Dataplex\V1\Lake $lake Required. Update description. + * Only fields specified in `update_mask` are updated. + * @param \Google\Protobuf\FieldMask $updateMask Required. Mask of fields to update. + * + * @return \Google\Cloud\Dataplex\V1\UpdateLakeRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Dataplex\V1\Lake $lake, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setLake($lake) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\FieldMask $update_mask + * Required. Mask of fields to update. + * @type \Google\Cloud\Dataplex\V1\Lake $lake + * Required. Update description. + * Only fields specified in `update_mask` are updated. + * @type bool $validate_only + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. Mask of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * @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); + } + + /** + * Required. Mask of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * @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. Update description. + * Only fields specified in `update_mask` are updated. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Lake lake = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\Lake|null + */ + public function getLake() + { + return $this->lake; + } + + public function hasLake() + { + return isset($this->lake); + } + + public function clearLake() + { + unset($this->lake); + } + + /** + * Required. Update description. + * Only fields specified in `update_mask` are updated. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Lake lake = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\Lake $var + * @return $this + */ + public function setLake($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Lake::class); + $this->lake = $var; + + return $this; + } + + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * + * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * + * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateMetadataFeedRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateMetadataFeedRequest.php new file mode 100644 index 000000000000..dc3332af29e8 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateMetadataFeedRequest.php @@ -0,0 +1,179 @@ +google.cloud.dataplex.v1.UpdateMetadataFeedRequest + */ +class UpdateMetadataFeedRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Update description. + * Only fields specified in `update_mask` are updated. + * + * Generated from protobuf field .google.cloud.dataplex.v1.MetadataFeed metadata_feed = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $metadata_feed = null; + /** + * Optional. Mask of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $update_mask = null; + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * + * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $validate_only = false; + + /** + * @param \Google\Cloud\Dataplex\V1\MetadataFeed $metadataFeed Required. Update description. + * Only fields specified in `update_mask` are updated. + * @param \Google\Protobuf\FieldMask $updateMask Optional. Mask of fields to update. + * + * @return \Google\Cloud\Dataplex\V1\UpdateMetadataFeedRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Dataplex\V1\MetadataFeed $metadataFeed, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setMetadataFeed($metadataFeed) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\Dataplex\V1\MetadataFeed $metadata_feed + * Required. Update description. + * Only fields specified in `update_mask` are updated. + * @type \Google\Protobuf\FieldMask $update_mask + * Optional. Mask of fields to update. + * @type bool $validate_only + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); + parent::__construct($data); + } + + /** + * Required. Update description. + * Only fields specified in `update_mask` are updated. + * + * Generated from protobuf field .google.cloud.dataplex.v1.MetadataFeed metadata_feed = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\MetadataFeed|null + */ + public function getMetadataFeed() + { + return $this->metadata_feed; + } + + public function hasMetadataFeed() + { + return isset($this->metadata_feed); + } + + public function clearMetadataFeed() + { + unset($this->metadata_feed); + } + + /** + * Required. Update description. + * Only fields specified in `update_mask` are updated. + * + * Generated from protobuf field .google.cloud.dataplex.v1.MetadataFeed metadata_feed = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\MetadataFeed $var + * @return $this + */ + public function setMetadataFeed($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\MetadataFeed::class); + $this->metadata_feed = $var; + + return $this; + } + + /** + * Optional. Mask of fields 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. Mask of fields 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; + } + + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * + * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * + * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateTaskRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateTaskRequest.php new file mode 100644 index 000000000000..7eef583a841b --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateTaskRequest.php @@ -0,0 +1,179 @@ +google.cloud.dataplex.v1.UpdateTaskRequest + */ +class UpdateTaskRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Mask of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + /** + * Required. Update description. + * Only fields specified in `update_mask` are updated. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Task task = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $task = null; + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * + * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $validate_only = false; + + /** + * @param \Google\Cloud\Dataplex\V1\Task $task Required. Update description. + * Only fields specified in `update_mask` are updated. + * @param \Google\Protobuf\FieldMask $updateMask Required. Mask of fields to update. + * + * @return \Google\Cloud\Dataplex\V1\UpdateTaskRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Dataplex\V1\Task $task, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setTask($task) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\FieldMask $update_mask + * Required. Mask of fields to update. + * @type \Google\Cloud\Dataplex\V1\Task $task + * Required. Update description. + * Only fields specified in `update_mask` are updated. + * @type bool $validate_only + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. Mask of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * @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); + } + + /** + * Required. Mask of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * @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. Update description. + * Only fields specified in `update_mask` are updated. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Task task = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\Task|null + */ + public function getTask() + { + return $this->task; + } + + public function hasTask() + { + return isset($this->task); + } + + public function clearTask() + { + unset($this->task); + } + + /** + * Required. Update description. + * Only fields specified in `update_mask` are updated. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Task task = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\Task $var + * @return $this + */ + public function setTask($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Task::class); + $this->task = $var; + + return $this; + } + + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * + * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * + * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateZoneRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateZoneRequest.php new file mode 100644 index 000000000000..71d7f6baa5c1 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateZoneRequest.php @@ -0,0 +1,179 @@ +google.cloud.dataplex.v1.UpdateZoneRequest + */ +class UpdateZoneRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Mask of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $update_mask = null; + /** + * Required. Update description. + * Only fields specified in `update_mask` are updated. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Zone zone = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $zone = null; + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * + * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $validate_only = false; + + /** + * @param \Google\Cloud\Dataplex\V1\Zone $zone Required. Update description. + * Only fields specified in `update_mask` are updated. + * @param \Google\Protobuf\FieldMask $updateMask Required. Mask of fields to update. + * + * @return \Google\Cloud\Dataplex\V1\UpdateZoneRequest + * + * @experimental + */ + public static function build(\Google\Cloud\Dataplex\V1\Zone $zone, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setZone($zone) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\FieldMask $update_mask + * Required. Mask of fields to update. + * @type \Google\Cloud\Dataplex\V1\Zone $zone + * Required. Update description. + * Only fields specified in `update_mask` are updated. + * @type bool $validate_only + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); + parent::__construct($data); + } + + /** + * Required. Mask of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * @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); + } + + /** + * Required. Mask of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * @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. Update description. + * Only fields specified in `update_mask` are updated. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Zone zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\Zone|null + */ + public function getZone() + { + return $this->zone; + } + + public function hasZone() + { + return isset($this->zone); + } + + public function clearZone() + { + unset($this->zone); + } + + /** + * Required. Update description. + * Only fields specified in `update_mask` are updated. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Zone zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\Zone $var + * @return $this + */ + public function setZone($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Zone::class); + $this->zone = $var; + + return $this; + } + + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * + * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getValidateOnly() + { + return $this->validate_only; + } + + /** + * Optional. Only validate the request, but do not perform mutations. + * The default is false. + * + * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setValidateOnly($var) + { + GPBUtil::checkBool($var); + $this->validate_only = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone.php new file mode 100644 index 000000000000..2b1a8e2ce387 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone.php @@ -0,0 +1,510 @@ +google.cloud.dataplex.v1.Zone + */ +class Zone extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The relative resource name of the zone, of the form: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. User friendly display name. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $display_name = ''; + /** + * Output only. System generated globally unique ID for the zone. This ID will + * be different if the zone is deleted and re-created with the same name. + * + * Generated from protobuf field string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $uid = ''; + /** + * Output only. The time when the zone was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The time when the zone was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Optional. User defined labels for the zone. + * + * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $labels; + /** + * Optional. Description of the zone. + * + * Generated from protobuf field string description = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $description = ''; + /** + * Output only. Current state of the zone. + * + * Generated from protobuf field .google.cloud.dataplex.v1.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Required. Immutable. The type of the zone. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Zone.Type type = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + */ + protected $type = 0; + /** + * Optional. Specification of the discovery feature applied to data in this + * zone. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Zone.DiscoverySpec discovery_spec = 103 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $discovery_spec = null; + /** + * Required. Specification of the resources that are referenced by the assets + * within this zone. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Zone.ResourceSpec resource_spec = 104 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $resource_spec = null; + /** + * Output only. Aggregated status of the underlying assets of the zone. + * + * Generated from protobuf field .google.cloud.dataplex.v1.AssetStatus asset_status = 105 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $asset_status = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Output only. The relative resource name of the zone, of the form: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. + * @type string $display_name + * Optional. User friendly display name. + * @type string $uid + * Output only. System generated globally unique ID for the zone. This ID will + * be different if the zone is deleted and re-created with the same name. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time when the zone was created. + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time when the zone was last updated. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Optional. User defined labels for the zone. + * @type string $description + * Optional. Description of the zone. + * @type int $state + * Output only. Current state of the zone. + * @type int $type + * Required. Immutable. The type of the zone. + * @type \Google\Cloud\Dataplex\V1\Zone\DiscoverySpec $discovery_spec + * Optional. Specification of the discovery feature applied to data in this + * zone. + * @type \Google\Cloud\Dataplex\V1\Zone\ResourceSpec $resource_spec + * Required. Specification of the resources that are referenced by the assets + * within this zone. + * @type \Google\Cloud\Dataplex\V1\AssetStatus $asset_status + * Output only. Aggregated status of the underlying assets of the zone. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The relative resource name of the zone, of the form: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Output only. The relative resource name of the zone, of the form: + * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. User friendly display name. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Optional. User friendly display name. + * + * 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; + } + + /** + * Output only. System generated globally unique ID for the zone. This ID will + * be different if the zone is deleted and re-created with the same name. + * + * Generated from protobuf field string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getUid() + { + return $this->uid; + } + + /** + * Output only. System generated globally unique ID for the zone. This ID will + * be different if the zone is deleted and re-created with the same name. + * + * Generated from protobuf field string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setUid($var) + { + GPBUtil::checkString($var, True); + $this->uid = $var; + + return $this; + } + + /** + * Output only. The time when the zone was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.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 zone was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.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 zone was last updated. + * + * 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 time when the zone was last updated. + * + * 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. User defined labels for the zone. + * + * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Optional. User defined labels for the zone. + * + * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Optional. Description of the zone. + * + * Generated from protobuf field string description = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Optional. Description of the zone. + * + * Generated from protobuf field string description = 7 [(.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. Current state of the zone. + * + * Generated from protobuf field .google.cloud.dataplex.v1.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. Current state of the zone. + * + * Generated from protobuf field .google.cloud.dataplex.v1.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\State::class); + $this->state = $var; + + return $this; + } + + /** + * Required. Immutable. The type of the zone. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Zone.Type type = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Required. Immutable. The type of the zone. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Zone.Type type = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\Zone\Type::class); + $this->type = $var; + + return $this; + } + + /** + * Optional. Specification of the discovery feature applied to data in this + * zone. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Zone.DiscoverySpec discovery_spec = 103 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataplex\V1\Zone\DiscoverySpec|null + */ + public function getDiscoverySpec() + { + return $this->discovery_spec; + } + + public function hasDiscoverySpec() + { + return isset($this->discovery_spec); + } + + public function clearDiscoverySpec() + { + unset($this->discovery_spec); + } + + /** + * Optional. Specification of the discovery feature applied to data in this + * zone. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Zone.DiscoverySpec discovery_spec = 103 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataplex\V1\Zone\DiscoverySpec $var + * @return $this + */ + public function setDiscoverySpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Zone\DiscoverySpec::class); + $this->discovery_spec = $var; + + return $this; + } + + /** + * Required. Specification of the resources that are referenced by the assets + * within this zone. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Zone.ResourceSpec resource_spec = 104 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\Dataplex\V1\Zone\ResourceSpec|null + */ + public function getResourceSpec() + { + return $this->resource_spec; + } + + public function hasResourceSpec() + { + return isset($this->resource_spec); + } + + public function clearResourceSpec() + { + unset($this->resource_spec); + } + + /** + * Required. Specification of the resources that are referenced by the assets + * within this zone. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Zone.ResourceSpec resource_spec = 104 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\Dataplex\V1\Zone\ResourceSpec $var + * @return $this + */ + public function setResourceSpec($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Zone\ResourceSpec::class); + $this->resource_spec = $var; + + return $this; + } + + /** + * Output only. Aggregated status of the underlying assets of the zone. + * + * Generated from protobuf field .google.cloud.dataplex.v1.AssetStatus asset_status = 105 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataplex\V1\AssetStatus|null + */ + public function getAssetStatus() + { + return $this->asset_status; + } + + public function hasAssetStatus() + { + return isset($this->asset_status); + } + + public function clearAssetStatus() + { + unset($this->asset_status); + } + + /** + * Output only. Aggregated status of the underlying assets of the zone. + * + * Generated from protobuf field .google.cloud.dataplex.v1.AssetStatus asset_status = 105 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\AssetStatus $var + * @return $this + */ + public function setAssetStatus($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\AssetStatus::class); + $this->asset_status = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone/DiscoverySpec.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone/DiscoverySpec.php new file mode 100644 index 000000000000..03221a6c1553 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone/DiscoverySpec.php @@ -0,0 +1,317 @@ +google.cloud.dataplex.v1.Zone.DiscoverySpec + */ +class DiscoverySpec extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Whether discovery is enabled. + * + * Generated from protobuf field bool enabled = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $enabled = false; + /** + * Optional. The list of patterns to apply for selecting data to include + * during discovery if only a subset of the data should considered. For + * Cloud Storage bucket assets, these are interpreted as glob patterns used + * to match object names. For BigQuery dataset assets, these are interpreted + * as patterns to match table names. + * + * Generated from protobuf field repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $include_patterns; + /** + * Optional. The list of patterns to apply for selecting data to exclude + * during discovery. For Cloud Storage bucket assets, these are interpreted + * as glob patterns used to match object names. For BigQuery dataset assets, + * these are interpreted as patterns to match table names. + * + * Generated from protobuf field repeated string exclude_patterns = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $exclude_patterns; + /** + * Optional. Configuration for CSV data. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions csv_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $csv_options = null; + /** + * Optional. Configuration for Json data. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions json_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $json_options = null; + protected $trigger; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $enabled + * Required. Whether discovery is enabled. + * @type string[] $include_patterns + * Optional. The list of patterns to apply for selecting data to include + * during discovery if only a subset of the data should considered. For + * Cloud Storage bucket assets, these are interpreted as glob patterns used + * to match object names. For BigQuery dataset assets, these are interpreted + * as patterns to match table names. + * @type string[] $exclude_patterns + * Optional. The list of patterns to apply for selecting data to exclude + * during discovery. For Cloud Storage bucket assets, these are interpreted + * as glob patterns used to match object names. For BigQuery dataset assets, + * these are interpreted as patterns to match table names. + * @type \Google\Cloud\Dataplex\V1\Zone\DiscoverySpec\CsvOptions $csv_options + * Optional. Configuration for CSV data. + * @type \Google\Cloud\Dataplex\V1\Zone\DiscoverySpec\JsonOptions $json_options + * Optional. Configuration for Json data. + * @type string $schedule + * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for + * running discovery periodically. Successive discovery runs must be + * scheduled at least 60 minutes apart. The default value is to run + * discovery every 60 minutes. + * To explicitly set a timezone to the cron tab, apply a prefix in the + * cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}". + * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone + * database. For example, `CRON_TZ=America/New_York 1 * * * *`, or + * `TZ=America/New_York 1 * * * *`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Required. Whether discovery is enabled. + * + * Generated from protobuf field bool enabled = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * Required. Whether discovery is enabled. + * + * Generated from protobuf field bool enabled = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param bool $var + * @return $this + */ + public function setEnabled($var) + { + GPBUtil::checkBool($var); + $this->enabled = $var; + + return $this; + } + + /** + * Optional. The list of patterns to apply for selecting data to include + * during discovery if only a subset of the data should considered. For + * Cloud Storage bucket assets, these are interpreted as glob patterns used + * to match object names. For BigQuery dataset assets, these are interpreted + * as patterns to match table names. + * + * Generated from protobuf field repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getIncludePatterns() + { + return $this->include_patterns; + } + + /** + * Optional. The list of patterns to apply for selecting data to include + * during discovery if only a subset of the data should considered. For + * Cloud Storage bucket assets, these are interpreted as glob patterns used + * to match object names. For BigQuery dataset assets, these are interpreted + * as patterns to match table names. + * + * Generated from protobuf field repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setIncludePatterns($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->include_patterns = $arr; + + return $this; + } + + /** + * Optional. The list of patterns to apply for selecting data to exclude + * during discovery. For Cloud Storage bucket assets, these are interpreted + * as glob patterns used to match object names. For BigQuery dataset assets, + * these are interpreted as patterns to match table names. + * + * Generated from protobuf field repeated string exclude_patterns = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField + */ + public function getExcludePatterns() + { + return $this->exclude_patterns; + } + + /** + * Optional. The list of patterns to apply for selecting data to exclude + * during discovery. For Cloud Storage bucket assets, these are interpreted + * as glob patterns used to match object names. For BigQuery dataset assets, + * these are interpreted as patterns to match table names. + * + * Generated from protobuf field repeated string exclude_patterns = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string[] $var + * @return $this + */ + public function setExcludePatterns($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->exclude_patterns = $arr; + + return $this; + } + + /** + * Optional. Configuration for CSV data. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions csv_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataplex\V1\Zone\DiscoverySpec\CsvOptions|null + */ + public function getCsvOptions() + { + return $this->csv_options; + } + + public function hasCsvOptions() + { + return isset($this->csv_options); + } + + public function clearCsvOptions() + { + unset($this->csv_options); + } + + /** + * Optional. Configuration for CSV data. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions csv_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataplex\V1\Zone\DiscoverySpec\CsvOptions $var + * @return $this + */ + public function setCsvOptions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Zone\DiscoverySpec\CsvOptions::class); + $this->csv_options = $var; + + return $this; + } + + /** + * Optional. Configuration for Json data. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions json_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataplex\V1\Zone\DiscoverySpec\JsonOptions|null + */ + public function getJsonOptions() + { + return $this->json_options; + } + + public function hasJsonOptions() + { + return isset($this->json_options); + } + + public function clearJsonOptions() + { + unset($this->json_options); + } + + /** + * Optional. Configuration for Json data. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions json_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataplex\V1\Zone\DiscoverySpec\JsonOptions $var + * @return $this + */ + public function setJsonOptions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Zone\DiscoverySpec\JsonOptions::class); + $this->json_options = $var; + + return $this; + } + + /** + * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for + * running discovery periodically. Successive discovery runs must be + * scheduled at least 60 minutes apart. The default value is to run + * discovery every 60 minutes. + * To explicitly set a timezone to the cron tab, apply a prefix in the + * cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}". + * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone + * database. For example, `CRON_TZ=America/New_York 1 * * * *`, or + * `TZ=America/New_York 1 * * * *`. + * + * Generated from protobuf field string schedule = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getSchedule() + { + return $this->readOneof(10); + } + + public function hasSchedule() + { + return $this->hasOneof(10); + } + + /** + * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for + * running discovery periodically. Successive discovery runs must be + * scheduled at least 60 minutes apart. The default value is to run + * discovery every 60 minutes. + * To explicitly set a timezone to the cron tab, apply a prefix in the + * cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}". + * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone + * database. For example, `CRON_TZ=America/New_York 1 * * * *`, or + * `TZ=America/New_York 1 * * * *`. + * + * Generated from protobuf field string schedule = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setSchedule($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(10, $var); + + return $this; + } + + /** + * @return string + */ + public function getTrigger() + { + return $this->whichOneof("trigger"); + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone/DiscoverySpec/CsvOptions.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone/DiscoverySpec/CsvOptions.php new file mode 100644 index 000000000000..c90b85d95883 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone/DiscoverySpec/CsvOptions.php @@ -0,0 +1,181 @@ +google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions + */ +class CsvOptions extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The number of rows to interpret as header rows that should be + * skipped when reading data rows. + * + * Generated from protobuf field int32 header_rows = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $header_rows = 0; + /** + * Optional. The delimiter being used to separate values. This defaults to + * ','. + * + * Generated from protobuf field string delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $delimiter = ''; + /** + * Optional. The character encoding of the data. The default is UTF-8. + * + * Generated from protobuf field string encoding = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $encoding = ''; + /** + * Optional. Whether to disable the inference of data type for CSV data. + * If true, all columns will be registered as strings. + * + * Generated from protobuf field bool disable_type_inference = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $disable_type_inference = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $header_rows + * Optional. The number of rows to interpret as header rows that should be + * skipped when reading data rows. + * @type string $delimiter + * Optional. The delimiter being used to separate values. This defaults to + * ','. + * @type string $encoding + * Optional. The character encoding of the data. The default is UTF-8. + * @type bool $disable_type_inference + * Optional. Whether to disable the inference of data type for CSV data. + * If true, all columns will be registered as strings. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The number of rows to interpret as header rows that should be + * skipped when reading data rows. + * + * Generated from protobuf field int32 header_rows = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getHeaderRows() + { + return $this->header_rows; + } + + /** + * Optional. The number of rows to interpret as header rows that should be + * skipped when reading data rows. + * + * Generated from protobuf field int32 header_rows = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setHeaderRows($var) + { + GPBUtil::checkInt32($var); + $this->header_rows = $var; + + return $this; + } + + /** + * Optional. The delimiter being used to separate values. This defaults to + * ','. + * + * Generated from protobuf field string delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDelimiter() + { + return $this->delimiter; + } + + /** + * Optional. The delimiter being used to separate values. This defaults to + * ','. + * + * Generated from protobuf field string delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDelimiter($var) + { + GPBUtil::checkString($var, True); + $this->delimiter = $var; + + return $this; + } + + /** + * Optional. The character encoding of the data. The default is UTF-8. + * + * Generated from protobuf field string encoding = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEncoding() + { + return $this->encoding; + } + + /** + * Optional. The character encoding of the data. The default is UTF-8. + * + * Generated from protobuf field string encoding = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setEncoding($var) + { + GPBUtil::checkString($var, True); + $this->encoding = $var; + + return $this; + } + + /** + * Optional. Whether to disable the inference of data type for CSV data. + * If true, all columns will be registered as strings. + * + * Generated from protobuf field bool disable_type_inference = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getDisableTypeInference() + { + return $this->disable_type_inference; + } + + /** + * Optional. Whether to disable the inference of data type for CSV data. + * If true, all columns will be registered as strings. + * + * Generated from protobuf field bool disable_type_inference = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setDisableTypeInference($var) + { + GPBUtil::checkBool($var); + $this->disable_type_inference = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone/DiscoverySpec/JsonOptions.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone/DiscoverySpec/JsonOptions.php new file mode 100644 index 000000000000..c40217f63999 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone/DiscoverySpec/JsonOptions.php @@ -0,0 +1,109 @@ +google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions + */ +class JsonOptions extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The character encoding of the data. The default is UTF-8. + * + * Generated from protobuf field string encoding = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $encoding = ''; + /** + * Optional. Whether to disable the inference of data type for Json data. + * If true, all columns will be registered as their primitive types + * (strings, number or boolean). + * + * Generated from protobuf field bool disable_type_inference = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $disable_type_inference = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $encoding + * Optional. The character encoding of the data. The default is UTF-8. + * @type bool $disable_type_inference + * Optional. Whether to disable the inference of data type for Json data. + * If true, all columns will be registered as their primitive types + * (strings, number or boolean). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The character encoding of the data. The default is UTF-8. + * + * Generated from protobuf field string encoding = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEncoding() + { + return $this->encoding; + } + + /** + * Optional. The character encoding of the data. The default is UTF-8. + * + * Generated from protobuf field string encoding = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setEncoding($var) + { + GPBUtil::checkString($var, True); + $this->encoding = $var; + + return $this; + } + + /** + * Optional. Whether to disable the inference of data type for Json data. + * If true, all columns will be registered as their primitive types + * (strings, number or boolean). + * + * Generated from protobuf field bool disable_type_inference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getDisableTypeInference() + { + return $this->disable_type_inference; + } + + /** + * Optional. Whether to disable the inference of data type for Json data. + * If true, all columns will be registered as their primitive types + * (strings, number or boolean). + * + * Generated from protobuf field bool disable_type_inference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setDisableTypeInference($var) + { + GPBUtil::checkBool($var); + $this->disable_type_inference = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone/ResourceSpec.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone/ResourceSpec.php new file mode 100644 index 000000000000..bba69ca15ea8 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone/ResourceSpec.php @@ -0,0 +1,71 @@ +google.cloud.dataplex.v1.Zone.ResourceSpec + */ +class ResourceSpec extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Immutable. The location type of the resources that are allowed + * to be attached to the assets within this zone. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Zone.ResourceSpec.LocationType location_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + */ + protected $location_type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $location_type + * Required. Immutable. The location type of the resources that are allowed + * to be attached to the assets within this zone. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * Required. Immutable. The location type of the resources that are allowed + * to be attached to the assets within this zone. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Zone.ResourceSpec.LocationType location_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @return int + */ + public function getLocationType() + { + return $this->location_type; + } + + /** + * Required. Immutable. The location type of the resources that are allowed + * to be attached to the assets within this zone. + * + * Generated from protobuf field .google.cloud.dataplex.v1.Zone.ResourceSpec.LocationType location_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * @param int $var + * @return $this + */ + public function setLocationType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\Zone\ResourceSpec\LocationType::class); + $this->location_type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone/ResourceSpec/LocationType.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone/ResourceSpec/LocationType.php new file mode 100644 index 000000000000..1bad6bcd675a --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone/ResourceSpec/LocationType.php @@ -0,0 +1,61 @@ +google.cloud.dataplex.v1.Zone.ResourceSpec.LocationType + */ +class LocationType +{ + /** + * Unspecified location type. + * + * Generated from protobuf enum LOCATION_TYPE_UNSPECIFIED = 0; + */ + const LOCATION_TYPE_UNSPECIFIED = 0; + /** + * Resources that are associated with a single region. + * + * Generated from protobuf enum SINGLE_REGION = 1; + */ + const SINGLE_REGION = 1; + /** + * Resources that are associated with a multi-region location. + * + * Generated from protobuf enum MULTI_REGION = 2; + */ + const MULTI_REGION = 2; + + private static $valueToName = [ + self::LOCATION_TYPE_UNSPECIFIED => 'LOCATION_TYPE_UNSPECIFIED', + self::SINGLE_REGION => 'SINGLE_REGION', + self::MULTI_REGION => 'MULTI_REGION', + ]; + + 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone/Type.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone/Type.php new file mode 100644 index 000000000000..d48d1bcecc9a --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone/Type.php @@ -0,0 +1,65 @@ +google.cloud.dataplex.v1.Zone.Type + */ +class Type +{ + /** + * Zone type not specified. + * + * Generated from protobuf enum TYPE_UNSPECIFIED = 0; + */ + const TYPE_UNSPECIFIED = 0; + /** + * A zone that contains data that needs further processing before it is + * considered generally ready for consumption and analytics workloads. + * + * Generated from protobuf enum RAW = 1; + */ + const RAW = 1; + /** + * A zone that contains data that is considered to be ready for broader + * consumption and analytics workloads. Curated structured data stored in + * Cloud Storage must conform to certain file formats (parquet, avro and + * orc) and organized in a hive-compatible directory layout. + * + * Generated from protobuf enum CURATED = 2; + */ + const CURATED = 2; + + private static $valueToName = [ + self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', + self::RAW => 'RAW', + self::CURATED => 'CURATED', + ]; + + 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/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/create_glossary.php b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/create_glossary.php new file mode 100644 index 000000000000..f1f26f9c8047 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/create_glossary.php @@ -0,0 +1,90 @@ +setParent($formattedParent) + ->setGlossaryId($glossaryId) + ->setGlossary($glossary); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $businessGlossaryServiceClient->createGlossary($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var Glossary $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 = BusinessGlossaryServiceClient::locationName('[PROJECT]', '[LOCATION]'); + $glossaryId = '[GLOSSARY_ID]'; + + create_glossary_sample($formattedParent, $glossaryId); +} +// [END dataplex_v1_generated_BusinessGlossaryService_CreateGlossary_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/create_glossary_category.php b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/create_glossary_category.php new file mode 100644 index 000000000000..d8858220e2c7 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/create_glossary_category.php @@ -0,0 +1,94 @@ +setParent($categoryParent); + $request = (new CreateGlossaryCategoryRequest()) + ->setParent($formattedParent) + ->setCategoryId($categoryId) + ->setCategory($category); + + // Call the API and handle any network failures. + try { + /** @var GlossaryCategory $response */ + $response = $businessGlossaryServiceClient->createGlossaryCategory($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 = BusinessGlossaryServiceClient::glossaryName( + '[PROJECT]', + '[LOCATION]', + '[GLOSSARY]' + ); + $categoryId = '[CATEGORY_ID]'; + $categoryParent = '[PARENT]'; + + create_glossary_category_sample($formattedParent, $categoryId, $categoryParent); +} +// [END dataplex_v1_generated_BusinessGlossaryService_CreateGlossaryCategory_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/create_glossary_term.php b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/create_glossary_term.php new file mode 100644 index 000000000000..54698c70562f --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/create_glossary_term.php @@ -0,0 +1,99 @@ +setParent($formattedTermParent); + $request = (new CreateGlossaryTermRequest()) + ->setParent($formattedParent) + ->setTermId($termId) + ->setTerm($term); + + // Call the API and handle any network failures. + try { + /** @var GlossaryTerm $response */ + $response = $businessGlossaryServiceClient->createGlossaryTerm($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 = BusinessGlossaryServiceClient::glossaryName( + '[PROJECT]', + '[LOCATION]', + '[GLOSSARY]' + ); + $termId = '[TERM_ID]'; + $formattedTermParent = BusinessGlossaryServiceClient::glossaryName( + '[PROJECT]', + '[LOCATION]', + '[GLOSSARY]' + ); + + create_glossary_term_sample($formattedParent, $termId, $formattedTermParent); +} +// [END dataplex_v1_generated_BusinessGlossaryService_CreateGlossaryTerm_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/delete_glossary.php b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/delete_glossary.php new file mode 100644 index 000000000000..ef1df8bd486c --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/delete_glossary.php @@ -0,0 +1,87 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $businessGlossaryServiceClient->deleteGlossary($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 = BusinessGlossaryServiceClient::glossaryName( + '[PROJECT]', + '[LOCATION]', + '[GLOSSARY]' + ); + + delete_glossary_sample($formattedName); +} +// [END dataplex_v1_generated_BusinessGlossaryService_DeleteGlossary_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/delete_glossary_category.php b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/delete_glossary_category.php new file mode 100644 index 000000000000..97aa89d40803 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/delete_glossary_category.php @@ -0,0 +1,78 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $businessGlossaryServiceClient->deleteGlossaryCategory($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 = BusinessGlossaryServiceClient::glossaryCategoryName( + '[PROJECT]', + '[LOCATION]', + '[GLOSSARY]', + '[GLOSSARY_CATEGORY]' + ); + + delete_glossary_category_sample($formattedName); +} +// [END dataplex_v1_generated_BusinessGlossaryService_DeleteGlossaryCategory_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/delete_glossary_term.php b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/delete_glossary_term.php new file mode 100644 index 000000000000..af0efbabeccb --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/delete_glossary_term.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $businessGlossaryServiceClient->deleteGlossaryTerm($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 = BusinessGlossaryServiceClient::glossaryTermName( + '[PROJECT]', + '[LOCATION]', + '[GLOSSARY]', + '[GLOSSARY_TERM]' + ); + + delete_glossary_term_sample($formattedName); +} +// [END dataplex_v1_generated_BusinessGlossaryService_DeleteGlossaryTerm_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/get_glossary.php b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/get_glossary.php new file mode 100644 index 000000000000..5b7f74c5e150 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/get_glossary.php @@ -0,0 +1,77 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Glossary $response */ + $response = $businessGlossaryServiceClient->getGlossary($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 = BusinessGlossaryServiceClient::glossaryName( + '[PROJECT]', + '[LOCATION]', + '[GLOSSARY]' + ); + + get_glossary_sample($formattedName); +} +// [END dataplex_v1_generated_BusinessGlossaryService_GetGlossary_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/get_glossary_category.php b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/get_glossary_category.php new file mode 100644 index 000000000000..c9b335355ca2 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/get_glossary_category.php @@ -0,0 +1,78 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var GlossaryCategory $response */ + $response = $businessGlossaryServiceClient->getGlossaryCategory($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 = BusinessGlossaryServiceClient::glossaryCategoryName( + '[PROJECT]', + '[LOCATION]', + '[GLOSSARY]', + '[GLOSSARY_CATEGORY]' + ); + + get_glossary_category_sample($formattedName); +} +// [END dataplex_v1_generated_BusinessGlossaryService_GetGlossaryCategory_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/get_glossary_term.php b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/get_glossary_term.php new file mode 100644 index 000000000000..65dad17f9d08 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/get_glossary_term.php @@ -0,0 +1,78 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var GlossaryTerm $response */ + $response = $businessGlossaryServiceClient->getGlossaryTerm($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 = BusinessGlossaryServiceClient::glossaryTermName( + '[PROJECT]', + '[LOCATION]', + '[GLOSSARY]', + '[GLOSSARY_TERM]' + ); + + get_glossary_term_sample($formattedName); +} +// [END dataplex_v1_generated_BusinessGlossaryService_GetGlossaryTerm_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/get_iam_policy.php b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/get_iam_policy.php new file mode 100644 index 000000000000..0f9965761f3a --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/get_iam_policy.php @@ -0,0 +1,72 @@ +setResource($resource); + + // Call the API and handle any network failures. + try { + /** @var Policy $response */ + $response = $businessGlossaryServiceClient->getIamPolicy($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 +{ + $resource = '[RESOURCE]'; + + get_iam_policy_sample($resource); +} +// [END dataplex_v1_generated_BusinessGlossaryService_GetIamPolicy_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/get_location.php b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/get_location.php new file mode 100644 index 000000000000..f0cab4f62b57 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/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 dataplex_v1_generated_BusinessGlossaryService_GetLocation_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/list_glossaries.php b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/list_glossaries.php new file mode 100644 index 000000000000..fd5e8b6a038e --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/list_glossaries.php @@ -0,0 +1,78 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $businessGlossaryServiceClient->listGlossaries($request); + + /** @var Glossary $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 = BusinessGlossaryServiceClient::locationName('[PROJECT]', '[LOCATION]'); + + list_glossaries_sample($formattedParent); +} +// [END dataplex_v1_generated_BusinessGlossaryService_ListGlossaries_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/list_glossary_categories.php b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/list_glossary_categories.php new file mode 100644 index 000000000000..ce9676ac0895 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/list_glossary_categories.php @@ -0,0 +1,83 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $businessGlossaryServiceClient->listGlossaryCategories($request); + + /** @var GlossaryCategory $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 = BusinessGlossaryServiceClient::glossaryName( + '[PROJECT]', + '[LOCATION]', + '[GLOSSARY]' + ); + + list_glossary_categories_sample($formattedParent); +} +// [END dataplex_v1_generated_BusinessGlossaryService_ListGlossaryCategories_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/list_glossary_terms.php b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/list_glossary_terms.php new file mode 100644 index 000000000000..0c3d465ac9bd --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/list_glossary_terms.php @@ -0,0 +1,83 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $businessGlossaryServiceClient->listGlossaryTerms($request); + + /** @var GlossaryTerm $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 = BusinessGlossaryServiceClient::glossaryName( + '[PROJECT]', + '[LOCATION]', + '[GLOSSARY]' + ); + + list_glossary_terms_sample($formattedParent); +} +// [END dataplex_v1_generated_BusinessGlossaryService_ListGlossaryTerms_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/list_locations.php b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/list_locations.php new file mode 100644 index 000000000000..d850e7a18c5e --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/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 dataplex_v1_generated_BusinessGlossaryService_ListLocations_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/set_iam_policy.php b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/set_iam_policy.php new file mode 100644 index 000000000000..034a13ba97ba --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/set_iam_policy.php @@ -0,0 +1,77 @@ +setResource($resource) + ->setPolicy($policy); + + // Call the API and handle any network failures. + try { + /** @var Policy $response */ + $response = $businessGlossaryServiceClient->setIamPolicy($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 +{ + $resource = '[RESOURCE]'; + + set_iam_policy_sample($resource); +} +// [END dataplex_v1_generated_BusinessGlossaryService_SetIamPolicy_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/test_iam_permissions.php b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/test_iam_permissions.php new file mode 100644 index 000000000000..23905a0fea61 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/test_iam_permissions.php @@ -0,0 +1,84 @@ +setResource($resource) + ->setPermissions($permissions); + + // Call the API and handle any network failures. + try { + /** @var TestIamPermissionsResponse $response */ + $response = $businessGlossaryServiceClient->testIamPermissions($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 +{ + $resource = '[RESOURCE]'; + $permissionsElement = '[PERMISSIONS]'; + + test_iam_permissions_sample($resource, $permissionsElement); +} +// [END dataplex_v1_generated_BusinessGlossaryService_TestIamPermissions_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/update_glossary.php b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/update_glossary.php new file mode 100644 index 000000000000..cb81ccc6533c --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/update_glossary.php @@ -0,0 +1,74 @@ +setGlossary($glossary) + ->setUpdateMask($updateMask); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $businessGlossaryServiceClient->updateGlossary($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var Glossary $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()); + } +} +// [END dataplex_v1_generated_BusinessGlossaryService_UpdateGlossary_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/update_glossary_category.php b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/update_glossary_category.php new file mode 100644 index 000000000000..cb80412dae09 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/update_glossary_category.php @@ -0,0 +1,80 @@ +setParent($categoryParent); + $updateMask = new FieldMask(); + $request = (new UpdateGlossaryCategoryRequest()) + ->setCategory($category) + ->setUpdateMask($updateMask); + + // Call the API and handle any network failures. + try { + /** @var GlossaryCategory $response */ + $response = $businessGlossaryServiceClient->updateGlossaryCategory($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 +{ + $categoryParent = '[PARENT]'; + + update_glossary_category_sample($categoryParent); +} +// [END dataplex_v1_generated_BusinessGlossaryService_UpdateGlossaryCategory_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/update_glossary_term.php b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/update_glossary_term.php new file mode 100644 index 000000000000..e17d0d7313fc --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/update_glossary_term.php @@ -0,0 +1,85 @@ +setParent($formattedTermParent); + $updateMask = new FieldMask(); + $request = (new UpdateGlossaryTermRequest()) + ->setTerm($term) + ->setUpdateMask($updateMask); + + // Call the API and handle any network failures. + try { + /** @var GlossaryTerm $response */ + $response = $businessGlossaryServiceClient->updateGlossaryTerm($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 +{ + $formattedTermParent = BusinessGlossaryServiceClient::glossaryName( + '[PROJECT]', + '[LOCATION]', + '[GLOSSARY]' + ); + + update_glossary_term_sample($formattedTermParent); +} +// [END dataplex_v1_generated_BusinessGlossaryService_UpdateGlossaryTerm_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/cancel_metadata_job.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/cancel_metadata_job.php new file mode 100644 index 000000000000..63f04771d2a1 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/cancel_metadata_job.php @@ -0,0 +1,75 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $catalogServiceClient->cancelMetadataJob($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 = CatalogServiceClient::metadataJobName('[PROJECT]', '[LOCATION]', '[METADATAJOB]'); + + cancel_metadata_job_sample($formattedName); +} +// [END dataplex_v1_generated_CatalogService_CancelMetadataJob_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_aspect_type.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_aspect_type.php new file mode 100644 index 000000000000..ca413ff6a1ef --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_aspect_type.php @@ -0,0 +1,124 @@ +setName($aspectTypeMetadataTemplateName) + ->setType($aspectTypeMetadataTemplateType); + $aspectType = (new AspectType()) + ->setMetadataTemplate($aspectTypeMetadataTemplate); + $request = (new CreateAspectTypeRequest()) + ->setParent($formattedParent) + ->setAspectTypeId($aspectTypeId) + ->setAspectType($aspectType); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $catalogServiceClient->createAspectType($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var AspectType $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 = CatalogServiceClient::locationName('[PROJECT]', '[LOCATION]'); + $aspectTypeId = '[ASPECT_TYPE_ID]'; + $aspectTypeMetadataTemplateName = '[NAME]'; + $aspectTypeMetadataTemplateType = '[TYPE]'; + + create_aspect_type_sample( + $formattedParent, + $aspectTypeId, + $aspectTypeMetadataTemplateName, + $aspectTypeMetadataTemplateType + ); +} +// [END dataplex_v1_generated_CatalogService_CreateAspectType_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_entry.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_entry.php new file mode 100644 index 000000000000..6d22e1a01f10 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_entry.php @@ -0,0 +1,104 @@ +setEntryType($entryEntryType); + $request = (new CreateEntryRequest()) + ->setParent($formattedParent) + ->setEntryId($entryId) + ->setEntry($entry); + + // Call the API and handle any network failures. + try { + /** @var Entry $response */ + $response = $catalogServiceClient->createEntry($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 = CatalogServiceClient::entryGroupName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]'); + $entryId = '[ENTRY_ID]'; + $entryEntryType = '[ENTRY_TYPE]'; + + create_entry_sample($formattedParent, $entryId, $entryEntryType); +} +// [END dataplex_v1_generated_CatalogService_CreateEntry_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_entry_group.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_entry_group.php new file mode 100644 index 000000000000..029b77eb7fe6 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_entry_group.php @@ -0,0 +1,90 @@ +setParent($formattedParent) + ->setEntryGroupId($entryGroupId) + ->setEntryGroup($entryGroup); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $catalogServiceClient->createEntryGroup($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var EntryGroup $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 = CatalogServiceClient::locationName('[PROJECT]', '[LOCATION]'); + $entryGroupId = '[ENTRY_GROUP_ID]'; + + create_entry_group_sample($formattedParent, $entryGroupId); +} +// [END dataplex_v1_generated_CatalogService_CreateEntryGroup_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_entry_link.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_entry_link.php new file mode 100644 index 000000000000..b05d34e96739 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_entry_link.php @@ -0,0 +1,117 @@ +setName($entryLinkEntryReferencesName) + ->setType($entryLinkEntryReferencesType); + $entryLinkEntryReferences = [$entryReference,]; + $entryLink = (new EntryLink()) + ->setEntryLinkType($entryLinkEntryLinkType) + ->setEntryReferences($entryLinkEntryReferences); + $request = (new CreateEntryLinkRequest()) + ->setParent($formattedParent) + ->setEntryLinkId($entryLinkId) + ->setEntryLink($entryLink); + + // Call the API and handle any network failures. + try { + /** @var EntryLink $response */ + $response = $catalogServiceClient->createEntryLink($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 = CatalogServiceClient::entryGroupName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]'); + $entryLinkId = '[ENTRY_LINK_ID]'; + $entryLinkEntryLinkType = '[ENTRY_LINK_TYPE]'; + $entryLinkEntryReferencesName = '[NAME]'; + $entryLinkEntryReferencesType = Type::UNSPECIFIED; + + create_entry_link_sample( + $formattedParent, + $entryLinkId, + $entryLinkEntryLinkType, + $entryLinkEntryReferencesName, + $entryLinkEntryReferencesType + ); +} +// [END dataplex_v1_generated_CatalogService_CreateEntryLink_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_entry_type.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_entry_type.php new file mode 100644 index 000000000000..c52e70ecc5b7 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_entry_type.php @@ -0,0 +1,90 @@ +setParent($formattedParent) + ->setEntryTypeId($entryTypeId) + ->setEntryType($entryType); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $catalogServiceClient->createEntryType($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var EntryType $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 = CatalogServiceClient::locationName('[PROJECT]', '[LOCATION]'); + $entryTypeId = '[ENTRY_TYPE_ID]'; + + create_entry_type_sample($formattedParent, $entryTypeId); +} +// [END dataplex_v1_generated_CatalogService_CreateEntryType_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_metadata_feed.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_metadata_feed.php new file mode 100644 index 000000000000..af1e4649c8fd --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_metadata_feed.php @@ -0,0 +1,89 @@ +setScope($metadataFeedScope); + $request = (new CreateMetadataFeedRequest()) + ->setParent($formattedParent) + ->setMetadataFeed($metadataFeed); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $catalogServiceClient->createMetadataFeed($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var MetadataFeed $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 = CatalogServiceClient::locationName('[PROJECT]', '[LOCATION]'); + + create_metadata_feed_sample($formattedParent); +} +// [END dataplex_v1_generated_CatalogService_CreateMetadataFeed_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_metadata_job.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_metadata_job.php new file mode 100644 index 000000000000..c1a76082def3 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_metadata_job.php @@ -0,0 +1,91 @@ +setType($metadataJobType); + $request = (new CreateMetadataJobRequest()) + ->setParent($formattedParent) + ->setMetadataJob($metadataJob); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $catalogServiceClient->createMetadataJob($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var MetadataJob $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 = CatalogServiceClient::locationName('[PROJECT]', '[LOCATION]'); + $metadataJobType = Type::TYPE_UNSPECIFIED; + + create_metadata_job_sample($formattedParent, $metadataJobType); +} +// [END dataplex_v1_generated_CatalogService_CreateMetadataJob_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/delete_aspect_type.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/delete_aspect_type.php new file mode 100644 index 000000000000..f32f6bd4d47c --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/delete_aspect_type.php @@ -0,0 +1,81 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $catalogServiceClient->deleteAspectType($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 = CatalogServiceClient::aspectTypeName('[PROJECT]', '[LOCATION]', '[ASPECT_TYPE]'); + + delete_aspect_type_sample($formattedName); +} +// [END dataplex_v1_generated_CatalogService_DeleteAspectType_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/delete_entry.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/delete_entry.php new file mode 100644 index 000000000000..439de26cc7d1 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/delete_entry.php @@ -0,0 +1,77 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Entry $response */ + $response = $catalogServiceClient->deleteEntry($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 = CatalogServiceClient::entryName( + '[PROJECT]', + '[LOCATION]', + '[ENTRY_GROUP]', + '[ENTRY]' + ); + + delete_entry_sample($formattedName); +} +// [END dataplex_v1_generated_CatalogService_DeleteEntry_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/delete_entry_group.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/delete_entry_group.php new file mode 100644 index 000000000000..38342fa4a899 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/delete_entry_group.php @@ -0,0 +1,81 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $catalogServiceClient->deleteEntryGroup($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 = CatalogServiceClient::entryGroupName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]'); + + delete_entry_group_sample($formattedName); +} +// [END dataplex_v1_generated_CatalogService_DeleteEntryGroup_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/delete_entry_link.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/delete_entry_link.php new file mode 100644 index 000000000000..a2b00a67c7fe --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/delete_entry_link.php @@ -0,0 +1,77 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var EntryLink $response */ + $response = $catalogServiceClient->deleteEntryLink($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 = CatalogServiceClient::entryLinkName( + '[PROJECT]', + '[LOCATION]', + '[ENTRY_GROUP]', + '[ENTRY_LINK]' + ); + + delete_entry_link_sample($formattedName); +} +// [END dataplex_v1_generated_CatalogService_DeleteEntryLink_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/delete_entry_type.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/delete_entry_type.php new file mode 100644 index 000000000000..34155bcdd30e --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/delete_entry_type.php @@ -0,0 +1,81 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $catalogServiceClient->deleteEntryType($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 = CatalogServiceClient::entryTypeName('[PROJECT]', '[LOCATION]', '[ENTRY_TYPE]'); + + delete_entry_type_sample($formattedName); +} +// [END dataplex_v1_generated_CatalogService_DeleteEntryType_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/delete_metadata_feed.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/delete_metadata_feed.php new file mode 100644 index 000000000000..745ef1778e74 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/delete_metadata_feed.php @@ -0,0 +1,85 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $catalogServiceClient->deleteMetadataFeed($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 = CatalogServiceClient::metadataFeedName( + '[PROJECT]', + '[LOCATION]', + '[METADATA_FEED]' + ); + + delete_metadata_feed_sample($formattedName); +} +// [END dataplex_v1_generated_CatalogService_DeleteMetadataFeed_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_aspect_type.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_aspect_type.php new file mode 100644 index 000000000000..d3d6273ccc5c --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_aspect_type.php @@ -0,0 +1,72 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var AspectType $response */ + $response = $catalogServiceClient->getAspectType($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 = CatalogServiceClient::aspectTypeName('[PROJECT]', '[LOCATION]', '[ASPECT_TYPE]'); + + get_aspect_type_sample($formattedName); +} +// [END dataplex_v1_generated_CatalogService_GetAspectType_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_entry.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_entry.php new file mode 100644 index 000000000000..02424c30b918 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_entry.php @@ -0,0 +1,77 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Entry $response */ + $response = $catalogServiceClient->getEntry($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 = CatalogServiceClient::entryName( + '[PROJECT]', + '[LOCATION]', + '[ENTRY_GROUP]', + '[ENTRY]' + ); + + get_entry_sample($formattedName); +} +// [END dataplex_v1_generated_CatalogService_GetEntry_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_entry_group.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_entry_group.php new file mode 100644 index 000000000000..45bde166b19e --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_entry_group.php @@ -0,0 +1,72 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var EntryGroup $response */ + $response = $catalogServiceClient->getEntryGroup($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 = CatalogServiceClient::entryGroupName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]'); + + get_entry_group_sample($formattedName); +} +// [END dataplex_v1_generated_CatalogService_GetEntryGroup_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_entry_link.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_entry_link.php new file mode 100644 index 000000000000..65b75a1762ec --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_entry_link.php @@ -0,0 +1,77 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var EntryLink $response */ + $response = $catalogServiceClient->getEntryLink($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 = CatalogServiceClient::entryLinkName( + '[PROJECT]', + '[LOCATION]', + '[ENTRY_GROUP]', + '[ENTRY_LINK]' + ); + + get_entry_link_sample($formattedName); +} +// [END dataplex_v1_generated_CatalogService_GetEntryLink_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_entry_type.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_entry_type.php new file mode 100644 index 000000000000..678d3ec6b018 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_entry_type.php @@ -0,0 +1,72 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var EntryType $response */ + $response = $catalogServiceClient->getEntryType($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 = CatalogServiceClient::entryTypeName('[PROJECT]', '[LOCATION]', '[ENTRY_TYPE]'); + + get_entry_type_sample($formattedName); +} +// [END dataplex_v1_generated_CatalogService_GetEntryType_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_iam_policy.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_iam_policy.php new file mode 100644 index 000000000000..99cc3c21d6f2 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_iam_policy.php @@ -0,0 +1,72 @@ +setResource($resource); + + // Call the API and handle any network failures. + try { + /** @var Policy $response */ + $response = $catalogServiceClient->getIamPolicy($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 +{ + $resource = '[RESOURCE]'; + + get_iam_policy_sample($resource); +} +// [END dataplex_v1_generated_CatalogService_GetIamPolicy_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_location.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_location.php new file mode 100644 index 000000000000..be077d96b282 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/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 dataplex_v1_generated_CatalogService_GetLocation_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_metadata_feed.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_metadata_feed.php new file mode 100644 index 000000000000..2dfcc3b47290 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_metadata_feed.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var MetadataFeed $response */ + $response = $catalogServiceClient->getMetadataFeed($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 = CatalogServiceClient::metadataFeedName( + '[PROJECT]', + '[LOCATION]', + '[METADATA_FEED]' + ); + + get_metadata_feed_sample($formattedName); +} +// [END dataplex_v1_generated_CatalogService_GetMetadataFeed_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_metadata_job.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_metadata_job.php new file mode 100644 index 000000000000..c14a4193b114 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_metadata_job.php @@ -0,0 +1,72 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var MetadataJob $response */ + $response = $catalogServiceClient->getMetadataJob($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 = CatalogServiceClient::metadataJobName('[PROJECT]', '[LOCATION]', '[METADATAJOB]'); + + get_metadata_job_sample($formattedName); +} +// [END dataplex_v1_generated_CatalogService_GetMetadataJob_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/list_aspect_types.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/list_aspect_types.php new file mode 100644 index 000000000000..171c9f666dcf --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/list_aspect_types.php @@ -0,0 +1,78 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $catalogServiceClient->listAspectTypes($request); + + /** @var AspectType $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 = CatalogServiceClient::locationName('[PROJECT]', '[LOCATION]'); + + list_aspect_types_sample($formattedParent); +} +// [END dataplex_v1_generated_CatalogService_ListAspectTypes_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/list_entries.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/list_entries.php new file mode 100644 index 000000000000..a73796e8d330 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/list_entries.php @@ -0,0 +1,77 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $catalogServiceClient->listEntries($request); + + /** @var Entry $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 = CatalogServiceClient::entryGroupName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]'); + + list_entries_sample($formattedParent); +} +// [END dataplex_v1_generated_CatalogService_ListEntries_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/list_entry_groups.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/list_entry_groups.php new file mode 100644 index 000000000000..bc9de0e76cb8 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/list_entry_groups.php @@ -0,0 +1,78 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $catalogServiceClient->listEntryGroups($request); + + /** @var EntryGroup $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 = CatalogServiceClient::locationName('[PROJECT]', '[LOCATION]'); + + list_entry_groups_sample($formattedParent); +} +// [END dataplex_v1_generated_CatalogService_ListEntryGroups_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/list_entry_types.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/list_entry_types.php new file mode 100644 index 000000000000..dceca685ad25 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/list_entry_types.php @@ -0,0 +1,78 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $catalogServiceClient->listEntryTypes($request); + + /** @var EntryType $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 = CatalogServiceClient::locationName('[PROJECT]', '[LOCATION]'); + + list_entry_types_sample($formattedParent); +} +// [END dataplex_v1_generated_CatalogService_ListEntryTypes_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/list_locations.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/list_locations.php new file mode 100644 index 000000000000..aef8cac9a5f1 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/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 dataplex_v1_generated_CatalogService_ListLocations_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/list_metadata_feeds.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/list_metadata_feeds.php new file mode 100644 index 000000000000..94b226f84ea4 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/list_metadata_feeds.php @@ -0,0 +1,77 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $catalogServiceClient->listMetadataFeeds($request); + + /** @var MetadataFeed $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 = CatalogServiceClient::locationName('[PROJECT]', '[LOCATION]'); + + list_metadata_feeds_sample($formattedParent); +} +// [END dataplex_v1_generated_CatalogService_ListMetadataFeeds_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/list_metadata_jobs.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/list_metadata_jobs.php new file mode 100644 index 000000000000..fbdd5c0e44d6 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/list_metadata_jobs.php @@ -0,0 +1,77 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $catalogServiceClient->listMetadataJobs($request); + + /** @var MetadataJob $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 = CatalogServiceClient::locationName('[PROJECT]', '[LOCATION]'); + + list_metadata_jobs_sample($formattedParent); +} +// [END dataplex_v1_generated_CatalogService_ListMetadataJobs_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/lookup_context.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/lookup_context.php new file mode 100644 index 000000000000..28993447e96e --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/lookup_context.php @@ -0,0 +1,86 @@ +setName($name) + ->setResources($formattedResources); + + // Call the API and handle any network failures. + try { + /** @var LookupContextResponse $response */ + $response = $catalogServiceClient->lookupContext($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 +{ + $name = '[NAME]'; + $formattedResourcesElement = CatalogServiceClient::entryName( + '[PROJECT]', + '[LOCATION]', + '[ENTRY_GROUP]', + '[ENTRY]' + ); + + lookup_context_sample($name, $formattedResourcesElement); +} +// [END dataplex_v1_generated_CatalogService_LookupContext_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/lookup_entry.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/lookup_entry.php new file mode 100644 index 000000000000..a01598e718e3 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/lookup_entry.php @@ -0,0 +1,81 @@ +setName($name) + ->setEntry($formattedEntry); + + // Call the API and handle any network failures. + try { + /** @var Entry $response */ + $response = $catalogServiceClient->lookupEntry($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 +{ + $name = '[NAME]'; + $formattedEntry = CatalogServiceClient::entryName( + '[PROJECT]', + '[LOCATION]', + '[ENTRY_GROUP]', + '[ENTRY]' + ); + + lookup_entry_sample($name, $formattedEntry); +} +// [END dataplex_v1_generated_CatalogService_LookupEntry_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/lookup_entry_links.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/lookup_entry_links.php new file mode 100644 index 000000000000..9e00172514d3 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/lookup_entry_links.php @@ -0,0 +1,88 @@ +setName($name) + ->setEntry($formattedEntry); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $catalogServiceClient->lookupEntryLinks($request); + + /** @var EntryLink $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 +{ + $name = '[NAME]'; + $formattedEntry = CatalogServiceClient::entryName( + '[PROJECT]', + '[LOCATION]', + '[ENTRY_GROUP]', + '[ENTRY]' + ); + + lookup_entry_links_sample($name, $formattedEntry); +} +// [END dataplex_v1_generated_CatalogService_LookupEntryLinks_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/modify_entry.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/modify_entry.php new file mode 100644 index 000000000000..a1801f4b21aa --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/modify_entry.php @@ -0,0 +1,78 @@ +setEntryType($entryEntryType); + $request = (new ModifyEntryRequest()) + ->setName($name) + ->setEntry($entry); + + // Call the API and handle any network failures. + try { + /** @var Entry $response */ + $response = $catalogServiceClient->modifyEntry($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 +{ + $name = '[NAME]'; + $entryEntryType = '[ENTRY_TYPE]'; + + modify_entry_sample($name, $entryEntryType); +} +// [END dataplex_v1_generated_CatalogService_ModifyEntry_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/search_entries.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/search_entries.php new file mode 100644 index 000000000000..2e89d171694d --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/search_entries.php @@ -0,0 +1,82 @@ +setName($formattedName) + ->setQuery($query); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $catalogServiceClient->searchEntries($request); + + /** @var SearchEntriesResult $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 +{ + $formattedName = CatalogServiceClient::locationName('[PROJECT]', '[LOCATION]'); + $query = '[QUERY]'; + + search_entries_sample($formattedName, $query); +} +// [END dataplex_v1_generated_CatalogService_SearchEntries_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/set_iam_policy.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/set_iam_policy.php new file mode 100644 index 000000000000..282c3832e1a6 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/set_iam_policy.php @@ -0,0 +1,77 @@ +setResource($resource) + ->setPolicy($policy); + + // Call the API and handle any network failures. + try { + /** @var Policy $response */ + $response = $catalogServiceClient->setIamPolicy($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 +{ + $resource = '[RESOURCE]'; + + set_iam_policy_sample($resource); +} +// [END dataplex_v1_generated_CatalogService_SetIamPolicy_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/test_iam_permissions.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/test_iam_permissions.php new file mode 100644 index 000000000000..74732f35e4ab --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/test_iam_permissions.php @@ -0,0 +1,84 @@ +setResource($resource) + ->setPermissions($permissions); + + // Call the API and handle any network failures. + try { + /** @var TestIamPermissionsResponse $response */ + $response = $catalogServiceClient->testIamPermissions($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 +{ + $resource = '[RESOURCE]'; + $permissionsElement = '[PERMISSIONS]'; + + test_iam_permissions_sample($resource, $permissionsElement); +} +// [END dataplex_v1_generated_CatalogService_TestIamPermissions_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/update_aspect_type.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/update_aspect_type.php new file mode 100644 index 000000000000..cffe74498021 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/update_aspect_type.php @@ -0,0 +1,111 @@ +setName($aspectTypeMetadataTemplateName) + ->setType($aspectTypeMetadataTemplateType); + $aspectType = (new AspectType()) + ->setMetadataTemplate($aspectTypeMetadataTemplate); + $updateMask = new FieldMask(); + $request = (new UpdateAspectTypeRequest()) + ->setAspectType($aspectType) + ->setUpdateMask($updateMask); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $catalogServiceClient->updateAspectType($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var AspectType $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 +{ + $aspectTypeMetadataTemplateName = '[NAME]'; + $aspectTypeMetadataTemplateType = '[TYPE]'; + + update_aspect_type_sample($aspectTypeMetadataTemplateName, $aspectTypeMetadataTemplateType); +} +// [END dataplex_v1_generated_CatalogService_UpdateAspectType_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/update_entry.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/update_entry.php new file mode 100644 index 000000000000..895f96056847 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/update_entry.php @@ -0,0 +1,74 @@ +setEntryType($entryEntryType); + $request = (new UpdateEntryRequest()) + ->setEntry($entry); + + // Call the API and handle any network failures. + try { + /** @var Entry $response */ + $response = $catalogServiceClient->updateEntry($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 +{ + $entryEntryType = '[ENTRY_TYPE]'; + + update_entry_sample($entryEntryType); +} +// [END dataplex_v1_generated_CatalogService_UpdateEntry_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/update_entry_group.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/update_entry_group.php new file mode 100644 index 000000000000..1f8f92f69c33 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/update_entry_group.php @@ -0,0 +1,74 @@ +setEntryGroup($entryGroup) + ->setUpdateMask($updateMask); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $catalogServiceClient->updateEntryGroup($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var EntryGroup $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()); + } +} +// [END dataplex_v1_generated_CatalogService_UpdateEntryGroup_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/update_entry_link.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/update_entry_link.php new file mode 100644 index 000000000000..0b6e162165ac --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/update_entry_link.php @@ -0,0 +1,100 @@ +setName($entryLinkEntryReferencesName) + ->setType($entryLinkEntryReferencesType); + $entryLinkEntryReferences = [$entryReference,]; + $entryLink = (new EntryLink()) + ->setEntryLinkType($entryLinkEntryLinkType) + ->setEntryReferences($entryLinkEntryReferences); + $request = (new UpdateEntryLinkRequest()) + ->setEntryLink($entryLink); + + // Call the API and handle any network failures. + try { + /** @var EntryLink $response */ + $response = $catalogServiceClient->updateEntryLink($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 +{ + $entryLinkEntryLinkType = '[ENTRY_LINK_TYPE]'; + $entryLinkEntryReferencesName = '[NAME]'; + $entryLinkEntryReferencesType = Type::UNSPECIFIED; + + update_entry_link_sample( + $entryLinkEntryLinkType, + $entryLinkEntryReferencesName, + $entryLinkEntryReferencesType + ); +} +// [END dataplex_v1_generated_CatalogService_UpdateEntryLink_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/update_entry_type.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/update_entry_type.php new file mode 100644 index 000000000000..6cf58eda0e39 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/update_entry_type.php @@ -0,0 +1,74 @@ +setEntryType($entryType) + ->setUpdateMask($updateMask); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $catalogServiceClient->updateEntryType($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var EntryType $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()); + } +} +// [END dataplex_v1_generated_CatalogService_UpdateEntryType_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/update_metadata_feed.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/update_metadata_feed.php new file mode 100644 index 000000000000..d3a92e47151f --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/update_metadata_feed.php @@ -0,0 +1,74 @@ +setScope($metadataFeedScope); + $request = (new UpdateMetadataFeedRequest()) + ->setMetadataFeed($metadataFeed); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $catalogServiceClient->updateMetadataFeed($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var MetadataFeed $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()); + } +} +// [END dataplex_v1_generated_CatalogService_UpdateMetadataFeed_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/create_encryption_config.php b/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/create_encryption_config.php new file mode 100644 index 000000000000..0d8e6f1ccaa9 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/create_encryption_config.php @@ -0,0 +1,92 @@ +setParent($formattedParent) + ->setEncryptionConfigId($encryptionConfigId) + ->setEncryptionConfig($encryptionConfig); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $cmekServiceClient->createEncryptionConfig($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var EncryptionConfig $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 = CmekServiceClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $encryptionConfigId = '[ENCRYPTION_CONFIG_ID]'; + + create_encryption_config_sample($formattedParent, $encryptionConfigId); +} +// [END dataplex_v1_generated_CmekService_CreateEncryptionConfig_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/delete_encryption_config.php b/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/delete_encryption_config.php new file mode 100644 index 000000000000..3e2ad99e45cc --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/delete_encryption_config.php @@ -0,0 +1,84 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $cmekServiceClient->deleteEncryptionConfig($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 = CmekServiceClient::encryptionConfigName( + '[ORGANIZATION]', + '[LOCATION]', + '[ENCRYPTION_CONFIG]' + ); + + delete_encryption_config_sample($formattedName); +} +// [END dataplex_v1_generated_CmekService_DeleteEncryptionConfig_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/get_encryption_config.php b/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/get_encryption_config.php new file mode 100644 index 000000000000..1d50eb374567 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/get_encryption_config.php @@ -0,0 +1,75 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var EncryptionConfig $response */ + $response = $cmekServiceClient->getEncryptionConfig($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 = CmekServiceClient::encryptionConfigName( + '[ORGANIZATION]', + '[LOCATION]', + '[ENCRYPTION_CONFIG]' + ); + + get_encryption_config_sample($formattedName); +} +// [END dataplex_v1_generated_CmekService_GetEncryptionConfig_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/get_iam_policy.php b/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/get_iam_policy.php new file mode 100644 index 000000000000..6052e943af21 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/get_iam_policy.php @@ -0,0 +1,72 @@ +setResource($resource); + + // Call the API and handle any network failures. + try { + /** @var Policy $response */ + $response = $cmekServiceClient->getIamPolicy($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 +{ + $resource = '[RESOURCE]'; + + get_iam_policy_sample($resource); +} +// [END dataplex_v1_generated_CmekService_GetIamPolicy_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/get_location.php b/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/get_location.php new file mode 100644 index 000000000000..34bbc5bdbc7d --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/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 dataplex_v1_generated_CmekService_GetLocation_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/list_encryption_configs.php b/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/list_encryption_configs.php new file mode 100644 index 000000000000..d7d5984d9ed1 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/list_encryption_configs.php @@ -0,0 +1,76 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $cmekServiceClient->listEncryptionConfigs($request); + + /** @var EncryptionConfig $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 = CmekServiceClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + + list_encryption_configs_sample($formattedParent); +} +// [END dataplex_v1_generated_CmekService_ListEncryptionConfigs_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/list_locations.php b/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/list_locations.php new file mode 100644 index 000000000000..6a474e64362b --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/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 dataplex_v1_generated_CmekService_ListLocations_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/set_iam_policy.php b/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/set_iam_policy.php new file mode 100644 index 000000000000..b25f2e2fdf56 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/set_iam_policy.php @@ -0,0 +1,77 @@ +setResource($resource) + ->setPolicy($policy); + + // Call the API and handle any network failures. + try { + /** @var Policy $response */ + $response = $cmekServiceClient->setIamPolicy($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 +{ + $resource = '[RESOURCE]'; + + set_iam_policy_sample($resource); +} +// [END dataplex_v1_generated_CmekService_SetIamPolicy_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/test_iam_permissions.php b/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/test_iam_permissions.php new file mode 100644 index 000000000000..285ef7ca8dfc --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/test_iam_permissions.php @@ -0,0 +1,84 @@ +setResource($resource) + ->setPermissions($permissions); + + // Call the API and handle any network failures. + try { + /** @var TestIamPermissionsResponse $response */ + $response = $cmekServiceClient->testIamPermissions($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 +{ + $resource = '[RESOURCE]'; + $permissionsElement = '[PERMISSIONS]'; + + test_iam_permissions_sample($resource, $permissionsElement); +} +// [END dataplex_v1_generated_CmekService_TestIamPermissions_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/update_encryption_config.php b/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/update_encryption_config.php new file mode 100644 index 000000000000..58fe0307d7a8 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/update_encryption_config.php @@ -0,0 +1,71 @@ +setEncryptionConfig($encryptionConfig); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $cmekServiceClient->updateEncryptionConfig($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var EncryptionConfig $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()); + } +} +// [END dataplex_v1_generated_CmekService_UpdateEncryptionConfig_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/ContentServiceClient/get_iam_policy.php b/owl-bot-staging/Dataplex/v1/samples/V1/ContentServiceClient/get_iam_policy.php new file mode 100644 index 000000000000..04800c0c6999 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/ContentServiceClient/get_iam_policy.php @@ -0,0 +1,72 @@ +setResource($resource); + + // Call the API and handle any network failures. + try { + /** @var Policy $response */ + $response = $contentServiceClient->getIamPolicy($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 +{ + $resource = '[RESOURCE]'; + + get_iam_policy_sample($resource); +} +// [END dataplex_v1_generated_ContentService_GetIamPolicy_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/ContentServiceClient/get_location.php b/owl-bot-staging/Dataplex/v1/samples/V1/ContentServiceClient/get_location.php new file mode 100644 index 000000000000..73fc10a2c639 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/ContentServiceClient/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 dataplex_v1_generated_ContentService_GetLocation_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/ContentServiceClient/list_locations.php b/owl-bot-staging/Dataplex/v1/samples/V1/ContentServiceClient/list_locations.php new file mode 100644 index 000000000000..9555b373c25c --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/ContentServiceClient/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 dataplex_v1_generated_ContentService_ListLocations_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/ContentServiceClient/set_iam_policy.php b/owl-bot-staging/Dataplex/v1/samples/V1/ContentServiceClient/set_iam_policy.php new file mode 100644 index 000000000000..6add41070d98 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/ContentServiceClient/set_iam_policy.php @@ -0,0 +1,77 @@ +setResource($resource) + ->setPolicy($policy); + + // Call the API and handle any network failures. + try { + /** @var Policy $response */ + $response = $contentServiceClient->setIamPolicy($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 +{ + $resource = '[RESOURCE]'; + + set_iam_policy_sample($resource); +} +// [END dataplex_v1_generated_ContentService_SetIamPolicy_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/ContentServiceClient/test_iam_permissions.php b/owl-bot-staging/Dataplex/v1/samples/V1/ContentServiceClient/test_iam_permissions.php new file mode 100644 index 000000000000..fc024d0c9c9b --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/ContentServiceClient/test_iam_permissions.php @@ -0,0 +1,84 @@ +setResource($resource) + ->setPermissions($permissions); + + // Call the API and handle any network failures. + try { + /** @var TestIamPermissionsResponse $response */ + $response = $contentServiceClient->testIamPermissions($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 +{ + $resource = '[RESOURCE]'; + $permissionsElement = '[PERMISSIONS]'; + + test_iam_permissions_sample($resource, $permissionsElement); +} +// [END dataplex_v1_generated_ContentService_TestIamPermissions_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/create_data_asset.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/create_data_asset.php new file mode 100644 index 000000000000..d2a551fe8779 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/create_data_asset.php @@ -0,0 +1,101 @@ +setResource($dataAssetResource); + $request = (new CreateDataAssetRequest()) + ->setParent($formattedParent) + ->setDataAsset($dataAsset); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $dataProductServiceClient->createDataAsset($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var DataAsset $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 = DataProductServiceClient::dataProductName( + '[PROJECT]', + '[LOCATION]', + '[DATA_PRODUCT]' + ); + $dataAssetResource = '[RESOURCE]'; + + create_data_asset_sample($formattedParent, $dataAssetResource); +} +// [END dataplex_v1_generated_DataProductService_CreateDataAsset_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/create_data_product.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/create_data_product.php new file mode 100644 index 000000000000..e4a6390d4716 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/create_data_product.php @@ -0,0 +1,100 @@ +setDisplayName($dataProductDisplayName) + ->setOwnerEmails($dataProductOwnerEmails); + $request = (new CreateDataProductRequest()) + ->setParent($formattedParent) + ->setDataProduct($dataProduct); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $dataProductServiceClient->createDataProduct($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var DataProduct $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 = DataProductServiceClient::locationName('[PROJECT]', '[LOCATION]'); + $dataProductDisplayName = '[DISPLAY_NAME]'; + $dataProductOwnerEmailsElement = '[OWNER_EMAILS]'; + + create_data_product_sample( + $formattedParent, + $dataProductDisplayName, + $dataProductOwnerEmailsElement + ); +} +// [END dataplex_v1_generated_DataProductService_CreateDataProduct_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/delete_data_asset.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/delete_data_asset.php new file mode 100644 index 000000000000..eb9ddbba90c3 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/delete_data_asset.php @@ -0,0 +1,87 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $dataProductServiceClient->deleteDataAsset($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 = DataProductServiceClient::dataAssetName( + '[PROJECT]', + '[LOCATION]', + '[DATA_PRODUCT]', + '[DATA_ASSET]' + ); + + delete_data_asset_sample($formattedName); +} +// [END dataplex_v1_generated_DataProductService_DeleteDataAsset_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/delete_data_product.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/delete_data_product.php new file mode 100644 index 000000000000..90c6c6fbe321 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/delete_data_product.php @@ -0,0 +1,87 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $dataProductServiceClient->deleteDataProduct($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 = DataProductServiceClient::dataProductName( + '[PROJECT]', + '[LOCATION]', + '[DATA_PRODUCT]' + ); + + delete_data_product_sample($formattedName); +} +// [END dataplex_v1_generated_DataProductService_DeleteDataProduct_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/get_data_asset.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/get_data_asset.php new file mode 100644 index 000000000000..14e372d68d55 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/get_data_asset.php @@ -0,0 +1,78 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var DataAsset $response */ + $response = $dataProductServiceClient->getDataAsset($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 = DataProductServiceClient::dataAssetName( + '[PROJECT]', + '[LOCATION]', + '[DATA_PRODUCT]', + '[DATA_ASSET]' + ); + + get_data_asset_sample($formattedName); +} +// [END dataplex_v1_generated_DataProductService_GetDataAsset_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/get_data_product.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/get_data_product.php new file mode 100644 index 000000000000..e2590b997013 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/get_data_product.php @@ -0,0 +1,77 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var DataProduct $response */ + $response = $dataProductServiceClient->getDataProduct($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 = DataProductServiceClient::dataProductName( + '[PROJECT]', + '[LOCATION]', + '[DATA_PRODUCT]' + ); + + get_data_product_sample($formattedName); +} +// [END dataplex_v1_generated_DataProductService_GetDataProduct_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/get_iam_policy.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/get_iam_policy.php new file mode 100644 index 000000000000..db0ae1426ff9 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/get_iam_policy.php @@ -0,0 +1,72 @@ +setResource($resource); + + // Call the API and handle any network failures. + try { + /** @var Policy $response */ + $response = $dataProductServiceClient->getIamPolicy($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 +{ + $resource = '[RESOURCE]'; + + get_iam_policy_sample($resource); +} +// [END dataplex_v1_generated_DataProductService_GetIamPolicy_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/get_location.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/get_location.php new file mode 100644 index 000000000000..6da9797fe1e9 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/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 dataplex_v1_generated_DataProductService_GetLocation_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/list_data_assets.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/list_data_assets.php new file mode 100644 index 000000000000..1037767fc6cf --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/list_data_assets.php @@ -0,0 +1,82 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataProductServiceClient->listDataAssets($request); + + /** @var DataAsset $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 = DataProductServiceClient::dataProductName( + '[PROJECT]', + '[LOCATION]', + '[DATA_PRODUCT]' + ); + + list_data_assets_sample($formattedParent); +} +// [END dataplex_v1_generated_DataProductService_ListDataAssets_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/list_data_products.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/list_data_products.php new file mode 100644 index 000000000000..94a534820eda --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/list_data_products.php @@ -0,0 +1,81 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataProductServiceClient->listDataProducts($request); + + /** @var DataProduct $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 = DataProductServiceClient::locationName('[PROJECT]', '[LOCATION]'); + + list_data_products_sample($formattedParent); +} +// [END dataplex_v1_generated_DataProductService_ListDataProducts_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/list_locations.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/list_locations.php new file mode 100644 index 000000000000..7791ca9b6cda --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/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 dataplex_v1_generated_DataProductService_ListLocations_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/request_data_product_access.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/request_data_product_access.php new file mode 100644 index 000000000000..9093001767c3 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/request_data_product_access.php @@ -0,0 +1,82 @@ +setParent($formattedParent) + ->setChangeRequest($changeRequest); + + // Call the API and handle any network failures. + try { + /** @var RequestDataProductAccessResponse $response */ + $response = $dataProductServiceClient->requestDataProductAccess($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 = DataProductServiceClient::dataProductName( + '[PROJECT]', + '[LOCATION]', + '[DATA_PRODUCT]' + ); + + request_data_product_access_sample($formattedParent); +} +// [END dataplex_v1_generated_DataProductService_RequestDataProductAccess_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/set_iam_policy.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/set_iam_policy.php new file mode 100644 index 000000000000..c1beb9d359f1 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/set_iam_policy.php @@ -0,0 +1,77 @@ +setResource($resource) + ->setPolicy($policy); + + // Call the API and handle any network failures. + try { + /** @var Policy $response */ + $response = $dataProductServiceClient->setIamPolicy($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 +{ + $resource = '[RESOURCE]'; + + set_iam_policy_sample($resource); +} +// [END dataplex_v1_generated_DataProductService_SetIamPolicy_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/test_iam_permissions.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/test_iam_permissions.php new file mode 100644 index 000000000000..2d6686ec0d76 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/test_iam_permissions.php @@ -0,0 +1,84 @@ +setResource($resource) + ->setPermissions($permissions); + + // Call the API and handle any network failures. + try { + /** @var TestIamPermissionsResponse $response */ + $response = $dataProductServiceClient->testIamPermissions($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 +{ + $resource = '[RESOURCE]'; + $permissionsElement = '[PERMISSIONS]'; + + test_iam_permissions_sample($resource, $permissionsElement); +} +// [END dataplex_v1_generated_DataProductService_TestIamPermissions_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/update_data_asset.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/update_data_asset.php new file mode 100644 index 000000000000..ad4abcf60ce5 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/update_data_asset.php @@ -0,0 +1,91 @@ +setResource($dataAssetResource); + $request = (new UpdateDataAssetRequest()) + ->setDataAsset($dataAsset); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $dataProductServiceClient->updateDataAsset($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var DataAsset $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 +{ + $dataAssetResource = '[RESOURCE]'; + + update_data_asset_sample($dataAssetResource); +} +// [END dataplex_v1_generated_DataProductService_UpdateDataAsset_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/update_data_product.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/update_data_product.php new file mode 100644 index 000000000000..153eb02848e1 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/update_data_product.php @@ -0,0 +1,90 @@ +setDisplayName($dataProductDisplayName) + ->setOwnerEmails($dataProductOwnerEmails); + $request = (new UpdateDataProductRequest()) + ->setDataProduct($dataProduct); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $dataProductServiceClient->updateDataProduct($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var DataProduct $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 +{ + $dataProductDisplayName = '[DISPLAY_NAME]'; + $dataProductOwnerEmailsElement = '[OWNER_EMAILS]'; + + update_data_product_sample($dataProductDisplayName, $dataProductOwnerEmailsElement); +} +// [END dataplex_v1_generated_DataProductService_UpdateDataProduct_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/cancel_data_scan_job.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/cancel_data_scan_job.php new file mode 100644 index 000000000000..c7c3c6a0bf74 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/cancel_data_scan_job.php @@ -0,0 +1,79 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var CancelDataScanJobResponse $response */ + $response = $dataScanServiceClient->cancelDataScanJob($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 = DataScanServiceClient::dataScanJobName( + '[PROJECT]', + '[LOCATION]', + '[DATASCAN]', + '[JOB]' + ); + + cancel_data_scan_job_sample($formattedName); +} +// [END dataplex_v1_generated_DataScanService_CancelDataScanJob_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/create_data_scan.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/create_data_scan.php new file mode 100644 index 000000000000..717ecce2a849 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/create_data_scan.php @@ -0,0 +1,91 @@ +setData($dataScanData); + $request = (new CreateDataScanRequest()) + ->setParent($formattedParent) + ->setDataScan($dataScan); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $dataScanServiceClient->createDataScan($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var DataScan $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 = DataScanServiceClient::locationName('[PROJECT]', '[LOCATION]'); + + create_data_scan_sample($formattedParent); +} +// [END dataplex_v1_generated_DataScanService_CreateDataScan_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/delete_data_scan.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/delete_data_scan.php new file mode 100644 index 000000000000..31a054687068 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/delete_data_scan.php @@ -0,0 +1,83 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $dataScanServiceClient->deleteDataScan($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 = DataScanServiceClient::dataScanName('[PROJECT]', '[LOCATION]', '[DATASCAN]'); + + delete_data_scan_sample($formattedName); +} +// [END dataplex_v1_generated_DataScanService_DeleteDataScan_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/generate_data_quality_rules.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/generate_data_quality_rules.php new file mode 100644 index 000000000000..52fe90ab3c1a --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/generate_data_quality_rules.php @@ -0,0 +1,78 @@ +setName($name); + + // Call the API and handle any network failures. + try { + /** @var GenerateDataQualityRulesResponse $response */ + $response = $dataScanServiceClient->generateDataQualityRules($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 +{ + $name = '[NAME]'; + + generate_data_quality_rules_sample($name); +} +// [END dataplex_v1_generated_DataScanService_GenerateDataQualityRules_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/get_data_scan.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/get_data_scan.php new file mode 100644 index 000000000000..37babe2cf48a --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/get_data_scan.php @@ -0,0 +1,74 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var DataScan $response */ + $response = $dataScanServiceClient->getDataScan($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 = DataScanServiceClient::dataScanName('[PROJECT]', '[LOCATION]', '[DATASCAN]'); + + get_data_scan_sample($formattedName); +} +// [END dataplex_v1_generated_DataScanService_GetDataScan_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/get_data_scan_job.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/get_data_scan_job.php new file mode 100644 index 000000000000..0829c32e5a86 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/get_data_scan_job.php @@ -0,0 +1,79 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var DataScanJob $response */ + $response = $dataScanServiceClient->getDataScanJob($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 = DataScanServiceClient::dataScanJobName( + '[PROJECT]', + '[LOCATION]', + '[DATASCAN]', + '[JOB]' + ); + + get_data_scan_job_sample($formattedName); +} +// [END dataplex_v1_generated_DataScanService_GetDataScanJob_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/get_iam_policy.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/get_iam_policy.php new file mode 100644 index 000000000000..cb8bf870306e --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/get_iam_policy.php @@ -0,0 +1,72 @@ +setResource($resource); + + // Call the API and handle any network failures. + try { + /** @var Policy $response */ + $response = $dataScanServiceClient->getIamPolicy($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 +{ + $resource = '[RESOURCE]'; + + get_iam_policy_sample($resource); +} +// [END dataplex_v1_generated_DataScanService_GetIamPolicy_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/get_location.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/get_location.php new file mode 100644 index 000000000000..ba5d223011b4 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/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 dataplex_v1_generated_DataScanService_GetLocation_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/list_data_scan_jobs.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/list_data_scan_jobs.php new file mode 100644 index 000000000000..e744c55ca065 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/list_data_scan_jobs.php @@ -0,0 +1,79 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataScanServiceClient->listDataScanJobs($request); + + /** @var DataScanJob $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 = DataScanServiceClient::dataScanName('[PROJECT]', '[LOCATION]', '[DATASCAN]'); + + list_data_scan_jobs_sample($formattedParent); +} +// [END dataplex_v1_generated_DataScanService_ListDataScanJobs_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/list_data_scans.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/list_data_scans.php new file mode 100644 index 000000000000..81089893f17b --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/list_data_scans.php @@ -0,0 +1,79 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataScanServiceClient->listDataScans($request); + + /** @var DataScan $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 = DataScanServiceClient::locationName('[PROJECT]', '[LOCATION]'); + + list_data_scans_sample($formattedParent); +} +// [END dataplex_v1_generated_DataScanService_ListDataScans_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/list_locations.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/list_locations.php new file mode 100644 index 000000000000..95c4b11544c0 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/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 dataplex_v1_generated_DataScanService_ListLocations_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/run_data_scan.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/run_data_scan.php new file mode 100644 index 000000000000..ed79896714a8 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/run_data_scan.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var RunDataScanResponse $response */ + $response = $dataScanServiceClient->runDataScan($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 = DataScanServiceClient::dataScanName('[PROJECT]', '[LOCATION]', '[DATASCAN]'); + + run_data_scan_sample($formattedName); +} +// [END dataplex_v1_generated_DataScanService_RunDataScan_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/set_iam_policy.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/set_iam_policy.php new file mode 100644 index 000000000000..e9774f5bd395 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/set_iam_policy.php @@ -0,0 +1,77 @@ +setResource($resource) + ->setPolicy($policy); + + // Call the API and handle any network failures. + try { + /** @var Policy $response */ + $response = $dataScanServiceClient->setIamPolicy($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 +{ + $resource = '[RESOURCE]'; + + set_iam_policy_sample($resource); +} +// [END dataplex_v1_generated_DataScanService_SetIamPolicy_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/test_iam_permissions.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/test_iam_permissions.php new file mode 100644 index 000000000000..8918fff363e9 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/test_iam_permissions.php @@ -0,0 +1,84 @@ +setResource($resource) + ->setPermissions($permissions); + + // Call the API and handle any network failures. + try { + /** @var TestIamPermissionsResponse $response */ + $response = $dataScanServiceClient->testIamPermissions($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 +{ + $resource = '[RESOURCE]'; + $permissionsElement = '[PERMISSIONS]'; + + test_iam_permissions_sample($resource, $permissionsElement); +} +// [END dataplex_v1_generated_DataScanService_TestIamPermissions_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/update_data_scan.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/update_data_scan.php new file mode 100644 index 000000000000..64c41abf083c --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/update_data_scan.php @@ -0,0 +1,74 @@ +setData($dataScanData); + $request = (new UpdateDataScanRequest()) + ->setDataScan($dataScan); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $dataScanServiceClient->updateDataScan($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var DataScan $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()); + } +} +// [END dataplex_v1_generated_DataScanService_UpdateDataScan_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/create_data_attribute.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/create_data_attribute.php new file mode 100644 index 000000000000..c5a60820a5e5 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/create_data_attribute.php @@ -0,0 +1,98 @@ +setParent($formattedParent) + ->setDataAttributeId($dataAttributeId) + ->setDataAttribute($dataAttribute); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $dataTaxonomyServiceClient->createDataAttribute($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var DataAttribute $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 = DataTaxonomyServiceClient::dataTaxonomyName( + '[PROJECT]', + '[LOCATION]', + '[DATA_TAXONOMY_ID]' + ); + $dataAttributeId = '[DATA_ATTRIBUTE_ID]'; + + create_data_attribute_sample($formattedParent, $dataAttributeId); +} +// [END dataplex_v1_generated_DataTaxonomyService_CreateDataAttribute_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/create_data_attribute_binding.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/create_data_attribute_binding.php new file mode 100644 index 000000000000..1a15fc434caa --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/create_data_attribute_binding.php @@ -0,0 +1,96 @@ +setParent($formattedParent) + ->setDataAttributeBindingId($dataAttributeBindingId) + ->setDataAttributeBinding($dataAttributeBinding); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $dataTaxonomyServiceClient->createDataAttributeBinding($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var DataAttributeBinding $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 = DataTaxonomyServiceClient::locationName('[PROJECT]', '[LOCATION]'); + $dataAttributeBindingId = '[DATA_ATTRIBUTE_BINDING_ID]'; + + create_data_attribute_binding_sample($formattedParent, $dataAttributeBindingId); +} +// [END dataplex_v1_generated_DataTaxonomyService_CreateDataAttributeBinding_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/create_data_taxonomy.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/create_data_taxonomy.php new file mode 100644 index 000000000000..5b8d564d5156 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/create_data_taxonomy.php @@ -0,0 +1,92 @@ +setParent($formattedParent) + ->setDataTaxonomyId($dataTaxonomyId) + ->setDataTaxonomy($dataTaxonomy); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $dataTaxonomyServiceClient->createDataTaxonomy($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var DataTaxonomy $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 = DataTaxonomyServiceClient::locationName('[PROJECT]', '[LOCATION]'); + $dataTaxonomyId = '[DATA_TAXONOMY_ID]'; + + create_data_taxonomy_sample($formattedParent, $dataTaxonomyId); +} +// [END dataplex_v1_generated_DataTaxonomyService_CreateDataTaxonomy_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/delete_data_attribute.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/delete_data_attribute.php new file mode 100644 index 000000000000..18cfddefbbb9 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/delete_data_attribute.php @@ -0,0 +1,86 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $dataTaxonomyServiceClient->deleteDataAttribute($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 = DataTaxonomyServiceClient::dataAttributeName( + '[PROJECT]', + '[LOCATION]', + '[DATATAXONOMY]', + '[DATA_ATTRIBUTE_ID]' + ); + + delete_data_attribute_sample($formattedName); +} +// [END dataplex_v1_generated_DataTaxonomyService_DeleteDataAttribute_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/delete_data_attribute_binding.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/delete_data_attribute_binding.php new file mode 100644 index 000000000000..bbf37f09783a --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/delete_data_attribute_binding.php @@ -0,0 +1,93 @@ +setName($formattedName) + ->setEtag($etag); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $dataTaxonomyServiceClient->deleteDataAttributeBinding($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 = DataTaxonomyServiceClient::dataAttributeBindingName( + '[PROJECT]', + '[LOCATION]', + '[DATA_ATTRIBUTE_BINDING_ID]' + ); + $etag = '[ETAG]'; + + delete_data_attribute_binding_sample($formattedName, $etag); +} +// [END dataplex_v1_generated_DataTaxonomyService_DeleteDataAttributeBinding_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/delete_data_taxonomy.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/delete_data_taxonomy.php new file mode 100644 index 000000000000..321656c7f7cd --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/delete_data_taxonomy.php @@ -0,0 +1,86 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $dataTaxonomyServiceClient->deleteDataTaxonomy($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 = DataTaxonomyServiceClient::dataTaxonomyName( + '[PROJECT]', + '[LOCATION]', + '[DATA_TAXONOMY_ID]' + ); + + delete_data_taxonomy_sample($formattedName); +} +// [END dataplex_v1_generated_DataTaxonomyService_DeleteDataTaxonomy_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/get_data_attribute.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/get_data_attribute.php new file mode 100644 index 000000000000..0d669c88006c --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/get_data_attribute.php @@ -0,0 +1,77 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var DataAttribute $response */ + $response = $dataTaxonomyServiceClient->getDataAttribute($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 = DataTaxonomyServiceClient::dataAttributeName( + '[PROJECT]', + '[LOCATION]', + '[DATATAXONOMY]', + '[DATA_ATTRIBUTE_ID]' + ); + + get_data_attribute_sample($formattedName); +} +// [END dataplex_v1_generated_DataTaxonomyService_GetDataAttribute_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/get_data_attribute_binding.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/get_data_attribute_binding.php new file mode 100644 index 000000000000..9c8ced28cfba --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/get_data_attribute_binding.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var DataAttributeBinding $response */ + $response = $dataTaxonomyServiceClient->getDataAttributeBinding($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 = DataTaxonomyServiceClient::dataAttributeBindingName( + '[PROJECT]', + '[LOCATION]', + '[DATA_ATTRIBUTE_BINDING_ID]' + ); + + get_data_attribute_binding_sample($formattedName); +} +// [END dataplex_v1_generated_DataTaxonomyService_GetDataAttributeBinding_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/get_data_taxonomy.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/get_data_taxonomy.php new file mode 100644 index 000000000000..c1fc9e7ad15b --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/get_data_taxonomy.php @@ -0,0 +1,74 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var DataTaxonomy $response */ + $response = $dataTaxonomyServiceClient->getDataTaxonomy($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 = DataTaxonomyServiceClient::dataTaxonomyName( + '[PROJECT]', + '[LOCATION]', + '[DATA_TAXONOMY_ID]' + ); + + get_data_taxonomy_sample($formattedName); +} +// [END dataplex_v1_generated_DataTaxonomyService_GetDataTaxonomy_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/get_iam_policy.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/get_iam_policy.php new file mode 100644 index 000000000000..4ea2443378cc --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/get_iam_policy.php @@ -0,0 +1,72 @@ +setResource($resource); + + // Call the API and handle any network failures. + try { + /** @var Policy $response */ + $response = $dataTaxonomyServiceClient->getIamPolicy($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 +{ + $resource = '[RESOURCE]'; + + get_iam_policy_sample($resource); +} +// [END dataplex_v1_generated_DataTaxonomyService_GetIamPolicy_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/get_location.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/get_location.php new file mode 100644 index 000000000000..c5b0b321108d --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/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 dataplex_v1_generated_DataTaxonomyService_GetLocation_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/list_data_attribute_bindings.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/list_data_attribute_bindings.php new file mode 100644 index 000000000000..62a65888b13f --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/list_data_attribute_bindings.php @@ -0,0 +1,77 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataTaxonomyServiceClient->listDataAttributeBindings($request); + + /** @var DataAttributeBinding $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 = DataTaxonomyServiceClient::locationName('[PROJECT]', '[LOCATION]'); + + list_data_attribute_bindings_sample($formattedParent); +} +// [END dataplex_v1_generated_DataTaxonomyService_ListDataAttributeBindings_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/list_data_attributes.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/list_data_attributes.php new file mode 100644 index 000000000000..776851cb30b1 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/list_data_attributes.php @@ -0,0 +1,81 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataTaxonomyServiceClient->listDataAttributes($request); + + /** @var DataAttribute $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 = DataTaxonomyServiceClient::dataTaxonomyName( + '[PROJECT]', + '[LOCATION]', + '[DATA_TAXONOMY_ID]' + ); + + list_data_attributes_sample($formattedParent); +} +// [END dataplex_v1_generated_DataTaxonomyService_ListDataAttributes_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/list_data_taxonomies.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/list_data_taxonomies.php new file mode 100644 index 000000000000..9864fc7d084f --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/list_data_taxonomies.php @@ -0,0 +1,78 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataTaxonomyServiceClient->listDataTaxonomies($request); + + /** @var DataTaxonomy $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 = DataTaxonomyServiceClient::locationName('[PROJECT]', '[LOCATION]'); + + list_data_taxonomies_sample($formattedParent); +} +// [END dataplex_v1_generated_DataTaxonomyService_ListDataTaxonomies_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/list_locations.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/list_locations.php new file mode 100644 index 000000000000..5a1bca4bb18d --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/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 dataplex_v1_generated_DataTaxonomyService_ListLocations_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/set_iam_policy.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/set_iam_policy.php new file mode 100644 index 000000000000..f49a7ee80c7d --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/set_iam_policy.php @@ -0,0 +1,77 @@ +setResource($resource) + ->setPolicy($policy); + + // Call the API and handle any network failures. + try { + /** @var Policy $response */ + $response = $dataTaxonomyServiceClient->setIamPolicy($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 +{ + $resource = '[RESOURCE]'; + + set_iam_policy_sample($resource); +} +// [END dataplex_v1_generated_DataTaxonomyService_SetIamPolicy_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/test_iam_permissions.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/test_iam_permissions.php new file mode 100644 index 000000000000..8f1961dbf3a3 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/test_iam_permissions.php @@ -0,0 +1,84 @@ +setResource($resource) + ->setPermissions($permissions); + + // Call the API and handle any network failures. + try { + /** @var TestIamPermissionsResponse $response */ + $response = $dataTaxonomyServiceClient->testIamPermissions($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 +{ + $resource = '[RESOURCE]'; + $permissionsElement = '[PERMISSIONS]'; + + test_iam_permissions_sample($resource, $permissionsElement); +} +// [END dataplex_v1_generated_DataTaxonomyService_TestIamPermissions_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/update_data_attribute.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/update_data_attribute.php new file mode 100644 index 000000000000..00951a15cd29 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/update_data_attribute.php @@ -0,0 +1,74 @@ +setUpdateMask($updateMask) + ->setDataAttribute($dataAttribute); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $dataTaxonomyServiceClient->updateDataAttribute($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var DataAttribute $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()); + } +} +// [END dataplex_v1_generated_DataTaxonomyService_UpdateDataAttribute_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/update_data_attribute_binding.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/update_data_attribute_binding.php new file mode 100644 index 000000000000..a11bf08e4dd7 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/update_data_attribute_binding.php @@ -0,0 +1,74 @@ +setUpdateMask($updateMask) + ->setDataAttributeBinding($dataAttributeBinding); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $dataTaxonomyServiceClient->updateDataAttributeBinding($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var DataAttributeBinding $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()); + } +} +// [END dataplex_v1_generated_DataTaxonomyService_UpdateDataAttributeBinding_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/update_data_taxonomy.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/update_data_taxonomy.php new file mode 100644 index 000000000000..4bd702118082 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/update_data_taxonomy.php @@ -0,0 +1,74 @@ +setUpdateMask($updateMask) + ->setDataTaxonomy($dataTaxonomy); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $dataTaxonomyServiceClient->updateDataTaxonomy($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var DataTaxonomy $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()); + } +} +// [END dataplex_v1_generated_DataTaxonomyService_UpdateDataTaxonomy_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/cancel_job.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/cancel_job.php new file mode 100644 index 000000000000..3add16f012d8 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/cancel_job.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $dataplexServiceClient->cancelJob($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 = DataplexServiceClient::jobName( + '[PROJECT]', + '[LOCATION]', + '[LAKE]', + '[TASK]', + '[JOB]' + ); + + cancel_job_sample($formattedName); +} +// [END dataplex_v1_generated_DataplexService_CancelJob_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/create_asset.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/create_asset.php new file mode 100644 index 000000000000..a374a2a522c5 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/create_asset.php @@ -0,0 +1,106 @@ +setType($assetResourceSpecType); + $asset = (new Asset()) + ->setResourceSpec($assetResourceSpec); + $request = (new CreateAssetRequest()) + ->setParent($formattedParent) + ->setAssetId($assetId) + ->setAsset($asset); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $dataplexServiceClient->createAsset($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var Asset $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 = DataplexServiceClient::zoneName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]'); + $assetId = '[ASSET_ID]'; + $assetResourceSpecType = Type::TYPE_UNSPECIFIED; + + create_asset_sample($formattedParent, $assetId, $assetResourceSpecType); +} +// [END dataplex_v1_generated_DataplexService_CreateAsset_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/create_lake.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/create_lake.php new file mode 100644 index 000000000000..4dd2a59c6edb --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/create_lake.php @@ -0,0 +1,97 @@ +setParent($formattedParent) + ->setLakeId($lakeId) + ->setLake($lake); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $dataplexServiceClient->createLake($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var Lake $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 = DataplexServiceClient::locationName('[PROJECT]', '[LOCATION]'); + $lakeId = '[LAKE_ID]'; + + create_lake_sample($formattedParent, $lakeId); +} +// [END dataplex_v1_generated_DataplexService_CreateLake_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/create_task.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/create_task.php new file mode 100644 index 000000000000..a0326e736574 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/create_task.php @@ -0,0 +1,113 @@ +setType($taskTriggerSpecType); + $taskExecutionSpec = (new ExecutionSpec()) + ->setServiceAccount($taskExecutionSpecServiceAccount); + $task = (new Task()) + ->setTriggerSpec($taskTriggerSpec) + ->setExecutionSpec($taskExecutionSpec); + $request = (new CreateTaskRequest()) + ->setParent($formattedParent) + ->setTaskId($taskId) + ->setTask($task); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $dataplexServiceClient->createTask($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var Task $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 = DataplexServiceClient::lakeName('[PROJECT]', '[LOCATION]', '[LAKE]'); + $taskId = '[TASK_ID]'; + $taskTriggerSpecType = Type::TYPE_UNSPECIFIED; + $taskExecutionSpecServiceAccount = '[SERVICE_ACCOUNT]'; + + create_task_sample( + $formattedParent, + $taskId, + $taskTriggerSpecType, + $taskExecutionSpecServiceAccount + ); +} +// [END dataplex_v1_generated_DataplexService_CreateTask_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/create_zone.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/create_zone.php new file mode 100644 index 000000000000..d8fe12a59fda --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/create_zone.php @@ -0,0 +1,113 @@ +setLocationType($zoneResourceSpecLocationType); + $zone = (new Zone()) + ->setType($zoneType) + ->setResourceSpec($zoneResourceSpec); + $request = (new CreateZoneRequest()) + ->setParent($formattedParent) + ->setZoneId($zoneId) + ->setZone($zone); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $dataplexServiceClient->createZone($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var Zone $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 = DataplexServiceClient::lakeName('[PROJECT]', '[LOCATION]', '[LAKE]'); + $zoneId = '[ZONE_ID]'; + $zoneType = Type::TYPE_UNSPECIFIED; + $zoneResourceSpecLocationType = LocationType::LOCATION_TYPE_UNSPECIFIED; + + create_zone_sample($formattedParent, $zoneId, $zoneType, $zoneResourceSpecLocationType); +} +// [END dataplex_v1_generated_DataplexService_CreateZone_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/delete_asset.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/delete_asset.php new file mode 100644 index 000000000000..2636ffec6830 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/delete_asset.php @@ -0,0 +1,88 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $dataplexServiceClient->deleteAsset($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 = DataplexServiceClient::assetName( + '[PROJECT]', + '[LOCATION]', + '[LAKE]', + '[ZONE]', + '[ASSET]' + ); + + delete_asset_sample($formattedName); +} +// [END dataplex_v1_generated_DataplexService_DeleteAsset_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/delete_lake.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/delete_lake.php new file mode 100644 index 000000000000..fc79a7d52742 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/delete_lake.php @@ -0,0 +1,82 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $dataplexServiceClient->deleteLake($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 = DataplexServiceClient::lakeName('[PROJECT]', '[LOCATION]', '[LAKE]'); + + delete_lake_sample($formattedName); +} +// [END dataplex_v1_generated_DataplexService_DeleteLake_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/delete_task.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/delete_task.php new file mode 100644 index 000000000000..56794c258073 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/delete_task.php @@ -0,0 +1,81 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $dataplexServiceClient->deleteTask($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 = DataplexServiceClient::taskName('[PROJECT]', '[LOCATION]', '[LAKE]', '[TASK]'); + + delete_task_sample($formattedName); +} +// [END dataplex_v1_generated_DataplexService_DeleteTask_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/delete_zone.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/delete_zone.php new file mode 100644 index 000000000000..808e13c8ad39 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/delete_zone.php @@ -0,0 +1,82 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $dataplexServiceClient->deleteZone($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 = DataplexServiceClient::zoneName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]'); + + delete_zone_sample($formattedName); +} +// [END dataplex_v1_generated_DataplexService_DeleteZone_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_asset.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_asset.php new file mode 100644 index 000000000000..b75db61cf003 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_asset.php @@ -0,0 +1,78 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Asset $response */ + $response = $dataplexServiceClient->getAsset($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 = DataplexServiceClient::assetName( + '[PROJECT]', + '[LOCATION]', + '[LAKE]', + '[ZONE]', + '[ASSET]' + ); + + get_asset_sample($formattedName); +} +// [END dataplex_v1_generated_DataplexService_GetAsset_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_iam_policy.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_iam_policy.php new file mode 100644 index 000000000000..89fbb8d506f4 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_iam_policy.php @@ -0,0 +1,72 @@ +setResource($resource); + + // Call the API and handle any network failures. + try { + /** @var Policy $response */ + $response = $dataplexServiceClient->getIamPolicy($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 +{ + $resource = '[RESOURCE]'; + + get_iam_policy_sample($resource); +} +// [END dataplex_v1_generated_DataplexService_GetIamPolicy_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_job.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_job.php new file mode 100644 index 000000000000..5fee49308e80 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_job.php @@ -0,0 +1,78 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Job $response */ + $response = $dataplexServiceClient->getJob($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 = DataplexServiceClient::jobName( + '[PROJECT]', + '[LOCATION]', + '[LAKE]', + '[TASK]', + '[JOB]' + ); + + get_job_sample($formattedName); +} +// [END dataplex_v1_generated_DataplexService_GetJob_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_lake.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_lake.php new file mode 100644 index 000000000000..3e7220810ba6 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_lake.php @@ -0,0 +1,72 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Lake $response */ + $response = $dataplexServiceClient->getLake($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 = DataplexServiceClient::lakeName('[PROJECT]', '[LOCATION]', '[LAKE]'); + + get_lake_sample($formattedName); +} +// [END dataplex_v1_generated_DataplexService_GetLake_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_location.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_location.php new file mode 100644 index 000000000000..1621b0537f14 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/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 dataplex_v1_generated_DataplexService_GetLocation_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_task.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_task.php new file mode 100644 index 000000000000..40085096202b --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_task.php @@ -0,0 +1,72 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Task $response */ + $response = $dataplexServiceClient->getTask($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 = DataplexServiceClient::taskName('[PROJECT]', '[LOCATION]', '[LAKE]', '[TASK]'); + + get_task_sample($formattedName); +} +// [END dataplex_v1_generated_DataplexService_GetTask_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_zone.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_zone.php new file mode 100644 index 000000000000..305eea8f32c0 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_zone.php @@ -0,0 +1,72 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Zone $response */ + $response = $dataplexServiceClient->getZone($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 = DataplexServiceClient::zoneName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]'); + + get_zone_sample($formattedName); +} +// [END dataplex_v1_generated_DataplexService_GetZone_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_asset_actions.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_asset_actions.php new file mode 100644 index 000000000000..902d2ccd1f86 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_asset_actions.php @@ -0,0 +1,83 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataplexServiceClient->listAssetActions($request); + + /** @var Action $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 = DataplexServiceClient::assetName( + '[PROJECT]', + '[LOCATION]', + '[LAKE]', + '[ZONE]', + '[ASSET]' + ); + + list_asset_actions_sample($formattedParent); +} +// [END dataplex_v1_generated_DataplexService_ListAssetActions_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_assets.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_assets.php new file mode 100644 index 000000000000..2c1b1c1badfb --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_assets.php @@ -0,0 +1,77 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataplexServiceClient->listAssets($request); + + /** @var Asset $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 = DataplexServiceClient::zoneName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]'); + + list_assets_sample($formattedParent); +} +// [END dataplex_v1_generated_DataplexService_ListAssets_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_jobs.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_jobs.php new file mode 100644 index 000000000000..4cb3c99b36f7 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_jobs.php @@ -0,0 +1,77 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataplexServiceClient->listJobs($request); + + /** @var Job $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 = DataplexServiceClient::taskName('[PROJECT]', '[LOCATION]', '[LAKE]', '[TASK]'); + + list_jobs_sample($formattedParent); +} +// [END dataplex_v1_generated_DataplexService_ListJobs_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_lake_actions.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_lake_actions.php new file mode 100644 index 000000000000..3dbf0d33eed1 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_lake_actions.php @@ -0,0 +1,77 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataplexServiceClient->listLakeActions($request); + + /** @var Action $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 = DataplexServiceClient::lakeName('[PROJECT]', '[LOCATION]', '[LAKE]'); + + list_lake_actions_sample($formattedParent); +} +// [END dataplex_v1_generated_DataplexService_ListLakeActions_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_lakes.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_lakes.php new file mode 100644 index 000000000000..41a0297d6d7a --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_lakes.php @@ -0,0 +1,78 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataplexServiceClient->listLakes($request); + + /** @var Lake $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 = DataplexServiceClient::locationName('[PROJECT]', '[LOCATION]'); + + list_lakes_sample($formattedParent); +} +// [END dataplex_v1_generated_DataplexService_ListLakes_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_locations.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_locations.php new file mode 100644 index 000000000000..e058fb802458 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/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 dataplex_v1_generated_DataplexService_ListLocations_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_tasks.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_tasks.php new file mode 100644 index 000000000000..a9e9bfebac12 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_tasks.php @@ -0,0 +1,77 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataplexServiceClient->listTasks($request); + + /** @var Task $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 = DataplexServiceClient::lakeName('[PROJECT]', '[LOCATION]', '[LAKE]'); + + list_tasks_sample($formattedParent); +} +// [END dataplex_v1_generated_DataplexService_ListTasks_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_zone_actions.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_zone_actions.php new file mode 100644 index 000000000000..7ceba4e8e949 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_zone_actions.php @@ -0,0 +1,77 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataplexServiceClient->listZoneActions($request); + + /** @var Action $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 = DataplexServiceClient::zoneName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]'); + + list_zone_actions_sample($formattedParent); +} +// [END dataplex_v1_generated_DataplexService_ListZoneActions_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_zones.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_zones.php new file mode 100644 index 000000000000..e960aafe206f --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_zones.php @@ -0,0 +1,77 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $dataplexServiceClient->listZones($request); + + /** @var Zone $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 = DataplexServiceClient::lakeName('[PROJECT]', '[LOCATION]', '[LAKE]'); + + list_zones_sample($formattedParent); +} +// [END dataplex_v1_generated_DataplexService_ListZones_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/run_task.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/run_task.php new file mode 100644 index 000000000000..1be06711e84e --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/run_task.php @@ -0,0 +1,72 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var RunTaskResponse $response */ + $response = $dataplexServiceClient->runTask($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 = DataplexServiceClient::taskName('[PROJECT]', '[LOCATION]', '[LAKE]', '[TASK]'); + + run_task_sample($formattedName); +} +// [END dataplex_v1_generated_DataplexService_RunTask_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/set_iam_policy.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/set_iam_policy.php new file mode 100644 index 000000000000..5385248524e0 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/set_iam_policy.php @@ -0,0 +1,77 @@ +setResource($resource) + ->setPolicy($policy); + + // Call the API and handle any network failures. + try { + /** @var Policy $response */ + $response = $dataplexServiceClient->setIamPolicy($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 +{ + $resource = '[RESOURCE]'; + + set_iam_policy_sample($resource); +} +// [END dataplex_v1_generated_DataplexService_SetIamPolicy_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/test_iam_permissions.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/test_iam_permissions.php new file mode 100644 index 000000000000..2633f23ca88e --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/test_iam_permissions.php @@ -0,0 +1,84 @@ +setResource($resource) + ->setPermissions($permissions); + + // Call the API and handle any network failures. + try { + /** @var TestIamPermissionsResponse $response */ + $response = $dataplexServiceClient->testIamPermissions($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 +{ + $resource = '[RESOURCE]'; + $permissionsElement = '[PERMISSIONS]'; + + test_iam_permissions_sample($resource, $permissionsElement); +} +// [END dataplex_v1_generated_DataplexService_TestIamPermissions_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/update_asset.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/update_asset.php new file mode 100644 index 000000000000..14194ca0d663 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/update_asset.php @@ -0,0 +1,91 @@ +setType($assetResourceSpecType); + $asset = (new Asset()) + ->setResourceSpec($assetResourceSpec); + $request = (new UpdateAssetRequest()) + ->setUpdateMask($updateMask) + ->setAsset($asset); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $dataplexServiceClient->updateAsset($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var Asset $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 +{ + $assetResourceSpecType = Type::TYPE_UNSPECIFIED; + + update_asset_sample($assetResourceSpecType); +} +// [END dataplex_v1_generated_DataplexService_UpdateAsset_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/update_lake.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/update_lake.php new file mode 100644 index 000000000000..c7473c151974 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/update_lake.php @@ -0,0 +1,74 @@ +setUpdateMask($updateMask) + ->setLake($lake); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $dataplexServiceClient->updateLake($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var Lake $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()); + } +} +// [END dataplex_v1_generated_DataplexService_UpdateLake_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/update_task.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/update_task.php new file mode 100644 index 000000000000..080f231e9377 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/update_task.php @@ -0,0 +1,101 @@ +setType($taskTriggerSpecType); + $taskExecutionSpec = (new ExecutionSpec()) + ->setServiceAccount($taskExecutionSpecServiceAccount); + $task = (new Task()) + ->setTriggerSpec($taskTriggerSpec) + ->setExecutionSpec($taskExecutionSpec); + $request = (new UpdateTaskRequest()) + ->setUpdateMask($updateMask) + ->setTask($task); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $dataplexServiceClient->updateTask($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var Task $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 +{ + $taskTriggerSpecType = Type::TYPE_UNSPECIFIED; + $taskExecutionSpecServiceAccount = '[SERVICE_ACCOUNT]'; + + update_task_sample($taskTriggerSpecType, $taskExecutionSpecServiceAccount); +} +// [END dataplex_v1_generated_DataplexService_UpdateTask_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/update_zone.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/update_zone.php new file mode 100644 index 000000000000..a74bd355d58d --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/update_zone.php @@ -0,0 +1,96 @@ +setLocationType($zoneResourceSpecLocationType); + $zone = (new Zone()) + ->setType($zoneType) + ->setResourceSpec($zoneResourceSpec); + $request = (new UpdateZoneRequest()) + ->setUpdateMask($updateMask) + ->setZone($zone); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $dataplexServiceClient->updateZone($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var Zone $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 +{ + $zoneType = Type::TYPE_UNSPECIFIED; + $zoneResourceSpecLocationType = LocationType::LOCATION_TYPE_UNSPECIFIED; + + update_zone_sample($zoneType, $zoneResourceSpecLocationType); +} +// [END dataplex_v1_generated_DataplexService_UpdateZone_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/create_entity.php b/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/create_entity.php new file mode 100644 index 000000000000..e1f31fdeea49 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/create_entity.php @@ -0,0 +1,160 @@ + + * - image/{image subtype} + * - video/{video subtype} + * - audio/{audio subtype} + * @param bool $entitySchemaUserManaged Set to `true` if user-managed or `false` if managed by Dataplex + * Universal Catalog. The default is `false` (managed by Dataplex Universal + * Catalog). + * + * - Set to `false`to enable Dataplex Universal Catalog discovery to update + * the schema. + * including new data discovery, schema inference, and schema evolution. + * Users retain the ability to input and edit the schema. Dataplex Universal + * Catalog treats schema input by the user as though produced by a previous + * Dataplex Universal Catalog discovery operation, and it will evolve the + * schema and take action based on that treatment. + * + * - Set to `true` to fully manage the entity + * schema. This setting guarantees that Dataplex Universal Catalog will not + * change schema fields. + */ +function create_entity_sample( + string $formattedParent, + string $entityId, + int $entityType, + string $entityAsset, + string $entityDataPath, + int $entitySystem, + string $entityFormatMimeType, + bool $entitySchemaUserManaged +): void { + // Create a client. + $metadataServiceClient = new MetadataServiceClient(); + + // Prepare the request message. + $entityFormat = (new StorageFormat()) + ->setMimeType($entityFormatMimeType); + $entitySchema = (new Schema()) + ->setUserManaged($entitySchemaUserManaged); + $entity = (new Entity()) + ->setId($entityId) + ->setType($entityType) + ->setAsset($entityAsset) + ->setDataPath($entityDataPath) + ->setSystem($entitySystem) + ->setFormat($entityFormat) + ->setSchema($entitySchema); + $request = (new CreateEntityRequest()) + ->setParent($formattedParent) + ->setEntity($entity); + + // Call the API and handle any network failures. + try { + /** @var Entity $response */ + $response = $metadataServiceClient->createEntity($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 = MetadataServiceClient::zoneName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]'); + $entityId = '[ID]'; + $entityType = Type::TYPE_UNSPECIFIED; + $entityAsset = '[ASSET]'; + $entityDataPath = '[DATA_PATH]'; + $entitySystem = StorageSystem::STORAGE_SYSTEM_UNSPECIFIED; + $entityFormatMimeType = '[MIME_TYPE]'; + $entitySchemaUserManaged = false; + + create_entity_sample( + $formattedParent, + $entityId, + $entityType, + $entityAsset, + $entityDataPath, + $entitySystem, + $entityFormatMimeType, + $entitySchemaUserManaged + ); +} +// [END dataplex_v1_generated_MetadataService_CreateEntity_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/create_partition.php b/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/create_partition.php new file mode 100644 index 000000000000..d23dcafc390c --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/create_partition.php @@ -0,0 +1,93 @@ +/datasets//tables/` + */ +function create_partition_sample( + string $formattedParent, + string $partitionValuesElement, + string $partitionLocation +): void { + // Create a client. + $metadataServiceClient = new MetadataServiceClient(); + + // Prepare the request message. + $partitionValues = [$partitionValuesElement,]; + $partition = (new Partition()) + ->setValues($partitionValues) + ->setLocation($partitionLocation); + $request = (new CreatePartitionRequest()) + ->setParent($formattedParent) + ->setPartition($partition); + + // Call the API and handle any network failures. + try { + /** @var Partition $response */ + $response = $metadataServiceClient->createPartition($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 = MetadataServiceClient::entityName( + '[PROJECT]', + '[LOCATION]', + '[LAKE]', + '[ZONE]', + '[ENTITY]' + ); + $partitionValuesElement = '[VALUES]'; + $partitionLocation = '[LOCATION]'; + + create_partition_sample($formattedParent, $partitionValuesElement, $partitionLocation); +} +// [END dataplex_v1_generated_MetadataService_CreatePartition_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/delete_entity.php b/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/delete_entity.php new file mode 100644 index 000000000000..5298343b0da9 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/delete_entity.php @@ -0,0 +1,80 @@ +setName($formattedName) + ->setEtag($etag); + + // Call the API and handle any network failures. + try { + $metadataServiceClient->deleteEntity($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 = MetadataServiceClient::entityName( + '[PROJECT]', + '[LOCATION]', + '[LAKE]', + '[ZONE]', + '[ENTITY]' + ); + $etag = '[ETAG]'; + + delete_entity_sample($formattedName, $etag); +} +// [END dataplex_v1_generated_MetadataService_DeleteEntity_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/delete_partition.php b/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/delete_partition.php new file mode 100644 index 000000000000..a02a5a7619d1 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/delete_partition.php @@ -0,0 +1,80 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + $metadataServiceClient->deletePartition($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 = MetadataServiceClient::partitionName( + '[PROJECT]', + '[LOCATION]', + '[LAKE]', + '[ZONE]', + '[ENTITY]', + '[PARTITION]' + ); + + delete_partition_sample($formattedName); +} +// [END dataplex_v1_generated_MetadataService_DeletePartition_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/get_entity.php b/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/get_entity.php new file mode 100644 index 000000000000..acf8419bb45c --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/get_entity.php @@ -0,0 +1,78 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Entity $response */ + $response = $metadataServiceClient->getEntity($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 = MetadataServiceClient::entityName( + '[PROJECT]', + '[LOCATION]', + '[LAKE]', + '[ZONE]', + '[ENTITY]' + ); + + get_entity_sample($formattedName); +} +// [END dataplex_v1_generated_MetadataService_GetEntity_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/get_iam_policy.php b/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/get_iam_policy.php new file mode 100644 index 000000000000..ba0a42ab61ba --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/get_iam_policy.php @@ -0,0 +1,72 @@ +setResource($resource); + + // Call the API and handle any network failures. + try { + /** @var Policy $response */ + $response = $metadataServiceClient->getIamPolicy($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 +{ + $resource = '[RESOURCE]'; + + get_iam_policy_sample($resource); +} +// [END dataplex_v1_generated_MetadataService_GetIamPolicy_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/get_location.php b/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/get_location.php new file mode 100644 index 000000000000..13e5deb9053d --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/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 dataplex_v1_generated_MetadataService_GetLocation_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/get_partition.php b/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/get_partition.php new file mode 100644 index 000000000000..fc381f603f6e --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/get_partition.php @@ -0,0 +1,81 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Partition $response */ + $response = $metadataServiceClient->getPartition($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 = MetadataServiceClient::partitionName( + '[PROJECT]', + '[LOCATION]', + '[LAKE]', + '[ZONE]', + '[ENTITY]', + '[PARTITION]' + ); + + get_partition_sample($formattedName); +} +// [END dataplex_v1_generated_MetadataService_GetPartition_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/list_entities.php b/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/list_entities.php new file mode 100644 index 000000000000..ff422bd82050 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/list_entities.php @@ -0,0 +1,81 @@ +setParent($formattedParent) + ->setView($view); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $metadataServiceClient->listEntities($request); + + /** @var Entity $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 = MetadataServiceClient::zoneName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]'); + $view = EntityView::ENTITY_VIEW_UNSPECIFIED; + + list_entities_sample($formattedParent, $view); +} +// [END dataplex_v1_generated_MetadataService_ListEntities_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/list_locations.php b/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/list_locations.php new file mode 100644 index 000000000000..d7b3597c38e3 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/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 dataplex_v1_generated_MetadataService_ListLocations_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/list_partitions.php b/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/list_partitions.php new file mode 100644 index 000000000000..3f43d58e5021 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/list_partitions.php @@ -0,0 +1,83 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $metadataServiceClient->listPartitions($request); + + /** @var Partition $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 = MetadataServiceClient::entityName( + '[PROJECT]', + '[LOCATION]', + '[LAKE]', + '[ZONE]', + '[ENTITY]' + ); + + list_partitions_sample($formattedParent); +} +// [END dataplex_v1_generated_MetadataService_ListPartitions_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/set_iam_policy.php b/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/set_iam_policy.php new file mode 100644 index 000000000000..86e2d014a2d4 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/set_iam_policy.php @@ -0,0 +1,77 @@ +setResource($resource) + ->setPolicy($policy); + + // Call the API and handle any network failures. + try { + /** @var Policy $response */ + $response = $metadataServiceClient->setIamPolicy($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 +{ + $resource = '[RESOURCE]'; + + set_iam_policy_sample($resource); +} +// [END dataplex_v1_generated_MetadataService_SetIamPolicy_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/test_iam_permissions.php b/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/test_iam_permissions.php new file mode 100644 index 000000000000..64666a14846b --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/test_iam_permissions.php @@ -0,0 +1,84 @@ +setResource($resource) + ->setPermissions($permissions); + + // Call the API and handle any network failures. + try { + /** @var TestIamPermissionsResponse $response */ + $response = $metadataServiceClient->testIamPermissions($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 +{ + $resource = '[RESOURCE]'; + $permissionsElement = '[PERMISSIONS]'; + + test_iam_permissions_sample($resource, $permissionsElement); +} +// [END dataplex_v1_generated_MetadataService_TestIamPermissions_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/update_entity.php b/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/update_entity.php new file mode 100644 index 000000000000..b0bd28236feb --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/update_entity.php @@ -0,0 +1,153 @@ + + * - image/{image subtype} + * - video/{video subtype} + * - audio/{audio subtype} + * @param bool $entitySchemaUserManaged Set to `true` if user-managed or `false` if managed by Dataplex + * Universal Catalog. The default is `false` (managed by Dataplex Universal + * Catalog). + * + * - Set to `false`to enable Dataplex Universal Catalog discovery to update + * the schema. + * including new data discovery, schema inference, and schema evolution. + * Users retain the ability to input and edit the schema. Dataplex Universal + * Catalog treats schema input by the user as though produced by a previous + * Dataplex Universal Catalog discovery operation, and it will evolve the + * schema and take action based on that treatment. + * + * - Set to `true` to fully manage the entity + * schema. This setting guarantees that Dataplex Universal Catalog will not + * change schema fields. + */ +function update_entity_sample( + string $entityId, + int $entityType, + string $entityAsset, + string $entityDataPath, + int $entitySystem, + string $entityFormatMimeType, + bool $entitySchemaUserManaged +): void { + // Create a client. + $metadataServiceClient = new MetadataServiceClient(); + + // Prepare the request message. + $entityFormat = (new StorageFormat()) + ->setMimeType($entityFormatMimeType); + $entitySchema = (new Schema()) + ->setUserManaged($entitySchemaUserManaged); + $entity = (new Entity()) + ->setId($entityId) + ->setType($entityType) + ->setAsset($entityAsset) + ->setDataPath($entityDataPath) + ->setSystem($entitySystem) + ->setFormat($entityFormat) + ->setSchema($entitySchema); + $request = (new UpdateEntityRequest()) + ->setEntity($entity); + + // Call the API and handle any network failures. + try { + /** @var Entity $response */ + $response = $metadataServiceClient->updateEntity($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 +{ + $entityId = '[ID]'; + $entityType = Type::TYPE_UNSPECIFIED; + $entityAsset = '[ASSET]'; + $entityDataPath = '[DATA_PATH]'; + $entitySystem = StorageSystem::STORAGE_SYSTEM_UNSPECIFIED; + $entityFormatMimeType = '[MIME_TYPE]'; + $entitySchemaUserManaged = false; + + update_entity_sample( + $entityId, + $entityType, + $entityAsset, + $entityDataPath, + $entitySystem, + $entityFormatMimeType, + $entitySchemaUserManaged + ); +} +// [END dataplex_v1_generated_MetadataService_UpdateEntity_sync] diff --git a/owl-bot-staging/Dataplex/v1/src/V1/Client/BusinessGlossaryServiceClient.php b/owl-bot-staging/Dataplex/v1/src/V1/Client/BusinessGlossaryServiceClient.php new file mode 100644 index 000000000000..8e87b01ec5db --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/src/V1/Client/BusinessGlossaryServiceClient.php @@ -0,0 +1,958 @@ + createGlossaryAsync(CreateGlossaryRequest $request, array $optionalArgs = []) + * @method PromiseInterface createGlossaryCategoryAsync(CreateGlossaryCategoryRequest $request, array $optionalArgs = []) + * @method PromiseInterface createGlossaryTermAsync(CreateGlossaryTermRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteGlossaryAsync(DeleteGlossaryRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteGlossaryCategoryAsync(DeleteGlossaryCategoryRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteGlossaryTermAsync(DeleteGlossaryTermRequest $request, array $optionalArgs = []) + * @method PromiseInterface getGlossaryAsync(GetGlossaryRequest $request, array $optionalArgs = []) + * @method PromiseInterface getGlossaryCategoryAsync(GetGlossaryCategoryRequest $request, array $optionalArgs = []) + * @method PromiseInterface getGlossaryTermAsync(GetGlossaryTermRequest $request, array $optionalArgs = []) + * @method PromiseInterface listGlossariesAsync(ListGlossariesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listGlossaryCategoriesAsync(ListGlossaryCategoriesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listGlossaryTermsAsync(ListGlossaryTermsRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateGlossaryAsync(UpdateGlossaryRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateGlossaryCategoryAsync(UpdateGlossaryCategoryRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateGlossaryTermAsync(UpdateGlossaryTermRequest $request, array $optionalArgs = []) + * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) + * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) + * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) + */ +final class BusinessGlossaryServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.dataplex.v1.BusinessGlossaryService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'dataplex.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'dataplex.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', + 'https://www.googleapis.com/auth/cloud-platform.read-only', + 'https://www.googleapis.com/auth/dataplex.read-write', + 'https://www.googleapis.com/auth/dataplex.readonly', + ]; + + private $operationsClient; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/business_glossary_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/business_glossary_service_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/business_glossary_service_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/business_glossary_service_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 glossary + * resource. + * + * @param string $project + * @param string $location + * @param string $glossary + * + * @return string The formatted glossary resource. + */ + public static function glossaryName(string $project, string $location, string $glossary): string + { + return self::getPathTemplate('glossary')->render([ + 'project' => $project, + 'location' => $location, + 'glossary' => $glossary, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * glossary_category resource. + * + * @param string $project + * @param string $location + * @param string $glossary + * @param string $glossaryCategory + * + * @return string The formatted glossary_category resource. + */ + public static function glossaryCategoryName(string $project, string $location, string $glossary, string $glossaryCategory): string + { + return self::getPathTemplate('glossaryCategory')->render([ + 'project' => $project, + 'location' => $location, + 'glossary' => $glossary, + 'glossary_category' => $glossaryCategory, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * glossary_term resource. + * + * @param string $project + * @param string $location + * @param string $glossary + * @param string $glossaryTerm + * + * @return string The formatted glossary_term resource. + */ + public static function glossaryTermName(string $project, string $location, string $glossary, string $glossaryTerm): string + { + return self::getPathTemplate('glossaryTerm')->render([ + 'project' => $project, + 'location' => $location, + 'glossary' => $glossary, + 'glossary_term' => $glossaryTerm, + ]); + } + + /** + * 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, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - glossary: projects/{project}/locations/{location}/glossaries/{glossary} + * - glossaryCategory: projects/{project}/locations/{location}/glossaries/{glossary}/categories/{glossary_category} + * - glossaryTerm: projects/{project}/locations/{location}/glossaries/{glossary}/terms/{glossary_term} + * - location: projects/{project}/locations/{location} + * + * 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 'dataplex.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\Dataplex\V1\BusinessGlossaryServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new BusinessGlossaryServiceClient(['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 new Glossary resource. + * + * The async variant is {@see BusinessGlossaryServiceClient::createGlossaryAsync()} + * . + * + * @example samples/V1/BusinessGlossaryServiceClient/create_glossary.php + * + * @param CreateGlossaryRequest $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 createGlossary(CreateGlossaryRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('CreateGlossary', $request, $callOptions)->wait(); + } + + /** + * Creates a new GlossaryCategory resource. + * + * The async variant is + * {@see BusinessGlossaryServiceClient::createGlossaryCategoryAsync()} . + * + * @example samples/V1/BusinessGlossaryServiceClient/create_glossary_category.php + * + * @param CreateGlossaryCategoryRequest $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 GlossaryCategory + * + * @throws ApiException Thrown if the API call fails. + */ + public function createGlossaryCategory(CreateGlossaryCategoryRequest $request, array $callOptions = []): GlossaryCategory + { + return $this->startApiCall('CreateGlossaryCategory', $request, $callOptions)->wait(); + } + + /** + * Creates a new GlossaryTerm resource. + * + * The async variant is + * {@see BusinessGlossaryServiceClient::createGlossaryTermAsync()} . + * + * @example samples/V1/BusinessGlossaryServiceClient/create_glossary_term.php + * + * @param CreateGlossaryTermRequest $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 GlossaryTerm + * + * @throws ApiException Thrown if the API call fails. + */ + public function createGlossaryTerm(CreateGlossaryTermRequest $request, array $callOptions = []): GlossaryTerm + { + return $this->startApiCall('CreateGlossaryTerm', $request, $callOptions)->wait(); + } + + /** + * Deletes a Glossary resource. All the categories and terms within the + * Glossary must be deleted before the Glossary can be deleted. + * + * The async variant is {@see BusinessGlossaryServiceClient::deleteGlossaryAsync()} + * . + * + * @example samples/V1/BusinessGlossaryServiceClient/delete_glossary.php + * + * @param DeleteGlossaryRequest $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 deleteGlossary(DeleteGlossaryRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('DeleteGlossary', $request, $callOptions)->wait(); + } + + /** + * Deletes a GlossaryCategory resource. All the GlossaryCategories and + * GlossaryTerms nested directly under the specified GlossaryCategory will be + * moved one level up to the parent in the hierarchy. + * + * The async variant is + * {@see BusinessGlossaryServiceClient::deleteGlossaryCategoryAsync()} . + * + * @example samples/V1/BusinessGlossaryServiceClient/delete_glossary_category.php + * + * @param DeleteGlossaryCategoryRequest $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 deleteGlossaryCategory(DeleteGlossaryCategoryRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteGlossaryCategory', $request, $callOptions)->wait(); + } + + /** + * Deletes a GlossaryTerm resource. + * + * The async variant is + * {@see BusinessGlossaryServiceClient::deleteGlossaryTermAsync()} . + * + * @example samples/V1/BusinessGlossaryServiceClient/delete_glossary_term.php + * + * @param DeleteGlossaryTermRequest $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 deleteGlossaryTerm(DeleteGlossaryTermRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteGlossaryTerm', $request, $callOptions)->wait(); + } + + /** + * Gets a Glossary resource. + * + * The async variant is {@see BusinessGlossaryServiceClient::getGlossaryAsync()} . + * + * @example samples/V1/BusinessGlossaryServiceClient/get_glossary.php + * + * @param GetGlossaryRequest $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 Glossary + * + * @throws ApiException Thrown if the API call fails. + */ + public function getGlossary(GetGlossaryRequest $request, array $callOptions = []): Glossary + { + return $this->startApiCall('GetGlossary', $request, $callOptions)->wait(); + } + + /** + * Gets a GlossaryCategory resource. + * + * The async variant is + * {@see BusinessGlossaryServiceClient::getGlossaryCategoryAsync()} . + * + * @example samples/V1/BusinessGlossaryServiceClient/get_glossary_category.php + * + * @param GetGlossaryCategoryRequest $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 GlossaryCategory + * + * @throws ApiException Thrown if the API call fails. + */ + public function getGlossaryCategory(GetGlossaryCategoryRequest $request, array $callOptions = []): GlossaryCategory + { + return $this->startApiCall('GetGlossaryCategory', $request, $callOptions)->wait(); + } + + /** + * Gets a GlossaryTerm resource. + * + * The async variant is + * {@see BusinessGlossaryServiceClient::getGlossaryTermAsync()} . + * + * @example samples/V1/BusinessGlossaryServiceClient/get_glossary_term.php + * + * @param GetGlossaryTermRequest $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 GlossaryTerm + * + * @throws ApiException Thrown if the API call fails. + */ + public function getGlossaryTerm(GetGlossaryTermRequest $request, array $callOptions = []): GlossaryTerm + { + return $this->startApiCall('GetGlossaryTerm', $request, $callOptions)->wait(); + } + + /** + * Lists Glossary resources in a project and location. + * + * The async variant is {@see BusinessGlossaryServiceClient::listGlossariesAsync()} + * . + * + * @example samples/V1/BusinessGlossaryServiceClient/list_glossaries.php + * + * @param ListGlossariesRequest $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 listGlossaries(ListGlossariesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListGlossaries', $request, $callOptions); + } + + /** + * Lists GlossaryCategory resources in a Glossary. + * + * The async variant is + * {@see BusinessGlossaryServiceClient::listGlossaryCategoriesAsync()} . + * + * @example samples/V1/BusinessGlossaryServiceClient/list_glossary_categories.php + * + * @param ListGlossaryCategoriesRequest $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 listGlossaryCategories(ListGlossaryCategoriesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListGlossaryCategories', $request, $callOptions); + } + + /** + * Lists GlossaryTerm resources in a Glossary. + * + * The async variant is + * {@see BusinessGlossaryServiceClient::listGlossaryTermsAsync()} . + * + * @example samples/V1/BusinessGlossaryServiceClient/list_glossary_terms.php + * + * @param ListGlossaryTermsRequest $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 listGlossaryTerms(ListGlossaryTermsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListGlossaryTerms', $request, $callOptions); + } + + /** + * Updates a Glossary resource. + * + * The async variant is {@see BusinessGlossaryServiceClient::updateGlossaryAsync()} + * . + * + * @example samples/V1/BusinessGlossaryServiceClient/update_glossary.php + * + * @param UpdateGlossaryRequest $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 updateGlossary(UpdateGlossaryRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('UpdateGlossary', $request, $callOptions)->wait(); + } + + /** + * Updates a GlossaryCategory resource. + * + * The async variant is + * {@see BusinessGlossaryServiceClient::updateGlossaryCategoryAsync()} . + * + * @example samples/V1/BusinessGlossaryServiceClient/update_glossary_category.php + * + * @param UpdateGlossaryCategoryRequest $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 GlossaryCategory + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateGlossaryCategory(UpdateGlossaryCategoryRequest $request, array $callOptions = []): GlossaryCategory + { + return $this->startApiCall('UpdateGlossaryCategory', $request, $callOptions)->wait(); + } + + /** + * Updates a GlossaryTerm resource. + * + * The async variant is + * {@see BusinessGlossaryServiceClient::updateGlossaryTermAsync()} . + * + * @example samples/V1/BusinessGlossaryServiceClient/update_glossary_term.php + * + * @param UpdateGlossaryTermRequest $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 GlossaryTerm + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateGlossaryTerm(UpdateGlossaryTermRequest $request, array $callOptions = []): GlossaryTerm + { + return $this->startApiCall('UpdateGlossaryTerm', $request, $callOptions)->wait(); + } + + /** + * Gets information about a location. + * + * The async variant is {@see BusinessGlossaryServiceClient::getLocationAsync()} . + * + * @example samples/V1/BusinessGlossaryServiceClient/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 BusinessGlossaryServiceClient::listLocationsAsync()} + * . + * + * @example samples/V1/BusinessGlossaryServiceClient/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); + } + + /** + * Gets the access control policy for a resource. Returns an empty policy + if the resource exists and does not have a policy set. + * + * The async variant is {@see BusinessGlossaryServiceClient::getIamPolicyAsync()} . + * + * @example samples/V1/BusinessGlossaryServiceClient/get_iam_policy.php + * + * @param GetIamPolicyRequest $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 Policy + * + * @throws ApiException Thrown if the API call fails. + */ + public function getIamPolicy(GetIamPolicyRequest $request, array $callOptions = []): Policy + { + return $this->startApiCall('GetIamPolicy', $request, $callOptions)->wait(); + } + + /** + * Sets the access control policy on the specified resource. Replaces + any existing policy. + + Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` + errors. + * + * The async variant is {@see BusinessGlossaryServiceClient::setIamPolicyAsync()} . + * + * @example samples/V1/BusinessGlossaryServiceClient/set_iam_policy.php + * + * @param SetIamPolicyRequest $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 Policy + * + * @throws ApiException Thrown if the API call fails. + */ + public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = []): Policy + { + return $this->startApiCall('SetIamPolicy', $request, $callOptions)->wait(); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + resource does not exist, this will return an empty set of + permissions, not a `NOT_FOUND` error. + + Note: This operation is designed to be used for building + permission-aware UIs and command-line tools, not for authorization + checking. This operation may "fail open" without warning. + * + * The async variant is + * {@see BusinessGlossaryServiceClient::testIamPermissionsAsync()} . + * + * @example samples/V1/BusinessGlossaryServiceClient/test_iam_permissions.php + * + * @param TestIamPermissionsRequest $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 TestIamPermissionsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse + { + return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/Dataplex/v1/src/V1/Client/CatalogServiceClient.php b/owl-bot-staging/Dataplex/v1/src/V1/Client/CatalogServiceClient.php new file mode 100644 index 000000000000..3e4306df315f --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/src/V1/Client/CatalogServiceClient.php @@ -0,0 +1,1711 @@ + cancelMetadataJobAsync(CancelMetadataJobRequest $request, array $optionalArgs = []) + * @method PromiseInterface createAspectTypeAsync(CreateAspectTypeRequest $request, array $optionalArgs = []) + * @method PromiseInterface createEntryAsync(CreateEntryRequest $request, array $optionalArgs = []) + * @method PromiseInterface createEntryGroupAsync(CreateEntryGroupRequest $request, array $optionalArgs = []) + * @method PromiseInterface createEntryLinkAsync(CreateEntryLinkRequest $request, array $optionalArgs = []) + * @method PromiseInterface createEntryTypeAsync(CreateEntryTypeRequest $request, array $optionalArgs = []) + * @method PromiseInterface createMetadataFeedAsync(CreateMetadataFeedRequest $request, array $optionalArgs = []) + * @method PromiseInterface createMetadataJobAsync(CreateMetadataJobRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteAspectTypeAsync(DeleteAspectTypeRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteEntryAsync(DeleteEntryRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteEntryGroupAsync(DeleteEntryGroupRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteEntryLinkAsync(DeleteEntryLinkRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteEntryTypeAsync(DeleteEntryTypeRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteMetadataFeedAsync(DeleteMetadataFeedRequest $request, array $optionalArgs = []) + * @method PromiseInterface getAspectTypeAsync(GetAspectTypeRequest $request, array $optionalArgs = []) + * @method PromiseInterface getEntryAsync(GetEntryRequest $request, array $optionalArgs = []) + * @method PromiseInterface getEntryGroupAsync(GetEntryGroupRequest $request, array $optionalArgs = []) + * @method PromiseInterface getEntryLinkAsync(GetEntryLinkRequest $request, array $optionalArgs = []) + * @method PromiseInterface getEntryTypeAsync(GetEntryTypeRequest $request, array $optionalArgs = []) + * @method PromiseInterface getMetadataFeedAsync(GetMetadataFeedRequest $request, array $optionalArgs = []) + * @method PromiseInterface getMetadataJobAsync(GetMetadataJobRequest $request, array $optionalArgs = []) + * @method PromiseInterface listAspectTypesAsync(ListAspectTypesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listEntriesAsync(ListEntriesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listEntryGroupsAsync(ListEntryGroupsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listEntryTypesAsync(ListEntryTypesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listMetadataFeedsAsync(ListMetadataFeedsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listMetadataJobsAsync(ListMetadataJobsRequest $request, array $optionalArgs = []) + * @method PromiseInterface lookupContextAsync(LookupContextRequest $request, array $optionalArgs = []) + * @method PromiseInterface lookupEntryAsync(LookupEntryRequest $request, array $optionalArgs = []) + * @method PromiseInterface lookupEntryLinksAsync(LookupEntryLinksRequest $request, array $optionalArgs = []) + * @method PromiseInterface modifyEntryAsync(ModifyEntryRequest $request, array $optionalArgs = []) + * @method PromiseInterface searchEntriesAsync(SearchEntriesRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateAspectTypeAsync(UpdateAspectTypeRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateEntryAsync(UpdateEntryRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateEntryGroupAsync(UpdateEntryGroupRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateEntryLinkAsync(UpdateEntryLinkRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateEntryTypeAsync(UpdateEntryTypeRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateMetadataFeedAsync(UpdateMetadataFeedRequest $request, array $optionalArgs = []) + * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) + * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) + * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) + */ +final class CatalogServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.dataplex.v1.CatalogService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'dataplex.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'dataplex.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', + 'https://www.googleapis.com/auth/cloud-platform.read-only', + 'https://www.googleapis.com/auth/dataplex.read-write', + 'https://www.googleapis.com/auth/dataplex.readonly', + ]; + + private $operationsClient; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/catalog_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/catalog_service_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/catalog_service_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/catalog_service_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 aspect_type + * resource. + * + * @param string $project + * @param string $location + * @param string $aspectType + * + * @return string The formatted aspect_type resource. + */ + public static function aspectTypeName(string $project, string $location, string $aspectType): string + { + return self::getPathTemplate('aspectType')->render([ + 'project' => $project, + 'location' => $location, + 'aspect_type' => $aspectType, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a entry + * resource. + * + * @param string $project + * @param string $location + * @param string $entryGroup + * @param string $entry + * + * @return string The formatted entry resource. + */ + public static function entryName(string $project, string $location, string $entryGroup, string $entry): string + { + return self::getPathTemplate('entry')->render([ + 'project' => $project, + 'location' => $location, + 'entry_group' => $entryGroup, + 'entry' => $entry, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a entry_group + * resource. + * + * @param string $project + * @param string $location + * @param string $entryGroup + * + * @return string The formatted entry_group resource. + */ + public static function entryGroupName(string $project, string $location, string $entryGroup): string + { + return self::getPathTemplate('entryGroup')->render([ + 'project' => $project, + 'location' => $location, + 'entry_group' => $entryGroup, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a entry_link + * resource. + * + * @param string $project + * @param string $location + * @param string $entryGroup + * @param string $entryLink + * + * @return string The formatted entry_link resource. + */ + public static function entryLinkName(string $project, string $location, string $entryGroup, string $entryLink): string + { + return self::getPathTemplate('entryLink')->render([ + 'project' => $project, + 'location' => $location, + 'entry_group' => $entryGroup, + 'entry_link' => $entryLink, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a entry_type + * resource. + * + * @param string $project + * @param string $location + * @param string $entryType + * + * @return string The formatted entry_type resource. + */ + public static function entryTypeName(string $project, string $location, string $entryType): string + { + return self::getPathTemplate('entryType')->render([ + 'project' => $project, + 'location' => $location, + 'entry_type' => $entryType, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a glossary + * resource. + * + * @param string $project + * @param string $location + * @param string $glossary + * + * @return string The formatted glossary resource. + */ + public static function glossaryName(string $project, string $location, string $glossary): string + { + return self::getPathTemplate('glossary')->render([ + 'project' => $project, + 'location' => $location, + 'glossary' => $glossary, + ]); + } + + /** + * 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 + * metadata_feed resource. + * + * @param string $project + * @param string $location + * @param string $metadataFeed + * + * @return string The formatted metadata_feed resource. + */ + public static function metadataFeedName(string $project, string $location, string $metadataFeed): string + { + return self::getPathTemplate('metadataFeed')->render([ + 'project' => $project, + 'location' => $location, + 'metadata_feed' => $metadataFeed, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a metadata_job + * resource. + * + * @param string $project + * @param string $location + * @param string $metadataJob + * + * @return string The formatted metadata_job resource. + */ + public static function metadataJobName(string $project, string $location, string $metadataJob): string + { + return self::getPathTemplate('metadataJob')->render([ + 'project' => $project, + 'location' => $location, + 'metadataJob' => $metadataJob, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a project + * resource. + * + * @param string $project + * + * @return string The formatted project resource. + */ + public static function projectName(string $project): string + { + return self::getPathTemplate('project')->render([ + 'project' => $project, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - aspectType: projects/{project}/locations/{location}/aspectTypes/{aspect_type} + * - entry: projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry} + * - entryGroup: projects/{project}/locations/{location}/entryGroups/{entry_group} + * - entryLink: projects/{project}/locations/{location}/entryGroups/{entry_group}/entryLinks/{entry_link} + * - entryType: projects/{project}/locations/{location}/entryTypes/{entry_type} + * - glossary: projects/{project}/locations/{location}/glossaries/{glossary} + * - location: projects/{project}/locations/{location} + * - metadataFeed: projects/{project}/locations/{location}/metadataFeeds/{metadata_feed} + * - metadataJob: projects/{project}/locations/{location}/metadataJobs/{metadataJob} + * - project: projects/{project} + * + * 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 'dataplex.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\Dataplex\V1\CatalogServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new CatalogServiceClient(['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); + } + + /** + * Cancels a metadata job. + * + * If you cancel a metadata import job that is in progress, the changes in the + * job might be partially applied. We recommend that you reset the state of + * the entry groups in your project by running another metadata job that + * reverts the changes from the canceled job. + * + * The async variant is {@see CatalogServiceClient::cancelMetadataJobAsync()} . + * + * @example samples/V1/CatalogServiceClient/cancel_metadata_job.php + * + * @param CancelMetadataJobRequest $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 cancelMetadataJob(CancelMetadataJobRequest $request, array $callOptions = []): void + { + $this->startApiCall('CancelMetadataJob', $request, $callOptions)->wait(); + } + + /** + * Creates an AspectType. + * + * The async variant is {@see CatalogServiceClient::createAspectTypeAsync()} . + * + * @example samples/V1/CatalogServiceClient/create_aspect_type.php + * + * @param CreateAspectTypeRequest $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 createAspectType(CreateAspectTypeRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('CreateAspectType', $request, $callOptions)->wait(); + } + + /** + * Creates an Entry. + * + * The async variant is {@see CatalogServiceClient::createEntryAsync()} . + * + * @example samples/V1/CatalogServiceClient/create_entry.php + * + * @param CreateEntryRequest $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 Entry + * + * @throws ApiException Thrown if the API call fails. + */ + public function createEntry(CreateEntryRequest $request, array $callOptions = []): Entry + { + return $this->startApiCall('CreateEntry', $request, $callOptions)->wait(); + } + + /** + * Creates an EntryGroup. + * + * The async variant is {@see CatalogServiceClient::createEntryGroupAsync()} . + * + * @example samples/V1/CatalogServiceClient/create_entry_group.php + * + * @param CreateEntryGroupRequest $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 createEntryGroup(CreateEntryGroupRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('CreateEntryGroup', $request, $callOptions)->wait(); + } + + /** + * Creates an Entry Link. + * + * The async variant is {@see CatalogServiceClient::createEntryLinkAsync()} . + * + * @example samples/V1/CatalogServiceClient/create_entry_link.php + * + * @param CreateEntryLinkRequest $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 EntryLink + * + * @throws ApiException Thrown if the API call fails. + */ + public function createEntryLink(CreateEntryLinkRequest $request, array $callOptions = []): EntryLink + { + return $this->startApiCall('CreateEntryLink', $request, $callOptions)->wait(); + } + + /** + * Creates an EntryType. + * + * The async variant is {@see CatalogServiceClient::createEntryTypeAsync()} . + * + * @example samples/V1/CatalogServiceClient/create_entry_type.php + * + * @param CreateEntryTypeRequest $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 createEntryType(CreateEntryTypeRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('CreateEntryType', $request, $callOptions)->wait(); + } + + /** + * Creates a MetadataFeed. + * + * The async variant is {@see CatalogServiceClient::createMetadataFeedAsync()} . + * + * @example samples/V1/CatalogServiceClient/create_metadata_feed.php + * + * @param CreateMetadataFeedRequest $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 createMetadataFeed(CreateMetadataFeedRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('CreateMetadataFeed', $request, $callOptions)->wait(); + } + + /** + * Creates a metadata job. For example, use a metadata job to import metadata + * from a third-party system into Dataplex Universal Catalog. + * + * The async variant is {@see CatalogServiceClient::createMetadataJobAsync()} . + * + * @example samples/V1/CatalogServiceClient/create_metadata_job.php + * + * @param CreateMetadataJobRequest $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 createMetadataJob(CreateMetadataJobRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('CreateMetadataJob', $request, $callOptions)->wait(); + } + + /** + * Deletes an AspectType. + * + * The async variant is {@see CatalogServiceClient::deleteAspectTypeAsync()} . + * + * @example samples/V1/CatalogServiceClient/delete_aspect_type.php + * + * @param DeleteAspectTypeRequest $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 deleteAspectType(DeleteAspectTypeRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('DeleteAspectType', $request, $callOptions)->wait(); + } + + /** + * Deletes an Entry. + * + * The async variant is {@see CatalogServiceClient::deleteEntryAsync()} . + * + * @example samples/V1/CatalogServiceClient/delete_entry.php + * + * @param DeleteEntryRequest $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 Entry + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteEntry(DeleteEntryRequest $request, array $callOptions = []): Entry + { + return $this->startApiCall('DeleteEntry', $request, $callOptions)->wait(); + } + + /** + * Deletes an EntryGroup. + * + * The async variant is {@see CatalogServiceClient::deleteEntryGroupAsync()} . + * + * @example samples/V1/CatalogServiceClient/delete_entry_group.php + * + * @param DeleteEntryGroupRequest $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 deleteEntryGroup(DeleteEntryGroupRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('DeleteEntryGroup', $request, $callOptions)->wait(); + } + + /** + * Deletes an Entry Link. + * + * The async variant is {@see CatalogServiceClient::deleteEntryLinkAsync()} . + * + * @example samples/V1/CatalogServiceClient/delete_entry_link.php + * + * @param DeleteEntryLinkRequest $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 EntryLink + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteEntryLink(DeleteEntryLinkRequest $request, array $callOptions = []): EntryLink + { + return $this->startApiCall('DeleteEntryLink', $request, $callOptions)->wait(); + } + + /** + * Deletes an EntryType. + * + * The async variant is {@see CatalogServiceClient::deleteEntryTypeAsync()} . + * + * @example samples/V1/CatalogServiceClient/delete_entry_type.php + * + * @param DeleteEntryTypeRequest $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 deleteEntryType(DeleteEntryTypeRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('DeleteEntryType', $request, $callOptions)->wait(); + } + + /** + * Deletes a MetadataFeed. + * + * The async variant is {@see CatalogServiceClient::deleteMetadataFeedAsync()} . + * + * @example samples/V1/CatalogServiceClient/delete_metadata_feed.php + * + * @param DeleteMetadataFeedRequest $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 deleteMetadataFeed(DeleteMetadataFeedRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('DeleteMetadataFeed', $request, $callOptions)->wait(); + } + + /** + * Gets an AspectType. + * + * The async variant is {@see CatalogServiceClient::getAspectTypeAsync()} . + * + * @example samples/V1/CatalogServiceClient/get_aspect_type.php + * + * @param GetAspectTypeRequest $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 AspectType + * + * @throws ApiException Thrown if the API call fails. + */ + public function getAspectType(GetAspectTypeRequest $request, array $callOptions = []): AspectType + { + return $this->startApiCall('GetAspectType', $request, $callOptions)->wait(); + } + + /** + * Gets an Entry. + * + * The async variant is {@see CatalogServiceClient::getEntryAsync()} . + * + * @example samples/V1/CatalogServiceClient/get_entry.php + * + * @param GetEntryRequest $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 Entry + * + * @throws ApiException Thrown if the API call fails. + */ + public function getEntry(GetEntryRequest $request, array $callOptions = []): Entry + { + return $this->startApiCall('GetEntry', $request, $callOptions)->wait(); + } + + /** + * Gets an EntryGroup. + * + * The async variant is {@see CatalogServiceClient::getEntryGroupAsync()} . + * + * @example samples/V1/CatalogServiceClient/get_entry_group.php + * + * @param GetEntryGroupRequest $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 EntryGroup + * + * @throws ApiException Thrown if the API call fails. + */ + public function getEntryGroup(GetEntryGroupRequest $request, array $callOptions = []): EntryGroup + { + return $this->startApiCall('GetEntryGroup', $request, $callOptions)->wait(); + } + + /** + * Gets an Entry Link. + * + * The async variant is {@see CatalogServiceClient::getEntryLinkAsync()} . + * + * @example samples/V1/CatalogServiceClient/get_entry_link.php + * + * @param GetEntryLinkRequest $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 EntryLink + * + * @throws ApiException Thrown if the API call fails. + */ + public function getEntryLink(GetEntryLinkRequest $request, array $callOptions = []): EntryLink + { + return $this->startApiCall('GetEntryLink', $request, $callOptions)->wait(); + } + + /** + * Gets an EntryType. + * + * The async variant is {@see CatalogServiceClient::getEntryTypeAsync()} . + * + * @example samples/V1/CatalogServiceClient/get_entry_type.php + * + * @param GetEntryTypeRequest $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 EntryType + * + * @throws ApiException Thrown if the API call fails. + */ + public function getEntryType(GetEntryTypeRequest $request, array $callOptions = []): EntryType + { + return $this->startApiCall('GetEntryType', $request, $callOptions)->wait(); + } + + /** + * Gets a MetadataFeed. + * + * The async variant is {@see CatalogServiceClient::getMetadataFeedAsync()} . + * + * @example samples/V1/CatalogServiceClient/get_metadata_feed.php + * + * @param GetMetadataFeedRequest $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 MetadataFeed + * + * @throws ApiException Thrown if the API call fails. + */ + public function getMetadataFeed(GetMetadataFeedRequest $request, array $callOptions = []): MetadataFeed + { + return $this->startApiCall('GetMetadataFeed', $request, $callOptions)->wait(); + } + + /** + * Gets a metadata job. + * + * The async variant is {@see CatalogServiceClient::getMetadataJobAsync()} . + * + * @example samples/V1/CatalogServiceClient/get_metadata_job.php + * + * @param GetMetadataJobRequest $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 MetadataJob + * + * @throws ApiException Thrown if the API call fails. + */ + public function getMetadataJob(GetMetadataJobRequest $request, array $callOptions = []): MetadataJob + { + return $this->startApiCall('GetMetadataJob', $request, $callOptions)->wait(); + } + + /** + * Lists AspectType resources in a project and location. + * + * The async variant is {@see CatalogServiceClient::listAspectTypesAsync()} . + * + * @example samples/V1/CatalogServiceClient/list_aspect_types.php + * + * @param ListAspectTypesRequest $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 listAspectTypes(ListAspectTypesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListAspectTypes', $request, $callOptions); + } + + /** + * Lists Entries within an EntryGroup. + * + * The async variant is {@see CatalogServiceClient::listEntriesAsync()} . + * + * @example samples/V1/CatalogServiceClient/list_entries.php + * + * @param ListEntriesRequest $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 listEntries(ListEntriesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListEntries', $request, $callOptions); + } + + /** + * Lists EntryGroup resources in a project and location. + * + * The async variant is {@see CatalogServiceClient::listEntryGroupsAsync()} . + * + * @example samples/V1/CatalogServiceClient/list_entry_groups.php + * + * @param ListEntryGroupsRequest $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 listEntryGroups(ListEntryGroupsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListEntryGroups', $request, $callOptions); + } + + /** + * Lists EntryType resources in a project and location. + * + * The async variant is {@see CatalogServiceClient::listEntryTypesAsync()} . + * + * @example samples/V1/CatalogServiceClient/list_entry_types.php + * + * @param ListEntryTypesRequest $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 listEntryTypes(ListEntryTypesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListEntryTypes', $request, $callOptions); + } + + /** + * Retrieve a list of MetadataFeeds. + * + * The async variant is {@see CatalogServiceClient::listMetadataFeedsAsync()} . + * + * @example samples/V1/CatalogServiceClient/list_metadata_feeds.php + * + * @param ListMetadataFeedsRequest $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 listMetadataFeeds(ListMetadataFeedsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListMetadataFeeds', $request, $callOptions); + } + + /** + * Lists metadata jobs. + * + * The async variant is {@see CatalogServiceClient::listMetadataJobsAsync()} . + * + * @example samples/V1/CatalogServiceClient/list_metadata_jobs.php + * + * @param ListMetadataJobsRequest $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 listMetadataJobs(ListMetadataJobsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListMetadataJobs', $request, $callOptions); + } + + /** + * Looks up LLM Context for the specified resources. + * + * The async variant is {@see CatalogServiceClient::lookupContextAsync()} . + * + * @example samples/V1/CatalogServiceClient/lookup_context.php + * + * @param LookupContextRequest $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 LookupContextResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function lookupContext(LookupContextRequest $request, array $callOptions = []): LookupContextResponse + { + return $this->startApiCall('LookupContext', $request, $callOptions)->wait(); + } + + /** + * Looks up an entry by name using the permission on the source system. + * + * The async variant is {@see CatalogServiceClient::lookupEntryAsync()} . + * + * @example samples/V1/CatalogServiceClient/lookup_entry.php + * + * @param LookupEntryRequest $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 Entry + * + * @throws ApiException Thrown if the API call fails. + */ + public function lookupEntry(LookupEntryRequest $request, array $callOptions = []): Entry + { + return $this->startApiCall('LookupEntry', $request, $callOptions)->wait(); + } + + /** + * Looks up Entry Links referencing the specified Entry. + * + * The async variant is {@see CatalogServiceClient::lookupEntryLinksAsync()} . + * + * @example samples/V1/CatalogServiceClient/lookup_entry_links.php + * + * @param LookupEntryLinksRequest $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 lookupEntryLinks(LookupEntryLinksRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('LookupEntryLinks', $request, $callOptions); + } + + /** + * Modifies an entry using the permission on the source system. + * + * The async variant is {@see CatalogServiceClient::modifyEntryAsync()} . + * + * @example samples/V1/CatalogServiceClient/modify_entry.php + * + * @param ModifyEntryRequest $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 Entry + * + * @throws ApiException Thrown if the API call fails. + */ + public function modifyEntry(ModifyEntryRequest $request, array $callOptions = []): Entry + { + return $this->startApiCall('ModifyEntry', $request, $callOptions)->wait(); + } + + /** + * Searches for Entries matching the given query and scope. + * + * The async variant is {@see CatalogServiceClient::searchEntriesAsync()} . + * + * @example samples/V1/CatalogServiceClient/search_entries.php + * + * @param SearchEntriesRequest $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 searchEntries(SearchEntriesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('SearchEntries', $request, $callOptions); + } + + /** + * Updates an AspectType. + * + * The async variant is {@see CatalogServiceClient::updateAspectTypeAsync()} . + * + * @example samples/V1/CatalogServiceClient/update_aspect_type.php + * + * @param UpdateAspectTypeRequest $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 updateAspectType(UpdateAspectTypeRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('UpdateAspectType', $request, $callOptions)->wait(); + } + + /** + * Updates an Entry. + * + * The async variant is {@see CatalogServiceClient::updateEntryAsync()} . + * + * @example samples/V1/CatalogServiceClient/update_entry.php + * + * @param UpdateEntryRequest $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 Entry + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateEntry(UpdateEntryRequest $request, array $callOptions = []): Entry + { + return $this->startApiCall('UpdateEntry', $request, $callOptions)->wait(); + } + + /** + * Updates an EntryGroup. + * + * The async variant is {@see CatalogServiceClient::updateEntryGroupAsync()} . + * + * @example samples/V1/CatalogServiceClient/update_entry_group.php + * + * @param UpdateEntryGroupRequest $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 updateEntryGroup(UpdateEntryGroupRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('UpdateEntryGroup', $request, $callOptions)->wait(); + } + + /** + * Updates an Entry Link. + * + * The async variant is {@see CatalogServiceClient::updateEntryLinkAsync()} . + * + * @example samples/V1/CatalogServiceClient/update_entry_link.php + * + * @param UpdateEntryLinkRequest $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 EntryLink + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateEntryLink(UpdateEntryLinkRequest $request, array $callOptions = []): EntryLink + { + return $this->startApiCall('UpdateEntryLink', $request, $callOptions)->wait(); + } + + /** + * Updates an EntryType. + * + * The async variant is {@see CatalogServiceClient::updateEntryTypeAsync()} . + * + * @example samples/V1/CatalogServiceClient/update_entry_type.php + * + * @param UpdateEntryTypeRequest $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 updateEntryType(UpdateEntryTypeRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('UpdateEntryType', $request, $callOptions)->wait(); + } + + /** + * Updates a MetadataFeed. + * + * The async variant is {@see CatalogServiceClient::updateMetadataFeedAsync()} . + * + * @example samples/V1/CatalogServiceClient/update_metadata_feed.php + * + * @param UpdateMetadataFeedRequest $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 updateMetadataFeed(UpdateMetadataFeedRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('UpdateMetadataFeed', $request, $callOptions)->wait(); + } + + /** + * Gets information about a location. + * + * The async variant is {@see CatalogServiceClient::getLocationAsync()} . + * + * @example samples/V1/CatalogServiceClient/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 CatalogServiceClient::listLocationsAsync()} . + * + * @example samples/V1/CatalogServiceClient/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); + } + + /** + * Gets the access control policy for a resource. Returns an empty policy + if the resource exists and does not have a policy set. + * + * The async variant is {@see CatalogServiceClient::getIamPolicyAsync()} . + * + * @example samples/V1/CatalogServiceClient/get_iam_policy.php + * + * @param GetIamPolicyRequest $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 Policy + * + * @throws ApiException Thrown if the API call fails. + */ + public function getIamPolicy(GetIamPolicyRequest $request, array $callOptions = []): Policy + { + return $this->startApiCall('GetIamPolicy', $request, $callOptions)->wait(); + } + + /** + * Sets the access control policy on the specified resource. Replaces + any existing policy. + + Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` + errors. + * + * The async variant is {@see CatalogServiceClient::setIamPolicyAsync()} . + * + * @example samples/V1/CatalogServiceClient/set_iam_policy.php + * + * @param SetIamPolicyRequest $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 Policy + * + * @throws ApiException Thrown if the API call fails. + */ + public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = []): Policy + { + return $this->startApiCall('SetIamPolicy', $request, $callOptions)->wait(); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + resource does not exist, this will return an empty set of + permissions, not a `NOT_FOUND` error. + + Note: This operation is designed to be used for building + permission-aware UIs and command-line tools, not for authorization + checking. This operation may "fail open" without warning. + * + * The async variant is {@see CatalogServiceClient::testIamPermissionsAsync()} . + * + * @example samples/V1/CatalogServiceClient/test_iam_permissions.php + * + * @param TestIamPermissionsRequest $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 TestIamPermissionsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse + { + return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/Dataplex/v1/src/V1/Client/CmekServiceClient.php b/owl-bot-staging/Dataplex/v1/src/V1/Client/CmekServiceClient.php new file mode 100644 index 000000000000..626570d86895 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/src/V1/Client/CmekServiceClient.php @@ -0,0 +1,610 @@ + createEncryptionConfigAsync(CreateEncryptionConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteEncryptionConfigAsync(DeleteEncryptionConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface getEncryptionConfigAsync(GetEncryptionConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface listEncryptionConfigsAsync(ListEncryptionConfigsRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateEncryptionConfigAsync(UpdateEncryptionConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) + * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) + * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) + */ +final class CmekServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.dataplex.v1.CmekService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'dataplex.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'dataplex.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', + 'https://www.googleapis.com/auth/dataplex.read-write', + ]; + + private $operationsClient; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/cmek_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/cmek_service_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/cmek_service_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/cmek_service_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 + * encryption_config resource. + * + * @param string $organization + * @param string $location + * @param string $encryptionConfig + * + * @return string The formatted encryption_config resource. + */ + public static function encryptionConfigName(string $organization, string $location, string $encryptionConfig): string + { + return self::getPathTemplate('encryptionConfig')->render([ + 'organization' => $organization, + 'location' => $location, + 'encryption_config' => $encryptionConfig, + ]); + } + + /** + * 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, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - encryptionConfig: organizations/{organization}/locations/{location}/encryptionConfigs/{encryption_config} + * - organizationLocation: organizations/{organization}/locations/{location} + * + * 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 'dataplex.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\Dataplex\V1\CmekServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new CmekServiceClient(['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); + } + + /** + * Create an EncryptionConfig. + * + * The async variant is {@see CmekServiceClient::createEncryptionConfigAsync()} . + * + * @example samples/V1/CmekServiceClient/create_encryption_config.php + * + * @param CreateEncryptionConfigRequest $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 createEncryptionConfig(CreateEncryptionConfigRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('CreateEncryptionConfig', $request, $callOptions)->wait(); + } + + /** + * Delete an EncryptionConfig. + * + * The async variant is {@see CmekServiceClient::deleteEncryptionConfigAsync()} . + * + * @example samples/V1/CmekServiceClient/delete_encryption_config.php + * + * @param DeleteEncryptionConfigRequest $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 deleteEncryptionConfig(DeleteEncryptionConfigRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('DeleteEncryptionConfig', $request, $callOptions)->wait(); + } + + /** + * Get an EncryptionConfig. + * + * The async variant is {@see CmekServiceClient::getEncryptionConfigAsync()} . + * + * @example samples/V1/CmekServiceClient/get_encryption_config.php + * + * @param GetEncryptionConfigRequest $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 EncryptionConfig + * + * @throws ApiException Thrown if the API call fails. + */ + public function getEncryptionConfig(GetEncryptionConfigRequest $request, array $callOptions = []): EncryptionConfig + { + return $this->startApiCall('GetEncryptionConfig', $request, $callOptions)->wait(); + } + + /** + * List EncryptionConfigs. + * + * The async variant is {@see CmekServiceClient::listEncryptionConfigsAsync()} . + * + * @example samples/V1/CmekServiceClient/list_encryption_configs.php + * + * @param ListEncryptionConfigsRequest $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 listEncryptionConfigs(ListEncryptionConfigsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListEncryptionConfigs', $request, $callOptions); + } + + /** + * Update an EncryptionConfig. + * + * The async variant is {@see CmekServiceClient::updateEncryptionConfigAsync()} . + * + * @example samples/V1/CmekServiceClient/update_encryption_config.php + * + * @param UpdateEncryptionConfigRequest $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 updateEncryptionConfig(UpdateEncryptionConfigRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('UpdateEncryptionConfig', $request, $callOptions)->wait(); + } + + /** + * Gets information about a location. + * + * The async variant is {@see CmekServiceClient::getLocationAsync()} . + * + * @example samples/V1/CmekServiceClient/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 CmekServiceClient::listLocationsAsync()} . + * + * @example samples/V1/CmekServiceClient/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); + } + + /** + * Gets the access control policy for a resource. Returns an empty policy + if the resource exists and does not have a policy set. + * + * The async variant is {@see CmekServiceClient::getIamPolicyAsync()} . + * + * @example samples/V1/CmekServiceClient/get_iam_policy.php + * + * @param GetIamPolicyRequest $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 Policy + * + * @throws ApiException Thrown if the API call fails. + */ + public function getIamPolicy(GetIamPolicyRequest $request, array $callOptions = []): Policy + { + return $this->startApiCall('GetIamPolicy', $request, $callOptions)->wait(); + } + + /** + * Sets the access control policy on the specified resource. Replaces + any existing policy. + + Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` + errors. + * + * The async variant is {@see CmekServiceClient::setIamPolicyAsync()} . + * + * @example samples/V1/CmekServiceClient/set_iam_policy.php + * + * @param SetIamPolicyRequest $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 Policy + * + * @throws ApiException Thrown if the API call fails. + */ + public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = []): Policy + { + return $this->startApiCall('SetIamPolicy', $request, $callOptions)->wait(); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + resource does not exist, this will return an empty set of + permissions, not a `NOT_FOUND` error. + + Note: This operation is designed to be used for building + permission-aware UIs and command-line tools, not for authorization + checking. This operation may "fail open" without warning. + * + * The async variant is {@see CmekServiceClient::testIamPermissionsAsync()} . + * + * @example samples/V1/CmekServiceClient/test_iam_permissions.php + * + * @param TestIamPermissionsRequest $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 TestIamPermissionsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse + { + return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/Dataplex/v1/src/V1/Client/ContentServiceClient.php b/owl-bot-staging/Dataplex/v1/src/V1/Client/ContentServiceClient.php new file mode 100644 index 000000000000..bea83e6597bf --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/src/V1/Client/ContentServiceClient.php @@ -0,0 +1,327 @@ + self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/content_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/content_service_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/content_service_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/content_service_rest_client_config.php', + ], + ], + ]; + } + + /** + * 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 'dataplex.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\Dataplex\V1\ContentServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new ContentServiceClient(['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); + } + + /** + * Gets information about a location. + * + * The async variant is {@see ContentServiceClient::getLocationAsync()} . + * + * @example samples/V1/ContentServiceClient/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 ContentServiceClient::listLocationsAsync()} . + * + * @example samples/V1/ContentServiceClient/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); + } + + /** + * Gets the access control policy for a resource. Returns an empty policy + if the resource exists and does not have a policy set. + * + * The async variant is {@see ContentServiceClient::getIamPolicyAsync()} . + * + * @example samples/V1/ContentServiceClient/get_iam_policy.php + * + * @param GetIamPolicyRequest $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 Policy + * + * @throws ApiException Thrown if the API call fails. + */ + public function getIamPolicy(GetIamPolicyRequest $request, array $callOptions = []): Policy + { + return $this->startApiCall('GetIamPolicy', $request, $callOptions)->wait(); + } + + /** + * Sets the access control policy on the specified resource. Replaces + any existing policy. + + Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` + errors. + * + * The async variant is {@see ContentServiceClient::setIamPolicyAsync()} . + * + * @example samples/V1/ContentServiceClient/set_iam_policy.php + * + * @param SetIamPolicyRequest $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 Policy + * + * @throws ApiException Thrown if the API call fails. + */ + public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = []): Policy + { + return $this->startApiCall('SetIamPolicy', $request, $callOptions)->wait(); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + resource does not exist, this will return an empty set of + permissions, not a `NOT_FOUND` error. + + Note: This operation is designed to be used for building + permission-aware UIs and command-line tools, not for authorization + checking. This operation may "fail open" without warning. + * + * The async variant is {@see ContentServiceClient::testIamPermissionsAsync()} . + * + * @example samples/V1/ContentServiceClient/test_iam_permissions.php + * + * @param TestIamPermissionsRequest $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 TestIamPermissionsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse + { + return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/Dataplex/v1/src/V1/Client/DataProductServiceClient.php b/owl-bot-staging/Dataplex/v1/src/V1/Client/DataProductServiceClient.php new file mode 100644 index 000000000000..6473681da1af --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/src/V1/Client/DataProductServiceClient.php @@ -0,0 +1,958 @@ + createDataAssetAsync(CreateDataAssetRequest $request, array $optionalArgs = []) + * @method PromiseInterface createDataProductAsync(CreateDataProductRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteDataAssetAsync(DeleteDataAssetRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteDataProductAsync(DeleteDataProductRequest $request, array $optionalArgs = []) + * @method PromiseInterface getDataAssetAsync(GetDataAssetRequest $request, array $optionalArgs = []) + * @method PromiseInterface getDataProductAsync(GetDataProductRequest $request, array $optionalArgs = []) + * @method PromiseInterface listDataAssetsAsync(ListDataAssetsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listDataProductsAsync(ListDataProductsRequest $request, array $optionalArgs = []) + * @method PromiseInterface requestDataProductAccessAsync(RequestDataProductAccessRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateDataAssetAsync(UpdateDataAssetRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateDataProductAsync(UpdateDataProductRequest $request, array $optionalArgs = []) + * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) + * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) + * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) + */ +final class DataProductServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.dataplex.v1.DataProductService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'dataplex.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'dataplex.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', + 'https://www.googleapis.com/auth/cloud-platform.read-only', + 'https://www.googleapis.com/auth/dataplex.read-write', + 'https://www.googleapis.com/auth/dataplex.readonly', + ]; + + private $operationsClient; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/data_product_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/data_product_service_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/data_product_service_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/data_product_service_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 + * change_request resource. + * + * @param string $project + * @param string $location + * @param string $changeRequest + * + * @return string The formatted change_request resource. + */ + public static function changeRequestName(string $project, string $location, string $changeRequest): string + { + return self::getPathTemplate('changeRequest')->render([ + 'project' => $project, + 'location' => $location, + 'change_request' => $changeRequest, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a data_asset + * resource. + * + * @param string $project + * @param string $location + * @param string $dataProduct + * @param string $dataAsset + * + * @return string The formatted data_asset resource. + */ + public static function dataAssetName(string $project, string $location, string $dataProduct, string $dataAsset): string + { + return self::getPathTemplate('dataAsset')->render([ + 'project' => $project, + 'location' => $location, + 'data_product' => $dataProduct, + 'data_asset' => $dataAsset, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a data_product + * resource. + * + * @param string $project + * @param string $location + * @param string $dataProduct + * + * @return string The formatted data_product resource. + */ + public static function dataProductName(string $project, string $location, string $dataProduct): string + { + return self::getPathTemplate('dataProduct')->render([ + 'project' => $project, + 'location' => $location, + 'data_product' => $dataProduct, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a entry + * resource. + * + * @param string $project + * @param string $location + * @param string $entryGroup + * @param string $entry + * + * @return string The formatted entry resource. + */ + public static function entryName(string $project, string $location, string $entryGroup, string $entry): string + { + return self::getPathTemplate('entry')->render([ + 'project' => $project, + 'location' => $location, + 'entry_group' => $entryGroup, + 'entry' => $entry, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a entry_group + * resource. + * + * @param string $project + * @param string $location + * @param string $entryGroup + * + * @return string The formatted entry_group resource. + */ + public static function entryGroupName(string $project, string $location, string $entryGroup): string + { + return self::getPathTemplate('entryGroup')->render([ + 'project' => $project, + 'location' => $location, + 'entry_group' => $entryGroup, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a entry_link + * resource. + * + * @param string $project + * @param string $location + * @param string $entryGroup + * @param string $entryLink + * + * @return string The formatted entry_link resource. + */ + public static function entryLinkName(string $project, string $location, string $entryGroup, string $entryLink): string + { + return self::getPathTemplate('entryLink')->render([ + 'project' => $project, + 'location' => $location, + 'entry_group' => $entryGroup, + 'entry_link' => $entryLink, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a glossary + * resource. + * + * @param string $project + * @param string $location + * @param string $glossary + * + * @return string The formatted glossary resource. + */ + public static function glossaryName(string $project, string $location, string $glossary): string + { + return self::getPathTemplate('glossary')->render([ + 'project' => $project, + 'location' => $location, + 'glossary' => $glossary, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * glossary_category resource. + * + * @param string $project + * @param string $location + * @param string $glossary + * @param string $glossaryCategory + * + * @return string The formatted glossary_category resource. + */ + public static function glossaryCategoryName(string $project, string $location, string $glossary, string $glossaryCategory): string + { + return self::getPathTemplate('glossaryCategory')->render([ + 'project' => $project, + 'location' => $location, + 'glossary' => $glossary, + 'glossary_category' => $glossaryCategory, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * glossary_term resource. + * + * @param string $project + * @param string $location + * @param string $glossary + * @param string $glossaryTerm + * + * @return string The formatted glossary_term resource. + */ + public static function glossaryTermName(string $project, string $location, string $glossary, string $glossaryTerm): string + { + return self::getPathTemplate('glossaryTerm')->render([ + 'project' => $project, + 'location' => $location, + 'glossary' => $glossary, + 'glossary_term' => $glossaryTerm, + ]); + } + + /** + * 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, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - changeRequest: projects/{project}/locations/{location}/changeRequests/{change_request} + * - dataAsset: projects/{project}/locations/{location}/dataProducts/{data_product}/dataAssets/{data_asset} + * - dataProduct: projects/{project}/locations/{location}/dataProducts/{data_product} + * - entry: projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry} + * - entryGroup: projects/{project}/locations/{location}/entryGroups/{entry_group} + * - entryLink: projects/{project}/locations/{location}/entryGroups/{entry_group}/entryLinks/{entry_link} + * - glossary: projects/{project}/locations/{location}/glossaries/{glossary} + * - glossaryCategory: projects/{project}/locations/{location}/glossaries/{glossary}/categories/{glossary_category} + * - glossaryTerm: projects/{project}/locations/{location}/glossaries/{glossary}/terms/{glossary_term} + * - location: projects/{project}/locations/{location} + * + * 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 'dataplex.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\Dataplex\V1\DataProductServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new DataProductServiceClient(['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 data asset. + * + * The async variant is {@see DataProductServiceClient::createDataAssetAsync()} . + * + * @example samples/V1/DataProductServiceClient/create_data_asset.php + * + * @param CreateDataAssetRequest $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 createDataAsset(CreateDataAssetRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('CreateDataAsset', $request, $callOptions)->wait(); + } + + /** + * Creates a data product. + * + * The async variant is {@see DataProductServiceClient::createDataProductAsync()} . + * + * @example samples/V1/DataProductServiceClient/create_data_product.php + * + * @param CreateDataProductRequest $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 createDataProduct(CreateDataProductRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('CreateDataProduct', $request, $callOptions)->wait(); + } + + /** + * Deletes a data asset. + * + * The async variant is {@see DataProductServiceClient::deleteDataAssetAsync()} . + * + * @example samples/V1/DataProductServiceClient/delete_data_asset.php + * + * @param DeleteDataAssetRequest $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 deleteDataAsset(DeleteDataAssetRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('DeleteDataAsset', $request, $callOptions)->wait(); + } + + /** + * Deletes a data product. The deletion will fail if the data product is not + * empty (i.e. contains at least one data asset). + * + * The async variant is {@see DataProductServiceClient::deleteDataProductAsync()} . + * + * @example samples/V1/DataProductServiceClient/delete_data_product.php + * + * @param DeleteDataProductRequest $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 deleteDataProduct(DeleteDataProductRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('DeleteDataProduct', $request, $callOptions)->wait(); + } + + /** + * Gets a data asset. + * + * The async variant is {@see DataProductServiceClient::getDataAssetAsync()} . + * + * @example samples/V1/DataProductServiceClient/get_data_asset.php + * + * @param GetDataAssetRequest $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 DataAsset + * + * @throws ApiException Thrown if the API call fails. + */ + public function getDataAsset(GetDataAssetRequest $request, array $callOptions = []): DataAsset + { + return $this->startApiCall('GetDataAsset', $request, $callOptions)->wait(); + } + + /** + * Gets a data product. + * + * The async variant is {@see DataProductServiceClient::getDataProductAsync()} . + * + * @example samples/V1/DataProductServiceClient/get_data_product.php + * + * @param GetDataProductRequest $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 DataProduct + * + * @throws ApiException Thrown if the API call fails. + */ + public function getDataProduct(GetDataProductRequest $request, array $callOptions = []): DataProduct + { + return $this->startApiCall('GetDataProduct', $request, $callOptions)->wait(); + } + + /** + * Lists data assets for a given data product. + * + * The async variant is {@see DataProductServiceClient::listDataAssetsAsync()} . + * + * @example samples/V1/DataProductServiceClient/list_data_assets.php + * + * @param ListDataAssetsRequest $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 listDataAssets(ListDataAssetsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListDataAssets', $request, $callOptions); + } + + /** + * Lists data products for a given project. + * + * The async variant is {@see DataProductServiceClient::listDataProductsAsync()} . + * + * @example samples/V1/DataProductServiceClient/list_data_products.php + * + * @param ListDataProductsRequest $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 listDataProducts(ListDataProductsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListDataProducts', $request, $callOptions); + } + + /** + * Requests access to a data product. This will trigger an access approval + * workflow, and the requester will need to wait for the approval to be + * granted before they will be able to access the data product assets. + * + * The async variant is + * {@see DataProductServiceClient::requestDataProductAccessAsync()} . + * + * @example samples/V1/DataProductServiceClient/request_data_product_access.php + * + * @param RequestDataProductAccessRequest $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 RequestDataProductAccessResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function requestDataProductAccess(RequestDataProductAccessRequest $request, array $callOptions = []): RequestDataProductAccessResponse + { + return $this->startApiCall('RequestDataProductAccess', $request, $callOptions)->wait(); + } + + /** + * Updates a data asset. + * + * The async variant is {@see DataProductServiceClient::updateDataAssetAsync()} . + * + * @example samples/V1/DataProductServiceClient/update_data_asset.php + * + * @param UpdateDataAssetRequest $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 updateDataAsset(UpdateDataAssetRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('UpdateDataAsset', $request, $callOptions)->wait(); + } + + /** + * Updates a data product. + * + * The async variant is {@see DataProductServiceClient::updateDataProductAsync()} . + * + * @example samples/V1/DataProductServiceClient/update_data_product.php + * + * @param UpdateDataProductRequest $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 updateDataProduct(UpdateDataProductRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('UpdateDataProduct', $request, $callOptions)->wait(); + } + + /** + * Gets information about a location. + * + * The async variant is {@see DataProductServiceClient::getLocationAsync()} . + * + * @example samples/V1/DataProductServiceClient/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 DataProductServiceClient::listLocationsAsync()} . + * + * @example samples/V1/DataProductServiceClient/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); + } + + /** + * Gets the access control policy for a resource. Returns an empty policy + if the resource exists and does not have a policy set. + * + * The async variant is {@see DataProductServiceClient::getIamPolicyAsync()} . + * + * @example samples/V1/DataProductServiceClient/get_iam_policy.php + * + * @param GetIamPolicyRequest $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 Policy + * + * @throws ApiException Thrown if the API call fails. + */ + public function getIamPolicy(GetIamPolicyRequest $request, array $callOptions = []): Policy + { + return $this->startApiCall('GetIamPolicy', $request, $callOptions)->wait(); + } + + /** + * Sets the access control policy on the specified resource. Replaces + any existing policy. + + Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` + errors. + * + * The async variant is {@see DataProductServiceClient::setIamPolicyAsync()} . + * + * @example samples/V1/DataProductServiceClient/set_iam_policy.php + * + * @param SetIamPolicyRequest $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 Policy + * + * @throws ApiException Thrown if the API call fails. + */ + public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = []): Policy + { + return $this->startApiCall('SetIamPolicy', $request, $callOptions)->wait(); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + resource does not exist, this will return an empty set of + permissions, not a `NOT_FOUND` error. + + Note: This operation is designed to be used for building + permission-aware UIs and command-line tools, not for authorization + checking. This operation may "fail open" without warning. + * + * The async variant is {@see DataProductServiceClient::testIamPermissionsAsync()} + * . + * + * @example samples/V1/DataProductServiceClient/test_iam_permissions.php + * + * @param TestIamPermissionsRequest $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 TestIamPermissionsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse + { + return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/Dataplex/v1/src/V1/Client/DataScanServiceClient.php b/owl-bot-staging/Dataplex/v1/src/V1/Client/DataScanServiceClient.php new file mode 100644 index 000000000000..5fa8c51ae077 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/src/V1/Client/DataScanServiceClient.php @@ -0,0 +1,884 @@ + cancelDataScanJobAsync(CancelDataScanJobRequest $request, array $optionalArgs = []) + * @method PromiseInterface createDataScanAsync(CreateDataScanRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteDataScanAsync(DeleteDataScanRequest $request, array $optionalArgs = []) + * @method PromiseInterface generateDataQualityRulesAsync(GenerateDataQualityRulesRequest $request, array $optionalArgs = []) + * @method PromiseInterface getDataScanAsync(GetDataScanRequest $request, array $optionalArgs = []) + * @method PromiseInterface getDataScanJobAsync(GetDataScanJobRequest $request, array $optionalArgs = []) + * @method PromiseInterface listDataScanJobsAsync(ListDataScanJobsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listDataScansAsync(ListDataScansRequest $request, array $optionalArgs = []) + * @method PromiseInterface runDataScanAsync(RunDataScanRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateDataScanAsync(UpdateDataScanRequest $request, array $optionalArgs = []) + * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) + * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) + * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) + */ +final class DataScanServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.dataplex.v1.DataScanService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'dataplex.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'dataplex.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', + 'https://www.googleapis.com/auth/cloud-platform.read-only', + 'https://www.googleapis.com/auth/dataplex.read-write', + 'https://www.googleapis.com/auth/dataplex.readonly', + ]; + + private $operationsClient; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/data_scan_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/data_scan_service_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/data_scan_service_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/data_scan_service_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 connection + * resource. + * + * @param string $project + * @param string $location + * @param string $connection + * + * @return string The formatted connection resource. + */ + public static function connectionName(string $project, string $location, string $connection): string + { + return self::getPathTemplate('connection')->render([ + 'project' => $project, + 'location' => $location, + 'connection' => $connection, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a data_scan + * resource. + * + * @param string $project + * @param string $location + * @param string $dataScan + * + * @return string The formatted data_scan resource. + */ + public static function dataScanName(string $project, string $location, string $dataScan): string + { + return self::getPathTemplate('dataScan')->render([ + 'project' => $project, + 'location' => $location, + 'dataScan' => $dataScan, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * data_scan_job resource. + * + * @param string $project + * @param string $location + * @param string $dataScan + * @param string $job + * + * @return string The formatted data_scan_job resource. + */ + public static function dataScanJobName(string $project, string $location, string $dataScan, string $job): string + { + return self::getPathTemplate('dataScanJob')->render([ + 'project' => $project, + 'location' => $location, + 'dataScan' => $dataScan, + 'job' => $job, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a dataset + * resource. + * + * @param string $project + * @param string $dataset + * + * @return string The formatted dataset resource. + */ + public static function datasetName(string $project, string $dataset): string + { + return self::getPathTemplate('dataset')->render([ + 'project' => $project, + 'dataset' => $dataset, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a entity + * resource. + * + * @param string $project + * @param string $location + * @param string $lake + * @param string $zone + * @param string $entity + * + * @return string The formatted entity resource. + */ + public static function entityName(string $project, string $location, string $lake, string $zone, string $entity): string + { + return self::getPathTemplate('entity')->render([ + 'project' => $project, + 'location' => $location, + 'lake' => $lake, + 'zone' => $zone, + 'entity' => $entity, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a entry + * resource. + * + * @param string $project + * @param string $location + * @param string $entryGroup + * @param string $entry + * + * @return string The formatted entry resource. + */ + public static function entryName(string $project, string $location, string $entryGroup, string $entry): string + { + return self::getPathTemplate('entry')->render([ + 'project' => $project, + 'location' => $location, + 'entry_group' => $entryGroup, + 'entry' => $entry, + ]); + } + + /** + * 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 project + * resource. + * + * @param string $project + * + * @return string The formatted project resource. + */ + public static function projectName(string $project): string + { + return self::getPathTemplate('project')->render([ + 'project' => $project, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - connection: projects/{project}/locations/{location}/connections/{connection} + * - dataScan: projects/{project}/locations/{location}/dataScans/{dataScan} + * - dataScanJob: projects/{project}/locations/{location}/dataScans/{dataScan}/jobs/{job} + * - dataset: projects/{project}/datasets/{dataset} + * - entity: projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/entities/{entity} + * - entry: projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry} + * - location: projects/{project}/locations/{location} + * - project: projects/{project} + * + * 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 'dataplex.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\Dataplex\V1\DataScanServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new DataScanServiceClient(['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); + } + + /** + * Cancels a running/pending DataScan job. + * + * The async variant is {@see DataScanServiceClient::cancelDataScanJobAsync()} . + * + * @example samples/V1/DataScanServiceClient/cancel_data_scan_job.php + * + * @param CancelDataScanJobRequest $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 CancelDataScanJobResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function cancelDataScanJob(CancelDataScanJobRequest $request, array $callOptions = []): CancelDataScanJobResponse + { + return $this->startApiCall('CancelDataScanJob', $request, $callOptions)->wait(); + } + + /** + * Creates a DataScan resource. + * + * The async variant is {@see DataScanServiceClient::createDataScanAsync()} . + * + * @example samples/V1/DataScanServiceClient/create_data_scan.php + * + * @param CreateDataScanRequest $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 createDataScan(CreateDataScanRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('CreateDataScan', $request, $callOptions)->wait(); + } + + /** + * Deletes a DataScan resource. + * + * The async variant is {@see DataScanServiceClient::deleteDataScanAsync()} . + * + * @example samples/V1/DataScanServiceClient/delete_data_scan.php + * + * @param DeleteDataScanRequest $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 deleteDataScan(DeleteDataScanRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('DeleteDataScan', $request, $callOptions)->wait(); + } + + /** + * Generates recommended data quality rules based on the results of a data + * profiling scan. + * + * Use the recommendations to build rules for a data quality scan. + * + * The async variant is + * {@see DataScanServiceClient::generateDataQualityRulesAsync()} . + * + * @example samples/V1/DataScanServiceClient/generate_data_quality_rules.php + * + * @param GenerateDataQualityRulesRequest $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 GenerateDataQualityRulesResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function generateDataQualityRules(GenerateDataQualityRulesRequest $request, array $callOptions = []): GenerateDataQualityRulesResponse + { + return $this->startApiCall('GenerateDataQualityRules', $request, $callOptions)->wait(); + } + + /** + * Gets a DataScan resource. + * + * The async variant is {@see DataScanServiceClient::getDataScanAsync()} . + * + * @example samples/V1/DataScanServiceClient/get_data_scan.php + * + * @param GetDataScanRequest $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 DataScan + * + * @throws ApiException Thrown if the API call fails. + */ + public function getDataScan(GetDataScanRequest $request, array $callOptions = []): DataScan + { + return $this->startApiCall('GetDataScan', $request, $callOptions)->wait(); + } + + /** + * Gets a DataScanJob resource. + * + * The async variant is {@see DataScanServiceClient::getDataScanJobAsync()} . + * + * @example samples/V1/DataScanServiceClient/get_data_scan_job.php + * + * @param GetDataScanJobRequest $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 DataScanJob + * + * @throws ApiException Thrown if the API call fails. + */ + public function getDataScanJob(GetDataScanJobRequest $request, array $callOptions = []): DataScanJob + { + return $this->startApiCall('GetDataScanJob', $request, $callOptions)->wait(); + } + + /** + * Lists DataScanJobs under the given DataScan. + * + * The async variant is {@see DataScanServiceClient::listDataScanJobsAsync()} . + * + * @example samples/V1/DataScanServiceClient/list_data_scan_jobs.php + * + * @param ListDataScanJobsRequest $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 listDataScanJobs(ListDataScanJobsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListDataScanJobs', $request, $callOptions); + } + + /** + * Lists DataScans. + * + * The async variant is {@see DataScanServiceClient::listDataScansAsync()} . + * + * @example samples/V1/DataScanServiceClient/list_data_scans.php + * + * @param ListDataScansRequest $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 listDataScans(ListDataScansRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListDataScans', $request, $callOptions); + } + + /** + * Runs an on-demand execution of a DataScan + * + * The async variant is {@see DataScanServiceClient::runDataScanAsync()} . + * + * @example samples/V1/DataScanServiceClient/run_data_scan.php + * + * @param RunDataScanRequest $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 RunDataScanResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function runDataScan(RunDataScanRequest $request, array $callOptions = []): RunDataScanResponse + { + return $this->startApiCall('RunDataScan', $request, $callOptions)->wait(); + } + + /** + * Updates a DataScan resource. + * + * The async variant is {@see DataScanServiceClient::updateDataScanAsync()} . + * + * @example samples/V1/DataScanServiceClient/update_data_scan.php + * + * @param UpdateDataScanRequest $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 updateDataScan(UpdateDataScanRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('UpdateDataScan', $request, $callOptions)->wait(); + } + + /** + * Gets information about a location. + * + * The async variant is {@see DataScanServiceClient::getLocationAsync()} . + * + * @example samples/V1/DataScanServiceClient/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 DataScanServiceClient::listLocationsAsync()} . + * + * @example samples/V1/DataScanServiceClient/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); + } + + /** + * Gets the access control policy for a resource. Returns an empty policy + if the resource exists and does not have a policy set. + * + * The async variant is {@see DataScanServiceClient::getIamPolicyAsync()} . + * + * @example samples/V1/DataScanServiceClient/get_iam_policy.php + * + * @param GetIamPolicyRequest $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 Policy + * + * @throws ApiException Thrown if the API call fails. + */ + public function getIamPolicy(GetIamPolicyRequest $request, array $callOptions = []): Policy + { + return $this->startApiCall('GetIamPolicy', $request, $callOptions)->wait(); + } + + /** + * Sets the access control policy on the specified resource. Replaces + any existing policy. + + Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` + errors. + * + * The async variant is {@see DataScanServiceClient::setIamPolicyAsync()} . + * + * @example samples/V1/DataScanServiceClient/set_iam_policy.php + * + * @param SetIamPolicyRequest $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 Policy + * + * @throws ApiException Thrown if the API call fails. + */ + public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = []): Policy + { + return $this->startApiCall('SetIamPolicy', $request, $callOptions)->wait(); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + resource does not exist, this will return an empty set of + permissions, not a `NOT_FOUND` error. + + Note: This operation is designed to be used for building + permission-aware UIs and command-line tools, not for authorization + checking. This operation may "fail open" without warning. + * + * The async variant is {@see DataScanServiceClient::testIamPermissionsAsync()} . + * + * @example samples/V1/DataScanServiceClient/test_iam_permissions.php + * + * @param TestIamPermissionsRequest $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 TestIamPermissionsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse + { + return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/Dataplex/v1/src/V1/Client/DataTaxonomyServiceClient.php b/owl-bot-staging/Dataplex/v1/src/V1/Client/DataTaxonomyServiceClient.php new file mode 100644 index 000000000000..095f1630fb66 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/src/V1/Client/DataTaxonomyServiceClient.php @@ -0,0 +1,984 @@ + createDataAttributeAsync(CreateDataAttributeRequest $request, array $optionalArgs = []) + * @method PromiseInterface createDataAttributeBindingAsync(CreateDataAttributeBindingRequest $request, array $optionalArgs = []) + * @method PromiseInterface createDataTaxonomyAsync(CreateDataTaxonomyRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteDataAttributeAsync(DeleteDataAttributeRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteDataAttributeBindingAsync(DeleteDataAttributeBindingRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteDataTaxonomyAsync(DeleteDataTaxonomyRequest $request, array $optionalArgs = []) + * @method PromiseInterface getDataAttributeAsync(GetDataAttributeRequest $request, array $optionalArgs = []) + * @method PromiseInterface getDataAttributeBindingAsync(GetDataAttributeBindingRequest $request, array $optionalArgs = []) + * @method PromiseInterface getDataTaxonomyAsync(GetDataTaxonomyRequest $request, array $optionalArgs = []) + * @method PromiseInterface listDataAttributeBindingsAsync(ListDataAttributeBindingsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listDataAttributesAsync(ListDataAttributesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listDataTaxonomiesAsync(ListDataTaxonomiesRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateDataAttributeAsync(UpdateDataAttributeRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateDataAttributeBindingAsync(UpdateDataAttributeBindingRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateDataTaxonomyAsync(UpdateDataTaxonomyRequest $request, array $optionalArgs = []) + * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) + * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) + * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) + */ +final class DataTaxonomyServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.dataplex.v1.DataTaxonomyService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'dataplex.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'dataplex.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', + 'https://www.googleapis.com/auth/dataplex.read-write', + ]; + + private $operationsClient; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/data_taxonomy_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/data_taxonomy_service_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/data_taxonomy_service_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/data_taxonomy_service_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 + * data_attribute resource. + * + * @param string $project + * @param string $location + * @param string $dataTaxonomy + * @param string $dataAttributeId + * + * @return string The formatted data_attribute resource. + */ + public static function dataAttributeName(string $project, string $location, string $dataTaxonomy, string $dataAttributeId): string + { + return self::getPathTemplate('dataAttribute')->render([ + 'project' => $project, + 'location' => $location, + 'dataTaxonomy' => $dataTaxonomy, + 'data_attribute_id' => $dataAttributeId, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * data_attribute_binding resource. + * + * @param string $project + * @param string $location + * @param string $dataAttributeBindingId + * + * @return string The formatted data_attribute_binding resource. + */ + public static function dataAttributeBindingName(string $project, string $location, string $dataAttributeBindingId): string + { + return self::getPathTemplate('dataAttributeBinding')->render([ + 'project' => $project, + 'location' => $location, + 'data_attribute_binding_id' => $dataAttributeBindingId, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * data_taxonomy resource. + * + * @param string $project + * @param string $location + * @param string $dataTaxonomyId + * + * @return string The formatted data_taxonomy resource. + */ + public static function dataTaxonomyName(string $project, string $location, string $dataTaxonomyId): string + { + return self::getPathTemplate('dataTaxonomy')->render([ + 'project' => $project, + 'location' => $location, + 'data_taxonomy_id' => $dataTaxonomyId, + ]); + } + + /** + * 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, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - dataAttribute: projects/{project}/locations/{location}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id} + * - dataAttributeBinding: projects/{project}/locations/{location}/dataAttributeBindings/{data_attribute_binding_id} + * - dataTaxonomy: projects/{project}/locations/{location}/dataTaxonomies/{data_taxonomy_id} + * - location: projects/{project}/locations/{location} + * + * 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 'dataplex.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\Dataplex\V1\DataTaxonomyServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new DataTaxonomyServiceClient(['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); + } + + /** + * Create a DataAttribute resource. + * + * The async variant is + * {@see DataTaxonomyServiceClient::createDataAttributeAsync()} . + * + * @example samples/V1/DataTaxonomyServiceClient/create_data_attribute.php + * + * @param CreateDataAttributeRequest $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. + * + * @deprecated This method will be removed in the next major version update. + */ + public function createDataAttribute(CreateDataAttributeRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('CreateDataAttribute', $request, $callOptions)->wait(); + } + + /** + * Create a DataAttributeBinding resource. + * + * The async variant is + * {@see DataTaxonomyServiceClient::createDataAttributeBindingAsync()} . + * + * @example samples/V1/DataTaxonomyServiceClient/create_data_attribute_binding.php + * + * @param CreateDataAttributeBindingRequest $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. + * + * @deprecated This method will be removed in the next major version update. + */ + public function createDataAttributeBinding(CreateDataAttributeBindingRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('CreateDataAttributeBinding', $request, $callOptions)->wait(); + } + + /** + * Create a DataTaxonomy resource. + * + * The async variant is {@see DataTaxonomyServiceClient::createDataTaxonomyAsync()} + * . + * + * @example samples/V1/DataTaxonomyServiceClient/create_data_taxonomy.php + * + * @param CreateDataTaxonomyRequest $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. + * + * @deprecated This method will be removed in the next major version update. + */ + public function createDataTaxonomy(CreateDataTaxonomyRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('CreateDataTaxonomy', $request, $callOptions)->wait(); + } + + /** + * Deletes a Data Attribute resource. + * + * The async variant is + * {@see DataTaxonomyServiceClient::deleteDataAttributeAsync()} . + * + * @example samples/V1/DataTaxonomyServiceClient/delete_data_attribute.php + * + * @param DeleteDataAttributeRequest $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. + * + * @deprecated This method will be removed in the next major version update. + */ + public function deleteDataAttribute(DeleteDataAttributeRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('DeleteDataAttribute', $request, $callOptions)->wait(); + } + + /** + * Deletes a DataAttributeBinding resource. All attributes within the + * DataAttributeBinding must be deleted before the DataAttributeBinding can be + * deleted. + * + * The async variant is + * {@see DataTaxonomyServiceClient::deleteDataAttributeBindingAsync()} . + * + * @example samples/V1/DataTaxonomyServiceClient/delete_data_attribute_binding.php + * + * @param DeleteDataAttributeBindingRequest $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. + * + * @deprecated This method will be removed in the next major version update. + */ + public function deleteDataAttributeBinding(DeleteDataAttributeBindingRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('DeleteDataAttributeBinding', $request, $callOptions)->wait(); + } + + /** + * Deletes a DataTaxonomy resource. All attributes within the DataTaxonomy + * must be deleted before the DataTaxonomy can be deleted. + * + * The async variant is {@see DataTaxonomyServiceClient::deleteDataTaxonomyAsync()} + * . + * + * @example samples/V1/DataTaxonomyServiceClient/delete_data_taxonomy.php + * + * @param DeleteDataTaxonomyRequest $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. + * + * @deprecated This method will be removed in the next major version update. + */ + public function deleteDataTaxonomy(DeleteDataTaxonomyRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('DeleteDataTaxonomy', $request, $callOptions)->wait(); + } + + /** + * Retrieves a Data Attribute resource. + * + * The async variant is {@see DataTaxonomyServiceClient::getDataAttributeAsync()} . + * + * @example samples/V1/DataTaxonomyServiceClient/get_data_attribute.php + * + * @param GetDataAttributeRequest $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 DataAttribute + * + * @throws ApiException Thrown if the API call fails. + * + * @deprecated This method will be removed in the next major version update. + */ + public function getDataAttribute(GetDataAttributeRequest $request, array $callOptions = []): DataAttribute + { + return $this->startApiCall('GetDataAttribute', $request, $callOptions)->wait(); + } + + /** + * Retrieves a DataAttributeBinding resource. + * + * The async variant is + * {@see DataTaxonomyServiceClient::getDataAttributeBindingAsync()} . + * + * @example samples/V1/DataTaxonomyServiceClient/get_data_attribute_binding.php + * + * @param GetDataAttributeBindingRequest $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 DataAttributeBinding + * + * @throws ApiException Thrown if the API call fails. + * + * @deprecated This method will be removed in the next major version update. + */ + public function getDataAttributeBinding(GetDataAttributeBindingRequest $request, array $callOptions = []): DataAttributeBinding + { + return $this->startApiCall('GetDataAttributeBinding', $request, $callOptions)->wait(); + } + + /** + * Retrieves a DataTaxonomy resource. + * + * The async variant is {@see DataTaxonomyServiceClient::getDataTaxonomyAsync()} . + * + * @example samples/V1/DataTaxonomyServiceClient/get_data_taxonomy.php + * + * @param GetDataTaxonomyRequest $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 DataTaxonomy + * + * @throws ApiException Thrown if the API call fails. + * + * @deprecated This method will be removed in the next major version update. + */ + public function getDataTaxonomy(GetDataTaxonomyRequest $request, array $callOptions = []): DataTaxonomy + { + return $this->startApiCall('GetDataTaxonomy', $request, $callOptions)->wait(); + } + + /** + * Lists DataAttributeBinding resources in a project and location. + * + * The async variant is + * {@see DataTaxonomyServiceClient::listDataAttributeBindingsAsync()} . + * + * @example samples/V1/DataTaxonomyServiceClient/list_data_attribute_bindings.php + * + * @param ListDataAttributeBindingsRequest $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. + * + * @deprecated This method will be removed in the next major version update. + */ + public function listDataAttributeBindings(ListDataAttributeBindingsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListDataAttributeBindings', $request, $callOptions); + } + + /** + * Lists Data Attribute resources in a DataTaxonomy. + * + * The async variant is {@see DataTaxonomyServiceClient::listDataAttributesAsync()} + * . + * + * @example samples/V1/DataTaxonomyServiceClient/list_data_attributes.php + * + * @param ListDataAttributesRequest $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. + * + * @deprecated This method will be removed in the next major version update. + */ + public function listDataAttributes(ListDataAttributesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListDataAttributes', $request, $callOptions); + } + + /** + * Lists DataTaxonomy resources in a project and location. + * + * The async variant is {@see DataTaxonomyServiceClient::listDataTaxonomiesAsync()} + * . + * + * @example samples/V1/DataTaxonomyServiceClient/list_data_taxonomies.php + * + * @param ListDataTaxonomiesRequest $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. + * + * @deprecated This method will be removed in the next major version update. + */ + public function listDataTaxonomies(ListDataTaxonomiesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListDataTaxonomies', $request, $callOptions); + } + + /** + * Updates a DataAttribute resource. + * + * The async variant is + * {@see DataTaxonomyServiceClient::updateDataAttributeAsync()} . + * + * @example samples/V1/DataTaxonomyServiceClient/update_data_attribute.php + * + * @param UpdateDataAttributeRequest $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. + * + * @deprecated This method will be removed in the next major version update. + */ + public function updateDataAttribute(UpdateDataAttributeRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('UpdateDataAttribute', $request, $callOptions)->wait(); + } + + /** + * Updates a DataAttributeBinding resource. + * + * The async variant is + * {@see DataTaxonomyServiceClient::updateDataAttributeBindingAsync()} . + * + * @example samples/V1/DataTaxonomyServiceClient/update_data_attribute_binding.php + * + * @param UpdateDataAttributeBindingRequest $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. + * + * @deprecated This method will be removed in the next major version update. + */ + public function updateDataAttributeBinding(UpdateDataAttributeBindingRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('UpdateDataAttributeBinding', $request, $callOptions)->wait(); + } + + /** + * Updates a DataTaxonomy resource. + * + * The async variant is {@see DataTaxonomyServiceClient::updateDataTaxonomyAsync()} + * . + * + * @example samples/V1/DataTaxonomyServiceClient/update_data_taxonomy.php + * + * @param UpdateDataTaxonomyRequest $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. + * + * @deprecated This method will be removed in the next major version update. + */ + public function updateDataTaxonomy(UpdateDataTaxonomyRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('UpdateDataTaxonomy', $request, $callOptions)->wait(); + } + + /** + * Gets information about a location. + * + * The async variant is {@see DataTaxonomyServiceClient::getLocationAsync()} . + * + * @example samples/V1/DataTaxonomyServiceClient/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 DataTaxonomyServiceClient::listLocationsAsync()} . + * + * @example samples/V1/DataTaxonomyServiceClient/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); + } + + /** + * Gets the access control policy for a resource. Returns an empty policy + if the resource exists and does not have a policy set. + * + * The async variant is {@see DataTaxonomyServiceClient::getIamPolicyAsync()} . + * + * @example samples/V1/DataTaxonomyServiceClient/get_iam_policy.php + * + * @param GetIamPolicyRequest $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 Policy + * + * @throws ApiException Thrown if the API call fails. + */ + public function getIamPolicy(GetIamPolicyRequest $request, array $callOptions = []): Policy + { + return $this->startApiCall('GetIamPolicy', $request, $callOptions)->wait(); + } + + /** + * Sets the access control policy on the specified resource. Replaces + any existing policy. + + Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` + errors. + * + * The async variant is {@see DataTaxonomyServiceClient::setIamPolicyAsync()} . + * + * @example samples/V1/DataTaxonomyServiceClient/set_iam_policy.php + * + * @param SetIamPolicyRequest $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 Policy + * + * @throws ApiException Thrown if the API call fails. + */ + public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = []): Policy + { + return $this->startApiCall('SetIamPolicy', $request, $callOptions)->wait(); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + resource does not exist, this will return an empty set of + permissions, not a `NOT_FOUND` error. + + Note: This operation is designed to be used for building + permission-aware UIs and command-line tools, not for authorization + checking. This operation may "fail open" without warning. + * + * The async variant is {@see DataTaxonomyServiceClient::testIamPermissionsAsync()} + * . + * + * @example samples/V1/DataTaxonomyServiceClient/test_iam_permissions.php + * + * @param TestIamPermissionsRequest $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 TestIamPermissionsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse + { + return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/Dataplex/v1/src/V1/Client/DataplexServiceClient.php b/owl-bot-staging/Dataplex/v1/src/V1/Client/DataplexServiceClient.php new file mode 100644 index 000000000000..637fb5098b83 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/src/V1/Client/DataplexServiceClient.php @@ -0,0 +1,1330 @@ + cancelJobAsync(CancelJobRequest $request, array $optionalArgs = []) + * @method PromiseInterface createAssetAsync(CreateAssetRequest $request, array $optionalArgs = []) + * @method PromiseInterface createLakeAsync(CreateLakeRequest $request, array $optionalArgs = []) + * @method PromiseInterface createTaskAsync(CreateTaskRequest $request, array $optionalArgs = []) + * @method PromiseInterface createZoneAsync(CreateZoneRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteAssetAsync(DeleteAssetRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteLakeAsync(DeleteLakeRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteTaskAsync(DeleteTaskRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteZoneAsync(DeleteZoneRequest $request, array $optionalArgs = []) + * @method PromiseInterface getAssetAsync(GetAssetRequest $request, array $optionalArgs = []) + * @method PromiseInterface getJobAsync(GetJobRequest $request, array $optionalArgs = []) + * @method PromiseInterface getLakeAsync(GetLakeRequest $request, array $optionalArgs = []) + * @method PromiseInterface getTaskAsync(GetTaskRequest $request, array $optionalArgs = []) + * @method PromiseInterface getZoneAsync(GetZoneRequest $request, array $optionalArgs = []) + * @method PromiseInterface listAssetActionsAsync(ListAssetActionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listAssetsAsync(ListAssetsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listJobsAsync(ListJobsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listLakeActionsAsync(ListLakeActionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listLakesAsync(ListLakesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listTasksAsync(ListTasksRequest $request, array $optionalArgs = []) + * @method PromiseInterface listZoneActionsAsync(ListZoneActionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listZonesAsync(ListZonesRequest $request, array $optionalArgs = []) + * @method PromiseInterface runTaskAsync(RunTaskRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateAssetAsync(UpdateAssetRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateLakeAsync(UpdateLakeRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateTaskAsync(UpdateTaskRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateZoneAsync(UpdateZoneRequest $request, array $optionalArgs = []) + * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) + * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) + * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) + */ +final class DataplexServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.dataplex.v1.DataplexService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'dataplex.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'dataplex.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', + 'https://www.googleapis.com/auth/cloud-platform.read-only', + 'https://www.googleapis.com/auth/dataplex.read-write', + 'https://www.googleapis.com/auth/dataplex.readonly', + ]; + + private $operationsClient; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/dataplex_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/dataplex_service_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/dataplex_service_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/dataplex_service_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 asset + * resource. + * + * @param string $project + * @param string $location + * @param string $lake + * @param string $zone + * @param string $asset + * + * @return string The formatted asset resource. + */ + public static function assetName(string $project, string $location, string $lake, string $zone, string $asset): string + { + return self::getPathTemplate('asset')->render([ + 'project' => $project, + 'location' => $location, + 'lake' => $lake, + 'zone' => $zone, + 'asset' => $asset, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a job + * resource. + * + * @param string $project + * @param string $location + * @param string $lake + * @param string $task + * @param string $job + * + * @return string The formatted job resource. + */ + public static function jobName(string $project, string $location, string $lake, string $task, string $job): string + { + return self::getPathTemplate('job')->render([ + 'project' => $project, + 'location' => $location, + 'lake' => $lake, + 'task' => $task, + 'job' => $job, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a lake + * resource. + * + * @param string $project + * @param string $location + * @param string $lake + * + * @return string The formatted lake resource. + */ + public static function lakeName(string $project, string $location, string $lake): string + { + return self::getPathTemplate('lake')->render([ + 'project' => $project, + 'location' => $location, + 'lake' => $lake, + ]); + } + + /** + * 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 task + * resource. + * + * @param string $project + * @param string $location + * @param string $lake + * @param string $task + * + * @return string The formatted task resource. + */ + public static function taskName(string $project, string $location, string $lake, string $task): string + { + return self::getPathTemplate('task')->render([ + 'project' => $project, + 'location' => $location, + 'lake' => $lake, + 'task' => $task, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a zone + * resource. + * + * @param string $project + * @param string $location + * @param string $lake + * @param string $zone + * + * @return string The formatted zone resource. + */ + public static function zoneName(string $project, string $location, string $lake, string $zone): string + { + return self::getPathTemplate('zone')->render([ + 'project' => $project, + 'location' => $location, + 'lake' => $lake, + 'zone' => $zone, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - asset: projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/assets/{asset} + * - job: projects/{project}/locations/{location}/lakes/{lake}/tasks/{task}/jobs/{job} + * - lake: projects/{project}/locations/{location}/lakes/{lake} + * - location: projects/{project}/locations/{location} + * - task: projects/{project}/locations/{location}/lakes/{lake}/tasks/{task} + * - zone: projects/{project}/locations/{location}/lakes/{lake}/zones/{zone} + * + * 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 'dataplex.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\Dataplex\V1\DataplexServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new DataplexServiceClient(['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); + } + + /** + * Cancel jobs running for the task resource. + * + * The async variant is {@see DataplexServiceClient::cancelJobAsync()} . + * + * @example samples/V1/DataplexServiceClient/cancel_job.php + * + * @param CancelJobRequest $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 cancelJob(CancelJobRequest $request, array $callOptions = []): void + { + $this->startApiCall('CancelJob', $request, $callOptions)->wait(); + } + + /** + * Creates an asset resource. + * + * The async variant is {@see DataplexServiceClient::createAssetAsync()} . + * + * @example samples/V1/DataplexServiceClient/create_asset.php + * + * @param CreateAssetRequest $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 createAsset(CreateAssetRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('CreateAsset', $request, $callOptions)->wait(); + } + + /** + * Creates a lake resource. + * + * The async variant is {@see DataplexServiceClient::createLakeAsync()} . + * + * @example samples/V1/DataplexServiceClient/create_lake.php + * + * @param CreateLakeRequest $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 createLake(CreateLakeRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('CreateLake', $request, $callOptions)->wait(); + } + + /** + * Creates a task resource within a lake. + * + * The async variant is {@see DataplexServiceClient::createTaskAsync()} . + * + * @example samples/V1/DataplexServiceClient/create_task.php + * + * @param CreateTaskRequest $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 createTask(CreateTaskRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('CreateTask', $request, $callOptions)->wait(); + } + + /** + * Creates a zone resource within a lake. + * + * The async variant is {@see DataplexServiceClient::createZoneAsync()} . + * + * @example samples/V1/DataplexServiceClient/create_zone.php + * + * @param CreateZoneRequest $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 createZone(CreateZoneRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('CreateZone', $request, $callOptions)->wait(); + } + + /** + * Deletes an asset resource. The referenced storage resource is detached + * (default) or deleted based on the associated Lifecycle policy. + * + * The async variant is {@see DataplexServiceClient::deleteAssetAsync()} . + * + * @example samples/V1/DataplexServiceClient/delete_asset.php + * + * @param DeleteAssetRequest $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 deleteAsset(DeleteAssetRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('DeleteAsset', $request, $callOptions)->wait(); + } + + /** + * Deletes a lake resource. All zones within the lake must be deleted before + * the lake can be deleted. + * + * The async variant is {@see DataplexServiceClient::deleteLakeAsync()} . + * + * @example samples/V1/DataplexServiceClient/delete_lake.php + * + * @param DeleteLakeRequest $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 deleteLake(DeleteLakeRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('DeleteLake', $request, $callOptions)->wait(); + } + + /** + * Delete the task resource. + * + * The async variant is {@see DataplexServiceClient::deleteTaskAsync()} . + * + * @example samples/V1/DataplexServiceClient/delete_task.php + * + * @param DeleteTaskRequest $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 deleteTask(DeleteTaskRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('DeleteTask', $request, $callOptions)->wait(); + } + + /** + * Deletes a zone resource. All assets within a zone must be deleted before + * the zone can be deleted. + * + * The async variant is {@see DataplexServiceClient::deleteZoneAsync()} . + * + * @example samples/V1/DataplexServiceClient/delete_zone.php + * + * @param DeleteZoneRequest $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 deleteZone(DeleteZoneRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('DeleteZone', $request, $callOptions)->wait(); + } + + /** + * Retrieves an asset resource. + * + * The async variant is {@see DataplexServiceClient::getAssetAsync()} . + * + * @example samples/V1/DataplexServiceClient/get_asset.php + * + * @param GetAssetRequest $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 Asset + * + * @throws ApiException Thrown if the API call fails. + */ + public function getAsset(GetAssetRequest $request, array $callOptions = []): Asset + { + return $this->startApiCall('GetAsset', $request, $callOptions)->wait(); + } + + /** + * Get job resource. + * + * The async variant is {@see DataplexServiceClient::getJobAsync()} . + * + * @example samples/V1/DataplexServiceClient/get_job.php + * + * @param GetJobRequest $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 Job + * + * @throws ApiException Thrown if the API call fails. + */ + public function getJob(GetJobRequest $request, array $callOptions = []): Job + { + return $this->startApiCall('GetJob', $request, $callOptions)->wait(); + } + + /** + * Retrieves a lake resource. + * + * The async variant is {@see DataplexServiceClient::getLakeAsync()} . + * + * @example samples/V1/DataplexServiceClient/get_lake.php + * + * @param GetLakeRequest $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 Lake + * + * @throws ApiException Thrown if the API call fails. + */ + public function getLake(GetLakeRequest $request, array $callOptions = []): Lake + { + return $this->startApiCall('GetLake', $request, $callOptions)->wait(); + } + + /** + * Get task resource. + * + * The async variant is {@see DataplexServiceClient::getTaskAsync()} . + * + * @example samples/V1/DataplexServiceClient/get_task.php + * + * @param GetTaskRequest $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 Task + * + * @throws ApiException Thrown if the API call fails. + */ + public function getTask(GetTaskRequest $request, array $callOptions = []): Task + { + return $this->startApiCall('GetTask', $request, $callOptions)->wait(); + } + + /** + * Retrieves a zone resource. + * + * The async variant is {@see DataplexServiceClient::getZoneAsync()} . + * + * @example samples/V1/DataplexServiceClient/get_zone.php + * + * @param GetZoneRequest $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 Zone + * + * @throws ApiException Thrown if the API call fails. + */ + public function getZone(GetZoneRequest $request, array $callOptions = []): Zone + { + return $this->startApiCall('GetZone', $request, $callOptions)->wait(); + } + + /** + * Lists action resources in an asset. + * + * The async variant is {@see DataplexServiceClient::listAssetActionsAsync()} . + * + * @example samples/V1/DataplexServiceClient/list_asset_actions.php + * + * @param ListAssetActionsRequest $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 listAssetActions(ListAssetActionsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListAssetActions', $request, $callOptions); + } + + /** + * Lists asset resources in a zone. + * + * The async variant is {@see DataplexServiceClient::listAssetsAsync()} . + * + * @example samples/V1/DataplexServiceClient/list_assets.php + * + * @param ListAssetsRequest $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 listAssets(ListAssetsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListAssets', $request, $callOptions); + } + + /** + * Lists Jobs under the given task. + * + * The async variant is {@see DataplexServiceClient::listJobsAsync()} . + * + * @example samples/V1/DataplexServiceClient/list_jobs.php + * + * @param ListJobsRequest $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 listJobs(ListJobsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListJobs', $request, $callOptions); + } + + /** + * Lists action resources in a lake. + * + * The async variant is {@see DataplexServiceClient::listLakeActionsAsync()} . + * + * @example samples/V1/DataplexServiceClient/list_lake_actions.php + * + * @param ListLakeActionsRequest $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 listLakeActions(ListLakeActionsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListLakeActions', $request, $callOptions); + } + + /** + * Lists lake resources in a project and location. + * + * The async variant is {@see DataplexServiceClient::listLakesAsync()} . + * + * @example samples/V1/DataplexServiceClient/list_lakes.php + * + * @param ListLakesRequest $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 listLakes(ListLakesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListLakes', $request, $callOptions); + } + + /** + * Lists tasks under the given lake. + * + * The async variant is {@see DataplexServiceClient::listTasksAsync()} . + * + * @example samples/V1/DataplexServiceClient/list_tasks.php + * + * @param ListTasksRequest $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 listTasks(ListTasksRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListTasks', $request, $callOptions); + } + + /** + * Lists action resources in a zone. + * + * The async variant is {@see DataplexServiceClient::listZoneActionsAsync()} . + * + * @example samples/V1/DataplexServiceClient/list_zone_actions.php + * + * @param ListZoneActionsRequest $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 listZoneActions(ListZoneActionsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListZoneActions', $request, $callOptions); + } + + /** + * Lists zone resources in a lake. + * + * The async variant is {@see DataplexServiceClient::listZonesAsync()} . + * + * @example samples/V1/DataplexServiceClient/list_zones.php + * + * @param ListZonesRequest $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 listZones(ListZonesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListZones', $request, $callOptions); + } + + /** + * Run an on demand execution of a Task. + * + * The async variant is {@see DataplexServiceClient::runTaskAsync()} . + * + * @example samples/V1/DataplexServiceClient/run_task.php + * + * @param RunTaskRequest $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 RunTaskResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function runTask(RunTaskRequest $request, array $callOptions = []): RunTaskResponse + { + return $this->startApiCall('RunTask', $request, $callOptions)->wait(); + } + + /** + * Updates an asset resource. + * + * The async variant is {@see DataplexServiceClient::updateAssetAsync()} . + * + * @example samples/V1/DataplexServiceClient/update_asset.php + * + * @param UpdateAssetRequest $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 updateAsset(UpdateAssetRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('UpdateAsset', $request, $callOptions)->wait(); + } + + /** + * Updates a lake resource. + * + * The async variant is {@see DataplexServiceClient::updateLakeAsync()} . + * + * @example samples/V1/DataplexServiceClient/update_lake.php + * + * @param UpdateLakeRequest $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 updateLake(UpdateLakeRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('UpdateLake', $request, $callOptions)->wait(); + } + + /** + * Update the task resource. + * + * The async variant is {@see DataplexServiceClient::updateTaskAsync()} . + * + * @example samples/V1/DataplexServiceClient/update_task.php + * + * @param UpdateTaskRequest $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 updateTask(UpdateTaskRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('UpdateTask', $request, $callOptions)->wait(); + } + + /** + * Updates a zone resource. + * + * The async variant is {@see DataplexServiceClient::updateZoneAsync()} . + * + * @example samples/V1/DataplexServiceClient/update_zone.php + * + * @param UpdateZoneRequest $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 updateZone(UpdateZoneRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('UpdateZone', $request, $callOptions)->wait(); + } + + /** + * Gets information about a location. + * + * The async variant is {@see DataplexServiceClient::getLocationAsync()} . + * + * @example samples/V1/DataplexServiceClient/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 DataplexServiceClient::listLocationsAsync()} . + * + * @example samples/V1/DataplexServiceClient/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); + } + + /** + * Gets the access control policy for a resource. Returns an empty policy + if the resource exists and does not have a policy set. + * + * The async variant is {@see DataplexServiceClient::getIamPolicyAsync()} . + * + * @example samples/V1/DataplexServiceClient/get_iam_policy.php + * + * @param GetIamPolicyRequest $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 Policy + * + * @throws ApiException Thrown if the API call fails. + */ + public function getIamPolicy(GetIamPolicyRequest $request, array $callOptions = []): Policy + { + return $this->startApiCall('GetIamPolicy', $request, $callOptions)->wait(); + } + + /** + * Sets the access control policy on the specified resource. Replaces + any existing policy. + + Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` + errors. + * + * The async variant is {@see DataplexServiceClient::setIamPolicyAsync()} . + * + * @example samples/V1/DataplexServiceClient/set_iam_policy.php + * + * @param SetIamPolicyRequest $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 Policy + * + * @throws ApiException Thrown if the API call fails. + */ + public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = []): Policy + { + return $this->startApiCall('SetIamPolicy', $request, $callOptions)->wait(); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + resource does not exist, this will return an empty set of + permissions, not a `NOT_FOUND` error. + + Note: This operation is designed to be used for building + permission-aware UIs and command-line tools, not for authorization + checking. This operation may "fail open" without warning. + * + * The async variant is {@see DataplexServiceClient::testIamPermissionsAsync()} . + * + * @example samples/V1/DataplexServiceClient/test_iam_permissions.php + * + * @param TestIamPermissionsRequest $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 TestIamPermissionsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse + { + return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/Dataplex/v1/src/V1/Client/MetadataServiceClient.php b/owl-bot-staging/Dataplex/v1/src/V1/Client/MetadataServiceClient.php new file mode 100644 index 000000000000..9193289bcd64 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/src/V1/Client/MetadataServiceClient.php @@ -0,0 +1,700 @@ + createEntityAsync(CreateEntityRequest $request, array $optionalArgs = []) + * @method PromiseInterface createPartitionAsync(CreatePartitionRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteEntityAsync(DeleteEntityRequest $request, array $optionalArgs = []) + * @method PromiseInterface deletePartitionAsync(DeletePartitionRequest $request, array $optionalArgs = []) + * @method PromiseInterface getEntityAsync(GetEntityRequest $request, array $optionalArgs = []) + * @method PromiseInterface getPartitionAsync(GetPartitionRequest $request, array $optionalArgs = []) + * @method PromiseInterface listEntitiesAsync(ListEntitiesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listPartitionsAsync(ListPartitionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateEntityAsync(UpdateEntityRequest $request, array $optionalArgs = []) + * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) + * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) + * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) + */ +final class MetadataServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.dataplex.v1.MetadataService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'dataplex.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'dataplex.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', + 'https://www.googleapis.com/auth/dataplex.read-write', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/metadata_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/metadata_service_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/metadata_service_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/metadata_service_rest_client_config.php', + ], + ], + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a entity + * resource. + * + * @param string $project + * @param string $location + * @param string $lake + * @param string $zone + * @param string $entity + * + * @return string The formatted entity resource. + */ + public static function entityName(string $project, string $location, string $lake, string $zone, string $entity): string + { + return self::getPathTemplate('entity')->render([ + 'project' => $project, + 'location' => $location, + 'lake' => $lake, + 'zone' => $zone, + 'entity' => $entity, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a partition + * resource. + * + * @param string $project + * @param string $location + * @param string $lake + * @param string $zone + * @param string $entity + * @param string $partition + * + * @return string The formatted partition resource. + */ + public static function partitionName(string $project, string $location, string $lake, string $zone, string $entity, string $partition): string + { + return self::getPathTemplate('partition')->render([ + 'project' => $project, + 'location' => $location, + 'lake' => $lake, + 'zone' => $zone, + 'entity' => $entity, + 'partition' => $partition, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a zone + * resource. + * + * @param string $project + * @param string $location + * @param string $lake + * @param string $zone + * + * @return string The formatted zone resource. + */ + public static function zoneName(string $project, string $location, string $lake, string $zone): string + { + return self::getPathTemplate('zone')->render([ + 'project' => $project, + 'location' => $location, + 'lake' => $lake, + 'zone' => $zone, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - entity: projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/entities/{entity} + * - partition: projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/entities/{entity}/partitions/{partition} + * - zone: projects/{project}/locations/{location}/lakes/{lake}/zones/{zone} + * + * 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 'dataplex.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\Dataplex\V1\MetadataServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new MetadataServiceClient(['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); + } + + /** + * Create a metadata entity. + * + * The async variant is {@see MetadataServiceClient::createEntityAsync()} . + * + * @example samples/V1/MetadataServiceClient/create_entity.php + * + * @param CreateEntityRequest $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 Entity + * + * @throws ApiException Thrown if the API call fails. + */ + public function createEntity(CreateEntityRequest $request, array $callOptions = []): Entity + { + return $this->startApiCall('CreateEntity', $request, $callOptions)->wait(); + } + + /** + * Create a metadata partition. + * + * The async variant is {@see MetadataServiceClient::createPartitionAsync()} . + * + * @example samples/V1/MetadataServiceClient/create_partition.php + * + * @param CreatePartitionRequest $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 Partition + * + * @throws ApiException Thrown if the API call fails. + */ + public function createPartition(CreatePartitionRequest $request, array $callOptions = []): Partition + { + return $this->startApiCall('CreatePartition', $request, $callOptions)->wait(); + } + + /** + * Delete a metadata entity. + * + * The async variant is {@see MetadataServiceClient::deleteEntityAsync()} . + * + * @example samples/V1/MetadataServiceClient/delete_entity.php + * + * @param DeleteEntityRequest $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 deleteEntity(DeleteEntityRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeleteEntity', $request, $callOptions)->wait(); + } + + /** + * Delete a metadata partition. + * + * The async variant is {@see MetadataServiceClient::deletePartitionAsync()} . + * + * @example samples/V1/MetadataServiceClient/delete_partition.php + * + * @param DeletePartitionRequest $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 deletePartition(DeletePartitionRequest $request, array $callOptions = []): void + { + $this->startApiCall('DeletePartition', $request, $callOptions)->wait(); + } + + /** + * Get a metadata entity. + * + * The async variant is {@see MetadataServiceClient::getEntityAsync()} . + * + * @example samples/V1/MetadataServiceClient/get_entity.php + * + * @param GetEntityRequest $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 Entity + * + * @throws ApiException Thrown if the API call fails. + */ + public function getEntity(GetEntityRequest $request, array $callOptions = []): Entity + { + return $this->startApiCall('GetEntity', $request, $callOptions)->wait(); + } + + /** + * Get a metadata partition of an entity. + * + * The async variant is {@see MetadataServiceClient::getPartitionAsync()} . + * + * @example samples/V1/MetadataServiceClient/get_partition.php + * + * @param GetPartitionRequest $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 Partition + * + * @throws ApiException Thrown if the API call fails. + */ + public function getPartition(GetPartitionRequest $request, array $callOptions = []): Partition + { + return $this->startApiCall('GetPartition', $request, $callOptions)->wait(); + } + + /** + * List metadata entities in a zone. + * + * The async variant is {@see MetadataServiceClient::listEntitiesAsync()} . + * + * @example samples/V1/MetadataServiceClient/list_entities.php + * + * @param ListEntitiesRequest $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 listEntities(ListEntitiesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListEntities', $request, $callOptions); + } + + /** + * List metadata partitions of an entity. + * + * The async variant is {@see MetadataServiceClient::listPartitionsAsync()} . + * + * @example samples/V1/MetadataServiceClient/list_partitions.php + * + * @param ListPartitionsRequest $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 listPartitions(ListPartitionsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListPartitions', $request, $callOptions); + } + + /** + * Update a metadata entity. Only supports full resource update. + * + * The async variant is {@see MetadataServiceClient::updateEntityAsync()} . + * + * @example samples/V1/MetadataServiceClient/update_entity.php + * + * @param UpdateEntityRequest $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 Entity + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateEntity(UpdateEntityRequest $request, array $callOptions = []): Entity + { + return $this->startApiCall('UpdateEntity', $request, $callOptions)->wait(); + } + + /** + * Gets information about a location. + * + * The async variant is {@see MetadataServiceClient::getLocationAsync()} . + * + * @example samples/V1/MetadataServiceClient/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 MetadataServiceClient::listLocationsAsync()} . + * + * @example samples/V1/MetadataServiceClient/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); + } + + /** + * Gets the access control policy for a resource. Returns an empty policy + if the resource exists and does not have a policy set. + * + * The async variant is {@see MetadataServiceClient::getIamPolicyAsync()} . + * + * @example samples/V1/MetadataServiceClient/get_iam_policy.php + * + * @param GetIamPolicyRequest $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 Policy + * + * @throws ApiException Thrown if the API call fails. + */ + public function getIamPolicy(GetIamPolicyRequest $request, array $callOptions = []): Policy + { + return $this->startApiCall('GetIamPolicy', $request, $callOptions)->wait(); + } + + /** + * Sets the access control policy on the specified resource. Replaces + any existing policy. + + Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` + errors. + * + * The async variant is {@see MetadataServiceClient::setIamPolicyAsync()} . + * + * @example samples/V1/MetadataServiceClient/set_iam_policy.php + * + * @param SetIamPolicyRequest $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 Policy + * + * @throws ApiException Thrown if the API call fails. + */ + public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = []): Policy + { + return $this->startApiCall('SetIamPolicy', $request, $callOptions)->wait(); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + resource does not exist, this will return an empty set of + permissions, not a `NOT_FOUND` error. + + Note: This operation is designed to be used for building + permission-aware UIs and command-line tools, not for authorization + checking. This operation may "fail open" without warning. + * + * The async variant is {@see MetadataServiceClient::testIamPermissionsAsync()} . + * + * @example samples/V1/MetadataServiceClient/test_iam_permissions.php + * + * @param TestIamPermissionsRequest $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 TestIamPermissionsResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse + { + return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/Dataplex/v1/src/V1/gapic_metadata.json b/owl-bot-staging/Dataplex/v1/src/V1/gapic_metadata.json new file mode 100644 index 000000000000..fb49daf13f33 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/src/V1/gapic_metadata.json @@ -0,0 +1,965 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", + "language": "php", + "protoPackage": "google.cloud.dataplex.v1", + "libraryPackage": "Google\\Cloud\\Dataplex\\V1", + "services": { + "DataplexService": { + "clients": { + "grpc": { + "libraryClient": "DataplexServiceGapicClient", + "rpcs": { + "CancelJob": { + "methods": [ + "cancelJob" + ] + }, + "CreateAsset": { + "methods": [ + "createAsset" + ] + }, + "CreateLake": { + "methods": [ + "createLake" + ] + }, + "CreateTask": { + "methods": [ + "createTask" + ] + }, + "CreateZone": { + "methods": [ + "createZone" + ] + }, + "DeleteAsset": { + "methods": [ + "deleteAsset" + ] + }, + "DeleteLake": { + "methods": [ + "deleteLake" + ] + }, + "DeleteTask": { + "methods": [ + "deleteTask" + ] + }, + "DeleteZone": { + "methods": [ + "deleteZone" + ] + }, + "GetAsset": { + "methods": [ + "getAsset" + ] + }, + "GetJob": { + "methods": [ + "getJob" + ] + }, + "GetLake": { + "methods": [ + "getLake" + ] + }, + "GetTask": { + "methods": [ + "getTask" + ] + }, + "GetZone": { + "methods": [ + "getZone" + ] + }, + "ListAssetActions": { + "methods": [ + "listAssetActions" + ] + }, + "ListAssets": { + "methods": [ + "listAssets" + ] + }, + "ListJobs": { + "methods": [ + "listJobs" + ] + }, + "ListLakeActions": { + "methods": [ + "listLakeActions" + ] + }, + "ListLakes": { + "methods": [ + "listLakes" + ] + }, + "ListTasks": { + "methods": [ + "listTasks" + ] + }, + "ListZoneActions": { + "methods": [ + "listZoneActions" + ] + }, + "ListZones": { + "methods": [ + "listZones" + ] + }, + "RunTask": { + "methods": [ + "runTask" + ] + }, + "UpdateAsset": { + "methods": [ + "updateAsset" + ] + }, + "UpdateLake": { + "methods": [ + "updateLake" + ] + }, + "UpdateTask": { + "methods": [ + "updateTask" + ] + }, + "UpdateZone": { + "methods": [ + "updateZone" + ] + }, + "GetLocation": { + "methods": [ + "getLocation" + ] + }, + "ListLocations": { + "methods": [ + "listLocations" + ] + }, + "GetIamPolicy": { + "methods": [ + "getIamPolicy" + ] + }, + "SetIamPolicy": { + "methods": [ + "setIamPolicy" + ] + }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + } + } + } + } + }, + "BusinessGlossaryService": { + "clients": { + "grpc": { + "libraryClient": "BusinessGlossaryServiceGapicClient", + "rpcs": { + "CreateGlossary": { + "methods": [ + "createGlossary" + ] + }, + "CreateGlossaryCategory": { + "methods": [ + "createGlossaryCategory" + ] + }, + "CreateGlossaryTerm": { + "methods": [ + "createGlossaryTerm" + ] + }, + "DeleteGlossary": { + "methods": [ + "deleteGlossary" + ] + }, + "DeleteGlossaryCategory": { + "methods": [ + "deleteGlossaryCategory" + ] + }, + "DeleteGlossaryTerm": { + "methods": [ + "deleteGlossaryTerm" + ] + }, + "GetGlossary": { + "methods": [ + "getGlossary" + ] + }, + "GetGlossaryCategory": { + "methods": [ + "getGlossaryCategory" + ] + }, + "GetGlossaryTerm": { + "methods": [ + "getGlossaryTerm" + ] + }, + "ListGlossaries": { + "methods": [ + "listGlossaries" + ] + }, + "ListGlossaryCategories": { + "methods": [ + "listGlossaryCategories" + ] + }, + "ListGlossaryTerms": { + "methods": [ + "listGlossaryTerms" + ] + }, + "UpdateGlossary": { + "methods": [ + "updateGlossary" + ] + }, + "UpdateGlossaryCategory": { + "methods": [ + "updateGlossaryCategory" + ] + }, + "UpdateGlossaryTerm": { + "methods": [ + "updateGlossaryTerm" + ] + }, + "GetLocation": { + "methods": [ + "getLocation" + ] + }, + "ListLocations": { + "methods": [ + "listLocations" + ] + }, + "GetIamPolicy": { + "methods": [ + "getIamPolicy" + ] + }, + "SetIamPolicy": { + "methods": [ + "setIamPolicy" + ] + }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + } + } + } + } + }, + "CatalogService": { + "clients": { + "grpc": { + "libraryClient": "CatalogServiceGapicClient", + "rpcs": { + "CancelMetadataJob": { + "methods": [ + "cancelMetadataJob" + ] + }, + "CreateAspectType": { + "methods": [ + "createAspectType" + ] + }, + "CreateEntry": { + "methods": [ + "createEntry" + ] + }, + "CreateEntryGroup": { + "methods": [ + "createEntryGroup" + ] + }, + "CreateEntryLink": { + "methods": [ + "createEntryLink" + ] + }, + "CreateEntryType": { + "methods": [ + "createEntryType" + ] + }, + "CreateMetadataFeed": { + "methods": [ + "createMetadataFeed" + ] + }, + "CreateMetadataJob": { + "methods": [ + "createMetadataJob" + ] + }, + "DeleteAspectType": { + "methods": [ + "deleteAspectType" + ] + }, + "DeleteEntry": { + "methods": [ + "deleteEntry" + ] + }, + "DeleteEntryGroup": { + "methods": [ + "deleteEntryGroup" + ] + }, + "DeleteEntryLink": { + "methods": [ + "deleteEntryLink" + ] + }, + "DeleteEntryType": { + "methods": [ + "deleteEntryType" + ] + }, + "DeleteMetadataFeed": { + "methods": [ + "deleteMetadataFeed" + ] + }, + "GetAspectType": { + "methods": [ + "getAspectType" + ] + }, + "GetEntry": { + "methods": [ + "getEntry" + ] + }, + "GetEntryGroup": { + "methods": [ + "getEntryGroup" + ] + }, + "GetEntryLink": { + "methods": [ + "getEntryLink" + ] + }, + "GetEntryType": { + "methods": [ + "getEntryType" + ] + }, + "GetMetadataFeed": { + "methods": [ + "getMetadataFeed" + ] + }, + "GetMetadataJob": { + "methods": [ + "getMetadataJob" + ] + }, + "ListAspectTypes": { + "methods": [ + "listAspectTypes" + ] + }, + "ListEntries": { + "methods": [ + "listEntries" + ] + }, + "ListEntryGroups": { + "methods": [ + "listEntryGroups" + ] + }, + "ListEntryTypes": { + "methods": [ + "listEntryTypes" + ] + }, + "ListMetadataFeeds": { + "methods": [ + "listMetadataFeeds" + ] + }, + "ListMetadataJobs": { + "methods": [ + "listMetadataJobs" + ] + }, + "LookupContext": { + "methods": [ + "lookupContext" + ] + }, + "LookupEntry": { + "methods": [ + "lookupEntry" + ] + }, + "LookupEntryLinks": { + "methods": [ + "lookupEntryLinks" + ] + }, + "ModifyEntry": { + "methods": [ + "modifyEntry" + ] + }, + "SearchEntries": { + "methods": [ + "searchEntries" + ] + }, + "UpdateAspectType": { + "methods": [ + "updateAspectType" + ] + }, + "UpdateEntry": { + "methods": [ + "updateEntry" + ] + }, + "UpdateEntryGroup": { + "methods": [ + "updateEntryGroup" + ] + }, + "UpdateEntryLink": { + "methods": [ + "updateEntryLink" + ] + }, + "UpdateEntryType": { + "methods": [ + "updateEntryType" + ] + }, + "UpdateMetadataFeed": { + "methods": [ + "updateMetadataFeed" + ] + }, + "GetLocation": { + "methods": [ + "getLocation" + ] + }, + "ListLocations": { + "methods": [ + "listLocations" + ] + }, + "GetIamPolicy": { + "methods": [ + "getIamPolicy" + ] + }, + "SetIamPolicy": { + "methods": [ + "setIamPolicy" + ] + }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + } + } + } + } + }, + "CmekService": { + "clients": { + "grpc": { + "libraryClient": "CmekServiceGapicClient", + "rpcs": { + "CreateEncryptionConfig": { + "methods": [ + "createEncryptionConfig" + ] + }, + "DeleteEncryptionConfig": { + "methods": [ + "deleteEncryptionConfig" + ] + }, + "GetEncryptionConfig": { + "methods": [ + "getEncryptionConfig" + ] + }, + "ListEncryptionConfigs": { + "methods": [ + "listEncryptionConfigs" + ] + }, + "UpdateEncryptionConfig": { + "methods": [ + "updateEncryptionConfig" + ] + }, + "GetLocation": { + "methods": [ + "getLocation" + ] + }, + "ListLocations": { + "methods": [ + "listLocations" + ] + }, + "GetIamPolicy": { + "methods": [ + "getIamPolicy" + ] + }, + "SetIamPolicy": { + "methods": [ + "setIamPolicy" + ] + }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + } + } + } + } + }, + "ContentService": { + "clients": { + "grpc": { + "libraryClient": "ContentServiceGapicClient", + "rpcs": { + "GetLocation": { + "methods": [ + "getLocation" + ] + }, + "ListLocations": { + "methods": [ + "listLocations" + ] + }, + "GetIamPolicy": { + "methods": [ + "getIamPolicy" + ] + }, + "SetIamPolicy": { + "methods": [ + "setIamPolicy" + ] + }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + } + } + } + } + }, + "DataProductService": { + "clients": { + "grpc": { + "libraryClient": "DataProductServiceGapicClient", + "rpcs": { + "CreateDataAsset": { + "methods": [ + "createDataAsset" + ] + }, + "CreateDataProduct": { + "methods": [ + "createDataProduct" + ] + }, + "DeleteDataAsset": { + "methods": [ + "deleteDataAsset" + ] + }, + "DeleteDataProduct": { + "methods": [ + "deleteDataProduct" + ] + }, + "GetDataAsset": { + "methods": [ + "getDataAsset" + ] + }, + "GetDataProduct": { + "methods": [ + "getDataProduct" + ] + }, + "ListDataAssets": { + "methods": [ + "listDataAssets" + ] + }, + "ListDataProducts": { + "methods": [ + "listDataProducts" + ] + }, + "RequestDataProductAccess": { + "methods": [ + "requestDataProductAccess" + ] + }, + "UpdateDataAsset": { + "methods": [ + "updateDataAsset" + ] + }, + "UpdateDataProduct": { + "methods": [ + "updateDataProduct" + ] + }, + "GetLocation": { + "methods": [ + "getLocation" + ] + }, + "ListLocations": { + "methods": [ + "listLocations" + ] + }, + "GetIamPolicy": { + "methods": [ + "getIamPolicy" + ] + }, + "SetIamPolicy": { + "methods": [ + "setIamPolicy" + ] + }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + } + } + } + } + }, + "DataTaxonomyService": { + "clients": { + "grpc": { + "libraryClient": "DataTaxonomyServiceGapicClient", + "rpcs": { + "CreateDataAttribute": { + "methods": [ + "createDataAttribute" + ] + }, + "CreateDataAttributeBinding": { + "methods": [ + "createDataAttributeBinding" + ] + }, + "CreateDataTaxonomy": { + "methods": [ + "createDataTaxonomy" + ] + }, + "DeleteDataAttribute": { + "methods": [ + "deleteDataAttribute" + ] + }, + "DeleteDataAttributeBinding": { + "methods": [ + "deleteDataAttributeBinding" + ] + }, + "DeleteDataTaxonomy": { + "methods": [ + "deleteDataTaxonomy" + ] + }, + "GetDataAttribute": { + "methods": [ + "getDataAttribute" + ] + }, + "GetDataAttributeBinding": { + "methods": [ + "getDataAttributeBinding" + ] + }, + "GetDataTaxonomy": { + "methods": [ + "getDataTaxonomy" + ] + }, + "ListDataAttributeBindings": { + "methods": [ + "listDataAttributeBindings" + ] + }, + "ListDataAttributes": { + "methods": [ + "listDataAttributes" + ] + }, + "ListDataTaxonomies": { + "methods": [ + "listDataTaxonomies" + ] + }, + "UpdateDataAttribute": { + "methods": [ + "updateDataAttribute" + ] + }, + "UpdateDataAttributeBinding": { + "methods": [ + "updateDataAttributeBinding" + ] + }, + "UpdateDataTaxonomy": { + "methods": [ + "updateDataTaxonomy" + ] + }, + "GetLocation": { + "methods": [ + "getLocation" + ] + }, + "ListLocations": { + "methods": [ + "listLocations" + ] + }, + "GetIamPolicy": { + "methods": [ + "getIamPolicy" + ] + }, + "SetIamPolicy": { + "methods": [ + "setIamPolicy" + ] + }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + } + } + } + } + }, + "DataScanService": { + "clients": { + "grpc": { + "libraryClient": "DataScanServiceGapicClient", + "rpcs": { + "CancelDataScanJob": { + "methods": [ + "cancelDataScanJob" + ] + }, + "CreateDataScan": { + "methods": [ + "createDataScan" + ] + }, + "DeleteDataScan": { + "methods": [ + "deleteDataScan" + ] + }, + "GenerateDataQualityRules": { + "methods": [ + "generateDataQualityRules" + ] + }, + "GetDataScan": { + "methods": [ + "getDataScan" + ] + }, + "GetDataScanJob": { + "methods": [ + "getDataScanJob" + ] + }, + "ListDataScanJobs": { + "methods": [ + "listDataScanJobs" + ] + }, + "ListDataScans": { + "methods": [ + "listDataScans" + ] + }, + "RunDataScan": { + "methods": [ + "runDataScan" + ] + }, + "UpdateDataScan": { + "methods": [ + "updateDataScan" + ] + }, + "GetLocation": { + "methods": [ + "getLocation" + ] + }, + "ListLocations": { + "methods": [ + "listLocations" + ] + }, + "GetIamPolicy": { + "methods": [ + "getIamPolicy" + ] + }, + "SetIamPolicy": { + "methods": [ + "setIamPolicy" + ] + }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + } + } + } + } + }, + "MetadataService": { + "clients": { + "grpc": { + "libraryClient": "MetadataServiceGapicClient", + "rpcs": { + "CreateEntity": { + "methods": [ + "createEntity" + ] + }, + "CreatePartition": { + "methods": [ + "createPartition" + ] + }, + "DeleteEntity": { + "methods": [ + "deleteEntity" + ] + }, + "DeletePartition": { + "methods": [ + "deletePartition" + ] + }, + "GetEntity": { + "methods": [ + "getEntity" + ] + }, + "GetPartition": { + "methods": [ + "getPartition" + ] + }, + "ListEntities": { + "methods": [ + "listEntities" + ] + }, + "ListPartitions": { + "methods": [ + "listPartitions" + ] + }, + "UpdateEntity": { + "methods": [ + "updateEntity" + ] + }, + "GetLocation": { + "methods": [ + "getLocation" + ] + }, + "ListLocations": { + "methods": [ + "listLocations" + ] + }, + "GetIamPolicy": { + "methods": [ + "getIamPolicy" + ] + }, + "SetIamPolicy": { + "methods": [ + "setIamPolicy" + ] + }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/owl-bot-staging/Dataplex/v1/src/V1/resources/business_glossary_service_client_config.json b/owl-bot-staging/Dataplex/v1/src/V1/resources/business_glossary_service_client_config.json new file mode 100644 index 000000000000..bef7535d2fcc --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/src/V1/resources/business_glossary_service_client_config.json @@ -0,0 +1,122 @@ +{ + "interfaces": { + "google.cloud.dataplex.v1.BusinessGlossaryService": { + "retry_codes": { + "no_retry_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 + } + }, + "methods": { + "CreateGlossary": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "CreateGlossaryCategory": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "CreateGlossaryTerm": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "DeleteGlossary": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "DeleteGlossaryCategory": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "DeleteGlossaryTerm": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetGlossary": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetGlossaryCategory": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetGlossaryTerm": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListGlossaries": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListGlossaryCategories": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListGlossaryTerms": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "UpdateGlossary": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "UpdateGlossaryCategory": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "UpdateGlossaryTerm": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_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" + }, + "GetIamPolicy": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "SetIamPolicy": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "TestIamPermissions": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/Dataplex/v1/src/V1/resources/business_glossary_service_descriptor_config.php b/owl-bot-staging/Dataplex/v1/src/V1/resources/business_glossary_service_descriptor_config.php new file mode 100644 index 000000000000..55e41b3abe86 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/src/V1/resources/business_glossary_service_descriptor_config.php @@ -0,0 +1,335 @@ + [ + 'google.cloud.dataplex.v1.BusinessGlossaryService' => [ + 'CreateGlossary' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Dataplex\V1\Glossary', + 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteGlossary' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'UpdateGlossary' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Dataplex\V1\Glossary', + 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'glossary.name', + 'fieldAccessors' => [ + 'getGlossary', + 'getName', + ], + ], + ], + ], + 'CreateGlossaryCategory' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\GlossaryCategory', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateGlossaryTerm' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\GlossaryTerm', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteGlossaryCategory' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteGlossaryTerm' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetGlossary' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\Glossary', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetGlossaryCategory' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\GlossaryCategory', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetGlossaryTerm' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\GlossaryTerm', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListGlossaries' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getGlossaries', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\ListGlossariesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListGlossaryCategories' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getCategories', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\ListGlossaryCategoriesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListGlossaryTerms' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getTerms', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\ListGlossaryTermsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateGlossaryCategory' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\GlossaryCategory', + 'headerParams' => [ + [ + 'keyName' => 'category.name', + 'fieldAccessors' => [ + 'getCategory', + 'getName', + ], + ], + ], + ], + 'UpdateGlossaryTerm' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\GlossaryTerm', + 'headerParams' => [ + [ + 'keyName' => 'term.name', + 'fieldAccessors' => [ + 'getTerm', + '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', + ], + 'GetIamPolicy' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\Policy', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'SetIamPolicy' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\Policy', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'TestIamPermissions' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\TestIamPermissionsResponse', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'templateMap' => [ + 'glossary' => 'projects/{project}/locations/{location}/glossaries/{glossary}', + 'glossaryCategory' => 'projects/{project}/locations/{location}/glossaries/{glossary}/categories/{glossary_category}', + 'glossaryTerm' => 'projects/{project}/locations/{location}/glossaries/{glossary}/terms/{glossary_term}', + 'location' => 'projects/{project}/locations/{location}', + ], + ], + ], +]; diff --git a/owl-bot-staging/Dataplex/v1/src/V1/resources/business_glossary_service_rest_client_config.php b/owl-bot-staging/Dataplex/v1/src/V1/resources/business_glossary_service_rest_client_config.php new file mode 100644 index 000000000000..01cc086c952d --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/src/V1/resources/business_glossary_service_rest_client_config.php @@ -0,0 +1,626 @@ + [ + 'google.cloud.dataplex.v1.BusinessGlossaryService' => [ + 'CreateGlossary' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/glossaries', + 'body' => 'glossary', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'glossary_id', + ], + ], + 'CreateGlossaryCategory' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/glossaries/*}/categories', + 'body' => 'category', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'category_id', + ], + ], + 'CreateGlossaryTerm' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/glossaries/*}/terms', + 'body' => 'term', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'term_id', + ], + ], + 'DeleteGlossary' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/glossaries/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteGlossaryCategory' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/glossaries/*/categories/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteGlossaryTerm' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/glossaries/*/terms/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetGlossary' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/glossaries/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetGlossaryCategory' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/glossaries/*/categories/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetGlossaryTerm' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/glossaries/*/terms/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListGlossaries' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/glossaries', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListGlossaryCategories' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/glossaries/*}/categories', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListGlossaryTerms' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/glossaries/*}/terms', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateGlossary' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{glossary.name=projects/*/locations/*/glossaries/*}', + 'body' => 'glossary', + 'placeholders' => [ + 'glossary.name' => [ + 'getters' => [ + 'getGlossary', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'UpdateGlossaryCategory' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{category.name=projects/*/locations/*/glossaries/*/categories/*}', + 'body' => 'category', + 'placeholders' => [ + 'category.name' => [ + 'getters' => [ + 'getCategory', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'UpdateGlossaryTerm' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{term.name=projects/*/locations/*/glossaries/*/terms/*}', + 'body' => 'term', + 'placeholders' => [ + 'term.name' => [ + 'getters' => [ + 'getTerm', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + ], + 'google.cloud.location.Locations' => [ + 'GetLocation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListLocations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*}/locations', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + 'google.iam.v1.IAMPolicy' => [ + 'GetIamPolicy' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*}:getIamPolicy', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryTypes/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/aspectTypes/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryGroups/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/governanceRules/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/changeRequests/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:getIamPolicy', + ], + ], + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + 'SetIamPolicy' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*}:setIamPolicy', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryTypes/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/aspectTypes/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryGroups/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/governanceRules/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/changeRequests/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:setIamPolicy', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + 'TestIamPermissions' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*}:testIamPermissions', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryTypes/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/aspectTypes/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryGroups/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/governanceRules/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/changeRequests/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:testIamPermissions', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}:cancel', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteOperation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + 'additionalBindings' => [ + [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*}/operations', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/Dataplex/v1/src/V1/resources/catalog_service_client_config.json b/owl-bot-staging/Dataplex/v1/src/V1/resources/catalog_service_client_config.json new file mode 100644 index 000000000000..4a3df73c84c8 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/src/V1/resources/catalog_service_client_config.json @@ -0,0 +1,296 @@ +{ + "interfaces": { + "google.cloud.dataplex.v1.CatalogService": { + "retry_codes": { + "no_retry_codes": [], + "retry_policy_7_codes": [ + "UNAVAILABLE", + "RESOURCE_EXHAUSTED" + ], + "retry_policy_8_codes": [ + "UNAVAILABLE", + "RESOURCE_EXHAUSTED" + ], + "no_retry_4_codes": [], + "retry_policy_9_codes": [ + "UNAVAILABLE", + "RESOURCE_EXHAUSTED" + ], + "no_retry_5_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_7_params": { + "initial_retry_delay_millis": 1000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 10000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 20000 + }, + "retry_policy_8_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_4_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 + }, + "retry_policy_9_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_5_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": { + "CancelMetadataJob": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "CreateAspectType": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_5_codes", + "retry_params_name": "no_retry_5_params" + }, + "CreateEntry": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_4_codes", + "retry_params_name": "no_retry_4_params" + }, + "CreateEntryGroup": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_5_codes", + "retry_params_name": "no_retry_5_params" + }, + "CreateEntryLink": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_4_codes", + "retry_params_name": "no_retry_4_params" + }, + "CreateEntryType": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_5_codes", + "retry_params_name": "no_retry_5_params" + }, + "CreateMetadataFeed": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "CreateMetadataJob": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "DeleteAspectType": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_5_codes", + "retry_params_name": "no_retry_5_params" + }, + "DeleteEntry": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_4_codes", + "retry_params_name": "no_retry_4_params" + }, + "DeleteEntryGroup": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_5_codes", + "retry_params_name": "no_retry_5_params" + }, + "DeleteEntryLink": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_4_codes", + "retry_params_name": "no_retry_4_params" + }, + "DeleteEntryType": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_5_codes", + "retry_params_name": "no_retry_5_params" + }, + "DeleteMetadataFeed": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetAspectType": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_9_codes", + "retry_params_name": "retry_policy_9_params" + }, + "GetEntry": { + "timeout_millis": 20000, + "retry_codes_name": "retry_policy_7_codes", + "retry_params_name": "retry_policy_7_params" + }, + "GetEntryGroup": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_9_codes", + "retry_params_name": "retry_policy_9_params" + }, + "GetEntryLink": { + "timeout_millis": 20000, + "retry_codes_name": "retry_policy_7_codes", + "retry_params_name": "retry_policy_7_params" + }, + "GetEntryType": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_9_codes", + "retry_params_name": "retry_policy_9_params" + }, + "GetMetadataFeed": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetMetadataJob": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListAspectTypes": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_9_codes", + "retry_params_name": "retry_policy_9_params" + }, + "ListEntries": { + "timeout_millis": 20000, + "retry_codes_name": "retry_policy_7_codes", + "retry_params_name": "retry_policy_7_params" + }, + "ListEntryGroups": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_9_codes", + "retry_params_name": "retry_policy_9_params" + }, + "ListEntryTypes": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_9_codes", + "retry_params_name": "retry_policy_9_params" + }, + "ListMetadataFeeds": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListMetadataJobs": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "LookupContext": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "LookupEntry": { + "timeout_millis": 20000, + "retry_codes_name": "retry_policy_7_codes", + "retry_params_name": "retry_policy_7_params" + }, + "LookupEntryLinks": { + "timeout_millis": 20000, + "retry_codes_name": "retry_policy_7_codes", + "retry_params_name": "retry_policy_7_params" + }, + "ModifyEntry": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "SearchEntries": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_9_codes", + "retry_params_name": "retry_policy_9_params" + }, + "UpdateAspectType": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_5_codes", + "retry_params_name": "no_retry_5_params" + }, + "UpdateEntry": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_8_codes", + "retry_params_name": "retry_policy_8_params" + }, + "UpdateEntryGroup": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_5_codes", + "retry_params_name": "no_retry_5_params" + }, + "UpdateEntryLink": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_8_codes", + "retry_params_name": "retry_policy_8_params" + }, + "UpdateEntryType": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_5_codes", + "retry_params_name": "no_retry_5_params" + }, + "UpdateMetadataFeed": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_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" + }, + "GetIamPolicy": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "SetIamPolicy": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "TestIamPermissions": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/Dataplex/v1/src/V1/resources/catalog_service_descriptor_config.php b/owl-bot-staging/Dataplex/v1/src/V1/resources/catalog_service_descriptor_config.php new file mode 100644 index 000000000000..83a8b76c20fd --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/src/V1/resources/catalog_service_descriptor_config.php @@ -0,0 +1,730 @@ + [ + 'google.cloud.dataplex.v1.CatalogService' => [ + 'CreateAspectType' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Dataplex\V1\AspectType', + 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateEntryGroup' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Dataplex\V1\EntryGroup', + 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateEntryType' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Dataplex\V1\EntryType', + 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateMetadataFeed' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Dataplex\V1\MetadataFeed', + 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateMetadataJob' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Dataplex\V1\MetadataJob', + 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteAspectType' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteEntryGroup' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteEntryType' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteMetadataFeed' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'UpdateAspectType' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Dataplex\V1\AspectType', + 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'aspect_type.name', + 'fieldAccessors' => [ + 'getAspectType', + 'getName', + ], + ], + ], + ], + 'UpdateEntryGroup' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Dataplex\V1\EntryGroup', + 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'entry_group.name', + 'fieldAccessors' => [ + 'getEntryGroup', + 'getName', + ], + ], + ], + ], + 'UpdateEntryType' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Dataplex\V1\EntryType', + 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'entry_type.name', + 'fieldAccessors' => [ + 'getEntryType', + 'getName', + ], + ], + ], + ], + 'UpdateMetadataFeed' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Dataplex\V1\MetadataFeed', + 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'metadata_feed.name', + 'fieldAccessors' => [ + 'getMetadataFeed', + 'getName', + ], + ], + ], + ], + 'CancelMetadataJob' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'CreateEntry' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\Entry', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateEntryLink' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\EntryLink', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteEntry' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\Entry', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteEntryLink' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\EntryLink', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetAspectType' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\AspectType', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetEntry' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\Entry', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetEntryGroup' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\EntryGroup', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetEntryLink' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\EntryLink', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetEntryType' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\EntryType', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetMetadataFeed' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\MetadataFeed', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetMetadataJob' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\MetadataJob', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListAspectTypes' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getAspectTypes', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\ListAspectTypesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListEntries' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getEntries', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\ListEntriesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListEntryGroups' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getEntryGroups', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\ListEntryGroupsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListEntryTypes' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getEntryTypes', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\ListEntryTypesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListMetadataFeeds' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getMetadataFeeds', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\ListMetadataFeedsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListMetadataJobs' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getMetadataJobs', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\ListMetadataJobsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'LookupContext' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\LookupContextResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'LookupEntry' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\Entry', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'LookupEntryLinks' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getEntryLinks', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\LookupEntryLinksResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ModifyEntry' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\Entry', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'SearchEntries' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getResults', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\SearchEntriesResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'UpdateEntry' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\Entry', + 'headerParams' => [ + [ + 'keyName' => 'entry.name', + 'fieldAccessors' => [ + 'getEntry', + 'getName', + ], + ], + ], + ], + 'UpdateEntryLink' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\EntryLink', + 'headerParams' => [ + [ + 'keyName' => 'entry_link.name', + 'fieldAccessors' => [ + 'getEntryLink', + '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', + ], + 'GetIamPolicy' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\Policy', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'SetIamPolicy' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\Policy', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'TestIamPermissions' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\TestIamPermissionsResponse', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'templateMap' => [ + 'aspectType' => 'projects/{project}/locations/{location}/aspectTypes/{aspect_type}', + 'entry' => 'projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}', + 'entryGroup' => 'projects/{project}/locations/{location}/entryGroups/{entry_group}', + 'entryLink' => 'projects/{project}/locations/{location}/entryGroups/{entry_group}/entryLinks/{entry_link}', + 'entryType' => 'projects/{project}/locations/{location}/entryTypes/{entry_type}', + 'glossary' => 'projects/{project}/locations/{location}/glossaries/{glossary}', + 'location' => 'projects/{project}/locations/{location}', + 'metadataFeed' => 'projects/{project}/locations/{location}/metadataFeeds/{metadata_feed}', + 'metadataJob' => 'projects/{project}/locations/{location}/metadataJobs/{metadataJob}', + 'project' => 'projects/{project}', + ], + ], + ], +]; diff --git a/owl-bot-staging/Dataplex/v1/src/V1/resources/catalog_service_rest_client_config.php b/owl-bot-staging/Dataplex/v1/src/V1/resources/catalog_service_rest_client_config.php new file mode 100644 index 000000000000..114990a7c326 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/src/V1/resources/catalog_service_rest_client_config.php @@ -0,0 +1,898 @@ + [ + 'google.cloud.dataplex.v1.CatalogService' => [ + 'CancelMetadataJob' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/metadataJobs/*}:cancel', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'CreateAspectType' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/aspectTypes', + 'body' => 'aspect_type', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'aspect_type_id', + ], + ], + 'CreateEntry' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/entryGroups/*}/entries', + 'body' => 'entry', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'entry_id', + ], + ], + 'CreateEntryGroup' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/entryGroups', + 'body' => 'entry_group', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'entry_group_id', + ], + ], + 'CreateEntryLink' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/entryGroups/*}/entryLinks', + 'body' => 'entry_link', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'entry_link_id', + ], + ], + 'CreateEntryType' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/entryTypes', + 'body' => 'entry_type', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'entry_type_id', + ], + ], + 'CreateMetadataFeed' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/metadataFeeds', + 'body' => 'metadata_feed', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateMetadataJob' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/metadataJobs', + 'body' => 'metadata_job', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteAspectType' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/aspectTypes/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteEntry' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/entryGroups/*/entries/**}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteEntryGroup' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/entryGroups/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteEntryLink' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/entryGroups/*/entryLinks/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteEntryType' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/entryTypes/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteMetadataFeed' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/metadataFeeds/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetAspectType' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/aspectTypes/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetEntry' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/entryGroups/*/entries/**}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetEntryGroup' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/entryGroups/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetEntryLink' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/entryGroups/*/entryLinks/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetEntryType' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/entryTypes/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetMetadataFeed' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/metadataFeeds/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetMetadataJob' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/metadataJobs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListAspectTypes' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/aspectTypes', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListEntries' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/entryGroups/*}/entries', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListEntryGroups' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/entryGroups', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListEntryTypes' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/entryTypes', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListMetadataFeeds' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/metadataFeeds', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListMetadataJobs' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/metadataJobs', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'LookupContext' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}:lookupContext', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'LookupEntry' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}:lookupEntry', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'LookupEntryLinks' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}:lookupEntryLinks', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ModifyEntry' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}:modifyEntry', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'SearchEntries' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}:searchEntries', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'UpdateAspectType' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{aspect_type.name=projects/*/locations/*/aspectTypes/*}', + 'body' => 'aspect_type', + 'placeholders' => [ + 'aspect_type.name' => [ + 'getters' => [ + 'getAspectType', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'UpdateEntry' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{entry.name=projects/*/locations/*/entryGroups/*/entries/**}', + 'body' => 'entry', + 'placeholders' => [ + 'entry.name' => [ + 'getters' => [ + 'getEntry', + 'getName', + ], + ], + ], + ], + 'UpdateEntryGroup' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{entry_group.name=projects/*/locations/*/entryGroups/*}', + 'body' => 'entry_group', + 'placeholders' => [ + 'entry_group.name' => [ + 'getters' => [ + 'getEntryGroup', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'UpdateEntryLink' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{entry_link.name=projects/*/locations/*/entryGroups/*/entryLinks/**}', + 'body' => 'entry_link', + 'placeholders' => [ + 'entry_link.name' => [ + 'getters' => [ + 'getEntryLink', + 'getName', + ], + ], + ], + ], + 'UpdateEntryType' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{entry_type.name=projects/*/locations/*/entryTypes/*}', + 'body' => 'entry_type', + 'placeholders' => [ + 'entry_type.name' => [ + 'getters' => [ + 'getEntryType', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'UpdateMetadataFeed' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{metadata_feed.name=projects/*/locations/*/metadataFeeds/*}', + 'body' => 'metadata_feed', + 'placeholders' => [ + 'metadata_feed.name' => [ + 'getters' => [ + 'getMetadataFeed', + 'getName', + ], + ], + ], + ], + ], + 'google.cloud.location.Locations' => [ + 'GetLocation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListLocations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*}/locations', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + 'google.iam.v1.IAMPolicy' => [ + 'GetIamPolicy' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*}:getIamPolicy', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryTypes/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/aspectTypes/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryGroups/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/governanceRules/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/changeRequests/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:getIamPolicy', + ], + ], + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + 'SetIamPolicy' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*}:setIamPolicy', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryTypes/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/aspectTypes/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryGroups/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/governanceRules/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/changeRequests/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:setIamPolicy', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + 'TestIamPermissions' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*}:testIamPermissions', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryTypes/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/aspectTypes/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryGroups/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/governanceRules/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/changeRequests/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:testIamPermissions', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}:cancel', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteOperation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + 'additionalBindings' => [ + [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*}/operations', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/Dataplex/v1/src/V1/resources/cmek_service_client_config.json b/owl-bot-staging/Dataplex/v1/src/V1/resources/cmek_service_client_config.json new file mode 100644 index 000000000000..356dda0ac241 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/src/V1/resources/cmek_service_client_config.json @@ -0,0 +1,72 @@ +{ + "interfaces": { + "google.cloud.dataplex.v1.CmekService": { + "retry_codes": { + "no_retry_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 + } + }, + "methods": { + "CreateEncryptionConfig": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "DeleteEncryptionConfig": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetEncryptionConfig": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListEncryptionConfigs": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "UpdateEncryptionConfig": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_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" + }, + "GetIamPolicy": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "SetIamPolicy": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "TestIamPermissions": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/Dataplex/v1/src/V1/resources/cmek_service_descriptor_config.php b/owl-bot-staging/Dataplex/v1/src/V1/resources/cmek_service_descriptor_config.php new file mode 100644 index 000000000000..b3fbd02d5ae1 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/src/V1/resources/cmek_service_descriptor_config.php @@ -0,0 +1,195 @@ + [ + 'google.cloud.dataplex.v1.CmekService' => [ + 'CreateEncryptionConfig' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Dataplex\V1\EncryptionConfig', + 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteEncryptionConfig' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'UpdateEncryptionConfig' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Dataplex\V1\EncryptionConfig', + 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'encryption_config.name', + 'fieldAccessors' => [ + 'getEncryptionConfig', + 'getName', + ], + ], + ], + ], + 'GetEncryptionConfig' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\EncryptionConfig', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListEncryptionConfigs' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getEncryptionConfigs', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\ListEncryptionConfigsResponse', + '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', + ], + 'GetIamPolicy' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\Policy', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'SetIamPolicy' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\Policy', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'TestIamPermissions' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\TestIamPermissionsResponse', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'templateMap' => [ + 'encryptionConfig' => 'organizations/{organization}/locations/{location}/encryptionConfigs/{encryption_config}', + 'organizationLocation' => 'organizations/{organization}/locations/{location}', + ], + ], + ], +]; diff --git a/owl-bot-staging/Dataplex/v1/src/V1/resources/cmek_service_rest_client_config.php b/owl-bot-staging/Dataplex/v1/src/V1/resources/cmek_service_rest_client_config.php new file mode 100644 index 000000000000..764271dcfcb6 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/src/V1/resources/cmek_service_rest_client_config.php @@ -0,0 +1,495 @@ + [ + 'google.cloud.dataplex.v1.CmekService' => [ + 'CreateEncryptionConfig' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=organizations/*/locations/*}/encryptionConfigs', + 'body' => 'encryption_config', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'encryption_config_id', + ], + ], + 'DeleteEncryptionConfig' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*/encryptionConfigs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetEncryptionConfig' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*/encryptionConfigs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListEncryptionConfigs' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=organizations/*/locations/*}/encryptionConfigs', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateEncryptionConfig' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{encryption_config.name=organizations/*/locations/*/encryptionConfigs/*}', + 'body' => 'encryption_config', + 'placeholders' => [ + 'encryption_config.name' => [ + 'getters' => [ + 'getEncryptionConfig', + 'getName', + ], + ], + ], + ], + ], + 'google.cloud.location.Locations' => [ + 'GetLocation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListLocations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*}/locations', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + 'google.iam.v1.IAMPolicy' => [ + 'GetIamPolicy' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*}:getIamPolicy', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryTypes/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/aspectTypes/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryGroups/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/governanceRules/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/changeRequests/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:getIamPolicy', + ], + ], + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + 'SetIamPolicy' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*}:setIamPolicy', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryTypes/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/aspectTypes/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryGroups/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/governanceRules/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/changeRequests/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:setIamPolicy', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + 'TestIamPermissions' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*}:testIamPermissions', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryTypes/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/aspectTypes/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryGroups/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/governanceRules/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/changeRequests/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:testIamPermissions', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}:cancel', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteOperation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + 'additionalBindings' => [ + [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*}/operations', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/Dataplex/v1/src/V1/resources/content_service_client_config.json b/owl-bot-staging/Dataplex/v1/src/V1/resources/content_service_client_config.json new file mode 100644 index 000000000000..a718dd2ca181 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/src/V1/resources/content_service_client_config.json @@ -0,0 +1,81 @@ +{ + "interfaces": { + "google.cloud.dataplex.v1.ContentService": { + "retry_codes": { + "no_retry_codes": [], + "retry_policy_5_codes": [ + "UNAVAILABLE" + ], + "retry_policy_6_codes": [ + "UNAVAILABLE" + ], + "no_retry_3_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_5_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 + }, + "retry_policy_6_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_3_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": { + "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" + }, + "GetIamPolicy": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_5_codes", + "retry_params_name": "retry_policy_5_params" + }, + "SetIamPolicy": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_3_codes", + "retry_params_name": "no_retry_3_params" + }, + "TestIamPermissions": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_5_codes", + "retry_params_name": "retry_policy_5_params" + } + } + } + } +} diff --git a/owl-bot-staging/Dataplex/v1/src/V1/resources/content_service_descriptor_config.php b/owl-bot-staging/Dataplex/v1/src/V1/resources/content_service_descriptor_config.php new file mode 100644 index 000000000000..8b7cd038c507 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/src/V1/resources/content_service_descriptor_config.php @@ -0,0 +1,101 @@ + [ + 'google.cloud.dataplex.v1.ContentService' => [ + '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', + ], + 'GetIamPolicy' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\Policy', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'SetIamPolicy' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\Policy', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'TestIamPermissions' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\TestIamPermissionsResponse', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + ], + ], +]; diff --git a/owl-bot-staging/Dataplex/v1/src/V1/resources/content_service_rest_client_config.php b/owl-bot-staging/Dataplex/v1/src/V1/resources/content_service_rest_client_config.php new file mode 100644 index 000000000000..e4f60245eae8 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/src/V1/resources/content_service_rest_client_config.php @@ -0,0 +1,432 @@ + [ + 'google.cloud.location.Locations' => [ + 'GetLocation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListLocations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*}/locations', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + 'google.iam.v1.IAMPolicy' => [ + 'GetIamPolicy' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*}:getIamPolicy', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryTypes/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/aspectTypes/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryGroups/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/governanceRules/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/changeRequests/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:getIamPolicy', + ], + ], + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + 'SetIamPolicy' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*}:setIamPolicy', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryTypes/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/aspectTypes/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryGroups/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/governanceRules/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/changeRequests/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:setIamPolicy', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + 'TestIamPermissions' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*}:testIamPermissions', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryTypes/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/aspectTypes/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryGroups/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/governanceRules/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/changeRequests/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:testIamPermissions', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}:cancel', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteOperation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + 'additionalBindings' => [ + [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*}/operations', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/Dataplex/v1/src/V1/resources/data_product_service_client_config.json b/owl-bot-staging/Dataplex/v1/src/V1/resources/data_product_service_client_config.json new file mode 100644 index 000000000000..f160b2345b6c --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/src/V1/resources/data_product_service_client_config.json @@ -0,0 +1,102 @@ +{ + "interfaces": { + "google.cloud.dataplex.v1.DataProductService": { + "retry_codes": { + "no_retry_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 + } + }, + "methods": { + "CreateDataAsset": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "CreateDataProduct": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "DeleteDataAsset": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "DeleteDataProduct": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetDataAsset": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetDataProduct": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListDataAssets": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListDataProducts": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "RequestDataProductAccess": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "UpdateDataAsset": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "UpdateDataProduct": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_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" + }, + "GetIamPolicy": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "SetIamPolicy": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "TestIamPermissions": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/Dataplex/v1/src/V1/resources/data_product_service_descriptor_config.php b/owl-bot-staging/Dataplex/v1/src/V1/resources/data_product_service_descriptor_config.php new file mode 100644 index 000000000000..5c49c5557a20 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/src/V1/resources/data_product_service_descriptor_config.php @@ -0,0 +1,305 @@ + [ + 'google.cloud.dataplex.v1.DataProductService' => [ + 'CreateDataAsset' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Dataplex\V1\DataAsset', + 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateDataProduct' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Dataplex\V1\DataProduct', + 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteDataAsset' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteDataProduct' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'UpdateDataAsset' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Dataplex\V1\DataAsset', + 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'data_asset.name', + 'fieldAccessors' => [ + 'getDataAsset', + 'getName', + ], + ], + ], + ], + 'UpdateDataProduct' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Dataplex\V1\DataProduct', + 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'data_product.name', + 'fieldAccessors' => [ + 'getDataProduct', + 'getName', + ], + ], + ], + ], + 'GetDataAsset' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\DataAsset', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetDataProduct' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\DataProduct', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListDataAssets' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getDataAssets', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\ListDataAssetsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListDataProducts' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getDataProducts', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\ListDataProductsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'RequestDataProductAccess' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\RequestDataProductAccessResponse', + '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', + ], + 'GetIamPolicy' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\Policy', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'SetIamPolicy' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\Policy', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'TestIamPermissions' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\TestIamPermissionsResponse', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'templateMap' => [ + 'changeRequest' => 'projects/{project}/locations/{location}/changeRequests/{change_request}', + 'dataAsset' => 'projects/{project}/locations/{location}/dataProducts/{data_product}/dataAssets/{data_asset}', + 'dataProduct' => 'projects/{project}/locations/{location}/dataProducts/{data_product}', + 'entry' => 'projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}', + 'entryGroup' => 'projects/{project}/locations/{location}/entryGroups/{entry_group}', + 'entryLink' => 'projects/{project}/locations/{location}/entryGroups/{entry_group}/entryLinks/{entry_link}', + 'glossary' => 'projects/{project}/locations/{location}/glossaries/{glossary}', + 'glossaryCategory' => 'projects/{project}/locations/{location}/glossaries/{glossary}/categories/{glossary_category}', + 'glossaryTerm' => 'projects/{project}/locations/{location}/glossaries/{glossary}/terms/{glossary_term}', + 'location' => 'projects/{project}/locations/{location}', + ], + ], + ], +]; diff --git a/owl-bot-staging/Dataplex/v1/src/V1/resources/data_product_service_rest_client_config.php b/owl-bot-staging/Dataplex/v1/src/V1/resources/data_product_service_rest_client_config.php new file mode 100644 index 000000000000..ddc88c1c8330 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/src/V1/resources/data_product_service_rest_client_config.php @@ -0,0 +1,562 @@ + [ + 'google.cloud.dataplex.v1.DataProductService' => [ + 'CreateDataAsset' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/dataProducts/*}/dataAssets', + 'body' => 'data_asset', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateDataProduct' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/dataProducts', + 'body' => 'data_product', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteDataAsset' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataProducts/*/dataAssets/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteDataProduct' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataProducts/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetDataAsset' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataProducts/*/dataAssets/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetDataProduct' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataProducts/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListDataAssets' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/dataProducts/*}/dataAssets', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListDataProducts' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/dataProducts', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'RequestDataProductAccess' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/dataProducts/*}:requestAccess', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateDataAsset' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{data_asset.name=projects/*/locations/*/dataProducts/*/dataAssets/*}', + 'body' => 'data_asset', + 'placeholders' => [ + 'data_asset.name' => [ + 'getters' => [ + 'getDataAsset', + 'getName', + ], + ], + ], + ], + 'UpdateDataProduct' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{data_product.name=projects/*/locations/*/dataProducts/*}', + 'body' => 'data_product', + 'placeholders' => [ + 'data_product.name' => [ + 'getters' => [ + 'getDataProduct', + 'getName', + ], + ], + ], + ], + ], + 'google.cloud.location.Locations' => [ + 'GetLocation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListLocations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*}/locations', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + 'google.iam.v1.IAMPolicy' => [ + 'GetIamPolicy' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*}:getIamPolicy', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryTypes/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/aspectTypes/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryGroups/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/governanceRules/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/changeRequests/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:getIamPolicy', + ], + ], + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + 'SetIamPolicy' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*}:setIamPolicy', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryTypes/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/aspectTypes/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryGroups/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/governanceRules/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/changeRequests/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:setIamPolicy', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + 'TestIamPermissions' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*}:testIamPermissions', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryTypes/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/aspectTypes/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryGroups/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/governanceRules/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/changeRequests/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:testIamPermissions', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}:cancel', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteOperation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + 'additionalBindings' => [ + [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*}/operations', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/Dataplex/v1/src/V1/resources/data_scan_service_client_config.json b/owl-bot-staging/Dataplex/v1/src/V1/resources/data_scan_service_client_config.json new file mode 100644 index 000000000000..405f258d4ce6 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/src/V1/resources/data_scan_service_client_config.json @@ -0,0 +1,97 @@ +{ + "interfaces": { + "google.cloud.dataplex.v1.DataScanService": { + "retry_codes": { + "no_retry_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 + } + }, + "methods": { + "CancelDataScanJob": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "CreateDataScan": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "DeleteDataScan": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GenerateDataQualityRules": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetDataScan": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetDataScanJob": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListDataScanJobs": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListDataScans": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "RunDataScan": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "UpdateDataScan": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_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" + }, + "GetIamPolicy": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "SetIamPolicy": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "TestIamPermissions": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/Dataplex/v1/src/V1/resources/data_scan_service_descriptor_config.php b/owl-bot-staging/Dataplex/v1/src/V1/resources/data_scan_service_descriptor_config.php new file mode 100644 index 000000000000..f7da9e17bd9b --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/src/V1/resources/data_scan_service_descriptor_config.php @@ -0,0 +1,269 @@ + [ + 'google.cloud.dataplex.v1.DataScanService' => [ + 'CreateDataScan' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Dataplex\V1\DataScan', + 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteDataScan' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'UpdateDataScan' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Dataplex\V1\DataScan', + 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'data_scan.name', + 'fieldAccessors' => [ + 'getDataScan', + 'getName', + ], + ], + ], + ], + 'CancelDataScanJob' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\CancelDataScanJobResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GenerateDataQualityRules' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\GenerateDataQualityRulesResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetDataScan' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\DataScan', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetDataScanJob' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\DataScanJob', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListDataScanJobs' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getDataScanJobs', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\ListDataScanJobsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListDataScans' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getDataScans', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\ListDataScansResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'RunDataScan' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\RunDataScanResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + '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', + ], + 'GetIamPolicy' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\Policy', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'SetIamPolicy' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\Policy', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'TestIamPermissions' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\TestIamPermissionsResponse', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'templateMap' => [ + 'connection' => 'projects/{project}/locations/{location}/connections/{connection}', + 'dataScan' => 'projects/{project}/locations/{location}/dataScans/{dataScan}', + 'dataScanJob' => 'projects/{project}/locations/{location}/dataScans/{dataScan}/jobs/{job}', + 'dataset' => 'projects/{project}/datasets/{dataset}', + 'entity' => 'projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/entities/{entity}', + 'entry' => 'projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}', + 'location' => 'projects/{project}/locations/{location}', + 'project' => 'projects/{project}', + ], + ], + ], +]; diff --git a/owl-bot-staging/Dataplex/v1/src/V1/resources/data_scan_service_rest_client_config.php b/owl-bot-staging/Dataplex/v1/src/V1/resources/data_scan_service_rest_client_config.php new file mode 100644 index 000000000000..891c784efb23 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/src/V1/resources/data_scan_service_rest_client_config.php @@ -0,0 +1,557 @@ + [ + 'google.cloud.dataplex.v1.DataScanService' => [ + 'CancelDataScanJob' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataScans/*/jobs/*}:cancel', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'CreateDataScan' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/dataScans', + 'body' => 'data_scan', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteDataScan' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataScans/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GenerateDataQualityRules' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataScans/*}:generateDataQualityRules', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataScans/*/jobs/*}:generateDataQualityRules', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetDataScan' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataScans/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetDataScanJob' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataScans/*/jobs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListDataScanJobs' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/dataScans/*}/jobs', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListDataScans' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/dataScans', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'RunDataScan' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataScans/*}:run', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'UpdateDataScan' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{data_scan.name=projects/*/locations/*/dataScans/*}', + 'body' => 'data_scan', + 'placeholders' => [ + 'data_scan.name' => [ + 'getters' => [ + 'getDataScan', + 'getName', + ], + ], + ], + ], + ], + 'google.cloud.location.Locations' => [ + 'GetLocation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListLocations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*}/locations', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + 'google.iam.v1.IAMPolicy' => [ + 'GetIamPolicy' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*}:getIamPolicy', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryTypes/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/aspectTypes/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryGroups/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/governanceRules/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/changeRequests/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:getIamPolicy', + ], + ], + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + 'SetIamPolicy' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*}:setIamPolicy', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryTypes/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/aspectTypes/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryGroups/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/governanceRules/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/changeRequests/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:setIamPolicy', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + 'TestIamPermissions' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*}:testIamPermissions', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryTypes/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/aspectTypes/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryGroups/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/governanceRules/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/changeRequests/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:testIamPermissions', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}:cancel', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteOperation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + 'additionalBindings' => [ + [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*}/operations', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/Dataplex/v1/src/V1/resources/data_taxonomy_service_client_config.json b/owl-bot-staging/Dataplex/v1/src/V1/resources/data_taxonomy_service_client_config.json new file mode 100644 index 000000000000..b79fba39f752 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/src/V1/resources/data_taxonomy_service_client_config.json @@ -0,0 +1,122 @@ +{ + "interfaces": { + "google.cloud.dataplex.v1.DataTaxonomyService": { + "retry_codes": { + "no_retry_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 + } + }, + "methods": { + "CreateDataAttribute": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "CreateDataAttributeBinding": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "CreateDataTaxonomy": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "DeleteDataAttribute": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "DeleteDataAttributeBinding": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "DeleteDataTaxonomy": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetDataAttribute": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetDataAttributeBinding": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetDataTaxonomy": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListDataAttributeBindings": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListDataAttributes": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListDataTaxonomies": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "UpdateDataAttribute": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "UpdateDataAttributeBinding": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "UpdateDataTaxonomy": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_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" + }, + "GetIamPolicy": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "SetIamPolicy": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "TestIamPermissions": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/Dataplex/v1/src/V1/resources/data_taxonomy_service_descriptor_config.php b/owl-bot-staging/Dataplex/v1/src/V1/resources/data_taxonomy_service_descriptor_config.php new file mode 100644 index 000000000000..380fa93f3761 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/src/V1/resources/data_taxonomy_service_descriptor_config.php @@ -0,0 +1,377 @@ + [ + 'google.cloud.dataplex.v1.DataTaxonomyService' => [ + 'CreateDataAttribute' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Dataplex\V1\DataAttribute', + 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateDataAttributeBinding' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Dataplex\V1\DataAttributeBinding', + 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateDataTaxonomy' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Dataplex\V1\DataTaxonomy', + 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteDataAttribute' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteDataAttributeBinding' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteDataTaxonomy' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'UpdateDataAttribute' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Dataplex\V1\DataAttribute', + 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'data_attribute.name', + 'fieldAccessors' => [ + 'getDataAttribute', + 'getName', + ], + ], + ], + ], + 'UpdateDataAttributeBinding' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Dataplex\V1\DataAttributeBinding', + 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'data_attribute_binding.name', + 'fieldAccessors' => [ + 'getDataAttributeBinding', + 'getName', + ], + ], + ], + ], + 'UpdateDataTaxonomy' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Dataplex\V1\DataTaxonomy', + 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'data_taxonomy.name', + 'fieldAccessors' => [ + 'getDataTaxonomy', + 'getName', + ], + ], + ], + ], + 'GetDataAttribute' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\DataAttribute', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetDataAttributeBinding' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\DataAttributeBinding', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetDataTaxonomy' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\DataTaxonomy', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListDataAttributeBindings' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getDataAttributeBindings', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\ListDataAttributeBindingsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListDataAttributes' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getDataAttributes', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\ListDataAttributesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListDataTaxonomies' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getDataTaxonomies', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\ListDataTaxonomiesResponse', + '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', + ], + 'GetIamPolicy' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\Policy', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'SetIamPolicy' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\Policy', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'TestIamPermissions' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\TestIamPermissionsResponse', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'templateMap' => [ + 'dataAttribute' => 'projects/{project}/locations/{location}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id}', + 'dataAttributeBinding' => 'projects/{project}/locations/{location}/dataAttributeBindings/{data_attribute_binding_id}', + 'dataTaxonomy' => 'projects/{project}/locations/{location}/dataTaxonomies/{data_taxonomy_id}', + 'location' => 'projects/{project}/locations/{location}', + ], + ], + ], +]; diff --git a/owl-bot-staging/Dataplex/v1/src/V1/resources/data_taxonomy_service_rest_client_config.php b/owl-bot-staging/Dataplex/v1/src/V1/resources/data_taxonomy_service_rest_client_config.php new file mode 100644 index 000000000000..d9c3a31097fc --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/src/V1/resources/data_taxonomy_service_rest_client_config.php @@ -0,0 +1,629 @@ + [ + 'google.cloud.dataplex.v1.DataTaxonomyService' => [ + 'CreateDataAttribute' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/dataTaxonomies/*}/attributes', + 'body' => 'data_attribute', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'data_attribute_id', + ], + ], + 'CreateDataAttributeBinding' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/dataAttributeBindings', + 'body' => 'data_attribute_binding', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'data_attribute_binding_id', + ], + ], + 'CreateDataTaxonomy' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/dataTaxonomies', + 'body' => 'data_taxonomy', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'data_taxonomy_id', + ], + ], + 'DeleteDataAttribute' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataTaxonomies/*/attributes/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteDataAttributeBinding' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataAttributeBindings/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + 'queryParams' => [ + 'etag', + ], + ], + 'DeleteDataTaxonomy' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataTaxonomies/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetDataAttribute' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataTaxonomies/*/attributes/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetDataAttributeBinding' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataAttributeBindings/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetDataTaxonomy' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataTaxonomies/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListDataAttributeBindings' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/dataAttributeBindings', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListDataAttributes' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/dataTaxonomies/*}/attributes', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListDataTaxonomies' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/dataTaxonomies', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateDataAttribute' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{data_attribute.name=projects/*/locations/*/dataTaxonomies/*/attributes/*}', + 'body' => 'data_attribute', + 'placeholders' => [ + 'data_attribute.name' => [ + 'getters' => [ + 'getDataAttribute', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'UpdateDataAttributeBinding' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{data_attribute_binding.name=projects/*/locations/*/dataAttributeBindings/*}', + 'body' => 'data_attribute_binding', + 'placeholders' => [ + 'data_attribute_binding.name' => [ + 'getters' => [ + 'getDataAttributeBinding', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'UpdateDataTaxonomy' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{data_taxonomy.name=projects/*/locations/*/dataTaxonomies/*}', + 'body' => 'data_taxonomy', + 'placeholders' => [ + 'data_taxonomy.name' => [ + 'getters' => [ + 'getDataTaxonomy', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + ], + 'google.cloud.location.Locations' => [ + 'GetLocation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListLocations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*}/locations', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + 'google.iam.v1.IAMPolicy' => [ + 'GetIamPolicy' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*}:getIamPolicy', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryTypes/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/aspectTypes/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryGroups/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/governanceRules/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/changeRequests/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:getIamPolicy', + ], + ], + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + 'SetIamPolicy' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*}:setIamPolicy', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryTypes/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/aspectTypes/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryGroups/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/governanceRules/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/changeRequests/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:setIamPolicy', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + 'TestIamPermissions' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*}:testIamPermissions', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryTypes/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/aspectTypes/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryGroups/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/governanceRules/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/changeRequests/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:testIamPermissions', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}:cancel', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteOperation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + 'additionalBindings' => [ + [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*}/operations', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/Dataplex/v1/src/V1/resources/dataplex_service_client_config.json b/owl-bot-staging/Dataplex/v1/src/V1/resources/dataplex_service_client_config.json new file mode 100644 index 000000000000..57ad6206a9d0 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/src/V1/resources/dataplex_service_client_config.json @@ -0,0 +1,216 @@ +{ + "interfaces": { + "google.cloud.dataplex.v1.DataplexService": { + "retry_codes": { + "no_retry_codes": [], + "retry_policy_1_codes": [ + "UNAVAILABLE" + ], + "retry_policy_2_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 + }, + "retry_policy_2_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": { + "CancelJob": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "CreateAsset": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "CreateLake": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "CreateTask": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "CreateZone": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "DeleteAsset": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "DeleteLake": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "DeleteTask": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "DeleteZone": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "GetAsset": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetJob": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetLake": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetTask": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetZone": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListAssetActions": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_2_codes", + "retry_params_name": "retry_policy_2_params" + }, + "ListAssets": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_2_codes", + "retry_params_name": "retry_policy_2_params" + }, + "ListJobs": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_2_codes", + "retry_params_name": "retry_policy_2_params" + }, + "ListLakeActions": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_2_codes", + "retry_params_name": "retry_policy_2_params" + }, + "ListLakes": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_2_codes", + "retry_params_name": "retry_policy_2_params" + }, + "ListTasks": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_2_codes", + "retry_params_name": "retry_policy_2_params" + }, + "ListZoneActions": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_2_codes", + "retry_params_name": "retry_policy_2_params" + }, + "ListZones": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_2_codes", + "retry_params_name": "retry_policy_2_params" + }, + "RunTask": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "UpdateAsset": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "UpdateLake": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "UpdateTask": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "UpdateZone": { + "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" + }, + "GetIamPolicy": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "SetIamPolicy": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "TestIamPermissions": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/Dataplex/v1/src/V1/resources/dataplex_service_descriptor_config.php b/owl-bot-staging/Dataplex/v1/src/V1/resources/dataplex_service_descriptor_config.php new file mode 100644 index 000000000000..238fddd4322f --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/src/V1/resources/dataplex_service_descriptor_config.php @@ -0,0 +1,585 @@ + [ + 'google.cloud.dataplex.v1.DataplexService' => [ + 'CreateAsset' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Dataplex\V1\Asset', + 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateLake' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Dataplex\V1\Lake', + 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateTask' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Dataplex\V1\Task', + 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateZone' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Dataplex\V1\Zone', + 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteAsset' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteLake' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteTask' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteZone' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'UpdateAsset' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Dataplex\V1\Asset', + 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'asset.name', + 'fieldAccessors' => [ + 'getAsset', + 'getName', + ], + ], + ], + ], + 'UpdateLake' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Dataplex\V1\Lake', + 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'lake.name', + 'fieldAccessors' => [ + 'getLake', + 'getName', + ], + ], + ], + ], + 'UpdateTask' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Dataplex\V1\Task', + 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'task.name', + 'fieldAccessors' => [ + 'getTask', + 'getName', + ], + ], + ], + ], + 'UpdateZone' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\Dataplex\V1\Zone', + 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', + 'initialPollDelayMillis' => '500', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '5000', + 'totalPollTimeoutMillis' => '300000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'zone.name', + 'fieldAccessors' => [ + 'getZone', + 'getName', + ], + ], + ], + ], + 'CancelJob' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetAsset' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\Asset', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetJob' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\Job', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetLake' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\Lake', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetTask' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\Task', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetZone' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\Zone', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListAssetActions' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getActions', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\ListActionsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListAssets' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getAssets', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\ListAssetsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListJobs' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getJobs', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\ListJobsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListLakeActions' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getActions', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\ListActionsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListLakes' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getLakes', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\ListLakesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListTasks' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getTasks', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\ListTasksResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListZoneActions' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getActions', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\ListActionsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListZones' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getZones', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\ListZonesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'RunTask' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\RunTaskResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + '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', + ], + 'GetIamPolicy' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\Policy', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'SetIamPolicy' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\Policy', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'TestIamPermissions' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\TestIamPermissionsResponse', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'templateMap' => [ + 'asset' => 'projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/assets/{asset}', + 'job' => 'projects/{project}/locations/{location}/lakes/{lake}/tasks/{task}/jobs/{job}', + 'lake' => 'projects/{project}/locations/{location}/lakes/{lake}', + 'location' => 'projects/{project}/locations/{location}', + 'task' => 'projects/{project}/locations/{location}/lakes/{lake}/tasks/{task}', + 'zone' => 'projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}', + ], + ], + ], +]; diff --git a/owl-bot-staging/Dataplex/v1/src/V1/resources/dataplex_service_rest_client_config.php b/owl-bot-staging/Dataplex/v1/src/V1/resources/dataplex_service_rest_client_config.php new file mode 100644 index 000000000000..ee18b0050992 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/src/V1/resources/dataplex_service_rest_client_config.php @@ -0,0 +1,769 @@ + [ + 'google.cloud.dataplex.v1.DataplexService' => [ + 'CancelJob' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/lakes/*/tasks/*/jobs/*}:cancel', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'CreateAsset' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/lakes/*/zones/*}/assets', + 'body' => 'asset', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'asset_id', + ], + ], + 'CreateLake' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/lakes', + 'body' => 'lake', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'lake_id', + ], + ], + 'CreateTask' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/lakes/*}/tasks', + 'body' => 'task', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'task_id', + ], + ], + 'CreateZone' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/lakes/*}/zones', + 'body' => 'zone', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'zone_id', + ], + ], + 'DeleteAsset' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/lakes/*/zones/*/assets/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteLake' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/lakes/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteTask' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/lakes/*/tasks/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteZone' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/lakes/*/zones/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetAsset' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/lakes/*/zones/*/assets/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetJob' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/lakes/*/tasks/*/jobs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetLake' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/lakes/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetTask' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/lakes/*/tasks/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetZone' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/lakes/*/zones/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListAssetActions' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/lakes/*/zones/*/assets/*}/actions', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListAssets' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/lakes/*/zones/*}/assets', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListJobs' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/lakes/*/tasks/*}/jobs', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListLakeActions' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/lakes/*}/actions', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListLakes' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/lakes', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListTasks' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/lakes/*}/tasks', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListZoneActions' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/lakes/*/zones/*}/actions', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListZones' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/lakes/*}/zones', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'RunTask' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/lakes/*/tasks/*}:run', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'UpdateAsset' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{asset.name=projects/*/locations/*/lakes/*/zones/*/assets/*}', + 'body' => 'asset', + 'placeholders' => [ + 'asset.name' => [ + 'getters' => [ + 'getAsset', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'UpdateLake' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{lake.name=projects/*/locations/*/lakes/*}', + 'body' => 'lake', + 'placeholders' => [ + 'lake.name' => [ + 'getters' => [ + 'getLake', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'UpdateTask' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{task.name=projects/*/locations/*/lakes/*/tasks/*}', + 'body' => 'task', + 'placeholders' => [ + 'task.name' => [ + 'getters' => [ + 'getTask', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + 'UpdateZone' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{zone.name=projects/*/locations/*/lakes/*/zones/*}', + 'body' => 'zone', + 'placeholders' => [ + 'zone.name' => [ + 'getters' => [ + 'getZone', + 'getName', + ], + ], + ], + 'queryParams' => [ + 'update_mask', + ], + ], + ], + 'google.cloud.location.Locations' => [ + 'GetLocation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListLocations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*}/locations', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + 'google.iam.v1.IAMPolicy' => [ + 'GetIamPolicy' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*}:getIamPolicy', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryTypes/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/aspectTypes/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryGroups/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/governanceRules/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/changeRequests/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:getIamPolicy', + ], + ], + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + 'SetIamPolicy' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*}:setIamPolicy', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryTypes/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/aspectTypes/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryGroups/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/governanceRules/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/changeRequests/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:setIamPolicy', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + 'TestIamPermissions' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*}:testIamPermissions', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryTypes/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/aspectTypes/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryGroups/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/governanceRules/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/changeRequests/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:testIamPermissions', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}:cancel', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteOperation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + 'additionalBindings' => [ + [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*}/operations', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/Dataplex/v1/src/V1/resources/metadata_service_client_config.json b/owl-bot-staging/Dataplex/v1/src/V1/resources/metadata_service_client_config.json new file mode 100644 index 000000000000..0d55c98b20f3 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/src/V1/resources/metadata_service_client_config.json @@ -0,0 +1,126 @@ +{ + "interfaces": { + "google.cloud.dataplex.v1.MetadataService": { + "retry_codes": { + "no_retry_codes": [], + "retry_policy_3_codes": [ + "UNAVAILABLE" + ], + "retry_policy_4_codes": [ + "UNAVAILABLE" + ], + "no_retry_2_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_3_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 + }, + "retry_policy_4_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_2_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": { + "CreateEntity": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_2_codes", + "retry_params_name": "no_retry_2_params" + }, + "CreatePartition": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_2_codes", + "retry_params_name": "no_retry_2_params" + }, + "DeleteEntity": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_2_codes", + "retry_params_name": "no_retry_2_params" + }, + "DeletePartition": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_2_codes", + "retry_params_name": "no_retry_2_params" + }, + "GetEntity": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_3_codes", + "retry_params_name": "retry_policy_3_params" + }, + "GetPartition": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_3_codes", + "retry_params_name": "retry_policy_3_params" + }, + "ListEntities": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_4_codes", + "retry_params_name": "retry_policy_4_params" + }, + "ListPartitions": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_4_codes", + "retry_params_name": "retry_policy_4_params" + }, + "UpdateEntity": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_2_codes", + "retry_params_name": "no_retry_2_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" + }, + "GetIamPolicy": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "SetIamPolicy": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "TestIamPermissions": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/owl-bot-staging/Dataplex/v1/src/V1/resources/metadata_service_descriptor_config.php b/owl-bot-staging/Dataplex/v1/src/V1/resources/metadata_service_descriptor_config.php new file mode 100644 index 000000000000..bdd0d0f5e09f --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/src/V1/resources/metadata_service_descriptor_config.php @@ -0,0 +1,231 @@ + [ + 'google.cloud.dataplex.v1.MetadataService' => [ + 'CreateEntity' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\Entity', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreatePartition' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\Partition', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteEntity' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeletePartition' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Protobuf\GPBEmpty', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetEntity' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\Entity', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetPartition' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\Partition', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListEntities' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getEntities', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\ListEntitiesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListPartitions' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getPartitions', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\ListPartitionsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateEntity' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\Entity', + 'headerParams' => [ + [ + 'keyName' => 'entity.name', + 'fieldAccessors' => [ + 'getEntity', + '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', + ], + 'GetIamPolicy' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\Policy', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'SetIamPolicy' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\Policy', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'TestIamPermissions' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Iam\V1\TestIamPermissionsResponse', + 'headerParams' => [ + [ + 'keyName' => 'resource', + 'fieldAccessors' => [ + 'getResource', + ], + ], + ], + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'templateMap' => [ + 'entity' => 'projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/entities/{entity}', + 'partition' => 'projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/entities/{entity}/partitions/{partition}', + 'zone' => 'projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}', + ], + ], + ], +]; diff --git a/owl-bot-staging/Dataplex/v1/src/V1/resources/metadata_service_rest_client_config.php b/owl-bot-staging/Dataplex/v1/src/V1/resources/metadata_service_rest_client_config.php new file mode 100644 index 000000000000..a970833e3a3e --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/src/V1/resources/metadata_service_rest_client_config.php @@ -0,0 +1,543 @@ + [ + 'google.cloud.dataplex.v1.MetadataService' => [ + 'CreateEntity' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/lakes/*/zones/*}/entities', + 'body' => 'entity', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreatePartition' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/lakes/*/zones/*/entities/*}/partitions', + 'body' => 'partition', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteEntity' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/lakes/*/zones/*/entities/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + 'queryParams' => [ + 'etag', + ], + ], + 'DeletePartition' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/lakes/*/zones/*/entities/*/partitions/**}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetEntity' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/lakes/*/zones/*/entities/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetPartition' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/lakes/*/zones/*/entities/*/partitions/**}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListEntities' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/lakes/*/zones/*}/entities', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'view', + ], + ], + 'ListPartitions' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/lakes/*/zones/*/entities/*}/partitions', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateEntity' => [ + 'method' => 'put', + 'uriTemplate' => '/v1/{entity.name=projects/*/locations/*/lakes/*/zones/*/entities/*}', + 'body' => 'entity', + 'placeholders' => [ + 'entity.name' => [ + 'getters' => [ + 'getEntity', + 'getName', + ], + ], + ], + ], + ], + 'google.cloud.location.Locations' => [ + 'GetLocation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListLocations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*}/locations', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + 'google.iam.v1.IAMPolicy' => [ + 'GetIamPolicy' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*}:getIamPolicy', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryTypes/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/aspectTypes/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryGroups/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/governanceRules/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/changeRequests/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:getIamPolicy', + ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:getIamPolicy', + ], + ], + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + 'SetIamPolicy' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*}:setIamPolicy', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryTypes/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/aspectTypes/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryGroups/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/governanceRules/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/changeRequests/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:setIamPolicy', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:setIamPolicy', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + 'TestIamPermissions' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*}:testIamPermissions', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryTypes/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/aspectTypes/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryGroups/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/governanceRules/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/changeRequests/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:testIamPermissions', + 'body' => '*', + ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:testIamPermissions', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'resource' => [ + 'getters' => [ + 'getResource', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', + 'body' => '*', + 'additionalBindings' => [ + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}:cancel', + 'body' => '*', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteOperation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + 'additionalBindings' => [ + [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', + 'additionalBindings' => [ + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=organizations/*/locations/*}/operations', + ], + ], + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/BusinessGlossaryServiceClientTest.php b/owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/BusinessGlossaryServiceClientTest.php new file mode 100644 index 000000000000..e5dcc5b5b86b --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/BusinessGlossaryServiceClientTest.php @@ -0,0 +1,1819 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return BusinessGlossaryServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new BusinessGlossaryServiceClient($options); + } + + /** @test */ + public function createGlossaryTest() + { + $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/createGlossaryTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $uid = 'uid115792'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $termCount = 1604847748; + $categoryCount = 1899510414; + $etag = 'etag3123477'; + $expectedResponse = new Glossary(); + $expectedResponse->setName($name); + $expectedResponse->setUid($uid); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setTermCount($termCount); + $expectedResponse->setCategoryCount($categoryCount); + $expectedResponse->setEtag($etag); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createGlossaryTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $glossaryId = 'glossaryId1514441436'; + $glossary = new Glossary(); + $request = (new CreateGlossaryRequest()) + ->setParent($formattedParent) + ->setGlossaryId($glossaryId) + ->setGlossary($glossary); + $response = $gapicClient->createGlossary($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.dataplex.v1.BusinessGlossaryService/CreateGlossary', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getGlossaryId(); + $this->assertProtobufEquals($glossaryId, $actualValue); + $actualValue = $actualApiRequestObject->getGlossary(); + $this->assertProtobufEquals($glossary, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createGlossaryTest'); + $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 createGlossaryExceptionTest() + { + $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/createGlossaryTest'); + $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->locationName('[PROJECT]', '[LOCATION]'); + $glossaryId = 'glossaryId1514441436'; + $glossary = new Glossary(); + $request = (new CreateGlossaryRequest()) + ->setParent($formattedParent) + ->setGlossaryId($glossaryId) + ->setGlossary($glossary); + $response = $gapicClient->createGlossary($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createGlossaryTest'); + 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 createGlossaryCategoryTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $uid = 'uid115792'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $parent2 = 'parent21175163357'; + $expectedResponse = new GlossaryCategory(); + $expectedResponse->setName($name); + $expectedResponse->setUid($uid); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setParent($parent2); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->glossaryName('[PROJECT]', '[LOCATION]', '[GLOSSARY]'); + $categoryId = 'categoryId1537780732'; + $category = new GlossaryCategory(); + $categoryParent = 'categoryParent1468300104'; + $category->setParent($categoryParent); + $request = (new CreateGlossaryCategoryRequest()) + ->setParent($formattedParent) + ->setCategoryId($categoryId) + ->setCategory($category); + $response = $gapicClient->createGlossaryCategory($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.dataplex.v1.BusinessGlossaryService/CreateGlossaryCategory', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getCategoryId(); + $this->assertProtobufEquals($categoryId, $actualValue); + $actualValue = $actualRequestObject->getCategory(); + $this->assertProtobufEquals($category, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createGlossaryCategoryExceptionTest() + { + $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->glossaryName('[PROJECT]', '[LOCATION]', '[GLOSSARY]'); + $categoryId = 'categoryId1537780732'; + $category = new GlossaryCategory(); + $categoryParent = 'categoryParent1468300104'; + $category->setParent($categoryParent); + $request = (new CreateGlossaryCategoryRequest()) + ->setParent($formattedParent) + ->setCategoryId($categoryId) + ->setCategory($category); + try { + $gapicClient->createGlossaryCategory($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 createGlossaryTermTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $uid = 'uid115792'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $parent2 = 'parent21175163357'; + $expectedResponse = new GlossaryTerm(); + $expectedResponse->setName($name); + $expectedResponse->setUid($uid); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setParent($parent2); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->glossaryName('[PROJECT]', '[LOCATION]', '[GLOSSARY]'); + $termId = 'termId-1423587890'; + $term = new GlossaryTerm(); + $termParent = $gapicClient->glossaryName('[PROJECT]', '[LOCATION]', '[GLOSSARY]'); + $term->setParent($termParent); + $request = (new CreateGlossaryTermRequest()) + ->setParent($formattedParent) + ->setTermId($termId) + ->setTerm($term); + $response = $gapicClient->createGlossaryTerm($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.dataplex.v1.BusinessGlossaryService/CreateGlossaryTerm', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getTermId(); + $this->assertProtobufEquals($termId, $actualValue); + $actualValue = $actualRequestObject->getTerm(); + $this->assertProtobufEquals($term, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createGlossaryTermExceptionTest() + { + $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->glossaryName('[PROJECT]', '[LOCATION]', '[GLOSSARY]'); + $termId = 'termId-1423587890'; + $term = new GlossaryTerm(); + $termParent = $gapicClient->glossaryName('[PROJECT]', '[LOCATION]', '[GLOSSARY]'); + $term->setParent($termParent); + $request = (new CreateGlossaryTermRequest()) + ->setParent($formattedParent) + ->setTermId($termId) + ->setTerm($term); + try { + $gapicClient->createGlossaryTerm($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 deleteGlossaryTest() + { + $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/deleteGlossaryTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new GPBEmpty(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/deleteGlossaryTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->glossaryName('[PROJECT]', '[LOCATION]', '[GLOSSARY]'); + $request = (new DeleteGlossaryRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteGlossary($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.dataplex.v1.BusinessGlossaryService/DeleteGlossary', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteGlossaryTest'); + $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 deleteGlossaryExceptionTest() + { + $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/deleteGlossaryTest'); + $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->glossaryName('[PROJECT]', '[LOCATION]', '[GLOSSARY]'); + $request = (new DeleteGlossaryRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteGlossary($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteGlossaryTest'); + 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 deleteGlossaryCategoryTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->glossaryCategoryName('[PROJECT]', '[LOCATION]', '[GLOSSARY]', '[GLOSSARY_CATEGORY]'); + $request = (new DeleteGlossaryCategoryRequest()) + ->setName($formattedName); + $gapicClient->deleteGlossaryCategory($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataplex.v1.BusinessGlossaryService/DeleteGlossaryCategory', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteGlossaryCategoryExceptionTest() + { + $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->glossaryCategoryName('[PROJECT]', '[LOCATION]', '[GLOSSARY]', '[GLOSSARY_CATEGORY]'); + $request = (new DeleteGlossaryCategoryRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteGlossaryCategory($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 deleteGlossaryTermTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->glossaryTermName('[PROJECT]', '[LOCATION]', '[GLOSSARY]', '[GLOSSARY_TERM]'); + $request = (new DeleteGlossaryTermRequest()) + ->setName($formattedName); + $gapicClient->deleteGlossaryTerm($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataplex.v1.BusinessGlossaryService/DeleteGlossaryTerm', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteGlossaryTermExceptionTest() + { + $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->glossaryTermName('[PROJECT]', '[LOCATION]', '[GLOSSARY]', '[GLOSSARY_TERM]'); + $request = (new DeleteGlossaryTermRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteGlossaryTerm($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 getGlossaryTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $uid = 'uid115792'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $termCount = 1604847748; + $categoryCount = 1899510414; + $etag = 'etag3123477'; + $expectedResponse = new Glossary(); + $expectedResponse->setName($name2); + $expectedResponse->setUid($uid); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setTermCount($termCount); + $expectedResponse->setCategoryCount($categoryCount); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->glossaryName('[PROJECT]', '[LOCATION]', '[GLOSSARY]'); + $request = (new GetGlossaryRequest()) + ->setName($formattedName); + $response = $gapicClient->getGlossary($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.dataplex.v1.BusinessGlossaryService/GetGlossary', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getGlossaryExceptionTest() + { + $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->glossaryName('[PROJECT]', '[LOCATION]', '[GLOSSARY]'); + $request = (new GetGlossaryRequest()) + ->setName($formattedName); + try { + $gapicClient->getGlossary($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 getGlossaryCategoryTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $uid = 'uid115792'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $parent = 'parent-995424086'; + $expectedResponse = new GlossaryCategory(); + $expectedResponse->setName($name2); + $expectedResponse->setUid($uid); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setParent($parent); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->glossaryCategoryName('[PROJECT]', '[LOCATION]', '[GLOSSARY]', '[GLOSSARY_CATEGORY]'); + $request = (new GetGlossaryCategoryRequest()) + ->setName($formattedName); + $response = $gapicClient->getGlossaryCategory($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.dataplex.v1.BusinessGlossaryService/GetGlossaryCategory', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getGlossaryCategoryExceptionTest() + { + $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->glossaryCategoryName('[PROJECT]', '[LOCATION]', '[GLOSSARY]', '[GLOSSARY_CATEGORY]'); + $request = (new GetGlossaryCategoryRequest()) + ->setName($formattedName); + try { + $gapicClient->getGlossaryCategory($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 getGlossaryTermTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $uid = 'uid115792'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $parent = 'parent-995424086'; + $expectedResponse = new GlossaryTerm(); + $expectedResponse->setName($name2); + $expectedResponse->setUid($uid); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setParent($parent); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->glossaryTermName('[PROJECT]', '[LOCATION]', '[GLOSSARY]', '[GLOSSARY_TERM]'); + $request = (new GetGlossaryTermRequest()) + ->setName($formattedName); + $response = $gapicClient->getGlossaryTerm($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.dataplex.v1.BusinessGlossaryService/GetGlossaryTerm', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getGlossaryTermExceptionTest() + { + $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->glossaryTermName('[PROJECT]', '[LOCATION]', '[GLOSSARY]', '[GLOSSARY_TERM]'); + $request = (new GetGlossaryTermRequest()) + ->setName($formattedName); + try { + $gapicClient->getGlossaryTerm($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 listGlossariesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $glossariesElement = new Glossary(); + $glossaries = [ + $glossariesElement, + ]; + $expectedResponse = new ListGlossariesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setGlossaries($glossaries); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListGlossariesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listGlossaries($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getGlossaries()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataplex.v1.BusinessGlossaryService/ListGlossaries', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listGlossariesExceptionTest() + { + $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->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListGlossariesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listGlossaries($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 listGlossaryCategoriesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $categoriesElement = new GlossaryCategory(); + $categories = [ + $categoriesElement, + ]; + $expectedResponse = new ListGlossaryCategoriesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setCategories($categories); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->glossaryName('[PROJECT]', '[LOCATION]', '[GLOSSARY]'); + $request = (new ListGlossaryCategoriesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listGlossaryCategories($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getCategories()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataplex.v1.BusinessGlossaryService/ListGlossaryCategories', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listGlossaryCategoriesExceptionTest() + { + $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->glossaryName('[PROJECT]', '[LOCATION]', '[GLOSSARY]'); + $request = (new ListGlossaryCategoriesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listGlossaryCategories($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 listGlossaryTermsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $termsElement = new GlossaryTerm(); + $terms = [ + $termsElement, + ]; + $expectedResponse = new ListGlossaryTermsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTerms($terms); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->glossaryName('[PROJECT]', '[LOCATION]', '[GLOSSARY]'); + $request = (new ListGlossaryTermsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listGlossaryTerms($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getTerms()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataplex.v1.BusinessGlossaryService/ListGlossaryTerms', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listGlossaryTermsExceptionTest() + { + $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->glossaryName('[PROJECT]', '[LOCATION]', '[GLOSSARY]'); + $request = (new ListGlossaryTermsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listGlossaryTerms($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 updateGlossaryTest() + { + $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/updateGlossaryTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $uid = 'uid115792'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $termCount = 1604847748; + $categoryCount = 1899510414; + $etag = 'etag3123477'; + $expectedResponse = new Glossary(); + $expectedResponse->setName($name); + $expectedResponse->setUid($uid); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setTermCount($termCount); + $expectedResponse->setCategoryCount($categoryCount); + $expectedResponse->setEtag($etag); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/updateGlossaryTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $glossary = new Glossary(); + $updateMask = new FieldMask(); + $request = (new UpdateGlossaryRequest()) + ->setGlossary($glossary) + ->setUpdateMask($updateMask); + $response = $gapicClient->updateGlossary($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.dataplex.v1.BusinessGlossaryService/UpdateGlossary', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getGlossary(); + $this->assertProtobufEquals($glossary, $actualValue); + $actualValue = $actualApiRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateGlossaryTest'); + $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 updateGlossaryExceptionTest() + { + $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/updateGlossaryTest'); + $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 + $glossary = new Glossary(); + $updateMask = new FieldMask(); + $request = (new UpdateGlossaryRequest()) + ->setGlossary($glossary) + ->setUpdateMask($updateMask); + $response = $gapicClient->updateGlossary($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateGlossaryTest'); + 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 updateGlossaryCategoryTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $uid = 'uid115792'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $parent = 'parent-995424086'; + $expectedResponse = new GlossaryCategory(); + $expectedResponse->setName($name); + $expectedResponse->setUid($uid); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setParent($parent); + $transport->addResponse($expectedResponse); + // Mock request + $category = new GlossaryCategory(); + $categoryParent = 'categoryParent1468300104'; + $category->setParent($categoryParent); + $updateMask = new FieldMask(); + $request = (new UpdateGlossaryCategoryRequest()) + ->setCategory($category) + ->setUpdateMask($updateMask); + $response = $gapicClient->updateGlossaryCategory($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.dataplex.v1.BusinessGlossaryService/UpdateGlossaryCategory', $actualFuncCall); + $actualValue = $actualRequestObject->getCategory(); + $this->assertProtobufEquals($category, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateGlossaryCategoryExceptionTest() + { + $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 + $category = new GlossaryCategory(); + $categoryParent = 'categoryParent1468300104'; + $category->setParent($categoryParent); + $updateMask = new FieldMask(); + $request = (new UpdateGlossaryCategoryRequest()) + ->setCategory($category) + ->setUpdateMask($updateMask); + try { + $gapicClient->updateGlossaryCategory($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 updateGlossaryTermTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $uid = 'uid115792'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $parent = 'parent-995424086'; + $expectedResponse = new GlossaryTerm(); + $expectedResponse->setName($name); + $expectedResponse->setUid($uid); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setParent($parent); + $transport->addResponse($expectedResponse); + // Mock request + $term = new GlossaryTerm(); + $termParent = $gapicClient->glossaryName('[PROJECT]', '[LOCATION]', '[GLOSSARY]'); + $term->setParent($termParent); + $updateMask = new FieldMask(); + $request = (new UpdateGlossaryTermRequest()) + ->setTerm($term) + ->setUpdateMask($updateMask); + $response = $gapicClient->updateGlossaryTerm($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.dataplex.v1.BusinessGlossaryService/UpdateGlossaryTerm', $actualFuncCall); + $actualValue = $actualRequestObject->getTerm(); + $this->assertProtobufEquals($term, $actualValue); + $actualValue = $actualRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateGlossaryTermExceptionTest() + { + $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 + $term = new GlossaryTerm(); + $termParent = $gapicClient->glossaryName('[PROJECT]', '[LOCATION]', '[GLOSSARY]'); + $term->setParent($termParent); + $updateMask = new FieldMask(); + $request = (new UpdateGlossaryTermRequest()) + ->setTerm($term) + ->setUpdateMask($updateMask); + try { + $gapicClient->updateGlossaryTerm($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 getIamPolicyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $version = 351608024; + $etag = '21'; + $expectedResponse = new Policy(); + $expectedResponse->setVersion($version); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $resource = 'resource-341064690'; + $request = (new GetIamPolicyRequest()) + ->setResource($resource); + $response = $gapicClient->getIamPolicy($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.iam.v1.IAMPolicy/GetIamPolicy', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getIamPolicyExceptionTest() + { + $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 + $resource = 'resource-341064690'; + $request = (new GetIamPolicyRequest()) + ->setResource($resource); + try { + $gapicClient->getIamPolicy($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 setIamPolicyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $version = 351608024; + $etag = '21'; + $expectedResponse = new Policy(); + $expectedResponse->setVersion($version); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $resource = 'resource-341064690'; + $policy = new Policy(); + $request = (new SetIamPolicyRequest()) + ->setResource($resource) + ->setPolicy($policy); + $response = $gapicClient->setIamPolicy($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.iam.v1.IAMPolicy/SetIamPolicy', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $actualValue = $actualRequestObject->getPolicy(); + $this->assertProtobufEquals($policy, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setIamPolicyExceptionTest() + { + $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 + $resource = 'resource-341064690'; + $policy = new Policy(); + $request = (new SetIamPolicyRequest()) + ->setResource($resource) + ->setPolicy($policy); + try { + $gapicClient->setIamPolicy($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 testIamPermissionsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new TestIamPermissionsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $resource = 'resource-341064690'; + $permissions = []; + $request = (new TestIamPermissionsRequest()) + ->setResource($resource) + ->setPermissions($permissions); + $response = $gapicClient->testIamPermissions($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.iam.v1.IAMPolicy/TestIamPermissions', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $actualValue = $actualRequestObject->getPermissions(); + $this->assertProtobufEquals($permissions, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function testIamPermissionsExceptionTest() + { + $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 + $resource = 'resource-341064690'; + $permissions = []; + $request = (new TestIamPermissionsRequest()) + ->setResource($resource) + ->setPermissions($permissions); + try { + $gapicClient->testIamPermissions($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 createGlossaryAsyncTest() + { + $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/createGlossaryTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $uid = 'uid115792'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $termCount = 1604847748; + $categoryCount = 1899510414; + $etag = 'etag3123477'; + $expectedResponse = new Glossary(); + $expectedResponse->setName($name); + $expectedResponse->setUid($uid); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setTermCount($termCount); + $expectedResponse->setCategoryCount($categoryCount); + $expectedResponse->setEtag($etag); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createGlossaryTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $glossaryId = 'glossaryId1514441436'; + $glossary = new Glossary(); + $request = (new CreateGlossaryRequest()) + ->setParent($formattedParent) + ->setGlossaryId($glossaryId) + ->setGlossary($glossary); + $response = $gapicClient->createGlossaryAsync($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.dataplex.v1.BusinessGlossaryService/CreateGlossary', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getGlossaryId(); + $this->assertProtobufEquals($glossaryId, $actualValue); + $actualValue = $actualApiRequestObject->getGlossary(); + $this->assertProtobufEquals($glossary, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createGlossaryTest'); + $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/Dataplex/v1/tests/Unit/V1/Client/CatalogServiceClientTest.php b/owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/CatalogServiceClientTest.php new file mode 100644 index 000000000000..e2dd6a038164 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/CatalogServiceClientTest.php @@ -0,0 +1,4075 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return CatalogServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new CatalogServiceClient($options); + } + + /** @test */ + public function cancelMetadataJobTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->metadataJobName('[PROJECT]', '[LOCATION]', '[METADATAJOB]'); + $request = (new CancelMetadataJobRequest()) + ->setName($formattedName); + $gapicClient->cancelMetadataJob($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataplex.v1.CatalogService/CancelMetadataJob', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function cancelMetadataJobExceptionTest() + { + $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->metadataJobName('[PROJECT]', '[LOCATION]', '[METADATAJOB]'); + $request = (new CancelMetadataJobRequest()) + ->setName($formattedName); + try { + $gapicClient->cancelMetadataJob($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 createAspectTypeTest() + { + $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/createAspectTypeTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $uid = 'uid115792'; + $description = 'description-1724546052'; + $displayName = 'displayName1615086568'; + $etag = 'etag3123477'; + $expectedResponse = new AspectType(); + $expectedResponse->setName($name); + $expectedResponse->setUid($uid); + $expectedResponse->setDescription($description); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setEtag($etag); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createAspectTypeTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $aspectTypeId = 'aspectTypeId-688405671'; + $aspectType = new AspectType(); + $aspectTypeMetadataTemplate = new MetadataTemplate(); + $metadataTemplateName = 'metadataTemplateName393703156'; + $aspectTypeMetadataTemplate->setName($metadataTemplateName); + $metadataTemplateType = 'metadataTemplateType393905059'; + $aspectTypeMetadataTemplate->setType($metadataTemplateType); + $aspectType->setMetadataTemplate($aspectTypeMetadataTemplate); + $request = (new CreateAspectTypeRequest()) + ->setParent($formattedParent) + ->setAspectTypeId($aspectTypeId) + ->setAspectType($aspectType); + $response = $gapicClient->createAspectType($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.dataplex.v1.CatalogService/CreateAspectType', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getAspectTypeId(); + $this->assertProtobufEquals($aspectTypeId, $actualValue); + $actualValue = $actualApiRequestObject->getAspectType(); + $this->assertProtobufEquals($aspectType, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createAspectTypeTest'); + $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 createAspectTypeExceptionTest() + { + $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/createAspectTypeTest'); + $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->locationName('[PROJECT]', '[LOCATION]'); + $aspectTypeId = 'aspectTypeId-688405671'; + $aspectType = new AspectType(); + $aspectTypeMetadataTemplate = new MetadataTemplate(); + $metadataTemplateName = 'metadataTemplateName393703156'; + $aspectTypeMetadataTemplate->setName($metadataTemplateName); + $metadataTemplateType = 'metadataTemplateType393905059'; + $aspectTypeMetadataTemplate->setType($metadataTemplateType); + $aspectType->setMetadataTemplate($aspectTypeMetadataTemplate); + $request = (new CreateAspectTypeRequest()) + ->setParent($formattedParent) + ->setAspectTypeId($aspectTypeId) + ->setAspectType($aspectType); + $response = $gapicClient->createAspectType($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createAspectTypeTest'); + 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 createEntryTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $entryType = 'entryType-1965312281'; + $parentEntry = 'parentEntry1393020061'; + $fullyQualifiedName = 'fullyQualifiedName338146659'; + $expectedResponse = new Entry(); + $expectedResponse->setName($name); + $expectedResponse->setEntryType($entryType); + $expectedResponse->setParentEntry($parentEntry); + $expectedResponse->setFullyQualifiedName($fullyQualifiedName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->entryGroupName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]'); + $entryId = 'entryId-2093663224'; + $entry = new Entry(); + $entryEntryType = 'entryEntryType884603514'; + $entry->setEntryType($entryEntryType); + $request = (new CreateEntryRequest()) + ->setParent($formattedParent) + ->setEntryId($entryId) + ->setEntry($entry); + $response = $gapicClient->createEntry($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.dataplex.v1.CatalogService/CreateEntry', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getEntryId(); + $this->assertProtobufEquals($entryId, $actualValue); + $actualValue = $actualRequestObject->getEntry(); + $this->assertProtobufEquals($entry, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createEntryExceptionTest() + { + $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->entryGroupName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]'); + $entryId = 'entryId-2093663224'; + $entry = new Entry(); + $entryEntryType = 'entryEntryType884603514'; + $entry->setEntryType($entryEntryType); + $request = (new CreateEntryRequest()) + ->setParent($formattedParent) + ->setEntryId($entryId) + ->setEntry($entry); + try { + $gapicClient->createEntry($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 createEntryGroupTest() + { + $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/createEntryGroupTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $uid = 'uid115792'; + $description = 'description-1724546052'; + $displayName = 'displayName1615086568'; + $etag = 'etag3123477'; + $expectedResponse = new EntryGroup(); + $expectedResponse->setName($name); + $expectedResponse->setUid($uid); + $expectedResponse->setDescription($description); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setEtag($etag); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createEntryGroupTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $entryGroupId = 'entryGroupId-43122680'; + $entryGroup = new EntryGroup(); + $request = (new CreateEntryGroupRequest()) + ->setParent($formattedParent) + ->setEntryGroupId($entryGroupId) + ->setEntryGroup($entryGroup); + $response = $gapicClient->createEntryGroup($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.dataplex.v1.CatalogService/CreateEntryGroup', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getEntryGroupId(); + $this->assertProtobufEquals($entryGroupId, $actualValue); + $actualValue = $actualApiRequestObject->getEntryGroup(); + $this->assertProtobufEquals($entryGroup, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createEntryGroupTest'); + $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 createEntryGroupExceptionTest() + { + $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/createEntryGroupTest'); + $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->locationName('[PROJECT]', '[LOCATION]'); + $entryGroupId = 'entryGroupId-43122680'; + $entryGroup = new EntryGroup(); + $request = (new CreateEntryGroupRequest()) + ->setParent($formattedParent) + ->setEntryGroupId($entryGroupId) + ->setEntryGroup($entryGroup); + $response = $gapicClient->createEntryGroup($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createEntryGroupTest'); + 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 createEntryLinkTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $entryLinkType = 'entryLinkType-1478418222'; + $expectedResponse = new EntryLink(); + $expectedResponse->setName($name); + $expectedResponse->setEntryLinkType($entryLinkType); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->entryGroupName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]'); + $entryLinkId = 'entryLinkId1406280883'; + $entryLink = new EntryLink(); + $entryLinkEntryLinkType = 'entryLinkEntryLinkType-1556238150'; + $entryLink->setEntryLinkType($entryLinkEntryLinkType); + $entryLinkEntryReferences = []; + $entryLink->setEntryReferences($entryLinkEntryReferences); + $request = (new CreateEntryLinkRequest()) + ->setParent($formattedParent) + ->setEntryLinkId($entryLinkId) + ->setEntryLink($entryLink); + $response = $gapicClient->createEntryLink($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.dataplex.v1.CatalogService/CreateEntryLink', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getEntryLinkId(); + $this->assertProtobufEquals($entryLinkId, $actualValue); + $actualValue = $actualRequestObject->getEntryLink(); + $this->assertProtobufEquals($entryLink, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createEntryLinkExceptionTest() + { + $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->entryGroupName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]'); + $entryLinkId = 'entryLinkId1406280883'; + $entryLink = new EntryLink(); + $entryLinkEntryLinkType = 'entryLinkEntryLinkType-1556238150'; + $entryLink->setEntryLinkType($entryLinkEntryLinkType); + $entryLinkEntryReferences = []; + $entryLink->setEntryReferences($entryLinkEntryReferences); + $request = (new CreateEntryLinkRequest()) + ->setParent($formattedParent) + ->setEntryLinkId($entryLinkId) + ->setEntryLink($entryLink); + try { + $gapicClient->createEntryLink($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 createEntryTypeTest() + { + $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/createEntryTypeTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $uid = 'uid115792'; + $description = 'description-1724546052'; + $displayName = 'displayName1615086568'; + $etag = 'etag3123477'; + $platform = 'platform1874684019'; + $system = 'system-887328209'; + $expectedResponse = new EntryType(); + $expectedResponse->setName($name); + $expectedResponse->setUid($uid); + $expectedResponse->setDescription($description); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setEtag($etag); + $expectedResponse->setPlatform($platform); + $expectedResponse->setSystem($system); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createEntryTypeTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $entryTypeId = 'entryTypeId376110451'; + $entryType = new EntryType(); + $request = (new CreateEntryTypeRequest()) + ->setParent($formattedParent) + ->setEntryTypeId($entryTypeId) + ->setEntryType($entryType); + $response = $gapicClient->createEntryType($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.dataplex.v1.CatalogService/CreateEntryType', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getEntryTypeId(); + $this->assertProtobufEquals($entryTypeId, $actualValue); + $actualValue = $actualApiRequestObject->getEntryType(); + $this->assertProtobufEquals($entryType, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createEntryTypeTest'); + $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 createEntryTypeExceptionTest() + { + $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/createEntryTypeTest'); + $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->locationName('[PROJECT]', '[LOCATION]'); + $entryTypeId = 'entryTypeId376110451'; + $entryType = new EntryType(); + $request = (new CreateEntryTypeRequest()) + ->setParent($formattedParent) + ->setEntryTypeId($entryTypeId) + ->setEntryType($entryType); + $response = $gapicClient->createEntryType($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createEntryTypeTest'); + 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 createMetadataFeedTest() + { + $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/createMetadataFeedTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $uid = 'uid115792'; + $pubsubTopic = 'pubsubTopic-338126829'; + $expectedResponse = new MetadataFeed(); + $expectedResponse->setName($name); + $expectedResponse->setUid($uid); + $expectedResponse->setPubsubTopic($pubsubTopic); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createMetadataFeedTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $metadataFeed = new MetadataFeed(); + $metadataFeedScope = new Scope(); + $metadataFeed->setScope($metadataFeedScope); + $request = (new CreateMetadataFeedRequest()) + ->setParent($formattedParent) + ->setMetadataFeed($metadataFeed); + $response = $gapicClient->createMetadataFeed($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.dataplex.v1.CatalogService/CreateMetadataFeed', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getMetadataFeed(); + $this->assertProtobufEquals($metadataFeed, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createMetadataFeedTest'); + $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 createMetadataFeedExceptionTest() + { + $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/createMetadataFeedTest'); + $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->locationName('[PROJECT]', '[LOCATION]'); + $metadataFeed = new MetadataFeed(); + $metadataFeedScope = new Scope(); + $metadataFeed->setScope($metadataFeedScope); + $request = (new CreateMetadataFeedRequest()) + ->setParent($formattedParent) + ->setMetadataFeed($metadataFeed); + $response = $gapicClient->createMetadataFeed($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createMetadataFeedTest'); + 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 createMetadataJobTest() + { + $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/createMetadataJobTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $uid = 'uid115792'; + $expectedResponse = new MetadataJob(); + $expectedResponse->setName($name); + $expectedResponse->setUid($uid); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createMetadataJobTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $metadataJob = new MetadataJob(); + $metadataJobType = Type::TYPE_UNSPECIFIED; + $metadataJob->setType($metadataJobType); + $request = (new CreateMetadataJobRequest()) + ->setParent($formattedParent) + ->setMetadataJob($metadataJob); + $response = $gapicClient->createMetadataJob($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.dataplex.v1.CatalogService/CreateMetadataJob', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getMetadataJob(); + $this->assertProtobufEquals($metadataJob, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createMetadataJobTest'); + $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 createMetadataJobExceptionTest() + { + $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/createMetadataJobTest'); + $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->locationName('[PROJECT]', '[LOCATION]'); + $metadataJob = new MetadataJob(); + $metadataJobType = Type::TYPE_UNSPECIFIED; + $metadataJob->setType($metadataJobType); + $request = (new CreateMetadataJobRequest()) + ->setParent($formattedParent) + ->setMetadataJob($metadataJob); + $response = $gapicClient->createMetadataJob($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createMetadataJobTest'); + 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 deleteAspectTypeTest() + { + $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/deleteAspectTypeTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new GPBEmpty(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/deleteAspectTypeTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->aspectTypeName('[PROJECT]', '[LOCATION]', '[ASPECT_TYPE]'); + $request = (new DeleteAspectTypeRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteAspectType($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.dataplex.v1.CatalogService/DeleteAspectType', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteAspectTypeTest'); + $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 deleteAspectTypeExceptionTest() + { + $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/deleteAspectTypeTest'); + $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->aspectTypeName('[PROJECT]', '[LOCATION]', '[ASPECT_TYPE]'); + $request = (new DeleteAspectTypeRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteAspectType($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteAspectTypeTest'); + 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 deleteEntryTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $entryType = 'entryType-1965312281'; + $parentEntry = 'parentEntry1393020061'; + $fullyQualifiedName = 'fullyQualifiedName338146659'; + $expectedResponse = new Entry(); + $expectedResponse->setName($name2); + $expectedResponse->setEntryType($entryType); + $expectedResponse->setParentEntry($parentEntry); + $expectedResponse->setFullyQualifiedName($fullyQualifiedName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->entryName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]', '[ENTRY]'); + $request = (new DeleteEntryRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteEntry($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.dataplex.v1.CatalogService/DeleteEntry', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteEntryExceptionTest() + { + $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->entryName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]', '[ENTRY]'); + $request = (new DeleteEntryRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteEntry($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 deleteEntryGroupTest() + { + $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/deleteEntryGroupTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new GPBEmpty(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/deleteEntryGroupTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->entryGroupName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]'); + $request = (new DeleteEntryGroupRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteEntryGroup($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.dataplex.v1.CatalogService/DeleteEntryGroup', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteEntryGroupTest'); + $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 deleteEntryGroupExceptionTest() + { + $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/deleteEntryGroupTest'); + $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->entryGroupName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]'); + $request = (new DeleteEntryGroupRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteEntryGroup($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteEntryGroupTest'); + 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 deleteEntryLinkTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $entryLinkType = 'entryLinkType-1478418222'; + $expectedResponse = new EntryLink(); + $expectedResponse->setName($name2); + $expectedResponse->setEntryLinkType($entryLinkType); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->entryLinkName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]', '[ENTRY_LINK]'); + $request = (new DeleteEntryLinkRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteEntryLink($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.dataplex.v1.CatalogService/DeleteEntryLink', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteEntryLinkExceptionTest() + { + $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->entryLinkName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]', '[ENTRY_LINK]'); + $request = (new DeleteEntryLinkRequest()) + ->setName($formattedName); + try { + $gapicClient->deleteEntryLink($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 deleteEntryTypeTest() + { + $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/deleteEntryTypeTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new GPBEmpty(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/deleteEntryTypeTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->entryTypeName('[PROJECT]', '[LOCATION]', '[ENTRY_TYPE]'); + $request = (new DeleteEntryTypeRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteEntryType($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.dataplex.v1.CatalogService/DeleteEntryType', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteEntryTypeTest'); + $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 deleteEntryTypeExceptionTest() + { + $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/deleteEntryTypeTest'); + $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->entryTypeName('[PROJECT]', '[LOCATION]', '[ENTRY_TYPE]'); + $request = (new DeleteEntryTypeRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteEntryType($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteEntryTypeTest'); + 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 deleteMetadataFeedTest() + { + $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/deleteMetadataFeedTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new GPBEmpty(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/deleteMetadataFeedTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->metadataFeedName('[PROJECT]', '[LOCATION]', '[METADATA_FEED]'); + $request = (new DeleteMetadataFeedRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteMetadataFeed($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.dataplex.v1.CatalogService/DeleteMetadataFeed', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteMetadataFeedTest'); + $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 deleteMetadataFeedExceptionTest() + { + $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/deleteMetadataFeedTest'); + $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->metadataFeedName('[PROJECT]', '[LOCATION]', '[METADATA_FEED]'); + $request = (new DeleteMetadataFeedRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteMetadataFeed($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteMetadataFeedTest'); + 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 getAspectTypeTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $uid = 'uid115792'; + $description = 'description-1724546052'; + $displayName = 'displayName1615086568'; + $etag = 'etag3123477'; + $expectedResponse = new AspectType(); + $expectedResponse->setName($name2); + $expectedResponse->setUid($uid); + $expectedResponse->setDescription($description); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->aspectTypeName('[PROJECT]', '[LOCATION]', '[ASPECT_TYPE]'); + $request = (new GetAspectTypeRequest()) + ->setName($formattedName); + $response = $gapicClient->getAspectType($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.dataplex.v1.CatalogService/GetAspectType', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getAspectTypeExceptionTest() + { + $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->aspectTypeName('[PROJECT]', '[LOCATION]', '[ASPECT_TYPE]'); + $request = (new GetAspectTypeRequest()) + ->setName($formattedName); + try { + $gapicClient->getAspectType($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 getEntryTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $entryType = 'entryType-1965312281'; + $parentEntry = 'parentEntry1393020061'; + $fullyQualifiedName = 'fullyQualifiedName338146659'; + $expectedResponse = new Entry(); + $expectedResponse->setName($name2); + $expectedResponse->setEntryType($entryType); + $expectedResponse->setParentEntry($parentEntry); + $expectedResponse->setFullyQualifiedName($fullyQualifiedName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->entryName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]', '[ENTRY]'); + $request = (new GetEntryRequest()) + ->setName($formattedName); + $response = $gapicClient->getEntry($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.dataplex.v1.CatalogService/GetEntry', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getEntryExceptionTest() + { + $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->entryName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]', '[ENTRY]'); + $request = (new GetEntryRequest()) + ->setName($formattedName); + try { + $gapicClient->getEntry($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 getEntryGroupTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $uid = 'uid115792'; + $description = 'description-1724546052'; + $displayName = 'displayName1615086568'; + $etag = 'etag3123477'; + $expectedResponse = new EntryGroup(); + $expectedResponse->setName($name2); + $expectedResponse->setUid($uid); + $expectedResponse->setDescription($description); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->entryGroupName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]'); + $request = (new GetEntryGroupRequest()) + ->setName($formattedName); + $response = $gapicClient->getEntryGroup($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.dataplex.v1.CatalogService/GetEntryGroup', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getEntryGroupExceptionTest() + { + $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->entryGroupName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]'); + $request = (new GetEntryGroupRequest()) + ->setName($formattedName); + try { + $gapicClient->getEntryGroup($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 getEntryLinkTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $entryLinkType = 'entryLinkType-1478418222'; + $expectedResponse = new EntryLink(); + $expectedResponse->setName($name2); + $expectedResponse->setEntryLinkType($entryLinkType); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->entryLinkName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]', '[ENTRY_LINK]'); + $request = (new GetEntryLinkRequest()) + ->setName($formattedName); + $response = $gapicClient->getEntryLink($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.dataplex.v1.CatalogService/GetEntryLink', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getEntryLinkExceptionTest() + { + $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->entryLinkName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]', '[ENTRY_LINK]'); + $request = (new GetEntryLinkRequest()) + ->setName($formattedName); + try { + $gapicClient->getEntryLink($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 getEntryTypeTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $uid = 'uid115792'; + $description = 'description-1724546052'; + $displayName = 'displayName1615086568'; + $etag = 'etag3123477'; + $platform = 'platform1874684019'; + $system = 'system-887328209'; + $expectedResponse = new EntryType(); + $expectedResponse->setName($name2); + $expectedResponse->setUid($uid); + $expectedResponse->setDescription($description); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setEtag($etag); + $expectedResponse->setPlatform($platform); + $expectedResponse->setSystem($system); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->entryTypeName('[PROJECT]', '[LOCATION]', '[ENTRY_TYPE]'); + $request = (new GetEntryTypeRequest()) + ->setName($formattedName); + $response = $gapicClient->getEntryType($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.dataplex.v1.CatalogService/GetEntryType', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getEntryTypeExceptionTest() + { + $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->entryTypeName('[PROJECT]', '[LOCATION]', '[ENTRY_TYPE]'); + $request = (new GetEntryTypeRequest()) + ->setName($formattedName); + try { + $gapicClient->getEntryType($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 getMetadataFeedTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $uid = 'uid115792'; + $pubsubTopic = 'pubsubTopic-338126829'; + $expectedResponse = new MetadataFeed(); + $expectedResponse->setName($name2); + $expectedResponse->setUid($uid); + $expectedResponse->setPubsubTopic($pubsubTopic); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->metadataFeedName('[PROJECT]', '[LOCATION]', '[METADATA_FEED]'); + $request = (new GetMetadataFeedRequest()) + ->setName($formattedName); + $response = $gapicClient->getMetadataFeed($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.dataplex.v1.CatalogService/GetMetadataFeed', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getMetadataFeedExceptionTest() + { + $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->metadataFeedName('[PROJECT]', '[LOCATION]', '[METADATA_FEED]'); + $request = (new GetMetadataFeedRequest()) + ->setName($formattedName); + try { + $gapicClient->getMetadataFeed($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 getMetadataJobTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $uid = 'uid115792'; + $expectedResponse = new MetadataJob(); + $expectedResponse->setName($name2); + $expectedResponse->setUid($uid); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->metadataJobName('[PROJECT]', '[LOCATION]', '[METADATAJOB]'); + $request = (new GetMetadataJobRequest()) + ->setName($formattedName); + $response = $gapicClient->getMetadataJob($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.dataplex.v1.CatalogService/GetMetadataJob', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getMetadataJobExceptionTest() + { + $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->metadataJobName('[PROJECT]', '[LOCATION]', '[METADATAJOB]'); + $request = (new GetMetadataJobRequest()) + ->setName($formattedName); + try { + $gapicClient->getMetadataJob($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 listAspectTypesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $aspectTypesElement = new AspectType(); + $aspectTypes = [ + $aspectTypesElement, + ]; + $expectedResponse = new ListAspectTypesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setAspectTypes($aspectTypes); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListAspectTypesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listAspectTypes($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getAspectTypes()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataplex.v1.CatalogService/ListAspectTypes', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAspectTypesExceptionTest() + { + $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->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListAspectTypesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listAspectTypes($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 listEntriesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $entriesElement = new Entry(); + $entries = [ + $entriesElement, + ]; + $expectedResponse = new ListEntriesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setEntries($entries); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->entryGroupName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]'); + $request = (new ListEntriesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listEntries($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getEntries()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataplex.v1.CatalogService/ListEntries', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listEntriesExceptionTest() + { + $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->entryGroupName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]'); + $request = (new ListEntriesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listEntries($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 listEntryGroupsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $entryGroupsElement = new EntryGroup(); + $entryGroups = [ + $entryGroupsElement, + ]; + $expectedResponse = new ListEntryGroupsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setEntryGroups($entryGroups); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListEntryGroupsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listEntryGroups($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getEntryGroups()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataplex.v1.CatalogService/ListEntryGroups', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listEntryGroupsExceptionTest() + { + $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->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListEntryGroupsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listEntryGroups($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 listEntryTypesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $entryTypesElement = new EntryType(); + $entryTypes = [ + $entryTypesElement, + ]; + $expectedResponse = new ListEntryTypesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setEntryTypes($entryTypes); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListEntryTypesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listEntryTypes($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getEntryTypes()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataplex.v1.CatalogService/ListEntryTypes', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listEntryTypesExceptionTest() + { + $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->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListEntryTypesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listEntryTypes($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 listMetadataFeedsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $metadataFeedsElement = new MetadataFeed(); + $metadataFeeds = [ + $metadataFeedsElement, + ]; + $expectedResponse = new ListMetadataFeedsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setMetadataFeeds($metadataFeeds); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListMetadataFeedsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listMetadataFeeds($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getMetadataFeeds()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataplex.v1.CatalogService/ListMetadataFeeds', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listMetadataFeedsExceptionTest() + { + $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->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListMetadataFeedsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listMetadataFeeds($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 listMetadataJobsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $metadataJobsElement = new MetadataJob(); + $metadataJobs = [ + $metadataJobsElement, + ]; + $expectedResponse = new ListMetadataJobsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setMetadataJobs($metadataJobs); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListMetadataJobsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listMetadataJobs($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getMetadataJobs()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataplex.v1.CatalogService/ListMetadataJobs', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listMetadataJobsExceptionTest() + { + $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->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListMetadataJobsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listMetadataJobs($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 lookupContextTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $context2 = 'context2-406810206'; + $expectedResponse = new LookupContextResponse(); + $expectedResponse->setContext($context2); + $transport->addResponse($expectedResponse); + // Mock request + $name = 'name3373707'; + $formattedResources = [ + $gapicClient->entryName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]', '[ENTRY]'), + ]; + $request = (new LookupContextRequest()) + ->setName($name) + ->setResources($formattedResources); + $response = $gapicClient->lookupContext($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.dataplex.v1.CatalogService/LookupContext', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($name, $actualValue); + $actualValue = $actualRequestObject->getResources(); + $this->assertProtobufEquals($formattedResources, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function lookupContextExceptionTest() + { + $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 + $name = 'name3373707'; + $formattedResources = [ + $gapicClient->entryName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]', '[ENTRY]'), + ]; + $request = (new LookupContextRequest()) + ->setName($name) + ->setResources($formattedResources); + try { + $gapicClient->lookupContext($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 lookupEntryTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $entryType = 'entryType-1965312281'; + $parentEntry = 'parentEntry1393020061'; + $fullyQualifiedName = 'fullyQualifiedName338146659'; + $expectedResponse = new Entry(); + $expectedResponse->setName($name2); + $expectedResponse->setEntryType($entryType); + $expectedResponse->setParentEntry($parentEntry); + $expectedResponse->setFullyQualifiedName($fullyQualifiedName); + $transport->addResponse($expectedResponse); + // Mock request + $name = 'name3373707'; + $formattedEntry = $gapicClient->entryName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]', '[ENTRY]'); + $request = (new LookupEntryRequest()) + ->setName($name) + ->setEntry($formattedEntry); + $response = $gapicClient->lookupEntry($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.dataplex.v1.CatalogService/LookupEntry', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($name, $actualValue); + $actualValue = $actualRequestObject->getEntry(); + $this->assertProtobufEquals($formattedEntry, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function lookupEntryExceptionTest() + { + $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 + $name = 'name3373707'; + $formattedEntry = $gapicClient->entryName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]', '[ENTRY]'); + $request = (new LookupEntryRequest()) + ->setName($name) + ->setEntry($formattedEntry); + try { + $gapicClient->lookupEntry($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 lookupEntryLinksTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $entryLinksElement = new EntryLink(); + $entryLinks = [ + $entryLinksElement, + ]; + $expectedResponse = new LookupEntryLinksResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setEntryLinks($entryLinks); + $transport->addResponse($expectedResponse); + // Mock request + $name = 'name3373707'; + $formattedEntry = $gapicClient->entryName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]', '[ENTRY]'); + $request = (new LookupEntryLinksRequest()) + ->setName($name) + ->setEntry($formattedEntry); + $response = $gapicClient->lookupEntryLinks($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getEntryLinks()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataplex.v1.CatalogService/LookupEntryLinks', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($name, $actualValue); + $actualValue = $actualRequestObject->getEntry(); + $this->assertProtobufEquals($formattedEntry, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function lookupEntryLinksExceptionTest() + { + $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 + $name = 'name3373707'; + $formattedEntry = $gapicClient->entryName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]', '[ENTRY]'); + $request = (new LookupEntryLinksRequest()) + ->setName($name) + ->setEntry($formattedEntry); + try { + $gapicClient->lookupEntryLinks($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 modifyEntryTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $entryType = 'entryType-1965312281'; + $parentEntry = 'parentEntry1393020061'; + $fullyQualifiedName = 'fullyQualifiedName338146659'; + $expectedResponse = new Entry(); + $expectedResponse->setName($name2); + $expectedResponse->setEntryType($entryType); + $expectedResponse->setParentEntry($parentEntry); + $expectedResponse->setFullyQualifiedName($fullyQualifiedName); + $transport->addResponse($expectedResponse); + // Mock request + $name = 'name3373707'; + $entry = new Entry(); + $entryEntryType = 'entryEntryType884603514'; + $entry->setEntryType($entryEntryType); + $request = (new ModifyEntryRequest()) + ->setName($name) + ->setEntry($entry); + $response = $gapicClient->modifyEntry($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.dataplex.v1.CatalogService/ModifyEntry', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($name, $actualValue); + $actualValue = $actualRequestObject->getEntry(); + $this->assertProtobufEquals($entry, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function modifyEntryExceptionTest() + { + $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 + $name = 'name3373707'; + $entry = new Entry(); + $entryEntryType = 'entryEntryType884603514'; + $entry->setEntryType($entryEntryType); + $request = (new ModifyEntryRequest()) + ->setName($name) + ->setEntry($entry); + try { + $gapicClient->modifyEntry($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 searchEntriesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $totalSize = 705419236; + $nextPageToken = ''; + $resultsElement = new SearchEntriesResult(); + $results = [ + $resultsElement, + ]; + $expectedResponse = new SearchEntriesResponse(); + $expectedResponse->setTotalSize($totalSize); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setResults($results); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $query = 'query107944136'; + $request = (new SearchEntriesRequest()) + ->setName($formattedName) + ->setQuery($query); + $response = $gapicClient->searchEntries($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getResults()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataplex.v1.CatalogService/SearchEntries', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $actualValue = $actualRequestObject->getQuery(); + $this->assertProtobufEquals($query, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function searchEntriesExceptionTest() + { + $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->locationName('[PROJECT]', '[LOCATION]'); + $query = 'query107944136'; + $request = (new SearchEntriesRequest()) + ->setName($formattedName) + ->setQuery($query); + try { + $gapicClient->searchEntries($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 updateAspectTypeTest() + { + $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/updateAspectTypeTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $uid = 'uid115792'; + $description = 'description-1724546052'; + $displayName = 'displayName1615086568'; + $etag = 'etag3123477'; + $expectedResponse = new AspectType(); + $expectedResponse->setName($name); + $expectedResponse->setUid($uid); + $expectedResponse->setDescription($description); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setEtag($etag); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/updateAspectTypeTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $aspectType = new AspectType(); + $aspectTypeMetadataTemplate = new MetadataTemplate(); + $metadataTemplateName = 'metadataTemplateName393703156'; + $aspectTypeMetadataTemplate->setName($metadataTemplateName); + $metadataTemplateType = 'metadataTemplateType393905059'; + $aspectTypeMetadataTemplate->setType($metadataTemplateType); + $aspectType->setMetadataTemplate($aspectTypeMetadataTemplate); + $updateMask = new FieldMask(); + $request = (new UpdateAspectTypeRequest()) + ->setAspectType($aspectType) + ->setUpdateMask($updateMask); + $response = $gapicClient->updateAspectType($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.dataplex.v1.CatalogService/UpdateAspectType', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getAspectType(); + $this->assertProtobufEquals($aspectType, $actualValue); + $actualValue = $actualApiRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateAspectTypeTest'); + $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 updateAspectTypeExceptionTest() + { + $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/updateAspectTypeTest'); + $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 + $aspectType = new AspectType(); + $aspectTypeMetadataTemplate = new MetadataTemplate(); + $metadataTemplateName = 'metadataTemplateName393703156'; + $aspectTypeMetadataTemplate->setName($metadataTemplateName); + $metadataTemplateType = 'metadataTemplateType393905059'; + $aspectTypeMetadataTemplate->setType($metadataTemplateType); + $aspectType->setMetadataTemplate($aspectTypeMetadataTemplate); + $updateMask = new FieldMask(); + $request = (new UpdateAspectTypeRequest()) + ->setAspectType($aspectType) + ->setUpdateMask($updateMask); + $response = $gapicClient->updateAspectType($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateAspectTypeTest'); + 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 updateEntryTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $entryType = 'entryType-1965312281'; + $parentEntry = 'parentEntry1393020061'; + $fullyQualifiedName = 'fullyQualifiedName338146659'; + $expectedResponse = new Entry(); + $expectedResponse->setName($name); + $expectedResponse->setEntryType($entryType); + $expectedResponse->setParentEntry($parentEntry); + $expectedResponse->setFullyQualifiedName($fullyQualifiedName); + $transport->addResponse($expectedResponse); + // Mock request + $entry = new Entry(); + $entryEntryType = 'entryEntryType884603514'; + $entry->setEntryType($entryEntryType); + $request = (new UpdateEntryRequest()) + ->setEntry($entry); + $response = $gapicClient->updateEntry($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.dataplex.v1.CatalogService/UpdateEntry', $actualFuncCall); + $actualValue = $actualRequestObject->getEntry(); + $this->assertProtobufEquals($entry, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateEntryExceptionTest() + { + $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 + $entry = new Entry(); + $entryEntryType = 'entryEntryType884603514'; + $entry->setEntryType($entryEntryType); + $request = (new UpdateEntryRequest()) + ->setEntry($entry); + try { + $gapicClient->updateEntry($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 updateEntryGroupTest() + { + $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/updateEntryGroupTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $uid = 'uid115792'; + $description = 'description-1724546052'; + $displayName = 'displayName1615086568'; + $etag = 'etag3123477'; + $expectedResponse = new EntryGroup(); + $expectedResponse->setName($name); + $expectedResponse->setUid($uid); + $expectedResponse->setDescription($description); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setEtag($etag); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/updateEntryGroupTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $entryGroup = new EntryGroup(); + $updateMask = new FieldMask(); + $request = (new UpdateEntryGroupRequest()) + ->setEntryGroup($entryGroup) + ->setUpdateMask($updateMask); + $response = $gapicClient->updateEntryGroup($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.dataplex.v1.CatalogService/UpdateEntryGroup', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getEntryGroup(); + $this->assertProtobufEquals($entryGroup, $actualValue); + $actualValue = $actualApiRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateEntryGroupTest'); + $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 updateEntryGroupExceptionTest() + { + $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/updateEntryGroupTest'); + $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 + $entryGroup = new EntryGroup(); + $updateMask = new FieldMask(); + $request = (new UpdateEntryGroupRequest()) + ->setEntryGroup($entryGroup) + ->setUpdateMask($updateMask); + $response = $gapicClient->updateEntryGroup($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateEntryGroupTest'); + 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 updateEntryLinkTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $entryLinkType = 'entryLinkType-1478418222'; + $expectedResponse = new EntryLink(); + $expectedResponse->setName($name); + $expectedResponse->setEntryLinkType($entryLinkType); + $transport->addResponse($expectedResponse); + // Mock request + $entryLink = new EntryLink(); + $entryLinkEntryLinkType = 'entryLinkEntryLinkType-1556238150'; + $entryLink->setEntryLinkType($entryLinkEntryLinkType); + $entryLinkEntryReferences = []; + $entryLink->setEntryReferences($entryLinkEntryReferences); + $request = (new UpdateEntryLinkRequest()) + ->setEntryLink($entryLink); + $response = $gapicClient->updateEntryLink($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.dataplex.v1.CatalogService/UpdateEntryLink', $actualFuncCall); + $actualValue = $actualRequestObject->getEntryLink(); + $this->assertProtobufEquals($entryLink, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateEntryLinkExceptionTest() + { + $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 + $entryLink = new EntryLink(); + $entryLinkEntryLinkType = 'entryLinkEntryLinkType-1556238150'; + $entryLink->setEntryLinkType($entryLinkEntryLinkType); + $entryLinkEntryReferences = []; + $entryLink->setEntryReferences($entryLinkEntryReferences); + $request = (new UpdateEntryLinkRequest()) + ->setEntryLink($entryLink); + try { + $gapicClient->updateEntryLink($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 updateEntryTypeTest() + { + $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/updateEntryTypeTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $uid = 'uid115792'; + $description = 'description-1724546052'; + $displayName = 'displayName1615086568'; + $etag = 'etag3123477'; + $platform = 'platform1874684019'; + $system = 'system-887328209'; + $expectedResponse = new EntryType(); + $expectedResponse->setName($name); + $expectedResponse->setUid($uid); + $expectedResponse->setDescription($description); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setEtag($etag); + $expectedResponse->setPlatform($platform); + $expectedResponse->setSystem($system); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/updateEntryTypeTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $entryType = new EntryType(); + $updateMask = new FieldMask(); + $request = (new UpdateEntryTypeRequest()) + ->setEntryType($entryType) + ->setUpdateMask($updateMask); + $response = $gapicClient->updateEntryType($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.dataplex.v1.CatalogService/UpdateEntryType', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getEntryType(); + $this->assertProtobufEquals($entryType, $actualValue); + $actualValue = $actualApiRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateEntryTypeTest'); + $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 updateEntryTypeExceptionTest() + { + $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/updateEntryTypeTest'); + $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 + $entryType = new EntryType(); + $updateMask = new FieldMask(); + $request = (new UpdateEntryTypeRequest()) + ->setEntryType($entryType) + ->setUpdateMask($updateMask); + $response = $gapicClient->updateEntryType($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateEntryTypeTest'); + 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 updateMetadataFeedTest() + { + $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/updateMetadataFeedTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $uid = 'uid115792'; + $pubsubTopic = 'pubsubTopic-338126829'; + $expectedResponse = new MetadataFeed(); + $expectedResponse->setName($name); + $expectedResponse->setUid($uid); + $expectedResponse->setPubsubTopic($pubsubTopic); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/updateMetadataFeedTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $metadataFeed = new MetadataFeed(); + $metadataFeedScope = new Scope(); + $metadataFeed->setScope($metadataFeedScope); + $request = (new UpdateMetadataFeedRequest()) + ->setMetadataFeed($metadataFeed); + $response = $gapicClient->updateMetadataFeed($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.dataplex.v1.CatalogService/UpdateMetadataFeed', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getMetadataFeed(); + $this->assertProtobufEquals($metadataFeed, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateMetadataFeedTest'); + $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 updateMetadataFeedExceptionTest() + { + $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/updateMetadataFeedTest'); + $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 + $metadataFeed = new MetadataFeed(); + $metadataFeedScope = new Scope(); + $metadataFeed->setScope($metadataFeedScope); + $request = (new UpdateMetadataFeedRequest()) + ->setMetadataFeed($metadataFeed); + $response = $gapicClient->updateMetadataFeed($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateMetadataFeedTest'); + 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 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 getIamPolicyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $version = 351608024; + $etag = '21'; + $expectedResponse = new Policy(); + $expectedResponse->setVersion($version); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $resource = 'resource-341064690'; + $request = (new GetIamPolicyRequest()) + ->setResource($resource); + $response = $gapicClient->getIamPolicy($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.iam.v1.IAMPolicy/GetIamPolicy', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getIamPolicyExceptionTest() + { + $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 + $resource = 'resource-341064690'; + $request = (new GetIamPolicyRequest()) + ->setResource($resource); + try { + $gapicClient->getIamPolicy($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 setIamPolicyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $version = 351608024; + $etag = '21'; + $expectedResponse = new Policy(); + $expectedResponse->setVersion($version); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $resource = 'resource-341064690'; + $policy = new Policy(); + $request = (new SetIamPolicyRequest()) + ->setResource($resource) + ->setPolicy($policy); + $response = $gapicClient->setIamPolicy($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.iam.v1.IAMPolicy/SetIamPolicy', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $actualValue = $actualRequestObject->getPolicy(); + $this->assertProtobufEquals($policy, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setIamPolicyExceptionTest() + { + $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 + $resource = 'resource-341064690'; + $policy = new Policy(); + $request = (new SetIamPolicyRequest()) + ->setResource($resource) + ->setPolicy($policy); + try { + $gapicClient->setIamPolicy($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 testIamPermissionsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new TestIamPermissionsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $resource = 'resource-341064690'; + $permissions = []; + $request = (new TestIamPermissionsRequest()) + ->setResource($resource) + ->setPermissions($permissions); + $response = $gapicClient->testIamPermissions($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.iam.v1.IAMPolicy/TestIamPermissions', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $actualValue = $actualRequestObject->getPermissions(); + $this->assertProtobufEquals($permissions, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function testIamPermissionsExceptionTest() + { + $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 + $resource = 'resource-341064690'; + $permissions = []; + $request = (new TestIamPermissionsRequest()) + ->setResource($resource) + ->setPermissions($permissions); + try { + $gapicClient->testIamPermissions($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 cancelMetadataJobAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->metadataJobName('[PROJECT]', '[LOCATION]', '[METADATAJOB]'); + $request = (new CancelMetadataJobRequest()) + ->setName($formattedName); + $gapicClient->cancelMetadataJobAsync($request)->wait(); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataplex.v1.CatalogService/CancelMetadataJob', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/CmekServiceClientTest.php b/owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/CmekServiceClientTest.php new file mode 100644 index 000000000000..693a201cae5e --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/CmekServiceClientTest.php @@ -0,0 +1,1024 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return CmekServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new CmekServiceClient($options); + } + + /** @test */ + public function createEncryptionConfigTest() + { + $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/createEncryptionConfigTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $key = 'key106079'; + $etag = 'etag3123477'; + $enableMetastoreEncryption = true; + $expectedResponse = new EncryptionConfig(); + $expectedResponse->setName($name); + $expectedResponse->setKey($key); + $expectedResponse->setEtag($etag); + $expectedResponse->setEnableMetastoreEncryption($enableMetastoreEncryption); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createEncryptionConfigTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $encryptionConfigId = 'encryptionConfigId-1813655172'; + $encryptionConfig = new EncryptionConfig(); + $request = (new CreateEncryptionConfigRequest()) + ->setParent($formattedParent) + ->setEncryptionConfigId($encryptionConfigId) + ->setEncryptionConfig($encryptionConfig); + $response = $gapicClient->createEncryptionConfig($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.dataplex.v1.CmekService/CreateEncryptionConfig', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getEncryptionConfigId(); + $this->assertProtobufEquals($encryptionConfigId, $actualValue); + $actualValue = $actualApiRequestObject->getEncryptionConfig(); + $this->assertProtobufEquals($encryptionConfig, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createEncryptionConfigTest'); + $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 createEncryptionConfigExceptionTest() + { + $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/createEncryptionConfigTest'); + $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]'); + $encryptionConfigId = 'encryptionConfigId-1813655172'; + $encryptionConfig = new EncryptionConfig(); + $request = (new CreateEncryptionConfigRequest()) + ->setParent($formattedParent) + ->setEncryptionConfigId($encryptionConfigId) + ->setEncryptionConfig($encryptionConfig); + $response = $gapicClient->createEncryptionConfig($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createEncryptionConfigTest'); + 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 deleteEncryptionConfigTest() + { + $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/deleteEncryptionConfigTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new GPBEmpty(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/deleteEncryptionConfigTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->encryptionConfigName('[ORGANIZATION]', '[LOCATION]', '[ENCRYPTION_CONFIG]'); + $request = (new DeleteEncryptionConfigRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteEncryptionConfig($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.dataplex.v1.CmekService/DeleteEncryptionConfig', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteEncryptionConfigTest'); + $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 deleteEncryptionConfigExceptionTest() + { + $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/deleteEncryptionConfigTest'); + $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->encryptionConfigName('[ORGANIZATION]', '[LOCATION]', '[ENCRYPTION_CONFIG]'); + $request = (new DeleteEncryptionConfigRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteEncryptionConfig($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteEncryptionConfigTest'); + 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 getEncryptionConfigTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $key = 'key106079'; + $etag = 'etag3123477'; + $enableMetastoreEncryption = true; + $expectedResponse = new EncryptionConfig(); + $expectedResponse->setName($name2); + $expectedResponse->setKey($key); + $expectedResponse->setEtag($etag); + $expectedResponse->setEnableMetastoreEncryption($enableMetastoreEncryption); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->encryptionConfigName('[ORGANIZATION]', '[LOCATION]', '[ENCRYPTION_CONFIG]'); + $request = (new GetEncryptionConfigRequest()) + ->setName($formattedName); + $response = $gapicClient->getEncryptionConfig($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.dataplex.v1.CmekService/GetEncryptionConfig', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getEncryptionConfigExceptionTest() + { + $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->encryptionConfigName('[ORGANIZATION]', '[LOCATION]', '[ENCRYPTION_CONFIG]'); + $request = (new GetEncryptionConfigRequest()) + ->setName($formattedName); + try { + $gapicClient->getEncryptionConfig($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 listEncryptionConfigsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $encryptionConfigsElement = new EncryptionConfig(); + $encryptionConfigs = [ + $encryptionConfigsElement, + ]; + $expectedResponse = new ListEncryptionConfigsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setEncryptionConfigs($encryptionConfigs); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $request = (new ListEncryptionConfigsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listEncryptionConfigs($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getEncryptionConfigs()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataplex.v1.CmekService/ListEncryptionConfigs', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listEncryptionConfigsExceptionTest() + { + $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 ListEncryptionConfigsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listEncryptionConfigs($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 updateEncryptionConfigTest() + { + $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/updateEncryptionConfigTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $key = 'key106079'; + $etag = 'etag3123477'; + $enableMetastoreEncryption = true; + $expectedResponse = new EncryptionConfig(); + $expectedResponse->setName($name); + $expectedResponse->setKey($key); + $expectedResponse->setEtag($etag); + $expectedResponse->setEnableMetastoreEncryption($enableMetastoreEncryption); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/updateEncryptionConfigTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $encryptionConfig = new EncryptionConfig(); + $request = (new UpdateEncryptionConfigRequest()) + ->setEncryptionConfig($encryptionConfig); + $response = $gapicClient->updateEncryptionConfig($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.dataplex.v1.CmekService/UpdateEncryptionConfig', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getEncryptionConfig(); + $this->assertProtobufEquals($encryptionConfig, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateEncryptionConfigTest'); + $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 updateEncryptionConfigExceptionTest() + { + $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/updateEncryptionConfigTest'); + $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 + $encryptionConfig = new EncryptionConfig(); + $request = (new UpdateEncryptionConfigRequest()) + ->setEncryptionConfig($encryptionConfig); + $response = $gapicClient->updateEncryptionConfig($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateEncryptionConfigTest'); + 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 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 getIamPolicyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $version = 351608024; + $etag = '21'; + $expectedResponse = new Policy(); + $expectedResponse->setVersion($version); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $resource = 'resource-341064690'; + $request = (new GetIamPolicyRequest()) + ->setResource($resource); + $response = $gapicClient->getIamPolicy($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.iam.v1.IAMPolicy/GetIamPolicy', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getIamPolicyExceptionTest() + { + $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 + $resource = 'resource-341064690'; + $request = (new GetIamPolicyRequest()) + ->setResource($resource); + try { + $gapicClient->getIamPolicy($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 setIamPolicyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $version = 351608024; + $etag = '21'; + $expectedResponse = new Policy(); + $expectedResponse->setVersion($version); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $resource = 'resource-341064690'; + $policy = new Policy(); + $request = (new SetIamPolicyRequest()) + ->setResource($resource) + ->setPolicy($policy); + $response = $gapicClient->setIamPolicy($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.iam.v1.IAMPolicy/SetIamPolicy', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $actualValue = $actualRequestObject->getPolicy(); + $this->assertProtobufEquals($policy, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setIamPolicyExceptionTest() + { + $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 + $resource = 'resource-341064690'; + $policy = new Policy(); + $request = (new SetIamPolicyRequest()) + ->setResource($resource) + ->setPolicy($policy); + try { + $gapicClient->setIamPolicy($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 testIamPermissionsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new TestIamPermissionsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $resource = 'resource-341064690'; + $permissions = []; + $request = (new TestIamPermissionsRequest()) + ->setResource($resource) + ->setPermissions($permissions); + $response = $gapicClient->testIamPermissions($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.iam.v1.IAMPolicy/TestIamPermissions', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $actualValue = $actualRequestObject->getPermissions(); + $this->assertProtobufEquals($permissions, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function testIamPermissionsExceptionTest() + { + $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 + $resource = 'resource-341064690'; + $permissions = []; + $request = (new TestIamPermissionsRequest()) + ->setResource($resource) + ->setPermissions($permissions); + try { + $gapicClient->testIamPermissions($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 createEncryptionConfigAsyncTest() + { + $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/createEncryptionConfigTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $key = 'key106079'; + $etag = 'etag3123477'; + $enableMetastoreEncryption = true; + $expectedResponse = new EncryptionConfig(); + $expectedResponse->setName($name); + $expectedResponse->setKey($key); + $expectedResponse->setEtag($etag); + $expectedResponse->setEnableMetastoreEncryption($enableMetastoreEncryption); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createEncryptionConfigTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); + $encryptionConfigId = 'encryptionConfigId-1813655172'; + $encryptionConfig = new EncryptionConfig(); + $request = (new CreateEncryptionConfigRequest()) + ->setParent($formattedParent) + ->setEncryptionConfigId($encryptionConfigId) + ->setEncryptionConfig($encryptionConfig); + $response = $gapicClient->createEncryptionConfigAsync($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.dataplex.v1.CmekService/CreateEncryptionConfig', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getEncryptionConfigId(); + $this->assertProtobufEquals($encryptionConfigId, $actualValue); + $actualValue = $actualApiRequestObject->getEncryptionConfig(); + $this->assertProtobufEquals($encryptionConfig, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createEncryptionConfigTest'); + $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/Dataplex/v1/tests/Unit/V1/Client/ContentServiceClientTest.php b/owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/ContentServiceClientTest.php new file mode 100644 index 000000000000..e85bdcdb03e1 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/ContentServiceClientTest.php @@ -0,0 +1,399 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return ContentServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new ContentServiceClient($options); + } + + /** @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 getIamPolicyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $version = 351608024; + $etag = '21'; + $expectedResponse = new Policy(); + $expectedResponse->setVersion($version); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $resource = 'resource-341064690'; + $request = (new GetIamPolicyRequest()) + ->setResource($resource); + $response = $gapicClient->getIamPolicy($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.iam.v1.IAMPolicy/GetIamPolicy', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getIamPolicyExceptionTest() + { + $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 + $resource = 'resource-341064690'; + $request = (new GetIamPolicyRequest()) + ->setResource($resource); + try { + $gapicClient->getIamPolicy($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 setIamPolicyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $version = 351608024; + $etag = '21'; + $expectedResponse = new Policy(); + $expectedResponse->setVersion($version); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $resource = 'resource-341064690'; + $policy = new Policy(); + $request = (new SetIamPolicyRequest()) + ->setResource($resource) + ->setPolicy($policy); + $response = $gapicClient->setIamPolicy($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.iam.v1.IAMPolicy/SetIamPolicy', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $actualValue = $actualRequestObject->getPolicy(); + $this->assertProtobufEquals($policy, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setIamPolicyExceptionTest() + { + $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 + $resource = 'resource-341064690'; + $policy = new Policy(); + $request = (new SetIamPolicyRequest()) + ->setResource($resource) + ->setPolicy($policy); + try { + $gapicClient->setIamPolicy($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 testIamPermissionsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new TestIamPermissionsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $resource = 'resource-341064690'; + $permissions = []; + $request = (new TestIamPermissionsRequest()) + ->setResource($resource) + ->setPermissions($permissions); + $response = $gapicClient->testIamPermissions($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.iam.v1.IAMPolicy/TestIamPermissions', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $actualValue = $actualRequestObject->getPermissions(); + $this->assertProtobufEquals($permissions, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function testIamPermissionsExceptionTest() + { + $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 + $resource = 'resource-341064690'; + $permissions = []; + $request = (new TestIamPermissionsRequest()) + ->setResource($resource) + ->setPermissions($permissions); + try { + $gapicClient->testIamPermissions($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()); + } +} diff --git a/owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/DataProductServiceClientTest.php b/owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/DataProductServiceClientTest.php new file mode 100644 index 000000000000..41ca5546cae5 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/DataProductServiceClientTest.php @@ -0,0 +1,1665 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return DataProductServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new DataProductServiceClient($options); + } + + /** @test */ + public function createDataAssetTest() + { + $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/createDataAssetTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $uid = 'uid115792'; + $etag = 'etag3123477'; + $resource = 'resource-341064690'; + $expectedResponse = new DataAsset(); + $expectedResponse->setName($name); + $expectedResponse->setUid($uid); + $expectedResponse->setEtag($etag); + $expectedResponse->setResource($resource); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createDataAssetTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->dataProductName('[PROJECT]', '[LOCATION]', '[DATA_PRODUCT]'); + $dataAsset = new DataAsset(); + $dataAssetResource = 'dataAssetResource-1385846892'; + $dataAsset->setResource($dataAssetResource); + $request = (new CreateDataAssetRequest()) + ->setParent($formattedParent) + ->setDataAsset($dataAsset); + $response = $gapicClient->createDataAsset($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.dataplex.v1.DataProductService/CreateDataAsset', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getDataAsset(); + $this->assertProtobufEquals($dataAsset, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createDataAssetTest'); + $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 createDataAssetExceptionTest() + { + $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/createDataAssetTest'); + $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->dataProductName('[PROJECT]', '[LOCATION]', '[DATA_PRODUCT]'); + $dataAsset = new DataAsset(); + $dataAssetResource = 'dataAssetResource-1385846892'; + $dataAsset->setResource($dataAssetResource); + $request = (new CreateDataAssetRequest()) + ->setParent($formattedParent) + ->setDataAsset($dataAsset); + $response = $gapicClient->createDataAsset($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createDataAssetTest'); + 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 createDataProductTest() + { + $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/createDataProductTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $uid = 'uid115792'; + $displayName = 'displayName1615086568'; + $etag = 'etag3123477'; + $description = 'description-1724546052'; + $icon = '121'; + $assetCount = 1582344960; + $expectedResponse = new DataProduct(); + $expectedResponse->setName($name); + $expectedResponse->setUid($uid); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setEtag($etag); + $expectedResponse->setDescription($description); + $expectedResponse->setIcon($icon); + $expectedResponse->setAssetCount($assetCount); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createDataProductTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $dataProduct = new DataProduct(); + $dataProductDisplayName = 'dataProductDisplayName862153544'; + $dataProduct->setDisplayName($dataProductDisplayName); + $dataProductOwnerEmails = []; + $dataProduct->setOwnerEmails($dataProductOwnerEmails); + $request = (new CreateDataProductRequest()) + ->setParent($formattedParent) + ->setDataProduct($dataProduct); + $response = $gapicClient->createDataProduct($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.dataplex.v1.DataProductService/CreateDataProduct', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getDataProduct(); + $this->assertProtobufEquals($dataProduct, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createDataProductTest'); + $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 createDataProductExceptionTest() + { + $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/createDataProductTest'); + $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->locationName('[PROJECT]', '[LOCATION]'); + $dataProduct = new DataProduct(); + $dataProductDisplayName = 'dataProductDisplayName862153544'; + $dataProduct->setDisplayName($dataProductDisplayName); + $dataProductOwnerEmails = []; + $dataProduct->setOwnerEmails($dataProductOwnerEmails); + $request = (new CreateDataProductRequest()) + ->setParent($formattedParent) + ->setDataProduct($dataProduct); + $response = $gapicClient->createDataProduct($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createDataProductTest'); + 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 deleteDataAssetTest() + { + $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/deleteDataAssetTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new GPBEmpty(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/deleteDataAssetTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->dataAssetName('[PROJECT]', '[LOCATION]', '[DATA_PRODUCT]', '[DATA_ASSET]'); + $request = (new DeleteDataAssetRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteDataAsset($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.dataplex.v1.DataProductService/DeleteDataAsset', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteDataAssetTest'); + $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 deleteDataAssetExceptionTest() + { + $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/deleteDataAssetTest'); + $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->dataAssetName('[PROJECT]', '[LOCATION]', '[DATA_PRODUCT]', '[DATA_ASSET]'); + $request = (new DeleteDataAssetRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteDataAsset($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteDataAssetTest'); + 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 deleteDataProductTest() + { + $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/deleteDataProductTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new GPBEmpty(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/deleteDataProductTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->dataProductName('[PROJECT]', '[LOCATION]', '[DATA_PRODUCT]'); + $request = (new DeleteDataProductRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteDataProduct($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.dataplex.v1.DataProductService/DeleteDataProduct', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteDataProductTest'); + $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 deleteDataProductExceptionTest() + { + $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/deleteDataProductTest'); + $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->dataProductName('[PROJECT]', '[LOCATION]', '[DATA_PRODUCT]'); + $request = (new DeleteDataProductRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteDataProduct($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteDataProductTest'); + 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 getDataAssetTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $uid = 'uid115792'; + $etag = 'etag3123477'; + $resource = 'resource-341064690'; + $expectedResponse = new DataAsset(); + $expectedResponse->setName($name2); + $expectedResponse->setUid($uid); + $expectedResponse->setEtag($etag); + $expectedResponse->setResource($resource); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->dataAssetName('[PROJECT]', '[LOCATION]', '[DATA_PRODUCT]', '[DATA_ASSET]'); + $request = (new GetDataAssetRequest()) + ->setName($formattedName); + $response = $gapicClient->getDataAsset($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.dataplex.v1.DataProductService/GetDataAsset', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDataAssetExceptionTest() + { + $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->dataAssetName('[PROJECT]', '[LOCATION]', '[DATA_PRODUCT]', '[DATA_ASSET]'); + $request = (new GetDataAssetRequest()) + ->setName($formattedName); + try { + $gapicClient->getDataAsset($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 getDataProductTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $uid = 'uid115792'; + $displayName = 'displayName1615086568'; + $etag = 'etag3123477'; + $description = 'description-1724546052'; + $icon = '121'; + $assetCount = 1582344960; + $expectedResponse = new DataProduct(); + $expectedResponse->setName($name2); + $expectedResponse->setUid($uid); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setEtag($etag); + $expectedResponse->setDescription($description); + $expectedResponse->setIcon($icon); + $expectedResponse->setAssetCount($assetCount); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->dataProductName('[PROJECT]', '[LOCATION]', '[DATA_PRODUCT]'); + $request = (new GetDataProductRequest()) + ->setName($formattedName); + $response = $gapicClient->getDataProduct($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.dataplex.v1.DataProductService/GetDataProduct', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDataProductExceptionTest() + { + $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->dataProductName('[PROJECT]', '[LOCATION]', '[DATA_PRODUCT]'); + $request = (new GetDataProductRequest()) + ->setName($formattedName); + try { + $gapicClient->getDataProduct($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 listDataAssetsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $dataAssetsElement = new DataAsset(); + $dataAssets = [ + $dataAssetsElement, + ]; + $expectedResponse = new ListDataAssetsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setDataAssets($dataAssets); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->dataProductName('[PROJECT]', '[LOCATION]', '[DATA_PRODUCT]'); + $request = (new ListDataAssetsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listDataAssets($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getDataAssets()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataplex.v1.DataProductService/ListDataAssets', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDataAssetsExceptionTest() + { + $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->dataProductName('[PROJECT]', '[LOCATION]', '[DATA_PRODUCT]'); + $request = (new ListDataAssetsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listDataAssets($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 listDataProductsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $dataProductsElement = new DataProduct(); + $dataProducts = [ + $dataProductsElement, + ]; + $expectedResponse = new ListDataProductsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setDataProducts($dataProducts); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListDataProductsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listDataProducts($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getDataProducts()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataplex.v1.DataProductService/ListDataProducts', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDataProductsExceptionTest() + { + $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->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListDataProductsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listDataProducts($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 requestDataProductAccessTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $changeRequestName = 'changeRequestName-180005270'; + $expectedResponse = new RequestDataProductAccessResponse(); + $expectedResponse->setChangeRequestName($changeRequestName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->dataProductName('[PROJECT]', '[LOCATION]', '[DATA_PRODUCT]'); + $changeRequest = new ChangeRequest(); + $request = (new RequestDataProductAccessRequest()) + ->setParent($formattedParent) + ->setChangeRequest($changeRequest); + $response = $gapicClient->requestDataProductAccess($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.dataplex.v1.DataProductService/RequestDataProductAccess', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getChangeRequest(); + $this->assertProtobufEquals($changeRequest, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function requestDataProductAccessExceptionTest() + { + $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->dataProductName('[PROJECT]', '[LOCATION]', '[DATA_PRODUCT]'); + $changeRequest = new ChangeRequest(); + $request = (new RequestDataProductAccessRequest()) + ->setParent($formattedParent) + ->setChangeRequest($changeRequest); + try { + $gapicClient->requestDataProductAccess($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 updateDataAssetTest() + { + $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/updateDataAssetTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $uid = 'uid115792'; + $etag = 'etag3123477'; + $resource = 'resource-341064690'; + $expectedResponse = new DataAsset(); + $expectedResponse->setName($name); + $expectedResponse->setUid($uid); + $expectedResponse->setEtag($etag); + $expectedResponse->setResource($resource); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/updateDataAssetTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $dataAsset = new DataAsset(); + $dataAssetResource = 'dataAssetResource-1385846892'; + $dataAsset->setResource($dataAssetResource); + $request = (new UpdateDataAssetRequest()) + ->setDataAsset($dataAsset); + $response = $gapicClient->updateDataAsset($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.dataplex.v1.DataProductService/UpdateDataAsset', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getDataAsset(); + $this->assertProtobufEquals($dataAsset, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateDataAssetTest'); + $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 updateDataAssetExceptionTest() + { + $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/updateDataAssetTest'); + $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 + $dataAsset = new DataAsset(); + $dataAssetResource = 'dataAssetResource-1385846892'; + $dataAsset->setResource($dataAssetResource); + $request = (new UpdateDataAssetRequest()) + ->setDataAsset($dataAsset); + $response = $gapicClient->updateDataAsset($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateDataAssetTest'); + 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 updateDataProductTest() + { + $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/updateDataProductTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $uid = 'uid115792'; + $displayName = 'displayName1615086568'; + $etag = 'etag3123477'; + $description = 'description-1724546052'; + $icon = '121'; + $assetCount = 1582344960; + $expectedResponse = new DataProduct(); + $expectedResponse->setName($name); + $expectedResponse->setUid($uid); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setEtag($etag); + $expectedResponse->setDescription($description); + $expectedResponse->setIcon($icon); + $expectedResponse->setAssetCount($assetCount); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/updateDataProductTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $dataProduct = new DataProduct(); + $dataProductDisplayName = 'dataProductDisplayName862153544'; + $dataProduct->setDisplayName($dataProductDisplayName); + $dataProductOwnerEmails = []; + $dataProduct->setOwnerEmails($dataProductOwnerEmails); + $request = (new UpdateDataProductRequest()) + ->setDataProduct($dataProduct); + $response = $gapicClient->updateDataProduct($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.dataplex.v1.DataProductService/UpdateDataProduct', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getDataProduct(); + $this->assertProtobufEquals($dataProduct, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateDataProductTest'); + $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 updateDataProductExceptionTest() + { + $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/updateDataProductTest'); + $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 + $dataProduct = new DataProduct(); + $dataProductDisplayName = 'dataProductDisplayName862153544'; + $dataProduct->setDisplayName($dataProductDisplayName); + $dataProductOwnerEmails = []; + $dataProduct->setOwnerEmails($dataProductOwnerEmails); + $request = (new UpdateDataProductRequest()) + ->setDataProduct($dataProduct); + $response = $gapicClient->updateDataProduct($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateDataProductTest'); + 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 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 getIamPolicyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $version = 351608024; + $etag = '21'; + $expectedResponse = new Policy(); + $expectedResponse->setVersion($version); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $resource = 'resource-341064690'; + $request = (new GetIamPolicyRequest()) + ->setResource($resource); + $response = $gapicClient->getIamPolicy($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.iam.v1.IAMPolicy/GetIamPolicy', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getIamPolicyExceptionTest() + { + $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 + $resource = 'resource-341064690'; + $request = (new GetIamPolicyRequest()) + ->setResource($resource); + try { + $gapicClient->getIamPolicy($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 setIamPolicyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $version = 351608024; + $etag = '21'; + $expectedResponse = new Policy(); + $expectedResponse->setVersion($version); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $resource = 'resource-341064690'; + $policy = new Policy(); + $request = (new SetIamPolicyRequest()) + ->setResource($resource) + ->setPolicy($policy); + $response = $gapicClient->setIamPolicy($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.iam.v1.IAMPolicy/SetIamPolicy', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $actualValue = $actualRequestObject->getPolicy(); + $this->assertProtobufEquals($policy, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setIamPolicyExceptionTest() + { + $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 + $resource = 'resource-341064690'; + $policy = new Policy(); + $request = (new SetIamPolicyRequest()) + ->setResource($resource) + ->setPolicy($policy); + try { + $gapicClient->setIamPolicy($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 testIamPermissionsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new TestIamPermissionsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $resource = 'resource-341064690'; + $permissions = []; + $request = (new TestIamPermissionsRequest()) + ->setResource($resource) + ->setPermissions($permissions); + $response = $gapicClient->testIamPermissions($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.iam.v1.IAMPolicy/TestIamPermissions', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $actualValue = $actualRequestObject->getPermissions(); + $this->assertProtobufEquals($permissions, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function testIamPermissionsExceptionTest() + { + $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 + $resource = 'resource-341064690'; + $permissions = []; + $request = (new TestIamPermissionsRequest()) + ->setResource($resource) + ->setPermissions($permissions); + try { + $gapicClient->testIamPermissions($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 createDataAssetAsyncTest() + { + $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/createDataAssetTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $uid = 'uid115792'; + $etag = 'etag3123477'; + $resource = 'resource-341064690'; + $expectedResponse = new DataAsset(); + $expectedResponse->setName($name); + $expectedResponse->setUid($uid); + $expectedResponse->setEtag($etag); + $expectedResponse->setResource($resource); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createDataAssetTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->dataProductName('[PROJECT]', '[LOCATION]', '[DATA_PRODUCT]'); + $dataAsset = new DataAsset(); + $dataAssetResource = 'dataAssetResource-1385846892'; + $dataAsset->setResource($dataAssetResource); + $request = (new CreateDataAssetRequest()) + ->setParent($formattedParent) + ->setDataAsset($dataAsset); + $response = $gapicClient->createDataAssetAsync($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.dataplex.v1.DataProductService/CreateDataAsset', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getDataAsset(); + $this->assertProtobufEquals($dataAsset, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createDataAssetTest'); + $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/Dataplex/v1/tests/Unit/V1/Client/DataScanServiceClientTest.php b/owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/DataScanServiceClientTest.php new file mode 100644 index 000000000000..909a2c9aa9ff --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/DataScanServiceClientTest.php @@ -0,0 +1,1312 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return DataScanServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new DataScanServiceClient($options); + } + + /** @test */ + public function cancelDataScanJobTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new CancelDataScanJobResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->dataScanJobName('[PROJECT]', '[LOCATION]', '[DATASCAN]', '[JOB]'); + $request = (new CancelDataScanJobRequest()) + ->setName($formattedName); + $response = $gapicClient->cancelDataScanJob($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.dataplex.v1.DataScanService/CancelDataScanJob', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function cancelDataScanJobExceptionTest() + { + $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->dataScanJobName('[PROJECT]', '[LOCATION]', '[DATASCAN]', '[JOB]'); + $request = (new CancelDataScanJobRequest()) + ->setName($formattedName); + try { + $gapicClient->cancelDataScanJob($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 createDataScanTest() + { + $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/createDataScanTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $uid = 'uid115792'; + $description = 'description-1724546052'; + $displayName = 'displayName1615086568'; + $expectedResponse = new DataScan(); + $expectedResponse->setName($name); + $expectedResponse->setUid($uid); + $expectedResponse->setDescription($description); + $expectedResponse->setDisplayName($displayName); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createDataScanTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $dataScan = new DataScan(); + $dataScanData = new DataSource(); + $dataScan->setData($dataScanData); + $request = (new CreateDataScanRequest()) + ->setParent($formattedParent) + ->setDataScan($dataScan); + $response = $gapicClient->createDataScan($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.dataplex.v1.DataScanService/CreateDataScan', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getDataScan(); + $this->assertProtobufEquals($dataScan, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createDataScanTest'); + $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 createDataScanExceptionTest() + { + $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/createDataScanTest'); + $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->locationName('[PROJECT]', '[LOCATION]'); + $dataScan = new DataScan(); + $dataScanData = new DataSource(); + $dataScan->setData($dataScanData); + $request = (new CreateDataScanRequest()) + ->setParent($formattedParent) + ->setDataScan($dataScan); + $response = $gapicClient->createDataScan($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createDataScanTest'); + 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 deleteDataScanTest() + { + $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/deleteDataScanTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new GPBEmpty(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/deleteDataScanTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->dataScanName('[PROJECT]', '[LOCATION]', '[DATASCAN]'); + $request = (new DeleteDataScanRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteDataScan($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.dataplex.v1.DataScanService/DeleteDataScan', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteDataScanTest'); + $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 deleteDataScanExceptionTest() + { + $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/deleteDataScanTest'); + $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->dataScanName('[PROJECT]', '[LOCATION]', '[DATASCAN]'); + $request = (new DeleteDataScanRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteDataScan($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteDataScanTest'); + 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 generateDataQualityRulesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GenerateDataQualityRulesResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $name = 'name3373707'; + $request = (new GenerateDataQualityRulesRequest()) + ->setName($name); + $response = $gapicClient->generateDataQualityRules($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.dataplex.v1.DataScanService/GenerateDataQualityRules', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($name, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function generateDataQualityRulesExceptionTest() + { + $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 + $name = 'name3373707'; + $request = (new GenerateDataQualityRulesRequest()) + ->setName($name); + try { + $gapicClient->generateDataQualityRules($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 getDataScanTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $uid = 'uid115792'; + $description = 'description-1724546052'; + $displayName = 'displayName1615086568'; + $expectedResponse = new DataScan(); + $expectedResponse->setName($name2); + $expectedResponse->setUid($uid); + $expectedResponse->setDescription($description); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->dataScanName('[PROJECT]', '[LOCATION]', '[DATASCAN]'); + $request = (new GetDataScanRequest()) + ->setName($formattedName); + $response = $gapicClient->getDataScan($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.dataplex.v1.DataScanService/GetDataScan', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDataScanExceptionTest() + { + $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->dataScanName('[PROJECT]', '[LOCATION]', '[DATASCAN]'); + $request = (new GetDataScanRequest()) + ->setName($formattedName); + try { + $gapicClient->getDataScan($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 getDataScanJobTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $uid = 'uid115792'; + $partialFailureMessage = 'partialFailureMessage564046740'; + $message = 'message954925063'; + $expectedResponse = new DataScanJob(); + $expectedResponse->setName($name2); + $expectedResponse->setUid($uid); + $expectedResponse->setPartialFailureMessage($partialFailureMessage); + $expectedResponse->setMessage($message); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->dataScanJobName('[PROJECT]', '[LOCATION]', '[DATASCAN]', '[JOB]'); + $request = (new GetDataScanJobRequest()) + ->setName($formattedName); + $response = $gapicClient->getDataScanJob($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.dataplex.v1.DataScanService/GetDataScanJob', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDataScanJobExceptionTest() + { + $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->dataScanJobName('[PROJECT]', '[LOCATION]', '[DATASCAN]', '[JOB]'); + $request = (new GetDataScanJobRequest()) + ->setName($formattedName); + try { + $gapicClient->getDataScanJob($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 listDataScanJobsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $dataScanJobsElement = new DataScanJob(); + $dataScanJobs = [ + $dataScanJobsElement, + ]; + $expectedResponse = new ListDataScanJobsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setDataScanJobs($dataScanJobs); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->dataScanName('[PROJECT]', '[LOCATION]', '[DATASCAN]'); + $request = (new ListDataScanJobsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listDataScanJobs($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getDataScanJobs()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataplex.v1.DataScanService/ListDataScanJobs', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDataScanJobsExceptionTest() + { + $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->dataScanName('[PROJECT]', '[LOCATION]', '[DATASCAN]'); + $request = (new ListDataScanJobsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listDataScanJobs($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 listDataScansTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $dataScansElement = new DataScan(); + $dataScans = [ + $dataScansElement, + ]; + $expectedResponse = new ListDataScansResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setDataScans($dataScans); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListDataScansRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listDataScans($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getDataScans()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataplex.v1.DataScanService/ListDataScans', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDataScansExceptionTest() + { + $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->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListDataScansRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listDataScans($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 runDataScanTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new RunDataScanResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->dataScanName('[PROJECT]', '[LOCATION]', '[DATASCAN]'); + $request = (new RunDataScanRequest()) + ->setName($formattedName); + $response = $gapicClient->runDataScan($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.dataplex.v1.DataScanService/RunDataScan', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function runDataScanExceptionTest() + { + $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->dataScanName('[PROJECT]', '[LOCATION]', '[DATASCAN]'); + $request = (new RunDataScanRequest()) + ->setName($formattedName); + try { + $gapicClient->runDataScan($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 updateDataScanTest() + { + $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/updateDataScanTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $uid = 'uid115792'; + $description = 'description-1724546052'; + $displayName = 'displayName1615086568'; + $expectedResponse = new DataScan(); + $expectedResponse->setName($name); + $expectedResponse->setUid($uid); + $expectedResponse->setDescription($description); + $expectedResponse->setDisplayName($displayName); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/updateDataScanTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $dataScan = new DataScan(); + $dataScanData = new DataSource(); + $dataScan->setData($dataScanData); + $request = (new UpdateDataScanRequest()) + ->setDataScan($dataScan); + $response = $gapicClient->updateDataScan($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.dataplex.v1.DataScanService/UpdateDataScan', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getDataScan(); + $this->assertProtobufEquals($dataScan, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateDataScanTest'); + $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 updateDataScanExceptionTest() + { + $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/updateDataScanTest'); + $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 + $dataScan = new DataScan(); + $dataScanData = new DataSource(); + $dataScan->setData($dataScanData); + $request = (new UpdateDataScanRequest()) + ->setDataScan($dataScan); + $response = $gapicClient->updateDataScan($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateDataScanTest'); + 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 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 getIamPolicyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $version = 351608024; + $etag = '21'; + $expectedResponse = new Policy(); + $expectedResponse->setVersion($version); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $resource = 'resource-341064690'; + $request = (new GetIamPolicyRequest()) + ->setResource($resource); + $response = $gapicClient->getIamPolicy($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.iam.v1.IAMPolicy/GetIamPolicy', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getIamPolicyExceptionTest() + { + $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 + $resource = 'resource-341064690'; + $request = (new GetIamPolicyRequest()) + ->setResource($resource); + try { + $gapicClient->getIamPolicy($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 setIamPolicyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $version = 351608024; + $etag = '21'; + $expectedResponse = new Policy(); + $expectedResponse->setVersion($version); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $resource = 'resource-341064690'; + $policy = new Policy(); + $request = (new SetIamPolicyRequest()) + ->setResource($resource) + ->setPolicy($policy); + $response = $gapicClient->setIamPolicy($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.iam.v1.IAMPolicy/SetIamPolicy', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $actualValue = $actualRequestObject->getPolicy(); + $this->assertProtobufEquals($policy, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setIamPolicyExceptionTest() + { + $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 + $resource = 'resource-341064690'; + $policy = new Policy(); + $request = (new SetIamPolicyRequest()) + ->setResource($resource) + ->setPolicy($policy); + try { + $gapicClient->setIamPolicy($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 testIamPermissionsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new TestIamPermissionsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $resource = 'resource-341064690'; + $permissions = []; + $request = (new TestIamPermissionsRequest()) + ->setResource($resource) + ->setPermissions($permissions); + $response = $gapicClient->testIamPermissions($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.iam.v1.IAMPolicy/TestIamPermissions', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $actualValue = $actualRequestObject->getPermissions(); + $this->assertProtobufEquals($permissions, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function testIamPermissionsExceptionTest() + { + $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 + $resource = 'resource-341064690'; + $permissions = []; + $request = (new TestIamPermissionsRequest()) + ->setResource($resource) + ->setPermissions($permissions); + try { + $gapicClient->testIamPermissions($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 cancelDataScanJobAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new CancelDataScanJobResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->dataScanJobName('[PROJECT]', '[LOCATION]', '[DATASCAN]', '[JOB]'); + $request = (new CancelDataScanJobRequest()) + ->setName($formattedName); + $response = $gapicClient->cancelDataScanJobAsync($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.dataplex.v1.DataScanService/CancelDataScanJob', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/DataTaxonomyServiceClientTest.php b/owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/DataTaxonomyServiceClientTest.php new file mode 100644 index 000000000000..58b7457a3802 --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/DataTaxonomyServiceClientTest.php @@ -0,0 +1,2183 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return DataTaxonomyServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new DataTaxonomyServiceClient($options); + } + + /** @test */ + public function createDataAttributeTest() + { + $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/createDataAttributeTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $uid = 'uid115792'; + $description = 'description-1724546052'; + $displayName = 'displayName1615086568'; + $parentId = 'parentId2070327504'; + $attributeCount = 688916052; + $etag = 'etag3123477'; + $expectedResponse = new DataAttribute(); + $expectedResponse->setName($name); + $expectedResponse->setUid($uid); + $expectedResponse->setDescription($description); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setParentId($parentId); + $expectedResponse->setAttributeCount($attributeCount); + $expectedResponse->setEtag($etag); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createDataAttributeTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->dataTaxonomyName('[PROJECT]', '[LOCATION]', '[DATA_TAXONOMY_ID]'); + $dataAttributeId = 'dataAttributeId-1927466989'; + $dataAttribute = new DataAttribute(); + $request = (new CreateDataAttributeRequest()) + ->setParent($formattedParent) + ->setDataAttributeId($dataAttributeId) + ->setDataAttribute($dataAttribute); + $response = $gapicClient->createDataAttribute($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.dataplex.v1.DataTaxonomyService/CreateDataAttribute', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getDataAttributeId(); + $this->assertProtobufEquals($dataAttributeId, $actualValue); + $actualValue = $actualApiRequestObject->getDataAttribute(); + $this->assertProtobufEquals($dataAttribute, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createDataAttributeTest'); + $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 createDataAttributeExceptionTest() + { + $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/createDataAttributeTest'); + $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->dataTaxonomyName('[PROJECT]', '[LOCATION]', '[DATA_TAXONOMY_ID]'); + $dataAttributeId = 'dataAttributeId-1927466989'; + $dataAttribute = new DataAttribute(); + $request = (new CreateDataAttributeRequest()) + ->setParent($formattedParent) + ->setDataAttributeId($dataAttributeId) + ->setDataAttribute($dataAttribute); + $response = $gapicClient->createDataAttribute($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createDataAttributeTest'); + 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 createDataAttributeBindingTest() + { + $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/createDataAttributeBindingTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $uid = 'uid115792'; + $description = 'description-1724546052'; + $displayName = 'displayName1615086568'; + $etag = 'etag3123477'; + $resource = 'resource-341064690'; + $expectedResponse = new DataAttributeBinding(); + $expectedResponse->setName($name); + $expectedResponse->setUid($uid); + $expectedResponse->setDescription($description); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setEtag($etag); + $expectedResponse->setResource($resource); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createDataAttributeBindingTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $dataAttributeBindingId = 'dataAttributeBindingId863052813'; + $dataAttributeBinding = new DataAttributeBinding(); + $request = (new CreateDataAttributeBindingRequest()) + ->setParent($formattedParent) + ->setDataAttributeBindingId($dataAttributeBindingId) + ->setDataAttributeBinding($dataAttributeBinding); + $response = $gapicClient->createDataAttributeBinding($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.dataplex.v1.DataTaxonomyService/CreateDataAttributeBinding', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getDataAttributeBindingId(); + $this->assertProtobufEquals($dataAttributeBindingId, $actualValue); + $actualValue = $actualApiRequestObject->getDataAttributeBinding(); + $this->assertProtobufEquals($dataAttributeBinding, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createDataAttributeBindingTest'); + $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 createDataAttributeBindingExceptionTest() + { + $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/createDataAttributeBindingTest'); + $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->locationName('[PROJECT]', '[LOCATION]'); + $dataAttributeBindingId = 'dataAttributeBindingId863052813'; + $dataAttributeBinding = new DataAttributeBinding(); + $request = (new CreateDataAttributeBindingRequest()) + ->setParent($formattedParent) + ->setDataAttributeBindingId($dataAttributeBindingId) + ->setDataAttributeBinding($dataAttributeBinding); + $response = $gapicClient->createDataAttributeBinding($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createDataAttributeBindingTest'); + 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 createDataTaxonomyTest() + { + $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/createDataTaxonomyTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $uid = 'uid115792'; + $description = 'description-1724546052'; + $displayName = 'displayName1615086568'; + $attributeCount = 688916052; + $etag = 'etag3123477'; + $classCount = 424516728; + $expectedResponse = new DataTaxonomy(); + $expectedResponse->setName($name); + $expectedResponse->setUid($uid); + $expectedResponse->setDescription($description); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setAttributeCount($attributeCount); + $expectedResponse->setEtag($etag); + $expectedResponse->setClassCount($classCount); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createDataTaxonomyTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $dataTaxonomyId = 'dataTaxonomyId-857059404'; + $dataTaxonomy = new DataTaxonomy(); + $request = (new CreateDataTaxonomyRequest()) + ->setParent($formattedParent) + ->setDataTaxonomyId($dataTaxonomyId) + ->setDataTaxonomy($dataTaxonomy); + $response = $gapicClient->createDataTaxonomy($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.dataplex.v1.DataTaxonomyService/CreateDataTaxonomy', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getDataTaxonomyId(); + $this->assertProtobufEquals($dataTaxonomyId, $actualValue); + $actualValue = $actualApiRequestObject->getDataTaxonomy(); + $this->assertProtobufEquals($dataTaxonomy, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createDataTaxonomyTest'); + $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 createDataTaxonomyExceptionTest() + { + $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/createDataTaxonomyTest'); + $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->locationName('[PROJECT]', '[LOCATION]'); + $dataTaxonomyId = 'dataTaxonomyId-857059404'; + $dataTaxonomy = new DataTaxonomy(); + $request = (new CreateDataTaxonomyRequest()) + ->setParent($formattedParent) + ->setDataTaxonomyId($dataTaxonomyId) + ->setDataTaxonomy($dataTaxonomy); + $response = $gapicClient->createDataTaxonomy($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createDataTaxonomyTest'); + 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 deleteDataAttributeTest() + { + $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/deleteDataAttributeTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new GPBEmpty(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/deleteDataAttributeTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->dataAttributeName('[PROJECT]', '[LOCATION]', '[DATATAXONOMY]', '[DATA_ATTRIBUTE_ID]'); + $request = (new DeleteDataAttributeRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteDataAttribute($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.dataplex.v1.DataTaxonomyService/DeleteDataAttribute', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteDataAttributeTest'); + $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 deleteDataAttributeExceptionTest() + { + $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/deleteDataAttributeTest'); + $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->dataAttributeName('[PROJECT]', '[LOCATION]', '[DATATAXONOMY]', '[DATA_ATTRIBUTE_ID]'); + $request = (new DeleteDataAttributeRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteDataAttribute($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteDataAttributeTest'); + 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 deleteDataAttributeBindingTest() + { + $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/deleteDataAttributeBindingTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new GPBEmpty(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/deleteDataAttributeBindingTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->dataAttributeBindingName('[PROJECT]', '[LOCATION]', '[DATA_ATTRIBUTE_BINDING_ID]'); + $etag = 'etag3123477'; + $request = (new DeleteDataAttributeBindingRequest()) + ->setName($formattedName) + ->setEtag($etag); + $response = $gapicClient->deleteDataAttributeBinding($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.dataplex.v1.DataTaxonomyService/DeleteDataAttributeBinding', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $actualValue = $actualApiRequestObject->getEtag(); + $this->assertProtobufEquals($etag, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteDataAttributeBindingTest'); + $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 deleteDataAttributeBindingExceptionTest() + { + $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/deleteDataAttributeBindingTest'); + $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->dataAttributeBindingName('[PROJECT]', '[LOCATION]', '[DATA_ATTRIBUTE_BINDING_ID]'); + $etag = 'etag3123477'; + $request = (new DeleteDataAttributeBindingRequest()) + ->setName($formattedName) + ->setEtag($etag); + $response = $gapicClient->deleteDataAttributeBinding($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteDataAttributeBindingTest'); + 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 deleteDataTaxonomyTest() + { + $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/deleteDataTaxonomyTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new GPBEmpty(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/deleteDataTaxonomyTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->dataTaxonomyName('[PROJECT]', '[LOCATION]', '[DATA_TAXONOMY_ID]'); + $request = (new DeleteDataTaxonomyRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteDataTaxonomy($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.dataplex.v1.DataTaxonomyService/DeleteDataTaxonomy', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteDataTaxonomyTest'); + $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 deleteDataTaxonomyExceptionTest() + { + $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/deleteDataTaxonomyTest'); + $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->dataTaxonomyName('[PROJECT]', '[LOCATION]', '[DATA_TAXONOMY_ID]'); + $request = (new DeleteDataTaxonomyRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteDataTaxonomy($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteDataTaxonomyTest'); + 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 getDataAttributeTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $uid = 'uid115792'; + $description = 'description-1724546052'; + $displayName = 'displayName1615086568'; + $parentId = 'parentId2070327504'; + $attributeCount = 688916052; + $etag = 'etag3123477'; + $expectedResponse = new DataAttribute(); + $expectedResponse->setName($name2); + $expectedResponse->setUid($uid); + $expectedResponse->setDescription($description); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setParentId($parentId); + $expectedResponse->setAttributeCount($attributeCount); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->dataAttributeName('[PROJECT]', '[LOCATION]', '[DATATAXONOMY]', '[DATA_ATTRIBUTE_ID]'); + $request = (new GetDataAttributeRequest()) + ->setName($formattedName); + $response = $gapicClient->getDataAttribute($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.dataplex.v1.DataTaxonomyService/GetDataAttribute', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDataAttributeExceptionTest() + { + $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->dataAttributeName('[PROJECT]', '[LOCATION]', '[DATATAXONOMY]', '[DATA_ATTRIBUTE_ID]'); + $request = (new GetDataAttributeRequest()) + ->setName($formattedName); + try { + $gapicClient->getDataAttribute($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 getDataAttributeBindingTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $uid = 'uid115792'; + $description = 'description-1724546052'; + $displayName = 'displayName1615086568'; + $etag = 'etag3123477'; + $resource = 'resource-341064690'; + $expectedResponse = new DataAttributeBinding(); + $expectedResponse->setName($name2); + $expectedResponse->setUid($uid); + $expectedResponse->setDescription($description); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setEtag($etag); + $expectedResponse->setResource($resource); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->dataAttributeBindingName('[PROJECT]', '[LOCATION]', '[DATA_ATTRIBUTE_BINDING_ID]'); + $request = (new GetDataAttributeBindingRequest()) + ->setName($formattedName); + $response = $gapicClient->getDataAttributeBinding($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.dataplex.v1.DataTaxonomyService/GetDataAttributeBinding', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDataAttributeBindingExceptionTest() + { + $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->dataAttributeBindingName('[PROJECT]', '[LOCATION]', '[DATA_ATTRIBUTE_BINDING_ID]'); + $request = (new GetDataAttributeBindingRequest()) + ->setName($formattedName); + try { + $gapicClient->getDataAttributeBinding($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 getDataTaxonomyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $uid = 'uid115792'; + $description = 'description-1724546052'; + $displayName = 'displayName1615086568'; + $attributeCount = 688916052; + $etag = 'etag3123477'; + $classCount = 424516728; + $expectedResponse = new DataTaxonomy(); + $expectedResponse->setName($name2); + $expectedResponse->setUid($uid); + $expectedResponse->setDescription($description); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setAttributeCount($attributeCount); + $expectedResponse->setEtag($etag); + $expectedResponse->setClassCount($classCount); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->dataTaxonomyName('[PROJECT]', '[LOCATION]', '[DATA_TAXONOMY_ID]'); + $request = (new GetDataTaxonomyRequest()) + ->setName($formattedName); + $response = $gapicClient->getDataTaxonomy($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.dataplex.v1.DataTaxonomyService/GetDataTaxonomy', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDataTaxonomyExceptionTest() + { + $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->dataTaxonomyName('[PROJECT]', '[LOCATION]', '[DATA_TAXONOMY_ID]'); + $request = (new GetDataTaxonomyRequest()) + ->setName($formattedName); + try { + $gapicClient->getDataTaxonomy($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 listDataAttributeBindingsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $dataAttributeBindingsElement = new DataAttributeBinding(); + $dataAttributeBindings = [ + $dataAttributeBindingsElement, + ]; + $expectedResponse = new ListDataAttributeBindingsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setDataAttributeBindings($dataAttributeBindings); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListDataAttributeBindingsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listDataAttributeBindings($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getDataAttributeBindings()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataplex.v1.DataTaxonomyService/ListDataAttributeBindings', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDataAttributeBindingsExceptionTest() + { + $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->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListDataAttributeBindingsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listDataAttributeBindings($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 listDataAttributesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $dataAttributesElement = new DataAttribute(); + $dataAttributes = [ + $dataAttributesElement, + ]; + $expectedResponse = new ListDataAttributesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setDataAttributes($dataAttributes); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->dataTaxonomyName('[PROJECT]', '[LOCATION]', '[DATA_TAXONOMY_ID]'); + $request = (new ListDataAttributesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listDataAttributes($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getDataAttributes()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataplex.v1.DataTaxonomyService/ListDataAttributes', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDataAttributesExceptionTest() + { + $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->dataTaxonomyName('[PROJECT]', '[LOCATION]', '[DATA_TAXONOMY_ID]'); + $request = (new ListDataAttributesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listDataAttributes($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 listDataTaxonomiesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $dataTaxonomiesElement = new DataTaxonomy(); + $dataTaxonomies = [ + $dataTaxonomiesElement, + ]; + $expectedResponse = new ListDataTaxonomiesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setDataTaxonomies($dataTaxonomies); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListDataTaxonomiesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listDataTaxonomies($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getDataTaxonomies()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataplex.v1.DataTaxonomyService/ListDataTaxonomies', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDataTaxonomiesExceptionTest() + { + $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->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListDataTaxonomiesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listDataTaxonomies($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 updateDataAttributeTest() + { + $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/updateDataAttributeTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $uid = 'uid115792'; + $description = 'description-1724546052'; + $displayName = 'displayName1615086568'; + $parentId = 'parentId2070327504'; + $attributeCount = 688916052; + $etag = 'etag3123477'; + $expectedResponse = new DataAttribute(); + $expectedResponse->setName($name); + $expectedResponse->setUid($uid); + $expectedResponse->setDescription($description); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setParentId($parentId); + $expectedResponse->setAttributeCount($attributeCount); + $expectedResponse->setEtag($etag); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/updateDataAttributeTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $updateMask = new FieldMask(); + $dataAttribute = new DataAttribute(); + $request = (new UpdateDataAttributeRequest()) + ->setUpdateMask($updateMask) + ->setDataAttribute($dataAttribute); + $response = $gapicClient->updateDataAttribute($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.dataplex.v1.DataTaxonomyService/UpdateDataAttribute', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $actualValue = $actualApiRequestObject->getDataAttribute(); + $this->assertProtobufEquals($dataAttribute, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateDataAttributeTest'); + $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 updateDataAttributeExceptionTest() + { + $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/updateDataAttributeTest'); + $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 + $updateMask = new FieldMask(); + $dataAttribute = new DataAttribute(); + $request = (new UpdateDataAttributeRequest()) + ->setUpdateMask($updateMask) + ->setDataAttribute($dataAttribute); + $response = $gapicClient->updateDataAttribute($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateDataAttributeTest'); + 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 updateDataAttributeBindingTest() + { + $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/updateDataAttributeBindingTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $uid = 'uid115792'; + $description = 'description-1724546052'; + $displayName = 'displayName1615086568'; + $etag = 'etag3123477'; + $resource = 'resource-341064690'; + $expectedResponse = new DataAttributeBinding(); + $expectedResponse->setName($name); + $expectedResponse->setUid($uid); + $expectedResponse->setDescription($description); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setEtag($etag); + $expectedResponse->setResource($resource); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/updateDataAttributeBindingTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $updateMask = new FieldMask(); + $dataAttributeBinding = new DataAttributeBinding(); + $request = (new UpdateDataAttributeBindingRequest()) + ->setUpdateMask($updateMask) + ->setDataAttributeBinding($dataAttributeBinding); + $response = $gapicClient->updateDataAttributeBinding($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.dataplex.v1.DataTaxonomyService/UpdateDataAttributeBinding', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $actualValue = $actualApiRequestObject->getDataAttributeBinding(); + $this->assertProtobufEquals($dataAttributeBinding, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateDataAttributeBindingTest'); + $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 updateDataAttributeBindingExceptionTest() + { + $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/updateDataAttributeBindingTest'); + $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 + $updateMask = new FieldMask(); + $dataAttributeBinding = new DataAttributeBinding(); + $request = (new UpdateDataAttributeBindingRequest()) + ->setUpdateMask($updateMask) + ->setDataAttributeBinding($dataAttributeBinding); + $response = $gapicClient->updateDataAttributeBinding($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateDataAttributeBindingTest'); + 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 updateDataTaxonomyTest() + { + $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/updateDataTaxonomyTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $uid = 'uid115792'; + $description = 'description-1724546052'; + $displayName = 'displayName1615086568'; + $attributeCount = 688916052; + $etag = 'etag3123477'; + $classCount = 424516728; + $expectedResponse = new DataTaxonomy(); + $expectedResponse->setName($name); + $expectedResponse->setUid($uid); + $expectedResponse->setDescription($description); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setAttributeCount($attributeCount); + $expectedResponse->setEtag($etag); + $expectedResponse->setClassCount($classCount); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/updateDataTaxonomyTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $updateMask = new FieldMask(); + $dataTaxonomy = new DataTaxonomy(); + $request = (new UpdateDataTaxonomyRequest()) + ->setUpdateMask($updateMask) + ->setDataTaxonomy($dataTaxonomy); + $response = $gapicClient->updateDataTaxonomy($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.dataplex.v1.DataTaxonomyService/UpdateDataTaxonomy', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $actualValue = $actualApiRequestObject->getDataTaxonomy(); + $this->assertProtobufEquals($dataTaxonomy, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateDataTaxonomyTest'); + $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 updateDataTaxonomyExceptionTest() + { + $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/updateDataTaxonomyTest'); + $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 + $updateMask = new FieldMask(); + $dataTaxonomy = new DataTaxonomy(); + $request = (new UpdateDataTaxonomyRequest()) + ->setUpdateMask($updateMask) + ->setDataTaxonomy($dataTaxonomy); + $response = $gapicClient->updateDataTaxonomy($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateDataTaxonomyTest'); + 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 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 getIamPolicyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $version = 351608024; + $etag = '21'; + $expectedResponse = new Policy(); + $expectedResponse->setVersion($version); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $resource = 'resource-341064690'; + $request = (new GetIamPolicyRequest()) + ->setResource($resource); + $response = $gapicClient->getIamPolicy($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.iam.v1.IAMPolicy/GetIamPolicy', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getIamPolicyExceptionTest() + { + $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 + $resource = 'resource-341064690'; + $request = (new GetIamPolicyRequest()) + ->setResource($resource); + try { + $gapicClient->getIamPolicy($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 setIamPolicyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $version = 351608024; + $etag = '21'; + $expectedResponse = new Policy(); + $expectedResponse->setVersion($version); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $resource = 'resource-341064690'; + $policy = new Policy(); + $request = (new SetIamPolicyRequest()) + ->setResource($resource) + ->setPolicy($policy); + $response = $gapicClient->setIamPolicy($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.iam.v1.IAMPolicy/SetIamPolicy', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $actualValue = $actualRequestObject->getPolicy(); + $this->assertProtobufEquals($policy, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setIamPolicyExceptionTest() + { + $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 + $resource = 'resource-341064690'; + $policy = new Policy(); + $request = (new SetIamPolicyRequest()) + ->setResource($resource) + ->setPolicy($policy); + try { + $gapicClient->setIamPolicy($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 testIamPermissionsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new TestIamPermissionsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $resource = 'resource-341064690'; + $permissions = []; + $request = (new TestIamPermissionsRequest()) + ->setResource($resource) + ->setPermissions($permissions); + $response = $gapicClient->testIamPermissions($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.iam.v1.IAMPolicy/TestIamPermissions', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $actualValue = $actualRequestObject->getPermissions(); + $this->assertProtobufEquals($permissions, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function testIamPermissionsExceptionTest() + { + $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 + $resource = 'resource-341064690'; + $permissions = []; + $request = (new TestIamPermissionsRequest()) + ->setResource($resource) + ->setPermissions($permissions); + try { + $gapicClient->testIamPermissions($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 createDataAttributeAsyncTest() + { + $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/createDataAttributeTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $uid = 'uid115792'; + $description = 'description-1724546052'; + $displayName = 'displayName1615086568'; + $parentId = 'parentId2070327504'; + $attributeCount = 688916052; + $etag = 'etag3123477'; + $expectedResponse = new DataAttribute(); + $expectedResponse->setName($name); + $expectedResponse->setUid($uid); + $expectedResponse->setDescription($description); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setParentId($parentId); + $expectedResponse->setAttributeCount($attributeCount); + $expectedResponse->setEtag($etag); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createDataAttributeTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->dataTaxonomyName('[PROJECT]', '[LOCATION]', '[DATA_TAXONOMY_ID]'); + $dataAttributeId = 'dataAttributeId-1927466989'; + $dataAttribute = new DataAttribute(); + $request = (new CreateDataAttributeRequest()) + ->setParent($formattedParent) + ->setDataAttributeId($dataAttributeId) + ->setDataAttribute($dataAttribute); + $response = $gapicClient->createDataAttributeAsync($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.dataplex.v1.DataTaxonomyService/CreateDataAttribute', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getDataAttributeId(); + $this->assertProtobufEquals($dataAttributeId, $actualValue); + $actualValue = $actualApiRequestObject->getDataAttribute(); + $this->assertProtobufEquals($dataAttribute, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createDataAttributeTest'); + $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/Dataplex/v1/tests/Unit/V1/Client/DataplexServiceClientTest.php b/owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/DataplexServiceClientTest.php new file mode 100644 index 000000000000..e3b50170ce3d --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/DataplexServiceClientTest.php @@ -0,0 +1,3193 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return DataplexServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new DataplexServiceClient($options); + } + + /** @test */ + public function cancelJobTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->jobName('[PROJECT]', '[LOCATION]', '[LAKE]', '[TASK]', '[JOB]'); + $request = (new CancelJobRequest()) + ->setName($formattedName); + $gapicClient->cancelJob($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataplex.v1.DataplexService/CancelJob', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function cancelJobExceptionTest() + { + $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->jobName('[PROJECT]', '[LOCATION]', '[LAKE]', '[TASK]', '[JOB]'); + $request = (new CancelJobRequest()) + ->setName($formattedName); + try { + $gapicClient->cancelJob($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 createAssetTest() + { + $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/createAssetTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $uid = 'uid115792'; + $description = 'description-1724546052'; + $expectedResponse = new Asset(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setUid($uid); + $expectedResponse->setDescription($description); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createAssetTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->zoneName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]'); + $assetId = 'assetId-373202742'; + $asset = new Asset(); + $assetResourceSpec = new ResourceSpec(); + $resourceSpecType = Type::TYPE_UNSPECIFIED; + $assetResourceSpec->setType($resourceSpecType); + $asset->setResourceSpec($assetResourceSpec); + $request = (new CreateAssetRequest()) + ->setParent($formattedParent) + ->setAssetId($assetId) + ->setAsset($asset); + $response = $gapicClient->createAsset($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.dataplex.v1.DataplexService/CreateAsset', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getAssetId(); + $this->assertProtobufEquals($assetId, $actualValue); + $actualValue = $actualApiRequestObject->getAsset(); + $this->assertProtobufEquals($asset, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createAssetTest'); + $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 createAssetExceptionTest() + { + $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/createAssetTest'); + $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->zoneName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]'); + $assetId = 'assetId-373202742'; + $asset = new Asset(); + $assetResourceSpec = new ResourceSpec(); + $resourceSpecType = Type::TYPE_UNSPECIFIED; + $assetResourceSpec->setType($resourceSpecType); + $asset->setResourceSpec($assetResourceSpec); + $request = (new CreateAssetRequest()) + ->setParent($formattedParent) + ->setAssetId($assetId) + ->setAsset($asset); + $response = $gapicClient->createAsset($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createAssetTest'); + 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 createLakeTest() + { + $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/createLakeTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $uid = 'uid115792'; + $description = 'description-1724546052'; + $serviceAccount = 'serviceAccount-1948028253'; + $expectedResponse = new Lake(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setUid($uid); + $expectedResponse->setDescription($description); + $expectedResponse->setServiceAccount($serviceAccount); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createLakeTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $lakeId = 'lakeId-54902325'; + $lake = new Lake(); + $request = (new CreateLakeRequest()) + ->setParent($formattedParent) + ->setLakeId($lakeId) + ->setLake($lake); + $response = $gapicClient->createLake($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.dataplex.v1.DataplexService/CreateLake', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getLakeId(); + $this->assertProtobufEquals($lakeId, $actualValue); + $actualValue = $actualApiRequestObject->getLake(); + $this->assertProtobufEquals($lake, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createLakeTest'); + $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 createLakeExceptionTest() + { + $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/createLakeTest'); + $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->locationName('[PROJECT]', '[LOCATION]'); + $lakeId = 'lakeId-54902325'; + $lake = new Lake(); + $request = (new CreateLakeRequest()) + ->setParent($formattedParent) + ->setLakeId($lakeId) + ->setLake($lake); + $response = $gapicClient->createLake($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createLakeTest'); + 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 createTaskTest() + { + $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/createTaskTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $uid = 'uid115792'; + $description = 'description-1724546052'; + $displayName = 'displayName1615086568'; + $expectedResponse = new Task(); + $expectedResponse->setName($name); + $expectedResponse->setUid($uid); + $expectedResponse->setDescription($description); + $expectedResponse->setDisplayName($displayName); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createTaskTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->lakeName('[PROJECT]', '[LOCATION]', '[LAKE]'); + $taskId = 'taskId-1537240555'; + $task = new Task(); + $taskTriggerSpec = new TriggerSpec(); + $triggerSpecType = \Google\Cloud\Dataplex\V1\Task\TriggerSpec\Type::TYPE_UNSPECIFIED; + $taskTriggerSpec->setType($triggerSpecType); + $task->setTriggerSpec($taskTriggerSpec); + $taskExecutionSpec = new ExecutionSpec(); + $executionSpecServiceAccount = 'executionSpecServiceAccount-1249728629'; + $taskExecutionSpec->setServiceAccount($executionSpecServiceAccount); + $task->setExecutionSpec($taskExecutionSpec); + $request = (new CreateTaskRequest()) + ->setParent($formattedParent) + ->setTaskId($taskId) + ->setTask($task); + $response = $gapicClient->createTask($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.dataplex.v1.DataplexService/CreateTask', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getTaskId(); + $this->assertProtobufEquals($taskId, $actualValue); + $actualValue = $actualApiRequestObject->getTask(); + $this->assertProtobufEquals($task, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createTaskTest'); + $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 createTaskExceptionTest() + { + $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/createTaskTest'); + $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->lakeName('[PROJECT]', '[LOCATION]', '[LAKE]'); + $taskId = 'taskId-1537240555'; + $task = new Task(); + $taskTriggerSpec = new TriggerSpec(); + $triggerSpecType = \Google\Cloud\Dataplex\V1\Task\TriggerSpec\Type::TYPE_UNSPECIFIED; + $taskTriggerSpec->setType($triggerSpecType); + $task->setTriggerSpec($taskTriggerSpec); + $taskExecutionSpec = new ExecutionSpec(); + $executionSpecServiceAccount = 'executionSpecServiceAccount-1249728629'; + $taskExecutionSpec->setServiceAccount($executionSpecServiceAccount); + $task->setExecutionSpec($taskExecutionSpec); + $request = (new CreateTaskRequest()) + ->setParent($formattedParent) + ->setTaskId($taskId) + ->setTask($task); + $response = $gapicClient->createTask($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createTaskTest'); + 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 createZoneTest() + { + $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/createZoneTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $uid = 'uid115792'; + $description = 'description-1724546052'; + $expectedResponse = new Zone(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setUid($uid); + $expectedResponse->setDescription($description); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createZoneTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->lakeName('[PROJECT]', '[LOCATION]', '[LAKE]'); + $zoneId = 'zoneId-111174002'; + $zone = new Zone(); + $zoneType = \Google\Cloud\Dataplex\V1\Zone\Type::TYPE_UNSPECIFIED; + $zone->setType($zoneType); + $zoneResourceSpec = new \Google\Cloud\Dataplex\V1\Zone\ResourceSpec(); + $resourceSpecLocationType = LocationType::LOCATION_TYPE_UNSPECIFIED; + $zoneResourceSpec->setLocationType($resourceSpecLocationType); + $zone->setResourceSpec($zoneResourceSpec); + $request = (new CreateZoneRequest()) + ->setParent($formattedParent) + ->setZoneId($zoneId) + ->setZone($zone); + $response = $gapicClient->createZone($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.dataplex.v1.DataplexService/CreateZone', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getZoneId(); + $this->assertProtobufEquals($zoneId, $actualValue); + $actualValue = $actualApiRequestObject->getZone(); + $this->assertProtobufEquals($zone, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createZoneTest'); + $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 createZoneExceptionTest() + { + $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/createZoneTest'); + $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->lakeName('[PROJECT]', '[LOCATION]', '[LAKE]'); + $zoneId = 'zoneId-111174002'; + $zone = new Zone(); + $zoneType = \Google\Cloud\Dataplex\V1\Zone\Type::TYPE_UNSPECIFIED; + $zone->setType($zoneType); + $zoneResourceSpec = new \Google\Cloud\Dataplex\V1\Zone\ResourceSpec(); + $resourceSpecLocationType = LocationType::LOCATION_TYPE_UNSPECIFIED; + $zoneResourceSpec->setLocationType($resourceSpecLocationType); + $zone->setResourceSpec($zoneResourceSpec); + $request = (new CreateZoneRequest()) + ->setParent($formattedParent) + ->setZoneId($zoneId) + ->setZone($zone); + $response = $gapicClient->createZone($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createZoneTest'); + 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 deleteAssetTest() + { + $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/deleteAssetTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new GPBEmpty(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/deleteAssetTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->assetName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]', '[ASSET]'); + $request = (new DeleteAssetRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteAsset($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.dataplex.v1.DataplexService/DeleteAsset', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteAssetTest'); + $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 deleteAssetExceptionTest() + { + $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/deleteAssetTest'); + $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->assetName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]', '[ASSET]'); + $request = (new DeleteAssetRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteAsset($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteAssetTest'); + 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 deleteLakeTest() + { + $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/deleteLakeTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new GPBEmpty(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/deleteLakeTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->lakeName('[PROJECT]', '[LOCATION]', '[LAKE]'); + $request = (new DeleteLakeRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteLake($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.dataplex.v1.DataplexService/DeleteLake', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteLakeTest'); + $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 deleteLakeExceptionTest() + { + $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/deleteLakeTest'); + $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->lakeName('[PROJECT]', '[LOCATION]', '[LAKE]'); + $request = (new DeleteLakeRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteLake($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteLakeTest'); + 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 deleteTaskTest() + { + $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/deleteTaskTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new GPBEmpty(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/deleteTaskTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->taskName('[PROJECT]', '[LOCATION]', '[LAKE]', '[TASK]'); + $request = (new DeleteTaskRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteTask($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.dataplex.v1.DataplexService/DeleteTask', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteTaskTest'); + $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 deleteTaskExceptionTest() + { + $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/deleteTaskTest'); + $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->taskName('[PROJECT]', '[LOCATION]', '[LAKE]', '[TASK]'); + $request = (new DeleteTaskRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteTask($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteTaskTest'); + 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 deleteZoneTest() + { + $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/deleteZoneTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new GPBEmpty(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/deleteZoneTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->zoneName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]'); + $request = (new DeleteZoneRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteZone($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.dataplex.v1.DataplexService/DeleteZone', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteZoneTest'); + $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 deleteZoneExceptionTest() + { + $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/deleteZoneTest'); + $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->zoneName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]'); + $request = (new DeleteZoneRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteZone($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteZoneTest'); + 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 getAssetTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $uid = 'uid115792'; + $description = 'description-1724546052'; + $expectedResponse = new Asset(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setUid($uid); + $expectedResponse->setDescription($description); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->assetName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]', '[ASSET]'); + $request = (new GetAssetRequest()) + ->setName($formattedName); + $response = $gapicClient->getAsset($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.dataplex.v1.DataplexService/GetAsset', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getAssetExceptionTest() + { + $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->assetName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]', '[ASSET]'); + $request = (new GetAssetRequest()) + ->setName($formattedName); + try { + $gapicClient->getAsset($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 getJobTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $uid = 'uid115792'; + $retryCount = 928040776; + $serviceJob = 'serviceJob-1928057037'; + $message = 'message954925063'; + $expectedResponse = new Job(); + $expectedResponse->setName($name2); + $expectedResponse->setUid($uid); + $expectedResponse->setRetryCount($retryCount); + $expectedResponse->setServiceJob($serviceJob); + $expectedResponse->setMessage($message); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->jobName('[PROJECT]', '[LOCATION]', '[LAKE]', '[TASK]', '[JOB]'); + $request = (new GetJobRequest()) + ->setName($formattedName); + $response = $gapicClient->getJob($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.dataplex.v1.DataplexService/GetJob', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getJobExceptionTest() + { + $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->jobName('[PROJECT]', '[LOCATION]', '[LAKE]', '[TASK]', '[JOB]'); + $request = (new GetJobRequest()) + ->setName($formattedName); + try { + $gapicClient->getJob($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 getLakeTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $uid = 'uid115792'; + $description = 'description-1724546052'; + $serviceAccount = 'serviceAccount-1948028253'; + $expectedResponse = new Lake(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setUid($uid); + $expectedResponse->setDescription($description); + $expectedResponse->setServiceAccount($serviceAccount); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->lakeName('[PROJECT]', '[LOCATION]', '[LAKE]'); + $request = (new GetLakeRequest()) + ->setName($formattedName); + $response = $gapicClient->getLake($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.dataplex.v1.DataplexService/GetLake', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getLakeExceptionTest() + { + $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->lakeName('[PROJECT]', '[LOCATION]', '[LAKE]'); + $request = (new GetLakeRequest()) + ->setName($formattedName); + try { + $gapicClient->getLake($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 getTaskTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $uid = 'uid115792'; + $description = 'description-1724546052'; + $displayName = 'displayName1615086568'; + $expectedResponse = new Task(); + $expectedResponse->setName($name2); + $expectedResponse->setUid($uid); + $expectedResponse->setDescription($description); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->taskName('[PROJECT]', '[LOCATION]', '[LAKE]', '[TASK]'); + $request = (new GetTaskRequest()) + ->setName($formattedName); + $response = $gapicClient->getTask($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.dataplex.v1.DataplexService/GetTask', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getTaskExceptionTest() + { + $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->taskName('[PROJECT]', '[LOCATION]', '[LAKE]', '[TASK]'); + $request = (new GetTaskRequest()) + ->setName($formattedName); + try { + $gapicClient->getTask($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 getZoneTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $uid = 'uid115792'; + $description = 'description-1724546052'; + $expectedResponse = new Zone(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setUid($uid); + $expectedResponse->setDescription($description); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->zoneName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]'); + $request = (new GetZoneRequest()) + ->setName($formattedName); + $response = $gapicClient->getZone($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.dataplex.v1.DataplexService/GetZone', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getZoneExceptionTest() + { + $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->zoneName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]'); + $request = (new GetZoneRequest()) + ->setName($formattedName); + try { + $gapicClient->getZone($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 listAssetActionsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $actionsElement = new Action(); + $actions = [ + $actionsElement, + ]; + $expectedResponse = new ListActionsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setActions($actions); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->assetName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]', '[ASSET]'); + $request = (new ListAssetActionsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listAssetActions($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getActions()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataplex.v1.DataplexService/ListAssetActions', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAssetActionsExceptionTest() + { + $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->assetName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]', '[ASSET]'); + $request = (new ListAssetActionsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listAssetActions($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 listAssetsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $assetsElement = new Asset(); + $assets = [ + $assetsElement, + ]; + $expectedResponse = new ListAssetsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setAssets($assets); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->zoneName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]'); + $request = (new ListAssetsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listAssets($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getAssets()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataplex.v1.DataplexService/ListAssets', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAssetsExceptionTest() + { + $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->zoneName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]'); + $request = (new ListAssetsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listAssets($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 listJobsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $jobsElement = new Job(); + $jobs = [ + $jobsElement, + ]; + $expectedResponse = new ListJobsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setJobs($jobs); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->taskName('[PROJECT]', '[LOCATION]', '[LAKE]', '[TASK]'); + $request = (new ListJobsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listJobs($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getJobs()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataplex.v1.DataplexService/ListJobs', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listJobsExceptionTest() + { + $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->taskName('[PROJECT]', '[LOCATION]', '[LAKE]', '[TASK]'); + $request = (new ListJobsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listJobs($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 listLakeActionsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $actionsElement = new Action(); + $actions = [ + $actionsElement, + ]; + $expectedResponse = new ListActionsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setActions($actions); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->lakeName('[PROJECT]', '[LOCATION]', '[LAKE]'); + $request = (new ListLakeActionsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listLakeActions($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getActions()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataplex.v1.DataplexService/ListLakeActions', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listLakeActionsExceptionTest() + { + $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->lakeName('[PROJECT]', '[LOCATION]', '[LAKE]'); + $request = (new ListLakeActionsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listLakeActions($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 listLakesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $lakesElement = new Lake(); + $lakes = [ + $lakesElement, + ]; + $expectedResponse = new ListLakesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setLakes($lakes); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListLakesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listLakes($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getLakes()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataplex.v1.DataplexService/ListLakes', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listLakesExceptionTest() + { + $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->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListLakesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listLakes($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 listTasksTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $tasksElement = new Task(); + $tasks = [ + $tasksElement, + ]; + $expectedResponse = new ListTasksResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTasks($tasks); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->lakeName('[PROJECT]', '[LOCATION]', '[LAKE]'); + $request = (new ListTasksRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listTasks($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getTasks()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataplex.v1.DataplexService/ListTasks', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listTasksExceptionTest() + { + $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->lakeName('[PROJECT]', '[LOCATION]', '[LAKE]'); + $request = (new ListTasksRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listTasks($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 listZoneActionsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $actionsElement = new Action(); + $actions = [ + $actionsElement, + ]; + $expectedResponse = new ListActionsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setActions($actions); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->zoneName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]'); + $request = (new ListZoneActionsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listZoneActions($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getActions()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataplex.v1.DataplexService/ListZoneActions', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listZoneActionsExceptionTest() + { + $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->zoneName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]'); + $request = (new ListZoneActionsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listZoneActions($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 listZonesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $zonesElement = new Zone(); + $zones = [ + $zonesElement, + ]; + $expectedResponse = new ListZonesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setZones($zones); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->lakeName('[PROJECT]', '[LOCATION]', '[LAKE]'); + $request = (new ListZonesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listZones($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getZones()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataplex.v1.DataplexService/ListZones', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listZonesExceptionTest() + { + $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->lakeName('[PROJECT]', '[LOCATION]', '[LAKE]'); + $request = (new ListZonesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listZones($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 runTaskTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new RunTaskResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->taskName('[PROJECT]', '[LOCATION]', '[LAKE]', '[TASK]'); + $request = (new RunTaskRequest()) + ->setName($formattedName); + $response = $gapicClient->runTask($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.dataplex.v1.DataplexService/RunTask', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function runTaskExceptionTest() + { + $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->taskName('[PROJECT]', '[LOCATION]', '[LAKE]', '[TASK]'); + $request = (new RunTaskRequest()) + ->setName($formattedName); + try { + $gapicClient->runTask($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 updateAssetTest() + { + $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/updateAssetTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $uid = 'uid115792'; + $description = 'description-1724546052'; + $expectedResponse = new Asset(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setUid($uid); + $expectedResponse->setDescription($description); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/updateAssetTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $updateMask = new FieldMask(); + $asset = new Asset(); + $assetResourceSpec = new ResourceSpec(); + $resourceSpecType = Type::TYPE_UNSPECIFIED; + $assetResourceSpec->setType($resourceSpecType); + $asset->setResourceSpec($assetResourceSpec); + $request = (new UpdateAssetRequest()) + ->setUpdateMask($updateMask) + ->setAsset($asset); + $response = $gapicClient->updateAsset($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.dataplex.v1.DataplexService/UpdateAsset', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $actualValue = $actualApiRequestObject->getAsset(); + $this->assertProtobufEquals($asset, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateAssetTest'); + $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 updateAssetExceptionTest() + { + $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/updateAssetTest'); + $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 + $updateMask = new FieldMask(); + $asset = new Asset(); + $assetResourceSpec = new ResourceSpec(); + $resourceSpecType = Type::TYPE_UNSPECIFIED; + $assetResourceSpec->setType($resourceSpecType); + $asset->setResourceSpec($assetResourceSpec); + $request = (new UpdateAssetRequest()) + ->setUpdateMask($updateMask) + ->setAsset($asset); + $response = $gapicClient->updateAsset($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateAssetTest'); + 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 updateLakeTest() + { + $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/updateLakeTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $uid = 'uid115792'; + $description = 'description-1724546052'; + $serviceAccount = 'serviceAccount-1948028253'; + $expectedResponse = new Lake(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setUid($uid); + $expectedResponse->setDescription($description); + $expectedResponse->setServiceAccount($serviceAccount); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/updateLakeTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $updateMask = new FieldMask(); + $lake = new Lake(); + $request = (new UpdateLakeRequest()) + ->setUpdateMask($updateMask) + ->setLake($lake); + $response = $gapicClient->updateLake($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.dataplex.v1.DataplexService/UpdateLake', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $actualValue = $actualApiRequestObject->getLake(); + $this->assertProtobufEquals($lake, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateLakeTest'); + $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 updateLakeExceptionTest() + { + $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/updateLakeTest'); + $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 + $updateMask = new FieldMask(); + $lake = new Lake(); + $request = (new UpdateLakeRequest()) + ->setUpdateMask($updateMask) + ->setLake($lake); + $response = $gapicClient->updateLake($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateLakeTest'); + 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 updateTaskTest() + { + $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/updateTaskTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $uid = 'uid115792'; + $description = 'description-1724546052'; + $displayName = 'displayName1615086568'; + $expectedResponse = new Task(); + $expectedResponse->setName($name); + $expectedResponse->setUid($uid); + $expectedResponse->setDescription($description); + $expectedResponse->setDisplayName($displayName); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/updateTaskTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $updateMask = new FieldMask(); + $task = new Task(); + $taskTriggerSpec = new TriggerSpec(); + $triggerSpecType = \Google\Cloud\Dataplex\V1\Task\TriggerSpec\Type::TYPE_UNSPECIFIED; + $taskTriggerSpec->setType($triggerSpecType); + $task->setTriggerSpec($taskTriggerSpec); + $taskExecutionSpec = new ExecutionSpec(); + $executionSpecServiceAccount = 'executionSpecServiceAccount-1249728629'; + $taskExecutionSpec->setServiceAccount($executionSpecServiceAccount); + $task->setExecutionSpec($taskExecutionSpec); + $request = (new UpdateTaskRequest()) + ->setUpdateMask($updateMask) + ->setTask($task); + $response = $gapicClient->updateTask($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.dataplex.v1.DataplexService/UpdateTask', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $actualValue = $actualApiRequestObject->getTask(); + $this->assertProtobufEquals($task, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateTaskTest'); + $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 updateTaskExceptionTest() + { + $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/updateTaskTest'); + $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 + $updateMask = new FieldMask(); + $task = new Task(); + $taskTriggerSpec = new TriggerSpec(); + $triggerSpecType = \Google\Cloud\Dataplex\V1\Task\TriggerSpec\Type::TYPE_UNSPECIFIED; + $taskTriggerSpec->setType($triggerSpecType); + $task->setTriggerSpec($taskTriggerSpec); + $taskExecutionSpec = new ExecutionSpec(); + $executionSpecServiceAccount = 'executionSpecServiceAccount-1249728629'; + $taskExecutionSpec->setServiceAccount($executionSpecServiceAccount); + $task->setExecutionSpec($taskExecutionSpec); + $request = (new UpdateTaskRequest()) + ->setUpdateMask($updateMask) + ->setTask($task); + $response = $gapicClient->updateTask($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateTaskTest'); + 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 updateZoneTest() + { + $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/updateZoneTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $uid = 'uid115792'; + $description = 'description-1724546052'; + $expectedResponse = new Zone(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setUid($uid); + $expectedResponse->setDescription($description); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/updateZoneTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $updateMask = new FieldMask(); + $zone = new Zone(); + $zoneType = \Google\Cloud\Dataplex\V1\Zone\Type::TYPE_UNSPECIFIED; + $zone->setType($zoneType); + $zoneResourceSpec = new \Google\Cloud\Dataplex\V1\Zone\ResourceSpec(); + $resourceSpecLocationType = LocationType::LOCATION_TYPE_UNSPECIFIED; + $zoneResourceSpec->setLocationType($resourceSpecLocationType); + $zone->setResourceSpec($zoneResourceSpec); + $request = (new UpdateZoneRequest()) + ->setUpdateMask($updateMask) + ->setZone($zone); + $response = $gapicClient->updateZone($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.dataplex.v1.DataplexService/UpdateZone', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getUpdateMask(); + $this->assertProtobufEquals($updateMask, $actualValue); + $actualValue = $actualApiRequestObject->getZone(); + $this->assertProtobufEquals($zone, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateZoneTest'); + $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 updateZoneExceptionTest() + { + $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/updateZoneTest'); + $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 + $updateMask = new FieldMask(); + $zone = new Zone(); + $zoneType = \Google\Cloud\Dataplex\V1\Zone\Type::TYPE_UNSPECIFIED; + $zone->setType($zoneType); + $zoneResourceSpec = new \Google\Cloud\Dataplex\V1\Zone\ResourceSpec(); + $resourceSpecLocationType = LocationType::LOCATION_TYPE_UNSPECIFIED; + $zoneResourceSpec->setLocationType($resourceSpecLocationType); + $zone->setResourceSpec($zoneResourceSpec); + $request = (new UpdateZoneRequest()) + ->setUpdateMask($updateMask) + ->setZone($zone); + $response = $gapicClient->updateZone($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/updateZoneTest'); + 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 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 getIamPolicyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $version = 351608024; + $etag = '21'; + $expectedResponse = new Policy(); + $expectedResponse->setVersion($version); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $resource = 'resource-341064690'; + $request = (new GetIamPolicyRequest()) + ->setResource($resource); + $response = $gapicClient->getIamPolicy($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.iam.v1.IAMPolicy/GetIamPolicy', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getIamPolicyExceptionTest() + { + $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 + $resource = 'resource-341064690'; + $request = (new GetIamPolicyRequest()) + ->setResource($resource); + try { + $gapicClient->getIamPolicy($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 setIamPolicyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $version = 351608024; + $etag = '21'; + $expectedResponse = new Policy(); + $expectedResponse->setVersion($version); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $resource = 'resource-341064690'; + $policy = new Policy(); + $request = (new SetIamPolicyRequest()) + ->setResource($resource) + ->setPolicy($policy); + $response = $gapicClient->setIamPolicy($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.iam.v1.IAMPolicy/SetIamPolicy', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $actualValue = $actualRequestObject->getPolicy(); + $this->assertProtobufEquals($policy, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setIamPolicyExceptionTest() + { + $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 + $resource = 'resource-341064690'; + $policy = new Policy(); + $request = (new SetIamPolicyRequest()) + ->setResource($resource) + ->setPolicy($policy); + try { + $gapicClient->setIamPolicy($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 testIamPermissionsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new TestIamPermissionsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $resource = 'resource-341064690'; + $permissions = []; + $request = (new TestIamPermissionsRequest()) + ->setResource($resource) + ->setPermissions($permissions); + $response = $gapicClient->testIamPermissions($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.iam.v1.IAMPolicy/TestIamPermissions', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $actualValue = $actualRequestObject->getPermissions(); + $this->assertProtobufEquals($permissions, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function testIamPermissionsExceptionTest() + { + $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 + $resource = 'resource-341064690'; + $permissions = []; + $request = (new TestIamPermissionsRequest()) + ->setResource($resource) + ->setPermissions($permissions); + try { + $gapicClient->testIamPermissions($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 cancelJobAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->jobName('[PROJECT]', '[LOCATION]', '[LAKE]', '[TASK]', '[JOB]'); + $request = (new CancelJobRequest()) + ->setName($formattedName); + $gapicClient->cancelJobAsync($request)->wait(); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataplex.v1.DataplexService/CancelJob', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/MetadataServiceClientTest.php b/owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/MetadataServiceClientTest.php new file mode 100644 index 000000000000..d1f292d5c9df --- /dev/null +++ b/owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/MetadataServiceClientTest.php @@ -0,0 +1,1239 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return MetadataServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new MetadataServiceClient($options); + } + + /** @test */ + public function createEntityTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $id = 'id3355'; + $etag = 'etag3123477'; + $asset = 'asset93121264'; + $dataPath = 'dataPath-363501670'; + $dataPathPattern = 'dataPathPattern-594427925'; + $catalogEntry = 'catalogEntry-1234004788'; + $uid = 'uid115792'; + $expectedResponse = new Entity(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setId($id); + $expectedResponse->setEtag($etag); + $expectedResponse->setAsset($asset); + $expectedResponse->setDataPath($dataPath); + $expectedResponse->setDataPathPattern($dataPathPattern); + $expectedResponse->setCatalogEntry($catalogEntry); + $expectedResponse->setUid($uid); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->zoneName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]'); + $entity = new Entity(); + $entityId = 'entityId-2102099874'; + $entity->setId($entityId); + $entityType = Type::TYPE_UNSPECIFIED; + $entity->setType($entityType); + $entityAsset = 'entityAsset1253969101'; + $entity->setAsset($entityAsset); + $entityDataPath = 'entityDataPath1530173426'; + $entity->setDataPath($entityDataPath); + $entitySystem = StorageSystem::STORAGE_SYSTEM_UNSPECIFIED; + $entity->setSystem($entitySystem); + $entityFormat = new StorageFormat(); + $formatMimeType = 'formatMimeType-1419746651'; + $entityFormat->setMimeType($formatMimeType); + $entity->setFormat($entityFormat); + $entitySchema = new Schema(); + $schemaUserManaged = false; + $entitySchema->setUserManaged($schemaUserManaged); + $entity->setSchema($entitySchema); + $request = (new CreateEntityRequest()) + ->setParent($formattedParent) + ->setEntity($entity); + $response = $gapicClient->createEntity($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.dataplex.v1.MetadataService/CreateEntity', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getEntity(); + $this->assertProtobufEquals($entity, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createEntityExceptionTest() + { + $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->zoneName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]'); + $entity = new Entity(); + $entityId = 'entityId-2102099874'; + $entity->setId($entityId); + $entityType = Type::TYPE_UNSPECIFIED; + $entity->setType($entityType); + $entityAsset = 'entityAsset1253969101'; + $entity->setAsset($entityAsset); + $entityDataPath = 'entityDataPath1530173426'; + $entity->setDataPath($entityDataPath); + $entitySystem = StorageSystem::STORAGE_SYSTEM_UNSPECIFIED; + $entity->setSystem($entitySystem); + $entityFormat = new StorageFormat(); + $formatMimeType = 'formatMimeType-1419746651'; + $entityFormat->setMimeType($formatMimeType); + $entity->setFormat($entityFormat); + $entitySchema = new Schema(); + $schemaUserManaged = false; + $entitySchema->setUserManaged($schemaUserManaged); + $entity->setSchema($entitySchema); + $request = (new CreateEntityRequest()) + ->setParent($formattedParent) + ->setEntity($entity); + try { + $gapicClient->createEntity($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 createPartitionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $location = 'location1901043637'; + $etag = 'etag3123477'; + $expectedResponse = new Partition(); + $expectedResponse->setName($name); + $expectedResponse->setLocation($location); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->entityName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]', '[ENTITY]'); + $partition = new Partition(); + $partitionValues = []; + $partition->setValues($partitionValues); + $partitionLocation = 'partitionLocation-1757508417'; + $partition->setLocation($partitionLocation); + $request = (new CreatePartitionRequest()) + ->setParent($formattedParent) + ->setPartition($partition); + $response = $gapicClient->createPartition($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.dataplex.v1.MetadataService/CreatePartition', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getPartition(); + $this->assertProtobufEquals($partition, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createPartitionExceptionTest() + { + $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->entityName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]', '[ENTITY]'); + $partition = new Partition(); + $partitionValues = []; + $partition->setValues($partitionValues); + $partitionLocation = 'partitionLocation-1757508417'; + $partition->setLocation($partitionLocation); + $request = (new CreatePartitionRequest()) + ->setParent($formattedParent) + ->setPartition($partition); + try { + $gapicClient->createPartition($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 deleteEntityTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->entityName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]', '[ENTITY]'); + $etag = 'etag3123477'; + $request = (new DeleteEntityRequest()) + ->setName($formattedName) + ->setEtag($etag); + $gapicClient->deleteEntity($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataplex.v1.MetadataService/DeleteEntity', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $actualValue = $actualRequestObject->getEtag(); + $this->assertProtobufEquals($etag, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deleteEntityExceptionTest() + { + $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->entityName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]', '[ENTITY]'); + $etag = 'etag3123477'; + $request = (new DeleteEntityRequest()) + ->setName($formattedName) + ->setEtag($etag); + try { + $gapicClient->deleteEntity($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 deletePartitionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new GPBEmpty(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->partitionName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]', '[ENTITY]', '[PARTITION]'); + $request = (new DeletePartitionRequest()) + ->setName($formattedName); + $gapicClient->deletePartition($request); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataplex.v1.MetadataService/DeletePartition', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function deletePartitionExceptionTest() + { + $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->partitionName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]', '[ENTITY]', '[PARTITION]'); + $request = (new DeletePartitionRequest()) + ->setName($formattedName); + try { + $gapicClient->deletePartition($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 getEntityTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $id = 'id3355'; + $etag = 'etag3123477'; + $asset = 'asset93121264'; + $dataPath = 'dataPath-363501670'; + $dataPathPattern = 'dataPathPattern-594427925'; + $catalogEntry = 'catalogEntry-1234004788'; + $uid = 'uid115792'; + $expectedResponse = new Entity(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setId($id); + $expectedResponse->setEtag($etag); + $expectedResponse->setAsset($asset); + $expectedResponse->setDataPath($dataPath); + $expectedResponse->setDataPathPattern($dataPathPattern); + $expectedResponse->setCatalogEntry($catalogEntry); + $expectedResponse->setUid($uid); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->entityName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]', '[ENTITY]'); + $request = (new GetEntityRequest()) + ->setName($formattedName); + $response = $gapicClient->getEntity($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.dataplex.v1.MetadataService/GetEntity', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getEntityExceptionTest() + { + $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->entityName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]', '[ENTITY]'); + $request = (new GetEntityRequest()) + ->setName($formattedName); + try { + $gapicClient->getEntity($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 getPartitionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $location = 'location1901043637'; + $etag = 'etag3123477'; + $expectedResponse = new Partition(); + $expectedResponse->setName($name2); + $expectedResponse->setLocation($location); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->partitionName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]', '[ENTITY]', '[PARTITION]'); + $request = (new GetPartitionRequest()) + ->setName($formattedName); + $response = $gapicClient->getPartition($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.dataplex.v1.MetadataService/GetPartition', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getPartitionExceptionTest() + { + $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->partitionName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]', '[ENTITY]', '[PARTITION]'); + $request = (new GetPartitionRequest()) + ->setName($formattedName); + try { + $gapicClient->getPartition($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 listEntitiesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $entitiesElement = new Entity(); + $entities = [ + $entitiesElement, + ]; + $expectedResponse = new ListEntitiesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setEntities($entities); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->zoneName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]'); + $view = EntityView::ENTITY_VIEW_UNSPECIFIED; + $request = (new ListEntitiesRequest()) + ->setParent($formattedParent) + ->setView($view); + $response = $gapicClient->listEntities($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getEntities()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataplex.v1.MetadataService/ListEntities', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getView(); + $this->assertProtobufEquals($view, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listEntitiesExceptionTest() + { + $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->zoneName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]'); + $view = EntityView::ENTITY_VIEW_UNSPECIFIED; + $request = (new ListEntitiesRequest()) + ->setParent($formattedParent) + ->setView($view); + try { + $gapicClient->listEntities($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 listPartitionsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $partitionsElement = new Partition(); + $partitions = [ + $partitionsElement, + ]; + $expectedResponse = new ListPartitionsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setPartitions($partitions); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->entityName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]', '[ENTITY]'); + $request = (new ListPartitionsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listPartitions($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getPartitions()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.dataplex.v1.MetadataService/ListPartitions', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listPartitionsExceptionTest() + { + $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->entityName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]', '[ENTITY]'); + $request = (new ListPartitionsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listPartitions($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 updateEntityTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $id = 'id3355'; + $etag = 'etag3123477'; + $asset = 'asset93121264'; + $dataPath = 'dataPath-363501670'; + $dataPathPattern = 'dataPathPattern-594427925'; + $catalogEntry = 'catalogEntry-1234004788'; + $uid = 'uid115792'; + $expectedResponse = new Entity(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setId($id); + $expectedResponse->setEtag($etag); + $expectedResponse->setAsset($asset); + $expectedResponse->setDataPath($dataPath); + $expectedResponse->setDataPathPattern($dataPathPattern); + $expectedResponse->setCatalogEntry($catalogEntry); + $expectedResponse->setUid($uid); + $transport->addResponse($expectedResponse); + // Mock request + $entity = new Entity(); + $entityId = 'entityId-2102099874'; + $entity->setId($entityId); + $entityType = Type::TYPE_UNSPECIFIED; + $entity->setType($entityType); + $entityAsset = 'entityAsset1253969101'; + $entity->setAsset($entityAsset); + $entityDataPath = 'entityDataPath1530173426'; + $entity->setDataPath($entityDataPath); + $entitySystem = StorageSystem::STORAGE_SYSTEM_UNSPECIFIED; + $entity->setSystem($entitySystem); + $entityFormat = new StorageFormat(); + $formatMimeType = 'formatMimeType-1419746651'; + $entityFormat->setMimeType($formatMimeType); + $entity->setFormat($entityFormat); + $entitySchema = new Schema(); + $schemaUserManaged = false; + $entitySchema->setUserManaged($schemaUserManaged); + $entity->setSchema($entitySchema); + $request = (new UpdateEntityRequest()) + ->setEntity($entity); + $response = $gapicClient->updateEntity($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.dataplex.v1.MetadataService/UpdateEntity', $actualFuncCall); + $actualValue = $actualRequestObject->getEntity(); + $this->assertProtobufEquals($entity, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateEntityExceptionTest() + { + $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 + $entity = new Entity(); + $entityId = 'entityId-2102099874'; + $entity->setId($entityId); + $entityType = Type::TYPE_UNSPECIFIED; + $entity->setType($entityType); + $entityAsset = 'entityAsset1253969101'; + $entity->setAsset($entityAsset); + $entityDataPath = 'entityDataPath1530173426'; + $entity->setDataPath($entityDataPath); + $entitySystem = StorageSystem::STORAGE_SYSTEM_UNSPECIFIED; + $entity->setSystem($entitySystem); + $entityFormat = new StorageFormat(); + $formatMimeType = 'formatMimeType-1419746651'; + $entityFormat->setMimeType($formatMimeType); + $entity->setFormat($entityFormat); + $entitySchema = new Schema(); + $schemaUserManaged = false; + $entitySchema->setUserManaged($schemaUserManaged); + $entity->setSchema($entitySchema); + $request = (new UpdateEntityRequest()) + ->setEntity($entity); + try { + $gapicClient->updateEntity($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 getIamPolicyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $version = 351608024; + $etag = '21'; + $expectedResponse = new Policy(); + $expectedResponse->setVersion($version); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $resource = 'resource-341064690'; + $request = (new GetIamPolicyRequest()) + ->setResource($resource); + $response = $gapicClient->getIamPolicy($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.iam.v1.IAMPolicy/GetIamPolicy', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getIamPolicyExceptionTest() + { + $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 + $resource = 'resource-341064690'; + $request = (new GetIamPolicyRequest()) + ->setResource($resource); + try { + $gapicClient->getIamPolicy($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 setIamPolicyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $version = 351608024; + $etag = '21'; + $expectedResponse = new Policy(); + $expectedResponse->setVersion($version); + $expectedResponse->setEtag($etag); + $transport->addResponse($expectedResponse); + // Mock request + $resource = 'resource-341064690'; + $policy = new Policy(); + $request = (new SetIamPolicyRequest()) + ->setResource($resource) + ->setPolicy($policy); + $response = $gapicClient->setIamPolicy($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.iam.v1.IAMPolicy/SetIamPolicy', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $actualValue = $actualRequestObject->getPolicy(); + $this->assertProtobufEquals($policy, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function setIamPolicyExceptionTest() + { + $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 + $resource = 'resource-341064690'; + $policy = new Policy(); + $request = (new SetIamPolicyRequest()) + ->setResource($resource) + ->setPolicy($policy); + try { + $gapicClient->setIamPolicy($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 testIamPermissionsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new TestIamPermissionsResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $resource = 'resource-341064690'; + $permissions = []; + $request = (new TestIamPermissionsRequest()) + ->setResource($resource) + ->setPermissions($permissions); + $response = $gapicClient->testIamPermissions($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.iam.v1.IAMPolicy/TestIamPermissions', $actualFuncCall); + $actualValue = $actualRequestObject->getResource(); + $this->assertProtobufEquals($resource, $actualValue); + $actualValue = $actualRequestObject->getPermissions(); + $this->assertProtobufEquals($permissions, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function testIamPermissionsExceptionTest() + { + $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 + $resource = 'resource-341064690'; + $permissions = []; + $request = (new TestIamPermissionsRequest()) + ->setResource($resource) + ->setPermissions($permissions); + try { + $gapicClient->testIamPermissions($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 createEntityAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $description = 'description-1724546052'; + $id = 'id3355'; + $etag = 'etag3123477'; + $asset = 'asset93121264'; + $dataPath = 'dataPath-363501670'; + $dataPathPattern = 'dataPathPattern-594427925'; + $catalogEntry = 'catalogEntry-1234004788'; + $uid = 'uid115792'; + $expectedResponse = new Entity(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setDescription($description); + $expectedResponse->setId($id); + $expectedResponse->setEtag($etag); + $expectedResponse->setAsset($asset); + $expectedResponse->setDataPath($dataPath); + $expectedResponse->setDataPathPattern($dataPathPattern); + $expectedResponse->setCatalogEntry($catalogEntry); + $expectedResponse->setUid($uid); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->zoneName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]'); + $entity = new Entity(); + $entityId = 'entityId-2102099874'; + $entity->setId($entityId); + $entityType = Type::TYPE_UNSPECIFIED; + $entity->setType($entityType); + $entityAsset = 'entityAsset1253969101'; + $entity->setAsset($entityAsset); + $entityDataPath = 'entityDataPath1530173426'; + $entity->setDataPath($entityDataPath); + $entitySystem = StorageSystem::STORAGE_SYSTEM_UNSPECIFIED; + $entity->setSystem($entitySystem); + $entityFormat = new StorageFormat(); + $formatMimeType = 'formatMimeType-1419746651'; + $entityFormat->setMimeType($formatMimeType); + $entity->setFormat($entityFormat); + $entitySchema = new Schema(); + $schemaUserManaged = false; + $entitySchema->setUserManaged($schemaUserManaged); + $entity->setSchema($entitySchema); + $request = (new CreateEntityRequest()) + ->setParent($formattedParent) + ->setEntity($entity); + $response = $gapicClient->createEntityAsync($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.dataplex.v1.MetadataService/CreateEntity', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getEntity(); + $this->assertProtobufEquals($entity, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} From b519a77799db247c80c3f58fa4ac07b458b65985 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Mon, 25 May 2026 07:08:38 +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 --- .../metadata}/V1/ApprovalWorkflow.php | 0 Dataplex/metadata/V1/BusinessGlossary.php | 2 +- Dataplex/metadata/V1/Catalog.php | 2 +- Dataplex/metadata/V1/Cmek.php | 2 +- Dataplex/metadata/V1/DataDiscovery.php | 2 +- Dataplex/metadata/V1/DataDocumentation.php | 3 +- Dataplex/metadata/V1/DataProducts.php | 3 +- Dataplex/metadata/V1/DataProfile.php | 2 +- Dataplex/metadata/V1/DataQuality.php | 3 +- .../metadata}/V1/DataQualityRuleTemplate.php | 0 Dataplex/metadata/V1/DataTaxonomy.php | 2 +- Dataplex/metadata/V1/Datascans.php | 2 +- Dataplex/metadata/V1/Logs.php | 2 +- Dataplex/metadata/V1/Metadata.php | 2 +- Dataplex/metadata/V1/Service.php | 2 +- .../list_locations.php | 20 +- .../CatalogServiceClient/list_locations.php | 20 +- .../CatalogServiceClient/lookup_context.php | 6 +- .../V1/CatalogServiceClient/modify_entry.php | 0 .../V1/CmekServiceClient/list_locations.php | 20 +- .../ContentServiceClient/list_locations.php | 20 +- .../list_locations.php | 20 +- .../request_data_product_access.php | 0 .../cancel_data_scan_job.php | 0 .../create_data_scan.php | 15 +- .../DataScanServiceClient/list_locations.php | 20 +- .../list_locations.php | 20 +- .../DataplexServiceClient/list_locations.php | 20 +- .../MetadataServiceClient/list_locations.php | 20 +- Dataplex/src/V1/Aspect.php | 2 +- .../src}/V1/CancelDataScanJobRequest.php | 0 .../src}/V1/CancelDataScanJobResponse.php | 0 .../src}/V1/ChangeRequest.php | 0 .../src}/V1/ChangeRequest/ChangeType.php | 0 .../src}/V1/ChangeRequest/State.php | 0 .../Client/BusinessGlossaryServiceClient.php | 27 +- .../src/V1/Client/CatalogServiceClient.php | 48 +- Dataplex/src/V1/Client/CmekServiceClient.php | 25 +- .../src/V1/Client/ContentServiceClient.php | 20 +- .../V1/Client/DataProductServiceClient.php | 221 +- .../src/V1/Client/DataScanServiceClient.php | 80 +- .../V1/Client/DataTaxonomyServiceClient.php | 25 +- .../src/V1/Client/DataplexServiceClient.php | 27 +- .../src/V1/Client/MetadataServiceClient.php | 25 +- Dataplex/src/V1/CreateDataScanRequest.php | 21 +- .../V1/DataDiscoverySpec/StorageConfig.php | 44 + .../StorageConfig/UnstructuredDataOptions.php | 0 Dataplex/src/V1/DataProduct.php | 44 + .../V1/DataProduct/AccessApprovalConfig.php | 0 Dataplex/src/V1/DataProduct/Principal.php | 48 + .../src}/V1/DataProductAccessRequest.php | 0 Dataplex/src/V1/DataProfileSpec.php | 34 + .../src}/V1/DataProfileSpec/Mode.php | 0 Dataplex/src/V1/DataQualityRule.php | 129 + .../src}/V1/DataQualityRule/RuleSource.php | 0 .../RuleSource/RulePathElement.php | 0 .../RulePathElement/EntryLinkSource.php | 0 .../RulePathElement/EntrySource.php | 0 .../V1/DataQualityRule/TemplateReference.php | 0 .../TemplateReference/ParameterValue.php | 0 .../src}/V1/DataQualityRuleTemplate.php | 0 .../ParameterDescription.php | 0 .../src}/V1/DataQualityRuleTemplate/Sql.php | 0 .../V1/DataQualityScanRuleResult/RuleType.php | 8 + Dataplex/src/V1/DataQualitySpec.php | 132 + Dataplex/src/V1/DataScan.php | 57 +- Dataplex/src/V1/DataScanJob.php | 34 + Dataplex/src/V1/DataScanJob/State.php | 7 + Dataplex/src/V1/DataSource.php | 21 +- .../src}/V1/ExecutionIdentity.php | 0 .../DataplexServiceAgent.php | 0 .../V1/ExecutionIdentity/ServiceAccount.php | 0 .../V1/ExecutionIdentity/UserCredential.php | 0 Dataplex/src/V1/GetEntryRequest.php | 12 + Dataplex/src/V1/LookupContextRequest.php | 86 +- Dataplex/src/V1/LookupContextResponse.php | 12 +- Dataplex/src/V1/LookupEntryRequest.php | 12 + .../src}/V1/ModifyEntryRequest.php | 0 .../V1/RequestDataProductAccessRequest.php | 0 .../V1/RequestDataProductAccessResponse.php | 0 Dataplex/src/V1/gapic_metadata.json | 15 + ...ss_glossary_service_rest_client_config.php | 28 +- .../catalog_service_client_config.json | 23 +- .../catalog_service_descriptor_config.php | 12 + .../catalog_service_rest_client_config.php | 40 +- .../cmek_service_rest_client_config.php | 28 +- .../content_service_rest_client_config.php | 28 +- .../data_product_service_client_config.json | 5 + ...data_product_service_descriptor_config.php | 19 + ...ata_product_service_rest_client_config.php | 40 +- .../data_scan_service_client_config.json | 5 + .../data_scan_service_descriptor_config.php | 13 + .../data_scan_service_rest_client_config.php | 43 +- ...ta_taxonomy_service_rest_client_config.php | 28 +- .../dataplex_service_rest_client_config.php | 28 +- .../metadata_service_rest_client_config.php | 28 +- .../V1/Client/CatalogServiceClientTest.php | 84 +- .../Client/DataProductServiceClientTest.php | 76 + .../V1/Client/DataScanServiceClientTest.php | 165 +- .../Google/Cloud/Dataplex/V1/Analyze.php | 29 - .../Cloud/Dataplex/V1/BusinessGlossary.php | 34 - .../Google/Cloud/Dataplex/V1/Catalog.php | 35 - .../Google/Cloud/Dataplex/V1/Cmek.php | 33 - .../Google/Cloud/Dataplex/V1/Content.php | 28 - .../Cloud/Dataplex/V1/DataDiscovery.php | 26 - .../Cloud/Dataplex/V1/DataDocumentation.php | 26 - .../Google/Cloud/Dataplex/V1/DataProducts.php | 35 - .../Google/Cloud/Dataplex/V1/DataProfile.php | 27 - .../Google/Cloud/Dataplex/V1/DataQuality.php | 29 - .../Google/Cloud/Dataplex/V1/DataTaxonomy.php | 34 - .../Google/Cloud/Dataplex/V1/Datascans.php | 40 - .../Cloud/Dataplex/V1/DatascansCommon.php | 25 - .../Google/Cloud/Dataplex/V1/Logs.php | 29 - .../Google/Cloud/Dataplex/V1/Metadata.php | 30 - .../Google/Cloud/Dataplex/V1/Processing.php | 27 - .../Google/Cloud/Dataplex/V1/Resources.php | 28 - .../Google/Cloud/Dataplex/V1/Security.php | 25 - .../Google/Cloud/Dataplex/V1/Service.php | 34 - .../Google/Cloud/Dataplex/V1/Tasks.php | 29 - .../src/Google/Cloud/Dataplex/V1/Action.php | 634 --- .../Cloud/Dataplex/V1/Action/Category.php | 68 - .../V1/Action/FailedSecurityPolicyApply.php | 74 - .../V1/Action/IncompatibleDataSchema.php | 215 - .../IncompatibleDataSchema/SchemaChange.php | 62 - .../Dataplex/V1/Action/InvalidDataFormat.php | 139 - .../V1/Action/InvalidDataOrganization.php | 33 - .../V1/Action/InvalidDataPartition.php | 67 - .../PartitionStructure.php | 61 - .../Cloud/Dataplex/V1/Action/MissingData.php | 33 - .../Dataplex/V1/Action/MissingResource.php | 33 - .../V1/Action/UnauthorizedResource.php | 35 - .../src/Google/Cloud/Dataplex/V1/Aspect.php | 281 -- .../Google/Cloud/Dataplex/V1/AspectSource.php | 163 - .../Google/Cloud/Dataplex/V1/AspectType.php | 502 -- .../Dataplex/V1/AspectType/Authorization.php | 75 - .../V1/AspectType/DataClassification.php | 54 - .../V1/AspectType/MetadataTemplate.php | 575 --- .../MetadataTemplate/Annotations.php | 265 -- .../MetadataTemplate/Constraints.php | 67 - .../AspectType/MetadataTemplate/EnumValue.php | 143 - .../src/Google/Cloud/Dataplex/V1/Asset.php | 574 --- .../Cloud/Dataplex/V1/Asset/DiscoverySpec.php | 317 -- .../V1/Asset/DiscoverySpec/CsvOptions.php | 181 - .../V1/Asset/DiscoverySpec/JsonOptions.php | 109 - .../Dataplex/V1/Asset/DiscoveryStatus.php | 277 -- .../V1/Asset/DiscoveryStatus/State.php | 76 - .../V1/Asset/DiscoveryStatus/Stats.php | 169 - .../Cloud/Dataplex/V1/Asset/ResourceSpec.php | 151 - .../V1/Asset/ResourceSpec/AccessMode.php | 62 - .../Dataplex/V1/Asset/ResourceSpec/Type.php | 61 - .../Dataplex/V1/Asset/ResourceStatus.php | 179 - .../V1/Asset/ResourceStatus/State.php | 61 - .../Dataplex/V1/Asset/SecurityStatus.php | 150 - .../V1/Asset/SecurityStatus/State.php | 70 - .../Google/Cloud/Dataplex/V1/AssetStatus.php | 149 - .../Dataplex/V1/BusinessGlossaryEvent.php | 135 - .../V1/BusinessGlossaryEvent/EventType.php | 110 - .../Cloud/Dataplex/V1/CancelJobRequest.php | 86 - .../Dataplex/V1/CancelMetadataJobRequest.php | 86 - .../src/Google/Cloud/Dataplex/V1/Content.php | 428 -- .../Cloud/Dataplex/V1/Content/Notebook.php | 67 - .../V1/Content/Notebook/KernelType.php | 54 - .../Cloud/Dataplex/V1/Content/SqlScript.php | 67 - .../V1/Content/SqlScript/QueryEngine.php | 54 - .../Dataplex/V1/CreateAspectTypeRequest.php | 211 - .../Cloud/Dataplex/V1/CreateAssetRequest.php | 241 - .../Dataplex/V1/CreateDataAssetRequest.php | 242 - .../V1/CreateDataAttributeBindingRequest.php | 231 - .../V1/CreateDataAttributeRequest.php | 231 - .../Dataplex/V1/CreateDataProductRequest.php | 237 - .../Dataplex/V1/CreateDataScanRequest.php | 247 - .../Dataplex/V1/CreateDataTaxonomyRequest.php | 219 - .../V1/CreateEncryptionConfigRequest.php | 173 - .../Cloud/Dataplex/V1/CreateEntityRequest.php | 170 - .../Dataplex/V1/CreateEntryGroupRequest.php | 211 - .../Dataplex/V1/CreateEntryLinkRequest.php | 193 - .../Cloud/Dataplex/V1/CreateEntryRequest.php | 247 - .../Dataplex/V1/CreateEntryTypeRequest.php | 211 - .../V1/CreateGlossaryCategoryRequest.php | 178 - .../Dataplex/V1/CreateGlossaryRequest.php | 211 - .../Dataplex/V1/CreateGlossaryTermRequest.php | 178 - .../Cloud/Dataplex/V1/CreateLakeRequest.php | 246 - .../Dataplex/V1/CreateMetadataFeedRequest.php | 211 - .../Dataplex/V1/CreateMetadataJobRequest.php | 211 - .../Dataplex/V1/CreatePartitionRequest.php | 170 - .../Cloud/Dataplex/V1/CreateTaskRequest.php | 206 - .../Cloud/Dataplex/V1/CreateZoneRequest.php | 246 - .../Cloud/Dataplex/V1/DataAccessSpec.php | 83 - .../Google/Cloud/Dataplex/V1/DataAsset.php | 458 -- .../V1/DataAsset/AccessGroupConfig.php | 75 - .../Cloud/Dataplex/V1/DataAttribute.php | 531 --- .../Dataplex/V1/DataAttributeBinding.php | 493 -- .../Dataplex/V1/DataAttributeBinding/Path.php | 115 - .../Cloud/Dataplex/V1/DataDiscoveryResult.php | 121 - .../BigQueryPublishing.php | 101 - .../V1/DataDiscoveryResult/ScanStatistics.php | 339 -- .../Cloud/Dataplex/V1/DataDiscoverySpec.php | 119 - .../BigQueryPublishingConfig.php | 269 -- .../BigQueryPublishingConfig/TableType.php | 65 - .../V1/DataDiscoverySpec/StorageConfig.php | 269 -- .../StorageConfig/CsvOptions.php | 223 - .../StorageConfig/JsonOptions.php | 109 - .../Dataplex/V1/DataDocumentationResult.php | 108 - .../DataDocumentationResult/DatasetResult.php | 139 - .../V1/DataDocumentationResult/Field.php | 135 - .../V1/DataDocumentationResult/Query.php | 101 - .../V1/DataDocumentationResult/Schema.php | 67 - .../SchemaRelationship.php | 213 - .../SchemaRelationship/SchemaPaths.php | 121 - .../SchemaRelationship/Source.php | 70 - .../SchemaRelationship/Type.php | 54 - .../DataDocumentationResult/TableResult.php | 191 - .../Dataplex/V1/DataDocumentationSpec.php | 113 - .../DataDocumentationSpec/GenerationScope.php | 70 - .../Google/Cloud/Dataplex/V1/DataProduct.php | 639 --- .../Dataplex/V1/DataProduct/AccessGroup.php | 189 - .../Dataplex/V1/DataProduct/Principal.php | 127 - .../Cloud/Dataplex/V1/DataProfileResult.php | 248 - .../PostScanActionsResult.php | 77 - .../BigQueryExportResult.php | 101 - .../BigQueryExportResult/State.php | 69 - .../Dataplex/V1/DataProfileResult/Profile.php | 71 - .../V1/DataProfileResult/Profile/Field.php | 211 - .../Profile/Field/ProfileInfo.php | 275 -- .../Field/ProfileInfo/DoubleFieldInfo.php | 263 -- .../Field/ProfileInfo/IntegerFieldInfo.php | 263 -- .../Field/ProfileInfo/StringFieldInfo.php | 135 - .../Profile/Field/ProfileInfo/TopNValue.php | 139 - .../Cloud/Dataplex/V1/DataProfileSpec.php | 353 -- .../V1/DataProfileSpec/PostScanActions.php | 81 - .../PostScanActions/BigQueryExport.php | 75 - .../V1/DataProfileSpec/SelectedFields.php | 87 - .../Dataplex/V1/DataQualityColumnResult.php | 192 - .../Dataplex/V1/DataQualityDimension.php | 72 - .../V1/DataQualityDimensionResult.php | 168 - .../Cloud/Dataplex/V1/DataQualityResult.php | 447 -- .../AnomalyDetectionGeneratedAssets.php | 213 - .../PostScanActionsResult.php | 77 - .../BigQueryExportResult.php | 101 - .../BigQueryExportResult/State.php | 69 - .../Cloud/Dataplex/V1/DataQualityRule.php | 845 ---- .../V1/DataQualityRule/DebugQuery.php | 120 - .../V1/DataQualityRule/NonNullExpectation.php | 33 - .../V1/DataQualityRule/RangeExpectation.php | 201 - .../V1/DataQualityRule/RegexExpectation.php | 67 - .../RowConditionExpectation.php | 71 - .../V1/DataQualityRule/SetExpectation.php | 67 - .../V1/DataQualityRule/SqlAssertion.php | 77 - .../StatisticRangeExpectation.php | 236 - .../ColumnStatistic.php | 68 - .../TableConditionExpectation.php | 71 - .../DataQualityRule/UniquenessExpectation.php | 33 - .../Dataplex/V1/DataQualityRuleResult.php | 409 -- .../DebugQueryResult.php | 147 - .../DebugQueryResultSet.php | 67 - .../Dataplex/V1/DataQualityScanRuleResult.php | 488 -- .../EvaluationType.php | 61 - .../V1/DataQualityScanRuleResult/Result.php | 61 - .../V1/DataQualityScanRuleResult/RuleType.php | 127 - .../Cloud/Dataplex/V1/DataQualitySpec.php | 389 -- .../V1/DataQualitySpec/PostScanActions.php | 129 - .../PostScanActions/BigQueryExport.php | 83 - .../PostScanActions/JobEndTrigger.php | 34 - .../PostScanActions/JobFailureTrigger.php | 34 - .../PostScanActions/NotificationReport.php | 209 - .../PostScanActions/Recipients.php | 72 - .../PostScanActions/ScoreThresholdTrigger.php | 68 - .../src/Google/Cloud/Dataplex/V1/DataScan.php | 867 ---- .../Dataplex/V1/DataScan/ExecutionSpec.php | 133 - .../Dataplex/V1/DataScan/ExecutionStatus.php | 165 - .../V1/DataScanCatalogPublishingStatus.php | 69 - .../DataScanCatalogPublishingStatus/State.php | 68 - .../Cloud/Dataplex/V1/DataScanEvent.php | 680 --- .../DataProfileAppliedConfigs.php | 147 - .../V1/DataScanEvent/DataProfileResult.php | 67 - .../DataQualityAppliedConfigs.php | 109 - .../V1/DataScanEvent/DataQualityResult.php | 289 -- .../DataScanEvent/PostScanActionsResult.php | 77 - .../BigQueryExportResult.php | 101 - .../BigQueryExportResult/State.php | 69 - .../Dataplex/V1/DataScanEvent/ScanType.php | 68 - .../Cloud/Dataplex/V1/DataScanEvent/Scope.php | 61 - .../Cloud/Dataplex/V1/DataScanEvent/State.php | 82 - .../Dataplex/V1/DataScanEvent/Trigger.php | 68 - .../Google/Cloud/Dataplex/V1/DataScanJob.php | 667 --- .../Cloud/Dataplex/V1/DataScanJob/State.php | 96 - .../Google/Cloud/Dataplex/V1/DataScanType.php | 75 - .../Google/Cloud/Dataplex/V1/DataSource.php | 150 - .../Google/Cloud/Dataplex/V1/DataTaxonomy.php | 416 -- .../Dataplex/V1/DeleteAspectTypeRequest.php | 128 - .../Cloud/Dataplex/V1/DeleteAssetRequest.php | 86 - .../Dataplex/V1/DeleteDataAssetRequest.php | 175 - .../V1/DeleteDataAttributeBindingRequest.php | 132 - .../V1/DeleteDataAttributeRequest.php | 124 - .../Dataplex/V1/DeleteDataProductRequest.php | 175 - .../Dataplex/V1/DeleteDataScanRequest.php | 138 - .../Dataplex/V1/DeleteDataTaxonomyRequest.php | 125 - .../V1/DeleteEncryptionConfigRequest.php | 115 - .../Cloud/Dataplex/V1/DeleteEntityRequest.php | 124 - .../Dataplex/V1/DeleteEntryGroupRequest.php | 128 - .../Dataplex/V1/DeleteEntryLinkRequest.php | 86 - .../Cloud/Dataplex/V1/DeleteEntryRequest.php | 86 - .../Dataplex/V1/DeleteEntryTypeRequest.php | 124 - .../V1/DeleteGlossaryCategoryRequest.php | 91 - .../Dataplex/V1/DeleteGlossaryRequest.php | 137 - .../Dataplex/V1/DeleteGlossaryTermRequest.php | 91 - .../Cloud/Dataplex/V1/DeleteLakeRequest.php | 86 - .../Dataplex/V1/DeleteMetadataFeedRequest.php | 86 - .../Dataplex/V1/DeletePartitionRequest.php | 142 - .../Cloud/Dataplex/V1/DeleteTaskRequest.php | 86 - .../Cloud/Dataplex/V1/DeleteZoneRequest.php | 86 - .../Cloud/Dataplex/V1/DiscoveryEvent.php | 445 -- .../V1/DiscoveryEvent/ActionDetails.php | 105 - .../V1/DiscoveryEvent/ConfigDetails.php | 79 - .../V1/DiscoveryEvent/EntityDetails.php | 105 - .../Dataplex/V1/DiscoveryEvent/EntityType.php | 61 - .../Dataplex/V1/DiscoveryEvent/EventType.php | 124 - .../V1/DiscoveryEvent/PartitionDetails.php | 181 - .../V1/DiscoveryEvent/TableDetails.php | 101 - .../Dataplex/V1/DiscoveryEvent/TableType.php | 68 - .../Cloud/Dataplex/V1/EncryptionConfig.php | 356 -- .../V1/EncryptionConfig/EncryptionState.php | 73 - .../V1/EncryptionConfig/FailureDetails.php | 105 - .../FailureDetails/ErrorCode.php | 61 - .../src/Google/Cloud/Dataplex/V1/Entity.php | 785 ---- .../V1/Entity/CompatibilityStatus.php | 121 - .../CompatibilityStatus/Compatibility.php | 109 - .../Google/Cloud/Dataplex/V1/Entity/Type.php | 61 - .../src/Google/Cloud/Dataplex/V1/Entry.php | 400 -- .../Google/Cloud/Dataplex/V1/EntryGroup.php | 383 -- .../Google/Cloud/Dataplex/V1/EntryLink.php | 309 -- .../Dataplex/V1/EntryLink/EntryReference.php | 151 - .../V1/EntryLink/EntryReference/Type.php | 62 - .../Cloud/Dataplex/V1/EntryLinkEvent.php | 135 - .../Dataplex/V1/EntryLinkEvent/EventType.php | 61 - .../Google/Cloud/Dataplex/V1/EntrySource.php | 446 -- .../Dataplex/V1/EntrySource/Ancestor.php | 102 - .../Google/Cloud/Dataplex/V1/EntryType.php | 533 --- .../Dataplex/V1/EntryType/AspectInfo.php | 65 - .../Dataplex/V1/EntryType/Authorization.php | 75 - .../Google/Cloud/Dataplex/V1/EntryView.php | 78 - .../Google/Cloud/Dataplex/V1/Environment.php | 518 --- .../Dataplex/V1/Environment/Endpoints.php | 101 - .../V1/Environment/InfrastructureSpec.php | 120 - .../InfrastructureSpec/ComputeResources.php | 143 - .../InfrastructureSpec/OsImageRuntime.php | 197 - .../Dataplex/V1/Environment/SessionSpec.php | 131 - .../Dataplex/V1/Environment/SessionStatus.php | 71 - .../V1/GenerateDataQualityRulesRequest.php | 101 - .../V1/GenerateDataQualityRulesResponse.php | 71 - .../Dataplex/V1/GetAspectTypeRequest.php | 86 - .../Cloud/Dataplex/V1/GetAssetRequest.php | 86 - .../Cloud/Dataplex/V1/GetDataAssetRequest.php | 91 - .../V1/GetDataAttributeBindingRequest.php | 86 - .../Dataplex/V1/GetDataAttributeRequest.php | 86 - .../Dataplex/V1/GetDataProductRequest.php | 91 - .../Dataplex/V1/GetDataScanJobRequest.php | 130 - .../GetDataScanJobRequest/DataScanJobView.php | 61 - .../Cloud/Dataplex/V1/GetDataScanRequest.php | 130 - .../V1/GetDataScanRequest/DataScanView.php | 61 - .../Dataplex/V1/GetDataTaxonomyRequest.php | 74 - .../V1/GetEncryptionConfigRequest.php | 81 - .../Cloud/Dataplex/V1/GetEntityRequest.php | 124 - .../V1/GetEntityRequest/EntityView.php | 68 - .../Dataplex/V1/GetEntryGroupRequest.php | 86 - .../Cloud/Dataplex/V1/GetEntryLinkRequest.php | 86 - .../Cloud/Dataplex/V1/GetEntryRequest.php | 212 - .../Cloud/Dataplex/V1/GetEntryTypeRequest.php | 86 - .../V1/GetGlossaryCategoryRequest.php | 91 - .../Cloud/Dataplex/V1/GetGlossaryRequest.php | 91 - .../Dataplex/V1/GetGlossaryTermRequest.php | 91 - .../Cloud/Dataplex/V1/GetJobRequest.php | 86 - .../Cloud/Dataplex/V1/GetLakeRequest.php | 86 - .../Dataplex/V1/GetMetadataFeedRequest.php | 86 - .../Dataplex/V1/GetMetadataJobRequest.php | 86 - .../Cloud/Dataplex/V1/GetPartitionRequest.php | 96 - .../Cloud/Dataplex/V1/GetTaskRequest.php | 86 - .../Cloud/Dataplex/V1/GetZoneRequest.php | 86 - .../src/Google/Cloud/Dataplex/V1/Glossary.php | 427 -- .../Cloud/Dataplex/V1/GlossaryCategory.php | 370 -- .../Google/Cloud/Dataplex/V1/GlossaryTerm.php | 367 -- .../Cloud/Dataplex/V1/GovernanceEvent.php | 149 - .../Dataplex/V1/GovernanceEvent/Entity.php | 109 - .../V1/GovernanceEvent/Entity/EntityType.php | 61 - .../Dataplex/V1/GovernanceEvent/EventType.php | 159 - .../Google/Cloud/Dataplex/V1/ImportItem.php | 329 -- .../src/Google/Cloud/Dataplex/V1/Job.php | 483 -- .../Google/Cloud/Dataplex/V1/Job/Service.php | 52 - .../Google/Cloud/Dataplex/V1/Job/State.php | 87 - .../Google/Cloud/Dataplex/V1/Job/Trigger.php | 62 - .../src/Google/Cloud/Dataplex/V1/JobEvent.php | 394 -- .../Dataplex/V1/JobEvent/ExecutionTrigger.php | 62 - .../Cloud/Dataplex/V1/JobEvent/Service.php | 54 - .../Cloud/Dataplex/V1/JobEvent/State.php | 75 - .../Cloud/Dataplex/V1/JobEvent/Type.php | 61 - .../src/Google/Cloud/Dataplex/V1/Lake.php | 518 --- .../Cloud/Dataplex/V1/Lake/Metastore.php | 79 - .../Dataplex/V1/Lake/MetastoreStatus.php | 179 - .../V1/Lake/MetastoreStatus/State.php | 75 - .../Cloud/Dataplex/V1/ListActionsResponse.php | 105 - .../Dataplex/V1/ListAspectTypesRequest.php | 275 -- .../Dataplex/V1/ListAspectTypesResponse.php | 139 - .../Dataplex/V1/ListAssetActionsRequest.php | 174 - .../Cloud/Dataplex/V1/ListAssetsRequest.php | 242 - .../Cloud/Dataplex/V1/ListAssetsResponse.php | 105 - .../Dataplex/V1/ListDataAssetsRequest.php | 267 -- .../Dataplex/V1/ListDataAssetsResponse.php | 105 - .../V1/ListDataAttributeBindingsRequest.php | 262 -- .../V1/ListDataAttributeBindingsResponse.php | 139 - .../Dataplex/V1/ListDataAttributesRequest.php | 246 - .../V1/ListDataAttributesResponse.php | 139 - .../Dataplex/V1/ListDataProductsRequest.php | 286 -- .../Dataplex/V1/ListDataProductsResponse.php | 139 - .../Dataplex/V1/ListDataScanJobsRequest.php | 266 -- .../Dataplex/V1/ListDataScanJobsResponse.php | 105 - .../Dataplex/V1/ListDataScansRequest.php | 256 -- .../Dataplex/V1/ListDataScansResponse.php | 139 - .../Dataplex/V1/ListDataTaxonomiesRequest.php | 251 - .../V1/ListDataTaxonomiesResponse.php | 139 - .../V1/ListEncryptionConfigsRequest.php | 297 -- .../V1/ListEncryptionConfigsResponse.php | 139 - .../Cloud/Dataplex/V1/ListEntitiesRequest.php | 270 -- .../V1/ListEntitiesRequest/EntityView.php | 62 - .../Dataplex/V1/ListEntitiesResponse.php | 105 - .../Cloud/Dataplex/V1/ListEntriesRequest.php | 272 -- .../Cloud/Dataplex/V1/ListEntriesResponse.php | 105 - .../Dataplex/V1/ListEntryGroupsRequest.php | 251 - .../Dataplex/V1/ListEntryGroupsResponse.php | 139 - .../Dataplex/V1/ListEntryTypesRequest.php | 275 -- .../Dataplex/V1/ListEntryTypesResponse.php | 139 - .../Dataplex/V1/ListGlossariesRequest.php | 279 -- .../Dataplex/V1/ListGlossariesResponse.php | 139 - .../V1/ListGlossaryCategoriesRequest.php | 300 -- .../V1/ListGlossaryCategoriesResponse.php | 139 - .../Dataplex/V1/ListGlossaryTermsRequest.php | 300 -- .../Dataplex/V1/ListGlossaryTermsResponse.php | 139 - .../Cloud/Dataplex/V1/ListJobsRequest.php | 174 - .../Cloud/Dataplex/V1/ListJobsResponse.php | 105 - .../Dataplex/V1/ListLakeActionsRequest.php | 174 - .../Cloud/Dataplex/V1/ListLakesRequest.php | 243 - .../Cloud/Dataplex/V1/ListLakesResponse.php | 139 - .../Dataplex/V1/ListMetadataFeedsRequest.php | 270 -- .../Dataplex/V1/ListMetadataFeedsResponse.php | 139 - .../Dataplex/V1/ListMetadataJobsRequest.php | 270 -- .../Dataplex/V1/ListMetadataJobsResponse.php | 139 - .../Dataplex/V1/ListPartitionsRequest.php | 268 -- .../Dataplex/V1/ListPartitionsResponse.php | 105 - .../Cloud/Dataplex/V1/ListTasksRequest.php | 238 - .../Cloud/Dataplex/V1/ListTasksResponse.php | 139 - .../Dataplex/V1/ListZoneActionsRequest.php | 174 - .../Cloud/Dataplex/V1/ListZonesRequest.php | 238 - .../Cloud/Dataplex/V1/ListZonesResponse.php | 105 - .../Dataplex/V1/LookupContextRequest.php | 213 - .../Dataplex/V1/LookupContextResponse.php | 71 - .../Dataplex/V1/LookupEntryLinksRequest.php | 277 -- .../V1/LookupEntryLinksRequest/EntryMode.php | 62 - .../Dataplex/V1/LookupEntryLinksResponse.php | 105 - .../Cloud/Dataplex/V1/LookupEntryRequest.php | 235 - .../Google/Cloud/Dataplex/V1/MetadataFeed.php | 382 -- .../Dataplex/V1/MetadataFeed/Filters.php | 163 - .../V1/MetadataFeed/Filters/ChangeType.php | 68 - .../Cloud/Dataplex/V1/MetadataFeed/Scope.php | 172 - .../Google/Cloud/Dataplex/V1/MetadataJob.php | 467 -- .../V1/MetadataJob/ExportJobResult.php | 103 - .../Dataplex/V1/MetadataJob/ExportJobSpec.php | 139 - .../ExportJobSpec/ExportJobScope.php | 323 -- .../V1/MetadataJob/ImportJobResult.php | 357 -- .../Dataplex/V1/MetadataJob/ImportJobSpec.php | 348 -- .../ImportJobSpec/ImportJobScope.php | 417 -- .../V1/MetadataJob/ImportJobSpec/LogLevel.php | 71 - .../V1/MetadataJob/ImportJobSpec/SyncMode.php | 80 - .../Cloud/Dataplex/V1/MetadataJob/Status.php | 179 - .../Dataplex/V1/MetadataJob/Status/State.php | 96 - .../Cloud/Dataplex/V1/MetadataJob/Type.php | 61 - .../Cloud/Dataplex/V1/OperationMetadata.php | 307 -- .../Google/Cloud/Dataplex/V1/Partition.php | 204 - .../Cloud/Dataplex/V1/ResourceAccessSpec.php | 145 - .../Cloud/Dataplex/V1/RunDataScanRequest.php | 102 - .../Cloud/Dataplex/V1/RunDataScanResponse.php | 77 - .../Cloud/Dataplex/V1/RunTaskRequest.php | 200 - .../Cloud/Dataplex/V1/RunTaskResponse.php | 75 - .../Google/Cloud/Dataplex/V1/ScannedData.php | 75 - .../V1/ScannedData/IncrementalField.php | 139 - .../src/Google/Cloud/Dataplex/V1/Schema.php | 229 - .../Google/Cloud/Dataplex/V1/Schema/Mode.php | 68 - .../Dataplex/V1/Schema/PartitionField.php | 112 - .../Dataplex/V1/Schema/PartitionStyle.php | 56 - .../Cloud/Dataplex/V1/Schema/SchemaField.php | 215 - .../Google/Cloud/Dataplex/V1/Schema/Type.php | 153 - .../Dataplex/V1/SearchEntriesRequest.php | 344 -- .../Dataplex/V1/SearchEntriesResponse.php | 179 - .../Cloud/Dataplex/V1/SearchEntriesResult.php | 166 - .../V1/SearchEntriesResult/Snippets.php | 90 - .../src/Google/Cloud/Dataplex/V1/Session.php | 183 - .../Google/Cloud/Dataplex/V1/SessionEvent.php | 332 -- .../Dataplex/V1/SessionEvent/EventType.php | 76 - .../Dataplex/V1/SessionEvent/QueryDetail.php | 247 - .../V1/SessionEvent/QueryDetail/Engine.php | 61 - .../src/Google/Cloud/Dataplex/V1/State.php | 75 - .../Cloud/Dataplex/V1/StorageAccess.php | 71 - .../Dataplex/V1/StorageAccess/AccessMode.php | 61 - .../Cloud/Dataplex/V1/StorageFormat.php | 311 -- .../V1/StorageFormat/CompressionFormat.php | 61 - .../Dataplex/V1/StorageFormat/CsvOptions.php | 185 - .../Dataplex/V1/StorageFormat/Format.php | 131 - .../V1/StorageFormat/IcebergOptions.php | 71 - .../Dataplex/V1/StorageFormat/JsonOptions.php | 71 - .../Cloud/Dataplex/V1/StorageSystem.php | 61 - .../src/Google/Cloud/Dataplex/V1/Task.php | 544 --- .../Cloud/Dataplex/V1/Task/ExecutionSpec.php | 281 -- .../Dataplex/V1/Task/ExecutionStatus.php | 121 - .../Dataplex/V1/Task/InfrastructureSpec.php | 159 - .../BatchComputeResources.php | 113 - .../ContainerImageRuntime.php | 201 - .../V1/Task/InfrastructureSpec/VpcNetwork.php | 145 - .../Dataplex/V1/Task/NotebookTaskConfig.php | 203 - .../Dataplex/V1/Task/SparkTaskConfig.php | 367 -- .../Cloud/Dataplex/V1/Task/TriggerSpec.php | 259 -- .../Dataplex/V1/Task/TriggerSpec/Type.php | 61 - .../Cloud/Dataplex/V1/TransferStatus.php | 66 - .../src/Google/Cloud/Dataplex/V1/Trigger.php | 144 - .../Cloud/Dataplex/V1/Trigger/OnDemand.php | 33 - .../Cloud/Dataplex/V1/Trigger/OneTime.php | 93 - .../Cloud/Dataplex/V1/Trigger/Schedule.php | 103 - .../Dataplex/V1/UpdateAspectTypeRequest.php | 174 - .../Cloud/Dataplex/V1/UpdateAssetRequest.php | 179 - .../Dataplex/V1/UpdateDataAssetRequest.php | 184 - .../V1/UpdateDataAttributeBindingRequest.php | 174 - .../V1/UpdateDataAttributeRequest.php | 174 - .../Dataplex/V1/UpdateDataProductRequest.php | 189 - .../Dataplex/V1/UpdateDataScanRequest.php | 180 - .../Dataplex/V1/UpdateDataTaxonomyRequest.php | 175 - .../V1/UpdateEncryptionConfigRequest.php | 146 - .../Cloud/Dataplex/V1/UpdateEntityRequest.php | 118 - .../Dataplex/V1/UpdateEntryGroupRequest.php | 174 - .../Dataplex/V1/UpdateEntryLinkRequest.php | 178 - .../Cloud/Dataplex/V1/UpdateEntryRequest.php | 322 -- .../Dataplex/V1/UpdateEntryTypeRequest.php | 174 - .../V1/UpdateGlossaryCategoryRequest.php | 151 - .../Dataplex/V1/UpdateGlossaryRequest.php | 189 - .../Dataplex/V1/UpdateGlossaryTermRequest.php | 151 - .../Cloud/Dataplex/V1/UpdateLakeRequest.php | 179 - .../Dataplex/V1/UpdateMetadataFeedRequest.php | 179 - .../Cloud/Dataplex/V1/UpdateTaskRequest.php | 179 - .../Cloud/Dataplex/V1/UpdateZoneRequest.php | 179 - .../src/Google/Cloud/Dataplex/V1/Zone.php | 510 --- .../Cloud/Dataplex/V1/Zone/DiscoverySpec.php | 317 -- .../V1/Zone/DiscoverySpec/CsvOptions.php | 181 - .../V1/Zone/DiscoverySpec/JsonOptions.php | 109 - .../Cloud/Dataplex/V1/Zone/ResourceSpec.php | 71 - .../V1/Zone/ResourceSpec/LocationType.php | 61 - .../Google/Cloud/Dataplex/V1/Zone/Type.php | 65 - .../create_glossary.php | 90 - .../create_glossary_category.php | 94 - .../create_glossary_term.php | 99 - .../delete_glossary.php | 87 - .../delete_glossary_category.php | 78 - .../delete_glossary_term.php | 76 - .../get_glossary.php | 77 - .../get_glossary_category.php | 78 - .../get_glossary_term.php | 78 - .../get_iam_policy.php | 72 - .../get_location.php | 57 - .../list_glossaries.php | 78 - .../list_glossary_categories.php | 83 - .../list_glossary_terms.php | 83 - .../list_locations.php | 77 - .../set_iam_policy.php | 77 - .../test_iam_permissions.php | 84 - .../update_glossary.php | 74 - .../update_glossary_category.php | 80 - .../update_glossary_term.php | 85 - .../cancel_metadata_job.php | 75 - .../create_aspect_type.php | 124 - .../V1/CatalogServiceClient/create_entry.php | 104 - .../create_entry_group.php | 90 - .../create_entry_link.php | 117 - .../create_entry_type.php | 90 - .../create_metadata_feed.php | 89 - .../create_metadata_job.php | 91 - .../delete_aspect_type.php | 81 - .../V1/CatalogServiceClient/delete_entry.php | 77 - .../delete_entry_group.php | 81 - .../delete_entry_link.php | 77 - .../delete_entry_type.php | 81 - .../delete_metadata_feed.php | 85 - .../CatalogServiceClient/get_aspect_type.php | 72 - .../V1/CatalogServiceClient/get_entry.php | 77 - .../CatalogServiceClient/get_entry_group.php | 72 - .../CatalogServiceClient/get_entry_link.php | 77 - .../CatalogServiceClient/get_entry_type.php | 72 - .../CatalogServiceClient/get_iam_policy.php | 72 - .../V1/CatalogServiceClient/get_location.php | 57 - .../get_metadata_feed.php | 76 - .../CatalogServiceClient/get_metadata_job.php | 72 - .../list_aspect_types.php | 78 - .../V1/CatalogServiceClient/list_entries.php | 77 - .../list_entry_groups.php | 78 - .../CatalogServiceClient/list_entry_types.php | 78 - .../CatalogServiceClient/list_locations.php | 77 - .../list_metadata_feeds.php | 77 - .../list_metadata_jobs.php | 77 - .../CatalogServiceClient/lookup_context.php | 86 - .../V1/CatalogServiceClient/lookup_entry.php | 81 - .../lookup_entry_links.php | 88 - .../CatalogServiceClient/search_entries.php | 82 - .../CatalogServiceClient/set_iam_policy.php | 77 - .../test_iam_permissions.php | 84 - .../update_aspect_type.php | 111 - .../V1/CatalogServiceClient/update_entry.php | 74 - .../update_entry_group.php | 74 - .../update_entry_link.php | 100 - .../update_entry_type.php | 74 - .../update_metadata_feed.php | 74 - .../create_encryption_config.php | 92 - .../delete_encryption_config.php | 84 - .../get_encryption_config.php | 75 - .../V1/CmekServiceClient/get_iam_policy.php | 72 - .../V1/CmekServiceClient/get_location.php | 57 - .../list_encryption_configs.php | 76 - .../V1/CmekServiceClient/list_locations.php | 77 - .../V1/CmekServiceClient/set_iam_policy.php | 77 - .../test_iam_permissions.php | 84 - .../update_encryption_config.php | 71 - .../ContentServiceClient/get_iam_policy.php | 72 - .../V1/ContentServiceClient/get_location.php | 57 - .../ContentServiceClient/list_locations.php | 77 - .../ContentServiceClient/set_iam_policy.php | 77 - .../test_iam_permissions.php | 84 - .../create_data_asset.php | 101 - .../create_data_product.php | 100 - .../delete_data_asset.php | 87 - .../delete_data_product.php | 87 - .../get_data_asset.php | 78 - .../get_data_product.php | 77 - .../get_iam_policy.php | 72 - .../DataProductServiceClient/get_location.php | 57 - .../list_data_assets.php | 82 - .../list_data_products.php | 81 - .../list_locations.php | 77 - .../set_iam_policy.php | 77 - .../test_iam_permissions.php | 84 - .../update_data_asset.php | 91 - .../update_data_product.php | 90 - .../create_data_scan.php | 91 - .../delete_data_scan.php | 83 - .../generate_data_quality_rules.php | 78 - .../DataScanServiceClient/get_data_scan.php | 74 - .../get_data_scan_job.php | 79 - .../DataScanServiceClient/get_iam_policy.php | 72 - .../V1/DataScanServiceClient/get_location.php | 57 - .../list_data_scan_jobs.php | 79 - .../DataScanServiceClient/list_data_scans.php | 79 - .../DataScanServiceClient/list_locations.php | 77 - .../DataScanServiceClient/run_data_scan.php | 76 - .../DataScanServiceClient/set_iam_policy.php | 77 - .../test_iam_permissions.php | 84 - .../update_data_scan.php | 74 - .../create_data_attribute.php | 98 - .../create_data_attribute_binding.php | 96 - .../create_data_taxonomy.php | 92 - .../delete_data_attribute.php | 86 - .../delete_data_attribute_binding.php | 93 - .../delete_data_taxonomy.php | 86 - .../get_data_attribute.php | 77 - .../get_data_attribute_binding.php | 76 - .../get_data_taxonomy.php | 74 - .../get_iam_policy.php | 72 - .../get_location.php | 57 - .../list_data_attribute_bindings.php | 77 - .../list_data_attributes.php | 81 - .../list_data_taxonomies.php | 78 - .../list_locations.php | 77 - .../set_iam_policy.php | 77 - .../test_iam_permissions.php | 84 - .../update_data_attribute.php | 74 - .../update_data_attribute_binding.php | 74 - .../update_data_taxonomy.php | 74 - .../V1/DataplexServiceClient/cancel_job.php | 76 - .../V1/DataplexServiceClient/create_asset.php | 106 - .../V1/DataplexServiceClient/create_lake.php | 97 - .../V1/DataplexServiceClient/create_task.php | 113 - .../V1/DataplexServiceClient/create_zone.php | 113 - .../V1/DataplexServiceClient/delete_asset.php | 88 - .../V1/DataplexServiceClient/delete_lake.php | 82 - .../V1/DataplexServiceClient/delete_task.php | 81 - .../V1/DataplexServiceClient/delete_zone.php | 82 - .../V1/DataplexServiceClient/get_asset.php | 78 - .../DataplexServiceClient/get_iam_policy.php | 72 - .../V1/DataplexServiceClient/get_job.php | 78 - .../V1/DataplexServiceClient/get_lake.php | 72 - .../V1/DataplexServiceClient/get_location.php | 57 - .../V1/DataplexServiceClient/get_task.php | 72 - .../V1/DataplexServiceClient/get_zone.php | 72 - .../list_asset_actions.php | 83 - .../V1/DataplexServiceClient/list_assets.php | 77 - .../V1/DataplexServiceClient/list_jobs.php | 77 - .../list_lake_actions.php | 77 - .../V1/DataplexServiceClient/list_lakes.php | 78 - .../DataplexServiceClient/list_locations.php | 77 - .../V1/DataplexServiceClient/list_tasks.php | 77 - .../list_zone_actions.php | 77 - .../V1/DataplexServiceClient/list_zones.php | 77 - .../V1/DataplexServiceClient/run_task.php | 72 - .../DataplexServiceClient/set_iam_policy.php | 77 - .../test_iam_permissions.php | 84 - .../V1/DataplexServiceClient/update_asset.php | 91 - .../V1/DataplexServiceClient/update_lake.php | 74 - .../V1/DataplexServiceClient/update_task.php | 101 - .../V1/DataplexServiceClient/update_zone.php | 96 - .../MetadataServiceClient/create_entity.php | 160 - .../create_partition.php | 93 - .../MetadataServiceClient/delete_entity.php | 80 - .../delete_partition.php | 80 - .../V1/MetadataServiceClient/get_entity.php | 78 - .../MetadataServiceClient/get_iam_policy.php | 72 - .../V1/MetadataServiceClient/get_location.php | 57 - .../MetadataServiceClient/get_partition.php | 81 - .../MetadataServiceClient/list_entities.php | 81 - .../MetadataServiceClient/list_locations.php | 77 - .../MetadataServiceClient/list_partitions.php | 83 - .../MetadataServiceClient/set_iam_policy.php | 77 - .../test_iam_permissions.php | 84 - .../MetadataServiceClient/update_entity.php | 153 - .../Client/BusinessGlossaryServiceClient.php | 958 ---- .../v1/src/V1/Client/CatalogServiceClient.php | 1711 ------- .../v1/src/V1/Client/CmekServiceClient.php | 610 --- .../v1/src/V1/Client/ContentServiceClient.php | 327 -- .../V1/Client/DataProductServiceClient.php | 958 ---- .../src/V1/Client/DataScanServiceClient.php | 884 ---- .../V1/Client/DataTaxonomyServiceClient.php | 984 ---- .../src/V1/Client/DataplexServiceClient.php | 1330 ------ .../src/V1/Client/MetadataServiceClient.php | 700 --- .../Dataplex/v1/src/V1/gapic_metadata.json | 965 ---- ...siness_glossary_service_client_config.json | 122 - ...ess_glossary_service_descriptor_config.php | 335 -- ...ss_glossary_service_rest_client_config.php | 626 --- .../catalog_service_client_config.json | 296 -- .../catalog_service_descriptor_config.php | 730 --- .../catalog_service_rest_client_config.php | 898 ---- .../resources/cmek_service_client_config.json | 72 - .../cmek_service_descriptor_config.php | 195 - .../cmek_service_rest_client_config.php | 495 -- .../content_service_client_config.json | 81 - .../content_service_descriptor_config.php | 101 - .../content_service_rest_client_config.php | 432 -- .../data_product_service_client_config.json | 102 - ...data_product_service_descriptor_config.php | 305 -- ...ata_product_service_rest_client_config.php | 562 --- .../data_scan_service_client_config.json | 97 - .../data_scan_service_descriptor_config.php | 269 -- .../data_scan_service_rest_client_config.php | 557 --- .../data_taxonomy_service_client_config.json | 122 - ...ata_taxonomy_service_descriptor_config.php | 377 -- ...ta_taxonomy_service_rest_client_config.php | 629 --- .../dataplex_service_client_config.json | 216 - .../dataplex_service_descriptor_config.php | 585 --- .../dataplex_service_rest_client_config.php | 769 ---- .../metadata_service_client_config.json | 126 - .../metadata_service_descriptor_config.php | 231 - .../metadata_service_rest_client_config.php | 543 --- .../BusinessGlossaryServiceClientTest.php | 1819 -------- .../V1/Client/CatalogServiceClientTest.php | 4075 ----------------- .../Unit/V1/Client/CmekServiceClientTest.php | 1024 ----- .../V1/Client/ContentServiceClientTest.php | 399 -- .../Client/DataProductServiceClientTest.php | 1665 ------- .../V1/Client/DataScanServiceClientTest.php | 1312 ------ .../Client/DataTaxonomyServiceClientTest.php | 2183 --------- .../V1/Client/DataplexServiceClientTest.php | 3193 ------------- .../V1/Client/MetadataServiceClientTest.php | 1239 ----- 770 files changed, 1742 insertions(+), 125508 deletions(-) rename {owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex => Dataplex/metadata}/V1/ApprovalWorkflow.php (100%) rename {owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex => Dataplex/metadata}/V1/DataQualityRuleTemplate.php (100%) rename {owl-bot-staging/Dataplex/v1 => Dataplex}/samples/V1/CatalogServiceClient/modify_entry.php (100%) rename {owl-bot-staging/Dataplex/v1 => Dataplex}/samples/V1/DataProductServiceClient/request_data_product_access.php (100%) rename {owl-bot-staging/Dataplex/v1 => Dataplex}/samples/V1/DataScanServiceClient/cancel_data_scan_job.php (100%) rename {owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex => Dataplex/src}/V1/CancelDataScanJobRequest.php (100%) rename {owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex => Dataplex/src}/V1/CancelDataScanJobResponse.php (100%) rename {owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex => Dataplex/src}/V1/ChangeRequest.php (100%) rename {owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex => Dataplex/src}/V1/ChangeRequest/ChangeType.php (100%) rename {owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex => Dataplex/src}/V1/ChangeRequest/State.php (100%) rename {owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex => Dataplex/src}/V1/DataDiscoverySpec/StorageConfig/UnstructuredDataOptions.php (100%) rename {owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex => Dataplex/src}/V1/DataProduct/AccessApprovalConfig.php (100%) rename {owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex => Dataplex/src}/V1/DataProductAccessRequest.php (100%) rename {owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex => Dataplex/src}/V1/DataProfileSpec/Mode.php (100%) rename {owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex => Dataplex/src}/V1/DataQualityRule/RuleSource.php (100%) rename {owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex => Dataplex/src}/V1/DataQualityRule/RuleSource/RulePathElement.php (100%) rename {owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex => Dataplex/src}/V1/DataQualityRule/RuleSource/RulePathElement/EntryLinkSource.php (100%) rename {owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex => Dataplex/src}/V1/DataQualityRule/RuleSource/RulePathElement/EntrySource.php (100%) rename {owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex => Dataplex/src}/V1/DataQualityRule/TemplateReference.php (100%) rename {owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex => Dataplex/src}/V1/DataQualityRule/TemplateReference/ParameterValue.php (100%) rename {owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex => Dataplex/src}/V1/DataQualityRuleTemplate.php (100%) rename {owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex => Dataplex/src}/V1/DataQualityRuleTemplate/ParameterDescription.php (100%) rename {owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex => Dataplex/src}/V1/DataQualityRuleTemplate/Sql.php (100%) rename {owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex => Dataplex/src}/V1/ExecutionIdentity.php (100%) rename {owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex => Dataplex/src}/V1/ExecutionIdentity/DataplexServiceAgent.php (100%) rename {owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex => Dataplex/src}/V1/ExecutionIdentity/ServiceAccount.php (100%) rename {owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex => Dataplex/src}/V1/ExecutionIdentity/UserCredential.php (100%) rename {owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex => Dataplex/src}/V1/ModifyEntryRequest.php (100%) rename {owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex => Dataplex/src}/V1/RequestDataProductAccessRequest.php (100%) rename {owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex => Dataplex/src}/V1/RequestDataProductAccessResponse.php (100%) delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Analyze.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/BusinessGlossary.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Catalog.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Cmek.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Content.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DataDiscovery.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DataDocumentation.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DataProducts.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DataProfile.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DataQuality.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DataTaxonomy.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Datascans.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DatascansCommon.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Logs.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Metadata.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Processing.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Resources.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Security.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Service.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Tasks.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/Category.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/FailedSecurityPolicyApply.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/IncompatibleDataSchema.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/IncompatibleDataSchema/SchemaChange.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/InvalidDataFormat.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/InvalidDataOrganization.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/InvalidDataPartition.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/InvalidDataPartition/PartitionStructure.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/MissingData.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/MissingResource.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/UnauthorizedResource.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Aspect.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectSource.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType/Authorization.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType/DataClassification.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType/MetadataTemplate.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType/MetadataTemplate/Annotations.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType/MetadataTemplate/Constraints.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType/MetadataTemplate/EnumValue.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/DiscoverySpec.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/DiscoverySpec/CsvOptions.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/DiscoverySpec/JsonOptions.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/DiscoveryStatus.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/DiscoveryStatus/State.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/DiscoveryStatus/Stats.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/ResourceSpec.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/ResourceSpec/AccessMode.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/ResourceSpec/Type.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/ResourceStatus.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/ResourceStatus/State.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/SecurityStatus.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/SecurityStatus/State.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AssetStatus.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/BusinessGlossaryEvent.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/BusinessGlossaryEvent/EventType.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CancelJobRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CancelMetadataJobRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Content.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Content/Notebook.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Content/Notebook/KernelType.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Content/SqlScript.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Content/SqlScript/QueryEngine.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateAspectTypeRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateAssetRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateDataAssetRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateDataAttributeBindingRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateDataAttributeRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateDataProductRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateDataScanRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateDataTaxonomyRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateEncryptionConfigRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateEntityRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateEntryGroupRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateEntryLinkRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateEntryRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateEntryTypeRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateGlossaryCategoryRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateGlossaryRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateGlossaryTermRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateLakeRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateMetadataFeedRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateMetadataJobRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreatePartitionRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateTaskRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateZoneRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataAccessSpec.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataAsset.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataAsset/AccessGroupConfig.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataAttribute.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataAttributeBinding.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataAttributeBinding/Path.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoveryResult.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoveryResult/BigQueryPublishing.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoveryResult/ScanStatistics.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoverySpec.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoverySpec/BigQueryPublishingConfig.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoverySpec/BigQueryPublishingConfig/TableType.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoverySpec/StorageConfig.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoverySpec/StorageConfig/CsvOptions.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoverySpec/StorageConfig/JsonOptions.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/DatasetResult.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/Field.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/Query.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/Schema.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/SchemaRelationship.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/SchemaRelationship/SchemaPaths.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/SchemaRelationship/Source.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/SchemaRelationship/Type.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/TableResult.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationSpec.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationSpec/GenerationScope.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProduct.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProduct/AccessGroup.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProduct/Principal.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/PostScanActionsResult.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/PostScanActionsResult/BigQueryExportResult.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/PostScanActionsResult/BigQueryExportResult/State.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile/Field.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile/Field/ProfileInfo.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile/Field/ProfileInfo/DoubleFieldInfo.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile/Field/ProfileInfo/IntegerFieldInfo.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile/Field/ProfileInfo/StringFieldInfo.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile/Field/ProfileInfo/TopNValue.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileSpec.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileSpec/PostScanActions.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileSpec/PostScanActions/BigQueryExport.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileSpec/SelectedFields.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityColumnResult.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityDimension.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityDimensionResult.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityResult.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityResult/AnomalyDetectionGeneratedAssets.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityResult/PostScanActionsResult.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityResult/PostScanActionsResult/BigQueryExportResult.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityResult/PostScanActionsResult/BigQueryExportResult/State.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/DebugQuery.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/NonNullExpectation.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/RangeExpectation.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/RegexExpectation.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/RowConditionExpectation.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/SetExpectation.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/SqlAssertion.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/StatisticRangeExpectation.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/StatisticRangeExpectation/ColumnStatistic.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/TableConditionExpectation.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/UniquenessExpectation.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRuleResult.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRuleResult/DebugQueryResult.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRuleResult/DebugQueryResultSet.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityScanRuleResult.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityScanRuleResult/EvaluationType.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityScanRuleResult/Result.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityScanRuleResult/RuleType.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions/BigQueryExport.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions/JobEndTrigger.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions/JobFailureTrigger.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions/NotificationReport.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions/Recipients.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions/ScoreThresholdTrigger.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScan.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScan/ExecutionSpec.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScan/ExecutionStatus.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanCatalogPublishingStatus.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanCatalogPublishingStatus/State.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/DataProfileAppliedConfigs.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/DataProfileResult.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/DataQualityAppliedConfigs.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/DataQualityResult.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/PostScanActionsResult.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/PostScanActionsResult/BigQueryExportResult.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/PostScanActionsResult/BigQueryExportResult/State.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/ScanType.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/Scope.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/State.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/Trigger.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanJob.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanJob/State.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanType.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataSource.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataTaxonomy.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteAspectTypeRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteAssetRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteDataAssetRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteDataAttributeBindingRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteDataAttributeRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteDataProductRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteDataScanRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteDataTaxonomyRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteEncryptionConfigRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteEntityRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteEntryGroupRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteEntryLinkRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteEntryRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteEntryTypeRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteGlossaryCategoryRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteGlossaryRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteGlossaryTermRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteLakeRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteMetadataFeedRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeletePartitionRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteTaskRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteZoneRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/ActionDetails.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/ConfigDetails.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/EntityDetails.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/EntityType.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/EventType.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/PartitionDetails.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/TableDetails.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/TableType.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EncryptionConfig.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EncryptionConfig/EncryptionState.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EncryptionConfig/FailureDetails.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EncryptionConfig/FailureDetails/ErrorCode.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Entity.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Entity/CompatibilityStatus.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Entity/CompatibilityStatus/Compatibility.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Entity/Type.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Entry.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryGroup.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryLink.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryLink/EntryReference.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryLink/EntryReference/Type.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryLinkEvent.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryLinkEvent/EventType.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntrySource.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntrySource/Ancestor.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryType.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryType/AspectInfo.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryType/Authorization.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryView.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment/Endpoints.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment/InfrastructureSpec.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment/InfrastructureSpec/ComputeResources.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment/InfrastructureSpec/OsImageRuntime.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment/SessionSpec.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment/SessionStatus.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GenerateDataQualityRulesRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GenerateDataQualityRulesResponse.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetAspectTypeRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetAssetRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataAssetRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataAttributeBindingRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataAttributeRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataProductRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataScanJobRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataScanJobRequest/DataScanJobView.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataScanRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataScanRequest/DataScanView.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataTaxonomyRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEncryptionConfigRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEntityRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEntityRequest/EntityView.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEntryGroupRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEntryLinkRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEntryRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEntryTypeRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetGlossaryCategoryRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetGlossaryRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetGlossaryTermRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetJobRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetLakeRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetMetadataFeedRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetMetadataJobRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetPartitionRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetTaskRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetZoneRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Glossary.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GlossaryCategory.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GlossaryTerm.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GovernanceEvent.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GovernanceEvent/Entity.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GovernanceEvent/Entity/EntityType.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GovernanceEvent/EventType.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ImportItem.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Job.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Job/Service.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Job/State.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Job/Trigger.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/JobEvent.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/JobEvent/ExecutionTrigger.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/JobEvent/Service.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/JobEvent/State.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/JobEvent/Type.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Lake.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Lake/Metastore.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Lake/MetastoreStatus.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Lake/MetastoreStatus/State.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListActionsResponse.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListAspectTypesRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListAspectTypesResponse.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListAssetActionsRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListAssetsRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListAssetsResponse.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataAssetsRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataAssetsResponse.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataAttributeBindingsRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataAttributeBindingsResponse.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataAttributesRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataAttributesResponse.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataProductsRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataProductsResponse.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataScanJobsRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataScanJobsResponse.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataScansRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataScansResponse.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataTaxonomiesRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataTaxonomiesResponse.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEncryptionConfigsRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEncryptionConfigsResponse.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntitiesRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntitiesRequest/EntityView.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntitiesResponse.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntriesRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntriesResponse.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntryGroupsRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntryGroupsResponse.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntryTypesRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntryTypesResponse.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListGlossariesRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListGlossariesResponse.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListGlossaryCategoriesRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListGlossaryCategoriesResponse.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListGlossaryTermsRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListGlossaryTermsResponse.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListJobsRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListJobsResponse.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListLakeActionsRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListLakesRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListLakesResponse.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListMetadataFeedsRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListMetadataFeedsResponse.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListMetadataJobsRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListMetadataJobsResponse.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListPartitionsRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListPartitionsResponse.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListTasksRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListTasksResponse.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListZoneActionsRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListZonesRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListZonesResponse.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/LookupContextRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/LookupContextResponse.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/LookupEntryLinksRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/LookupEntryLinksRequest/EntryMode.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/LookupEntryLinksResponse.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/LookupEntryRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataFeed.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataFeed/Filters.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataFeed/Filters/ChangeType.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataFeed/Scope.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ExportJobResult.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ExportJobSpec.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ExportJobSpec/ExportJobScope.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ImportJobResult.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ImportJobSpec.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ImportJobSpec/ImportJobScope.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ImportJobSpec/LogLevel.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ImportJobSpec/SyncMode.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/Status.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/Status/State.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/Type.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/OperationMetadata.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Partition.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ResourceAccessSpec.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/RunDataScanRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/RunDataScanResponse.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/RunTaskRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/RunTaskResponse.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ScannedData.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ScannedData/IncrementalField.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Schema.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Schema/Mode.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Schema/PartitionField.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Schema/PartitionStyle.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Schema/SchemaField.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Schema/Type.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SearchEntriesRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SearchEntriesResponse.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SearchEntriesResult.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SearchEntriesResult/Snippets.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Session.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SessionEvent.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SessionEvent/EventType.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SessionEvent/QueryDetail.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SessionEvent/QueryDetail/Engine.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/State.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageAccess.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageAccess/AccessMode.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageFormat.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageFormat/CompressionFormat.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageFormat/CsvOptions.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageFormat/Format.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageFormat/IcebergOptions.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageFormat/JsonOptions.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageSystem.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/ExecutionSpec.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/ExecutionStatus.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/InfrastructureSpec.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/InfrastructureSpec/BatchComputeResources.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/InfrastructureSpec/ContainerImageRuntime.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/InfrastructureSpec/VpcNetwork.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/NotebookTaskConfig.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/SparkTaskConfig.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/TriggerSpec.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/TriggerSpec/Type.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/TransferStatus.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Trigger.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Trigger/OnDemand.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Trigger/OneTime.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Trigger/Schedule.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateAspectTypeRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateAssetRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateDataAssetRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateDataAttributeBindingRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateDataAttributeRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateDataProductRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateDataScanRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateDataTaxonomyRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateEncryptionConfigRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateEntityRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateEntryGroupRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateEntryLinkRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateEntryRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateEntryTypeRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateGlossaryCategoryRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateGlossaryRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateGlossaryTermRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateLakeRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateMetadataFeedRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateTaskRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateZoneRequest.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone/DiscoverySpec.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone/DiscoverySpec/CsvOptions.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone/DiscoverySpec/JsonOptions.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone/ResourceSpec.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone/ResourceSpec/LocationType.php delete mode 100644 owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone/Type.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/create_glossary.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/create_glossary_category.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/create_glossary_term.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/delete_glossary.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/delete_glossary_category.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/delete_glossary_term.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/get_glossary.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/get_glossary_category.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/get_glossary_term.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/get_iam_policy.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/get_location.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/list_glossaries.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/list_glossary_categories.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/list_glossary_terms.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/list_locations.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/set_iam_policy.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/test_iam_permissions.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/update_glossary.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/update_glossary_category.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/update_glossary_term.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/cancel_metadata_job.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_aspect_type.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_entry.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_entry_group.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_entry_link.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_entry_type.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_metadata_feed.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_metadata_job.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/delete_aspect_type.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/delete_entry.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/delete_entry_group.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/delete_entry_link.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/delete_entry_type.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/delete_metadata_feed.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_aspect_type.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_entry.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_entry_group.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_entry_link.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_entry_type.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_iam_policy.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_location.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_metadata_feed.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_metadata_job.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/list_aspect_types.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/list_entries.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/list_entry_groups.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/list_entry_types.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/list_locations.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/list_metadata_feeds.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/list_metadata_jobs.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/lookup_context.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/lookup_entry.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/lookup_entry_links.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/search_entries.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/set_iam_policy.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/test_iam_permissions.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/update_aspect_type.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/update_entry.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/update_entry_group.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/update_entry_link.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/update_entry_type.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/update_metadata_feed.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/create_encryption_config.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/delete_encryption_config.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/get_encryption_config.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/get_iam_policy.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/get_location.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/list_encryption_configs.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/list_locations.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/set_iam_policy.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/test_iam_permissions.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/update_encryption_config.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/ContentServiceClient/get_iam_policy.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/ContentServiceClient/get_location.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/ContentServiceClient/list_locations.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/ContentServiceClient/set_iam_policy.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/ContentServiceClient/test_iam_permissions.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/create_data_asset.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/create_data_product.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/delete_data_asset.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/delete_data_product.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/get_data_asset.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/get_data_product.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/get_iam_policy.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/get_location.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/list_data_assets.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/list_data_products.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/list_locations.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/set_iam_policy.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/test_iam_permissions.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/update_data_asset.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/update_data_product.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/create_data_scan.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/delete_data_scan.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/generate_data_quality_rules.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/get_data_scan.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/get_data_scan_job.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/get_iam_policy.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/get_location.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/list_data_scan_jobs.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/list_data_scans.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/list_locations.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/run_data_scan.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/set_iam_policy.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/test_iam_permissions.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/update_data_scan.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/create_data_attribute.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/create_data_attribute_binding.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/create_data_taxonomy.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/delete_data_attribute.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/delete_data_attribute_binding.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/delete_data_taxonomy.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/get_data_attribute.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/get_data_attribute_binding.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/get_data_taxonomy.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/get_iam_policy.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/get_location.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/list_data_attribute_bindings.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/list_data_attributes.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/list_data_taxonomies.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/list_locations.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/set_iam_policy.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/test_iam_permissions.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/update_data_attribute.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/update_data_attribute_binding.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/update_data_taxonomy.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/cancel_job.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/create_asset.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/create_lake.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/create_task.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/create_zone.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/delete_asset.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/delete_lake.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/delete_task.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/delete_zone.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_asset.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_iam_policy.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_job.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_lake.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_location.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_task.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_zone.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_asset_actions.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_assets.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_jobs.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_lake_actions.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_lakes.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_locations.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_tasks.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_zone_actions.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_zones.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/run_task.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/set_iam_policy.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/test_iam_permissions.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/update_asset.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/update_lake.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/update_task.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/update_zone.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/create_entity.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/create_partition.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/delete_entity.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/delete_partition.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/get_entity.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/get_iam_policy.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/get_location.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/get_partition.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/list_entities.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/list_locations.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/list_partitions.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/set_iam_policy.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/test_iam_permissions.php delete mode 100644 owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/update_entity.php delete mode 100644 owl-bot-staging/Dataplex/v1/src/V1/Client/BusinessGlossaryServiceClient.php delete mode 100644 owl-bot-staging/Dataplex/v1/src/V1/Client/CatalogServiceClient.php delete mode 100644 owl-bot-staging/Dataplex/v1/src/V1/Client/CmekServiceClient.php delete mode 100644 owl-bot-staging/Dataplex/v1/src/V1/Client/ContentServiceClient.php delete mode 100644 owl-bot-staging/Dataplex/v1/src/V1/Client/DataProductServiceClient.php delete mode 100644 owl-bot-staging/Dataplex/v1/src/V1/Client/DataScanServiceClient.php delete mode 100644 owl-bot-staging/Dataplex/v1/src/V1/Client/DataTaxonomyServiceClient.php delete mode 100644 owl-bot-staging/Dataplex/v1/src/V1/Client/DataplexServiceClient.php delete mode 100644 owl-bot-staging/Dataplex/v1/src/V1/Client/MetadataServiceClient.php delete mode 100644 owl-bot-staging/Dataplex/v1/src/V1/gapic_metadata.json delete mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/business_glossary_service_client_config.json delete mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/business_glossary_service_descriptor_config.php delete mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/business_glossary_service_rest_client_config.php delete mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/catalog_service_client_config.json delete mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/catalog_service_descriptor_config.php delete mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/catalog_service_rest_client_config.php delete mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/cmek_service_client_config.json delete mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/cmek_service_descriptor_config.php delete mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/cmek_service_rest_client_config.php delete mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/content_service_client_config.json delete mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/content_service_descriptor_config.php delete mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/content_service_rest_client_config.php delete mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/data_product_service_client_config.json delete mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/data_product_service_descriptor_config.php delete mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/data_product_service_rest_client_config.php delete mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/data_scan_service_client_config.json delete mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/data_scan_service_descriptor_config.php delete mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/data_scan_service_rest_client_config.php delete mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/data_taxonomy_service_client_config.json delete mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/data_taxonomy_service_descriptor_config.php delete mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/data_taxonomy_service_rest_client_config.php delete mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/dataplex_service_client_config.json delete mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/dataplex_service_descriptor_config.php delete mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/dataplex_service_rest_client_config.php delete mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/metadata_service_client_config.json delete mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/metadata_service_descriptor_config.php delete mode 100644 owl-bot-staging/Dataplex/v1/src/V1/resources/metadata_service_rest_client_config.php delete mode 100644 owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/BusinessGlossaryServiceClientTest.php delete mode 100644 owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/CatalogServiceClientTest.php delete mode 100644 owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/CmekServiceClientTest.php delete mode 100644 owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/ContentServiceClientTest.php delete mode 100644 owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/DataProductServiceClientTest.php delete mode 100644 owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/DataScanServiceClientTest.php delete mode 100644 owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/DataTaxonomyServiceClientTest.php delete mode 100644 owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/DataplexServiceClientTest.php delete mode 100644 owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/MetadataServiceClientTest.php diff --git a/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/ApprovalWorkflow.php b/Dataplex/metadata/V1/ApprovalWorkflow.php similarity index 100% rename from owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/ApprovalWorkflow.php rename to Dataplex/metadata/V1/ApprovalWorkflow.php diff --git a/Dataplex/metadata/V1/BusinessGlossary.php b/Dataplex/metadata/V1/BusinessGlossary.php index dd6b2cfdbe3b..8233d5ce8709 100644 --- a/Dataplex/metadata/V1/BusinessGlossary.php +++ b/Dataplex/metadata/V1/BusinessGlossary.php @@ -25,7 +25,7 @@ public static function initOnce() { \GPBMetadata\Google\Protobuf\FieldMask::initOnce(); \GPBMetadata\Google\Protobuf\Timestamp::initOnce(); $pool->internalAddGeneratedFile( - "\x0A\x80=\x0A0google/cloud/dataplex/v1/business_glossary.proto\x12\x18google.cloud.dataplex.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x1Bgoogle/api/field_info.proto\x1A\x19google/api/resource.proto\x1A&google/cloud/dataplex/v1/service.proto\x1A#google/longrunning/operations.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\x94\x04\x0A\x08Glossary\x12\x14\x0A\x04name\x18\x01 \x01(\x09B\x06\xE0A\x03\xE0A\x08\x12\x18\x0A\x03uid\x18\x02 \x01(\x09B\x0B\xE0A\x03\xE2\x8C\xCF\xD7\x08\x02\x08\x01\x12\x19\x0A\x0Cdisplay_name\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x04 \x01(\x09B\x03\xE0A\x01\x124\x0A\x0Bcreate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12C\x0A\x06labels\x18\x07 \x03(\x0B2..google.cloud.dataplex.v1.Glossary.LabelsEntryB\x03\xE0A\x01\x12\x17\x0A\x0Aterm_count\x18\x08 \x01(\x05B\x03\xE0A\x03\x12\x1B\x0A\x0Ecategory_count\x18\x09 \x01(\x05B\x03\xE0A\x03\x12\x11\x0A\x04etag\x18\x0A \x01(\x09B\x03\xE0A\x01\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:z\xEAAw\x0A dataplex.googleapis.com/Glossary\x12=projects/{project}/locations/{location}/glossaries/{glossary}*\x0Aglossaries2\x08glossary\"\x99\x04\x0A\x10GlossaryCategory\x12\x14\x0A\x04name\x18\x01 \x01(\x09B\x06\xE0A\x03\xE0A\x08\x12\x18\x0A\x03uid\x18\x02 \x01(\x09B\x0B\xE0A\x03\xE2\x8C\xCF\xD7\x08\x02\x08\x01\x12\x19\x0A\x0Cdisplay_name\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x04 \x01(\x09B\x03\xE0A\x01\x124\x0A\x0Bcreate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12K\x0A\x06labels\x18\x07 \x03(\x0B26.google.cloud.dataplex.v1.GlossaryCategory.LabelsEntryB\x03\xE0A\x01\x12\x13\x0A\x06parent\x18\x08 \x01(\x09B\x03\xE0A\x02\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:\xA2\x01\xEAA\x9E\x01\x0A(dataplex.googleapis.com/GlossaryCategory\x12\\projects/{project}/locations/{location}/glossaries/{glossary}/categories/{glossary_category}*\x0Acategories2\x08category\"\xA0\x04\x0A\x0CGlossaryTerm\x12\x14\x0A\x04name\x18\x01 \x01(\x09B\x06\xE0A\x03\xE0A\x08\x12\x18\x0A\x03uid\x18\x02 \x01(\x09B\x0B\xE0A\x03\xE2\x8C\xCF\xD7\x08\x02\x08\x01\x12\x19\x0A\x0Cdisplay_name\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x04 \x01(\x09B\x03\xE0A\x01\x124\x0A\x0Bcreate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12G\x0A\x06labels\x18\x07 \x03(\x0B22.google.cloud.dataplex.v1.GlossaryTerm.LabelsEntryB\x03\xE0A\x01\x128\x0A\x06parent\x18\x08 \x01(\x09B(\xE0A\x02\xFAA\"\x0A dataplex.googleapis.com/Glossary\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:\x8C\x01\xEAA\x88\x01\x0A\$dataplex.googleapis.com/GlossaryTerm\x12Sprojects/{project}/locations/{location}/glossaries/{glossary}/terms/{glossary_term}*\x05terms2\x04term\"\xC3\x01\x0A\x15CreateGlossaryRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12\x18\x0A\x0Bglossary_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x129\x0A\x08glossary\x18\x03 \x01(\x0B2\".google.cloud.dataplex.v1.GlossaryB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"\xA4\x01\x0A\x15UpdateGlossaryRequest\x129\x0A\x08glossary\x18\x01 \x01(\x0B2\".google.cloud.dataplex.v1.GlossaryB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"b\x0A\x15DeleteGlossaryRequest\x126\x0A\x04name\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A dataplex.googleapis.com/Glossary\x12\x11\x0A\x04etag\x18\x02 \x01(\x09B\x03\xE0A\x01\"L\x0A\x12GetGlossaryRequest\x126\x0A\x04name\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A dataplex.googleapis.com/Glossary\"\xAF\x01\x0A\x15ListGlossariesRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\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\"\x88\x01\x0A\x16ListGlossariesResponse\x126\x0A\x0Aglossaries\x18\x01 \x03(\x0B2\".google.cloud.dataplex.v1.Glossary\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x1D\x0A\x15unreachable_locations\x18\x03 \x03(\x09\"\xB6\x01\x0A\x1DCreateGlossaryCategoryRequest\x128\x0A\x06parent\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A dataplex.googleapis.com/Glossary\x12\x18\x0A\x0Bcategory_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12A\x0A\x08category\x18\x03 \x01(\x0B2*.google.cloud.dataplex.v1.GlossaryCategoryB\x03\xE0A\x02\"\x98\x01\x0A\x1DUpdateGlossaryCategoryRequest\x12A\x0A\x08category\x18\x01 \x01(\x0B2*.google.cloud.dataplex.v1.GlossaryCategoryB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\"_\x0A\x1DDeleteGlossaryCategoryRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(dataplex.googleapis.com/GlossaryCategory\"\\\x0A\x1AGetGlossaryCategoryRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(dataplex.googleapis.com/GlossaryCategory\"\xB6\x01\x0A\x1DListGlossaryCategoriesRequest\x128\x0A\x06parent\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A dataplex.googleapis.com/Glossary\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\x1EListGlossaryCategoriesResponse\x12>\x0A\x0Acategories\x18\x01 \x03(\x0B2*.google.cloud.dataplex.v1.GlossaryCategory\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x1D\x0A\x15unreachable_locations\x18\x03 \x03(\x09\"\xA6\x01\x0A\x19CreateGlossaryTermRequest\x128\x0A\x06parent\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A dataplex.googleapis.com/Glossary\x12\x14\x0A\x07term_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x129\x0A\x04term\x18\x03 \x01(\x0B2&.google.cloud.dataplex.v1.GlossaryTermB\x03\xE0A\x02\"\x8C\x01\x0A\x19UpdateGlossaryTermRequest\x129\x0A\x04term\x18\x01 \x01(\x0B2&.google.cloud.dataplex.v1.GlossaryTermB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\"W\x0A\x19DeleteGlossaryTermRequest\x12:\x0A\x04name\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$dataplex.googleapis.com/GlossaryTerm\"T\x0A\x16GetGlossaryTermRequest\x12:\x0A\x04name\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$dataplex.googleapis.com/GlossaryTerm\"\xB1\x01\x0A\x18ListGlossaryTermsRequest\x128\x0A\x06parent\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A dataplex.googleapis.com/Glossary\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\"\x8A\x01\x0A\x19ListGlossaryTermsResponse\x125\x0A\x05terms\x18\x01 \x03(\x0B2&.google.cloud.dataplex.v1.GlossaryTerm\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x1D\x0A\x15unreachable_locations\x18\x03 \x03(\x092\xD6\x18\x0A\x17BusinessGlossaryService\x12\xE0\x01\x0A\x0ECreateGlossary\x12/.google.cloud.dataplex.v1.CreateGlossaryRequest\x1A\x1D.google.longrunning.Operation\"~\xCAA\x1D\x0A\x08Glossary\x12\x11OperationMetadata\xDAA\x1Bparent,glossary,glossary_id\x82\xD3\xE4\x93\x02:\"./v1/{parent=projects/*/locations/*}/glossaries:\x08glossary\x12\xE3\x01\x0A\x0EUpdateGlossary\x12/.google.cloud.dataplex.v1.UpdateGlossaryRequest\x1A\x1D.google.longrunning.Operation\"\x80\x01\xCAA\x1D\x0A\x08Glossary\x12\x11OperationMetadata\xDAA\x14glossary,update_mask\x82\xD3\xE4\x93\x02C27/v1/{glossary.name=projects/*/locations/*/glossaries/*}:\x08glossary\x12\xCC\x01\x0A\x0EDeleteGlossary\x12/.google.cloud.dataplex.v1.DeleteGlossaryRequest\x1A\x1D.google.longrunning.Operation\"j\xCAA*\x0A\x15google.protobuf.Empty\x12\x11OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x020*./v1/{name=projects/*/locations/*/glossaries/*}\x12\x9E\x01\x0A\x0BGetGlossary\x12,.google.cloud.dataplex.v1.GetGlossaryRequest\x1A\".google.cloud.dataplex.v1.Glossary\"=\xDAA\x04name\x82\xD3\xE4\x93\x020\x12./v1/{name=projects/*/locations/*/glossaries/*}\x12\xB4\x01\x0A\x0EListGlossaries\x12/.google.cloud.dataplex.v1.ListGlossariesRequest\x1A0.google.cloud.dataplex.v1.ListGlossariesResponse\"?\xDAA\x06parent\x82\xD3\xE4\x93\x020\x12./v1/{parent=projects/*/locations/*}/glossaries\x12\xEA\x01\x0A\x16CreateGlossaryCategory\x127.google.cloud.dataplex.v1.CreateGlossaryCategoryRequest\x1A*.google.cloud.dataplex.v1.GlossaryCategory\"k\xDAA\x1Bparent,category,category_id\x82\xD3\xE4\x93\x02G\";/v1/{parent=projects/*/locations/*/glossaries/*}/categories:\x08category\x12\xEC\x01\x0A\x16UpdateGlossaryCategory\x127.google.cloud.dataplex.v1.UpdateGlossaryCategoryRequest\x1A*.google.cloud.dataplex.v1.GlossaryCategory\"m\xDAA\x14category,update_mask\x82\xD3\xE4\x93\x02P2D/v1/{category.name=projects/*/locations/*/glossaries/*/categories/*}:\x08category\x12\xB5\x01\x0A\x16DeleteGlossaryCategory\x127.google.cloud.dataplex.v1.DeleteGlossaryCategoryRequest\x1A\x16.google.protobuf.Empty\"J\xDAA\x04name\x82\xD3\xE4\x93\x02=*;/v1/{name=projects/*/locations/*/glossaries/*/categories/*}\x12\xC3\x01\x0A\x13GetGlossaryCategory\x124.google.cloud.dataplex.v1.GetGlossaryCategoryRequest\x1A*.google.cloud.dataplex.v1.GlossaryCategory\"J\xDAA\x04name\x82\xD3\xE4\x93\x02=\x12;/v1/{name=projects/*/locations/*/glossaries/*/categories/*}\x12\xD9\x01\x0A\x16ListGlossaryCategories\x127.google.cloud.dataplex.v1.ListGlossaryCategoriesRequest\x1A8.google.cloud.dataplex.v1.ListGlossaryCategoriesResponse\"L\xDAA\x06parent\x82\xD3\xE4\x93\x02=\x12;/v1/{parent=projects/*/locations/*/glossaries/*}/categories\x12\xCD\x01\x0A\x12CreateGlossaryTerm\x123.google.cloud.dataplex.v1.CreateGlossaryTermRequest\x1A&.google.cloud.dataplex.v1.GlossaryTerm\"Z\xDAA\x13parent,term,term_id\x82\xD3\xE4\x93\x02>\"6/v1/{parent=projects/*/locations/*/glossaries/*}/terms:\x04term\x12\xCF\x01\x0A\x12UpdateGlossaryTerm\x123.google.cloud.dataplex.v1.UpdateGlossaryTermRequest\x1A&.google.cloud.dataplex.v1.GlossaryTerm\"\\\xDAA\x10term,update_mask\x82\xD3\xE4\x93\x02C2;/v1/{term.name=projects/*/locations/*/glossaries/*/terms/*}:\x04term\x12\xA8\x01\x0A\x12DeleteGlossaryTerm\x123.google.cloud.dataplex.v1.DeleteGlossaryTermRequest\x1A\x16.google.protobuf.Empty\"E\xDAA\x04name\x82\xD3\xE4\x93\x028*6/v1/{name=projects/*/locations/*/glossaries/*/terms/*}\x12\xB2\x01\x0A\x0FGetGlossaryTerm\x120.google.cloud.dataplex.v1.GetGlossaryTermRequest\x1A&.google.cloud.dataplex.v1.GlossaryTerm\"E\xDAA\x04name\x82\xD3\xE4\x93\x028\x126/v1/{name=projects/*/locations/*/glossaries/*/terms/*}\x12\xC5\x01\x0A\x11ListGlossaryTerms\x122.google.cloud.dataplex.v1.ListGlossaryTermsRequest\x1A3.google.cloud.dataplex.v1.ListGlossaryTermsResponse\"G\xDAA\x06parent\x82\xD3\xE4\x93\x028\x126/v1/{parent=projects/*/locations/*/glossaries/*}/terms\x1AK\xCAA\x17dataplex.googleapis.com\xD2A.https://www.googleapis.com/auth/cloud-platformBq\x0A\x1Ccom.google.cloud.dataplex.v1B\x15BusinessGlossaryProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\x06proto3" + "\x0A\xA1>\x0A0google/cloud/dataplex/v1/business_glossary.proto\x12\x18google.cloud.dataplex.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x1Bgoogle/api/field_info.proto\x1A\x19google/api/resource.proto\x1A&google/cloud/dataplex/v1/service.proto\x1A#google/longrunning/operations.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\x94\x04\x0A\x08Glossary\x12\x14\x0A\x04name\x18\x01 \x01(\x09B\x06\xE0A\x03\xE0A\x08\x12\x18\x0A\x03uid\x18\x02 \x01(\x09B\x0B\xE0A\x03\xE2\x8C\xCF\xD7\x08\x02\x08\x01\x12\x19\x0A\x0Cdisplay_name\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x04 \x01(\x09B\x03\xE0A\x01\x124\x0A\x0Bcreate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12C\x0A\x06labels\x18\x07 \x03(\x0B2..google.cloud.dataplex.v1.Glossary.LabelsEntryB\x03\xE0A\x01\x12\x17\x0A\x0Aterm_count\x18\x08 \x01(\x05B\x03\xE0A\x03\x12\x1B\x0A\x0Ecategory_count\x18\x09 \x01(\x05B\x03\xE0A\x03\x12\x11\x0A\x04etag\x18\x0A \x01(\x09B\x03\xE0A\x01\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:z\xEAAw\x0A dataplex.googleapis.com/Glossary\x12=projects/{project}/locations/{location}/glossaries/{glossary}*\x0Aglossaries2\x08glossary\"\x99\x04\x0A\x10GlossaryCategory\x12\x14\x0A\x04name\x18\x01 \x01(\x09B\x06\xE0A\x03\xE0A\x08\x12\x18\x0A\x03uid\x18\x02 \x01(\x09B\x0B\xE0A\x03\xE2\x8C\xCF\xD7\x08\x02\x08\x01\x12\x19\x0A\x0Cdisplay_name\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x04 \x01(\x09B\x03\xE0A\x01\x124\x0A\x0Bcreate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12K\x0A\x06labels\x18\x07 \x03(\x0B26.google.cloud.dataplex.v1.GlossaryCategory.LabelsEntryB\x03\xE0A\x01\x12\x13\x0A\x06parent\x18\x08 \x01(\x09B\x03\xE0A\x02\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:\xA2\x01\xEAA\x9E\x01\x0A(dataplex.googleapis.com/GlossaryCategory\x12\\projects/{project}/locations/{location}/glossaries/{glossary}/categories/{glossary_category}*\x0Acategories2\x08category\"\xA0\x04\x0A\x0CGlossaryTerm\x12\x14\x0A\x04name\x18\x01 \x01(\x09B\x06\xE0A\x03\xE0A\x08\x12\x18\x0A\x03uid\x18\x02 \x01(\x09B\x0B\xE0A\x03\xE2\x8C\xCF\xD7\x08\x02\x08\x01\x12\x19\x0A\x0Cdisplay_name\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x04 \x01(\x09B\x03\xE0A\x01\x124\x0A\x0Bcreate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12G\x0A\x06labels\x18\x07 \x03(\x0B22.google.cloud.dataplex.v1.GlossaryTerm.LabelsEntryB\x03\xE0A\x01\x128\x0A\x06parent\x18\x08 \x01(\x09B(\xE0A\x02\xFAA\"\x0A dataplex.googleapis.com/Glossary\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:\x8C\x01\xEAA\x88\x01\x0A\$dataplex.googleapis.com/GlossaryTerm\x12Sprojects/{project}/locations/{location}/glossaries/{glossary}/terms/{glossary_term}*\x05terms2\x04term\"\xC3\x01\x0A\x15CreateGlossaryRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12\x18\x0A\x0Bglossary_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x129\x0A\x08glossary\x18\x03 \x01(\x0B2\".google.cloud.dataplex.v1.GlossaryB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"\xA4\x01\x0A\x15UpdateGlossaryRequest\x129\x0A\x08glossary\x18\x01 \x01(\x0B2\".google.cloud.dataplex.v1.GlossaryB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"b\x0A\x15DeleteGlossaryRequest\x126\x0A\x04name\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A dataplex.googleapis.com/Glossary\x12\x11\x0A\x04etag\x18\x02 \x01(\x09B\x03\xE0A\x01\"L\x0A\x12GetGlossaryRequest\x126\x0A\x04name\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A dataplex.googleapis.com/Glossary\"\xAF\x01\x0A\x15ListGlossariesRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\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\"\x88\x01\x0A\x16ListGlossariesResponse\x126\x0A\x0Aglossaries\x18\x01 \x03(\x0B2\".google.cloud.dataplex.v1.Glossary\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x1D\x0A\x15unreachable_locations\x18\x03 \x03(\x09\"\xB6\x01\x0A\x1DCreateGlossaryCategoryRequest\x128\x0A\x06parent\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A dataplex.googleapis.com/Glossary\x12\x18\x0A\x0Bcategory_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12A\x0A\x08category\x18\x03 \x01(\x0B2*.google.cloud.dataplex.v1.GlossaryCategoryB\x03\xE0A\x02\"\x98\x01\x0A\x1DUpdateGlossaryCategoryRequest\x12A\x0A\x08category\x18\x01 \x01(\x0B2*.google.cloud.dataplex.v1.GlossaryCategoryB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\"_\x0A\x1DDeleteGlossaryCategoryRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(dataplex.googleapis.com/GlossaryCategory\"\\\x0A\x1AGetGlossaryCategoryRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(dataplex.googleapis.com/GlossaryCategory\"\xB6\x01\x0A\x1DListGlossaryCategoriesRequest\x128\x0A\x06parent\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A dataplex.googleapis.com/Glossary\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\x1EListGlossaryCategoriesResponse\x12>\x0A\x0Acategories\x18\x01 \x03(\x0B2*.google.cloud.dataplex.v1.GlossaryCategory\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x1D\x0A\x15unreachable_locations\x18\x03 \x03(\x09\"\xA6\x01\x0A\x19CreateGlossaryTermRequest\x128\x0A\x06parent\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A dataplex.googleapis.com/Glossary\x12\x14\x0A\x07term_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x129\x0A\x04term\x18\x03 \x01(\x0B2&.google.cloud.dataplex.v1.GlossaryTermB\x03\xE0A\x02\"\x8C\x01\x0A\x19UpdateGlossaryTermRequest\x129\x0A\x04term\x18\x01 \x01(\x0B2&.google.cloud.dataplex.v1.GlossaryTermB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\"W\x0A\x19DeleteGlossaryTermRequest\x12:\x0A\x04name\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$dataplex.googleapis.com/GlossaryTerm\"T\x0A\x16GetGlossaryTermRequest\x12:\x0A\x04name\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$dataplex.googleapis.com/GlossaryTerm\"\xB1\x01\x0A\x18ListGlossaryTermsRequest\x128\x0A\x06parent\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A dataplex.googleapis.com/Glossary\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\"\x8A\x01\x0A\x19ListGlossaryTermsResponse\x125\x0A\x05terms\x18\x01 \x03(\x0B2&.google.cloud.dataplex.v1.GlossaryTerm\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x1D\x0A\x15unreachable_locations\x18\x03 \x03(\x092\xF7\x19\x0A\x17BusinessGlossaryService\x12\xE0\x01\x0A\x0ECreateGlossary\x12/.google.cloud.dataplex.v1.CreateGlossaryRequest\x1A\x1D.google.longrunning.Operation\"~\xCAA\x1D\x0A\x08Glossary\x12\x11OperationMetadata\xDAA\x1Bparent,glossary,glossary_id\x82\xD3\xE4\x93\x02:\"./v1/{parent=projects/*/locations/*}/glossaries:\x08glossary\x12\xE3\x01\x0A\x0EUpdateGlossary\x12/.google.cloud.dataplex.v1.UpdateGlossaryRequest\x1A\x1D.google.longrunning.Operation\"\x80\x01\xCAA\x1D\x0A\x08Glossary\x12\x11OperationMetadata\xDAA\x14glossary,update_mask\x82\xD3\xE4\x93\x02C27/v1/{glossary.name=projects/*/locations/*/glossaries/*}:\x08glossary\x12\xCC\x01\x0A\x0EDeleteGlossary\x12/.google.cloud.dataplex.v1.DeleteGlossaryRequest\x1A\x1D.google.longrunning.Operation\"j\xCAA*\x0A\x15google.protobuf.Empty\x12\x11OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x020*./v1/{name=projects/*/locations/*/glossaries/*}\x12\x9E\x01\x0A\x0BGetGlossary\x12,.google.cloud.dataplex.v1.GetGlossaryRequest\x1A\".google.cloud.dataplex.v1.Glossary\"=\xDAA\x04name\x82\xD3\xE4\x93\x020\x12./v1/{name=projects/*/locations/*/glossaries/*}\x12\xB4\x01\x0A\x0EListGlossaries\x12/.google.cloud.dataplex.v1.ListGlossariesRequest\x1A0.google.cloud.dataplex.v1.ListGlossariesResponse\"?\xDAA\x06parent\x82\xD3\xE4\x93\x020\x12./v1/{parent=projects/*/locations/*}/glossaries\x12\xEA\x01\x0A\x16CreateGlossaryCategory\x127.google.cloud.dataplex.v1.CreateGlossaryCategoryRequest\x1A*.google.cloud.dataplex.v1.GlossaryCategory\"k\xDAA\x1Bparent,category,category_id\x82\xD3\xE4\x93\x02G\";/v1/{parent=projects/*/locations/*/glossaries/*}/categories:\x08category\x12\xEC\x01\x0A\x16UpdateGlossaryCategory\x127.google.cloud.dataplex.v1.UpdateGlossaryCategoryRequest\x1A*.google.cloud.dataplex.v1.GlossaryCategory\"m\xDAA\x14category,update_mask\x82\xD3\xE4\x93\x02P2D/v1/{category.name=projects/*/locations/*/glossaries/*/categories/*}:\x08category\x12\xB5\x01\x0A\x16DeleteGlossaryCategory\x127.google.cloud.dataplex.v1.DeleteGlossaryCategoryRequest\x1A\x16.google.protobuf.Empty\"J\xDAA\x04name\x82\xD3\xE4\x93\x02=*;/v1/{name=projects/*/locations/*/glossaries/*/categories/*}\x12\xC3\x01\x0A\x13GetGlossaryCategory\x124.google.cloud.dataplex.v1.GetGlossaryCategoryRequest\x1A*.google.cloud.dataplex.v1.GlossaryCategory\"J\xDAA\x04name\x82\xD3\xE4\x93\x02=\x12;/v1/{name=projects/*/locations/*/glossaries/*/categories/*}\x12\xD9\x01\x0A\x16ListGlossaryCategories\x127.google.cloud.dataplex.v1.ListGlossaryCategoriesRequest\x1A8.google.cloud.dataplex.v1.ListGlossaryCategoriesResponse\"L\xDAA\x06parent\x82\xD3\xE4\x93\x02=\x12;/v1/{parent=projects/*/locations/*/glossaries/*}/categories\x12\xCD\x01\x0A\x12CreateGlossaryTerm\x123.google.cloud.dataplex.v1.CreateGlossaryTermRequest\x1A&.google.cloud.dataplex.v1.GlossaryTerm\"Z\xDAA\x13parent,term,term_id\x82\xD3\xE4\x93\x02>\"6/v1/{parent=projects/*/locations/*/glossaries/*}/terms:\x04term\x12\xCF\x01\x0A\x12UpdateGlossaryTerm\x123.google.cloud.dataplex.v1.UpdateGlossaryTermRequest\x1A&.google.cloud.dataplex.v1.GlossaryTerm\"\\\xDAA\x10term,update_mask\x82\xD3\xE4\x93\x02C2;/v1/{term.name=projects/*/locations/*/glossaries/*/terms/*}:\x04term\x12\xA8\x01\x0A\x12DeleteGlossaryTerm\x123.google.cloud.dataplex.v1.DeleteGlossaryTermRequest\x1A\x16.google.protobuf.Empty\"E\xDAA\x04name\x82\xD3\xE4\x93\x028*6/v1/{name=projects/*/locations/*/glossaries/*/terms/*}\x12\xB2\x01\x0A\x0FGetGlossaryTerm\x120.google.cloud.dataplex.v1.GetGlossaryTermRequest\x1A&.google.cloud.dataplex.v1.GlossaryTerm\"E\xDAA\x04name\x82\xD3\xE4\x93\x028\x126/v1/{name=projects/*/locations/*/glossaries/*/terms/*}\x12\xC5\x01\x0A\x11ListGlossaryTerms\x122.google.cloud.dataplex.v1.ListGlossaryTermsRequest\x1A3.google.cloud.dataplex.v1.ListGlossaryTermsResponse\"G\xDAA\x06parent\x82\xD3\xE4\x93\x028\x126/v1/{parent=projects/*/locations/*/glossaries/*}/terms\x1A\xEB\x01\xCAA\x17dataplex.googleapis.com\xD2A\xCD\x01https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.read-only,https://www.googleapis.com/auth/dataplex.read-write,https://www.googleapis.com/auth/dataplex.readonlyBq\x0A\x1Ccom.google.cloud.dataplex.v1B\x15BusinessGlossaryProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\x06proto3" , true); static::$is_initialized = true; diff --git a/Dataplex/metadata/V1/Catalog.php b/Dataplex/metadata/V1/Catalog.php index dc582d62c217..f9d69ad3e373 100644 --- a/Dataplex/metadata/V1/Catalog.php +++ b/Dataplex/metadata/V1/Catalog.php @@ -26,7 +26,7 @@ public static function initOnce() { \GPBMetadata\Google\Protobuf\Struct::initOnce(); \GPBMetadata\Google\Protobuf\Timestamp::initOnce(); $pool->internalAddGeneratedFile( - "\x0A\xAA\xC8\x01\x0A&google/cloud/dataplex/v1/catalog.proto\x12\x18google.cloud.dataplex.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x1Bgoogle/api/field_info.proto\x1A\x19google/api/resource.proto\x1A&google/cloud/dataplex/v1/service.proto\x1A#google/longrunning/operations.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Cgoogle/protobuf/struct.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\x83\x0F\x0A\x0AAspectType\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x03\xFAA\$\x0A\"dataplex.googleapis.com/AspectType\x12\x10\x0A\x03uid\x18\x02 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x05 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cdisplay_name\x18\x06 \x01(\x09B\x03\xE0A\x01\x12E\x0A\x06labels\x18\x07 \x03(\x0B20.google.cloud.dataplex.v1.AspectType.LabelsEntryB\x03\xE0A\x01\x12\x0C\x0A\x04etag\x18\x08 \x01(\x09\x12\\\x0A\x13data_classification\x18\x09 \x01(\x0E27.google.cloud.dataplex.v1.AspectType.DataClassificationB\x06\xE0A\x01\xE0A\x05\x12N\x0A\x0Dauthorization\x184 \x01(\x0B22.google.cloud.dataplex.v1.AspectType.AuthorizationB\x03\xE0A\x05\x12U\x0A\x11metadata_template\x185 \x01(\x0B25.google.cloud.dataplex.v1.AspectType.MetadataTemplateB\x03\xE0A\x02\x12G\x0A\x0Ftransfer_status\x18\xCA\x01 \x01(\x0E2(.google.cloud.dataplex.v1.TransferStatusB\x03\xE0A\x03\x1A6\x0A\x0DAuthorization\x12%\x0A\x18alternate_use_permission\x18\x01 \x01(\x09B\x03\xE0A\x05\x1A\xA4\x07\x0A\x10MetadataTemplate\x12\x12\x0A\x05index\x18\x01 \x01(\x05B\x03\xE0A\x01\x12\x11\x0A\x04name\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x11\x0A\x04type\x18\x05 \x01(\x09B\x03\xE0A\x02\x12Q\x0A\x0Drecord_fields\x18\x06 \x03(\x0B25.google.cloud.dataplex.v1.AspectType.MetadataTemplateB\x03\xE0A\x01\x12Y\x0A\x0Benum_values\x18\x08 \x03(\x0B2?.google.cloud.dataplex.v1.AspectType.MetadataTemplate.EnumValueB\x03\xE0A\x01\x12M\x0A\x09map_items\x18\x0A \x01(\x0B25.google.cloud.dataplex.v1.AspectType.MetadataTemplateB\x03\xE0A\x01\x12O\x0A\x0Barray_items\x18\x0B \x01(\x0B25.google.cloud.dataplex.v1.AspectType.MetadataTemplateB\x03\xE0A\x01\x12\x14\x0A\x07type_id\x18\x0C \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08type_ref\x18\x0D \x01(\x09B\x03\xE0A\x01\x12[\x0A\x0Bconstraints\x182 \x01(\x0B2A.google.cloud.dataplex.v1.AspectType.MetadataTemplate.ConstraintsB\x03\xE0A\x01\x12[\x0A\x0Bannotations\x183 \x01(\x0B2A.google.cloud.dataplex.v1.AspectType.MetadataTemplate.AnnotationsB\x03\xE0A\x01\x1AK\x0A\x09EnumValue\x12\x12\x0A\x05index\x18\x01 \x01(\x05B\x03\xE0A\x02\x12\x11\x0A\x04name\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x17\x0A\x0Adeprecated\x18\x03 \x01(\x09B\x03\xE0A\x01\x1A\$\x0A\x0BConstraints\x12\x15\x0A\x08required\x18\x01 \x01(\x08B\x03\xE0A\x01\x1A\xAD\x01\x0A\x0BAnnotations\x12\x17\x0A\x0Adeprecated\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x1A\x0A\x0Ddisplay_order\x18\x04 \x01(\x05B\x03\xE0A\x01\x12\x18\x0A\x0Bstring_type\x18\x06 \x01(\x09B\x03\xE0A\x01\x12\x1A\x0A\x0Dstring_values\x18\x07 \x03(\x09B\x03\xE0A\x01\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"P\x0A\x12DataClassification\x12#\x0A\x1FDATA_CLASSIFICATION_UNSPECIFIED\x10\x00\x12\x15\x0A\x11METADATA_AND_DATA\x10\x01:\x84\x01\xEAA\x80\x01\x0A\"dataplex.googleapis.com/AspectType\x12Aprojects/{project}/locations/{location}/aspectTypes/{aspect_type}*\x0BaspectTypes2\x0AaspectType\"\xCD\x04\x0A\x0AEntryGroup\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x03\xFAA\$\x0A\"dataplex.googleapis.com/EntryGroup\x12\x10\x0A\x03uid\x18\x02 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x05 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cdisplay_name\x18\x06 \x01(\x09B\x03\xE0A\x01\x12E\x0A\x06labels\x18\x07 \x03(\x0B20.google.cloud.dataplex.v1.EntryGroup.LabelsEntryB\x03\xE0A\x01\x12\x0C\x0A\x04etag\x18\x08 \x01(\x09\x12G\x0A\x0Ftransfer_status\x18\xCA\x01 \x01(\x0E2(.google.cloud.dataplex.v1.TransferStatusB\x03\xE0A\x03\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:\x84\x01\xEAA\x80\x01\x0A\"dataplex.googleapis.com/EntryGroup\x12Aprojects/{project}/locations/{location}/entryGroups/{entry_group}*\x0BentryGroups2\x0AentryGroup\"\xDC\x06\x0A\x09EntryType\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x03\xFAA#\x0A!dataplex.googleapis.com/EntryType\x12\x10\x0A\x03uid\x18\x02 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x05 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cdisplay_name\x18\x06 \x01(\x09B\x03\xE0A\x01\x12D\x0A\x06labels\x18\x07 \x03(\x0B2/.google.cloud.dataplex.v1.EntryType.LabelsEntryB\x03\xE0A\x01\x12\x11\x0A\x04etag\x18\x08 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Ctype_aliases\x18\x09 \x03(\x09B\x03\xE0A\x01\x12\x15\x0A\x08platform\x18\x0A \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06system\x18\x0B \x01(\x09B\x03\xE0A\x01\x12H\x0A\x10required_aspects\x182 \x03(\x0B2..google.cloud.dataplex.v1.EntryType.AspectInfo\x12M\x0A\x0Dauthorization\x183 \x01(\x0B21.google.cloud.dataplex.v1.EntryType.AuthorizationB\x03\xE0A\x05\x1AC\x0A\x0AAspectInfo\x125\x0A\x04type\x18\x01 \x01(\x09B'\xFAA\$\x0A\"dataplex.googleapis.com/AspectType\x1A6\x0A\x0DAuthorization\x12%\x0A\x18alternate_use_permission\x18\x01 \x01(\x09B\x03\xE0A\x05\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:~\xEAA{\x0A!dataplex.googleapis.com/EntryType\x12?projects/{project}/locations/{location}/entryTypes/{entry_type}*\x0AentryTypes2\x09entryType\"\x91\x02\x0A\x06Aspect\x12\x18\x0A\x0Baspect_type\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12*\x0A\x04data\x18\x08 \x01(\x0B2\x17.google.protobuf.StructB\x03\xE0A\x02\x12B\x0A\x0Daspect_source\x18\x09 \x01(\x0B2&.google.cloud.dataplex.v1.AspectSourceB\x03\xE0A\x01\"\x86\x01\x0A\x0CAspectSource\x12/\x0A\x0Bcreate_time\x18\x0A \x01(\x0B2\x1A.google.protobuf.Timestamp\x12/\x0A\x0Bupdate_time\x18\x0B \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x14\x0A\x0Cdata_version\x18\x0C \x01(\x09\"\xC4\x04\x0A\x05Entry\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x1A\x0A\x0Aentry_type\x18\x04 \x01(\x09B\x06\xE0A\x02\xE0A\x05\x124\x0A\x0Bcreate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12B\x0A\x07aspects\x18\x09 \x03(\x0B2,.google.cloud.dataplex.v1.Entry.AspectsEntryB\x03\xE0A\x01\x12\x1C\x0A\x0Cparent_entry\x18\x0A \x01(\x09B\x06\xE0A\x01\xE0A\x05\x12!\x0A\x14fully_qualified_name\x18\x0C \x01(\x09B\x03\xE0A\x01\x12@\x0A\x0Centry_source\x18\x0F \x01(\x0B2%.google.cloud.dataplex.v1.EntrySourceB\x03\xE0A\x01\x1AP\x0A\x0CAspectsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12/\x0A\x05value\x18\x02 \x01(\x0B2 .google.cloud.dataplex.v1.Aspect:\x028\x01:\x86\x01\xEAA\x82\x01\x0A\x1Ddataplex.googleapis.com/Entry\x12Qprojects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}*\x07entries2\x05entry\"\xD1\x03\x0A\x0BEntrySource\x12\x10\x0A\x08resource\x18\x01 \x01(\x09\x12\x0E\x0A\x06system\x18\x02 \x01(\x09\x12\x10\x0A\x08platform\x18\x03 \x01(\x09\x12\x14\x0A\x0Cdisplay_name\x18\x05 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x06 \x01(\x09\x12A\x0A\x06labels\x18\x07 \x03(\x0B21.google.cloud.dataplex.v1.EntrySource.LabelsEntry\x12F\x0A\x09ancestors\x18\x09 \x03(\x0B2..google.cloud.dataplex.v1.EntrySource.AncestorB\x03\xE0A\x05\x12/\x0A\x0Bcreate_time\x18\x0A \x01(\x0B2\x1A.google.protobuf.Timestamp\x12/\x0A\x0Bupdate_time\x18\x0B \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x15\x0A\x08location\x18\x0C \x01(\x09B\x03\xE0A\x03\x1A0\x0A\x08Ancestor\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04type\x18\x02 \x01(\x09B\x03\xE0A\x01\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"\xCD\x01\x0A\x17CreateEntryGroupRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12\x1B\x0A\x0Eentry_group_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12>\x0A\x0Bentry_group\x18\x03 \x01(\x0B2\$.google.cloud.dataplex.v1.EntryGroupB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"\xAB\x01\x0A\x17UpdateEntryGroupRequest\x12>\x0A\x0Bentry_group\x18\x01 \x01(\x0B2\$.google.cloud.dataplex.v1.EntryGroupB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"f\x0A\x17DeleteEntryGroupRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataplex.googleapis.com/EntryGroup\x12\x11\x0A\x04etag\x18\x02 \x01(\x09B\x03\xE0A\x01\"\xB0\x01\x0A\x16ListEntryGroupsRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\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\"\x8D\x01\x0A\x17ListEntryGroupsResponse\x12:\x0A\x0Centry_groups\x18\x01 \x03(\x0B2\$.google.cloud.dataplex.v1.EntryGroup\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x1D\x0A\x15unreachable_locations\x18\x03 \x03(\x09\"P\x0A\x14GetEntryGroupRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataplex.googleapis.com/EntryGroup\"\xC9\x01\x0A\x16CreateEntryTypeRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12\x1A\x0A\x0Dentry_type_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12<\x0A\x0Aentry_type\x18\x03 \x01(\x0B2#.google.cloud.dataplex.v1.EntryTypeB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"\xA8\x01\x0A\x16UpdateEntryTypeRequest\x12<\x0A\x0Aentry_type\x18\x01 \x01(\x0B2#.google.cloud.dataplex.v1.EntryTypeB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"d\x0A\x16DeleteEntryTypeRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataplex.googleapis.com/EntryType\x12\x11\x0A\x04etag\x18\x02 \x01(\x09B\x03\xE0A\x01\"\xAF\x01\x0A\x15ListEntryTypesRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\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\"\x8A\x01\x0A\x16ListEntryTypesResponse\x128\x0A\x0Bentry_types\x18\x01 \x03(\x0B2#.google.cloud.dataplex.v1.EntryType\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x1D\x0A\x15unreachable_locations\x18\x03 \x03(\x09\"N\x0A\x13GetEntryTypeRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataplex.googleapis.com/EntryType\"\xCD\x01\x0A\x17CreateAspectTypeRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12\x1B\x0A\x0Easpect_type_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12>\x0A\x0Baspect_type\x18\x03 \x01(\x0B2\$.google.cloud.dataplex.v1.AspectTypeB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"\xAB\x01\x0A\x17UpdateAspectTypeRequest\x12>\x0A\x0Baspect_type\x18\x01 \x01(\x0B2\$.google.cloud.dataplex.v1.AspectTypeB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"f\x0A\x17DeleteAspectTypeRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataplex.googleapis.com/AspectType\x12\x11\x0A\x04etag\x18\x02 \x01(\x09B\x03\xE0A\x01\"\xB0\x01\x0A\x16ListAspectTypesRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\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\"\x8D\x01\x0A\x17ListAspectTypesResponse\x12:\x0A\x0Caspect_types\x18\x01 \x03(\x0B2\$.google.cloud.dataplex.v1.AspectType\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x1D\x0A\x15unreachable_locations\x18\x03 \x03(\x09\"P\x0A\x14GetAspectTypeRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataplex.googleapis.com/AspectType\"\x9C\x01\x0A\x12CreateEntryRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataplex.googleapis.com/EntryGroup\x12\x15\x0A\x08entry_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x123\x0A\x05entry\x18\x03 \x01(\x0B2\x1F.google.cloud.dataplex.v1.EntryB\x03\xE0A\x02\"\xDA\x01\x0A\x12UpdateEntryRequest\x123\x0A\x05entry\x18\x01 \x01(\x0B2\x1F.google.cloud.dataplex.v1.EntryB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12\x1A\x0A\x0Dallow_missing\x18\x03 \x01(\x08B\x03\xE0A\x01\x12#\x0A\x16delete_missing_aspects\x18\x04 \x01(\x08B\x03\xE0A\x01\x12\x18\x0A\x0Baspect_keys\x18\x05 \x03(\x09B\x03\xE0A\x01\"I\x0A\x12DeleteEntryRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddataplex.googleapis.com/Entry\"\x96\x01\x0A\x12ListEntriesRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataplex.googleapis.com/EntryGroup\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\"`\x0A\x13ListEntriesResponse\x120\x0A\x07entries\x18\x01 \x03(\x0B2\x1F.google.cloud.dataplex.v1.Entry\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xAD\x01\x0A\x0FGetEntryRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddataplex.googleapis.com/Entry\x126\x0A\x04view\x18\x02 \x01(\x0E2#.google.cloud.dataplex.v1.EntryViewB\x03\xE0A\x01\x12\x19\x0A\x0Caspect_types\x18\x03 \x03(\x09B\x03\xE0A\x01\x12\x12\x0A\x05paths\x18\x04 \x03(\x09B\x03\xE0A\x01\"\xC4\x01\x0A\x12LookupEntryRequest\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x126\x0A\x04view\x18\x02 \x01(\x0E2#.google.cloud.dataplex.v1.EntryViewB\x03\xE0A\x01\x12\x19\x0A\x0Caspect_types\x18\x03 \x03(\x09B\x03\xE0A\x01\x12\x12\x0A\x05paths\x18\x04 \x03(\x09B\x03\xE0A\x01\x124\x0A\x05entry\x18\x05 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddataplex.googleapis.com/Entry\"\xE6\x01\x0A\x14LookupContextRequest\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x128\x0A\x09resources\x18\x02 \x03(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddataplex.googleapis.com/Entry\x12Q\x0A\x07options\x18\x04 \x03(\x0B2;.google.cloud.dataplex.v1.LookupContextRequest.OptionsEntryB\x03\xE0A\x01\x1A.\x0A\x0COptionsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"(\x0A\x15LookupContextResponse\x12\x0F\x0A\x07context\x18\x01 \x01(\x09\"\xDD\x01\x0A\x14SearchEntriesRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12\x12\x0A\x05query\x18\x02 \x01(\x09B\x03\xE0A\x02\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\x15\x0A\x08order_by\x18\x05 \x01(\x09B\x03\xE0A\x01\x12\x12\x0A\x05scope\x18\x07 \x01(\x09B\x03\xE0A\x01\x12\x1C\x0A\x0Fsemantic_search\x18\x0B \x01(\x08B\x03\xE0A\x01\"\x86\x02\x0A\x13SearchEntriesResult\x12\x1B\x0A\x0Flinked_resource\x18\x08 \x01(\x09B\x02\x18\x01\x127\x0A\x0Edataplex_entry\x18\x09 \x01(\x0B2\x1F.google.cloud.dataplex.v1.Entry\x12L\x0A\x08snippets\x18\x0C \x01(\x0B26.google.cloud.dataplex.v1.SearchEntriesResult.SnippetsB\x02\x18\x01\x1AK\x0A\x08Snippets\x12;\x0A\x0Edataplex_entry\x18\x01 \x01(\x0B2\x1F.google.cloud.dataplex.v1.EntryB\x02\x18\x01:\x02\x18\x01\"\x99\x01\x0A\x15SearchEntriesResponse\x12>\x0A\x07results\x18\x01 \x03(\x0B2-.google.cloud.dataplex.v1.SearchEntriesResult\x12\x12\x0A\x0Atotal_size\x18\x02 \x01(\x05\x12\x17\x0A\x0Fnext_page_token\x18\x03 \x01(\x09\x12\x13\x0A\x0Bunreachable\x18\x04 \x03(\x09\"\xBB\x01\x0A\x0AImportItem\x12.\x0A\x05entry\x18\x01 \x01(\x0B2\x1F.google.cloud.dataplex.v1.Entry\x127\x0A\x0Aentry_link\x18\x04 \x01(\x0B2#.google.cloud.dataplex.v1.EntryLink\x12/\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMask\x12\x13\x0A\x0Baspect_keys\x18\x03 \x03(\x09\"\xD1\x01\x0A\x18CreateMetadataJobRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12@\x0A\x0Cmetadata_job\x18\x02 \x01(\x0B2%.google.cloud.dataplex.v1.MetadataJobB\x03\xE0A\x02\x12\x1C\x0A\x0Fmetadata_job_id\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"R\x0A\x15GetMetadataJobRequest\x129\x0A\x04name\x18\x01 \x01(\x09B+\xE0A\x02\xFAA%\x0A#dataplex.googleapis.com/MetadataJob\"\xB1\x01\x0A\x17ListMetadataJobsRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\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\"\x90\x01\x0A\x18ListMetadataJobsResponse\x12<\x0A\x0Dmetadata_jobs\x18\x01 \x03(\x0B2%.google.cloud.dataplex.v1.MetadataJob\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x1D\x0A\x15unreachable_locations\x18\x03 \x03(\x09\"U\x0A\x18CancelMetadataJobRequest\x129\x0A\x04name\x18\x01 \x01(\x09B+\xE0A\x02\xFAA%\x0A#dataplex.googleapis.com/MetadataJob\"\xEE\x17\x0A\x0BMetadataJob\x12\x14\x0A\x04name\x18\x01 \x01(\x09B\x06\xE0A\x03\xE0A\x08\x12\x18\x0A\x03uid\x18\x02 \x01(\x09B\x0B\xE0A\x03\xE2\x8C\xCF\xD7\x08\x02\x08\x01\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12F\x0A\x06labels\x18\x05 \x03(\x0B21.google.cloud.dataplex.v1.MetadataJob.LabelsEntryB\x03\xE0A\x01\x12=\x0A\x04type\x18\x06 \x01(\x0E2*.google.cloud.dataplex.v1.MetadataJob.TypeB\x03\xE0A\x02\x12J\x0A\x0Bimport_spec\x18d \x01(\x0B23.google.cloud.dataplex.v1.MetadataJob.ImportJobSpecH\x00\x12J\x0A\x0Bexport_spec\x18e \x01(\x0B23.google.cloud.dataplex.v1.MetadataJob.ExportJobSpecH\x00\x12T\x0A\x0Dimport_result\x18\xC8\x01 \x01(\x0B25.google.cloud.dataplex.v1.MetadataJob.ImportJobResultB\x03\xE0A\x03H\x01\x12T\x0A\x0Dexport_result\x18\xC9\x01 \x01(\x0B25.google.cloud.dataplex.v1.MetadataJob.ExportJobResultB\x03\xE0A\x03H\x01\x12A\x0A\x06status\x18\x07 \x01(\x0B2,.google.cloud.dataplex.v1.MetadataJob.StatusB\x03\xE0A\x03\x1A\xC9\x02\x0A\x0FImportJobResult\x12\x1C\x0A\x0Fdeleted_entries\x18\x01 \x01(\x03B\x03\xE0A\x03\x12\x1C\x0A\x0Fupdated_entries\x18\x02 \x01(\x03B\x03\xE0A\x03\x12\x1C\x0A\x0Fcreated_entries\x18\x03 \x01(\x03B\x03\xE0A\x03\x12\x1E\x0A\x11unchanged_entries\x18\x04 \x01(\x03B\x03\xE0A\x03\x12\x1E\x0A\x11recreated_entries\x18\x06 \x01(\x03B\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12 \x0A\x13deleted_entry_links\x18\x07 \x01(\x03B\x03\xE0A\x03\x12 \x0A\x13created_entry_links\x18\x08 \x01(\x03B\x03\xE0A\x03\x12\"\x0A\x15unchanged_entry_links\x18\x09 \x01(\x03B\x03\xE0A\x03\x1AL\x0A\x0FExportJobResult\x12\x1D\x0A\x10exported_entries\x18\x01 \x01(\x03B\x03\xE0A\x03\x12\x1A\x0A\x0Derror_message\x18\x02 \x01(\x09B\x03\xE0A\x03\x1A\xB6\x07\x0A\x0DImportJobSpec\x12\x1F\x0A\x12source_storage_uri\x18\x01 \x01(\x09B\x03\xE0A\x01\x12;\x0A\x12source_create_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x01\x12V\x0A\x05scope\x18\x02 \x01(\x0B2B.google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.ImportJobScopeB\x03\xE0A\x02\x12Z\x0A\x0Fentry_sync_mode\x18\x03 \x01(\x0E2<.google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.SyncModeB\x03\xE0A\x02\x12[\x0A\x10aspect_sync_mode\x18\x04 \x01(\x0E2<.google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.SyncModeB\x03\xE0A\x02\x12T\x0A\x09log_level\x18\x06 \x01(\x0E2<.google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.LogLevelB\x03\xE0A\x01\x1A\xD7\x02\x0A\x0EImportJobScope\x12@\x0A\x0Centry_groups\x18\x01 \x03(\x09B*\xE0A\x02\xFAA\$\x0A\"dataplex.googleapis.com/EntryGroup\x12>\x0A\x0Bentry_types\x18\x02 \x03(\x09B)\xE0A\x02\xFAA#\x0A!dataplex.googleapis.com/EntryType\x12@\x0A\x0Caspect_types\x18\x03 \x03(\x09B*\xE0A\x01\xFAA\$\x0A\"dataplex.googleapis.com/AspectType\x12<\x0A\x0Aglossaries\x18\x04 \x03(\x09B(\xE0A\x01\xFAA\"\x0A dataplex.googleapis.com/Glossary\x12\x1D\x0A\x10entry_link_types\x18\x05 \x03(\x09B\x03\xE0A\x01\x12\$\x0A\x17referenced_entry_scopes\x18\x06 \x03(\x09B\x03\xE0A\x01\"J\x0A\x08SyncMode\x12\x19\x0A\x15SYNC_MODE_UNSPECIFIED\x10\x00\x12\x08\x0A\x04FULL\x10\x01\x12\x0F\x0A\x0BINCREMENTAL\x10\x02\x12\x08\x0A\x04NONE\x10\x03\":\x0A\x08LogLevel\x12\x19\x0A\x15LOG_LEVEL_UNSPECIFIED\x10\x00\x12\x09\x0A\x05DEBUG\x10\x01\x12\x08\x0A\x04INFO\x10\x02\x1A\xAF\x03\x0A\x0DExportJobSpec\x12V\x0A\x05scope\x18\x02 \x01(\x0B2B.google.cloud.dataplex.v1.MetadataJob.ExportJobSpec.ExportJobScopeB\x03\xE0A\x02\x12\x18\x0A\x0Boutput_path\x18\x03 \x01(\x09B\x03\xE0A\x02\x1A\xAB\x02\x0A\x0EExportJobScope\x12\x1A\x0A\x12organization_level\x18\x01 \x01(\x08\x12B\x0A\x08projects\x18\x02 \x03(\x09B0\xFAA-\x0A+cloudresourcemanager.googleapis.com/Project\x12=\x0A\x0Centry_groups\x18\x03 \x03(\x09B'\xFAA\$\x0A\"dataplex.googleapis.com/EntryGroup\x12;\x0A\x0Bentry_types\x18\x04 \x03(\x09B&\xFAA#\x0A!dataplex.googleapis.com/EntryType\x12=\x0A\x0Caspect_types\x18\x05 \x03(\x09B'\xFAA\$\x0A\"dataplex.googleapis.com/AspectType\x1A\xCA\x02\x0A\x06Status\x12F\x0A\x05state\x18\x01 \x01(\x0E22.google.cloud.dataplex.v1.MetadataJob.Status.StateB\x03\xE0A\x03\x12\x14\x0A\x07message\x18\x02 \x01(\x09B\x03\xE0A\x03\x12\x1F\x0A\x12completion_percent\x18\x03 \x01(\x05B\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\"\x8A\x01\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06QUEUED\x10\x01\x12\x0B\x0A\x07RUNNING\x10\x02\x12\x0D\x0A\x09CANCELING\x10\x03\x12\x0C\x0A\x08CANCELED\x10\x04\x12\x0D\x0A\x09SUCCEEDED\x10\x05\x12\x0A\x0A\x06FAILED\x10\x06\x12\x19\x0A\x15SUCCEEDED_WITH_ERRORS\x10\x07\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"4\x0A\x04Type\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06IMPORT\x10\x01\x12\x0A\x0A\x06EXPORT\x10\x02:l\xEAAi\x0A#dataplex.googleapis.com/MetadataJob\x12Bprojects/{project}/locations/{location}/metadataJobs/{metadataJob}B\x06\x0A\x04specB\x08\x0A\x06result\"\x9F\x06\x0A\x09EntryLink\x12=\x0A\x04name\x18\x01 \x01(\x09B/\xE0A\x03\xE0A\x05\xE0A\x08\xFAA#\x0A!dataplex.googleapis.com/EntryLink\x12\x1F\x0A\x0Fentry_link_type\x18\x02 \x01(\x09B\x06\xE0A\x02\xE0A\x05\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12F\x0A\x07aspects\x18\x06 \x03(\x0B20.google.cloud.dataplex.v1.EntryLink.AspectsEntryB\x03\xE0A\x01\x12T\x0A\x10entry_references\x18\x0A \x03(\x0B22.google.cloud.dataplex.v1.EntryLink.EntryReferenceB\x06\xE0A\x02\xE0A\x05\x1A\xB9\x01\x0A\x0EEntryReference\x12\x14\x0A\x04name\x18\x01 \x01(\x09B\x06\xE0A\x02\xE0A\x05\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x05\x12M\x0A\x04type\x18\x03 \x01(\x0E27.google.cloud.dataplex.v1.EntryLink.EntryReference.TypeB\x06\xE0A\x02\xE0A\x05\"/\x0A\x04Type\x12\x0F\x0A\x0BUNSPECIFIED\x10\x00\x12\x0A\x0A\x06SOURCE\x10\x02\x12\x0A\x0A\x06TARGET\x10\x03\x1AP\x0A\x0CAspectsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12/\x0A\x05value\x18\x02 \x01(\x0B2 .google.cloud.dataplex.v1.Aspect:\x028\x01:\x99\x01\xEAA\x95\x01\x0A!dataplex.googleapis.com/EntryLink\x12Yprojects/{project}/locations/{location}/entryGroups/{entry_group}/entryLinks/{entry_link}*\x0AentryLinks2\x09entryLink\"\xAE\x01\x0A\x16CreateEntryLinkRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataplex.googleapis.com/EntryGroup\x12\x1A\x0A\x0Dentry_link_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12<\x0A\x0Aentry_link\x18\x03 \x01(\x0B2#.google.cloud.dataplex.v1.EntryLinkB\x03\xE0A\x02\"\x8C\x01\x0A\x16UpdateEntryLinkRequest\x12<\x0A\x0Aentry_link\x18\x01 \x01(\x0B2#.google.cloud.dataplex.v1.EntryLinkB\x03\xE0A\x02\x12\x1A\x0A\x0Dallow_missing\x18\x03 \x01(\x08B\x03\xE0A\x01\x12\x18\x0A\x0Baspect_keys\x18\x05 \x03(\x09B\x03\xE0A\x01\"Q\x0A\x16DeleteEntryLinkRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataplex.googleapis.com/EntryLink\"\xB5\x02\x0A\x17LookupEntryLinksRequest\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x124\x0A\x05entry\x18\x02 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddataplex.googleapis.com/Entry\x12O\x0A\x0Aentry_mode\x18\x03 \x01(\x0E2;.google.cloud.dataplex.v1.LookupEntryLinksRequest.EntryMode\x12\x18\x0A\x10entry_link_types\x18\x04 \x03(\x09\x12\x11\x0A\x09page_size\x18\x05 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x06 \x01(\x09\"?\x0A\x09EntryMode\x12\x1A\x0A\x16ENTRY_MODE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06SOURCE\x10\x01\x12\x0A\x0A\x06TARGET\x10\x02\"m\x0A\x18LookupEntryLinksResponse\x128\x0A\x0Bentry_links\x18\x01 \x03(\x0B2#.google.cloud.dataplex.v1.EntryLink\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"N\x0A\x13GetEntryLinkRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataplex.googleapis.com/EntryLink\"\xC8\x08\x0A\x0CMetadataFeed\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x18\x0A\x03uid\x18\x02 \x01(\x09B\x0B\xE0A\x03\xE2\x8C\xCF\xD7\x08\x02\x08\x01\x12@\x0A\x05scope\x18\x03 \x01(\x0B2,.google.cloud.dataplex.v1.MetadataFeed.ScopeB\x03\xE0A\x02\x12D\x0A\x07filters\x18\x04 \x01(\x0B2..google.cloud.dataplex.v1.MetadataFeed.FiltersB\x03\xE0A\x01\x124\x0A\x0Bcreate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12G\x0A\x06labels\x18\x08 \x03(\x0B22.google.cloud.dataplex.v1.MetadataFeed.LabelsEntryB\x03\xE0A\x01\x12\x1B\x0A\x0Cpubsub_topic\x18d \x01(\x09B\x03\xE0A\x01H\x00\x1A\xB1\x01\x0A\x05Scope\x12\x1F\x0A\x12organization_level\x18\x01 \x01(\x08B\x03\xE0A\x01\x12E\x0A\x08projects\x18\x02 \x03(\x09B3\xE0A\x01\xFAA-\x0A+cloudresourcemanager.googleapis.com/Project\x12@\x0A\x0Centry_groups\x18\x03 \x03(\x09B*\xE0A\x01\xFAA\$\x0A\"dataplex.googleapis.com/EntryGroup\x1A\xB0\x02\x0A\x07Filters\x12>\x0A\x0Bentry_types\x18\x01 \x03(\x09B)\xE0A\x01\xFAA#\x0A!dataplex.googleapis.com/EntryType\x12@\x0A\x0Caspect_types\x18\x02 \x03(\x09B*\xE0A\x01\xFAA\$\x0A\"dataplex.googleapis.com/AspectType\x12T\x0A\x0Cchange_types\x18\x03 \x03(\x0E29.google.cloud.dataplex.v1.MetadataFeed.Filters.ChangeTypeB\x03\xE0A\x01\"M\x0A\x0AChangeType\x12\x1B\x0A\x17CHANGE_TYPE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06CREATE\x10\x01\x12\x0A\x0A\x06UPDATE\x10\x02\x12\x0A\x0A\x06DELETE\x10\x03\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:\x8E\x01\xEAA\x8A\x01\x0A\$dataplex.googleapis.com/MetadataFeed\x12Eprojects/{project}/locations/{location}/metadataFeeds/{metadata_feed}*\x0DmetadataFeeds2\x0CmetadataFeedB\x0A\x0A\x08endpoint\"\xD5\x01\x0A\x19CreateMetadataFeedRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12B\x0A\x0Dmetadata_feed\x18\x02 \x01(\x0B2&.google.cloud.dataplex.v1.MetadataFeedB\x03\xE0A\x02\x12\x1D\x0A\x10metadata_feed_id\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"T\x0A\x16GetMetadataFeedRequest\x12:\x0A\x04name\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$dataplex.googleapis.com/MetadataFeed\"\xB2\x01\x0A\x18ListMetadataFeedsRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\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\"\x8E\x01\x0A\x19ListMetadataFeedsResponse\x12>\x0A\x0Emetadata_feeds\x18\x01 \x03(\x0B2&.google.cloud.dataplex.v1.MetadataFeed\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x18\x0A\x0Bunreachable\x18\x03 \x03(\x09B\x03\xE0A\x06\"W\x0A\x19DeleteMetadataFeedRequest\x12:\x0A\x04name\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$dataplex.googleapis.com/MetadataFeed\"\xB1\x01\x0A\x19UpdateMetadataFeedRequest\x12B\x0A\x0Dmetadata_feed\x18\x01 \x01(\x0B2&.google.cloud.dataplex.v1.MetadataFeedB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01*Q\x0A\x09EntryView\x12\x1A\x0A\x16ENTRY_VIEW_UNSPECIFIED\x10\x00\x12\x09\x0A\x05BASIC\x10\x01\x12\x08\x0A\x04FULL\x10\x02\x12\x0A\x0A\x06CUSTOM\x10\x03\x12\x07\x0A\x03ALL\x10\x04*p\x0A\x0ETransferStatus\x12\x1F\x0A\x1BTRANSFER_STATUS_UNSPECIFIED\x10\x00\x12\x1C\x0A\x18TRANSFER_STATUS_MIGRATED\x10\x01\x12\x1F\x0A\x1BTRANSFER_STATUS_TRANSFERRED\x10\x022\x8F<\x0A\x0ECatalogService\x12\xEA\x01\x0A\x0FCreateEntryType\x120.google.cloud.dataplex.v1.CreateEntryTypeRequest\x1A\x1D.google.longrunning.Operation\"\x85\x01\xCAA\x1E\x0A\x09EntryType\x12\x11OperationMetadata\xDAA\x1Fparent,entry_type,entry_type_id\x82\xD3\xE4\x93\x02<\"./v1/{parent=projects/*/locations/*}/entryTypes:\x0Aentry_type\x12\xEC\x01\x0A\x0FUpdateEntryType\x120.google.cloud.dataplex.v1.UpdateEntryTypeRequest\x1A\x1D.google.longrunning.Operation\"\x87\x01\xCAA\x1E\x0A\x09EntryType\x12\x11OperationMetadata\xDAA\x16entry_type,update_mask\x82\xD3\xE4\x93\x02G29/v1/{entry_type.name=projects/*/locations/*/entryTypes/*}:\x0Aentry_type\x12\xCE\x01\x0A\x0FDeleteEntryType\x120.google.cloud.dataplex.v1.DeleteEntryTypeRequest\x1A\x1D.google.longrunning.Operation\"j\xCAA*\x0A\x15google.protobuf.Empty\x12\x11OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x020*./v1/{name=projects/*/locations/*/entryTypes/*}\x12\xB4\x01\x0A\x0EListEntryTypes\x12/.google.cloud.dataplex.v1.ListEntryTypesRequest\x1A0.google.cloud.dataplex.v1.ListEntryTypesResponse\"?\xDAA\x06parent\x82\xD3\xE4\x93\x020\x12./v1/{parent=projects/*/locations/*}/entryTypes\x12\xA1\x01\x0A\x0CGetEntryType\x12-.google.cloud.dataplex.v1.GetEntryTypeRequest\x1A#.google.cloud.dataplex.v1.EntryType\"=\xDAA\x04name\x82\xD3\xE4\x93\x020\x12./v1/{name=projects/*/locations/*/entryTypes/*}\x12\xF1\x01\x0A\x10CreateAspectType\x121.google.cloud.dataplex.v1.CreateAspectTypeRequest\x1A\x1D.google.longrunning.Operation\"\x8A\x01\xCAA\x1F\x0A\x0AAspectType\x12\x11OperationMetadata\xDAA!parent,aspect_type,aspect_type_id\x82\xD3\xE4\x93\x02>\"//v1/{parent=projects/*/locations/*}/aspectTypes:\x0Baspect_type\x12\xF3\x01\x0A\x10UpdateAspectType\x121.google.cloud.dataplex.v1.UpdateAspectTypeRequest\x1A\x1D.google.longrunning.Operation\"\x8C\x01\xCAA\x1F\x0A\x0AAspectType\x12\x11OperationMetadata\xDAA\x17aspect_type,update_mask\x82\xD3\xE4\x93\x02J2;/v1/{aspect_type.name=projects/*/locations/*/aspectTypes/*}:\x0Baspect_type\x12\xD1\x01\x0A\x10DeleteAspectType\x121.google.cloud.dataplex.v1.DeleteAspectTypeRequest\x1A\x1D.google.longrunning.Operation\"k\xCAA*\x0A\x15google.protobuf.Empty\x12\x11OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x021*//v1/{name=projects/*/locations/*/aspectTypes/*}\x12\xB8\x01\x0A\x0FListAspectTypes\x120.google.cloud.dataplex.v1.ListAspectTypesRequest\x1A1.google.cloud.dataplex.v1.ListAspectTypesResponse\"@\xDAA\x06parent\x82\xD3\xE4\x93\x021\x12//v1/{parent=projects/*/locations/*}/aspectTypes\x12\xA5\x01\x0A\x0DGetAspectType\x12..google.cloud.dataplex.v1.GetAspectTypeRequest\x1A\$.google.cloud.dataplex.v1.AspectType\">\xDAA\x04name\x82\xD3\xE4\x93\x021\x12//v1/{name=projects/*/locations/*/aspectTypes/*}\x12\xF1\x01\x0A\x10CreateEntryGroup\x121.google.cloud.dataplex.v1.CreateEntryGroupRequest\x1A\x1D.google.longrunning.Operation\"\x8A\x01\xCAA\x1F\x0A\x0AEntryGroup\x12\x11OperationMetadata\xDAA!parent,entry_group,entry_group_id\x82\xD3\xE4\x93\x02>\"//v1/{parent=projects/*/locations/*}/entryGroups:\x0Bentry_group\x12\xF3\x01\x0A\x10UpdateEntryGroup\x121.google.cloud.dataplex.v1.UpdateEntryGroupRequest\x1A\x1D.google.longrunning.Operation\"\x8C\x01\xCAA\x1F\x0A\x0AEntryGroup\x12\x11OperationMetadata\xDAA\x17entry_group,update_mask\x82\xD3\xE4\x93\x02J2;/v1/{entry_group.name=projects/*/locations/*/entryGroups/*}:\x0Bentry_group\x12\xD1\x01\x0A\x10DeleteEntryGroup\x121.google.cloud.dataplex.v1.DeleteEntryGroupRequest\x1A\x1D.google.longrunning.Operation\"k\xCAA*\x0A\x15google.protobuf.Empty\x12\x11OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x021*//v1/{name=projects/*/locations/*/entryGroups/*}\x12\xB8\x01\x0A\x0FListEntryGroups\x120.google.cloud.dataplex.v1.ListEntryGroupsRequest\x1A1.google.cloud.dataplex.v1.ListEntryGroupsResponse\"@\xDAA\x06parent\x82\xD3\xE4\x93\x021\x12//v1/{parent=projects/*/locations/*}/entryGroups\x12\xA5\x01\x0A\x0DGetEntryGroup\x12..google.cloud.dataplex.v1.GetEntryGroupRequest\x1A\$.google.cloud.dataplex.v1.EntryGroup\">\xDAA\x04name\x82\xD3\xE4\x93\x021\x12//v1/{name=projects/*/locations/*/entryGroups/*}\x12\xBE\x01\x0A\x0BCreateEntry\x12,.google.cloud.dataplex.v1.CreateEntryRequest\x1A\x1F.google.cloud.dataplex.v1.Entry\"`\xDAA\x15parent,entry,entry_id\x82\xD3\xE4\x93\x02B\"9/v1/{parent=projects/*/locations/*/entryGroups/*}/entries:\x05entry\x12\xC1\x01\x0A\x0BUpdateEntry\x12,.google.cloud.dataplex.v1.UpdateEntryRequest\x1A\x1F.google.cloud.dataplex.v1.Entry\"c\xDAA\x11entry,update_mask\x82\xD3\xE4\x93\x02I2@/v1/{entry.name=projects/*/locations/*/entryGroups/*/entries/**}:\x05entry\x12\xA7\x01\x0A\x0BDeleteEntry\x12,.google.cloud.dataplex.v1.DeleteEntryRequest\x1A\x1F.google.cloud.dataplex.v1.Entry\"I\xDAA\x04name\x82\xD3\xE4\x93\x02<*:/v1/{name=projects/*/locations/*/entryGroups/*/entries/**}\x12\xB6\x01\x0A\x0BListEntries\x12,.google.cloud.dataplex.v1.ListEntriesRequest\x1A-.google.cloud.dataplex.v1.ListEntriesResponse\"J\xDAA\x06parent\x82\xD3\xE4\x93\x02;\x129/v1/{parent=projects/*/locations/*/entryGroups/*}/entries\x12\xA1\x01\x0A\x08GetEntry\x12).google.cloud.dataplex.v1.GetEntryRequest\x1A\x1F.google.cloud.dataplex.v1.Entry\"I\xDAA\x04name\x82\xD3\xE4\x93\x02<\x12:/v1/{name=projects/*/locations/*/entryGroups/*/entries/**}\x12\x93\x01\x0A\x0BLookupEntry\x12,.google.cloud.dataplex.v1.LookupEntryRequest\x1A\x1F.google.cloud.dataplex.v1.Entry\"5\x82\xD3\xE4\x93\x02/\x12-/v1/{name=projects/*/locations/*}:lookupEntry\x12\xB6\x01\x0A\x0DSearchEntries\x12..google.cloud.dataplex.v1.SearchEntriesRequest\x1A/.google.cloud.dataplex.v1.SearchEntriesResponse\"D\xDAA\x0Aname,query\x82\xD3\xE4\x93\x021\"//v1/{name=projects/*/locations/*}:searchEntries\x12\xF8\x01\x0A\x11CreateMetadataJob\x122.google.cloud.dataplex.v1.CreateMetadataJobRequest\x1A\x1D.google.longrunning.Operation\"\x8F\x01\xCAA \x0A\x0BMetadataJob\x12\x11OperationMetadata\xDAA#parent,metadata_job,metadata_job_id\x82\xD3\xE4\x93\x02@\"0/v1/{parent=projects/*/locations/*}/metadataJobs:\x0Cmetadata_job\x12\xA9\x01\x0A\x0EGetMetadataJob\x12/.google.cloud.dataplex.v1.GetMetadataJobRequest\x1A%.google.cloud.dataplex.v1.MetadataJob\"?\xDAA\x04name\x82\xD3\xE4\x93\x022\x120/v1/{name=projects/*/locations/*/metadataJobs/*}\x12\xBC\x01\x0A\x10ListMetadataJobs\x121.google.cloud.dataplex.v1.ListMetadataJobsRequest\x1A2.google.cloud.dataplex.v1.ListMetadataJobsResponse\"A\xDAA\x06parent\x82\xD3\xE4\x93\x022\x120/v1/{parent=projects/*/locations/*}/metadataJobs\x12\xAA\x01\x0A\x11CancelMetadataJob\x122.google.cloud.dataplex.v1.CancelMetadataJobRequest\x1A\x16.google.protobuf.Empty\"I\xDAA\x04name\x82\xD3\xE4\x93\x02<\"7/v1/{name=projects/*/locations/*/metadataJobs/*}:cancel:\x01*\x12\xDC\x01\x0A\x0FCreateEntryLink\x120.google.cloud.dataplex.v1.CreateEntryLinkRequest\x1A#.google.cloud.dataplex.v1.EntryLink\"r\xDAA\x1Fparent,entry_link,entry_link_id\x82\xD3\xE4\x93\x02J\"*\x12\x0A\x0Bentry_group\x18\x03 \x01(\x0B2\$.google.cloud.dataplex.v1.EntryGroupB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"\xAB\x01\x0A\x17UpdateEntryGroupRequest\x12>\x0A\x0Bentry_group\x18\x01 \x01(\x0B2\$.google.cloud.dataplex.v1.EntryGroupB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"f\x0A\x17DeleteEntryGroupRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataplex.googleapis.com/EntryGroup\x12\x11\x0A\x04etag\x18\x02 \x01(\x09B\x03\xE0A\x01\"\xB0\x01\x0A\x16ListEntryGroupsRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\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\"\x8D\x01\x0A\x17ListEntryGroupsResponse\x12:\x0A\x0Centry_groups\x18\x01 \x03(\x0B2\$.google.cloud.dataplex.v1.EntryGroup\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x1D\x0A\x15unreachable_locations\x18\x03 \x03(\x09\"P\x0A\x14GetEntryGroupRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataplex.googleapis.com/EntryGroup\"\xC9\x01\x0A\x16CreateEntryTypeRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12\x1A\x0A\x0Dentry_type_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12<\x0A\x0Aentry_type\x18\x03 \x01(\x0B2#.google.cloud.dataplex.v1.EntryTypeB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"\xA8\x01\x0A\x16UpdateEntryTypeRequest\x12<\x0A\x0Aentry_type\x18\x01 \x01(\x0B2#.google.cloud.dataplex.v1.EntryTypeB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"d\x0A\x16DeleteEntryTypeRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataplex.googleapis.com/EntryType\x12\x11\x0A\x04etag\x18\x02 \x01(\x09B\x03\xE0A\x01\"\xAF\x01\x0A\x15ListEntryTypesRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\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\"\x8A\x01\x0A\x16ListEntryTypesResponse\x128\x0A\x0Bentry_types\x18\x01 \x03(\x0B2#.google.cloud.dataplex.v1.EntryType\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x1D\x0A\x15unreachable_locations\x18\x03 \x03(\x09\"N\x0A\x13GetEntryTypeRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataplex.googleapis.com/EntryType\"\xCD\x01\x0A\x17CreateAspectTypeRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12\x1B\x0A\x0Easpect_type_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12>\x0A\x0Baspect_type\x18\x03 \x01(\x0B2\$.google.cloud.dataplex.v1.AspectTypeB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"\xAB\x01\x0A\x17UpdateAspectTypeRequest\x12>\x0A\x0Baspect_type\x18\x01 \x01(\x0B2\$.google.cloud.dataplex.v1.AspectTypeB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"f\x0A\x17DeleteAspectTypeRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataplex.googleapis.com/AspectType\x12\x11\x0A\x04etag\x18\x02 \x01(\x09B\x03\xE0A\x01\"\xB0\x01\x0A\x16ListAspectTypesRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\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\"\x8D\x01\x0A\x17ListAspectTypesResponse\x12:\x0A\x0Caspect_types\x18\x01 \x03(\x0B2\$.google.cloud.dataplex.v1.AspectType\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x1D\x0A\x15unreachable_locations\x18\x03 \x03(\x09\"P\x0A\x14GetAspectTypeRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataplex.googleapis.com/AspectType\"\x9C\x01\x0A\x12CreateEntryRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataplex.googleapis.com/EntryGroup\x12\x15\x0A\x08entry_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x123\x0A\x05entry\x18\x03 \x01(\x0B2\x1F.google.cloud.dataplex.v1.EntryB\x03\xE0A\x02\"\xDA\x01\x0A\x12UpdateEntryRequest\x123\x0A\x05entry\x18\x01 \x01(\x0B2\x1F.google.cloud.dataplex.v1.EntryB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12\x1A\x0A\x0Dallow_missing\x18\x03 \x01(\x08B\x03\xE0A\x01\x12#\x0A\x16delete_missing_aspects\x18\x04 \x01(\x08B\x03\xE0A\x01\x12\x18\x0A\x0Baspect_keys\x18\x05 \x03(\x09B\x03\xE0A\x01\"I\x0A\x12DeleteEntryRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddataplex.googleapis.com/Entry\"\x96\x01\x0A\x12ListEntriesRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataplex.googleapis.com/EntryGroup\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\"`\x0A\x13ListEntriesResponse\x120\x0A\x07entries\x18\x01 \x03(\x0B2\x1F.google.cloud.dataplex.v1.Entry\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xAD\x01\x0A\x0FGetEntryRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddataplex.googleapis.com/Entry\x126\x0A\x04view\x18\x02 \x01(\x0E2#.google.cloud.dataplex.v1.EntryViewB\x03\xE0A\x01\x12\x19\x0A\x0Caspect_types\x18\x03 \x03(\x09B\x03\xE0A\x01\x12\x12\x0A\x05paths\x18\x04 \x03(\x09B\x03\xE0A\x01\"\xC4\x01\x0A\x12LookupEntryRequest\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x126\x0A\x04view\x18\x02 \x01(\x0E2#.google.cloud.dataplex.v1.EntryViewB\x03\xE0A\x01\x12\x19\x0A\x0Caspect_types\x18\x03 \x03(\x09B\x03\xE0A\x01\x12\x12\x0A\x05paths\x18\x04 \x03(\x09B\x03\xE0A\x01\x124\x0A\x05entry\x18\x05 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddataplex.googleapis.com/Entry\"\xFC\x01\x0A\x14LookupContextRequest\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x128\x0A\x09resources\x18\x02 \x03(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddataplex.googleapis.com/Entry\x12\x14\x0A\x07context\x18\x03 \x01(\x09B\x03\xE0A\x01\x12Q\x0A\x07options\x18\x04 \x03(\x0B2;.google.cloud.dataplex.v1.LookupContextRequest.OptionsEntryB\x03\xE0A\x01\x1A.\x0A\x0COptionsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"\xD1\x01\x0A\x12ModifyEntryRequest\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x123\x0A\x05entry\x18\x02 \x01(\x0B2\x1F.google.cloud.dataplex.v1.EntryB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x03 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12#\x0A\x16delete_missing_aspects\x18\x04 \x01(\x08B\x03\xE0A\x01\x12\x18\x0A\x0Baspect_keys\x18\x05 \x03(\x09B\x03\xE0A\x01\"(\x0A\x15LookupContextResponse\x12\x0F\x0A\x07context\x18\x01 \x01(\x09\"\xDD\x01\x0A\x14SearchEntriesRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12\x12\x0A\x05query\x18\x02 \x01(\x09B\x03\xE0A\x02\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\x15\x0A\x08order_by\x18\x05 \x01(\x09B\x03\xE0A\x01\x12\x12\x0A\x05scope\x18\x07 \x01(\x09B\x03\xE0A\x01\x12\x1C\x0A\x0Fsemantic_search\x18\x0B \x01(\x08B\x03\xE0A\x01\"\x86\x02\x0A\x13SearchEntriesResult\x12\x1B\x0A\x0Flinked_resource\x18\x08 \x01(\x09B\x02\x18\x01\x127\x0A\x0Edataplex_entry\x18\x09 \x01(\x0B2\x1F.google.cloud.dataplex.v1.Entry\x12L\x0A\x08snippets\x18\x0C \x01(\x0B26.google.cloud.dataplex.v1.SearchEntriesResult.SnippetsB\x02\x18\x01\x1AK\x0A\x08Snippets\x12;\x0A\x0Edataplex_entry\x18\x01 \x01(\x0B2\x1F.google.cloud.dataplex.v1.EntryB\x02\x18\x01:\x02\x18\x01\"\x99\x01\x0A\x15SearchEntriesResponse\x12>\x0A\x07results\x18\x01 \x03(\x0B2-.google.cloud.dataplex.v1.SearchEntriesResult\x12\x12\x0A\x0Atotal_size\x18\x02 \x01(\x05\x12\x17\x0A\x0Fnext_page_token\x18\x03 \x01(\x09\x12\x13\x0A\x0Bunreachable\x18\x04 \x03(\x09\"\xBB\x01\x0A\x0AImportItem\x12.\x0A\x05entry\x18\x01 \x01(\x0B2\x1F.google.cloud.dataplex.v1.Entry\x127\x0A\x0Aentry_link\x18\x04 \x01(\x0B2#.google.cloud.dataplex.v1.EntryLink\x12/\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMask\x12\x13\x0A\x0Baspect_keys\x18\x03 \x03(\x09\"\xD1\x01\x0A\x18CreateMetadataJobRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12@\x0A\x0Cmetadata_job\x18\x02 \x01(\x0B2%.google.cloud.dataplex.v1.MetadataJobB\x03\xE0A\x02\x12\x1C\x0A\x0Fmetadata_job_id\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"R\x0A\x15GetMetadataJobRequest\x129\x0A\x04name\x18\x01 \x01(\x09B+\xE0A\x02\xFAA%\x0A#dataplex.googleapis.com/MetadataJob\"\xB1\x01\x0A\x17ListMetadataJobsRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\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\"\x90\x01\x0A\x18ListMetadataJobsResponse\x12<\x0A\x0Dmetadata_jobs\x18\x01 \x03(\x0B2%.google.cloud.dataplex.v1.MetadataJob\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x1D\x0A\x15unreachable_locations\x18\x03 \x03(\x09\"U\x0A\x18CancelMetadataJobRequest\x129\x0A\x04name\x18\x01 \x01(\x09B+\xE0A\x02\xFAA%\x0A#dataplex.googleapis.com/MetadataJob\"\xEE\x17\x0A\x0BMetadataJob\x12\x14\x0A\x04name\x18\x01 \x01(\x09B\x06\xE0A\x03\xE0A\x08\x12\x18\x0A\x03uid\x18\x02 \x01(\x09B\x0B\xE0A\x03\xE2\x8C\xCF\xD7\x08\x02\x08\x01\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12F\x0A\x06labels\x18\x05 \x03(\x0B21.google.cloud.dataplex.v1.MetadataJob.LabelsEntryB\x03\xE0A\x01\x12=\x0A\x04type\x18\x06 \x01(\x0E2*.google.cloud.dataplex.v1.MetadataJob.TypeB\x03\xE0A\x02\x12J\x0A\x0Bimport_spec\x18d \x01(\x0B23.google.cloud.dataplex.v1.MetadataJob.ImportJobSpecH\x00\x12J\x0A\x0Bexport_spec\x18e \x01(\x0B23.google.cloud.dataplex.v1.MetadataJob.ExportJobSpecH\x00\x12T\x0A\x0Dimport_result\x18\xC8\x01 \x01(\x0B25.google.cloud.dataplex.v1.MetadataJob.ImportJobResultB\x03\xE0A\x03H\x01\x12T\x0A\x0Dexport_result\x18\xC9\x01 \x01(\x0B25.google.cloud.dataplex.v1.MetadataJob.ExportJobResultB\x03\xE0A\x03H\x01\x12A\x0A\x06status\x18\x07 \x01(\x0B2,.google.cloud.dataplex.v1.MetadataJob.StatusB\x03\xE0A\x03\x1A\xC9\x02\x0A\x0FImportJobResult\x12\x1C\x0A\x0Fdeleted_entries\x18\x01 \x01(\x03B\x03\xE0A\x03\x12\x1C\x0A\x0Fupdated_entries\x18\x02 \x01(\x03B\x03\xE0A\x03\x12\x1C\x0A\x0Fcreated_entries\x18\x03 \x01(\x03B\x03\xE0A\x03\x12\x1E\x0A\x11unchanged_entries\x18\x04 \x01(\x03B\x03\xE0A\x03\x12\x1E\x0A\x11recreated_entries\x18\x06 \x01(\x03B\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12 \x0A\x13deleted_entry_links\x18\x07 \x01(\x03B\x03\xE0A\x03\x12 \x0A\x13created_entry_links\x18\x08 \x01(\x03B\x03\xE0A\x03\x12\"\x0A\x15unchanged_entry_links\x18\x09 \x01(\x03B\x03\xE0A\x03\x1AL\x0A\x0FExportJobResult\x12\x1D\x0A\x10exported_entries\x18\x01 \x01(\x03B\x03\xE0A\x03\x12\x1A\x0A\x0Derror_message\x18\x02 \x01(\x09B\x03\xE0A\x03\x1A\xB6\x07\x0A\x0DImportJobSpec\x12\x1F\x0A\x12source_storage_uri\x18\x01 \x01(\x09B\x03\xE0A\x01\x12;\x0A\x12source_create_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x01\x12V\x0A\x05scope\x18\x02 \x01(\x0B2B.google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.ImportJobScopeB\x03\xE0A\x02\x12Z\x0A\x0Fentry_sync_mode\x18\x03 \x01(\x0E2<.google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.SyncModeB\x03\xE0A\x02\x12[\x0A\x10aspect_sync_mode\x18\x04 \x01(\x0E2<.google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.SyncModeB\x03\xE0A\x02\x12T\x0A\x09log_level\x18\x06 \x01(\x0E2<.google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.LogLevelB\x03\xE0A\x01\x1A\xD7\x02\x0A\x0EImportJobScope\x12@\x0A\x0Centry_groups\x18\x01 \x03(\x09B*\xE0A\x02\xFAA\$\x0A\"dataplex.googleapis.com/EntryGroup\x12>\x0A\x0Bentry_types\x18\x02 \x03(\x09B)\xE0A\x02\xFAA#\x0A!dataplex.googleapis.com/EntryType\x12@\x0A\x0Caspect_types\x18\x03 \x03(\x09B*\xE0A\x01\xFAA\$\x0A\"dataplex.googleapis.com/AspectType\x12<\x0A\x0Aglossaries\x18\x04 \x03(\x09B(\xE0A\x01\xFAA\"\x0A dataplex.googleapis.com/Glossary\x12\x1D\x0A\x10entry_link_types\x18\x05 \x03(\x09B\x03\xE0A\x01\x12\$\x0A\x17referenced_entry_scopes\x18\x06 \x03(\x09B\x03\xE0A\x01\"J\x0A\x08SyncMode\x12\x19\x0A\x15SYNC_MODE_UNSPECIFIED\x10\x00\x12\x08\x0A\x04FULL\x10\x01\x12\x0F\x0A\x0BINCREMENTAL\x10\x02\x12\x08\x0A\x04NONE\x10\x03\":\x0A\x08LogLevel\x12\x19\x0A\x15LOG_LEVEL_UNSPECIFIED\x10\x00\x12\x09\x0A\x05DEBUG\x10\x01\x12\x08\x0A\x04INFO\x10\x02\x1A\xAF\x03\x0A\x0DExportJobSpec\x12V\x0A\x05scope\x18\x02 \x01(\x0B2B.google.cloud.dataplex.v1.MetadataJob.ExportJobSpec.ExportJobScopeB\x03\xE0A\x02\x12\x18\x0A\x0Boutput_path\x18\x03 \x01(\x09B\x03\xE0A\x02\x1A\xAB\x02\x0A\x0EExportJobScope\x12\x1A\x0A\x12organization_level\x18\x01 \x01(\x08\x12B\x0A\x08projects\x18\x02 \x03(\x09B0\xFAA-\x0A+cloudresourcemanager.googleapis.com/Project\x12=\x0A\x0Centry_groups\x18\x03 \x03(\x09B'\xFAA\$\x0A\"dataplex.googleapis.com/EntryGroup\x12;\x0A\x0Bentry_types\x18\x04 \x03(\x09B&\xFAA#\x0A!dataplex.googleapis.com/EntryType\x12=\x0A\x0Caspect_types\x18\x05 \x03(\x09B'\xFAA\$\x0A\"dataplex.googleapis.com/AspectType\x1A\xCA\x02\x0A\x06Status\x12F\x0A\x05state\x18\x01 \x01(\x0E22.google.cloud.dataplex.v1.MetadataJob.Status.StateB\x03\xE0A\x03\x12\x14\x0A\x07message\x18\x02 \x01(\x09B\x03\xE0A\x03\x12\x1F\x0A\x12completion_percent\x18\x03 \x01(\x05B\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\"\x8A\x01\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06QUEUED\x10\x01\x12\x0B\x0A\x07RUNNING\x10\x02\x12\x0D\x0A\x09CANCELING\x10\x03\x12\x0C\x0A\x08CANCELED\x10\x04\x12\x0D\x0A\x09SUCCEEDED\x10\x05\x12\x0A\x0A\x06FAILED\x10\x06\x12\x19\x0A\x15SUCCEEDED_WITH_ERRORS\x10\x07\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"4\x0A\x04Type\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06IMPORT\x10\x01\x12\x0A\x0A\x06EXPORT\x10\x02:l\xEAAi\x0A#dataplex.googleapis.com/MetadataJob\x12Bprojects/{project}/locations/{location}/metadataJobs/{metadataJob}B\x06\x0A\x04specB\x08\x0A\x06result\"\x9F\x06\x0A\x09EntryLink\x12=\x0A\x04name\x18\x01 \x01(\x09B/\xE0A\x03\xE0A\x05\xE0A\x08\xFAA#\x0A!dataplex.googleapis.com/EntryLink\x12\x1F\x0A\x0Fentry_link_type\x18\x02 \x01(\x09B\x06\xE0A\x02\xE0A\x05\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12F\x0A\x07aspects\x18\x06 \x03(\x0B20.google.cloud.dataplex.v1.EntryLink.AspectsEntryB\x03\xE0A\x01\x12T\x0A\x10entry_references\x18\x0A \x03(\x0B22.google.cloud.dataplex.v1.EntryLink.EntryReferenceB\x06\xE0A\x02\xE0A\x05\x1A\xB9\x01\x0A\x0EEntryReference\x12\x14\x0A\x04name\x18\x01 \x01(\x09B\x06\xE0A\x02\xE0A\x05\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x05\x12M\x0A\x04type\x18\x03 \x01(\x0E27.google.cloud.dataplex.v1.EntryLink.EntryReference.TypeB\x06\xE0A\x02\xE0A\x05\"/\x0A\x04Type\x12\x0F\x0A\x0BUNSPECIFIED\x10\x00\x12\x0A\x0A\x06SOURCE\x10\x02\x12\x0A\x0A\x06TARGET\x10\x03\x1AP\x0A\x0CAspectsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12/\x0A\x05value\x18\x02 \x01(\x0B2 .google.cloud.dataplex.v1.Aspect:\x028\x01:\x99\x01\xEAA\x95\x01\x0A!dataplex.googleapis.com/EntryLink\x12Yprojects/{project}/locations/{location}/entryGroups/{entry_group}/entryLinks/{entry_link}*\x0AentryLinks2\x09entryLink\"\xAE\x01\x0A\x16CreateEntryLinkRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataplex.googleapis.com/EntryGroup\x12\x1A\x0A\x0Dentry_link_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12<\x0A\x0Aentry_link\x18\x03 \x01(\x0B2#.google.cloud.dataplex.v1.EntryLinkB\x03\xE0A\x02\"\x8C\x01\x0A\x16UpdateEntryLinkRequest\x12<\x0A\x0Aentry_link\x18\x01 \x01(\x0B2#.google.cloud.dataplex.v1.EntryLinkB\x03\xE0A\x02\x12\x1A\x0A\x0Dallow_missing\x18\x03 \x01(\x08B\x03\xE0A\x01\x12\x18\x0A\x0Baspect_keys\x18\x05 \x03(\x09B\x03\xE0A\x01\"Q\x0A\x16DeleteEntryLinkRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataplex.googleapis.com/EntryLink\"\xB5\x02\x0A\x17LookupEntryLinksRequest\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x124\x0A\x05entry\x18\x02 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddataplex.googleapis.com/Entry\x12O\x0A\x0Aentry_mode\x18\x03 \x01(\x0E2;.google.cloud.dataplex.v1.LookupEntryLinksRequest.EntryMode\x12\x18\x0A\x10entry_link_types\x18\x04 \x03(\x09\x12\x11\x0A\x09page_size\x18\x05 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x06 \x01(\x09\"?\x0A\x09EntryMode\x12\x1A\x0A\x16ENTRY_MODE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06SOURCE\x10\x01\x12\x0A\x0A\x06TARGET\x10\x02\"m\x0A\x18LookupEntryLinksResponse\x128\x0A\x0Bentry_links\x18\x01 \x03(\x0B2#.google.cloud.dataplex.v1.EntryLink\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"N\x0A\x13GetEntryLinkRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataplex.googleapis.com/EntryLink\"\xC8\x08\x0A\x0CMetadataFeed\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x18\x0A\x03uid\x18\x02 \x01(\x09B\x0B\xE0A\x03\xE2\x8C\xCF\xD7\x08\x02\x08\x01\x12@\x0A\x05scope\x18\x03 \x01(\x0B2,.google.cloud.dataplex.v1.MetadataFeed.ScopeB\x03\xE0A\x02\x12D\x0A\x07filters\x18\x04 \x01(\x0B2..google.cloud.dataplex.v1.MetadataFeed.FiltersB\x03\xE0A\x01\x124\x0A\x0Bcreate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12G\x0A\x06labels\x18\x08 \x03(\x0B22.google.cloud.dataplex.v1.MetadataFeed.LabelsEntryB\x03\xE0A\x01\x12\x1B\x0A\x0Cpubsub_topic\x18d \x01(\x09B\x03\xE0A\x01H\x00\x1A\xB1\x01\x0A\x05Scope\x12\x1F\x0A\x12organization_level\x18\x01 \x01(\x08B\x03\xE0A\x01\x12E\x0A\x08projects\x18\x02 \x03(\x09B3\xE0A\x01\xFAA-\x0A+cloudresourcemanager.googleapis.com/Project\x12@\x0A\x0Centry_groups\x18\x03 \x03(\x09B*\xE0A\x01\xFAA\$\x0A\"dataplex.googleapis.com/EntryGroup\x1A\xB0\x02\x0A\x07Filters\x12>\x0A\x0Bentry_types\x18\x01 \x03(\x09B)\xE0A\x01\xFAA#\x0A!dataplex.googleapis.com/EntryType\x12@\x0A\x0Caspect_types\x18\x02 \x03(\x09B*\xE0A\x01\xFAA\$\x0A\"dataplex.googleapis.com/AspectType\x12T\x0A\x0Cchange_types\x18\x03 \x03(\x0E29.google.cloud.dataplex.v1.MetadataFeed.Filters.ChangeTypeB\x03\xE0A\x01\"M\x0A\x0AChangeType\x12\x1B\x0A\x17CHANGE_TYPE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06CREATE\x10\x01\x12\x0A\x0A\x06UPDATE\x10\x02\x12\x0A\x0A\x06DELETE\x10\x03\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:\x8E\x01\xEAA\x8A\x01\x0A\$dataplex.googleapis.com/MetadataFeed\x12Eprojects/{project}/locations/{location}/metadataFeeds/{metadata_feed}*\x0DmetadataFeeds2\x0CmetadataFeedB\x0A\x0A\x08endpoint\"\xD5\x01\x0A\x19CreateMetadataFeedRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12B\x0A\x0Dmetadata_feed\x18\x02 \x01(\x0B2&.google.cloud.dataplex.v1.MetadataFeedB\x03\xE0A\x02\x12\x1D\x0A\x10metadata_feed_id\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"T\x0A\x16GetMetadataFeedRequest\x12:\x0A\x04name\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$dataplex.googleapis.com/MetadataFeed\"\xB2\x01\x0A\x18ListMetadataFeedsRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\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\"\x8E\x01\x0A\x19ListMetadataFeedsResponse\x12>\x0A\x0Emetadata_feeds\x18\x01 \x03(\x0B2&.google.cloud.dataplex.v1.MetadataFeed\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x18\x0A\x0Bunreachable\x18\x03 \x03(\x09B\x03\xE0A\x06\"W\x0A\x19DeleteMetadataFeedRequest\x12:\x0A\x04name\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$dataplex.googleapis.com/MetadataFeed\"\xB1\x01\x0A\x19UpdateMetadataFeedRequest\x12B\x0A\x0Dmetadata_feed\x18\x01 \x01(\x0B2&.google.cloud.dataplex.v1.MetadataFeedB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01*Q\x0A\x09EntryView\x12\x1A\x0A\x16ENTRY_VIEW_UNSPECIFIED\x10\x00\x12\x09\x0A\x05BASIC\x10\x01\x12\x08\x0A\x04FULL\x10\x02\x12\x0A\x0A\x06CUSTOM\x10\x03\x12\x07\x0A\x03ALL\x10\x04*p\x0A\x0ETransferStatus\x12\x1F\x0A\x1BTRANSFER_STATUS_UNSPECIFIED\x10\x00\x12\x1C\x0A\x18TRANSFER_STATUS_MIGRATED\x10\x01\x12\x1F\x0A\x1BTRANSFER_STATUS_TRANSFERRED\x10\x022\xA8=\x0A\x0ECatalogService\x12\xEA\x01\x0A\x0FCreateEntryType\x120.google.cloud.dataplex.v1.CreateEntryTypeRequest\x1A\x1D.google.longrunning.Operation\"\x85\x01\xCAA\x1E\x0A\x09EntryType\x12\x11OperationMetadata\xDAA\x1Fparent,entry_type,entry_type_id\x82\xD3\xE4\x93\x02<\"./v1/{parent=projects/*/locations/*}/entryTypes:\x0Aentry_type\x12\xEC\x01\x0A\x0FUpdateEntryType\x120.google.cloud.dataplex.v1.UpdateEntryTypeRequest\x1A\x1D.google.longrunning.Operation\"\x87\x01\xCAA\x1E\x0A\x09EntryType\x12\x11OperationMetadata\xDAA\x16entry_type,update_mask\x82\xD3\xE4\x93\x02G29/v1/{entry_type.name=projects/*/locations/*/entryTypes/*}:\x0Aentry_type\x12\xCE\x01\x0A\x0FDeleteEntryType\x120.google.cloud.dataplex.v1.DeleteEntryTypeRequest\x1A\x1D.google.longrunning.Operation\"j\xCAA*\x0A\x15google.protobuf.Empty\x12\x11OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x020*./v1/{name=projects/*/locations/*/entryTypes/*}\x12\xB4\x01\x0A\x0EListEntryTypes\x12/.google.cloud.dataplex.v1.ListEntryTypesRequest\x1A0.google.cloud.dataplex.v1.ListEntryTypesResponse\"?\xDAA\x06parent\x82\xD3\xE4\x93\x020\x12./v1/{parent=projects/*/locations/*}/entryTypes\x12\xA1\x01\x0A\x0CGetEntryType\x12-.google.cloud.dataplex.v1.GetEntryTypeRequest\x1A#.google.cloud.dataplex.v1.EntryType\"=\xDAA\x04name\x82\xD3\xE4\x93\x020\x12./v1/{name=projects/*/locations/*/entryTypes/*}\x12\xF1\x01\x0A\x10CreateAspectType\x121.google.cloud.dataplex.v1.CreateAspectTypeRequest\x1A\x1D.google.longrunning.Operation\"\x8A\x01\xCAA\x1F\x0A\x0AAspectType\x12\x11OperationMetadata\xDAA!parent,aspect_type,aspect_type_id\x82\xD3\xE4\x93\x02>\"//v1/{parent=projects/*/locations/*}/aspectTypes:\x0Baspect_type\x12\xF3\x01\x0A\x10UpdateAspectType\x121.google.cloud.dataplex.v1.UpdateAspectTypeRequest\x1A\x1D.google.longrunning.Operation\"\x8C\x01\xCAA\x1F\x0A\x0AAspectType\x12\x11OperationMetadata\xDAA\x17aspect_type,update_mask\x82\xD3\xE4\x93\x02J2;/v1/{aspect_type.name=projects/*/locations/*/aspectTypes/*}:\x0Baspect_type\x12\xD1\x01\x0A\x10DeleteAspectType\x121.google.cloud.dataplex.v1.DeleteAspectTypeRequest\x1A\x1D.google.longrunning.Operation\"k\xCAA*\x0A\x15google.protobuf.Empty\x12\x11OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x021*//v1/{name=projects/*/locations/*/aspectTypes/*}\x12\xB8\x01\x0A\x0FListAspectTypes\x120.google.cloud.dataplex.v1.ListAspectTypesRequest\x1A1.google.cloud.dataplex.v1.ListAspectTypesResponse\"@\xDAA\x06parent\x82\xD3\xE4\x93\x021\x12//v1/{parent=projects/*/locations/*}/aspectTypes\x12\xA5\x01\x0A\x0DGetAspectType\x12..google.cloud.dataplex.v1.GetAspectTypeRequest\x1A\$.google.cloud.dataplex.v1.AspectType\">\xDAA\x04name\x82\xD3\xE4\x93\x021\x12//v1/{name=projects/*/locations/*/aspectTypes/*}\x12\xF1\x01\x0A\x10CreateEntryGroup\x121.google.cloud.dataplex.v1.CreateEntryGroupRequest\x1A\x1D.google.longrunning.Operation\"\x8A\x01\xCAA\x1F\x0A\x0AEntryGroup\x12\x11OperationMetadata\xDAA!parent,entry_group,entry_group_id\x82\xD3\xE4\x93\x02>\"//v1/{parent=projects/*/locations/*}/entryGroups:\x0Bentry_group\x12\xF3\x01\x0A\x10UpdateEntryGroup\x121.google.cloud.dataplex.v1.UpdateEntryGroupRequest\x1A\x1D.google.longrunning.Operation\"\x8C\x01\xCAA\x1F\x0A\x0AEntryGroup\x12\x11OperationMetadata\xDAA\x17entry_group,update_mask\x82\xD3\xE4\x93\x02J2;/v1/{entry_group.name=projects/*/locations/*/entryGroups/*}:\x0Bentry_group\x12\xD1\x01\x0A\x10DeleteEntryGroup\x121.google.cloud.dataplex.v1.DeleteEntryGroupRequest\x1A\x1D.google.longrunning.Operation\"k\xCAA*\x0A\x15google.protobuf.Empty\x12\x11OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x021*//v1/{name=projects/*/locations/*/entryGroups/*}\x12\xB8\x01\x0A\x0FListEntryGroups\x120.google.cloud.dataplex.v1.ListEntryGroupsRequest\x1A1.google.cloud.dataplex.v1.ListEntryGroupsResponse\"@\xDAA\x06parent\x82\xD3\xE4\x93\x021\x12//v1/{parent=projects/*/locations/*}/entryGroups\x12\xA5\x01\x0A\x0DGetEntryGroup\x12..google.cloud.dataplex.v1.GetEntryGroupRequest\x1A\$.google.cloud.dataplex.v1.EntryGroup\">\xDAA\x04name\x82\xD3\xE4\x93\x021\x12//v1/{name=projects/*/locations/*/entryGroups/*}\x12\xBE\x01\x0A\x0BCreateEntry\x12,.google.cloud.dataplex.v1.CreateEntryRequest\x1A\x1F.google.cloud.dataplex.v1.Entry\"`\xDAA\x15parent,entry,entry_id\x82\xD3\xE4\x93\x02B\"9/v1/{parent=projects/*/locations/*/entryGroups/*}/entries:\x05entry\x12\xC1\x01\x0A\x0BUpdateEntry\x12,.google.cloud.dataplex.v1.UpdateEntryRequest\x1A\x1F.google.cloud.dataplex.v1.Entry\"c\xDAA\x11entry,update_mask\x82\xD3\xE4\x93\x02I2@/v1/{entry.name=projects/*/locations/*/entryGroups/*/entries/**}:\x05entry\x12\xA7\x01\x0A\x0BDeleteEntry\x12,.google.cloud.dataplex.v1.DeleteEntryRequest\x1A\x1F.google.cloud.dataplex.v1.Entry\"I\xDAA\x04name\x82\xD3\xE4\x93\x02<*:/v1/{name=projects/*/locations/*/entryGroups/*/entries/**}\x12\xB6\x01\x0A\x0BListEntries\x12,.google.cloud.dataplex.v1.ListEntriesRequest\x1A-.google.cloud.dataplex.v1.ListEntriesResponse\"J\xDAA\x06parent\x82\xD3\xE4\x93\x02;\x129/v1/{parent=projects/*/locations/*/entryGroups/*}/entries\x12\xA1\x01\x0A\x08GetEntry\x12).google.cloud.dataplex.v1.GetEntryRequest\x1A\x1F.google.cloud.dataplex.v1.Entry\"I\xDAA\x04name\x82\xD3\xE4\x93\x02<\x12:/v1/{name=projects/*/locations/*/entryGroups/*/entries/**}\x12\x93\x01\x0A\x0BLookupEntry\x12,.google.cloud.dataplex.v1.LookupEntryRequest\x1A\x1F.google.cloud.dataplex.v1.Entry\"5\x82\xD3\xE4\x93\x02/\x12-/v1/{name=projects/*/locations/*}:lookupEntry\x12\x96\x01\x0A\x0BModifyEntry\x12,.google.cloud.dataplex.v1.ModifyEntryRequest\x1A\x1F.google.cloud.dataplex.v1.Entry\"8\x82\xD3\xE4\x93\x022\"-/v1/{name=projects/*/locations/*}:modifyEntry:\x01*\x12\xB6\x01\x0A\x0DSearchEntries\x12..google.cloud.dataplex.v1.SearchEntriesRequest\x1A/.google.cloud.dataplex.v1.SearchEntriesResponse\"D\xDAA\x0Aname,query\x82\xD3\xE4\x93\x021\"//v1/{name=projects/*/locations/*}:searchEntries\x12\xF8\x01\x0A\x11CreateMetadataJob\x122.google.cloud.dataplex.v1.CreateMetadataJobRequest\x1A\x1D.google.longrunning.Operation\"\x8F\x01\xCAA \x0A\x0BMetadataJob\x12\x11OperationMetadata\xDAA#parent,metadata_job,metadata_job_id\x82\xD3\xE4\x93\x02@\"0/v1/{parent=projects/*/locations/*}/metadataJobs:\x0Cmetadata_job\x12\xA9\x01\x0A\x0EGetMetadataJob\x12/.google.cloud.dataplex.v1.GetMetadataJobRequest\x1A%.google.cloud.dataplex.v1.MetadataJob\"?\xDAA\x04name\x82\xD3\xE4\x93\x022\x120/v1/{name=projects/*/locations/*/metadataJobs/*}\x12\xBC\x01\x0A\x10ListMetadataJobs\x121.google.cloud.dataplex.v1.ListMetadataJobsRequest\x1A2.google.cloud.dataplex.v1.ListMetadataJobsResponse\"A\xDAA\x06parent\x82\xD3\xE4\x93\x022\x120/v1/{parent=projects/*/locations/*}/metadataJobs\x12\xAA\x01\x0A\x11CancelMetadataJob\x122.google.cloud.dataplex.v1.CancelMetadataJobRequest\x1A\x16.google.protobuf.Empty\"I\xDAA\x04name\x82\xD3\xE4\x93\x02<\"7/v1/{name=projects/*/locations/*/metadataJobs/*}:cancel:\x01*\x12\xDC\x01\x0A\x0FCreateEntryLink\x120.google.cloud.dataplex.v1.CreateEntryLinkRequest\x1A#.google.cloud.dataplex.v1.EntryLink\"r\xDAA\x1Fparent,entry_link,entry_link_id\x82\xD3\xE4\x93\x02J\"*\x12internalAddGeneratedFile( - "\x0A\xEA\x1D\x0A#google/cloud/dataplex/v1/cmek.proto\x12\x18google.cloud.dataplex.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A&google/cloud/dataplex/v1/service.proto\x1A#google/longrunning/operations.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xFA\x06\x0A\x10EncryptionConfig\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x08\xFAA*\x0A(dataplex.googleapis.com/EncryptionConfig\x12\x10\x0A\x03key\x18\x02 \x01(\x09B\x03\xE0A\x01\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12Y\x0A\x10encryption_state\x18\x05 \x01(\x0E2:.google.cloud.dataplex.v1.EncryptionConfig.EncryptionStateB\x03\xE0A\x03\x12\x0C\x0A\x04etag\x18\x06 \x01(\x09\x12W\x0A\x0Ffailure_details\x18\x07 \x01(\x0B29.google.cloud.dataplex.v1.EncryptionConfig.FailureDetailsB\x03\xE0A\x03\x12(\x0A\x1Benable_metastore_encryption\x18\x08 \x01(\x08B\x03\xE0A\x01\x1A\xD1\x01\x0A\x0EFailureDetails\x12\\\x0A\x0Aerror_code\x18\x01 \x01(\x0E2C.google.cloud.dataplex.v1.EncryptionConfig.FailureDetails.ErrorCodeB\x03\xE0A\x03\x12\x1A\x0A\x0Derror_message\x18\x02 \x01(\x09B\x03\xE0A\x03\"E\x0A\x09ErrorCode\x12\x0B\x0A\x07UNKNOWN\x10\x00\x12\x12\x0A\x0EINTERNAL_ERROR\x10\x01\x12\x17\x0A\x13REQUIRE_USER_ACTION\x10\x02\"^\x0A\x0FEncryptionState\x12 \x0A\x1CENCRYPTION_STATE_UNSPECIFIED\x10\x00\x12\x0E\x0A\x0AENCRYPTING\x10\x01\x12\x0D\x0A\x09COMPLETED\x10\x02\x12\x0A\x0A\x06FAILED\x10\x03:\x87\x01\xEAA\x83\x01\x0A(dataplex.googleapis.com/EncryptionConfig\x12Worganizations/{organization}/locations/{location}/encryptionConfigs/{encryption_config}\"\xD4\x01\x0A\x1DCreateEncryptionConfigRequest\x12D\x0A\x06parent\x18\x01 \x01(\x09B4\xE0A\x02\xFAA.\x0A,dataplex.googleapis.com/OrganizationLocation\x12!\x0A\x14encryption_config_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12J\x0A\x11encryption_config\x18\x03 \x01(\x0B2*.google.cloud.dataplex.v1.EncryptionConfigB\x03\xE0A\x02\"\\\x0A\x1AGetEncryptionConfigRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(dataplex.googleapis.com/EncryptionConfig\"\xA1\x01\x0A\x1DUpdateEncryptionConfigRequest\x12J\x0A\x11encryption_config\x18\x01 \x01(\x0B2*.google.cloud.dataplex.v1.EncryptionConfigB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\"r\x0A\x1DDeleteEncryptionConfigRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(dataplex.googleapis.com/EncryptionConfig\x12\x11\x0A\x04etag\x18\x02 \x01(\x09B\x03\xE0A\x01\"\xBD\x01\x0A\x1CListEncryptionConfigsRequest\x12@\x0A\x06parent\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x12(dataplex.googleapis.com/EncryptionConfig\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\"\xC7\x01\x0A\x1DListEncryptionConfigsResponse\x12F\x0A\x12encryption_configs\x18\x01 \x03(\x0B2*.google.cloud.dataplex.v1.EncryptionConfig\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12E\x0A\x15unreachable_locations\x18\x03 \x03(\x09B&\xFAA#\x0A!locations.googleapis.com/Location2\xAA\x0A\x0A\x0BCmekService\x12\xA0\x02\x0A\x16CreateEncryptionConfig\x127.google.cloud.dataplex.v1.CreateEncryptionConfigRequest\x1A\x1D.google.longrunning.Operation\"\xAD\x01\xCAA%\x0A\x10EncryptionConfig\x12\x11OperationMetadata\xDAA-parent,encryption_config,encryption_config_id\x82\xD3\xE4\x93\x02O\":/v1/{parent=organizations/*/locations/*}/encryptionConfigs:\x11encryption_config\x12\xA2\x02\x0A\x16UpdateEncryptionConfig\x127.google.cloud.dataplex.v1.UpdateEncryptionConfigRequest\x1A\x1D.google.longrunning.Operation\"\xAF\x01\xCAA%\x0A\x10EncryptionConfig\x12\x11OperationMetadata\xDAA\x1Dencryption_config,update_mask\x82\xD3\xE4\x93\x02a2L/v1/{encryption_config.name=organizations/*/locations/*/encryptionConfigs/*}:\x11encryption_config\x12\xE8\x01\x0A\x16DeleteEncryptionConfig\x127.google.cloud.dataplex.v1.DeleteEncryptionConfigRequest\x1A\x1D.google.longrunning.Operation\"v\xCAA*\x0A\x15google.protobuf.Empty\x12\x11OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x02<*:/v1/{name=organizations/*/locations/*/encryptionConfigs/*}\x12\xD5\x01\x0A\x15ListEncryptionConfigs\x126.google.cloud.dataplex.v1.ListEncryptionConfigsRequest\x1A7.google.cloud.dataplex.v1.ListEncryptionConfigsResponse\"K\xDAA\x06parent\x82\xD3\xE4\x93\x02<\x12:/v1/{parent=organizations/*/locations/*}/encryptionConfigs\x12\xC2\x01\x0A\x13GetEncryptionConfig\x124.google.cloud.dataplex.v1.GetEncryptionConfigRequest\x1A*.google.cloud.dataplex.v1.EncryptionConfig\"I\xDAA\x04name\x82\xD3\xE4\x93\x02<\x12:/v1/{name=organizations/*/locations/*/encryptionConfigs/*}\x1AK\xCAA\x17dataplex.googleapis.com\xD2A.https://www.googleapis.com/auth/cloud-platformB\x9D\x02\x0A\x1Ccom.google.cloud.dataplex.v1B\x09CmekProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpb\xAA\x02\x18Google.Cloud.Dataplex.V1\xCA\x02\x18Google\\Cloud\\Dataplex\\V1\xEA\x02\x1BGoogle::Cloud::Dataplex::V1\xEAAa\x0A,dataplex.googleapis.com/OrganizationLocation\x121organizations/{organization}/locations/{location}b\x06proto3" + "\x0A\x9E\x1E\x0A#google/cloud/dataplex/v1/cmek.proto\x12\x18google.cloud.dataplex.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A&google/cloud/dataplex/v1/service.proto\x1A#google/longrunning/operations.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xFA\x06\x0A\x10EncryptionConfig\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x08\xFAA*\x0A(dataplex.googleapis.com/EncryptionConfig\x12\x10\x0A\x03key\x18\x02 \x01(\x09B\x03\xE0A\x01\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12Y\x0A\x10encryption_state\x18\x05 \x01(\x0E2:.google.cloud.dataplex.v1.EncryptionConfig.EncryptionStateB\x03\xE0A\x03\x12\x0C\x0A\x04etag\x18\x06 \x01(\x09\x12W\x0A\x0Ffailure_details\x18\x07 \x01(\x0B29.google.cloud.dataplex.v1.EncryptionConfig.FailureDetailsB\x03\xE0A\x03\x12(\x0A\x1Benable_metastore_encryption\x18\x08 \x01(\x08B\x03\xE0A\x01\x1A\xD1\x01\x0A\x0EFailureDetails\x12\\\x0A\x0Aerror_code\x18\x01 \x01(\x0E2C.google.cloud.dataplex.v1.EncryptionConfig.FailureDetails.ErrorCodeB\x03\xE0A\x03\x12\x1A\x0A\x0Derror_message\x18\x02 \x01(\x09B\x03\xE0A\x03\"E\x0A\x09ErrorCode\x12\x0B\x0A\x07UNKNOWN\x10\x00\x12\x12\x0A\x0EINTERNAL_ERROR\x10\x01\x12\x17\x0A\x13REQUIRE_USER_ACTION\x10\x02\"^\x0A\x0FEncryptionState\x12 \x0A\x1CENCRYPTION_STATE_UNSPECIFIED\x10\x00\x12\x0E\x0A\x0AENCRYPTING\x10\x01\x12\x0D\x0A\x09COMPLETED\x10\x02\x12\x0A\x0A\x06FAILED\x10\x03:\x87\x01\xEAA\x83\x01\x0A(dataplex.googleapis.com/EncryptionConfig\x12Worganizations/{organization}/locations/{location}/encryptionConfigs/{encryption_config}\"\xD4\x01\x0A\x1DCreateEncryptionConfigRequest\x12D\x0A\x06parent\x18\x01 \x01(\x09B4\xE0A\x02\xFAA.\x0A,dataplex.googleapis.com/OrganizationLocation\x12!\x0A\x14encryption_config_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12J\x0A\x11encryption_config\x18\x03 \x01(\x0B2*.google.cloud.dataplex.v1.EncryptionConfigB\x03\xE0A\x02\"\\\x0A\x1AGetEncryptionConfigRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(dataplex.googleapis.com/EncryptionConfig\"\xA1\x01\x0A\x1DUpdateEncryptionConfigRequest\x12J\x0A\x11encryption_config\x18\x01 \x01(\x0B2*.google.cloud.dataplex.v1.EncryptionConfigB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\"r\x0A\x1DDeleteEncryptionConfigRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(dataplex.googleapis.com/EncryptionConfig\x12\x11\x0A\x04etag\x18\x02 \x01(\x09B\x03\xE0A\x01\"\xBD\x01\x0A\x1CListEncryptionConfigsRequest\x12@\x0A\x06parent\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x12(dataplex.googleapis.com/EncryptionConfig\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\"\xC7\x01\x0A\x1DListEncryptionConfigsResponse\x12F\x0A\x12encryption_configs\x18\x01 \x03(\x0B2*.google.cloud.dataplex.v1.EncryptionConfig\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12E\x0A\x15unreachable_locations\x18\x03 \x03(\x09B&\xFAA#\x0A!locations.googleapis.com/Location2\xDE\x0A\x0A\x0BCmekService\x12\xA0\x02\x0A\x16CreateEncryptionConfig\x127.google.cloud.dataplex.v1.CreateEncryptionConfigRequest\x1A\x1D.google.longrunning.Operation\"\xAD\x01\xCAA%\x0A\x10EncryptionConfig\x12\x11OperationMetadata\xDAA-parent,encryption_config,encryption_config_id\x82\xD3\xE4\x93\x02O\":/v1/{parent=organizations/*/locations/*}/encryptionConfigs:\x11encryption_config\x12\xA2\x02\x0A\x16UpdateEncryptionConfig\x127.google.cloud.dataplex.v1.UpdateEncryptionConfigRequest\x1A\x1D.google.longrunning.Operation\"\xAF\x01\xCAA%\x0A\x10EncryptionConfig\x12\x11OperationMetadata\xDAA\x1Dencryption_config,update_mask\x82\xD3\xE4\x93\x02a2L/v1/{encryption_config.name=organizations/*/locations/*/encryptionConfigs/*}:\x11encryption_config\x12\xE8\x01\x0A\x16DeleteEncryptionConfig\x127.google.cloud.dataplex.v1.DeleteEncryptionConfigRequest\x1A\x1D.google.longrunning.Operation\"v\xCAA*\x0A\x15google.protobuf.Empty\x12\x11OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x02<*:/v1/{name=organizations/*/locations/*/encryptionConfigs/*}\x12\xD5\x01\x0A\x15ListEncryptionConfigs\x126.google.cloud.dataplex.v1.ListEncryptionConfigsRequest\x1A7.google.cloud.dataplex.v1.ListEncryptionConfigsResponse\"K\xDAA\x06parent\x82\xD3\xE4\x93\x02<\x12:/v1/{parent=organizations/*/locations/*}/encryptionConfigs\x12\xC2\x01\x0A\x13GetEncryptionConfig\x124.google.cloud.dataplex.v1.GetEncryptionConfigRequest\x1A*.google.cloud.dataplex.v1.EncryptionConfig\"I\xDAA\x04name\x82\xD3\xE4\x93\x02<\x12:/v1/{name=organizations/*/locations/*/encryptionConfigs/*}\x1A\x7F\xCAA\x17dataplex.googleapis.com\xD2Abhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dataplex.read-writeB\x9D\x02\x0A\x1Ccom.google.cloud.dataplex.v1B\x09CmekProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpb\xAA\x02\x18Google.Cloud.Dataplex.V1\xCA\x02\x18Google\\Cloud\\Dataplex\\V1\xEA\x02\x1BGoogle::Cloud::Dataplex::V1\xEAAa\x0A,dataplex.googleapis.com/OrganizationLocation\x121organizations/{organization}/locations/{location}b\x06proto3" , true); static::$is_initialized = true; diff --git a/Dataplex/metadata/V1/DataDiscovery.php b/Dataplex/metadata/V1/DataDiscovery.php index 8fc55fa4a120..130e48189d1f 100644 --- a/Dataplex/metadata/V1/DataDiscovery.php +++ b/Dataplex/metadata/V1/DataDiscovery.php @@ -17,7 +17,7 @@ public static function initOnce() { \GPBMetadata\Google\Api\FieldBehavior::initOnce(); \GPBMetadata\Google\Api\Resource::initOnce(); $pool->internalAddGeneratedFile( - "\x0A\xA3\x10\x0A-google/cloud/dataplex/v1/data_discovery.proto\x12\x18google.cloud.dataplex.v1\x1A\x19google/api/resource.proto\"\xCB\x08\x0A\x11DataDiscoverySpec\x12m\x0A\x1Abigquery_publishing_config\x18\x01 \x01(\x0B2D.google.cloud.dataplex.v1.DataDiscoverySpec.BigQueryPublishingConfigB\x03\xE0A\x01\x12S\x0A\x0Estorage_config\x18d \x01(\x0B29.google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfigH\x00\x1A\xEE\x02\x0A\x18BigQueryPublishingConfig\x12g\x0A\x0Atable_type\x18\x02 \x01(\x0E2N.google.cloud.dataplex.v1.DataDiscoverySpec.BigQueryPublishingConfig.TableTypeB\x03\xE0A\x01\x12H\x0A\x0Aconnection\x18\x03 \x01(\x09B4\xE0A\x01\xFAA.\x0A,bigqueryconnection.googleapis.com/Connection\x12\x15\x0A\x08location\x18\x04 \x01(\x09B\x03\xE0A\x01\x12D\x0A\x07project\x18\x05 \x01(\x09B3\xE0A\x01\xFAA-\x0A+cloudresourcemanager.googleapis.com/Project\"B\x0A\x09TableType\x12\x1A\x0A\x16TABLE_TYPE_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08EXTERNAL\x10\x01\x12\x0B\x0A\x07BIGLAKE\x10\x02\x1A\xED\x03\x0A\x0DStorageConfig\x12\x1D\x0A\x10include_patterns\x18\x01 \x03(\x09B\x03\xE0A\x01\x12\x1D\x0A\x10exclude_patterns\x18\x02 \x03(\x09B\x03\xE0A\x01\x12^\x0A\x0Bcsv_options\x18\x03 \x01(\x0B2D.google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.CsvOptionsB\x03\xE0A\x01\x12`\x0A\x0Cjson_options\x18\x04 \x01(\x0B2E.google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.JsonOptionsB\x03\xE0A\x01\x1A\x8F\x01\x0A\x0ACsvOptions\x12\x18\x0A\x0Bheader_rows\x18\x01 \x01(\x05B\x03\xE0A\x01\x12\x16\x0A\x09delimiter\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08encoding\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\$\x0A\x17type_inference_disabled\x18\x04 \x01(\x08B\x03\xE0A\x01\x12\x12\x0A\x05quote\x18\x05 \x01(\x09B\x03\xE0A\x01\x1AJ\x0A\x0BJsonOptions\x12\x15\x0A\x08encoding\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\$\x0A\x17type_inference_disabled\x18\x02 \x01(\x08B\x03\xE0A\x01B\x11\x0A\x0Fresource_config\"\xB7\x04\x0A\x13DataDiscoveryResult\x12b\x0A\x13bigquery_publishing\x18\x01 \x01(\x0B2@.google.cloud.dataplex.v1.DataDiscoveryResult.BigQueryPublishingB\x03\xE0A\x03\x12Z\x0A\x0Fscan_statistics\x18\x02 \x01(\x0B2<.google.cloud.dataplex.v1.DataDiscoveryResult.ScanStatisticsB\x03\xE0A\x03\x1Ae\x0A\x12BigQueryPublishing\x128\x0A\x07dataset\x18\x01 \x01(\x09B'\xE0A\x03\xFAA!\x0A\x1Fbigquery.googleapis.com/Dataset\x12\x15\x0A\x08location\x18\x02 \x01(\x09B\x03\xE0A\x03\x1A\xF8\x01\x0A\x0EScanStatistics\x12\x1A\x0A\x12scanned_file_count\x18\x01 \x01(\x05\x12\x1C\x0A\x14data_processed_bytes\x18\x02 \x01(\x03\x12\x16\x0A\x0Efiles_excluded\x18\x03 \x01(\x05\x12\x16\x0A\x0Etables_created\x18\x04 \x01(\x05\x12\x16\x0A\x0Etables_deleted\x18\x05 \x01(\x05\x12\x16\x0A\x0Etables_updated\x18\x06 \x01(\x05\x12\x18\x0A\x10filesets_created\x18\x07 \x01(\x05\x12\x18\x0A\x10filesets_deleted\x18\x08 \x01(\x05\x12\x18\x0A\x10filesets_updated\x18\x09 \x01(\x05B\xAC\x02\x0A\x1Ccom.google.cloud.dataplex.v1B\x12DataDiscoveryProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpb\xEAAH\x0A\x1Fbigquery.googleapis.com/Dataset\x12%projects/{project}/datasets/{dataset}\xEAAp\x0A,bigqueryconnection.googleapis.com/Connection\x12@projects/{project}/locations/{location}/connections/{connection}b\x06proto3" + "\x0A\xE2\x11\x0A-google/cloud/dataplex/v1/data_discovery.proto\x12\x18google.cloud.dataplex.v1\x1A\x19google/api/resource.proto\"\x8A\x0A\x0A\x11DataDiscoverySpec\x12m\x0A\x1Abigquery_publishing_config\x18\x01 \x01(\x0B2D.google.cloud.dataplex.v1.DataDiscoverySpec.BigQueryPublishingConfigB\x03\xE0A\x01\x12S\x0A\x0Estorage_config\x18d \x01(\x0B29.google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfigH\x00\x1A\xEE\x02\x0A\x18BigQueryPublishingConfig\x12g\x0A\x0Atable_type\x18\x02 \x01(\x0E2N.google.cloud.dataplex.v1.DataDiscoverySpec.BigQueryPublishingConfig.TableTypeB\x03\xE0A\x01\x12H\x0A\x0Aconnection\x18\x03 \x01(\x09B4\xE0A\x01\xFAA.\x0A,bigqueryconnection.googleapis.com/Connection\x12\x15\x0A\x08location\x18\x04 \x01(\x09B\x03\xE0A\x01\x12D\x0A\x07project\x18\x05 \x01(\x09B3\xE0A\x01\xFAA-\x0A+cloudresourcemanager.googleapis.com/Project\"B\x0A\x09TableType\x12\x1A\x0A\x16TABLE_TYPE_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08EXTERNAL\x10\x01\x12\x0B\x0A\x07BIGLAKE\x10\x02\x1A\xAC\x05\x0A\x0DStorageConfig\x12\x1D\x0A\x10include_patterns\x18\x01 \x03(\x09B\x03\xE0A\x01\x12\x1D\x0A\x10exclude_patterns\x18\x02 \x03(\x09B\x03\xE0A\x01\x12^\x0A\x0Bcsv_options\x18\x03 \x01(\x0B2D.google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.CsvOptionsB\x03\xE0A\x01\x12`\x0A\x0Cjson_options\x18\x04 \x01(\x0B2E.google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.JsonOptionsB\x03\xE0A\x01\x12y\x0A\x19unstructured_data_options\x18\x05 \x01(\x0B2Q.google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.UnstructuredDataOptionsB\x03\xE0A\x01\x1A\x8F\x01\x0A\x0ACsvOptions\x12\x18\x0A\x0Bheader_rows\x18\x01 \x01(\x05B\x03\xE0A\x01\x12\x16\x0A\x09delimiter\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08encoding\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\$\x0A\x17type_inference_disabled\x18\x04 \x01(\x08B\x03\xE0A\x01\x12\x12\x0A\x05quote\x18\x05 \x01(\x09B\x03\xE0A\x01\x1AJ\x0A\x0BJsonOptions\x12\x15\x0A\x08encoding\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\$\x0A\x17type_inference_disabled\x18\x02 \x01(\x08B\x03\xE0A\x01\x1AB\x0A\x17UnstructuredDataOptions\x12'\x0A\x1Asemantic_inference_enabled\x18\x02 \x01(\x08B\x03\xE0A\x01B\x11\x0A\x0Fresource_config\"\xB7\x04\x0A\x13DataDiscoveryResult\x12b\x0A\x13bigquery_publishing\x18\x01 \x01(\x0B2@.google.cloud.dataplex.v1.DataDiscoveryResult.BigQueryPublishingB\x03\xE0A\x03\x12Z\x0A\x0Fscan_statistics\x18\x02 \x01(\x0B2<.google.cloud.dataplex.v1.DataDiscoveryResult.ScanStatisticsB\x03\xE0A\x03\x1Ae\x0A\x12BigQueryPublishing\x128\x0A\x07dataset\x18\x01 \x01(\x09B'\xE0A\x03\xFAA!\x0A\x1Fbigquery.googleapis.com/Dataset\x12\x15\x0A\x08location\x18\x02 \x01(\x09B\x03\xE0A\x03\x1A\xF8\x01\x0A\x0EScanStatistics\x12\x1A\x0A\x12scanned_file_count\x18\x01 \x01(\x05\x12\x1C\x0A\x14data_processed_bytes\x18\x02 \x01(\x03\x12\x16\x0A\x0Efiles_excluded\x18\x03 \x01(\x05\x12\x16\x0A\x0Etables_created\x18\x04 \x01(\x05\x12\x16\x0A\x0Etables_deleted\x18\x05 \x01(\x05\x12\x16\x0A\x0Etables_updated\x18\x06 \x01(\x05\x12\x18\x0A\x10filesets_created\x18\x07 \x01(\x05\x12\x18\x0A\x10filesets_deleted\x18\x08 \x01(\x05\x12\x18\x0A\x10filesets_updated\x18\x09 \x01(\x05B\xAC\x02\x0A\x1Ccom.google.cloud.dataplex.v1B\x12DataDiscoveryProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpb\xEAAH\x0A\x1Fbigquery.googleapis.com/Dataset\x12%projects/{project}/datasets/{dataset}\xEAAp\x0A,bigqueryconnection.googleapis.com/Connection\x12@projects/{project}/locations/{location}/connections/{connection}b\x06proto3" , true); static::$is_initialized = true; diff --git a/Dataplex/metadata/V1/DataDocumentation.php b/Dataplex/metadata/V1/DataDocumentation.php index 4db1a091bb45..826eb9bc6041 100644 --- a/Dataplex/metadata/V1/DataDocumentation.php +++ b/Dataplex/metadata/V1/DataDocumentation.php @@ -15,8 +15,9 @@ public static function initOnce() { return; } \GPBMetadata\Google\Api\FieldBehavior::initOnce(); + \GPBMetadata\Google\Api\Resource::initOnce(); $pool->internalAddGeneratedFile( - "\x0A\x8A\x10\x0A1google/cloud/dataplex/v1/data_documentation.proto\x12\x18google.cloud.dataplex.v1\"\x93\x02\x0A\x15DataDocumentationSpec\x12'\x0A\x1Acatalog_publishing_enabled\x18\x02 \x01(\x08B\x03\xE0A\x01\x12_\x0A\x11generation_scopes\x18\x03 \x03(\x0E2?.google.cloud.dataplex.v1.DataDocumentationSpec.GenerationScopeB\x03\xE0A\x01\"p\x0A\x0FGenerationScope\x12 \x0A\x1CGENERATION_SCOPE_UNSPECIFIED\x10\x00\x12\x07\x0A\x03ALL\x10\x01\x12!\x0A\x1DTABLE_AND_COLUMN_DESCRIPTIONS\x10\x02\x12\x0F\x0A\x0BSQL_QUERIES\x10\x03\"\xA8\x0C\x0A\x17DataDocumentationResult\x12^\x0A\x0Edataset_result\x18\x07 \x01(\x0B2?.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResultB\x03\xE0A\x03H\x00\x12Z\x0A\x0Ctable_result\x18\x08 \x01(\x0B2=.google.cloud.dataplex.v1.DataDocumentationResult.TableResultB\x03\xE0A\x03H\x00\x1A\xDE\x01\x0A\x0DDatasetResult\x12\x15\x0A\x08overview\x18\x01 \x01(\x09B\x03\xE0A\x03\x12g\x0A\x14schema_relationships\x18\x03 \x03(\x0B2D.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationshipB\x03\xE0A\x03\x12M\x0A\x07queries\x18\x04 \x03(\x0B27.google.cloud.dataplex.v1.DataDocumentationResult.QueryB\x03\xE0A\x03\x1A\xD5\x01\x0A\x0BTableResult\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x15\x0A\x08overview\x18\x02 \x01(\x09B\x03\xE0A\x03\x12M\x0A\x06schema\x18\x03 \x01(\x0B28.google.cloud.dataplex.v1.DataDocumentationResult.SchemaB\x03\xE0A\x03\x12M\x0A\x07queries\x18\x04 \x03(\x0B27.google.cloud.dataplex.v1.DataDocumentationResult.QueryB\x03\xE0A\x03\x1A\xFB\x04\x0A\x12SchemaRelationship\x12p\x0A\x11left_schema_paths\x18\x01 \x01(\x0B2P.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPathsB\x03\xE0A\x03\x12q\x0A\x12right_schema_paths\x18\x02 \x01(\x0B2P.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPathsB\x03\xE0A\x03\x12a\x0A\x07sources\x18\x04 \x03(\x0E2K.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SourceB\x03\xE0A\x03\x12\\\x0A\x04type\x18\x06 \x01(\x0E2I.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.TypeB\x03\xE0A\x03\x1A9\x0A\x0BSchemaPaths\x12\x16\x0A\x09table_fqn\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x12\x0A\x05paths\x18\x02 \x03(\x09B\x03\xE0A\x03\"U\x0A\x06Source\x12\x16\x0A\x12SOURCE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05AGENT\x10\x04\x12\x11\x0A\x0DQUERY_HISTORY\x10\x05\x12\x15\x0A\x11TABLE_CONSTRAINTS\x10\x06\"-\x0A\x04Type\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BSCHEMA_JOIN\x10\x01\x1A3\x0A\x05Query\x12\x10\x0A\x03sql\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x02 \x01(\x09B\x03\xE0A\x03\x1AV\x0A\x06Schema\x12L\x0A\x06fields\x18\x01 \x03(\x0B27.google.cloud.dataplex.v1.DataDocumentationResult.FieldB\x03\xE0A\x03\x1A\x82\x01\x0A\x05Field\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x02 \x01(\x09B\x03\xE0A\x03\x12L\x0A\x06fields\x18\x03 \x03(\x0B27.google.cloud.dataplex.v1.DataDocumentationResult.FieldB\x03\xE0A\x03B\x08\x0A\x06resultBr\x0A\x1Ccom.google.cloud.dataplex.v1B\x16DataDocumentationProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\x06proto3" + "\x0A\xA5\x10\x0A1google/cloud/dataplex/v1/data_documentation.proto\x12\x18google.cloud.dataplex.v1\x1A\x19google/api/resource.proto\"\x93\x02\x0A\x15DataDocumentationSpec\x12'\x0A\x1Acatalog_publishing_enabled\x18\x02 \x01(\x08B\x03\xE0A\x01\x12_\x0A\x11generation_scopes\x18\x03 \x03(\x0E2?.google.cloud.dataplex.v1.DataDocumentationSpec.GenerationScopeB\x03\xE0A\x01\"p\x0A\x0FGenerationScope\x12 \x0A\x1CGENERATION_SCOPE_UNSPECIFIED\x10\x00\x12\x07\x0A\x03ALL\x10\x01\x12!\x0A\x1DTABLE_AND_COLUMN_DESCRIPTIONS\x10\x02\x12\x0F\x0A\x0BSQL_QUERIES\x10\x03\"\xA8\x0C\x0A\x17DataDocumentationResult\x12^\x0A\x0Edataset_result\x18\x07 \x01(\x0B2?.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResultB\x03\xE0A\x03H\x00\x12Z\x0A\x0Ctable_result\x18\x08 \x01(\x0B2=.google.cloud.dataplex.v1.DataDocumentationResult.TableResultB\x03\xE0A\x03H\x00\x1A\xDE\x01\x0A\x0DDatasetResult\x12\x15\x0A\x08overview\x18\x01 \x01(\x09B\x03\xE0A\x03\x12g\x0A\x14schema_relationships\x18\x03 \x03(\x0B2D.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationshipB\x03\xE0A\x03\x12M\x0A\x07queries\x18\x04 \x03(\x0B27.google.cloud.dataplex.v1.DataDocumentationResult.QueryB\x03\xE0A\x03\x1A\xD5\x01\x0A\x0BTableResult\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x15\x0A\x08overview\x18\x02 \x01(\x09B\x03\xE0A\x03\x12M\x0A\x06schema\x18\x03 \x01(\x0B28.google.cloud.dataplex.v1.DataDocumentationResult.SchemaB\x03\xE0A\x03\x12M\x0A\x07queries\x18\x04 \x03(\x0B27.google.cloud.dataplex.v1.DataDocumentationResult.QueryB\x03\xE0A\x03\x1A\xFB\x04\x0A\x12SchemaRelationship\x12p\x0A\x11left_schema_paths\x18\x01 \x01(\x0B2P.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPathsB\x03\xE0A\x03\x12q\x0A\x12right_schema_paths\x18\x02 \x01(\x0B2P.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPathsB\x03\xE0A\x03\x12a\x0A\x07sources\x18\x04 \x03(\x0E2K.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SourceB\x03\xE0A\x03\x12\\\x0A\x04type\x18\x06 \x01(\x0E2I.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.TypeB\x03\xE0A\x03\x1A9\x0A\x0BSchemaPaths\x12\x16\x0A\x09table_fqn\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x12\x0A\x05paths\x18\x02 \x03(\x09B\x03\xE0A\x03\"U\x0A\x06Source\x12\x16\x0A\x12SOURCE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05AGENT\x10\x04\x12\x11\x0A\x0DQUERY_HISTORY\x10\x05\x12\x15\x0A\x11TABLE_CONSTRAINTS\x10\x06\"-\x0A\x04Type\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BSCHEMA_JOIN\x10\x01\x1A3\x0A\x05Query\x12\x10\x0A\x03sql\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x02 \x01(\x09B\x03\xE0A\x03\x1AV\x0A\x06Schema\x12L\x0A\x06fields\x18\x01 \x03(\x0B27.google.cloud.dataplex.v1.DataDocumentationResult.FieldB\x03\xE0A\x03\x1A\x82\x01\x0A\x05Field\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x02 \x01(\x09B\x03\xE0A\x03\x12L\x0A\x06fields\x18\x03 \x03(\x0B27.google.cloud.dataplex.v1.DataDocumentationResult.FieldB\x03\xE0A\x03B\x08\x0A\x06resultBr\x0A\x1Ccom.google.cloud.dataplex.v1B\x16DataDocumentationProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\x06proto3" , true); static::$is_initialized = true; diff --git a/Dataplex/metadata/V1/DataProducts.php b/Dataplex/metadata/V1/DataProducts.php index 529a21f42042..2d38053965d6 100644 --- a/Dataplex/metadata/V1/DataProducts.php +++ b/Dataplex/metadata/V1/DataProducts.php @@ -19,13 +19,14 @@ public static function initOnce() { \GPBMetadata\Google\Api\FieldBehavior::initOnce(); \GPBMetadata\Google\Api\FieldInfo::initOnce(); \GPBMetadata\Google\Api\Resource::initOnce(); + \GPBMetadata\Google\Cloud\Dataplex\V1\ApprovalWorkflow::initOnce(); \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); \GPBMetadata\Google\Longrunning\Operations::initOnce(); \GPBMetadata\Google\Protobuf\GPBEmpty::initOnce(); \GPBMetadata\Google\Protobuf\FieldMask::initOnce(); \GPBMetadata\Google\Protobuf\Timestamp::initOnce(); $pool->internalAddGeneratedFile( - "\x0A\x8E1\x0A,google/cloud/dataplex/v1/data_products.proto\x12\x18google.cloud.dataplex.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x1Bgoogle/api/field_info.proto\x1A\x19google/api/resource.proto\x1A&google/cloud/dataplex/v1/service.proto\x1A#google/longrunning/operations.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xC7\x07\x0A\x0BDataProduct\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x18\x0A\x03uid\x18\x02 \x01(\x09B\x0B\xE0A\x03\xE2\x8C\xCF\xD7\x08\x02\x08\x01\x12\x19\x0A\x0Cdisplay_name\x18\x03 \x01(\x09B\x03\xE0A\x02\x124\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x11\x0A\x04etag\x18\x06 \x01(\x09B\x03\xE0A\x01\x12F\x0A\x06labels\x18\x07 \x03(\x0B21.google.cloud.dataplex.v1.DataProduct.LabelsEntryB\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x08 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04icon\x18\x0A \x01(\x0CB\x03\xE0A\x01\x12\x19\x0A\x0Cowner_emails\x18\x0B \x03(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Basset_count\x18\x0D \x01(\x05B\x03\xE0A\x03\x12S\x0A\x0Daccess_groups\x18\x0E \x03(\x0B27.google.cloud.dataplex.v1.DataProduct.AccessGroupsEntryB\x03\xE0A\x01\x1A0\x0A\x09Principal\x12\x1B\x0A\x0Cgoogle_group\x18\x01 \x01(\x09B\x03\xE0A\x01H\x00B\x06\x0A\x04type\x1A\x9C\x01\x0A\x0BAccessGroup\x12\x0F\x0A\x02id\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Bdescription\x18\x03 \x01(\x09B\x03\xE0A\x01\x12G\x0A\x09principal\x18\x04 \x01(\x0B2/.google.cloud.dataplex.v1.DataProduct.PrincipalB\x03\xE0A\x02\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1Af\x0A\x11AccessGroupsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12@\x0A\x05value\x18\x02 \x01(\x0B21.google.cloud.dataplex.v1.DataProduct.AccessGroup:\x028\x01:\x89\x01\xEAA\x85\x01\x0A#dataplex.googleapis.com/DataProduct\x12Cprojects/{project}/locations/{location}/dataProducts/{data_product}*\x0CdataProducts2\x0BdataProduct\"\xE3\x05\x0A\x09DataAsset\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x18\x0A\x03uid\x18\x02 \x01(\x09B\x0B\xE0A\x03\xE2\x8C\xCF\xD7\x08\x02\x08\x01\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x11\x0A\x04etag\x18\x05 \x01(\x09B\x03\xE0A\x01\x12D\x0A\x06labels\x18\x06 \x03(\x0B2/.google.cloud.dataplex.v1.DataAsset.LabelsEntryB\x03\xE0A\x01\x12\x18\x0A\x08resource\x18\x07 \x01(\x09B\x06\xE0A\x05\xE0A\x02\x12^\x0A\x14access_group_configs\x18\x09 \x03(\x0B2;.google.cloud.dataplex.v1.DataAsset.AccessGroupConfigsEntryB\x03\xE0A\x01\x1A+\x0A\x11AccessGroupConfig\x12\x16\x0A\x09iam_roles\x18\x01 \x03(\x09B\x03\xE0A\x01\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1Ap\x0A\x17AccessGroupConfigsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12D\x0A\x05value\x18\x02 \x01(\x0B25.google.cloud.dataplex.v1.DataAsset.AccessGroupConfig:\x028\x01:\x9B\x01\xEAA\x97\x01\x0A!dataplex.googleapis.com/DataAsset\x12[projects/{project}/locations/{location}/dataProducts/{data_product}/dataAssets/{data_asset}*\x0AdataAssets2\x09dataAsset\"\xD1\x01\x0A\x18CreateDataProductRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12\x1C\x0A\x0Fdata_product_id\x18\x02 \x01(\x09B\x03\xE0A\x01\x12@\x0A\x0Cdata_product\x18\x03 \x01(\x0B2%.google.cloud.dataplex.v1.DataProductB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"\x84\x01\x0A\x18DeleteDataProductRequest\x129\x0A\x04name\x18\x01 \x01(\x09B+\xE0A\x02\xFAA%\x0A#dataplex.googleapis.com/DataProduct\x12\x11\x0A\x04etag\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"R\x0A\x15GetDataProductRequest\x129\x0A\x04name\x18\x01 \x01(\x09B+\xE0A\x02\xFAA%\x0A#dataplex.googleapis.com/DataProduct\"\xB1\x01\x0A\x17ListDataProductsRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12\x13\x0A\x06filter\x18\x02 \x01(\x09B\x03\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\x15\x0A\x08order_by\x18\x05 \x01(\x09B\x03\xE0A\x01\"\x8B\x01\x0A\x18ListDataProductsResponse\x12<\x0A\x0Ddata_products\x18\x01 \x03(\x0B2%.google.cloud.dataplex.v1.DataProduct\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x18\x0A\x0Bunreachable\x18\x03 \x03(\x09B\x03\xE0A\x06\"\xAE\x01\x0A\x18UpdateDataProductRequest\x12@\x0A\x0Cdata_product\x18\x01 \x01(\x0B2%.google.cloud.dataplex.v1.DataProductB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"\xCB\x01\x0A\x16CreateDataAssetRequest\x12;\x0A\x06parent\x18\x01 \x01(\x09B+\xE0A\x02\xFAA%\x0A#dataplex.googleapis.com/DataProduct\x12\x1A\x0A\x0Ddata_asset_id\x18\x02 \x01(\x09B\x03\xE0A\x01\x12<\x0A\x0Adata_asset\x18\x03 \x01(\x0B2#.google.cloud.dataplex.v1.DataAssetB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"\xA8\x01\x0A\x16UpdateDataAssetRequest\x12<\x0A\x0Adata_asset\x18\x01 \x01(\x0B2#.google.cloud.dataplex.v1.DataAssetB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"\x80\x01\x0A\x16DeleteDataAssetRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataplex.googleapis.com/DataAsset\x12\x11\x0A\x04etag\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"N\x0A\x13GetDataAssetRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataplex.googleapis.com/DataAsset\"\xB1\x01\x0A\x15ListDataAssetsRequest\x12;\x0A\x06parent\x18\x01 \x01(\x09B+\xE0A\x02\xFAA%\x0A#dataplex.googleapis.com/DataProduct\x12\x13\x0A\x06filter\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09page_size\x18\x04 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x05 \x01(\x09B\x03\xE0A\x01\"k\x0A\x16ListDataAssetsResponse\x128\x0A\x0Bdata_assets\x18\x01 \x03(\x0B2#.google.cloud.dataplex.v1.DataAsset\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x092\xEE\x11\x0A\x12DataProductService\x12\xF8\x01\x0A\x11CreateDataProduct\x122.google.cloud.dataplex.v1.CreateDataProductRequest\x1A\x1D.google.longrunning.Operation\"\x8F\x01\xCAA \x0A\x0BDataProduct\x12\x11OperationMetadata\xDAA#parent,data_product,data_product_id\x82\xD3\xE4\x93\x02@\"0/v1/{parent=projects/*/locations/*}/dataProducts:\x0Cdata_product\x12\xD4\x01\x0A\x11DeleteDataProduct\x122.google.cloud.dataplex.v1.DeleteDataProductRequest\x1A\x1D.google.longrunning.Operation\"l\xCAA*\x0A\x15google.protobuf.Empty\x12\x11OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x022*0/v1/{name=projects/*/locations/*/dataProducts/*}\x12\xA9\x01\x0A\x0EGetDataProduct\x12/.google.cloud.dataplex.v1.GetDataProductRequest\x1A%.google.cloud.dataplex.v1.DataProduct\"?\xDAA\x04name\x82\xD3\xE4\x93\x022\x120/v1/{name=projects/*/locations/*/dataProducts/*}\x12\xBC\x01\x0A\x10ListDataProducts\x121.google.cloud.dataplex.v1.ListDataProductsRequest\x1A2.google.cloud.dataplex.v1.ListDataProductsResponse\"A\xDAA\x06parent\x82\xD3\xE4\x93\x022\x120/v1/{parent=projects/*/locations/*}/dataProducts\x12\xFA\x01\x0A\x11UpdateDataProduct\x122.google.cloud.dataplex.v1.UpdateDataProductRequest\x1A\x1D.google.longrunning.Operation\"\x91\x01\xCAA \x0A\x0BDataProduct\x12\x11OperationMetadata\xDAA\x18data_product,update_mask\x82\xD3\xE4\x93\x02M2=/v1/{data_product.name=projects/*/locations/*/dataProducts/*}:\x0Cdata_product\x12\xF9\x01\x0A\x0FCreateDataAsset\x120.google.cloud.dataplex.v1.CreateDataAssetRequest\x1A\x1D.google.longrunning.Operation\"\x94\x01\xCAA\x1E\x0A\x09DataAsset\x12\x11OperationMetadata\xDAA\x1Fparent,data_asset,data_asset_id\x82\xD3\xE4\x93\x02K\"=/v1/{parent=projects/*/locations/*/dataProducts/*}/dataAssets:\x0Adata_asset\x12\xFB\x01\x0A\x0FUpdateDataAsset\x120.google.cloud.dataplex.v1.UpdateDataAssetRequest\x1A\x1D.google.longrunning.Operation\"\x96\x01\xCAA\x1E\x0A\x09DataAsset\x12\x11OperationMetadata\xDAA\x16data_asset,update_mask\x82\xD3\xE4\x93\x02V2H/v1/{data_asset.name=projects/*/locations/*/dataProducts/*/dataAssets/*}:\x0Adata_asset\x12\xDD\x01\x0A\x0FDeleteDataAsset\x120.google.cloud.dataplex.v1.DeleteDataAssetRequest\x1A\x1D.google.longrunning.Operation\"y\xCAA*\x0A\x15google.protobuf.Empty\x12\x11OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x02?*=/v1/{name=projects/*/locations/*/dataProducts/*/dataAssets/*}\x12\xB0\x01\x0A\x0CGetDataAsset\x12-.google.cloud.dataplex.v1.GetDataAssetRequest\x1A#.google.cloud.dataplex.v1.DataAsset\"L\xDAA\x04name\x82\xD3\xE4\x93\x02?\x12=/v1/{name=projects/*/locations/*/dataProducts/*/dataAssets/*}\x12\xC3\x01\x0A\x0EListDataAssets\x12/.google.cloud.dataplex.v1.ListDataAssetsRequest\x1A0.google.cloud.dataplex.v1.ListDataAssetsResponse\"N\xDAA\x06parent\x82\xD3\xE4\x93\x02?\x12=/v1/{parent=projects/*/locations/*/dataProducts/*}/dataAssets\x1AK\xCAA\x17dataplex.googleapis.com\xD2A.https://www.googleapis.com/auth/cloud-platformBm\x0A\x1Ccom.google.cloud.dataplex.v1B\x11DataProductsProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\x06proto3" + "\x0A\xF88\x0A,google/cloud/dataplex/v1/data_products.proto\x12\x18google.cloud.dataplex.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x1Bgoogle/api/field_info.proto\x1A\x19google/api/resource.proto\x1A0google/cloud/dataplex/v1/approval_workflow.proto\x1A&google/cloud/dataplex/v1/service.proto\x1A#google/longrunning/operations.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xB5\x09\x0A\x0BDataProduct\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x18\x0A\x03uid\x18\x02 \x01(\x09B\x0B\xE0A\x03\xE2\x8C\xCF\xD7\x08\x02\x08\x01\x12\x19\x0A\x0Cdisplay_name\x18\x03 \x01(\x09B\x03\xE0A\x02\x124\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x11\x0A\x04etag\x18\x06 \x01(\x09B\x03\xE0A\x01\x12F\x0A\x06labels\x18\x07 \x03(\x0B21.google.cloud.dataplex.v1.DataProduct.LabelsEntryB\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x08 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04icon\x18\x0A \x01(\x0CB\x03\xE0A\x01\x12\x19\x0A\x0Cowner_emails\x18\x0B \x03(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Basset_count\x18\x0D \x01(\x05B\x03\xE0A\x03\x12S\x0A\x0Daccess_groups\x18\x0E \x03(\x0B27.google.cloud.dataplex.v1.DataProduct.AccessGroupsEntryB\x03\xE0A\x01\x12d\x0A\x16access_approval_config\x18\x0F \x01(\x0B2:.google.cloud.dataplex.v1.DataProduct.AccessApprovalConfigB\x03\xE0A\x01H\x00\x88\x01\x01\x1Ag\x0A\x09Principal\x12\x1B\x0A\x0Cgoogle_group\x18\x01 \x01(\x09B\x03\xE0A\x01H\x00\x12!\x0A\x0Fservice_account\x18\x02 \x01(\x09B\x03\xE0A\x01H\x01\x88\x01\x01B\x06\x0A\x04typeB\x12\x0A\x10_service_account\x1A\x9C\x01\x0A\x0BAccessGroup\x12\x0F\x0A\x02id\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Bdescription\x18\x03 \x01(\x09B\x03\xE0A\x01\x12G\x0A\x09principal\x18\x04 \x01(\x0B2/.google.cloud.dataplex.v1.DataProduct.PrincipalB\x03\xE0A\x02\x1A4\x0A\x14AccessApprovalConfig\x12\x1C\x0A\x0Fapprover_emails\x18\x02 \x03(\x09B\x03\xE0A\x01\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1Af\x0A\x11AccessGroupsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12@\x0A\x05value\x18\x02 \x01(\x0B21.google.cloud.dataplex.v1.DataProduct.AccessGroup:\x028\x01:\x89\x01\xEAA\x85\x01\x0A#dataplex.googleapis.com/DataProduct\x12Cprojects/{project}/locations/{location}/dataProducts/{data_product}*\x0CdataProducts2\x0BdataProductB\x19\x0A\x17_access_approval_config\"\xE3\x05\x0A\x09DataAsset\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x18\x0A\x03uid\x18\x02 \x01(\x09B\x0B\xE0A\x03\xE2\x8C\xCF\xD7\x08\x02\x08\x01\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x11\x0A\x04etag\x18\x05 \x01(\x09B\x03\xE0A\x01\x12D\x0A\x06labels\x18\x06 \x03(\x0B2/.google.cloud.dataplex.v1.DataAsset.LabelsEntryB\x03\xE0A\x01\x12\x18\x0A\x08resource\x18\x07 \x01(\x09B\x06\xE0A\x05\xE0A\x02\x12^\x0A\x14access_group_configs\x18\x09 \x03(\x0B2;.google.cloud.dataplex.v1.DataAsset.AccessGroupConfigsEntryB\x03\xE0A\x01\x1A+\x0A\x11AccessGroupConfig\x12\x16\x0A\x09iam_roles\x18\x01 \x03(\x09B\x03\xE0A\x01\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1Ap\x0A\x17AccessGroupConfigsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12D\x0A\x05value\x18\x02 \x01(\x0B25.google.cloud.dataplex.v1.DataAsset.AccessGroupConfig:\x028\x01:\x9B\x01\xEAA\x97\x01\x0A!dataplex.googleapis.com/DataAsset\x12[projects/{project}/locations/{location}/dataProducts/{data_product}/dataAssets/{data_asset}*\x0AdataAssets2\x09dataAsset\"\xD1\x01\x0A\x18CreateDataProductRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12\x1C\x0A\x0Fdata_product_id\x18\x02 \x01(\x09B\x03\xE0A\x01\x12@\x0A\x0Cdata_product\x18\x03 \x01(\x0B2%.google.cloud.dataplex.v1.DataProductB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"\x84\x01\x0A\x18DeleteDataProductRequest\x129\x0A\x04name\x18\x01 \x01(\x09B+\xE0A\x02\xFAA%\x0A#dataplex.googleapis.com/DataProduct\x12\x11\x0A\x04etag\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"R\x0A\x15GetDataProductRequest\x129\x0A\x04name\x18\x01 \x01(\x09B+\xE0A\x02\xFAA%\x0A#dataplex.googleapis.com/DataProduct\"\xB1\x01\x0A\x17ListDataProductsRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12\x13\x0A\x06filter\x18\x02 \x01(\x09B\x03\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\x15\x0A\x08order_by\x18\x05 \x01(\x09B\x03\xE0A\x01\"\x8B\x01\x0A\x18ListDataProductsResponse\x12<\x0A\x0Ddata_products\x18\x01 \x03(\x0B2%.google.cloud.dataplex.v1.DataProduct\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x18\x0A\x0Bunreachable\x18\x03 \x03(\x09B\x03\xE0A\x06\"\xAE\x01\x0A\x18UpdateDataProductRequest\x12@\x0A\x0Cdata_product\x18\x01 \x01(\x0B2%.google.cloud.dataplex.v1.DataProductB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"\xC0\x01\x0A\x1FRequestDataProductAccessRequest\x12;\x0A\x06parent\x18\x01 \x01(\x09B+\xE0A\x02\xFAA%\x0A#dataplex.googleapis.com/DataProduct\x12D\x0A\x0Echange_request\x18\x02 \x01(\x0B2'.google.cloud.dataplex.v1.ChangeRequestB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"k\x0A RequestDataProductAccessResponse\x12G\x0A\x13change_request_name\x18\x01 \x01(\x09B*\xFAA'\x0A%dataplex.googleapis.com/ChangeRequest\"\xCB\x01\x0A\x16CreateDataAssetRequest\x12;\x0A\x06parent\x18\x01 \x01(\x09B+\xE0A\x02\xFAA%\x0A#dataplex.googleapis.com/DataProduct\x12\x1A\x0A\x0Ddata_asset_id\x18\x02 \x01(\x09B\x03\xE0A\x01\x12<\x0A\x0Adata_asset\x18\x03 \x01(\x0B2#.google.cloud.dataplex.v1.DataAssetB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"\xA8\x01\x0A\x16UpdateDataAssetRequest\x12<\x0A\x0Adata_asset\x18\x01 \x01(\x0B2#.google.cloud.dataplex.v1.DataAssetB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"\x80\x01\x0A\x16DeleteDataAssetRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataplex.googleapis.com/DataAsset\x12\x11\x0A\x04etag\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"N\x0A\x13GetDataAssetRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataplex.googleapis.com/DataAsset\"\xB1\x01\x0A\x15ListDataAssetsRequest\x12;\x0A\x06parent\x18\x01 \x01(\x09B+\xE0A\x02\xFAA%\x0A#dataplex.googleapis.com/DataProduct\x12\x13\x0A\x06filter\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09page_size\x18\x04 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x05 \x01(\x09B\x03\xE0A\x01\"k\x0A\x16ListDataAssetsResponse\x128\x0A\x0Bdata_assets\x18\x01 \x03(\x0B2#.google.cloud.dataplex.v1.DataAsset\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x092\x88\x15\x0A\x12DataProductService\x12\xF8\x01\x0A\x11CreateDataProduct\x122.google.cloud.dataplex.v1.CreateDataProductRequest\x1A\x1D.google.longrunning.Operation\"\x8F\x01\xCAA \x0A\x0BDataProduct\x12\x11OperationMetadata\xDAA#parent,data_product,data_product_id\x82\xD3\xE4\x93\x02@\"0/v1/{parent=projects/*/locations/*}/dataProducts:\x0Cdata_product\x12\xD4\x01\x0A\x11DeleteDataProduct\x122.google.cloud.dataplex.v1.DeleteDataProductRequest\x1A\x1D.google.longrunning.Operation\"l\xCAA*\x0A\x15google.protobuf.Empty\x12\x11OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x022*0/v1/{name=projects/*/locations/*/dataProducts/*}\x12\xA9\x01\x0A\x0EGetDataProduct\x12/.google.cloud.dataplex.v1.GetDataProductRequest\x1A%.google.cloud.dataplex.v1.DataProduct\"?\xDAA\x04name\x82\xD3\xE4\x93\x022\x120/v1/{name=projects/*/locations/*/dataProducts/*}\x12\xBC\x01\x0A\x10ListDataProducts\x121.google.cloud.dataplex.v1.ListDataProductsRequest\x1A2.google.cloud.dataplex.v1.ListDataProductsResponse\"A\xDAA\x06parent\x82\xD3\xE4\x93\x022\x120/v1/{parent=projects/*/locations/*}/dataProducts\x12\xFA\x01\x0A\x11UpdateDataProduct\x122.google.cloud.dataplex.v1.UpdateDataProductRequest\x1A\x1D.google.longrunning.Operation\"\x91\x01\xCAA \x0A\x0BDataProduct\x12\x11OperationMetadata\xDAA\x18data_product,update_mask\x82\xD3\xE4\x93\x02M2=/v1/{data_product.name=projects/*/locations/*/dataProducts/*}:\x0Cdata_product\x12\xF6\x01\x0A\x18RequestDataProductAccess\x129.google.cloud.dataplex.v1.RequestDataProductAccessRequest\x1A:.google.cloud.dataplex.v1.RequestDataProductAccessResponse\"c\xDAA\x15parent,change_request\x82\xD3\xE4\x93\x02E\"@/v1/{parent=projects/*/locations/*/dataProducts/*}:requestAccess:\x01*\x12\xF9\x01\x0A\x0FCreateDataAsset\x120.google.cloud.dataplex.v1.CreateDataAssetRequest\x1A\x1D.google.longrunning.Operation\"\x94\x01\xCAA\x1E\x0A\x09DataAsset\x12\x11OperationMetadata\xDAA\x1Fparent,data_asset,data_asset_id\x82\xD3\xE4\x93\x02K\"=/v1/{parent=projects/*/locations/*/dataProducts/*}/dataAssets:\x0Adata_asset\x12\xFB\x01\x0A\x0FUpdateDataAsset\x120.google.cloud.dataplex.v1.UpdateDataAssetRequest\x1A\x1D.google.longrunning.Operation\"\x96\x01\xCAA\x1E\x0A\x09DataAsset\x12\x11OperationMetadata\xDAA\x16data_asset,update_mask\x82\xD3\xE4\x93\x02V2H/v1/{data_asset.name=projects/*/locations/*/dataProducts/*/dataAssets/*}:\x0Adata_asset\x12\xDD\x01\x0A\x0FDeleteDataAsset\x120.google.cloud.dataplex.v1.DeleteDataAssetRequest\x1A\x1D.google.longrunning.Operation\"y\xCAA*\x0A\x15google.protobuf.Empty\x12\x11OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x02?*=/v1/{name=projects/*/locations/*/dataProducts/*/dataAssets/*}\x12\xB0\x01\x0A\x0CGetDataAsset\x12-.google.cloud.dataplex.v1.GetDataAssetRequest\x1A#.google.cloud.dataplex.v1.DataAsset\"L\xDAA\x04name\x82\xD3\xE4\x93\x02?\x12=/v1/{name=projects/*/locations/*/dataProducts/*/dataAssets/*}\x12\xC3\x01\x0A\x0EListDataAssets\x12/.google.cloud.dataplex.v1.ListDataAssetsRequest\x1A0.google.cloud.dataplex.v1.ListDataAssetsResponse\"N\xDAA\x06parent\x82\xD3\xE4\x93\x02?\x12=/v1/{parent=projects/*/locations/*/dataProducts/*}/dataAssets\x1A\xEB\x01\xCAA\x17dataplex.googleapis.com\xD2A\xCD\x01https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.read-only,https://www.googleapis.com/auth/dataplex.read-write,https://www.googleapis.com/auth/dataplex.readonlyBm\x0A\x1Ccom.google.cloud.dataplex.v1B\x11DataProductsProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\x06proto3" , true); static::$is_initialized = true; diff --git a/Dataplex/metadata/V1/DataProfile.php b/Dataplex/metadata/V1/DataProfile.php index 50ee1c828ebe..94a3f94d3c62 100644 --- a/Dataplex/metadata/V1/DataProfile.php +++ b/Dataplex/metadata/V1/DataProfile.php @@ -18,7 +18,7 @@ public static function initOnce() { \GPBMetadata\Google\Cloud\Dataplex\V1\DatascansCommon::initOnce(); \GPBMetadata\Google\Cloud\Dataplex\V1\Processing::initOnce(); $pool->internalAddGeneratedFile( - "\x0A\xC0\x16\x0A+google/cloud/dataplex/v1/data_profile.proto\x12\x18google.cloud.dataplex.v1\x1A/google/cloud/dataplex/v1/datascans_common.proto\x1A)google/cloud/dataplex/v1/processing.proto\"\xD1\x04\x0A\x0FDataProfileSpec\x12\x1D\x0A\x10sampling_percent\x18\x02 \x01(\x02B\x03\xE0A\x01\x12\x17\x0A\x0Arow_filter\x18\x03 \x01(\x09B\x03\xE0A\x01\x12Y\x0A\x11post_scan_actions\x18\x04 \x01(\x0B29.google.cloud.dataplex.v1.DataProfileSpec.PostScanActionsB\x03\xE0A\x01\x12U\x0A\x0Einclude_fields\x18\x05 \x01(\x0B28.google.cloud.dataplex.v1.DataProfileSpec.SelectedFieldsB\x03\xE0A\x01\x12U\x0A\x0Eexclude_fields\x18\x06 \x01(\x0B28.google.cloud.dataplex.v1.DataProfileSpec.SelectedFieldsB\x03\xE0A\x01\x12'\x0A\x1Acatalog_publishing_enabled\x18\x08 \x01(\x08B\x03\xE0A\x01\x1A\xA7\x01\x0A\x0FPostScanActions\x12f\x0A\x0Fbigquery_export\x18\x01 \x01(\x0B2H.google.cloud.dataplex.v1.DataProfileSpec.PostScanActions.BigQueryExportB\x03\xE0A\x01\x1A,\x0A\x0EBigQueryExport\x12\x1A\x0A\x0Dresults_table\x18\x01 \x01(\x09B\x03\xE0A\x01\x1A*\x0A\x0ESelectedFields\x12\x18\x0A\x0Bfield_names\x18\x01 \x03(\x09B\x03\xE0A\x01\"\xD0\x0F\x0A\x11DataProfileResult\x12\x16\x0A\x09row_count\x18\x03 \x01(\x03B\x03\xE0A\x03\x12I\x0A\x07profile\x18\x04 \x01(\x0B23.google.cloud.dataplex.v1.DataProfileResult.ProfileB\x03\xE0A\x03\x12@\x0A\x0Cscanned_data\x18\x05 \x01(\x0B2%.google.cloud.dataplex.v1.ScannedDataB\x03\xE0A\x03\x12h\x0A\x18post_scan_actions_result\x18\x06 \x01(\x0B2A.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResultB\x03\xE0A\x03\x12a\x0A\x19catalog_publishing_status\x18\x07 \x01(\x0B29.google.cloud.dataplex.v1.DataScanCatalogPublishingStatusB\x03\xE0A\x03\x1A\xC8\x09\x0A\x07Profile\x12N\x0A\x06fields\x18\x02 \x03(\x0B29.google.cloud.dataplex.v1.DataProfileResult.Profile.FieldB\x03\xE0A\x03\x1A\xEC\x08\x0A\x05Field\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x11\x0A\x04type\x18\x02 \x01(\x09B\x03\xE0A\x03\x12\x11\x0A\x04mode\x18\x03 \x01(\x09B\x03\xE0A\x03\x12[\x0A\x07profile\x18\x04 \x01(\x0B2E.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfoB\x03\xE0A\x03\x1A\xCC\x07\x0A\x0BProfileInfo\x12\x17\x0A\x0Anull_ratio\x18\x02 \x01(\x01B\x03\xE0A\x03\x12\x1B\x0A\x0Edistinct_ratio\x18\x03 \x01(\x01B\x03\xE0A\x03\x12j\x0A\x0Ctop_n_values\x18\x04 \x03(\x0B2O.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValueB\x03\xE0A\x03\x12o\x0A\x0Estring_profile\x18e \x01(\x0B2U.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfoH\x00\x12q\x0A\x0Finteger_profile\x18f \x01(\x0B2V.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfoH\x00\x12o\x0A\x0Edouble_profile\x18g \x01(\x0B2U.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfoH\x00\x1A`\x0A\x0FStringFieldInfo\x12\x17\x0A\x0Amin_length\x18\x01 \x01(\x03B\x03\xE0A\x03\x12\x17\x0A\x0Amax_length\x18\x02 \x01(\x03B\x03\xE0A\x03\x12\x1B\x0A\x0Eaverage_length\x18\x03 \x01(\x01B\x03\xE0A\x03\x1A\x85\x01\x0A\x10IntegerFieldInfo\x12\x14\x0A\x07average\x18\x01 \x01(\x01B\x03\xE0A\x03\x12\x1F\x0A\x12standard_deviation\x18\x03 \x01(\x01B\x03\xE0A\x03\x12\x10\x0A\x03min\x18\x04 \x01(\x03B\x03\xE0A\x03\x12\x16\x0A\x09quartiles\x18\x06 \x03(\x03B\x03\xE0A\x03\x12\x10\x0A\x03max\x18\x05 \x01(\x03B\x03\xE0A\x03\x1A\x84\x01\x0A\x0FDoubleFieldInfo\x12\x14\x0A\x07average\x18\x01 \x01(\x01B\x03\xE0A\x03\x12\x1F\x0A\x12standard_deviation\x18\x03 \x01(\x01B\x03\xE0A\x03\x12\x10\x0A\x03min\x18\x04 \x01(\x01B\x03\xE0A\x03\x12\x16\x0A\x09quartiles\x18\x06 \x03(\x01B\x03\xE0A\x03\x12\x10\x0A\x03max\x18\x05 \x01(\x01B\x03\xE0A\x03\x1AG\x0A\x09TopNValue\x12\x12\x0A\x05value\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x12\x0A\x05count\x18\x02 \x01(\x03B\x03\xE0A\x03\x12\x12\x0A\x05ratio\x18\x03 \x01(\x01B\x03\xE0A\x03B\x0C\x0A\x0Afield_info\x1A\xFD\x02\x0A\x15PostScanActionsResult\x12{\x0A\x16bigquery_export_result\x18\x01 \x01(\x0B2V.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResultB\x03\xE0A\x03\x1A\xE6\x01\x0A\x14BigQueryExportResult\x12p\x0A\x05state\x18\x01 \x01(\x0E2\\.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult.StateB\x03\xE0A\x03\x12\x14\x0A\x07message\x18\x02 \x01(\x09B\x03\xE0A\x03\"F\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09SUCCEEDED\x10\x01\x12\x0A\x0A\x06FAILED\x10\x02\x12\x0B\x0A\x07SKIPPED\x10\x03Bl\x0A\x1Ccom.google.cloud.dataplex.v1B\x10DataProfileProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\x06proto3" + "\x0A\xC0\x17\x0A+google/cloud/dataplex/v1/data_profile.proto\x12\x18google.cloud.dataplex.v1\x1A/google/cloud/dataplex/v1/datascans_common.proto\x1A)google/cloud/dataplex/v1/processing.proto\"\xD1\x05\x0A\x0FDataProfileSpec\x12\x1D\x0A\x10sampling_percent\x18\x02 \x01(\x02B\x03\xE0A\x01\x12\x17\x0A\x0Arow_filter\x18\x03 \x01(\x09B\x03\xE0A\x01\x12Y\x0A\x11post_scan_actions\x18\x04 \x01(\x0B29.google.cloud.dataplex.v1.DataProfileSpec.PostScanActionsB\x03\xE0A\x01\x12U\x0A\x0Einclude_fields\x18\x05 \x01(\x0B28.google.cloud.dataplex.v1.DataProfileSpec.SelectedFieldsB\x03\xE0A\x01\x12U\x0A\x0Eexclude_fields\x18\x06 \x01(\x0B28.google.cloud.dataplex.v1.DataProfileSpec.SelectedFieldsB\x03\xE0A\x01\x12'\x0A\x1Acatalog_publishing_enabled\x18\x08 \x01(\x08B\x03\xE0A\x01\x12A\x0A\x04mode\x18\x09 \x01(\x0E2..google.cloud.dataplex.v1.DataProfileSpec.ModeB\x03\xE0A\x01\x1A\xA7\x01\x0A\x0FPostScanActions\x12f\x0A\x0Fbigquery_export\x18\x01 \x01(\x0B2H.google.cloud.dataplex.v1.DataProfileSpec.PostScanActions.BigQueryExportB\x03\xE0A\x01\x1A,\x0A\x0EBigQueryExport\x12\x1A\x0A\x0Dresults_table\x18\x01 \x01(\x09B\x03\xE0A\x01\x1A*\x0A\x0ESelectedFields\x12\x18\x0A\x0Bfield_names\x18\x01 \x03(\x09B\x03\xE0A\x01\";\x0A\x04Mode\x12\x14\x0A\x10MODE_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08STANDARD\x10\x01\x12\x0F\x0A\x0BLIGHTWEIGHT\x10\x02\"\xD0\x0F\x0A\x11DataProfileResult\x12\x16\x0A\x09row_count\x18\x03 \x01(\x03B\x03\xE0A\x03\x12I\x0A\x07profile\x18\x04 \x01(\x0B23.google.cloud.dataplex.v1.DataProfileResult.ProfileB\x03\xE0A\x03\x12@\x0A\x0Cscanned_data\x18\x05 \x01(\x0B2%.google.cloud.dataplex.v1.ScannedDataB\x03\xE0A\x03\x12h\x0A\x18post_scan_actions_result\x18\x06 \x01(\x0B2A.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResultB\x03\xE0A\x03\x12a\x0A\x19catalog_publishing_status\x18\x07 \x01(\x0B29.google.cloud.dataplex.v1.DataScanCatalogPublishingStatusB\x03\xE0A\x03\x1A\xC8\x09\x0A\x07Profile\x12N\x0A\x06fields\x18\x02 \x03(\x0B29.google.cloud.dataplex.v1.DataProfileResult.Profile.FieldB\x03\xE0A\x03\x1A\xEC\x08\x0A\x05Field\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x11\x0A\x04type\x18\x02 \x01(\x09B\x03\xE0A\x03\x12\x11\x0A\x04mode\x18\x03 \x01(\x09B\x03\xE0A\x03\x12[\x0A\x07profile\x18\x04 \x01(\x0B2E.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfoB\x03\xE0A\x03\x1A\xCC\x07\x0A\x0BProfileInfo\x12\x17\x0A\x0Anull_ratio\x18\x02 \x01(\x01B\x03\xE0A\x03\x12\x1B\x0A\x0Edistinct_ratio\x18\x03 \x01(\x01B\x03\xE0A\x03\x12j\x0A\x0Ctop_n_values\x18\x04 \x03(\x0B2O.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValueB\x03\xE0A\x03\x12o\x0A\x0Estring_profile\x18e \x01(\x0B2U.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfoH\x00\x12q\x0A\x0Finteger_profile\x18f \x01(\x0B2V.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfoH\x00\x12o\x0A\x0Edouble_profile\x18g \x01(\x0B2U.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfoH\x00\x1A`\x0A\x0FStringFieldInfo\x12\x17\x0A\x0Amin_length\x18\x01 \x01(\x03B\x03\xE0A\x03\x12\x17\x0A\x0Amax_length\x18\x02 \x01(\x03B\x03\xE0A\x03\x12\x1B\x0A\x0Eaverage_length\x18\x03 \x01(\x01B\x03\xE0A\x03\x1A\x85\x01\x0A\x10IntegerFieldInfo\x12\x14\x0A\x07average\x18\x01 \x01(\x01B\x03\xE0A\x03\x12\x1F\x0A\x12standard_deviation\x18\x03 \x01(\x01B\x03\xE0A\x03\x12\x10\x0A\x03min\x18\x04 \x01(\x03B\x03\xE0A\x03\x12\x16\x0A\x09quartiles\x18\x06 \x03(\x03B\x03\xE0A\x03\x12\x10\x0A\x03max\x18\x05 \x01(\x03B\x03\xE0A\x03\x1A\x84\x01\x0A\x0FDoubleFieldInfo\x12\x14\x0A\x07average\x18\x01 \x01(\x01B\x03\xE0A\x03\x12\x1F\x0A\x12standard_deviation\x18\x03 \x01(\x01B\x03\xE0A\x03\x12\x10\x0A\x03min\x18\x04 \x01(\x01B\x03\xE0A\x03\x12\x16\x0A\x09quartiles\x18\x06 \x03(\x01B\x03\xE0A\x03\x12\x10\x0A\x03max\x18\x05 \x01(\x01B\x03\xE0A\x03\x1AG\x0A\x09TopNValue\x12\x12\x0A\x05value\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x12\x0A\x05count\x18\x02 \x01(\x03B\x03\xE0A\x03\x12\x12\x0A\x05ratio\x18\x03 \x01(\x01B\x03\xE0A\x03B\x0C\x0A\x0Afield_info\x1A\xFD\x02\x0A\x15PostScanActionsResult\x12{\x0A\x16bigquery_export_result\x18\x01 \x01(\x0B2V.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResultB\x03\xE0A\x03\x1A\xE6\x01\x0A\x14BigQueryExportResult\x12p\x0A\x05state\x18\x01 \x01(\x0E2\\.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult.StateB\x03\xE0A\x03\x12\x14\x0A\x07message\x18\x02 \x01(\x09B\x03\xE0A\x03\"F\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09SUCCEEDED\x10\x01\x12\x0A\x0A\x06FAILED\x10\x02\x12\x0B\x0A\x07SKIPPED\x10\x03Bl\x0A\x1Ccom.google.cloud.dataplex.v1B\x10DataProfileProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\x06proto3" , true); static::$is_initialized = true; diff --git a/Dataplex/metadata/V1/DataQuality.php b/Dataplex/metadata/V1/DataQuality.php index 45d1b7ba6983..016668568d3c 100644 --- a/Dataplex/metadata/V1/DataQuality.php +++ b/Dataplex/metadata/V1/DataQuality.php @@ -16,10 +16,11 @@ public static function initOnce() { } \GPBMetadata\Google\Api\FieldBehavior::initOnce(); \GPBMetadata\Google\Api\Resource::initOnce(); + \GPBMetadata\Google\Cloud\Dataplex\V1\DataQualityRuleTemplate::initOnce(); \GPBMetadata\Google\Cloud\Dataplex\V1\DatascansCommon::initOnce(); \GPBMetadata\Google\Cloud\Dataplex\V1\Processing::initOnce(); $pool->internalAddGeneratedFile( - "\x0A\xE0,\x0A+google/cloud/dataplex/v1/data_quality.proto\x12\x18google.cloud.dataplex.v1\x1A\x19google/api/resource.proto\x1A/google/cloud/dataplex/v1/datascans_common.proto\x1A)google/cloud/dataplex/v1/processing.proto\"\xE9\x08\x0A\x0FDataQualitySpec\x12=\x0A\x05rules\x18\x01 \x03(\x0B2).google.cloud.dataplex.v1.DataQualityRuleB\x03\xE0A\x02\x12\x1D\x0A\x10sampling_percent\x18\x04 \x01(\x02B\x03\xE0A\x01\x12\x17\x0A\x0Arow_filter\x18\x05 \x01(\x09B\x03\xE0A\x01\x12Y\x0A\x11post_scan_actions\x18\x06 \x01(\x0B29.google.cloud.dataplex.v1.DataQualitySpec.PostScanActionsB\x03\xE0A\x01\x12'\x0A\x1Acatalog_publishing_enabled\x18\x08 \x01(\x08B\x03\xE0A\x01\x1A\xDA\x06\x0A\x0FPostScanActions\x12f\x0A\x0Fbigquery_export\x18\x01 \x01(\x0B2H.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExportB\x03\xE0A\x01\x12n\x0A\x13notification_report\x18\x02 \x01(\x0B2L.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReportB\x03\xE0A\x01\x1A,\x0A\x0EBigQueryExport\x12\x1A\x0A\x0Dresults_table\x18\x01 \x01(\x09B\x03\xE0A\x01\x1A!\x0A\x0ARecipients\x12\x13\x0A\x06emails\x18\x01 \x03(\x09B\x03\xE0A\x01\x1A5\x0A\x15ScoreThresholdTrigger\x12\x1C\x0A\x0Fscore_threshold\x18\x02 \x01(\x02B\x03\xE0A\x01\x1A\x13\x0A\x11JobFailureTrigger\x1A\x0F\x0A\x0DJobEndTrigger\x1A\xC0\x03\x0A\x12NotificationReport\x12]\x0A\x0Arecipients\x18\x01 \x01(\x0B2D.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.RecipientsB\x03\xE0A\x02\x12u\x0A\x17score_threshold_trigger\x18\x02 \x01(\x0B2O.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTriggerB\x03\xE0A\x01\x12m\x0A\x13job_failure_trigger\x18\x04 \x01(\x0B2K.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTriggerB\x03\xE0A\x01\x12e\x0A\x0Fjob_end_trigger\x18\x05 \x01(\x0B2G.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTriggerB\x03\xE0A\x01\"\x85\x0A\x0A\x11DataQualityResult\x12\x13\x0A\x06passed\x18\x05 \x01(\x08B\x03\xE0A\x03\x12\x17\x0A\x05score\x18\x09 \x01(\x02B\x03\xE0A\x03H\x00\x88\x01\x01\x12M\x0A\x0Adimensions\x18\x02 \x03(\x0B24.google.cloud.dataplex.v1.DataQualityDimensionResultB\x03\xE0A\x03\x12G\x0A\x07columns\x18\x0A \x03(\x0B21.google.cloud.dataplex.v1.DataQualityColumnResultB\x03\xE0A\x03\x12C\x0A\x05rules\x18\x03 \x03(\x0B2/.google.cloud.dataplex.v1.DataQualityRuleResultB\x03\xE0A\x03\x12\x16\x0A\x09row_count\x18\x04 \x01(\x03B\x03\xE0A\x03\x12@\x0A\x0Cscanned_data\x18\x07 \x01(\x0B2%.google.cloud.dataplex.v1.ScannedDataB\x03\xE0A\x03\x12h\x0A\x18post_scan_actions_result\x18\x08 \x01(\x0B2A.google.cloud.dataplex.v1.DataQualityResult.PostScanActionsResultB\x03\xE0A\x03\x12a\x0A\x19catalog_publishing_status\x18\x0B \x01(\x0B29.google.cloud.dataplex.v1.DataScanCatalogPublishingStatusB\x03\xE0A\x03\x12|\x0A\"anomaly_detection_generated_assets\x18\x0C \x01(\x0B2K.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssetsB\x03\xE0A\x03\x1A\xFD\x02\x0A\x15PostScanActionsResult\x12{\x0A\x16bigquery_export_result\x18\x01 \x01(\x0B2V.google.cloud.dataplex.v1.DataQualityResult.PostScanActionsResult.BigQueryExportResultB\x03\xE0A\x03\x1A\xE6\x01\x0A\x14BigQueryExportResult\x12p\x0A\x05state\x18\x01 \x01(\x0E2\\.google.cloud.dataplex.v1.DataQualityResult.PostScanActionsResult.BigQueryExportResult.StateB\x03\xE0A\x03\x12\x14\x0A\x07message\x18\x02 \x01(\x09B\x03\xE0A\x03\"F\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09SUCCEEDED\x10\x01\x12\x0A\x0A\x06FAILED\x10\x02\x12\x0B\x0A\x07SKIPPED\x10\x03\x1A\xB5\x01\x0A\x1FAnomalyDetectionGeneratedAssets\x12\x19\x0A\x0Cresult_table\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\$\x0A\x17data_intermediate_table\x18\x02 \x01(\x09B\x03\xE0A\x03\x12)\x0A\x1Cfreshness_intermediate_table\x18\x03 \x01(\x09B\x03\xE0A\x03\x12&\x0A\x19volume_intermediate_table\x18\x04 \x01(\x09B\x03\xE0A\x03B\x08\x0A\x06_score\"\xB3\x04\x0A\x15DataQualityRuleResult\x12<\x0A\x04rule\x18\x01 \x01(\x0B2).google.cloud.dataplex.v1.DataQualityRuleB\x03\xE0A\x03\x12\x13\x0A\x06passed\x18\x07 \x01(\x08B\x03\xE0A\x03\x12\x1C\x0A\x0Fevaluated_count\x18\x09 \x01(\x03B\x03\xE0A\x03\x12\x19\x0A\x0Cpassed_count\x18\x08 \x01(\x03B\x03\xE0A\x03\x12\x17\x0A\x0Anull_count\x18\x05 \x01(\x03B\x03\xE0A\x03\x12\x17\x0A\x0Apass_ratio\x18\x06 \x01(\x01B\x03\xE0A\x03\x12\x1F\x0A\x12failing_rows_query\x18\x0A \x01(\x09B\x03\xE0A\x03\x12 \x0A\x13assertion_row_count\x18\x0B \x01(\x03B\x03\xE0A\x03\x12k\x0A\x19debug_queries_result_sets\x18\x0D \x03(\x0B2C.google.cloud.dataplex.v1.DataQualityRuleResult.DebugQueryResultSetB\x03\xE0A\x03\x1A=\x0A\x10DebugQueryResult\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x0C\x0A\x04type\x18\x02 \x01(\x09\x12\x0D\x0A\x05value\x18\x03 \x01(\x09\x1Am\x0A\x13DebugQueryResultSet\x12V\x0A\x07results\x18\x01 \x03(\x0B2@.google.cloud.dataplex.v1.DataQualityRuleResult.DebugQueryResultB\x03\xE0A\x03\"\x9C\x01\x0A\x1ADataQualityDimensionResult\x12F\x0A\x09dimension\x18\x01 \x01(\x0B2..google.cloud.dataplex.v1.DataQualityDimensionB\x03\xE0A\x03\x12\x13\x0A\x06passed\x18\x03 \x01(\x08B\x03\xE0A\x03\x12\x17\x0A\x05score\x18\x04 \x01(\x02B\x03\xE0A\x03H\x00\x88\x01\x01B\x08\x0A\x06_score\")\x0A\x14DataQualityDimension\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x03\"\xA4\x0F\x0A\x0FDataQualityRule\x12W\x0A\x11range_expectation\x18\x01 \x01(\x0B2:.google.cloud.dataplex.v1.DataQualityRule.RangeExpectationH\x00\x12\\\x0A\x14non_null_expectation\x18\x02 \x01(\x0B2<.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectationH\x00\x12S\x0A\x0Fset_expectation\x18\x03 \x01(\x0B28.google.cloud.dataplex.v1.DataQualityRule.SetExpectationH\x00\x12W\x0A\x11regex_expectation\x18\x04 \x01(\x0B2:.google.cloud.dataplex.v1.DataQualityRule.RegexExpectationH\x00\x12a\x0A\x16uniqueness_expectation\x18d \x01(\x0B2?.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectationH\x00\x12j\x0A\x1Bstatistic_range_expectation\x18e \x01(\x0B2C.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectationH\x00\x12g\x0A\x19row_condition_expectation\x18\xC8\x01 \x01(\x0B2A.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectationH\x00\x12k\x0A\x1Btable_condition_expectation\x18\xC9\x01 \x01(\x0B2C.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectationH\x00\x12P\x0A\x0Dsql_assertion\x18\xCA\x01 \x01(\x0B26.google.cloud.dataplex.v1.DataQualityRule.SqlAssertionH\x00\x12\x14\x0A\x06column\x18\xF4\x03 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Bignore_null\x18\xF5\x03 \x01(\x08B\x03\xE0A\x01\x12\x17\x0A\x09dimension\x18\xF6\x03 \x01(\x09B\x03\xE0A\x01\x12\x17\x0A\x09threshold\x18\xF7\x03 \x01(\x01B\x03\xE0A\x01\x12\x12\x0A\x04name\x18\xF8\x03 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Bdescription\x18\xF9\x03 \x01(\x09B\x03\xE0A\x01\x12\x17\x0A\x09suspended\x18\xFA\x03 \x01(\x08B\x03\xE0A\x01\x12Q\x0A\x0Ddebug_queries\x18\xFE\x03 \x03(\x0B24.google.cloud.dataplex.v1.DataQualityRule.DebugQueryB\x03\xE0A\x01\x1A\x84\x01\x0A\x10RangeExpectation\x12\x16\x0A\x09min_value\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09max_value\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x1F\x0A\x12strict_min_enabled\x18\x03 \x01(\x08B\x03\xE0A\x01\x12\x1F\x0A\x12strict_max_enabled\x18\x04 \x01(\x08B\x03\xE0A\x01\x1A\x14\x0A\x12NonNullExpectation\x1A%\x0A\x0ESetExpectation\x12\x13\x0A\x06values\x18\x01 \x03(\x09B\x03\xE0A\x01\x1A&\x0A\x10RegexExpectation\x12\x12\x0A\x05regex\x18\x01 \x01(\x09B\x03\xE0A\x01\x1A\x17\x0A\x15UniquenessExpectation\x1A\xC2\x02\x0A\x19StatisticRangeExpectation\x12k\x0A\x09statistic\x18\x01 \x01(\x0E2S.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.ColumnStatisticB\x03\xE0A\x01\x12\x16\x0A\x09min_value\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09max_value\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x1F\x0A\x12strict_min_enabled\x18\x04 \x01(\x08B\x03\xE0A\x01\x12\x1F\x0A\x12strict_max_enabled\x18\x05 \x01(\x08B\x03\xE0A\x01\"F\x0A\x0FColumnStatistic\x12\x17\x0A\x13STATISTIC_UNDEFINED\x10\x00\x12\x08\x0A\x04MEAN\x10\x01\x12\x07\x0A\x03MIN\x10\x02\x12\x07\x0A\x03MAX\x10\x03\x1A6\x0A\x17RowConditionExpectation\x12\x1B\x0A\x0Esql_expression\x18\x01 \x01(\x09B\x03\xE0A\x01\x1A8\x0A\x19TableConditionExpectation\x12\x1B\x0A\x0Esql_expression\x18\x01 \x01(\x09B\x03\xE0A\x01\x1A*\x0A\x0CSqlAssertion\x12\x1A\x0A\x0Dsql_statement\x18\x01 \x01(\x09B\x03\xE0A\x01\x1AB\x0A\x0ADebugQuery\x12\x18\x0A\x0Bdescription\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x1A\x0A\x0Dsql_statement\x18\x02 \x01(\x09B\x03\xE0A\x02B\x0B\x0A\x09rule_type\"\xB5\x01\x0A\x17DataQualityColumnResult\x12\x13\x0A\x06column\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x17\x0A\x05score\x18\x02 \x01(\x02B\x03\xE0A\x03H\x00\x88\x01\x01\x12\x13\x0A\x06passed\x18\x03 \x01(\x08B\x03\xE0A\x03\x12M\x0A\x0Adimensions\x18\x04 \x03(\x0B24.google.cloud.dataplex.v1.DataQualityDimensionResultB\x03\xE0A\x03B\x08\x0A\x06_scoreB\xC4\x01\x0A\x1Ccom.google.cloud.dataplex.v1B\x10DataQualityProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpb\xEAAU\x0A\x1Dbigquery.googleapis.com/Table\x124projects/{project}/datasets/{dataset}/tables/{table}b\x06proto3" + "\x0A\xE27\x0A+google/cloud/dataplex/v1/data_quality.proto\x12\x18google.cloud.dataplex.v1\x1A\x19google/api/resource.proto\x1A9google/cloud/dataplex/v1/data_quality_rule_template.proto\x1A/google/cloud/dataplex/v1/datascans_common.proto\x1A)google/cloud/dataplex/v1/processing.proto\"\xA7\x09\x0A\x0FDataQualitySpec\x12=\x0A\x05rules\x18\x01 \x03(\x0B2).google.cloud.dataplex.v1.DataQualityRuleB\x03\xE0A\x02\x12\x1D\x0A\x10sampling_percent\x18\x04 \x01(\x02B\x03\xE0A\x01\x12\x17\x0A\x0Arow_filter\x18\x05 \x01(\x09B\x03\xE0A\x01\x12Y\x0A\x11post_scan_actions\x18\x06 \x01(\x0B29.google.cloud.dataplex.v1.DataQualitySpec.PostScanActionsB\x03\xE0A\x01\x12'\x0A\x1Acatalog_publishing_enabled\x18\x08 \x01(\x08B\x03\xE0A\x01\x12'\x0A\x1Aenable_catalog_based_rules\x18\x0A \x01(\x08B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x0B \x01(\x09B\x03\xE0A\x01\x1A\xDA\x06\x0A\x0FPostScanActions\x12f\x0A\x0Fbigquery_export\x18\x01 \x01(\x0B2H.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExportB\x03\xE0A\x01\x12n\x0A\x13notification_report\x18\x02 \x01(\x0B2L.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReportB\x03\xE0A\x01\x1A,\x0A\x0EBigQueryExport\x12\x1A\x0A\x0Dresults_table\x18\x01 \x01(\x09B\x03\xE0A\x01\x1A!\x0A\x0ARecipients\x12\x13\x0A\x06emails\x18\x01 \x03(\x09B\x03\xE0A\x01\x1A5\x0A\x15ScoreThresholdTrigger\x12\x1C\x0A\x0Fscore_threshold\x18\x02 \x01(\x02B\x03\xE0A\x01\x1A\x13\x0A\x11JobFailureTrigger\x1A\x0F\x0A\x0DJobEndTrigger\x1A\xC0\x03\x0A\x12NotificationReport\x12]\x0A\x0Arecipients\x18\x01 \x01(\x0B2D.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.RecipientsB\x03\xE0A\x02\x12u\x0A\x17score_threshold_trigger\x18\x02 \x01(\x0B2O.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTriggerB\x03\xE0A\x01\x12m\x0A\x13job_failure_trigger\x18\x04 \x01(\x0B2K.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTriggerB\x03\xE0A\x01\x12e\x0A\x0Fjob_end_trigger\x18\x05 \x01(\x0B2G.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTriggerB\x03\xE0A\x01\"\x85\x0A\x0A\x11DataQualityResult\x12\x13\x0A\x06passed\x18\x05 \x01(\x08B\x03\xE0A\x03\x12\x17\x0A\x05score\x18\x09 \x01(\x02B\x03\xE0A\x03H\x00\x88\x01\x01\x12M\x0A\x0Adimensions\x18\x02 \x03(\x0B24.google.cloud.dataplex.v1.DataQualityDimensionResultB\x03\xE0A\x03\x12G\x0A\x07columns\x18\x0A \x03(\x0B21.google.cloud.dataplex.v1.DataQualityColumnResultB\x03\xE0A\x03\x12C\x0A\x05rules\x18\x03 \x03(\x0B2/.google.cloud.dataplex.v1.DataQualityRuleResultB\x03\xE0A\x03\x12\x16\x0A\x09row_count\x18\x04 \x01(\x03B\x03\xE0A\x03\x12@\x0A\x0Cscanned_data\x18\x07 \x01(\x0B2%.google.cloud.dataplex.v1.ScannedDataB\x03\xE0A\x03\x12h\x0A\x18post_scan_actions_result\x18\x08 \x01(\x0B2A.google.cloud.dataplex.v1.DataQualityResult.PostScanActionsResultB\x03\xE0A\x03\x12a\x0A\x19catalog_publishing_status\x18\x0B \x01(\x0B29.google.cloud.dataplex.v1.DataScanCatalogPublishingStatusB\x03\xE0A\x03\x12|\x0A\"anomaly_detection_generated_assets\x18\x0C \x01(\x0B2K.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssetsB\x03\xE0A\x03\x1A\xFD\x02\x0A\x15PostScanActionsResult\x12{\x0A\x16bigquery_export_result\x18\x01 \x01(\x0B2V.google.cloud.dataplex.v1.DataQualityResult.PostScanActionsResult.BigQueryExportResultB\x03\xE0A\x03\x1A\xE6\x01\x0A\x14BigQueryExportResult\x12p\x0A\x05state\x18\x01 \x01(\x0E2\\.google.cloud.dataplex.v1.DataQualityResult.PostScanActionsResult.BigQueryExportResult.StateB\x03\xE0A\x03\x12\x14\x0A\x07message\x18\x02 \x01(\x09B\x03\xE0A\x03\"F\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09SUCCEEDED\x10\x01\x12\x0A\x0A\x06FAILED\x10\x02\x12\x0B\x0A\x07SKIPPED\x10\x03\x1A\xB5\x01\x0A\x1FAnomalyDetectionGeneratedAssets\x12\x19\x0A\x0Cresult_table\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\$\x0A\x17data_intermediate_table\x18\x02 \x01(\x09B\x03\xE0A\x03\x12)\x0A\x1Cfreshness_intermediate_table\x18\x03 \x01(\x09B\x03\xE0A\x03\x12&\x0A\x19volume_intermediate_table\x18\x04 \x01(\x09B\x03\xE0A\x03B\x08\x0A\x06_score\"\xB3\x04\x0A\x15DataQualityRuleResult\x12<\x0A\x04rule\x18\x01 \x01(\x0B2).google.cloud.dataplex.v1.DataQualityRuleB\x03\xE0A\x03\x12\x13\x0A\x06passed\x18\x07 \x01(\x08B\x03\xE0A\x03\x12\x1C\x0A\x0Fevaluated_count\x18\x09 \x01(\x03B\x03\xE0A\x03\x12\x19\x0A\x0Cpassed_count\x18\x08 \x01(\x03B\x03\xE0A\x03\x12\x17\x0A\x0Anull_count\x18\x05 \x01(\x03B\x03\xE0A\x03\x12\x17\x0A\x0Apass_ratio\x18\x06 \x01(\x01B\x03\xE0A\x03\x12\x1F\x0A\x12failing_rows_query\x18\x0A \x01(\x09B\x03\xE0A\x03\x12 \x0A\x13assertion_row_count\x18\x0B \x01(\x03B\x03\xE0A\x03\x12k\x0A\x19debug_queries_result_sets\x18\x0D \x03(\x0B2C.google.cloud.dataplex.v1.DataQualityRuleResult.DebugQueryResultSetB\x03\xE0A\x03\x1A=\x0A\x10DebugQueryResult\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x0C\x0A\x04type\x18\x02 \x01(\x09\x12\x0D\x0A\x05value\x18\x03 \x01(\x09\x1Am\x0A\x13DebugQueryResultSet\x12V\x0A\x07results\x18\x01 \x03(\x0B2@.google.cloud.dataplex.v1.DataQualityRuleResult.DebugQueryResultB\x03\xE0A\x03\"\x9C\x01\x0A\x1ADataQualityDimensionResult\x12F\x0A\x09dimension\x18\x01 \x01(\x0B2..google.cloud.dataplex.v1.DataQualityDimensionB\x03\xE0A\x03\x12\x13\x0A\x06passed\x18\x03 \x01(\x08B\x03\xE0A\x03\x12\x17\x0A\x05score\x18\x04 \x01(\x02B\x03\xE0A\x03H\x00\x88\x01\x01B\x08\x0A\x06_score\")\x0A\x14DataQualityDimension\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x03\"\xAD\x19\x0A\x0FDataQualityRule\x12W\x0A\x11range_expectation\x18\x01 \x01(\x0B2:.google.cloud.dataplex.v1.DataQualityRule.RangeExpectationH\x00\x12\\\x0A\x14non_null_expectation\x18\x02 \x01(\x0B2<.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectationH\x00\x12S\x0A\x0Fset_expectation\x18\x03 \x01(\x0B28.google.cloud.dataplex.v1.DataQualityRule.SetExpectationH\x00\x12W\x0A\x11regex_expectation\x18\x04 \x01(\x0B2:.google.cloud.dataplex.v1.DataQualityRule.RegexExpectationH\x00\x12a\x0A\x16uniqueness_expectation\x18d \x01(\x0B2?.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectationH\x00\x12j\x0A\x1Bstatistic_range_expectation\x18e \x01(\x0B2C.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectationH\x00\x12g\x0A\x19row_condition_expectation\x18\xC8\x01 \x01(\x0B2A.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectationH\x00\x12k\x0A\x1Btable_condition_expectation\x18\xC9\x01 \x01(\x0B2C.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectationH\x00\x12P\x0A\x0Dsql_assertion\x18\xCA\x01 \x01(\x0B26.google.cloud.dataplex.v1.DataQualityRule.SqlAssertionH\x00\x12Y\x0A\x12template_reference\x18\x05 \x01(\x0B2;.google.cloud.dataplex.v1.DataQualityRule.TemplateReferenceH\x00\x12\x14\x0A\x06column\x18\xF4\x03 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Bignore_null\x18\xF5\x03 \x01(\x08B\x03\xE0A\x01\x12\x17\x0A\x09dimension\x18\xF6\x03 \x01(\x09B\x03\xE0A\x01\x12\x17\x0A\x09threshold\x18\xF7\x03 \x01(\x01B\x03\xE0A\x01\x12\x12\x0A\x04name\x18\xF8\x03 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Bdescription\x18\xF9\x03 \x01(\x09B\x03\xE0A\x01\x12\x17\x0A\x09suspended\x18\xFA\x03 \x01(\x08B\x03\xE0A\x01\x12S\x0A\x0Aattributes\x18\xFB\x03 \x03(\x0B29.google.cloud.dataplex.v1.DataQualityRule.AttributesEntryB\x03\xE0A\x01\x12O\x0A\x0Brule_source\x18\xFC\x03 \x01(\x0B24.google.cloud.dataplex.v1.DataQualityRule.RuleSourceB\x03\xE0A\x03\x12Q\x0A\x0Ddebug_queries\x18\xFE\x03 \x03(\x0B24.google.cloud.dataplex.v1.DataQualityRule.DebugQueryB\x03\xE0A\x01\x1A\x84\x01\x0A\x10RangeExpectation\x12\x16\x0A\x09min_value\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09max_value\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x1F\x0A\x12strict_min_enabled\x18\x03 \x01(\x08B\x03\xE0A\x01\x12\x1F\x0A\x12strict_max_enabled\x18\x04 \x01(\x08B\x03\xE0A\x01\x1A\x14\x0A\x12NonNullExpectation\x1A%\x0A\x0ESetExpectation\x12\x13\x0A\x06values\x18\x01 \x03(\x09B\x03\xE0A\x01\x1A&\x0A\x10RegexExpectation\x12\x12\x0A\x05regex\x18\x01 \x01(\x09B\x03\xE0A\x01\x1A\x17\x0A\x15UniquenessExpectation\x1A\xC2\x02\x0A\x19StatisticRangeExpectation\x12k\x0A\x09statistic\x18\x01 \x01(\x0E2S.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.ColumnStatisticB\x03\xE0A\x01\x12\x16\x0A\x09min_value\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09max_value\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x1F\x0A\x12strict_min_enabled\x18\x04 \x01(\x08B\x03\xE0A\x01\x12\x1F\x0A\x12strict_max_enabled\x18\x05 \x01(\x08B\x03\xE0A\x01\"F\x0A\x0FColumnStatistic\x12\x17\x0A\x13STATISTIC_UNDEFINED\x10\x00\x12\x08\x0A\x04MEAN\x10\x01\x12\x07\x0A\x03MIN\x10\x02\x12\x07\x0A\x03MAX\x10\x03\x1A6\x0A\x17RowConditionExpectation\x12\x1B\x0A\x0Esql_expression\x18\x01 \x01(\x09B\x03\xE0A\x01\x1A8\x0A\x19TableConditionExpectation\x12\x1B\x0A\x0Esql_expression\x18\x01 \x01(\x09B\x03\xE0A\x01\x1A*\x0A\x0CSqlAssertion\x12\x1A\x0A\x0Dsql_statement\x18\x01 \x01(\x09B\x03\xE0A\x01\x1A\xB1\x03\x0A\x11TemplateReference\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddataplex.googleapis.com/Entry\x12\\\x0A\x06values\x18\x05 \x03(\x0B2G.google.cloud.dataplex.v1.DataQualityRule.TemplateReference.ValuesEntryB\x03\xE0A\x01\x12\x19\x0A\x0Cresolved_sql\x18\x03 \x01(\x09B\x03\xE0A\x03\x12M\x0A\x0Drule_template\x18\x04 \x01(\x0B21.google.cloud.dataplex.v1.DataQualityRuleTemplateB\x03\xE0A\x03\x1A\$\x0A\x0EParameterValue\x12\x12\x0A\x05value\x18\x01 \x01(\x09B\x03\xE0A\x02\x1Ay\x0A\x0BValuesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12Y\x0A\x05value\x18\x02 \x01(\x0B2J.google.cloud.dataplex.v1.DataQualityRule.TemplateReference.ParameterValue:\x028\x01\x1A\x9E\x04\x0A\x0ARuleSource\x12e\x0A\x12rule_path_elements\x18\x01 \x03(\x0B2D.google.cloud.dataplex.v1.DataQualityRule.RuleSource.RulePathElementB\x03\xE0A\x03\x1A\xA8\x03\x0A\x0FRulePathElement\x12m\x0A\x0Centry_source\x18\x01 \x01(\x0B2P.google.cloud.dataplex.v1.DataQualityRule.RuleSource.RulePathElement.EntrySourceB\x03\xE0A\x03H\x00\x12v\x0A\x11entry_link_source\x18\x02 \x01(\x0B2T.google.cloud.dataplex.v1.DataQualityRule.RuleSource.RulePathElement.EntryLinkSourceB\x03\xE0A\x03H\x00\x1AU\x0A\x0BEntrySource\x12\x17\x0A\x0Aentry_type\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x12\x0A\x05entry\x18\x02 \x01(\x09B\x03\xE0A\x03\x12\x19\x0A\x0Cdisplay_name\x18\x03 \x01(\x09B\x03\xE0A\x03\x1AH\x0A\x0FEntryLinkSource\x12\x1C\x0A\x0Fentry_link_type\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x17\x0A\x0Aentry_link\x18\x02 \x01(\x09B\x03\xE0A\x03B\x0D\x0A\x0Bsource_type\x1AB\x0A\x0ADebugQuery\x12\x18\x0A\x0Bdescription\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x1A\x0A\x0Dsql_statement\x18\x02 \x01(\x09B\x03\xE0A\x02\x1A1\x0A\x0FAttributesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01B\x0B\x0A\x09rule_type\"\xB5\x01\x0A\x17DataQualityColumnResult\x12\x13\x0A\x06column\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x17\x0A\x05score\x18\x02 \x01(\x02B\x03\xE0A\x03H\x00\x88\x01\x01\x12\x13\x0A\x06passed\x18\x03 \x01(\x08B\x03\xE0A\x03\x12M\x0A\x0Adimensions\x18\x04 \x03(\x0B24.google.cloud.dataplex.v1.DataQualityDimensionResultB\x03\xE0A\x03B\x08\x0A\x06_scoreB\xC4\x01\x0A\x1Ccom.google.cloud.dataplex.v1B\x10DataQualityProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpb\xEAAU\x0A\x1Dbigquery.googleapis.com/Table\x124projects/{project}/datasets/{dataset}/tables/{table}b\x06proto3" , true); static::$is_initialized = true; diff --git a/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DataQualityRuleTemplate.php b/Dataplex/metadata/V1/DataQualityRuleTemplate.php similarity index 100% rename from owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DataQualityRuleTemplate.php rename to Dataplex/metadata/V1/DataQualityRuleTemplate.php diff --git a/Dataplex/metadata/V1/DataTaxonomy.php b/Dataplex/metadata/V1/DataTaxonomy.php index 957bd9494142..f2dba18b4be9 100644 --- a/Dataplex/metadata/V1/DataTaxonomy.php +++ b/Dataplex/metadata/V1/DataTaxonomy.php @@ -25,7 +25,7 @@ public static function initOnce() { \GPBMetadata\Google\Protobuf\FieldMask::initOnce(); \GPBMetadata\Google\Protobuf\Timestamp::initOnce(); $pool->internalAddGeneratedFile( - "\x0A\xB2I\x0A,google/cloud/dataplex/v1/data_taxonomy.proto\x12\x18google.cloud.dataplex.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A'google/cloud/dataplex/v1/security.proto\x1A&google/cloud/dataplex/v1/service.proto\x1A#google/longrunning/operations.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xB3\x04\x0A\x0CDataTaxonomy\x12:\x0A\x04name\x18\x01 \x01(\x09B,\xE0A\x03\xFAA&\x0A\$dataplex.googleapis.com/DataTaxonomy\x12\x10\x0A\x03uid\x18\x02 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x05 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cdisplay_name\x18\x06 \x01(\x09B\x03\xE0A\x01\x12G\x0A\x06labels\x18\x08 \x03(\x0B22.google.cloud.dataplex.v1.DataTaxonomy.LabelsEntryB\x03\xE0A\x01\x12\x1C\x0A\x0Fattribute_count\x18\x09 \x01(\x05B\x03\xE0A\x03\x12\x0C\x0A\x04etag\x18\x0A \x01(\x09\x12\x18\x0A\x0Bclass_count\x18\x0B \x01(\x05B\x03\xE0A\x03\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:v\x18\x01\xEAAq\x0A\$dataplex.googleapis.com/DataTaxonomy\x12Iprojects/{project}/locations/{location}/dataTaxonomies/{data_taxonomy_id}\"\x96\x06\x0A\x0DDataAttribute\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x03\xFAA'\x0A%dataplex.googleapis.com/DataAttribute\x12\x10\x0A\x03uid\x18\x02 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x05 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cdisplay_name\x18\x06 \x01(\x09B\x03\xE0A\x01\x12H\x0A\x06labels\x18\x07 \x03(\x0B23.google.cloud.dataplex.v1.DataAttribute.LabelsEntryB\x03\xE0A\x01\x12@\x0A\x09parent_id\x18\x08 \x01(\x09B-\xE0A\x01\xFAA'\x0A%dataplex.googleapis.com/DataAttribute\x12\x1C\x0A\x0Fattribute_count\x18\x09 \x01(\x05B\x03\xE0A\x03\x12\x0C\x0A\x04etag\x18\x0A \x01(\x09\x12O\x0A\x14resource_access_spec\x18d \x01(\x0B2,.google.cloud.dataplex.v1.ResourceAccessSpecB\x03\xE0A\x01\x12G\x0A\x10data_access_spec\x18e \x01(\x0B2(.google.cloud.dataplex.v1.DataAccessSpecB\x03\xE0A\x01\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:\x93\x01\x18\x01\xEAA\x8D\x01\x0A%dataplex.googleapis.com/DataAttribute\x12dprojects/{project}/locations/{location}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id}\"\xC9\x06\x0A\x14DataAttributeBinding\x12B\x0A\x04name\x18\x01 \x01(\x09B4\xE0A\x03\xFAA.\x0A,dataplex.googleapis.com/DataAttributeBinding\x12\x10\x0A\x03uid\x18\x02 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x05 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cdisplay_name\x18\x06 \x01(\x09B\x03\xE0A\x01\x12O\x0A\x06labels\x18\x07 \x03(\x0B2:.google.cloud.dataplex.v1.DataAttributeBinding.LabelsEntryB\x03\xE0A\x01\x12\x0C\x0A\x04etag\x18\x08 \x01(\x09\x12\x1A\x0A\x08resource\x18d \x01(\x09B\x06\xE0A\x01\xE0A\x05H\x00\x12A\x0A\x0Aattributes\x18n \x03(\x09B-\xE0A\x01\xFAA'\x0A%dataplex.googleapis.com/DataAttribute\x12G\x0A\x05paths\x18x \x03(\x0B23.google.cloud.dataplex.v1.DataAttributeBinding.PathB\x03\xE0A\x01\x1A\\\x0A\x04Path\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12A\x0A\x0Aattributes\x18\x02 \x03(\x09B-\xE0A\x01\xFAA'\x0A%dataplex.googleapis.com/DataAttribute\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:\x8F\x01\x18\x01\xEAA\x89\x01\x0A,dataplex.googleapis.com/DataAttributeBinding\x12Yprojects/{project}/locations/{location}/dataAttributeBindings/{data_attribute_binding_id}B\x14\x0A\x12resource_reference\"\xD9\x01\x0A\x19CreateDataTaxonomyRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12\x1D\x0A\x10data_taxonomy_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12B\x0A\x0Ddata_taxonomy\x18\x03 \x01(\x0B2&.google.cloud.dataplex.v1.DataTaxonomyB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01:\x02\x18\x01\"\xB5\x01\x0A\x19UpdateDataTaxonomyRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12B\x0A\x0Ddata_taxonomy\x18\x02 \x01(\x0B2&.google.cloud.dataplex.v1.DataTaxonomyB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01:\x02\x18\x01\"X\x0A\x16GetDataTaxonomyRequest\x12:\x0A\x04name\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$dataplex.googleapis.com/DataTaxonomy:\x02\x18\x01\"\xB3\x01\x0A\x19ListDataTaxonomiesRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\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\"\x95\x01\x0A\x1AListDataTaxonomiesResponse\x12?\x0A\x0Fdata_taxonomies\x18\x01 \x03(\x0B2&.google.cloud.dataplex.v1.DataTaxonomy\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x1D\x0A\x15unreachable_locations\x18\x03 \x03(\x09\"n\x0A\x19DeleteDataTaxonomyRequest\x12:\x0A\x04name\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$dataplex.googleapis.com/DataTaxonomy\x12\x11\x0A\x04etag\x18\x02 \x01(\x09B\x03\xE0A\x01:\x02\x18\x01\"\xDC\x01\x0A\x1ACreateDataAttributeRequest\x12<\x0A\x06parent\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$dataplex.googleapis.com/DataTaxonomy\x12\x1E\x0A\x11data_attribute_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12D\x0A\x0Edata_attribute\x18\x03 \x01(\x0B2'.google.cloud.dataplex.v1.DataAttributeB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"\xB4\x01\x0A\x1AUpdateDataAttributeRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12D\x0A\x0Edata_attribute\x18\x02 \x01(\x0B2'.google.cloud.dataplex.v1.DataAttributeB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"V\x0A\x17GetDataAttributeRequest\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%dataplex.googleapis.com/DataAttribute\"\xB6\x01\x0A\x19ListDataAttributesRequest\x12<\x0A\x06parent\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$dataplex.googleapis.com/DataTaxonomy\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\"\x96\x01\x0A\x1AListDataAttributesResponse\x12@\x0A\x0Fdata_attributes\x18\x01 \x03(\x0B2'.google.cloud.dataplex.v1.DataAttribute\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x1D\x0A\x15unreachable_locations\x18\x03 \x03(\x09\"l\x0A\x1ADeleteDataAttributeRequest\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%dataplex.googleapis.com/DataAttribute\x12\x11\x0A\x04etag\x18\x02 \x01(\x09B\x03\xE0A\x01\"\xF7\x01\x0A!CreateDataAttributeBindingRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12&\x0A\x19data_attribute_binding_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12S\x0A\x16data_attribute_binding\x18\x03 \x01(\x0B2..google.cloud.dataplex.v1.DataAttributeBindingB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"\xCA\x01\x0A!UpdateDataAttributeBindingRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12S\x0A\x16data_attribute_binding\x18\x02 \x01(\x0B2..google.cloud.dataplex.v1.DataAttributeBindingB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"d\x0A\x1EGetDataAttributeBindingRequest\x12B\x0A\x04name\x18\x01 \x01(\x09B4\xE0A\x02\xFAA.\x0A,dataplex.googleapis.com/DataAttributeBinding\"\xBA\x01\x0A ListDataAttributeBindingsRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\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\"\xAC\x01\x0A!ListDataAttributeBindingsResponse\x12O\x0A\x17data_attribute_bindings\x18\x01 \x03(\x0B2..google.cloud.dataplex.v1.DataAttributeBinding\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x1D\x0A\x15unreachable_locations\x18\x03 \x03(\x09\"z\x0A!DeleteDataAttributeBindingRequest\x12B\x0A\x04name\x18\x01 \x01(\x09B4\xE0A\x02\xFAA.\x0A,dataplex.googleapis.com/DataAttributeBinding\x12\x11\x0A\x04etag\x18\x02 \x01(\x09B\x03\xE0A\x022\xBB\x1D\x0A\x13DataTaxonomyService\x12\x83\x02\x0A\x12CreateDataTaxonomy\x123.google.cloud.dataplex.v1.CreateDataTaxonomyRequest\x1A\x1D.google.longrunning.Operation\"\x98\x01\x88\x02\x01\xCAA!\x0A\x0CDataTaxonomy\x12\x11OperationMetadata\xDAA%parent,data_taxonomy,data_taxonomy_id\x82\xD3\xE4\x93\x02C\"2/v1/{parent=projects/*/locations/*}/dataTaxonomies:\x0Ddata_taxonomy\x12\x85\x02\x0A\x12UpdateDataTaxonomy\x123.google.cloud.dataplex.v1.UpdateDataTaxonomyRequest\x1A\x1D.google.longrunning.Operation\"\x9A\x01\x88\x02\x01\xCAA!\x0A\x0CDataTaxonomy\x12\x11OperationMetadata\xDAA\x19data_taxonomy,update_mask\x82\xD3\xE4\x93\x02Q2@/v1/{data_taxonomy.name=projects/*/locations/*/dataTaxonomies/*}:\x0Ddata_taxonomy\x12\xDB\x01\x0A\x12DeleteDataTaxonomy\x123.google.cloud.dataplex.v1.DeleteDataTaxonomyRequest\x1A\x1D.google.longrunning.Operation\"q\x88\x02\x01\xCAA*\x0A\x15google.protobuf.Empty\x12\x11OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x024*2/v1/{name=projects/*/locations/*/dataTaxonomies/*}\x12\xC7\x01\x0A\x12ListDataTaxonomies\x123.google.cloud.dataplex.v1.ListDataTaxonomiesRequest\x1A4.google.cloud.dataplex.v1.ListDataTaxonomiesResponse\"F\x88\x02\x01\xDAA\x06parent\x82\xD3\xE4\x93\x024\x122/v1/{parent=projects/*/locations/*}/dataTaxonomies\x12\xB1\x01\x0A\x0FGetDataTaxonomy\x120.google.cloud.dataplex.v1.GetDataTaxonomyRequest\x1A&.google.cloud.dataplex.v1.DataTaxonomy\"D\x88\x02\x01\xDAA\x04name\x82\xD3\xE4\x93\x024\x122/v1/{name=projects/*/locations/*/dataTaxonomies/*}\x12\xBD\x02\x0A\x1ACreateDataAttributeBinding\x12;.google.cloud.dataplex.v1.CreateDataAttributeBindingRequest\x1A\x1D.google.longrunning.Operation\"\xC2\x01\x88\x02\x01\xCAA)\x0A\x14DataAttributeBinding\x12\x11OperationMetadata\xDAA7parent,data_attribute_binding,data_attribute_binding_id\x82\xD3\xE4\x93\x02S\"9/v1/{parent=projects/*/locations/*}/dataAttributeBindings:\x16data_attribute_binding\x12\xBF\x02\x0A\x1AUpdateDataAttributeBinding\x12;.google.cloud.dataplex.v1.UpdateDataAttributeBindingRequest\x1A\x1D.google.longrunning.Operation\"\xC4\x01\x88\x02\x01\xCAA)\x0A\x14DataAttributeBinding\x12\x11OperationMetadata\xDAA\"data_attribute_binding,update_mask\x82\xD3\xE4\x93\x02j2P/v1/{data_attribute_binding.name=projects/*/locations/*/dataAttributeBindings/*}:\x16data_attribute_binding\x12\xF2\x01\x0A\x1ADeleteDataAttributeBinding\x12;.google.cloud.dataplex.v1.DeleteDataAttributeBindingRequest\x1A\x1D.google.longrunning.Operation\"x\x88\x02\x01\xCAA*\x0A\x15google.protobuf.Empty\x12\x11OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x02;*9/v1/{name=projects/*/locations/*/dataAttributeBindings/*}\x12\xE3\x01\x0A\x19ListDataAttributeBindings\x12:.google.cloud.dataplex.v1.ListDataAttributeBindingsRequest\x1A;.google.cloud.dataplex.v1.ListDataAttributeBindingsResponse\"M\x88\x02\x01\xDAA\x06parent\x82\xD3\xE4\x93\x02;\x129/v1/{parent=projects/*/locations/*}/dataAttributeBindings\x12\xD0\x01\x0A\x17GetDataAttributeBinding\x128.google.cloud.dataplex.v1.GetDataAttributeBindingRequest\x1A..google.cloud.dataplex.v1.DataAttributeBinding\"K\x88\x02\x01\xDAA\x04name\x82\xD3\xE4\x93\x02;\x129/v1/{name=projects/*/locations/*/dataAttributeBindings/*}\x12\x96\x02\x0A\x13CreateDataAttribute\x124.google.cloud.dataplex.v1.CreateDataAttributeRequest\x1A\x1D.google.longrunning.Operation\"\xA9\x01\x88\x02\x01\xCAA\"\x0A\x0DDataAttribute\x12\x11OperationMetadata\xDAA'parent,data_attribute,data_attribute_id\x82\xD3\xE4\x93\x02Q\"?/v1/{parent=projects/*/locations/*/dataTaxonomies/*}/attributes:\x0Edata_attribute\x12\x98\x02\x0A\x13UpdateDataAttribute\x124.google.cloud.dataplex.v1.UpdateDataAttributeRequest\x1A\x1D.google.longrunning.Operation\"\xAB\x01\x88\x02\x01\xCAA\"\x0A\x0DDataAttribute\x12\x11OperationMetadata\xDAA\x1Adata_attribute,update_mask\x82\xD3\xE4\x93\x02`2N/v1/{data_attribute.name=projects/*/locations/*/dataTaxonomies/*/attributes/*}:\x0Edata_attribute\x12\xEA\x01\x0A\x13DeleteDataAttribute\x124.google.cloud.dataplex.v1.DeleteDataAttributeRequest\x1A\x1D.google.longrunning.Operation\"~\x88\x02\x01\xCAA*\x0A\x15google.protobuf.Empty\x12\x11OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x02A*?/v1/{name=projects/*/locations/*/dataTaxonomies/*/attributes/*}\x12\xD4\x01\x0A\x12ListDataAttributes\x123.google.cloud.dataplex.v1.ListDataAttributesRequest\x1A4.google.cloud.dataplex.v1.ListDataAttributesResponse\"S\x88\x02\x01\xDAA\x06parent\x82\xD3\xE4\x93\x02A\x12?/v1/{parent=projects/*/locations/*/dataTaxonomies/*}/attributes\x12\xC1\x01\x0A\x10GetDataAttribute\x121.google.cloud.dataplex.v1.GetDataAttributeRequest\x1A'.google.cloud.dataplex.v1.DataAttribute\"Q\x88\x02\x01\xDAA\x04name\x82\xD3\xE4\x93\x02A\x12?/v1/{name=projects/*/locations/*/dataTaxonomies/*/attributes/*}\x1AN\x88\x02\x01\xCAA\x17dataplex.googleapis.com\xD2A.https://www.googleapis.com/auth/cloud-platformBm\x0A\x1Ccom.google.cloud.dataplex.v1B\x11DataTaxonomyProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\x06proto3" + "\x0A\xE7I\x0A,google/cloud/dataplex/v1/data_taxonomy.proto\x12\x18google.cloud.dataplex.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A'google/cloud/dataplex/v1/security.proto\x1A&google/cloud/dataplex/v1/service.proto\x1A#google/longrunning/operations.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xB3\x04\x0A\x0CDataTaxonomy\x12:\x0A\x04name\x18\x01 \x01(\x09B,\xE0A\x03\xFAA&\x0A\$dataplex.googleapis.com/DataTaxonomy\x12\x10\x0A\x03uid\x18\x02 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x05 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cdisplay_name\x18\x06 \x01(\x09B\x03\xE0A\x01\x12G\x0A\x06labels\x18\x08 \x03(\x0B22.google.cloud.dataplex.v1.DataTaxonomy.LabelsEntryB\x03\xE0A\x01\x12\x1C\x0A\x0Fattribute_count\x18\x09 \x01(\x05B\x03\xE0A\x03\x12\x0C\x0A\x04etag\x18\x0A \x01(\x09\x12\x18\x0A\x0Bclass_count\x18\x0B \x01(\x05B\x03\xE0A\x03\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:v\x18\x01\xEAAq\x0A\$dataplex.googleapis.com/DataTaxonomy\x12Iprojects/{project}/locations/{location}/dataTaxonomies/{data_taxonomy_id}\"\x96\x06\x0A\x0DDataAttribute\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x03\xFAA'\x0A%dataplex.googleapis.com/DataAttribute\x12\x10\x0A\x03uid\x18\x02 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x05 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cdisplay_name\x18\x06 \x01(\x09B\x03\xE0A\x01\x12H\x0A\x06labels\x18\x07 \x03(\x0B23.google.cloud.dataplex.v1.DataAttribute.LabelsEntryB\x03\xE0A\x01\x12@\x0A\x09parent_id\x18\x08 \x01(\x09B-\xE0A\x01\xFAA'\x0A%dataplex.googleapis.com/DataAttribute\x12\x1C\x0A\x0Fattribute_count\x18\x09 \x01(\x05B\x03\xE0A\x03\x12\x0C\x0A\x04etag\x18\x0A \x01(\x09\x12O\x0A\x14resource_access_spec\x18d \x01(\x0B2,.google.cloud.dataplex.v1.ResourceAccessSpecB\x03\xE0A\x01\x12G\x0A\x10data_access_spec\x18e \x01(\x0B2(.google.cloud.dataplex.v1.DataAccessSpecB\x03\xE0A\x01\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:\x93\x01\x18\x01\xEAA\x8D\x01\x0A%dataplex.googleapis.com/DataAttribute\x12dprojects/{project}/locations/{location}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id}\"\xC9\x06\x0A\x14DataAttributeBinding\x12B\x0A\x04name\x18\x01 \x01(\x09B4\xE0A\x03\xFAA.\x0A,dataplex.googleapis.com/DataAttributeBinding\x12\x10\x0A\x03uid\x18\x02 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x05 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cdisplay_name\x18\x06 \x01(\x09B\x03\xE0A\x01\x12O\x0A\x06labels\x18\x07 \x03(\x0B2:.google.cloud.dataplex.v1.DataAttributeBinding.LabelsEntryB\x03\xE0A\x01\x12\x0C\x0A\x04etag\x18\x08 \x01(\x09\x12\x1A\x0A\x08resource\x18d \x01(\x09B\x06\xE0A\x01\xE0A\x05H\x00\x12A\x0A\x0Aattributes\x18n \x03(\x09B-\xE0A\x01\xFAA'\x0A%dataplex.googleapis.com/DataAttribute\x12G\x0A\x05paths\x18x \x03(\x0B23.google.cloud.dataplex.v1.DataAttributeBinding.PathB\x03\xE0A\x01\x1A\\\x0A\x04Path\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12A\x0A\x0Aattributes\x18\x02 \x03(\x09B-\xE0A\x01\xFAA'\x0A%dataplex.googleapis.com/DataAttribute\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:\x8F\x01\x18\x01\xEAA\x89\x01\x0A,dataplex.googleapis.com/DataAttributeBinding\x12Yprojects/{project}/locations/{location}/dataAttributeBindings/{data_attribute_binding_id}B\x14\x0A\x12resource_reference\"\xD9\x01\x0A\x19CreateDataTaxonomyRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12\x1D\x0A\x10data_taxonomy_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12B\x0A\x0Ddata_taxonomy\x18\x03 \x01(\x0B2&.google.cloud.dataplex.v1.DataTaxonomyB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01:\x02\x18\x01\"\xB5\x01\x0A\x19UpdateDataTaxonomyRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12B\x0A\x0Ddata_taxonomy\x18\x02 \x01(\x0B2&.google.cloud.dataplex.v1.DataTaxonomyB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01:\x02\x18\x01\"X\x0A\x16GetDataTaxonomyRequest\x12:\x0A\x04name\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$dataplex.googleapis.com/DataTaxonomy:\x02\x18\x01\"\xB3\x01\x0A\x19ListDataTaxonomiesRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\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\"\x95\x01\x0A\x1AListDataTaxonomiesResponse\x12?\x0A\x0Fdata_taxonomies\x18\x01 \x03(\x0B2&.google.cloud.dataplex.v1.DataTaxonomy\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x1D\x0A\x15unreachable_locations\x18\x03 \x03(\x09\"n\x0A\x19DeleteDataTaxonomyRequest\x12:\x0A\x04name\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$dataplex.googleapis.com/DataTaxonomy\x12\x11\x0A\x04etag\x18\x02 \x01(\x09B\x03\xE0A\x01:\x02\x18\x01\"\xDC\x01\x0A\x1ACreateDataAttributeRequest\x12<\x0A\x06parent\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$dataplex.googleapis.com/DataTaxonomy\x12\x1E\x0A\x11data_attribute_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12D\x0A\x0Edata_attribute\x18\x03 \x01(\x0B2'.google.cloud.dataplex.v1.DataAttributeB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"\xB4\x01\x0A\x1AUpdateDataAttributeRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12D\x0A\x0Edata_attribute\x18\x02 \x01(\x0B2'.google.cloud.dataplex.v1.DataAttributeB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"V\x0A\x17GetDataAttributeRequest\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%dataplex.googleapis.com/DataAttribute\"\xB6\x01\x0A\x19ListDataAttributesRequest\x12<\x0A\x06parent\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$dataplex.googleapis.com/DataTaxonomy\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\"\x96\x01\x0A\x1AListDataAttributesResponse\x12@\x0A\x0Fdata_attributes\x18\x01 \x03(\x0B2'.google.cloud.dataplex.v1.DataAttribute\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x1D\x0A\x15unreachable_locations\x18\x03 \x03(\x09\"l\x0A\x1ADeleteDataAttributeRequest\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%dataplex.googleapis.com/DataAttribute\x12\x11\x0A\x04etag\x18\x02 \x01(\x09B\x03\xE0A\x01\"\xF7\x01\x0A!CreateDataAttributeBindingRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12&\x0A\x19data_attribute_binding_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12S\x0A\x16data_attribute_binding\x18\x03 \x01(\x0B2..google.cloud.dataplex.v1.DataAttributeBindingB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"\xCA\x01\x0A!UpdateDataAttributeBindingRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12S\x0A\x16data_attribute_binding\x18\x02 \x01(\x0B2..google.cloud.dataplex.v1.DataAttributeBindingB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"d\x0A\x1EGetDataAttributeBindingRequest\x12B\x0A\x04name\x18\x01 \x01(\x09B4\xE0A\x02\xFAA.\x0A,dataplex.googleapis.com/DataAttributeBinding\"\xBA\x01\x0A ListDataAttributeBindingsRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\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\"\xAC\x01\x0A!ListDataAttributeBindingsResponse\x12O\x0A\x17data_attribute_bindings\x18\x01 \x03(\x0B2..google.cloud.dataplex.v1.DataAttributeBinding\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x1D\x0A\x15unreachable_locations\x18\x03 \x03(\x09\"z\x0A!DeleteDataAttributeBindingRequest\x12B\x0A\x04name\x18\x01 \x01(\x09B4\xE0A\x02\xFAA.\x0A,dataplex.googleapis.com/DataAttributeBinding\x12\x11\x0A\x04etag\x18\x02 \x01(\x09B\x03\xE0A\x022\xF0\x1D\x0A\x13DataTaxonomyService\x12\x83\x02\x0A\x12CreateDataTaxonomy\x123.google.cloud.dataplex.v1.CreateDataTaxonomyRequest\x1A\x1D.google.longrunning.Operation\"\x98\x01\x88\x02\x01\xCAA!\x0A\x0CDataTaxonomy\x12\x11OperationMetadata\xDAA%parent,data_taxonomy,data_taxonomy_id\x82\xD3\xE4\x93\x02C\"2/v1/{parent=projects/*/locations/*}/dataTaxonomies:\x0Ddata_taxonomy\x12\x85\x02\x0A\x12UpdateDataTaxonomy\x123.google.cloud.dataplex.v1.UpdateDataTaxonomyRequest\x1A\x1D.google.longrunning.Operation\"\x9A\x01\x88\x02\x01\xCAA!\x0A\x0CDataTaxonomy\x12\x11OperationMetadata\xDAA\x19data_taxonomy,update_mask\x82\xD3\xE4\x93\x02Q2@/v1/{data_taxonomy.name=projects/*/locations/*/dataTaxonomies/*}:\x0Ddata_taxonomy\x12\xDB\x01\x0A\x12DeleteDataTaxonomy\x123.google.cloud.dataplex.v1.DeleteDataTaxonomyRequest\x1A\x1D.google.longrunning.Operation\"q\x88\x02\x01\xCAA*\x0A\x15google.protobuf.Empty\x12\x11OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x024*2/v1/{name=projects/*/locations/*/dataTaxonomies/*}\x12\xC7\x01\x0A\x12ListDataTaxonomies\x123.google.cloud.dataplex.v1.ListDataTaxonomiesRequest\x1A4.google.cloud.dataplex.v1.ListDataTaxonomiesResponse\"F\x88\x02\x01\xDAA\x06parent\x82\xD3\xE4\x93\x024\x122/v1/{parent=projects/*/locations/*}/dataTaxonomies\x12\xB1\x01\x0A\x0FGetDataTaxonomy\x120.google.cloud.dataplex.v1.GetDataTaxonomyRequest\x1A&.google.cloud.dataplex.v1.DataTaxonomy\"D\x88\x02\x01\xDAA\x04name\x82\xD3\xE4\x93\x024\x122/v1/{name=projects/*/locations/*/dataTaxonomies/*}\x12\xBD\x02\x0A\x1ACreateDataAttributeBinding\x12;.google.cloud.dataplex.v1.CreateDataAttributeBindingRequest\x1A\x1D.google.longrunning.Operation\"\xC2\x01\x88\x02\x01\xCAA)\x0A\x14DataAttributeBinding\x12\x11OperationMetadata\xDAA7parent,data_attribute_binding,data_attribute_binding_id\x82\xD3\xE4\x93\x02S\"9/v1/{parent=projects/*/locations/*}/dataAttributeBindings:\x16data_attribute_binding\x12\xBF\x02\x0A\x1AUpdateDataAttributeBinding\x12;.google.cloud.dataplex.v1.UpdateDataAttributeBindingRequest\x1A\x1D.google.longrunning.Operation\"\xC4\x01\x88\x02\x01\xCAA)\x0A\x14DataAttributeBinding\x12\x11OperationMetadata\xDAA\"data_attribute_binding,update_mask\x82\xD3\xE4\x93\x02j2P/v1/{data_attribute_binding.name=projects/*/locations/*/dataAttributeBindings/*}:\x16data_attribute_binding\x12\xF2\x01\x0A\x1ADeleteDataAttributeBinding\x12;.google.cloud.dataplex.v1.DeleteDataAttributeBindingRequest\x1A\x1D.google.longrunning.Operation\"x\x88\x02\x01\xCAA*\x0A\x15google.protobuf.Empty\x12\x11OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x02;*9/v1/{name=projects/*/locations/*/dataAttributeBindings/*}\x12\xE3\x01\x0A\x19ListDataAttributeBindings\x12:.google.cloud.dataplex.v1.ListDataAttributeBindingsRequest\x1A;.google.cloud.dataplex.v1.ListDataAttributeBindingsResponse\"M\x88\x02\x01\xDAA\x06parent\x82\xD3\xE4\x93\x02;\x129/v1/{parent=projects/*/locations/*}/dataAttributeBindings\x12\xD0\x01\x0A\x17GetDataAttributeBinding\x128.google.cloud.dataplex.v1.GetDataAttributeBindingRequest\x1A..google.cloud.dataplex.v1.DataAttributeBinding\"K\x88\x02\x01\xDAA\x04name\x82\xD3\xE4\x93\x02;\x129/v1/{name=projects/*/locations/*/dataAttributeBindings/*}\x12\x96\x02\x0A\x13CreateDataAttribute\x124.google.cloud.dataplex.v1.CreateDataAttributeRequest\x1A\x1D.google.longrunning.Operation\"\xA9\x01\x88\x02\x01\xCAA\"\x0A\x0DDataAttribute\x12\x11OperationMetadata\xDAA'parent,data_attribute,data_attribute_id\x82\xD3\xE4\x93\x02Q\"?/v1/{parent=projects/*/locations/*/dataTaxonomies/*}/attributes:\x0Edata_attribute\x12\x98\x02\x0A\x13UpdateDataAttribute\x124.google.cloud.dataplex.v1.UpdateDataAttributeRequest\x1A\x1D.google.longrunning.Operation\"\xAB\x01\x88\x02\x01\xCAA\"\x0A\x0DDataAttribute\x12\x11OperationMetadata\xDAA\x1Adata_attribute,update_mask\x82\xD3\xE4\x93\x02`2N/v1/{data_attribute.name=projects/*/locations/*/dataTaxonomies/*/attributes/*}:\x0Edata_attribute\x12\xEA\x01\x0A\x13DeleteDataAttribute\x124.google.cloud.dataplex.v1.DeleteDataAttributeRequest\x1A\x1D.google.longrunning.Operation\"~\x88\x02\x01\xCAA*\x0A\x15google.protobuf.Empty\x12\x11OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x02A*?/v1/{name=projects/*/locations/*/dataTaxonomies/*/attributes/*}\x12\xD4\x01\x0A\x12ListDataAttributes\x123.google.cloud.dataplex.v1.ListDataAttributesRequest\x1A4.google.cloud.dataplex.v1.ListDataAttributesResponse\"S\x88\x02\x01\xDAA\x06parent\x82\xD3\xE4\x93\x02A\x12?/v1/{parent=projects/*/locations/*/dataTaxonomies/*}/attributes\x12\xC1\x01\x0A\x10GetDataAttribute\x121.google.cloud.dataplex.v1.GetDataAttributeRequest\x1A'.google.cloud.dataplex.v1.DataAttribute\"Q\x88\x02\x01\xDAA\x04name\x82\xD3\xE4\x93\x02A\x12?/v1/{name=projects/*/locations/*/dataTaxonomies/*/attributes/*}\x1A\x82\x01\x88\x02\x01\xCAA\x17dataplex.googleapis.com\xD2Abhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dataplex.read-writeBm\x0A\x1Ccom.google.cloud.dataplex.v1B\x11DataTaxonomyProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\x06proto3" , true); static::$is_initialized = true; diff --git a/Dataplex/metadata/V1/Datascans.php b/Dataplex/metadata/V1/Datascans.php index 7cb00f6a9c79..6682172bae2e 100644 --- a/Dataplex/metadata/V1/Datascans.php +++ b/Dataplex/metadata/V1/Datascans.php @@ -31,7 +31,7 @@ public static function initOnce() { \GPBMetadata\Google\Protobuf\FieldMask::initOnce(); \GPBMetadata\Google\Protobuf\Timestamp::initOnce(); $pool->internalAddGeneratedFile( - "\x0A\x9B<\x0A(google/cloud/dataplex/v1/datascans.proto\x12\x18google.cloud.dataplex.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x1Bgoogle/api/field_info.proto\x1A\x19google/api/resource.proto\x1A-google/cloud/dataplex/v1/data_discovery.proto\x1A1google/cloud/dataplex/v1/data_documentation.proto\x1A+google/cloud/dataplex/v1/data_profile.proto\x1A+google/cloud/dataplex/v1/data_quality.proto\x1A)google/cloud/dataplex/v1/processing.proto\x1A(google/cloud/dataplex/v1/resources.proto\x1A&google/cloud/dataplex/v1/service.proto\x1A#google/longrunning/operations.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xC5\x01\x0A\x15CreateDataScanRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12:\x0A\x09data_scan\x18\x02 \x01(\x0B2\".google.cloud.dataplex.v1.DataScanB\x03\xE0A\x02\x12\x19\x0A\x0Cdata_scan_id\x18\x03 \x01(\x09B\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"\xA5\x01\x0A\x15UpdateDataScanRequest\x12:\x0A\x09data_scan\x18\x01 \x01(\x0B2\".google.cloud.dataplex.v1.DataScanB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"c\x0A\x15DeleteDataScanRequest\x126\x0A\x04name\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A dataplex.googleapis.com/DataScan\x12\x12\x0A\x05force\x18\x02 \x01(\x08B\x03\xE0A\x01\"\xDF\x01\x0A\x12GetDataScanRequest\x126\x0A\x04name\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A dataplex.googleapis.com/DataScan\x12L\x0A\x04view\x18\x02 \x01(\x0E29.google.cloud.dataplex.v1.GetDataScanRequest.DataScanViewB\x03\xE0A\x01\"C\x0A\x0CDataScanView\x12\x1E\x0A\x1ADATA_SCAN_VIEW_UNSPECIFIED\x10\x00\x12\x09\x0A\x05BASIC\x10\x01\x12\x08\x0A\x04FULL\x10\x0A\"\xAE\x01\x0A\x14ListDataScansRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\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\"}\x0A\x15ListDataScansResponse\x126\x0A\x0Adata_scans\x18\x01 \x03(\x0B2\".google.cloud.dataplex.v1.DataScan\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x13\x0A\x0Bunreachable\x18\x03 \x03(\x09\"L\x0A\x12RunDataScanRequest\x126\x0A\x04name\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A dataplex.googleapis.com/DataScan\"I\x0A\x13RunDataScanResponse\x122\x0A\x03job\x18\x01 \x01(\x0B2%.google.cloud.dataplex.v1.DataScanJob\"\xF2\x01\x0A\x15GetDataScanJobRequest\x129\x0A\x04name\x18\x01 \x01(\x09B+\xE0A\x02\xFAA%\x0A#dataplex.googleapis.com/DataScanJob\x12R\x0A\x04view\x18\x02 \x01(\x0E2?.google.cloud.dataplex.v1.GetDataScanJobRequest.DataScanJobViewB\x03\xE0A\x01\"J\x0A\x0FDataScanJobView\x12\"\x0A\x1EDATA_SCAN_JOB_VIEW_UNSPECIFIED\x10\x00\x12\x09\x0A\x05BASIC\x10\x01\x12\x08\x0A\x04FULL\x10\x0A\"\x99\x01\x0A\x17ListDataScanJobsRequest\x128\x0A\x06parent\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A dataplex.googleapis.com/DataScan\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\"r\x0A\x18ListDataScanJobsResponse\x12=\x0A\x0Edata_scan_jobs\x18\x01 \x03(\x0B2%.google.cloud.dataplex.v1.DataScanJob\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"4\x0A\x1FGenerateDataQualityRulesRequest\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\"[\x0A GenerateDataQualityRulesResponse\x127\x0A\x04rule\x18\x01 \x03(\x0B2).google.cloud.dataplex.v1.DataQualityRule\"\xDB\x0D\x0A\x08DataScan\x12\x14\x0A\x04name\x18\x01 \x01(\x09B\x06\xE0A\x03\xE0A\x08\x12\x18\x0A\x03uid\x18\x02 \x01(\x09B\x0B\xE0A\x03\xE2\x8C\xCF\xD7\x08\x02\x08\x01\x12\x18\x0A\x0Bdescription\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cdisplay_name\x18\x04 \x01(\x09B\x03\xE0A\x01\x12C\x0A\x06labels\x18\x05 \x03(\x0B2..google.cloud.dataplex.v1.DataScan.LabelsEntryB\x03\xE0A\x01\x123\x0A\x05state\x18\x06 \x01(\x0E2\x1F.google.cloud.dataplex.v1.StateB\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\x127\x0A\x04data\x18\x09 \x01(\x0B2\$.google.cloud.dataplex.v1.DataSourceB\x03\xE0A\x02\x12M\x0A\x0Eexecution_spec\x18\x0A \x01(\x0B20.google.cloud.dataplex.v1.DataScan.ExecutionSpecB\x03\xE0A\x01\x12Q\x0A\x10execution_status\x18\x0B \x01(\x0B22.google.cloud.dataplex.v1.DataScan.ExecutionStatusB\x03\xE0A\x03\x129\x0A\x04type\x18\x0C \x01(\x0E2&.google.cloud.dataplex.v1.DataScanTypeB\x03\xE0A\x03\x12F\x0A\x11data_quality_spec\x18d \x01(\x0B2).google.cloud.dataplex.v1.DataQualitySpecH\x00\x12F\x0A\x11data_profile_spec\x18e \x01(\x0B2).google.cloud.dataplex.v1.DataProfileSpecH\x00\x12J\x0A\x13data_discovery_spec\x18f \x01(\x0B2+.google.cloud.dataplex.v1.DataDiscoverySpecH\x00\x12R\x0A\x17data_documentation_spec\x18g \x01(\x0B2/.google.cloud.dataplex.v1.DataDocumentationSpecH\x00\x12P\x0A\x13data_quality_result\x18\xC8\x01 \x01(\x0B2+.google.cloud.dataplex.v1.DataQualityResultB\x03\xE0A\x03H\x01\x12P\x0A\x13data_profile_result\x18\xC9\x01 \x01(\x0B2+.google.cloud.dataplex.v1.DataProfileResultB\x03\xE0A\x03H\x01\x12T\x0A\x15data_discovery_result\x18\xCA\x01 \x01(\x0B2-.google.cloud.dataplex.v1.DataDiscoveryResultB\x03\xE0A\x03H\x01\x12\\\x0A\x19data_documentation_result\x18\xCB\x01 \x01(\x0B21.google.cloud.dataplex.v1.DataDocumentationResultB\x03\xE0A\x03H\x01\x1Am\x0A\x0DExecutionSpec\x127\x0A\x07trigger\x18\x01 \x01(\x0B2!.google.cloud.dataplex.v1.TriggerB\x03\xE0A\x01\x12\x14\x0A\x05field\x18d \x01(\x09B\x03\xE0A\x05H\x00B\x0D\x0A\x0Bincremental\x1A\xD0\x01\x0A\x0FExecutionStatus\x12>\x0A\x15latest_job_start_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x01\x12<\x0A\x13latest_job_end_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x01\x12?\x0A\x16latest_job_create_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x01\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:c\xEAA`\x0A dataplex.googleapis.com/DataScan\x12\xDAA\x06parent\x82\xD3\xE4\x93\x02/\x12-/v1/{parent=projects/*/locations/*}/dataScans\x12\xAF\x01\x0A\x0BRunDataScan\x12,.google.cloud.dataplex.v1.RunDataScanRequest\x1A-.google.cloud.dataplex.v1.RunDataScanResponse\"C\xDAA\x04name\x82\xD3\xE4\x93\x026\"1/v1/{name=projects/*/locations/*/dataScans/*}:run:\x01*\x12\xAD\x01\x0A\x0EGetDataScanJob\x12/.google.cloud.dataplex.v1.GetDataScanJobRequest\x1A%.google.cloud.dataplex.v1.DataScanJob\"C\xDAA\x04name\x82\xD3\xE4\x93\x026\x124/v1/{name=projects/*/locations/*/dataScans/*/jobs/*}\x12\xC0\x01\x0A\x10ListDataScanJobs\x121.google.cloud.dataplex.v1.ListDataScanJobsRequest\x1A2.google.cloud.dataplex.v1.ListDataScanJobsResponse\"E\xDAA\x06parent\x82\xD3\xE4\x93\x026\x124/v1/{parent=projects/*/locations/*/dataScans/*}/jobs\x12\xC1\x02\x0A\x18GenerateDataQualityRules\x129.google.cloud.dataplex.v1.GenerateDataQualityRulesRequest\x1A:.google.cloud.dataplex.v1.GenerateDataQualityRulesResponse\"\xAD\x01\xDAA\x04name\x82\xD3\xE4\x93\x02\x9F\x01\"F/v1/{name=projects/*/locations/*/dataScans/*}:generateDataQualityRules:\x01*ZR\"M/v1/{name=projects/*/locations/*/dataScans/*/jobs/*}:generateDataQualityRules:\x01*\x1AK\xCAA\x17dataplex.googleapis.com\xD2A.https://www.googleapis.com/auth/cloud-platformBj\x0A\x1Ccom.google.cloud.dataplex.v1B\x0EDataScansProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\x06proto3" + "\x0A\xA5D\x0A(google/cloud/dataplex/v1/datascans.proto\x12\x18google.cloud.dataplex.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x1Bgoogle/api/field_info.proto\x1A\x19google/api/resource.proto\x1A-google/cloud/dataplex/v1/data_discovery.proto\x1A1google/cloud/dataplex/v1/data_documentation.proto\x1A+google/cloud/dataplex/v1/data_profile.proto\x1A+google/cloud/dataplex/v1/data_quality.proto\x1A)google/cloud/dataplex/v1/processing.proto\x1A(google/cloud/dataplex/v1/resources.proto\x1A&google/cloud/dataplex/v1/service.proto\x1A#google/longrunning/operations.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xC5\x01\x0A\x15CreateDataScanRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12:\x0A\x09data_scan\x18\x02 \x01(\x0B2\".google.cloud.dataplex.v1.DataScanB\x03\xE0A\x02\x12\x19\x0A\x0Cdata_scan_id\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"\xA5\x01\x0A\x15UpdateDataScanRequest\x12:\x0A\x09data_scan\x18\x01 \x01(\x0B2\".google.cloud.dataplex.v1.DataScanB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"c\x0A\x15DeleteDataScanRequest\x126\x0A\x04name\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A dataplex.googleapis.com/DataScan\x12\x12\x0A\x05force\x18\x02 \x01(\x08B\x03\xE0A\x01\"\xDF\x01\x0A\x12GetDataScanRequest\x126\x0A\x04name\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A dataplex.googleapis.com/DataScan\x12L\x0A\x04view\x18\x02 \x01(\x0E29.google.cloud.dataplex.v1.GetDataScanRequest.DataScanViewB\x03\xE0A\x01\"C\x0A\x0CDataScanView\x12\x1E\x0A\x1ADATA_SCAN_VIEW_UNSPECIFIED\x10\x00\x12\x09\x0A\x05BASIC\x10\x01\x12\x08\x0A\x04FULL\x10\x0A\"\xAE\x01\x0A\x14ListDataScansRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\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\"}\x0A\x15ListDataScansResponse\x126\x0A\x0Adata_scans\x18\x01 \x03(\x0B2\".google.cloud.dataplex.v1.DataScan\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x13\x0A\x0Bunreachable\x18\x03 \x03(\x09\"L\x0A\x12RunDataScanRequest\x126\x0A\x04name\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A dataplex.googleapis.com/DataScan\"I\x0A\x13RunDataScanResponse\x122\x0A\x03job\x18\x01 \x01(\x0B2%.google.cloud.dataplex.v1.DataScanJob\"\xF2\x01\x0A\x15GetDataScanJobRequest\x129\x0A\x04name\x18\x01 \x01(\x09B+\xE0A\x02\xFAA%\x0A#dataplex.googleapis.com/DataScanJob\x12R\x0A\x04view\x18\x02 \x01(\x0E2?.google.cloud.dataplex.v1.GetDataScanJobRequest.DataScanJobViewB\x03\xE0A\x01\"J\x0A\x0FDataScanJobView\x12\"\x0A\x1EDATA_SCAN_JOB_VIEW_UNSPECIFIED\x10\x00\x12\x09\x0A\x05BASIC\x10\x01\x12\x08\x0A\x04FULL\x10\x0A\"\x99\x01\x0A\x17ListDataScanJobsRequest\x128\x0A\x06parent\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A dataplex.googleapis.com/DataScan\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\"r\x0A\x18ListDataScanJobsResponse\x12=\x0A\x0Edata_scan_jobs\x18\x01 \x03(\x0B2%.google.cloud.dataplex.v1.DataScanJob\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"U\x0A\x18CancelDataScanJobRequest\x129\x0A\x04name\x18\x01 \x01(\x09B+\xE0A\x02\xFAA%\x0A#dataplex.googleapis.com/DataScanJob\"\x1B\x0A\x19CancelDataScanJobResponse\"4\x0A\x1FGenerateDataQualityRulesRequest\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\"[\x0A GenerateDataQualityRulesResponse\x127\x0A\x04rule\x18\x01 \x03(\x0B2).google.cloud.dataplex.v1.DataQualityRule\"\xAD\x0E\x0A\x08DataScan\x12\x14\x0A\x04name\x18\x01 \x01(\x09B\x06\xE0A\x03\xE0A\x08\x12\x18\x0A\x03uid\x18\x02 \x01(\x09B\x0B\xE0A\x03\xE2\x8C\xCF\xD7\x08\x02\x08\x01\x12\x18\x0A\x0Bdescription\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cdisplay_name\x18\x04 \x01(\x09B\x03\xE0A\x01\x12C\x0A\x06labels\x18\x05 \x03(\x0B2..google.cloud.dataplex.v1.DataScan.LabelsEntryB\x03\xE0A\x01\x123\x0A\x05state\x18\x06 \x01(\x0E2\x1F.google.cloud.dataplex.v1.StateB\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\x127\x0A\x04data\x18\x09 \x01(\x0B2\$.google.cloud.dataplex.v1.DataSourceB\x03\xE0A\x02\x12M\x0A\x0Eexecution_spec\x18\x0A \x01(\x0B20.google.cloud.dataplex.v1.DataScan.ExecutionSpecB\x03\xE0A\x01\x12Q\x0A\x10execution_status\x18\x0B \x01(\x0B22.google.cloud.dataplex.v1.DataScan.ExecutionStatusB\x03\xE0A\x03\x129\x0A\x04type\x18\x0C \x01(\x0E2&.google.cloud.dataplex.v1.DataScanTypeB\x03\xE0A\x03\x12F\x0A\x11data_quality_spec\x18d \x01(\x0B2).google.cloud.dataplex.v1.DataQualitySpecH\x00\x12F\x0A\x11data_profile_spec\x18e \x01(\x0B2).google.cloud.dataplex.v1.DataProfileSpecH\x00\x12J\x0A\x13data_discovery_spec\x18f \x01(\x0B2+.google.cloud.dataplex.v1.DataDiscoverySpecH\x00\x12R\x0A\x17data_documentation_spec\x18g \x01(\x0B2/.google.cloud.dataplex.v1.DataDocumentationSpecH\x00\x12P\x0A\x13data_quality_result\x18\xC8\x01 \x01(\x0B2+.google.cloud.dataplex.v1.DataQualityResultB\x03\xE0A\x03H\x01\x12P\x0A\x13data_profile_result\x18\xC9\x01 \x01(\x0B2+.google.cloud.dataplex.v1.DataProfileResultB\x03\xE0A\x03H\x01\x12T\x0A\x15data_discovery_result\x18\xCA\x01 \x01(\x0B2-.google.cloud.dataplex.v1.DataDiscoveryResultB\x03\xE0A\x03H\x01\x12\\\x0A\x19data_documentation_result\x18\xCB\x01 \x01(\x0B21.google.cloud.dataplex.v1.DataDocumentationResultB\x03\xE0A\x03H\x01\x12P\x0A\x12execution_identity\x18\xAC\x02 \x01(\x0B2+.google.cloud.dataplex.v1.ExecutionIdentityB\x06\xE0A\x01\xE0A\x05\x1Am\x0A\x0DExecutionSpec\x127\x0A\x07trigger\x18\x01 \x01(\x0B2!.google.cloud.dataplex.v1.TriggerB\x03\xE0A\x01\x12\x14\x0A\x05field\x18d \x01(\x09B\x03\xE0A\x05H\x00B\x0D\x0A\x0Bincremental\x1A\xD0\x01\x0A\x0FExecutionStatus\x12>\x0A\x15latest_job_start_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x01\x12<\x0A\x13latest_job_end_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x01\x12?\x0A\x16latest_job_create_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x01\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:c\xEAA`\x0A dataplex.googleapis.com/DataScan\x12\xDAA\x06parent\x82\xD3\xE4\x93\x02/\x12-/v1/{parent=projects/*/locations/*}/dataScans\x12\xAF\x01\x0A\x0BRunDataScan\x12,.google.cloud.dataplex.v1.RunDataScanRequest\x1A-.google.cloud.dataplex.v1.RunDataScanResponse\"C\xDAA\x04name\x82\xD3\xE4\x93\x026\"1/v1/{name=projects/*/locations/*/dataScans/*}:run:\x01*\x12\xAD\x01\x0A\x0EGetDataScanJob\x12/.google.cloud.dataplex.v1.GetDataScanJobRequest\x1A%.google.cloud.dataplex.v1.DataScanJob\"C\xDAA\x04name\x82\xD3\xE4\x93\x026\x124/v1/{name=projects/*/locations/*/dataScans/*/jobs/*}\x12\xC0\x01\x0A\x10ListDataScanJobs\x121.google.cloud.dataplex.v1.ListDataScanJobsRequest\x1A2.google.cloud.dataplex.v1.ListDataScanJobsResponse\"E\xDAA\x06parent\x82\xD3\xE4\x93\x026\x124/v1/{parent=projects/*/locations/*/dataScans/*}/jobs\x12\xCB\x01\x0A\x11CancelDataScanJob\x122.google.cloud.dataplex.v1.CancelDataScanJobRequest\x1A3.google.cloud.dataplex.v1.CancelDataScanJobResponse\"M\xDAA\x04name\x82\xD3\xE4\x93\x02@\";/v1/{name=projects/*/locations/*/dataScans/*/jobs/*}:cancel:\x01*\x12\xC1\x02\x0A\x18GenerateDataQualityRules\x129.google.cloud.dataplex.v1.GenerateDataQualityRulesRequest\x1A:.google.cloud.dataplex.v1.GenerateDataQualityRulesResponse\"\xAD\x01\xDAA\x04name\x82\xD3\xE4\x93\x02\x9F\x01\"F/v1/{name=projects/*/locations/*/dataScans/*}:generateDataQualityRules:\x01*ZR\"M/v1/{name=projects/*/locations/*/dataScans/*/jobs/*}:generateDataQualityRules:\x01*\x1A\xEB\x01\xCAA\x17dataplex.googleapis.com\xD2A\xCD\x01https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.read-only,https://www.googleapis.com/auth/dataplex.read-write,https://www.googleapis.com/auth/dataplex.readonlyBj\x0A\x1Ccom.google.cloud.dataplex.v1B\x0EDataScansProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\x06proto3" , true); static::$is_initialized = true; diff --git a/Dataplex/metadata/V1/Logs.php b/Dataplex/metadata/V1/Logs.php index 9199a1eb18ed..a58a4208c282 100644 --- a/Dataplex/metadata/V1/Logs.php +++ b/Dataplex/metadata/V1/Logs.php @@ -20,7 +20,7 @@ public static function initOnce() { \GPBMetadata\Google\Protobuf\Duration::initOnce(); \GPBMetadata\Google\Protobuf\Timestamp::initOnce(); $pool->internalAddGeneratedFile( - "\x0A\xA4A\x0A#google/cloud/dataplex/v1/logs.proto\x12\x18google.cloud.dataplex.v1\x1A\x19google/api/resource.proto\x1A/google/cloud/dataplex/v1/datascans_common.proto\x1A\x1Egoogle/protobuf/duration.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\x9D\x0C\x0A\x0EDiscoveryEvent\x12\x0F\x0A\x07message\x18\x01 \x01(\x09\x12\x0F\x0A\x07lake_id\x18\x02 \x01(\x09\x12\x0F\x0A\x07zone_id\x18\x03 \x01(\x09\x12\x10\x0A\x08asset_id\x18\x04 \x01(\x09\x12\x15\x0A\x0Ddata_location\x18\x05 \x01(\x09\x12\x13\x0A\x0Bdatascan_id\x18\x06 \x01(\x09\x12@\x0A\x04type\x18\x0A \x01(\x0E22.google.cloud.dataplex.v1.DiscoveryEvent.EventType\x12H\x0A\x06config\x18\x14 \x01(\x0B26.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetailsH\x00\x12H\x0A\x06entity\x18\x15 \x01(\x0B26.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetailsH\x00\x12N\x0A\x09partition\x18\x16 \x01(\x0B29.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetailsH\x00\x12H\x0A\x06action\x18\x17 \x01(\x0B26.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetailsH\x00\x12F\x0A\x05table\x18\x18 \x01(\x0B25.google.cloud.dataplex.v1.DiscoveryEvent.TableDetailsH\x00\x1A\x9E\x01\x0A\x0DConfigDetails\x12Z\x0A\x0Aparameters\x18\x01 \x03(\x0B2F.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails.ParametersEntry\x1A1\x0A\x0FParametersEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1Ab\x0A\x0DEntityDetails\x12\x0E\x0A\x06entity\x18\x01 \x01(\x09\x12A\x0A\x04type\x18\x02 \x01(\x0E23.google.cloud.dataplex.v1.DiscoveryEvent.EntityType\x1A_\x0A\x0CTableDetails\x12\x0D\x0A\x05table\x18\x01 \x01(\x09\x12@\x0A\x04type\x18\x02 \x01(\x0E22.google.cloud.dataplex.v1.DiscoveryEvent.TableType\x1A\x98\x01\x0A\x10PartitionDetails\x12\x11\x0A\x09partition\x18\x01 \x01(\x09\x12\x0E\x0A\x06entity\x18\x02 \x01(\x09\x12A\x0A\x04type\x18\x03 \x01(\x0E23.google.cloud.dataplex.v1.DiscoveryEvent.EntityType\x12\x1E\x0A\x16sampled_data_locations\x18\x04 \x03(\x09\x1A,\x0A\x0DActionDetails\x12\x0C\x0A\x04type\x18\x01 \x01(\x09\x12\x0D\x0A\x05issue\x18\x02 \x01(\x09\"\x82\x02\x0A\x09EventType\x12\x1A\x0A\x16EVENT_TYPE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06CONFIG\x10\x01\x12\x12\x0A\x0EENTITY_CREATED\x10\x02\x12\x12\x0A\x0EENTITY_UPDATED\x10\x03\x12\x12\x0A\x0EENTITY_DELETED\x10\x04\x12\x15\x0A\x11PARTITION_CREATED\x10\x05\x12\x15\x0A\x11PARTITION_UPDATED\x10\x06\x12\x15\x0A\x11PARTITION_DELETED\x10\x07\x12\x13\x0A\x0FTABLE_PUBLISHED\x10\x0A\x12\x11\x0A\x0DTABLE_UPDATED\x10\x0B\x12\x11\x0A\x0DTABLE_IGNORED\x10\x0C\x12\x11\x0A\x0DTABLE_DELETED\x10\x0D\"A\x0A\x0AEntityType\x12\x1B\x0A\x17ENTITY_TYPE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05TABLE\x10\x01\x12\x0B\x0A\x07FILESET\x10\x02\"`\x0A\x09TableType\x12\x1A\x0A\x16TABLE_TYPE_UNSPECIFIED\x10\x00\x12\x12\x0A\x0EEXTERNAL_TABLE\x10\x01\x12\x11\x0A\x0DBIGLAKE_TABLE\x10\x02\x12\x10\x0A\x0COBJECT_TABLE\x10\x03B\x09\x0A\x07details\"\xC5\x05\x0A\x08JobEvent\x12\x0F\x0A\x07message\x18\x01 \x01(\x09\x12\x0E\x0A\x06job_id\x18\x02 \x01(\x09\x12.\x0A\x0Astart_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12,\x0A\x08end_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.Timestamp\x127\x0A\x05state\x18\x05 \x01(\x0E2(.google.cloud.dataplex.v1.JobEvent.State\x12\x0F\x0A\x07retries\x18\x06 \x01(\x05\x125\x0A\x04type\x18\x07 \x01(\x0E2'.google.cloud.dataplex.v1.JobEvent.Type\x12;\x0A\x07service\x18\x08 \x01(\x0E2*.google.cloud.dataplex.v1.JobEvent.Service\x12\x13\x0A\x0Bservice_job\x18\x09 \x01(\x09\x12N\x0A\x11execution_trigger\x18\x0B \x01(\x0E23.google.cloud.dataplex.v1.JobEvent.ExecutionTrigger\"5\x0A\x04Type\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05SPARK\x10\x01\x12\x0C\x0A\x08NOTEBOOK\x10\x02\"U\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09SUCCEEDED\x10\x01\x12\x0A\x0A\x06FAILED\x10\x02\x12\x0D\x0A\x09CANCELLED\x10\x03\x12\x0B\x0A\x07ABORTED\x10\x04\"0\x0A\x07Service\x12\x17\x0A\x13SERVICE_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08DATAPROC\x10\x01\"W\x0A\x10ExecutionTrigger\x12!\x0A\x1DEXECUTION_TRIGGER_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BTASK_CONFIG\x10\x01\x12\x0F\x0A\x0BRUN_REQUEST\x10\x02\"\xBD\x05\x0A\x0CSessionEvent\x12\x0F\x0A\x07message\x18\x01 \x01(\x09\x12\x0F\x0A\x07user_id\x18\x02 \x01(\x09\x12\x12\x0A\x0Asession_id\x18\x03 \x01(\x09\x12>\x0A\x04type\x18\x04 \x01(\x0E20.google.cloud.dataplex.v1.SessionEvent.EventType\x12C\x0A\x05query\x18\x05 \x01(\x0B22.google.cloud.dataplex.v1.SessionEvent.QueryDetailH\x00\x12\x17\x0A\x0Fevent_succeeded\x18\x06 \x01(\x08\x12\x1C\x0A\x14fast_startup_enabled\x18\x07 \x01(\x08\x126\x0A\x13unassigned_duration\x18\x08 \x01(\x0B2\x19.google.protobuf.Duration\x1A\xA3\x02\x0A\x0BQueryDetail\x12\x10\x0A\x08query_id\x18\x01 \x01(\x09\x12\x12\x0A\x0Aquery_text\x18\x02 \x01(\x09\x12I\x0A\x06engine\x18\x03 \x01(\x0E29.google.cloud.dataplex.v1.SessionEvent.QueryDetail.Engine\x12+\x0A\x08duration\x18\x04 \x01(\x0B2\x19.google.protobuf.Duration\x12\x19\x0A\x11result_size_bytes\x18\x05 \x01(\x03\x12\x1C\x0A\x14data_processed_bytes\x18\x06 \x01(\x03\"=\x0A\x06Engine\x12\x16\x0A\x12ENGINE_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09SPARK_SQL\x10\x01\x12\x0C\x0A\x08BIGQUERY\x10\x02\"S\x0A\x09EventType\x12\x1A\x0A\x16EVENT_TYPE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05START\x10\x01\x12\x08\x0A\x04STOP\x10\x02\x12\x09\x0A\x05QUERY\x10\x03\x12\x0A\x0A\x06CREATE\x10\x04B\x08\x0A\x06detail\"\xBA\x07\x0A\x0FGovernanceEvent\x12\x0F\x0A\x07message\x18\x01 \x01(\x09\x12G\x0A\x0Aevent_type\x18\x02 \x01(\x0E23.google.cloud.dataplex.v1.GovernanceEvent.EventType\x12E\x0A\x06entity\x18\x03 \x01(\x0B20.google.cloud.dataplex.v1.GovernanceEvent.EntityH\x00\x88\x01\x01\x1A\xD2\x01\x0A\x06Entity\x123\x0A\x06entity\x18\x01 \x01(\x09B#\xFAA \x0A\x1Edataplex.googleapis.com/Entity\x12P\x0A\x0Bentity_type\x18\x02 \x01(\x0E2;.google.cloud.dataplex.v1.GovernanceEvent.Entity.EntityType\"A\x0A\x0AEntityType\x12\x1B\x0A\x17ENTITY_TYPE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05TABLE\x10\x01\x12\x0B\x0A\x07FILESET\x10\x02\"\xA5\x04\x0A\x09EventType\x12\x1A\x0A\x16EVENT_TYPE_UNSPECIFIED\x10\x00\x12\x1E\x0A\x1ARESOURCE_IAM_POLICY_UPDATE\x10\x01\x12\x19\x0A\x15BIGQUERY_TABLE_CREATE\x10\x02\x12\x19\x0A\x15BIGQUERY_TABLE_UPDATE\x10\x03\x12\x19\x0A\x15BIGQUERY_TABLE_DELETE\x10\x04\x12\x1E\x0A\x1ABIGQUERY_CONNECTION_CREATE\x10\x05\x12\x1E\x0A\x1ABIGQUERY_CONNECTION_UPDATE\x10\x06\x12\x1E\x0A\x1ABIGQUERY_CONNECTION_DELETE\x10\x07\x12\x1C\x0A\x18BIGQUERY_TAXONOMY_CREATE\x10\x0A\x12\x1E\x0A\x1ABIGQUERY_POLICY_TAG_CREATE\x10\x0B\x12\x1E\x0A\x1ABIGQUERY_POLICY_TAG_DELETE\x10\x0C\x12&\x0A\"BIGQUERY_POLICY_TAG_SET_IAM_POLICY\x10\x0D\x12\x18\x0A\x14ACCESS_POLICY_UPDATE\x10\x0E\x12%\x0A!GOVERNANCE_RULE_MATCHED_RESOURCES\x10\x0F\x12(\x0A\$GOVERNANCE_RULE_SEARCH_LIMIT_EXCEEDS\x10\x10\x12\x1A\x0A\x16GOVERNANCE_RULE_ERRORS\x10\x11\x12\x1E\x0A\x1AGOVERNANCE_RULE_PROCESSING\x10\x12B\x09\x0A\x07_entity\"\xF3\x13\x0A\x0DDataScanEvent\x12\x13\x0A\x0Bdata_source\x18\x01 \x01(\x09\x12\x0E\x0A\x06job_id\x18\x02 \x01(\x09\x12/\x0A\x0Bcreate_time\x18\x0C \x01(\x0B2\x1A.google.protobuf.Timestamp\x12.\x0A\x0Astart_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12,\x0A\x08end_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12>\x0A\x04type\x18\x05 \x01(\x0E20.google.cloud.dataplex.v1.DataScanEvent.ScanType\x12<\x0A\x05state\x18\x06 \x01(\x0E2-.google.cloud.dataplex.v1.DataScanEvent.State\x12\x0F\x0A\x07message\x18\x07 \x01(\x09\x12\x14\x0A\x0Cspec_version\x18\x08 \x01(\x09\x12@\x0A\x07trigger\x18\x09 \x01(\x0E2/.google.cloud.dataplex.v1.DataScanEvent.Trigger\x12<\x0A\x05scope\x18\x0A \x01(\x0E2-.google.cloud.dataplex.v1.DataScanEvent.Scope\x12Q\x0A\x0Cdata_profile\x18e \x01(\x0B29.google.cloud.dataplex.v1.DataScanEvent.DataProfileResultH\x00\x12Q\x0A\x0Cdata_quality\x18f \x01(\x0B29.google.cloud.dataplex.v1.DataScanEvent.DataQualityResultH\x00\x12b\x0A\x14data_profile_configs\x18\xC9\x01 \x01(\x0B2A.google.cloud.dataplex.v1.DataScanEvent.DataProfileAppliedConfigsH\x01\x12b\x0A\x14data_quality_configs\x18\xCA\x01 \x01(\x0B2A.google.cloud.dataplex.v1.DataScanEvent.DataQualityAppliedConfigsH\x01\x12_\x0A\x18post_scan_actions_result\x18\x0B \x01(\x0B2=.google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult\x12\\\x0A\x19catalog_publishing_status\x18\x0D \x01(\x0B29.google.cloud.dataplex.v1.DataScanCatalogPublishingStatus\x1A&\x0A\x11DataProfileResult\x12\x11\x0A\x09row_count\x18\x01 \x01(\x03\x1A\x9C\x04\x0A\x11DataQualityResult\x12\x11\x0A\x09row_count\x18\x01 \x01(\x03\x12\x0E\x0A\x06passed\x18\x02 \x01(\x08\x12h\x0A\x10dimension_passed\x18\x03 \x03(\x0B2N.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult.DimensionPassedEntry\x12\x0D\x0A\x05score\x18\x04 \x01(\x02\x12f\x0A\x0Fdimension_score\x18\x05 \x03(\x0B2M.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult.DimensionScoreEntry\x12`\x0A\x0Ccolumn_score\x18\x06 \x03(\x0B2J.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult.ColumnScoreEntry\x1A6\x0A\x14DimensionPassedEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x08:\x028\x01\x1A5\x0A\x13DimensionScoreEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x02:\x028\x01\x1A2\x0A\x10ColumnScoreEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x02:\x028\x01\x1Ap\x0A\x19DataProfileAppliedConfigs\x12\x18\x0A\x10sampling_percent\x18\x01 \x01(\x02\x12\x1A\x0A\x12row_filter_applied\x18\x02 \x01(\x08\x12\x1D\x0A\x15column_filter_applied\x18\x03 \x01(\x08\x1AQ\x0A\x19DataQualityAppliedConfigs\x12\x18\x0A\x10sampling_percent\x18\x01 \x01(\x02\x12\x1A\x0A\x12row_filter_applied\x18\x02 \x01(\x08\x1A\xE6\x02\x0A\x15PostScanActionsResult\x12r\x0A\x16bigquery_export_result\x18\x01 \x01(\x0B2R.google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult.BigQueryExportResult\x1A\xD8\x01\x0A\x14BigQueryExportResult\x12g\x0A\x05state\x18\x01 \x01(\x0E2X.google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult.BigQueryExportResult.State\x12\x0F\x0A\x07message\x18\x02 \x01(\x09\"F\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09SUCCEEDED\x10\x01\x12\x0A\x0A\x06FAILED\x10\x02\x12\x0B\x0A\x07SKIPPED\x10\x03\"]\x0A\x08ScanType\x12\x19\x0A\x15SCAN_TYPE_UNSPECIFIED\x10\x00\x12\x10\x0A\x0CDATA_PROFILE\x10\x01\x12\x10\x0A\x0CDATA_QUALITY\x10\x02\x12\x12\x0A\x0EDATA_DISCOVERY\x10\x04\"b\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07STARTED\x10\x01\x12\x0D\x0A\x09SUCCEEDED\x10\x02\x12\x0A\x0A\x06FAILED\x10\x03\x12\x0D\x0A\x09CANCELLED\x10\x04\x12\x0B\x0A\x07CREATED\x10\x05\"M\x0A\x07Trigger\x12\x17\x0A\x13TRIGGER_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09ON_DEMAND\x10\x01\x12\x0C\x0A\x08SCHEDULE\x10\x02\x12\x0C\x0A\x08ONE_TIME\x10\x03\"9\x0A\x05Scope\x12\x15\x0A\x11SCOPE_UNSPECIFIED\x10\x00\x12\x08\x0A\x04FULL\x10\x01\x12\x0F\x0A\x0BINCREMENTAL\x10\x02B\x08\x0A\x06resultB\x10\x0A\x0EappliedConfigs\"\x99\x07\x0A\x19DataQualityScanRuleResult\x12\x0E\x0A\x06job_id\x18\x01 \x01(\x09\x12\x13\x0A\x0Bdata_source\x18\x02 \x01(\x09\x12\x0E\x0A\x06column\x18\x03 \x01(\x09\x12\x11\x0A\x09rule_name\x18\x04 \x01(\x09\x12O\x0A\x09rule_type\x18\x05 \x01(\x0E2<.google.cloud.dataplex.v1.DataQualityScanRuleResult.RuleType\x12Z\x0A\x0Eevalution_type\x18\x06 \x01(\x0E2B.google.cloud.dataplex.v1.DataQualityScanRuleResult.EvaluationType\x12\x16\x0A\x0Erule_dimension\x18\x07 \x01(\x09\x12\x19\x0A\x11threshold_percent\x18\x08 \x01(\x01\x12J\x0A\x06result\x18\x09 \x01(\x0E2:.google.cloud.dataplex.v1.DataQualityScanRuleResult.Result\x12\x1B\x0A\x13evaluated_row_count\x18\x0A \x01(\x03\x12\x18\x0A\x10passed_row_count\x18\x0B \x01(\x03\x12\x16\x0A\x0Enull_row_count\x18\x0C \x01(\x03\x12\x1B\x0A\x13assertion_row_count\x18\x0D \x01(\x03\"\x92\x02\x0A\x08RuleType\x12\x19\x0A\x15RULE_TYPE_UNSPECIFIED\x10\x00\x12\x18\x0A\x14NON_NULL_EXPECTATION\x10\x01\x12\x15\x0A\x11RANGE_EXPECTATION\x10\x02\x12\x15\x0A\x11REGEX_EXPECTATION\x10\x03\x12\x1D\x0A\x19ROW_CONDITION_EXPECTATION\x10\x04\x12\x13\x0A\x0FSET_EXPECTATION\x10\x05\x12\x1F\x0A\x1BSTATISTIC_RANGE_EXPECTATION\x10\x06\x12\x1F\x0A\x1BTABLE_CONDITION_EXPECTATION\x10\x07\x12\x1A\x0A\x16UNIQUENESS_EXPECTATION\x10\x08\x12\x11\x0A\x0DSQL_ASSERTION\x10\x09\"M\x0A\x0EEvaluationType\x12\x1F\x0A\x1BEVALUATION_TYPE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07PER_ROW\x10\x01\x12\x0D\x0A\x09AGGREGATE\x10\x02\"8\x0A\x06Result\x12\x16\x0A\x12RESULT_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06PASSED\x10\x01\x12\x0A\x0A\x06FAILED\x10\x02\"\x9A\x03\x0A\x15BusinessGlossaryEvent\x12\x0F\x0A\x07message\x18\x01 \x01(\x09\x12M\x0A\x0Aevent_type\x18\x02 \x01(\x0E29.google.cloud.dataplex.v1.BusinessGlossaryEvent.EventType\x12\x10\x0A\x08resource\x18\x03 \x01(\x09\"\x8E\x02\x0A\x09EventType\x12\x1A\x0A\x16EVENT_TYPE_UNSPECIFIED\x10\x00\x12\x13\x0A\x0FGLOSSARY_CREATE\x10\x01\x12\x13\x0A\x0FGLOSSARY_UPDATE\x10\x02\x12\x13\x0A\x0FGLOSSARY_DELETE\x10\x03\x12\x1C\x0A\x18GLOSSARY_CATEGORY_CREATE\x10\x04\x12\x1C\x0A\x18GLOSSARY_CATEGORY_UPDATE\x10\x05\x12\x1C\x0A\x18GLOSSARY_CATEGORY_DELETE\x10\x06\x12\x18\x0A\x14GLOSSARY_TERM_CREATE\x10\x07\x12\x18\x0A\x14GLOSSARY_TERM_UPDATE\x10\x08\x12\x18\x0A\x14GLOSSARY_TERM_DELETE\x10\x09\"\xD2\x01\x0A\x0EEntryLinkEvent\x12\x0F\x0A\x07message\x18\x01 \x01(\x09\x12F\x0A\x0Aevent_type\x18\x02 \x01(\x0E22.google.cloud.dataplex.v1.EntryLinkEvent.EventType\x12\x10\x0A\x08resource\x18\x03 \x01(\x09\"U\x0A\x09EventType\x12\x1A\x0A\x16EVENT_TYPE_UNSPECIFIED\x10\x00\x12\x15\x0A\x11ENTRY_LINK_CREATE\x10\x01\x12\x15\x0A\x11ENTRY_LINK_DELETE\x10\x02Be\x0A\x1Ccom.google.cloud.dataplex.v1B\x09LogsProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\x06proto3" + "\x0A\xBCA\x0A#google/cloud/dataplex/v1/logs.proto\x12\x18google.cloud.dataplex.v1\x1A\x19google/api/resource.proto\x1A/google/cloud/dataplex/v1/datascans_common.proto\x1A\x1Egoogle/protobuf/duration.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\x9D\x0C\x0A\x0EDiscoveryEvent\x12\x0F\x0A\x07message\x18\x01 \x01(\x09\x12\x0F\x0A\x07lake_id\x18\x02 \x01(\x09\x12\x0F\x0A\x07zone_id\x18\x03 \x01(\x09\x12\x10\x0A\x08asset_id\x18\x04 \x01(\x09\x12\x15\x0A\x0Ddata_location\x18\x05 \x01(\x09\x12\x13\x0A\x0Bdatascan_id\x18\x06 \x01(\x09\x12@\x0A\x04type\x18\x0A \x01(\x0E22.google.cloud.dataplex.v1.DiscoveryEvent.EventType\x12H\x0A\x06config\x18\x14 \x01(\x0B26.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetailsH\x00\x12H\x0A\x06entity\x18\x15 \x01(\x0B26.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetailsH\x00\x12N\x0A\x09partition\x18\x16 \x01(\x0B29.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetailsH\x00\x12H\x0A\x06action\x18\x17 \x01(\x0B26.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetailsH\x00\x12F\x0A\x05table\x18\x18 \x01(\x0B25.google.cloud.dataplex.v1.DiscoveryEvent.TableDetailsH\x00\x1A\x9E\x01\x0A\x0DConfigDetails\x12Z\x0A\x0Aparameters\x18\x01 \x03(\x0B2F.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails.ParametersEntry\x1A1\x0A\x0FParametersEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1Ab\x0A\x0DEntityDetails\x12\x0E\x0A\x06entity\x18\x01 \x01(\x09\x12A\x0A\x04type\x18\x02 \x01(\x0E23.google.cloud.dataplex.v1.DiscoveryEvent.EntityType\x1A_\x0A\x0CTableDetails\x12\x0D\x0A\x05table\x18\x01 \x01(\x09\x12@\x0A\x04type\x18\x02 \x01(\x0E22.google.cloud.dataplex.v1.DiscoveryEvent.TableType\x1A\x98\x01\x0A\x10PartitionDetails\x12\x11\x0A\x09partition\x18\x01 \x01(\x09\x12\x0E\x0A\x06entity\x18\x02 \x01(\x09\x12A\x0A\x04type\x18\x03 \x01(\x0E23.google.cloud.dataplex.v1.DiscoveryEvent.EntityType\x12\x1E\x0A\x16sampled_data_locations\x18\x04 \x03(\x09\x1A,\x0A\x0DActionDetails\x12\x0C\x0A\x04type\x18\x01 \x01(\x09\x12\x0D\x0A\x05issue\x18\x02 \x01(\x09\"\x82\x02\x0A\x09EventType\x12\x1A\x0A\x16EVENT_TYPE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06CONFIG\x10\x01\x12\x12\x0A\x0EENTITY_CREATED\x10\x02\x12\x12\x0A\x0EENTITY_UPDATED\x10\x03\x12\x12\x0A\x0EENTITY_DELETED\x10\x04\x12\x15\x0A\x11PARTITION_CREATED\x10\x05\x12\x15\x0A\x11PARTITION_UPDATED\x10\x06\x12\x15\x0A\x11PARTITION_DELETED\x10\x07\x12\x13\x0A\x0FTABLE_PUBLISHED\x10\x0A\x12\x11\x0A\x0DTABLE_UPDATED\x10\x0B\x12\x11\x0A\x0DTABLE_IGNORED\x10\x0C\x12\x11\x0A\x0DTABLE_DELETED\x10\x0D\"A\x0A\x0AEntityType\x12\x1B\x0A\x17ENTITY_TYPE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05TABLE\x10\x01\x12\x0B\x0A\x07FILESET\x10\x02\"`\x0A\x09TableType\x12\x1A\x0A\x16TABLE_TYPE_UNSPECIFIED\x10\x00\x12\x12\x0A\x0EEXTERNAL_TABLE\x10\x01\x12\x11\x0A\x0DBIGLAKE_TABLE\x10\x02\x12\x10\x0A\x0COBJECT_TABLE\x10\x03B\x09\x0A\x07details\"\xC5\x05\x0A\x08JobEvent\x12\x0F\x0A\x07message\x18\x01 \x01(\x09\x12\x0E\x0A\x06job_id\x18\x02 \x01(\x09\x12.\x0A\x0Astart_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12,\x0A\x08end_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.Timestamp\x127\x0A\x05state\x18\x05 \x01(\x0E2(.google.cloud.dataplex.v1.JobEvent.State\x12\x0F\x0A\x07retries\x18\x06 \x01(\x05\x125\x0A\x04type\x18\x07 \x01(\x0E2'.google.cloud.dataplex.v1.JobEvent.Type\x12;\x0A\x07service\x18\x08 \x01(\x0E2*.google.cloud.dataplex.v1.JobEvent.Service\x12\x13\x0A\x0Bservice_job\x18\x09 \x01(\x09\x12N\x0A\x11execution_trigger\x18\x0B \x01(\x0E23.google.cloud.dataplex.v1.JobEvent.ExecutionTrigger\"5\x0A\x04Type\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05SPARK\x10\x01\x12\x0C\x0A\x08NOTEBOOK\x10\x02\"U\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09SUCCEEDED\x10\x01\x12\x0A\x0A\x06FAILED\x10\x02\x12\x0D\x0A\x09CANCELLED\x10\x03\x12\x0B\x0A\x07ABORTED\x10\x04\"0\x0A\x07Service\x12\x17\x0A\x13SERVICE_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08DATAPROC\x10\x01\"W\x0A\x10ExecutionTrigger\x12!\x0A\x1DEXECUTION_TRIGGER_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BTASK_CONFIG\x10\x01\x12\x0F\x0A\x0BRUN_REQUEST\x10\x02\"\xBD\x05\x0A\x0CSessionEvent\x12\x0F\x0A\x07message\x18\x01 \x01(\x09\x12\x0F\x0A\x07user_id\x18\x02 \x01(\x09\x12\x12\x0A\x0Asession_id\x18\x03 \x01(\x09\x12>\x0A\x04type\x18\x04 \x01(\x0E20.google.cloud.dataplex.v1.SessionEvent.EventType\x12C\x0A\x05query\x18\x05 \x01(\x0B22.google.cloud.dataplex.v1.SessionEvent.QueryDetailH\x00\x12\x17\x0A\x0Fevent_succeeded\x18\x06 \x01(\x08\x12\x1C\x0A\x14fast_startup_enabled\x18\x07 \x01(\x08\x126\x0A\x13unassigned_duration\x18\x08 \x01(\x0B2\x19.google.protobuf.Duration\x1A\xA3\x02\x0A\x0BQueryDetail\x12\x10\x0A\x08query_id\x18\x01 \x01(\x09\x12\x12\x0A\x0Aquery_text\x18\x02 \x01(\x09\x12I\x0A\x06engine\x18\x03 \x01(\x0E29.google.cloud.dataplex.v1.SessionEvent.QueryDetail.Engine\x12+\x0A\x08duration\x18\x04 \x01(\x0B2\x19.google.protobuf.Duration\x12\x19\x0A\x11result_size_bytes\x18\x05 \x01(\x03\x12\x1C\x0A\x14data_processed_bytes\x18\x06 \x01(\x03\"=\x0A\x06Engine\x12\x16\x0A\x12ENGINE_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09SPARK_SQL\x10\x01\x12\x0C\x0A\x08BIGQUERY\x10\x02\"S\x0A\x09EventType\x12\x1A\x0A\x16EVENT_TYPE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05START\x10\x01\x12\x08\x0A\x04STOP\x10\x02\x12\x09\x0A\x05QUERY\x10\x03\x12\x0A\x0A\x06CREATE\x10\x04B\x08\x0A\x06detail\"\xBA\x07\x0A\x0FGovernanceEvent\x12\x0F\x0A\x07message\x18\x01 \x01(\x09\x12G\x0A\x0Aevent_type\x18\x02 \x01(\x0E23.google.cloud.dataplex.v1.GovernanceEvent.EventType\x12E\x0A\x06entity\x18\x03 \x01(\x0B20.google.cloud.dataplex.v1.GovernanceEvent.EntityH\x00\x88\x01\x01\x1A\xD2\x01\x0A\x06Entity\x123\x0A\x06entity\x18\x01 \x01(\x09B#\xFAA \x0A\x1Edataplex.googleapis.com/Entity\x12P\x0A\x0Bentity_type\x18\x02 \x01(\x0E2;.google.cloud.dataplex.v1.GovernanceEvent.Entity.EntityType\"A\x0A\x0AEntityType\x12\x1B\x0A\x17ENTITY_TYPE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05TABLE\x10\x01\x12\x0B\x0A\x07FILESET\x10\x02\"\xA5\x04\x0A\x09EventType\x12\x1A\x0A\x16EVENT_TYPE_UNSPECIFIED\x10\x00\x12\x1E\x0A\x1ARESOURCE_IAM_POLICY_UPDATE\x10\x01\x12\x19\x0A\x15BIGQUERY_TABLE_CREATE\x10\x02\x12\x19\x0A\x15BIGQUERY_TABLE_UPDATE\x10\x03\x12\x19\x0A\x15BIGQUERY_TABLE_DELETE\x10\x04\x12\x1E\x0A\x1ABIGQUERY_CONNECTION_CREATE\x10\x05\x12\x1E\x0A\x1ABIGQUERY_CONNECTION_UPDATE\x10\x06\x12\x1E\x0A\x1ABIGQUERY_CONNECTION_DELETE\x10\x07\x12\x1C\x0A\x18BIGQUERY_TAXONOMY_CREATE\x10\x0A\x12\x1E\x0A\x1ABIGQUERY_POLICY_TAG_CREATE\x10\x0B\x12\x1E\x0A\x1ABIGQUERY_POLICY_TAG_DELETE\x10\x0C\x12&\x0A\"BIGQUERY_POLICY_TAG_SET_IAM_POLICY\x10\x0D\x12\x18\x0A\x14ACCESS_POLICY_UPDATE\x10\x0E\x12%\x0A!GOVERNANCE_RULE_MATCHED_RESOURCES\x10\x0F\x12(\x0A\$GOVERNANCE_RULE_SEARCH_LIMIT_EXCEEDS\x10\x10\x12\x1A\x0A\x16GOVERNANCE_RULE_ERRORS\x10\x11\x12\x1E\x0A\x1AGOVERNANCE_RULE_PROCESSING\x10\x12B\x09\x0A\x07_entity\"\xF3\x13\x0A\x0DDataScanEvent\x12\x13\x0A\x0Bdata_source\x18\x01 \x01(\x09\x12\x0E\x0A\x06job_id\x18\x02 \x01(\x09\x12/\x0A\x0Bcreate_time\x18\x0C \x01(\x0B2\x1A.google.protobuf.Timestamp\x12.\x0A\x0Astart_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12,\x0A\x08end_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12>\x0A\x04type\x18\x05 \x01(\x0E20.google.cloud.dataplex.v1.DataScanEvent.ScanType\x12<\x0A\x05state\x18\x06 \x01(\x0E2-.google.cloud.dataplex.v1.DataScanEvent.State\x12\x0F\x0A\x07message\x18\x07 \x01(\x09\x12\x14\x0A\x0Cspec_version\x18\x08 \x01(\x09\x12@\x0A\x07trigger\x18\x09 \x01(\x0E2/.google.cloud.dataplex.v1.DataScanEvent.Trigger\x12<\x0A\x05scope\x18\x0A \x01(\x0E2-.google.cloud.dataplex.v1.DataScanEvent.Scope\x12Q\x0A\x0Cdata_profile\x18e \x01(\x0B29.google.cloud.dataplex.v1.DataScanEvent.DataProfileResultH\x00\x12Q\x0A\x0Cdata_quality\x18f \x01(\x0B29.google.cloud.dataplex.v1.DataScanEvent.DataQualityResultH\x00\x12b\x0A\x14data_profile_configs\x18\xC9\x01 \x01(\x0B2A.google.cloud.dataplex.v1.DataScanEvent.DataProfileAppliedConfigsH\x01\x12b\x0A\x14data_quality_configs\x18\xCA\x01 \x01(\x0B2A.google.cloud.dataplex.v1.DataScanEvent.DataQualityAppliedConfigsH\x01\x12_\x0A\x18post_scan_actions_result\x18\x0B \x01(\x0B2=.google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult\x12\\\x0A\x19catalog_publishing_status\x18\x0D \x01(\x0B29.google.cloud.dataplex.v1.DataScanCatalogPublishingStatus\x1A&\x0A\x11DataProfileResult\x12\x11\x0A\x09row_count\x18\x01 \x01(\x03\x1A\x9C\x04\x0A\x11DataQualityResult\x12\x11\x0A\x09row_count\x18\x01 \x01(\x03\x12\x0E\x0A\x06passed\x18\x02 \x01(\x08\x12h\x0A\x10dimension_passed\x18\x03 \x03(\x0B2N.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult.DimensionPassedEntry\x12\x0D\x0A\x05score\x18\x04 \x01(\x02\x12f\x0A\x0Fdimension_score\x18\x05 \x03(\x0B2M.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult.DimensionScoreEntry\x12`\x0A\x0Ccolumn_score\x18\x06 \x03(\x0B2J.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult.ColumnScoreEntry\x1A6\x0A\x14DimensionPassedEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x08:\x028\x01\x1A5\x0A\x13DimensionScoreEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x02:\x028\x01\x1A2\x0A\x10ColumnScoreEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x02:\x028\x01\x1Ap\x0A\x19DataProfileAppliedConfigs\x12\x18\x0A\x10sampling_percent\x18\x01 \x01(\x02\x12\x1A\x0A\x12row_filter_applied\x18\x02 \x01(\x08\x12\x1D\x0A\x15column_filter_applied\x18\x03 \x01(\x08\x1AQ\x0A\x19DataQualityAppliedConfigs\x12\x18\x0A\x10sampling_percent\x18\x01 \x01(\x02\x12\x1A\x0A\x12row_filter_applied\x18\x02 \x01(\x08\x1A\xE6\x02\x0A\x15PostScanActionsResult\x12r\x0A\x16bigquery_export_result\x18\x01 \x01(\x0B2R.google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult.BigQueryExportResult\x1A\xD8\x01\x0A\x14BigQueryExportResult\x12g\x0A\x05state\x18\x01 \x01(\x0E2X.google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult.BigQueryExportResult.State\x12\x0F\x0A\x07message\x18\x02 \x01(\x09\"F\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09SUCCEEDED\x10\x01\x12\x0A\x0A\x06FAILED\x10\x02\x12\x0B\x0A\x07SKIPPED\x10\x03\"]\x0A\x08ScanType\x12\x19\x0A\x15SCAN_TYPE_UNSPECIFIED\x10\x00\x12\x10\x0A\x0CDATA_PROFILE\x10\x01\x12\x10\x0A\x0CDATA_QUALITY\x10\x02\x12\x12\x0A\x0EDATA_DISCOVERY\x10\x04\"b\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07STARTED\x10\x01\x12\x0D\x0A\x09SUCCEEDED\x10\x02\x12\x0A\x0A\x06FAILED\x10\x03\x12\x0D\x0A\x09CANCELLED\x10\x04\x12\x0B\x0A\x07CREATED\x10\x05\"M\x0A\x07Trigger\x12\x17\x0A\x13TRIGGER_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09ON_DEMAND\x10\x01\x12\x0C\x0A\x08SCHEDULE\x10\x02\x12\x0C\x0A\x08ONE_TIME\x10\x03\"9\x0A\x05Scope\x12\x15\x0A\x11SCOPE_UNSPECIFIED\x10\x00\x12\x08\x0A\x04FULL\x10\x01\x12\x0F\x0A\x0BINCREMENTAL\x10\x02B\x08\x0A\x06resultB\x10\x0A\x0EappliedConfigs\"\xB1\x07\x0A\x19DataQualityScanRuleResult\x12\x0E\x0A\x06job_id\x18\x01 \x01(\x09\x12\x13\x0A\x0Bdata_source\x18\x02 \x01(\x09\x12\x0E\x0A\x06column\x18\x03 \x01(\x09\x12\x11\x0A\x09rule_name\x18\x04 \x01(\x09\x12O\x0A\x09rule_type\x18\x05 \x01(\x0E2<.google.cloud.dataplex.v1.DataQualityScanRuleResult.RuleType\x12Z\x0A\x0Eevalution_type\x18\x06 \x01(\x0E2B.google.cloud.dataplex.v1.DataQualityScanRuleResult.EvaluationType\x12\x16\x0A\x0Erule_dimension\x18\x07 \x01(\x09\x12\x19\x0A\x11threshold_percent\x18\x08 \x01(\x01\x12J\x0A\x06result\x18\x09 \x01(\x0E2:.google.cloud.dataplex.v1.DataQualityScanRuleResult.Result\x12\x1B\x0A\x13evaluated_row_count\x18\x0A \x01(\x03\x12\x18\x0A\x10passed_row_count\x18\x0B \x01(\x03\x12\x16\x0A\x0Enull_row_count\x18\x0C \x01(\x03\x12\x1B\x0A\x13assertion_row_count\x18\x0D \x01(\x03\"\xAA\x02\x0A\x08RuleType\x12\x19\x0A\x15RULE_TYPE_UNSPECIFIED\x10\x00\x12\x18\x0A\x14NON_NULL_EXPECTATION\x10\x01\x12\x15\x0A\x11RANGE_EXPECTATION\x10\x02\x12\x15\x0A\x11REGEX_EXPECTATION\x10\x03\x12\x1D\x0A\x19ROW_CONDITION_EXPECTATION\x10\x04\x12\x13\x0A\x0FSET_EXPECTATION\x10\x05\x12\x1F\x0A\x1BSTATISTIC_RANGE_EXPECTATION\x10\x06\x12\x1F\x0A\x1BTABLE_CONDITION_EXPECTATION\x10\x07\x12\x1A\x0A\x16UNIQUENESS_EXPECTATION\x10\x08\x12\x11\x0A\x0DSQL_ASSERTION\x10\x09\x12\x16\x0A\x12TEMPLATE_REFERENCE\x10\x0A\"M\x0A\x0EEvaluationType\x12\x1F\x0A\x1BEVALUATION_TYPE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07PER_ROW\x10\x01\x12\x0D\x0A\x09AGGREGATE\x10\x02\"8\x0A\x06Result\x12\x16\x0A\x12RESULT_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06PASSED\x10\x01\x12\x0A\x0A\x06FAILED\x10\x02\"\x9A\x03\x0A\x15BusinessGlossaryEvent\x12\x0F\x0A\x07message\x18\x01 \x01(\x09\x12M\x0A\x0Aevent_type\x18\x02 \x01(\x0E29.google.cloud.dataplex.v1.BusinessGlossaryEvent.EventType\x12\x10\x0A\x08resource\x18\x03 \x01(\x09\"\x8E\x02\x0A\x09EventType\x12\x1A\x0A\x16EVENT_TYPE_UNSPECIFIED\x10\x00\x12\x13\x0A\x0FGLOSSARY_CREATE\x10\x01\x12\x13\x0A\x0FGLOSSARY_UPDATE\x10\x02\x12\x13\x0A\x0FGLOSSARY_DELETE\x10\x03\x12\x1C\x0A\x18GLOSSARY_CATEGORY_CREATE\x10\x04\x12\x1C\x0A\x18GLOSSARY_CATEGORY_UPDATE\x10\x05\x12\x1C\x0A\x18GLOSSARY_CATEGORY_DELETE\x10\x06\x12\x18\x0A\x14GLOSSARY_TERM_CREATE\x10\x07\x12\x18\x0A\x14GLOSSARY_TERM_UPDATE\x10\x08\x12\x18\x0A\x14GLOSSARY_TERM_DELETE\x10\x09\"\xD2\x01\x0A\x0EEntryLinkEvent\x12\x0F\x0A\x07message\x18\x01 \x01(\x09\x12F\x0A\x0Aevent_type\x18\x02 \x01(\x0E22.google.cloud.dataplex.v1.EntryLinkEvent.EventType\x12\x10\x0A\x08resource\x18\x03 \x01(\x09\"U\x0A\x09EventType\x12\x1A\x0A\x16EVENT_TYPE_UNSPECIFIED\x10\x00\x12\x15\x0A\x11ENTRY_LINK_CREATE\x10\x01\x12\x15\x0A\x11ENTRY_LINK_DELETE\x10\x02Be\x0A\x1Ccom.google.cloud.dataplex.v1B\x09LogsProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\x06proto3" , true); static::$is_initialized = true; diff --git a/Dataplex/metadata/V1/Metadata.php b/Dataplex/metadata/V1/Metadata.php index 0b99b269411d..d12ce793e0c0 100644 --- a/Dataplex/metadata/V1/Metadata.php +++ b/Dataplex/metadata/V1/Metadata.php @@ -21,7 +21,7 @@ public static function initOnce() { \GPBMetadata\Google\Protobuf\GPBEmpty::initOnce(); \GPBMetadata\Google\Protobuf\Timestamp::initOnce(); $pool->internalAddGeneratedFile( - "\x0A\xA49\x0A'google/cloud/dataplex/v1/metadata.proto\x12\x18google.cloud.dataplex.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\x9E\x01\x0A\x13CreateEntityRequest\x124\x0A\x06parent\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Zone\x125\x0A\x06entity\x18\x03 \x01(\x0B2 .google.cloud.dataplex.v1.EntityB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"h\x0A\x13UpdateEntityRequest\x125\x0A\x06entity\x18\x02 \x01(\x0B2 .google.cloud.dataplex.v1.EntityB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"^\x0A\x13DeleteEntityRequest\x124\x0A\x04name\x18\x01 \x01(\x09B&\xE0A\x02\xFAA \x0A\x1Edataplex.googleapis.com/Entity\x12\x11\x0A\x04etag\x18\x02 \x01(\x09B\x03\xE0A\x02\"\xA3\x02\x0A\x13ListEntitiesRequest\x124\x0A\x06parent\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Zone\x12K\x0A\x04view\x18\x02 \x01(\x0E28.google.cloud.dataplex.v1.ListEntitiesRequest.EntityViewB\x03\xE0A\x02\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\"C\x0A\x0AEntityView\x12\x1B\x0A\x17ENTITY_VIEW_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06TABLES\x10\x01\x12\x0C\x0A\x08FILESETS\x10\x02\"c\x0A\x14ListEntitiesResponse\x122\x0A\x08entities\x18\x01 \x03(\x0B2 .google.cloud.dataplex.v1.Entity\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xDE\x01\x0A\x10GetEntityRequest\x124\x0A\x04name\x18\x01 \x01(\x09B&\xE0A\x02\xFAA \x0A\x1Edataplex.googleapis.com/Entity\x12H\x0A\x04view\x18\x02 \x01(\x0E25.google.cloud.dataplex.v1.GetEntityRequest.EntityViewB\x03\xE0A\x01\"J\x0A\x0AEntityView\x12\x1B\x0A\x17ENTITY_VIEW_UNSPECIFIED\x10\x00\x12\x09\x0A\x05BASIC\x10\x01\x12\x0A\x0A\x06SCHEMA\x10\x02\x12\x08\x0A\x04FULL\x10\x04\"\x95\x01\x0A\x15ListPartitionsRequest\x126\x0A\x06parent\x18\x01 \x01(\x09B&\xE0A\x02\xFAA \x0A\x1Edataplex.googleapis.com/Entity\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\"\xA9\x01\x0A\x16CreatePartitionRequest\x126\x0A\x06parent\x18\x01 \x01(\x09B&\xE0A\x02\xFAA \x0A\x1Edataplex.googleapis.com/Entity\x12;\x0A\x09partition\x18\x03 \x01(\x0B2#.google.cloud.dataplex.v1.PartitionB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"f\x0A\x16DeletePartitionRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataplex.googleapis.com/Partition\x12\x13\x0A\x04etag\x18\x02 \x01(\x09B\x05\x18\x01\xE0A\x01\"j\x0A\x16ListPartitionsResponse\x127\x0A\x0Apartitions\x18\x01 \x03(\x0B2#.google.cloud.dataplex.v1.Partition\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"N\x0A\x13GetPartitionRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataplex.googleapis.com/Partition\"\xC9\x09\x0A\x06Entity\x124\x0A\x04name\x18\x01 \x01(\x09B&\xE0A\x03\xFAA \x0A\x1Edataplex.googleapis.com/Entity\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x03 \x01(\x09B\x03\xE0A\x01\x124\x0A\x0Bcreate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x0F\x0A\x02id\x18\x07 \x01(\x09B\x03\xE0A\x02\x12\x11\x0A\x04etag\x18\x08 \x01(\x09B\x03\xE0A\x01\x12;\x0A\x04type\x18\x0A \x01(\x0E2%.google.cloud.dataplex.v1.Entity.TypeB\x06\xE0A\x02\xE0A\x05\x12\x15\x0A\x05asset\x18\x0B \x01(\x09B\x06\xE0A\x02\xE0A\x05\x12\x19\x0A\x09data_path\x18\x0C \x01(\x09B\x06\xE0A\x02\xE0A\x05\x12\x1E\x0A\x11data_path_pattern\x18\x0D \x01(\x09B\x03\xE0A\x01\x12\x1A\x0A\x0Dcatalog_entry\x18\x0E \x01(\x09B\x03\xE0A\x03\x12?\x0A\x06system\x18\x0F \x01(\x0E2'.google.cloud.dataplex.v1.StorageSystemB\x06\xE0A\x02\xE0A\x05\x12<\x0A\x06format\x18\x10 \x01(\x0B2'.google.cloud.dataplex.v1.StorageFormatB\x03\xE0A\x02\x12P\x0A\x0Dcompatibility\x18\x13 \x01(\x0B24.google.cloud.dataplex.v1.Entity.CompatibilityStatusB\x03\xE0A\x03\x12<\x0A\x06access\x18\x15 \x01(\x0B2'.google.cloud.dataplex.v1.StorageAccessB\x03\xE0A\x03\x12\x10\x0A\x03uid\x18\x16 \x01(\x09B\x03\xE0A\x03\x125\x0A\x06schema\x182 \x01(\x0B2 .google.cloud.dataplex.v1.SchemaB\x03\xE0A\x02\x1A\x90\x02\x0A\x13CompatibilityStatus\x12_\x0A\x0Ehive_metastore\x18\x01 \x01(\x0B2B.google.cloud.dataplex.v1.Entity.CompatibilityStatus.CompatibilityB\x03\xE0A\x03\x12Y\x0A\x08bigquery\x18\x02 \x01(\x0B2B.google.cloud.dataplex.v1.Entity.CompatibilityStatus.CompatibilityB\x03\xE0A\x03\x1A=\x0A\x0DCompatibility\x12\x17\x0A\x0Acompatible\x18\x01 \x01(\x08B\x03\xE0A\x03\x12\x13\x0A\x06reason\x18\x02 \x01(\x09B\x03\xE0A\x03\"4\x0A\x04Type\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05TABLE\x10\x01\x12\x0B\x0A\x07FILESET\x10\x02:x\xEAAu\x0A\x1Edataplex.googleapis.com/Entity\x12Sprojects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/entities/{entity}\"\xA1\x02\x0A\x09Partition\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x03\xFAA#\x0A!dataplex.googleapis.com/Partition\x12\x16\x0A\x06values\x18\x02 \x03(\x09B\x06\xE0A\x02\xE0A\x05\x12\x18\x0A\x08location\x18\x03 \x01(\x09B\x06\xE0A\x02\xE0A\x05\x12\x13\x0A\x04etag\x18\x04 \x01(\x09B\x05\x18\x01\xE0A\x01:\x93\x01\xEAA\x8F\x01\x0A!dataplex.googleapis.com/Partition\x12jprojects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/entities/{entity}/partitions/{partition}\"\xB7\x07\x0A\x06Schema\x12\x19\x0A\x0Cuser_managed\x18\x01 \x01(\x08B\x03\xE0A\x02\x12A\x0A\x06fields\x18\x02 \x03(\x0B2,.google.cloud.dataplex.v1.Schema.SchemaFieldB\x03\xE0A\x01\x12N\x0A\x10partition_fields\x18\x03 \x03(\x0B2/.google.cloud.dataplex.v1.Schema.PartitionFieldB\x03\xE0A\x01\x12M\x0A\x0Fpartition_style\x18\x04 \x01(\x0E2/.google.cloud.dataplex.v1.Schema.PartitionStyleB\x03\xE0A\x01\x1A\xF1\x01\x0A\x0BSchemaField\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Bdescription\x18\x02 \x01(\x09B\x03\xE0A\x01\x128\x0A\x04type\x18\x03 \x01(\x0E2%.google.cloud.dataplex.v1.Schema.TypeB\x03\xE0A\x02\x128\x0A\x04mode\x18\x04 \x01(\x0E2%.google.cloud.dataplex.v1.Schema.ModeB\x03\xE0A\x02\x12A\x0A\x06fields\x18\x0A \x03(\x0B2,.google.cloud.dataplex.v1.Schema.SchemaFieldB\x03\xE0A\x01\x1A`\x0A\x0EPartitionField\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12;\x0A\x04type\x18\x02 \x01(\x0E2%.google.cloud.dataplex.v1.Schema.TypeB\x06\xE0A\x02\xE0A\x05\"\xC9\x01\x0A\x04Type\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07BOOLEAN\x10\x01\x12\x08\x0A\x04BYTE\x10\x02\x12\x09\x0A\x05INT16\x10\x03\x12\x09\x0A\x05INT32\x10\x04\x12\x09\x0A\x05INT64\x10\x05\x12\x09\x0A\x05FLOAT\x10\x06\x12\x0A\x0A\x06DOUBLE\x10\x07\x12\x0B\x0A\x07DECIMAL\x10\x08\x12\x0A\x0A\x06STRING\x10\x09\x12\x0A\x0A\x06BINARY\x10\x0A\x12\x0D\x0A\x09TIMESTAMP\x10\x0B\x12\x08\x0A\x04DATE\x10\x0C\x12\x08\x0A\x04TIME\x10\x0D\x12\x0A\x0A\x06RECORD\x10\x0E\x12\x08\x0A\x04NULL\x10d\"F\x0A\x04Mode\x12\x14\x0A\x10MODE_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08REQUIRED\x10\x01\x12\x0C\x0A\x08NULLABLE\x10\x02\x12\x0C\x0A\x08REPEATED\x10\x03\"F\x0A\x0EPartitionStyle\x12\x1F\x0A\x1BPARTITION_STYLE_UNSPECIFIED\x10\x00\x12\x13\x0A\x0FHIVE_COMPATIBLE\x10\x01\"\xF4\x06\x0A\x0DStorageFormat\x12C\x0A\x06format\x18\x01 \x01(\x0E2..google.cloud.dataplex.v1.StorageFormat.FormatB\x03\xE0A\x03\x12Z\x0A\x12compression_format\x18\x02 \x01(\x0E29.google.cloud.dataplex.v1.StorageFormat.CompressionFormatB\x03\xE0A\x01\x12\x16\x0A\x09mime_type\x18\x03 \x01(\x09B\x03\xE0A\x02\x12F\x0A\x03csv\x18\x0A \x01(\x0B22.google.cloud.dataplex.v1.StorageFormat.CsvOptionsB\x03\xE0A\x01H\x00\x12H\x0A\x04json\x18\x0B \x01(\x0B23.google.cloud.dataplex.v1.StorageFormat.JsonOptionsB\x03\xE0A\x01H\x00\x12N\x0A\x07iceberg\x18\x0C \x01(\x0B26.google.cloud.dataplex.v1.StorageFormat.IcebergOptionsB\x03\xE0A\x01H\x00\x1Ai\x0A\x0ACsvOptions\x12\x15\x0A\x08encoding\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x18\x0A\x0Bheader_rows\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x16\x0A\x09delimiter\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x12\x0A\x05quote\x18\x04 \x01(\x09B\x03\xE0A\x01\x1A\$\x0A\x0BJsonOptions\x12\x15\x0A\x08encoding\x18\x01 \x01(\x09B\x03\xE0A\x01\x1A0\x0A\x0EIcebergOptions\x12\x1E\x0A\x11metadata_location\x18\x01 \x01(\x09B\x03\xE0A\x01\"\xAB\x01\x0A\x06Format\x12\x16\x0A\x12FORMAT_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07PARQUET\x10\x01\x12\x08\x0A\x04AVRO\x10\x02\x12\x07\x0A\x03ORC\x10\x03\x12\x07\x0A\x03CSV\x10d\x12\x08\x0A\x04JSON\x10e\x12\x0A\x0A\x05IMAGE\x10\xC8\x01\x12\x0A\x0A\x05AUDIO\x10\xC9\x01\x12\x0A\x0A\x05VIDEO\x10\xCA\x01\x12\x09\x0A\x04TEXT\x10\xCB\x01\x12\x0D\x0A\x08TFRECORD\x10\xCC\x01\x12\x0A\x0A\x05OTHER\x10\xE8\x07\x12\x0C\x0A\x07UNKNOWN\x10\xE9\x07\"L\x0A\x11CompressionFormat\x12\"\x0A\x1ECOMPRESSION_FORMAT_UNSPECIFIED\x10\x00\x12\x08\x0A\x04GZIP\x10\x02\x12\x09\x0A\x05BZIP2\x10\x03B\x09\x0A\x07options\"\x9A\x01\x0A\x0DStorageAccess\x12E\x0A\x04read\x18\x15 \x01(\x0E22.google.cloud.dataplex.v1.StorageAccess.AccessModeB\x03\xE0A\x03\"B\x0A\x0AAccessMode\x12\x1B\x0A\x17ACCESS_MODE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06DIRECT\x10\x01\x12\x0B\x0A\x07MANAGED\x10\x02*P\x0A\x0DStorageSystem\x12\x1E\x0A\x1ASTORAGE_SYSTEM_UNSPECIFIED\x10\x00\x12\x11\x0A\x0DCLOUD_STORAGE\x10\x01\x12\x0C\x0A\x08BIGQUERY\x10\x022\x89\x0E\x0A\x0FMetadataService\x12\xBD\x01\x0A\x0CCreateEntity\x12-.google.cloud.dataplex.v1.CreateEntityRequest\x1A .google.cloud.dataplex.v1.Entity\"\\\xDAA\x0Dparent,entity\x82\xD3\xE4\x93\x02F\"*\x12\x12*\x12\x12internalAddGeneratedFile( - "\x0A\x81O\x0A&google/cloud/dataplex/v1/service.proto\x12\x18google.cloud.dataplex.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A(google/cloud/dataplex/v1/resources.proto\x1A\$google/cloud/dataplex/v1/tasks.proto\x1A#google/longrunning/operations.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xB3\x01\x0A\x11CreateLakeRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12\x14\x0A\x07lake_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x121\x0A\x04lake\x18\x03 \x01(\x0B2\x1E.google.cloud.dataplex.v1.LakeB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"\x98\x01\x0A\x11UpdateLakeRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x121\x0A\x04lake\x18\x02 \x01(\x0B2\x1E.google.cloud.dataplex.v1.LakeB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"G\x0A\x11DeleteLakeRequest\x122\x0A\x04name\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Lake\"\xAA\x01\x0A\x10ListLakesRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\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\"z\x0A\x11ListLakesResponse\x12-\x0A\x05lakes\x18\x01 \x03(\x0B2\x1E.google.cloud.dataplex.v1.Lake\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x1D\x0A\x15unreachable_locations\x18\x03 \x03(\x09\"\x7F\x0A\x16ListLakeActionsRequest\x124\x0A\x06parent\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Lake\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\"a\x0A\x13ListActionsResponse\x121\x0A\x07actions\x18\x01 \x03(\x0B2 .google.cloud.dataplex.v1.Action\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"D\x0A\x0EGetLakeRequest\x122\x0A\x04name\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Lake\"\xAE\x01\x0A\x11CreateZoneRequest\x124\x0A\x06parent\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Lake\x12\x14\x0A\x07zone_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x121\x0A\x04zone\x18\x03 \x01(\x0B2\x1E.google.cloud.dataplex.v1.ZoneB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"\x98\x01\x0A\x11UpdateZoneRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x121\x0A\x04zone\x18\x02 \x01(\x0B2\x1E.google.cloud.dataplex.v1.ZoneB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"G\x0A\x11DeleteZoneRequest\x122\x0A\x04name\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Zone\"\xA5\x01\x0A\x10ListZonesRequest\x124\x0A\x06parent\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Lake\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\"[\x0A\x11ListZonesResponse\x12-\x0A\x05zones\x18\x01 \x03(\x0B2\x1E.google.cloud.dataplex.v1.Zone\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x7F\x0A\x16ListZoneActionsRequest\x124\x0A\x06parent\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Zone\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\"D\x0A\x0EGetZoneRequest\x122\x0A\x04name\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Zone\"\xB2\x01\x0A\x12CreateAssetRequest\x124\x0A\x06parent\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Zone\x12\x15\x0A\x08asset_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x123\x0A\x05asset\x18\x03 \x01(\x0B2\x1F.google.cloud.dataplex.v1.AssetB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"\x9B\x01\x0A\x12UpdateAssetRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x123\x0A\x05asset\x18\x02 \x01(\x0B2\x1F.google.cloud.dataplex.v1.AssetB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"I\x0A\x12DeleteAssetRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddataplex.googleapis.com/Asset\"\xA6\x01\x0A\x11ListAssetsRequest\x124\x0A\x06parent\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Zone\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\"^\x0A\x12ListAssetsResponse\x12/\x0A\x06assets\x18\x01 \x03(\x0B2\x1F.google.cloud.dataplex.v1.Asset\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x81\x01\x0A\x17ListAssetActionsRequest\x125\x0A\x06parent\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddataplex.googleapis.com/Asset\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\"F\x0A\x0FGetAssetRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddataplex.googleapis.com/Asset\"\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\"\xAE\x01\x0A\x11CreateTaskRequest\x124\x0A\x06parent\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Lake\x12\x14\x0A\x07task_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x121\x0A\x04task\x18\x03 \x01(\x0B2\x1E.google.cloud.dataplex.v1.TaskB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"\x98\x01\x0A\x11UpdateTaskRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x121\x0A\x04task\x18\x02 \x01(\x0B2\x1E.google.cloud.dataplex.v1.TaskB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"G\x0A\x11DeleteTaskRequest\x122\x0A\x04name\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Task\"\xA5\x01\x0A\x10ListTasksRequest\x124\x0A\x06parent\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Lake\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\"z\x0A\x11ListTasksResponse\x12-\x0A\x05tasks\x18\x01 \x03(\x0B2\x1E.google.cloud.dataplex.v1.Task\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x1D\x0A\x15unreachable_locations\x18\x03 \x03(\x09\"D\x0A\x0EGetTaskRequest\x122\x0A\x04name\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Task\"B\x0A\x0DGetJobRequest\x121\x0A\x04name\x18\x01 \x01(\x09B#\xE0A\x02\xFAA\x1D\x0A\x1Bdataplex.googleapis.com/Job\"\xB2\x02\x0A\x0ERunTaskRequest\x122\x0A\x04name\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Task\x12I\x0A\x06labels\x18\x03 \x03(\x0B24.google.cloud.dataplex.v1.RunTaskRequest.LabelsEntryB\x03\xE0A\x01\x12E\x0A\x04args\x18\x04 \x03(\x0B22.google.cloud.dataplex.v1.RunTaskRequest.ArgsEntryB\x03\xE0A\x01\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1A+\x0A\x09ArgsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"=\x0A\x0FRunTaskResponse\x12*\x0A\x03job\x18\x01 \x01(\x0B2\x1D.google.cloud.dataplex.v1.Job\"x\x0A\x0FListJobsRequest\x124\x0A\x06parent\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Task\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\"X\x0A\x10ListJobsResponse\x12+\x0A\x04jobs\x18\x01 \x03(\x0B2\x1D.google.cloud.dataplex.v1.Job\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"E\x0A\x10CancelJobRequest\x121\x0A\x04name\x18\x01 \x01(\x09B#\xE0A\x02\xFAA\x1D\x0A\x1Bdataplex.googleapis.com/Job2\x8A(\x0A\x0FDataplexService\x12\xC3\x01\x0A\x0ACreateLake\x12+.google.cloud.dataplex.v1.CreateLakeRequest\x1A\x1D.google.longrunning.Operation\"i\xCAA\x19\x0A\x04Lake\x12\x11OperationMetadata\xDAA\x13parent,lake,lake_id\x82\xD3\xE4\x93\x021\")/v1/{parent=projects/*/locations/*}/lakes:\x04lake\x12\xC5\x01\x0A\x0AUpdateLake\x12+.google.cloud.dataplex.v1.UpdateLakeRequest\x1A\x1D.google.longrunning.Operation\"k\xCAA\x19\x0A\x04Lake\x12\x11OperationMetadata\xDAA\x10lake,update_mask\x82\xD3\xE4\x93\x0262./v1/{lake.name=projects/*/locations/*/lakes/*}:\x04lake\x12\xBF\x01\x0A\x0ADeleteLake\x12+.google.cloud.dataplex.v1.DeleteLakeRequest\x1A\x1D.google.longrunning.Operation\"e\xCAA*\x0A\x15google.protobuf.Empty\x12\x11OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x02+*)/v1/{name=projects/*/locations/*/lakes/*}\x12\xA0\x01\x0A\x09ListLakes\x12*.google.cloud.dataplex.v1.ListLakesRequest\x1A+.google.cloud.dataplex.v1.ListLakesResponse\":\xDAA\x06parent\x82\xD3\xE4\x93\x02+\x12)/v1/{parent=projects/*/locations/*}/lakes\x12\x8D\x01\x0A\x07GetLake\x12(.google.cloud.dataplex.v1.GetLakeRequest\x1A\x1E.google.cloud.dataplex.v1.Lake\"8\xDAA\x04name\x82\xD3\xE4\x93\x02+\x12)/v1/{name=projects/*/locations/*/lakes/*}\x12\xB8\x01\x0A\x0FListLakeActions\x120.google.cloud.dataplex.v1.ListLakeActionsRequest\x1A-.google.cloud.dataplex.v1.ListActionsResponse\"D\xDAA\x06parent\x82\xD3\xE4\x93\x025\x123/v1/{parent=projects/*/locations/*/lakes/*}/actions\x12\xCB\x01\x0A\x0ACreateZone\x12+.google.cloud.dataplex.v1.CreateZoneRequest\x1A\x1D.google.longrunning.Operation\"q\xCAA\x19\x0A\x04Zone\x12\x11OperationMetadata\xDAA\x13parent,zone,zone_id\x82\xD3\xE4\x93\x029\"1/v1/{parent=projects/*/locations/*/lakes/*}/zones:\x04zone\x12\xCD\x01\x0A\x0AUpdateZone\x12+.google.cloud.dataplex.v1.UpdateZoneRequest\x1A\x1D.google.longrunning.Operation\"s\xCAA\x19\x0A\x04Zone\x12\x11OperationMetadata\xDAA\x10zone,update_mask\x82\xD3\xE4\x93\x02>26/v1/{zone.name=projects/*/locations/*/lakes/*/zones/*}:\x04zone\x12\xC7\x01\x0A\x0ADeleteZone\x12+.google.cloud.dataplex.v1.DeleteZoneRequest\x1A\x1D.google.longrunning.Operation\"m\xCAA*\x0A\x15google.protobuf.Empty\x12\x11OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x023*1/v1/{name=projects/*/locations/*/lakes/*/zones/*}\x12\xA8\x01\x0A\x09ListZones\x12*.google.cloud.dataplex.v1.ListZonesRequest\x1A+.google.cloud.dataplex.v1.ListZonesResponse\"B\xDAA\x06parent\x82\xD3\xE4\x93\x023\x121/v1/{parent=projects/*/locations/*/lakes/*}/zones\x12\x95\x01\x0A\x07GetZone\x12(.google.cloud.dataplex.v1.GetZoneRequest\x1A\x1E.google.cloud.dataplex.v1.Zone\"@\xDAA\x04name\x82\xD3\xE4\x93\x023\x121/v1/{name=projects/*/locations/*/lakes/*/zones/*}\x12\xC0\x01\x0A\x0FListZoneActions\x120.google.cloud.dataplex.v1.ListZoneActionsRequest\x1A-.google.cloud.dataplex.v1.ListActionsResponse\"L\xDAA\x06parent\x82\xD3\xE4\x93\x02=\x12;/v1/{parent=projects/*/locations/*/lakes/*/zones/*}/actions\x12\xDA\x01\x0A\x0BCreateAsset\x12,.google.cloud.dataplex.v1.CreateAssetRequest\x1A\x1D.google.longrunning.Operation\"~\xCAA\x1A\x0A\x05Asset\x12\x11OperationMetadata\xDAA\x15parent,asset,asset_id\x82\xD3\xE4\x93\x02C\":/v1/{parent=projects/*/locations/*/lakes/*/zones/*}/assets:\x05asset\x12\xDD\x01\x0A\x0BUpdateAsset\x12,.google.cloud.dataplex.v1.UpdateAssetRequest\x1A\x1D.google.longrunning.Operation\"\x80\x01\xCAA\x1A\x0A\x05Asset\x12\x11OperationMetadata\xDAA\x11asset,update_mask\x82\xD3\xE4\x93\x02I2@/v1/{asset.name=projects/*/locations/*/lakes/*/zones/*/assets/*}:\x05asset\x12\xD2\x01\x0A\x0BDeleteAsset\x12,.google.cloud.dataplex.v1.DeleteAssetRequest\x1A\x1D.google.longrunning.Operation\"v\xCAA*\x0A\x15google.protobuf.Empty\x12\x11OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x02<*:/v1/{name=projects/*/locations/*/lakes/*/zones/*/assets/*}\x12\xB4\x01\x0A\x0AListAssets\x12+.google.cloud.dataplex.v1.ListAssetsRequest\x1A,.google.cloud.dataplex.v1.ListAssetsResponse\"K\xDAA\x06parent\x82\xD3\xE4\x93\x02<\x12:/v1/{parent=projects/*/locations/*/lakes/*/zones/*}/assets\x12\xA1\x01\x0A\x08GetAsset\x12).google.cloud.dataplex.v1.GetAssetRequest\x1A\x1F.google.cloud.dataplex.v1.Asset\"I\xDAA\x04name\x82\xD3\xE4\x93\x02<\x12:/v1/{name=projects/*/locations/*/lakes/*/zones/*/assets/*}\x12\xCB\x01\x0A\x10ListAssetActions\x121.google.cloud.dataplex.v1.ListAssetActionsRequest\x1A-.google.cloud.dataplex.v1.ListActionsResponse\"U\xDAA\x06parent\x82\xD3\xE4\x93\x02F\x12D/v1/{parent=projects/*/locations/*/lakes/*/zones/*/assets/*}/actions\x12\xCB\x01\x0A\x0ACreateTask\x12+.google.cloud.dataplex.v1.CreateTaskRequest\x1A\x1D.google.longrunning.Operation\"q\xCAA\x19\x0A\x04Task\x12\x11OperationMetadata\xDAA\x13parent,task,task_id\x82\xD3\xE4\x93\x029\"1/v1/{parent=projects/*/locations/*/lakes/*}/tasks:\x04task\x12\xCD\x01\x0A\x0AUpdateTask\x12+.google.cloud.dataplex.v1.UpdateTaskRequest\x1A\x1D.google.longrunning.Operation\"s\xCAA\x19\x0A\x04Task\x12\x11OperationMetadata\xDAA\x10task,update_mask\x82\xD3\xE4\x93\x02>26/v1/{task.name=projects/*/locations/*/lakes/*/tasks/*}:\x04task\x12\xC7\x01\x0A\x0ADeleteTask\x12+.google.cloud.dataplex.v1.DeleteTaskRequest\x1A\x1D.google.longrunning.Operation\"m\xCAA*\x0A\x15google.protobuf.Empty\x12\x11OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x023*1/v1/{name=projects/*/locations/*/lakes/*/tasks/*}\x12\xA8\x01\x0A\x09ListTasks\x12*.google.cloud.dataplex.v1.ListTasksRequest\x1A+.google.cloud.dataplex.v1.ListTasksResponse\"B\xDAA\x06parent\x82\xD3\xE4\x93\x023\x121/v1/{parent=projects/*/locations/*/lakes/*}/tasks\x12\x95\x01\x0A\x07GetTask\x12(.google.cloud.dataplex.v1.GetTaskRequest\x1A\x1E.google.cloud.dataplex.v1.Task\"@\xDAA\x04name\x82\xD3\xE4\x93\x023\x121/v1/{name=projects/*/locations/*/lakes/*/tasks/*}\x12\xAC\x01\x0A\x08ListJobs\x12).google.cloud.dataplex.v1.ListJobsRequest\x1A*.google.cloud.dataplex.v1.ListJobsResponse\"I\xDAA\x06parent\x82\xD3\xE4\x93\x02:\x128/v1/{parent=projects/*/locations/*/lakes/*/tasks/*}/jobs\x12\xA7\x01\x0A\x07RunTask\x12(.google.cloud.dataplex.v1.RunTaskRequest\x1A).google.cloud.dataplex.v1.RunTaskResponse\"G\xDAA\x04name\x82\xD3\xE4\x93\x02:\"5/v1/{name=projects/*/locations/*/lakes/*/tasks/*}:run:\x01*\x12\x99\x01\x0A\x06GetJob\x12'.google.cloud.dataplex.v1.GetJobRequest\x1A\x1D.google.cloud.dataplex.v1.Job\"G\xDAA\x04name\x82\xD3\xE4\x93\x02:\x128/v1/{name=projects/*/locations/*/lakes/*/tasks/*/jobs/*}\x12\xA2\x01\x0A\x09CancelJob\x12*.google.cloud.dataplex.v1.CancelJobRequest\x1A\x16.google.protobuf.Empty\"Q\xDAA\x04name\x82\xD3\xE4\x93\x02D\"?/v1/{name=projects/*/locations/*/lakes/*/tasks/*/jobs/*}:cancel:\x01*\x1AK\xCAA\x17dataplex.googleapis.com\xD2A.https://www.googleapis.com/auth/cloud-platformBh\x0A\x1Ccom.google.cloud.dataplex.v1B\x0CServiceProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\x06proto3" + "\x0A\xA2P\x0A&google/cloud/dataplex/v1/service.proto\x12\x18google.cloud.dataplex.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A(google/cloud/dataplex/v1/resources.proto\x1A\$google/cloud/dataplex/v1/tasks.proto\x1A#google/longrunning/operations.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xB3\x01\x0A\x11CreateLakeRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12\x14\x0A\x07lake_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x121\x0A\x04lake\x18\x03 \x01(\x0B2\x1E.google.cloud.dataplex.v1.LakeB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"\x98\x01\x0A\x11UpdateLakeRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x121\x0A\x04lake\x18\x02 \x01(\x0B2\x1E.google.cloud.dataplex.v1.LakeB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"G\x0A\x11DeleteLakeRequest\x122\x0A\x04name\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Lake\"\xAA\x01\x0A\x10ListLakesRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\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\"z\x0A\x11ListLakesResponse\x12-\x0A\x05lakes\x18\x01 \x03(\x0B2\x1E.google.cloud.dataplex.v1.Lake\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x1D\x0A\x15unreachable_locations\x18\x03 \x03(\x09\"\x7F\x0A\x16ListLakeActionsRequest\x124\x0A\x06parent\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Lake\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\"a\x0A\x13ListActionsResponse\x121\x0A\x07actions\x18\x01 \x03(\x0B2 .google.cloud.dataplex.v1.Action\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"D\x0A\x0EGetLakeRequest\x122\x0A\x04name\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Lake\"\xAE\x01\x0A\x11CreateZoneRequest\x124\x0A\x06parent\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Lake\x12\x14\x0A\x07zone_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x121\x0A\x04zone\x18\x03 \x01(\x0B2\x1E.google.cloud.dataplex.v1.ZoneB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"\x98\x01\x0A\x11UpdateZoneRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x121\x0A\x04zone\x18\x02 \x01(\x0B2\x1E.google.cloud.dataplex.v1.ZoneB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"G\x0A\x11DeleteZoneRequest\x122\x0A\x04name\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Zone\"\xA5\x01\x0A\x10ListZonesRequest\x124\x0A\x06parent\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Lake\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\"[\x0A\x11ListZonesResponse\x12-\x0A\x05zones\x18\x01 \x03(\x0B2\x1E.google.cloud.dataplex.v1.Zone\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x7F\x0A\x16ListZoneActionsRequest\x124\x0A\x06parent\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Zone\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\"D\x0A\x0EGetZoneRequest\x122\x0A\x04name\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Zone\"\xB2\x01\x0A\x12CreateAssetRequest\x124\x0A\x06parent\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Zone\x12\x15\x0A\x08asset_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x123\x0A\x05asset\x18\x03 \x01(\x0B2\x1F.google.cloud.dataplex.v1.AssetB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"\x9B\x01\x0A\x12UpdateAssetRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x123\x0A\x05asset\x18\x02 \x01(\x0B2\x1F.google.cloud.dataplex.v1.AssetB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"I\x0A\x12DeleteAssetRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddataplex.googleapis.com/Asset\"\xA6\x01\x0A\x11ListAssetsRequest\x124\x0A\x06parent\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Zone\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\"^\x0A\x12ListAssetsResponse\x12/\x0A\x06assets\x18\x01 \x03(\x0B2\x1F.google.cloud.dataplex.v1.Asset\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x81\x01\x0A\x17ListAssetActionsRequest\x125\x0A\x06parent\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddataplex.googleapis.com/Asset\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\"F\x0A\x0FGetAssetRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddataplex.googleapis.com/Asset\"\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\"\xAE\x01\x0A\x11CreateTaskRequest\x124\x0A\x06parent\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Lake\x12\x14\x0A\x07task_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x121\x0A\x04task\x18\x03 \x01(\x0B2\x1E.google.cloud.dataplex.v1.TaskB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"\x98\x01\x0A\x11UpdateTaskRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x121\x0A\x04task\x18\x02 \x01(\x0B2\x1E.google.cloud.dataplex.v1.TaskB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"G\x0A\x11DeleteTaskRequest\x122\x0A\x04name\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Task\"\xA5\x01\x0A\x10ListTasksRequest\x124\x0A\x06parent\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Lake\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\"z\x0A\x11ListTasksResponse\x12-\x0A\x05tasks\x18\x01 \x03(\x0B2\x1E.google.cloud.dataplex.v1.Task\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x1D\x0A\x15unreachable_locations\x18\x03 \x03(\x09\"D\x0A\x0EGetTaskRequest\x122\x0A\x04name\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Task\"B\x0A\x0DGetJobRequest\x121\x0A\x04name\x18\x01 \x01(\x09B#\xE0A\x02\xFAA\x1D\x0A\x1Bdataplex.googleapis.com/Job\"\xB2\x02\x0A\x0ERunTaskRequest\x122\x0A\x04name\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Task\x12I\x0A\x06labels\x18\x03 \x03(\x0B24.google.cloud.dataplex.v1.RunTaskRequest.LabelsEntryB\x03\xE0A\x01\x12E\x0A\x04args\x18\x04 \x03(\x0B22.google.cloud.dataplex.v1.RunTaskRequest.ArgsEntryB\x03\xE0A\x01\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1A+\x0A\x09ArgsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"=\x0A\x0FRunTaskResponse\x12*\x0A\x03job\x18\x01 \x01(\x0B2\x1D.google.cloud.dataplex.v1.Job\"x\x0A\x0FListJobsRequest\x124\x0A\x06parent\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Task\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\"X\x0A\x10ListJobsResponse\x12+\x0A\x04jobs\x18\x01 \x03(\x0B2\x1D.google.cloud.dataplex.v1.Job\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"E\x0A\x10CancelJobRequest\x121\x0A\x04name\x18\x01 \x01(\x09B#\xE0A\x02\xFAA\x1D\x0A\x1Bdataplex.googleapis.com/Job2\xAB)\x0A\x0FDataplexService\x12\xC3\x01\x0A\x0ACreateLake\x12+.google.cloud.dataplex.v1.CreateLakeRequest\x1A\x1D.google.longrunning.Operation\"i\xCAA\x19\x0A\x04Lake\x12\x11OperationMetadata\xDAA\x13parent,lake,lake_id\x82\xD3\xE4\x93\x021\")/v1/{parent=projects/*/locations/*}/lakes:\x04lake\x12\xC5\x01\x0A\x0AUpdateLake\x12+.google.cloud.dataplex.v1.UpdateLakeRequest\x1A\x1D.google.longrunning.Operation\"k\xCAA\x19\x0A\x04Lake\x12\x11OperationMetadata\xDAA\x10lake,update_mask\x82\xD3\xE4\x93\x0262./v1/{lake.name=projects/*/locations/*/lakes/*}:\x04lake\x12\xBF\x01\x0A\x0ADeleteLake\x12+.google.cloud.dataplex.v1.DeleteLakeRequest\x1A\x1D.google.longrunning.Operation\"e\xCAA*\x0A\x15google.protobuf.Empty\x12\x11OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x02+*)/v1/{name=projects/*/locations/*/lakes/*}\x12\xA0\x01\x0A\x09ListLakes\x12*.google.cloud.dataplex.v1.ListLakesRequest\x1A+.google.cloud.dataplex.v1.ListLakesResponse\":\xDAA\x06parent\x82\xD3\xE4\x93\x02+\x12)/v1/{parent=projects/*/locations/*}/lakes\x12\x8D\x01\x0A\x07GetLake\x12(.google.cloud.dataplex.v1.GetLakeRequest\x1A\x1E.google.cloud.dataplex.v1.Lake\"8\xDAA\x04name\x82\xD3\xE4\x93\x02+\x12)/v1/{name=projects/*/locations/*/lakes/*}\x12\xB8\x01\x0A\x0FListLakeActions\x120.google.cloud.dataplex.v1.ListLakeActionsRequest\x1A-.google.cloud.dataplex.v1.ListActionsResponse\"D\xDAA\x06parent\x82\xD3\xE4\x93\x025\x123/v1/{parent=projects/*/locations/*/lakes/*}/actions\x12\xCB\x01\x0A\x0ACreateZone\x12+.google.cloud.dataplex.v1.CreateZoneRequest\x1A\x1D.google.longrunning.Operation\"q\xCAA\x19\x0A\x04Zone\x12\x11OperationMetadata\xDAA\x13parent,zone,zone_id\x82\xD3\xE4\x93\x029\"1/v1/{parent=projects/*/locations/*/lakes/*}/zones:\x04zone\x12\xCD\x01\x0A\x0AUpdateZone\x12+.google.cloud.dataplex.v1.UpdateZoneRequest\x1A\x1D.google.longrunning.Operation\"s\xCAA\x19\x0A\x04Zone\x12\x11OperationMetadata\xDAA\x10zone,update_mask\x82\xD3\xE4\x93\x02>26/v1/{zone.name=projects/*/locations/*/lakes/*/zones/*}:\x04zone\x12\xC7\x01\x0A\x0ADeleteZone\x12+.google.cloud.dataplex.v1.DeleteZoneRequest\x1A\x1D.google.longrunning.Operation\"m\xCAA*\x0A\x15google.protobuf.Empty\x12\x11OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x023*1/v1/{name=projects/*/locations/*/lakes/*/zones/*}\x12\xA8\x01\x0A\x09ListZones\x12*.google.cloud.dataplex.v1.ListZonesRequest\x1A+.google.cloud.dataplex.v1.ListZonesResponse\"B\xDAA\x06parent\x82\xD3\xE4\x93\x023\x121/v1/{parent=projects/*/locations/*/lakes/*}/zones\x12\x95\x01\x0A\x07GetZone\x12(.google.cloud.dataplex.v1.GetZoneRequest\x1A\x1E.google.cloud.dataplex.v1.Zone\"@\xDAA\x04name\x82\xD3\xE4\x93\x023\x121/v1/{name=projects/*/locations/*/lakes/*/zones/*}\x12\xC0\x01\x0A\x0FListZoneActions\x120.google.cloud.dataplex.v1.ListZoneActionsRequest\x1A-.google.cloud.dataplex.v1.ListActionsResponse\"L\xDAA\x06parent\x82\xD3\xE4\x93\x02=\x12;/v1/{parent=projects/*/locations/*/lakes/*/zones/*}/actions\x12\xDA\x01\x0A\x0BCreateAsset\x12,.google.cloud.dataplex.v1.CreateAssetRequest\x1A\x1D.google.longrunning.Operation\"~\xCAA\x1A\x0A\x05Asset\x12\x11OperationMetadata\xDAA\x15parent,asset,asset_id\x82\xD3\xE4\x93\x02C\":/v1/{parent=projects/*/locations/*/lakes/*/zones/*}/assets:\x05asset\x12\xDD\x01\x0A\x0BUpdateAsset\x12,.google.cloud.dataplex.v1.UpdateAssetRequest\x1A\x1D.google.longrunning.Operation\"\x80\x01\xCAA\x1A\x0A\x05Asset\x12\x11OperationMetadata\xDAA\x11asset,update_mask\x82\xD3\xE4\x93\x02I2@/v1/{asset.name=projects/*/locations/*/lakes/*/zones/*/assets/*}:\x05asset\x12\xD2\x01\x0A\x0BDeleteAsset\x12,.google.cloud.dataplex.v1.DeleteAssetRequest\x1A\x1D.google.longrunning.Operation\"v\xCAA*\x0A\x15google.protobuf.Empty\x12\x11OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x02<*:/v1/{name=projects/*/locations/*/lakes/*/zones/*/assets/*}\x12\xB4\x01\x0A\x0AListAssets\x12+.google.cloud.dataplex.v1.ListAssetsRequest\x1A,.google.cloud.dataplex.v1.ListAssetsResponse\"K\xDAA\x06parent\x82\xD3\xE4\x93\x02<\x12:/v1/{parent=projects/*/locations/*/lakes/*/zones/*}/assets\x12\xA1\x01\x0A\x08GetAsset\x12).google.cloud.dataplex.v1.GetAssetRequest\x1A\x1F.google.cloud.dataplex.v1.Asset\"I\xDAA\x04name\x82\xD3\xE4\x93\x02<\x12:/v1/{name=projects/*/locations/*/lakes/*/zones/*/assets/*}\x12\xCB\x01\x0A\x10ListAssetActions\x121.google.cloud.dataplex.v1.ListAssetActionsRequest\x1A-.google.cloud.dataplex.v1.ListActionsResponse\"U\xDAA\x06parent\x82\xD3\xE4\x93\x02F\x12D/v1/{parent=projects/*/locations/*/lakes/*/zones/*/assets/*}/actions\x12\xCB\x01\x0A\x0ACreateTask\x12+.google.cloud.dataplex.v1.CreateTaskRequest\x1A\x1D.google.longrunning.Operation\"q\xCAA\x19\x0A\x04Task\x12\x11OperationMetadata\xDAA\x13parent,task,task_id\x82\xD3\xE4\x93\x029\"1/v1/{parent=projects/*/locations/*/lakes/*}/tasks:\x04task\x12\xCD\x01\x0A\x0AUpdateTask\x12+.google.cloud.dataplex.v1.UpdateTaskRequest\x1A\x1D.google.longrunning.Operation\"s\xCAA\x19\x0A\x04Task\x12\x11OperationMetadata\xDAA\x10task,update_mask\x82\xD3\xE4\x93\x02>26/v1/{task.name=projects/*/locations/*/lakes/*/tasks/*}:\x04task\x12\xC7\x01\x0A\x0ADeleteTask\x12+.google.cloud.dataplex.v1.DeleteTaskRequest\x1A\x1D.google.longrunning.Operation\"m\xCAA*\x0A\x15google.protobuf.Empty\x12\x11OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x023*1/v1/{name=projects/*/locations/*/lakes/*/tasks/*}\x12\xA8\x01\x0A\x09ListTasks\x12*.google.cloud.dataplex.v1.ListTasksRequest\x1A+.google.cloud.dataplex.v1.ListTasksResponse\"B\xDAA\x06parent\x82\xD3\xE4\x93\x023\x121/v1/{parent=projects/*/locations/*/lakes/*}/tasks\x12\x95\x01\x0A\x07GetTask\x12(.google.cloud.dataplex.v1.GetTaskRequest\x1A\x1E.google.cloud.dataplex.v1.Task\"@\xDAA\x04name\x82\xD3\xE4\x93\x023\x121/v1/{name=projects/*/locations/*/lakes/*/tasks/*}\x12\xAC\x01\x0A\x08ListJobs\x12).google.cloud.dataplex.v1.ListJobsRequest\x1A*.google.cloud.dataplex.v1.ListJobsResponse\"I\xDAA\x06parent\x82\xD3\xE4\x93\x02:\x128/v1/{parent=projects/*/locations/*/lakes/*/tasks/*}/jobs\x12\xA7\x01\x0A\x07RunTask\x12(.google.cloud.dataplex.v1.RunTaskRequest\x1A).google.cloud.dataplex.v1.RunTaskResponse\"G\xDAA\x04name\x82\xD3\xE4\x93\x02:\"5/v1/{name=projects/*/locations/*/lakes/*/tasks/*}:run:\x01*\x12\x99\x01\x0A\x06GetJob\x12'.google.cloud.dataplex.v1.GetJobRequest\x1A\x1D.google.cloud.dataplex.v1.Job\"G\xDAA\x04name\x82\xD3\xE4\x93\x02:\x128/v1/{name=projects/*/locations/*/lakes/*/tasks/*/jobs/*}\x12\xA2\x01\x0A\x09CancelJob\x12*.google.cloud.dataplex.v1.CancelJobRequest\x1A\x16.google.protobuf.Empty\"Q\xDAA\x04name\x82\xD3\xE4\x93\x02D\"?/v1/{name=projects/*/locations/*/lakes/*/tasks/*/jobs/*}:cancel:\x01*\x1A\xEB\x01\xCAA\x17dataplex.googleapis.com\xD2A\xCD\x01https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.read-only,https://www.googleapis.com/auth/dataplex.read-write,https://www.googleapis.com/auth/dataplex.readonlyBh\x0A\x1Ccom.google.cloud.dataplex.v1B\x0CServiceProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\x06proto3" , true); static::$is_initialized = true; diff --git a/Dataplex/samples/V1/BusinessGlossaryServiceClient/list_locations.php b/Dataplex/samples/V1/BusinessGlossaryServiceClient/list_locations.php index 8e63806a7634..a5b8b3cea994 100644 --- a/Dataplex/samples/V1/BusinessGlossaryServiceClient/list_locations.php +++ b/Dataplex/samples/V1/BusinessGlossaryServiceClient/list_locations.php @@ -31,13 +31,21 @@ /** * Lists information about the supported locations for this service. -This method can be called in two ways: -* **List all public locations:** Use the path `GET /v1/locations`. -* **List project-visible locations:** Use the path -`GET /v1/projects/{project_id}/locations`. This may include public -locations as well as private or other locations specifically visible -to the project. +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/Dataplex/samples/V1/CatalogServiceClient/list_locations.php b/Dataplex/samples/V1/CatalogServiceClient/list_locations.php index 5579a3485476..0f6af50de22d 100644 --- a/Dataplex/samples/V1/CatalogServiceClient/list_locations.php +++ b/Dataplex/samples/V1/CatalogServiceClient/list_locations.php @@ -31,13 +31,21 @@ /** * Lists information about the supported locations for this service. -This method can be called in two ways: -* **List all public locations:** Use the path `GET /v1/locations`. -* **List project-visible locations:** Use the path -`GET /v1/projects/{project_id}/locations`. This may include public -locations as well as private or other locations specifically visible -to the project. +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/Dataplex/samples/V1/CatalogServiceClient/lookup_context.php b/Dataplex/samples/V1/CatalogServiceClient/lookup_context.php index a26dfe8ff529..28993447e96e 100644 --- a/Dataplex/samples/V1/CatalogServiceClient/lookup_context.php +++ b/Dataplex/samples/V1/CatalogServiceClient/lookup_context.php @@ -33,12 +33,12 @@ * * @param string $name The project to which the request should be attributed in the * following form: `projects/{project}/locations/{location}`. - * @param string $formattedResourcesElement The entry names to lookup context for. The request should have - * max 10 of those. + * @param string $formattedResourcesElement The entry names to look up the context for. The maximum number of + * resources for a request is limited to 10. * * ## Examples: * - * projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry} + * `projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}` * Please see {@see CatalogServiceClient::entryName()} for help formatting this field. */ function lookup_context_sample(string $name, string $formattedResourcesElement): void diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/modify_entry.php b/Dataplex/samples/V1/CatalogServiceClient/modify_entry.php similarity index 100% rename from owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/modify_entry.php rename to Dataplex/samples/V1/CatalogServiceClient/modify_entry.php diff --git a/Dataplex/samples/V1/CmekServiceClient/list_locations.php b/Dataplex/samples/V1/CmekServiceClient/list_locations.php index f4089d04312b..5af662a81fe6 100644 --- a/Dataplex/samples/V1/CmekServiceClient/list_locations.php +++ b/Dataplex/samples/V1/CmekServiceClient/list_locations.php @@ -31,13 +31,21 @@ /** * Lists information about the supported locations for this service. -This method can be called in two ways: -* **List all public locations:** Use the path `GET /v1/locations`. -* **List project-visible locations:** Use the path -`GET /v1/projects/{project_id}/locations`. This may include public -locations as well as private or other locations specifically visible -to the project. +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/Dataplex/samples/V1/ContentServiceClient/list_locations.php b/Dataplex/samples/V1/ContentServiceClient/list_locations.php index 93bd45b7ca9c..0375a96ead7c 100644 --- a/Dataplex/samples/V1/ContentServiceClient/list_locations.php +++ b/Dataplex/samples/V1/ContentServiceClient/list_locations.php @@ -31,13 +31,21 @@ /** * Lists information about the supported locations for this service. -This method can be called in two ways: -* **List all public locations:** Use the path `GET /v1/locations`. -* **List project-visible locations:** Use the path -`GET /v1/projects/{project_id}/locations`. This may include public -locations as well as private or other locations specifically visible -to the project. +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/Dataplex/samples/V1/DataProductServiceClient/list_locations.php b/Dataplex/samples/V1/DataProductServiceClient/list_locations.php index 4e4d78f3a867..7791ca9b6cda 100644 --- a/Dataplex/samples/V1/DataProductServiceClient/list_locations.php +++ b/Dataplex/samples/V1/DataProductServiceClient/list_locations.php @@ -31,13 +31,21 @@ /** * Lists information about the supported locations for this service. -This method can be called in two ways: -* **List all public locations:** Use the path `GET /v1/locations`. -* **List project-visible locations:** Use the path -`GET /v1/projects/{project_id}/locations`. This may include public -locations as well as private or other locations specifically visible -to the project. +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/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/request_data_product_access.php b/Dataplex/samples/V1/DataProductServiceClient/request_data_product_access.php similarity index 100% rename from owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/request_data_product_access.php rename to Dataplex/samples/V1/DataProductServiceClient/request_data_product_access.php diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/cancel_data_scan_job.php b/Dataplex/samples/V1/DataScanServiceClient/cancel_data_scan_job.php similarity index 100% rename from owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/cancel_data_scan_job.php rename to Dataplex/samples/V1/DataScanServiceClient/cancel_data_scan_job.php diff --git a/Dataplex/samples/V1/DataScanServiceClient/create_data_scan.php b/Dataplex/samples/V1/DataScanServiceClient/create_data_scan.php index 5923f28f4b9e..56e83aa257f7 100644 --- a/Dataplex/samples/V1/DataScanServiceClient/create_data_scan.php +++ b/Dataplex/samples/V1/DataScanServiceClient/create_data_scan.php @@ -39,15 +39,8 @@ * where `project` refers to a *project_id* or *project_number* and * `location_id` refers to a Google Cloud region. Please see * {@see DataScanServiceClient::locationName()} for help formatting this field. - * @param string $dataScanId DataScan identifier. - * - * * Must contain only lowercase letters, numbers and hyphens. - * * Must start with a letter. - * * Must end with a number or a letter. - * * Must be between 1-63 characters. - * * Must be unique within the customer project / location. */ -function create_data_scan_sample(string $formattedParent, string $dataScanId): void +function create_data_scan_sample(string $formattedParent): void { // Create a client. $dataScanServiceClient = new DataScanServiceClient(); @@ -58,8 +51,7 @@ function create_data_scan_sample(string $formattedParent, string $dataScanId): v ->setData($dataScanData); $request = (new CreateDataScanRequest()) ->setParent($formattedParent) - ->setDataScan($dataScan) - ->setDataScanId($dataScanId); + ->setDataScan($dataScan); // Call the API and handle any network failures. try { @@ -93,8 +85,7 @@ function create_data_scan_sample(string $formattedParent, string $dataScanId): v function callSample(): void { $formattedParent = DataScanServiceClient::locationName('[PROJECT]', '[LOCATION]'); - $dataScanId = '[DATA_SCAN_ID]'; - create_data_scan_sample($formattedParent, $dataScanId); + create_data_scan_sample($formattedParent); } // [END dataplex_v1_generated_DataScanService_CreateDataScan_sync] diff --git a/Dataplex/samples/V1/DataScanServiceClient/list_locations.php b/Dataplex/samples/V1/DataScanServiceClient/list_locations.php index f38389ee09cc..7acdf0679b88 100644 --- a/Dataplex/samples/V1/DataScanServiceClient/list_locations.php +++ b/Dataplex/samples/V1/DataScanServiceClient/list_locations.php @@ -31,13 +31,21 @@ /** * Lists information about the supported locations for this service. -This method can be called in two ways: -* **List all public locations:** Use the path `GET /v1/locations`. -* **List project-visible locations:** Use the path -`GET /v1/projects/{project_id}/locations`. This may include public -locations as well as private or other locations specifically visible -to the project. +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/Dataplex/samples/V1/DataTaxonomyServiceClient/list_locations.php b/Dataplex/samples/V1/DataTaxonomyServiceClient/list_locations.php index a8d710497659..185519289ccc 100644 --- a/Dataplex/samples/V1/DataTaxonomyServiceClient/list_locations.php +++ b/Dataplex/samples/V1/DataTaxonomyServiceClient/list_locations.php @@ -31,13 +31,21 @@ /** * Lists information about the supported locations for this service. -This method can be called in two ways: -* **List all public locations:** Use the path `GET /v1/locations`. -* **List project-visible locations:** Use the path -`GET /v1/projects/{project_id}/locations`. This may include public -locations as well as private or other locations specifically visible -to the project. +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/Dataplex/samples/V1/DataplexServiceClient/list_locations.php b/Dataplex/samples/V1/DataplexServiceClient/list_locations.php index b525a8f5402a..aadfc0a7a0bc 100644 --- a/Dataplex/samples/V1/DataplexServiceClient/list_locations.php +++ b/Dataplex/samples/V1/DataplexServiceClient/list_locations.php @@ -31,13 +31,21 @@ /** * Lists information about the supported locations for this service. -This method can be called in two ways: -* **List all public locations:** Use the path `GET /v1/locations`. -* **List project-visible locations:** Use the path -`GET /v1/projects/{project_id}/locations`. This may include public -locations as well as private or other locations specifically visible -to the project. +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/Dataplex/samples/V1/MetadataServiceClient/list_locations.php b/Dataplex/samples/V1/MetadataServiceClient/list_locations.php index e4b5189588c9..a4ed47206cd0 100644 --- a/Dataplex/samples/V1/MetadataServiceClient/list_locations.php +++ b/Dataplex/samples/V1/MetadataServiceClient/list_locations.php @@ -31,13 +31,21 @@ /** * Lists information about the supported locations for this service. -This method can be called in two ways: -* **List all public locations:** Use the path `GET /v1/locations`. -* **List project-visible locations:** Use the path -`GET /v1/projects/{project_id}/locations`. This may include public -locations as well as private or other locations specifically visible -to the project. +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/Dataplex/src/V1/Aspect.php b/Dataplex/src/V1/Aspect.php index 9e54209e87fd..1cf3c1a17717 100644 --- a/Dataplex/src/V1/Aspect.php +++ b/Dataplex/src/V1/Aspect.php @@ -9,7 +9,7 @@ use Google\Protobuf\RepeatedField; /** - * An aspect is a single piece of metadata describing an entry. + * Represents a single piece of metadata describing an entry or entry link. * * Generated from protobuf message google.cloud.dataplex.v1.Aspect */ diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CancelDataScanJobRequest.php b/Dataplex/src/V1/CancelDataScanJobRequest.php similarity index 100% rename from owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CancelDataScanJobRequest.php rename to Dataplex/src/V1/CancelDataScanJobRequest.php diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CancelDataScanJobResponse.php b/Dataplex/src/V1/CancelDataScanJobResponse.php similarity index 100% rename from owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CancelDataScanJobResponse.php rename to Dataplex/src/V1/CancelDataScanJobResponse.php diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ChangeRequest.php b/Dataplex/src/V1/ChangeRequest.php similarity index 100% rename from owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ChangeRequest.php rename to Dataplex/src/V1/ChangeRequest.php diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ChangeRequest/ChangeType.php b/Dataplex/src/V1/ChangeRequest/ChangeType.php similarity index 100% rename from owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ChangeRequest/ChangeType.php rename to Dataplex/src/V1/ChangeRequest/ChangeType.php diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ChangeRequest/State.php b/Dataplex/src/V1/ChangeRequest/State.php similarity index 100% rename from owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ChangeRequest/State.php rename to Dataplex/src/V1/ChangeRequest/State.php diff --git a/Dataplex/src/V1/Client/BusinessGlossaryServiceClient.php b/Dataplex/src/V1/Client/BusinessGlossaryServiceClient.php index 6d2b755e5093..8bdead403adb 100644 --- a/Dataplex/src/V1/Client/BusinessGlossaryServiceClient.php +++ b/Dataplex/src/V1/Client/BusinessGlossaryServiceClient.php @@ -128,7 +128,12 @@ final class BusinessGlossaryServiceClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = ['https://www.googleapis.com/auth/cloud-platform']; + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/cloud-platform', + 'https://www.googleapis.com/auth/cloud-platform.read-only', + 'https://www.googleapis.com/auth/dataplex.read-write', + 'https://www.googleapis.com/auth/dataplex.readonly', + ]; private $operationsClient; @@ -836,13 +841,21 @@ public function getLocation(GetLocationRequest $request, array $callOptions = [] /** * Lists information about the supported locations for this service. - This method can be called in two ways: - * **List all public locations:** Use the path `GET /v1/locations`. - * **List project-visible locations:** Use the path - `GET /v1/projects/{project_id}/locations`. This may include public - locations as well as private or other locations specifically visible - to the project. + 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 BusinessGlossaryServiceClient::listLocationsAsync()} * . diff --git a/Dataplex/src/V1/Client/CatalogServiceClient.php b/Dataplex/src/V1/Client/CatalogServiceClient.php index 321002603538..6748751e64e6 100644 --- a/Dataplex/src/V1/Client/CatalogServiceClient.php +++ b/Dataplex/src/V1/Client/CatalogServiceClient.php @@ -73,6 +73,7 @@ use Google\Cloud\Dataplex\V1\LookupEntryRequest; use Google\Cloud\Dataplex\V1\MetadataFeed; use Google\Cloud\Dataplex\V1\MetadataJob; +use Google\Cloud\Dataplex\V1\ModifyEntryRequest; use Google\Cloud\Dataplex\V1\SearchEntriesRequest; use Google\Cloud\Dataplex\V1\UpdateAspectTypeRequest; use Google\Cloud\Dataplex\V1\UpdateEntryGroupRequest; @@ -138,6 +139,7 @@ * @method PromiseInterface lookupContextAsync(LookupContextRequest $request, array $optionalArgs = []) * @method PromiseInterface lookupEntryAsync(LookupEntryRequest $request, array $optionalArgs = []) * @method PromiseInterface lookupEntryLinksAsync(LookupEntryLinksRequest $request, array $optionalArgs = []) + * @method PromiseInterface modifyEntryAsync(ModifyEntryRequest $request, array $optionalArgs = []) * @method PromiseInterface searchEntriesAsync(SearchEntriesRequest $request, array $optionalArgs = []) * @method PromiseInterface updateAspectTypeAsync(UpdateAspectTypeRequest $request, array $optionalArgs = []) * @method PromiseInterface updateEntryAsync(UpdateEntryRequest $request, array $optionalArgs = []) @@ -1347,6 +1349,32 @@ public function lookupEntryLinks(LookupEntryLinksRequest $request, array $callOp return $this->startApiCall('LookupEntryLinks', $request, $callOptions); } + /** + * Modifies an entry using the permission on the source system. + * + * The async variant is {@see CatalogServiceClient::modifyEntryAsync()} . + * + * @example samples/V1/CatalogServiceClient/modify_entry.php + * + * @param ModifyEntryRequest $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 Entry + * + * @throws ApiException Thrown if the API call fails. + */ + public function modifyEntry(ModifyEntryRequest $request, array $callOptions = []): Entry + { + return $this->startApiCall('ModifyEntry', $request, $callOptions)->wait(); + } + /** * Searches for Entries matching the given query and scope. * @@ -1557,13 +1585,21 @@ public function getLocation(GetLocationRequest $request, array $callOptions = [] /** * Lists information about the supported locations for this service. - This method can be called in two ways: - * **List all public locations:** Use the path `GET /v1/locations`. - * **List project-visible locations:** Use the path - `GET /v1/projects/{project_id}/locations`. This may include public - locations as well as private or other locations specifically visible - to the project. + 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 CatalogServiceClient::listLocationsAsync()} . * diff --git a/Dataplex/src/V1/Client/CmekServiceClient.php b/Dataplex/src/V1/Client/CmekServiceClient.php index ea97d11a4a56..7f17a0ed06b8 100644 --- a/Dataplex/src/V1/Client/CmekServiceClient.php +++ b/Dataplex/src/V1/Client/CmekServiceClient.php @@ -101,7 +101,10 @@ final class CmekServiceClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = ['https://www.googleapis.com/auth/cloud-platform']; + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/cloud-platform', + 'https://www.googleapis.com/auth/dataplex.read-write', + ]; private $operationsClient; @@ -488,13 +491,21 @@ public function getLocation(GetLocationRequest $request, array $callOptions = [] /** * Lists information about the supported locations for this service. - This method can be called in two ways: - * **List all public locations:** Use the path `GET /v1/locations`. - * **List project-visible locations:** Use the path - `GET /v1/projects/{project_id}/locations`. This may include public - locations as well as private or other locations specifically visible - to the project. + 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 CmekServiceClient::listLocationsAsync()} . * diff --git a/Dataplex/src/V1/Client/ContentServiceClient.php b/Dataplex/src/V1/Client/ContentServiceClient.php index 58dc7ff13441..daae83240214 100644 --- a/Dataplex/src/V1/Client/ContentServiceClient.php +++ b/Dataplex/src/V1/Client/ContentServiceClient.php @@ -197,13 +197,21 @@ public function getLocation(GetLocationRequest $request, array $callOptions = [] /** * Lists information about the supported locations for this service. - This method can be called in two ways: - * **List all public locations:** Use the path `GET /v1/locations`. - * **List project-visible locations:** Use the path - `GET /v1/projects/{project_id}/locations`. This may include public - locations as well as private or other locations specifically visible - to the project. + 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 ContentServiceClient::listLocationsAsync()} . * diff --git a/Dataplex/src/V1/Client/DataProductServiceClient.php b/Dataplex/src/V1/Client/DataProductServiceClient.php index 2ab20a879bf4..27a61e333615 100644 --- a/Dataplex/src/V1/Client/DataProductServiceClient.php +++ b/Dataplex/src/V1/Client/DataProductServiceClient.php @@ -45,6 +45,8 @@ use Google\Cloud\Dataplex\V1\GetDataProductRequest; use Google\Cloud\Dataplex\V1\ListDataAssetsRequest; use Google\Cloud\Dataplex\V1\ListDataProductsRequest; +use Google\Cloud\Dataplex\V1\RequestDataProductAccessRequest; +use Google\Cloud\Dataplex\V1\RequestDataProductAccessResponse; use Google\Cloud\Dataplex\V1\UpdateDataAssetRequest; use Google\Cloud\Dataplex\V1\UpdateDataProductRequest; use Google\Cloud\Iam\V1\GetIamPolicyRequest; @@ -80,6 +82,7 @@ * @method PromiseInterface getDataProductAsync(GetDataProductRequest $request, array $optionalArgs = []) * @method PromiseInterface listDataAssetsAsync(ListDataAssetsRequest $request, array $optionalArgs = []) * @method PromiseInterface listDataProductsAsync(ListDataProductsRequest $request, array $optionalArgs = []) + * @method PromiseInterface requestDataProductAccessAsync(RequestDataProductAccessRequest $request, array $optionalArgs = []) * @method PromiseInterface updateDataAssetAsync(UpdateDataAssetRequest $request, array $optionalArgs = []) * @method PromiseInterface updateDataProductAsync(UpdateDataProductRequest $request, array $optionalArgs = []) * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) @@ -113,7 +116,12 @@ final class DataProductServiceClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = ['https://www.googleapis.com/auth/cloud-platform']; + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/cloud-platform', + 'https://www.googleapis.com/auth/cloud-platform.read-only', + 'https://www.googleapis.com/auth/dataplex.read-write', + 'https://www.googleapis.com/auth/dataplex.readonly', + ]; private $operationsClient; @@ -184,6 +192,25 @@ private function createOperationsClient(array $options) return new OperationsClient($options); } + /** + * Formats a string containing the fully-qualified path to represent a + * change_request resource. + * + * @param string $project + * @param string $location + * @param string $changeRequest + * + * @return string The formatted change_request resource. + */ + public static function changeRequestName(string $project, string $location, string $changeRequest): string + { + return self::getPathTemplate('changeRequest')->render([ + 'project' => $project, + 'location' => $location, + 'change_request' => $changeRequest, + ]); + } + /** * Formats a string containing the fully-qualified path to represent a data_asset * resource. @@ -228,6 +255,140 @@ public static function dataProductName(string $project, string $location, string ]); } + /** + * Formats a string containing the fully-qualified path to represent a entry + * resource. + * + * @param string $project + * @param string $location + * @param string $entryGroup + * @param string $entry + * + * @return string The formatted entry resource. + */ + public static function entryName(string $project, string $location, string $entryGroup, string $entry): string + { + return self::getPathTemplate('entry')->render([ + 'project' => $project, + 'location' => $location, + 'entry_group' => $entryGroup, + 'entry' => $entry, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a entry_group + * resource. + * + * @param string $project + * @param string $location + * @param string $entryGroup + * + * @return string The formatted entry_group resource. + */ + public static function entryGroupName(string $project, string $location, string $entryGroup): string + { + return self::getPathTemplate('entryGroup')->render([ + 'project' => $project, + 'location' => $location, + 'entry_group' => $entryGroup, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a entry_link + * resource. + * + * @param string $project + * @param string $location + * @param string $entryGroup + * @param string $entryLink + * + * @return string The formatted entry_link resource. + */ + public static function entryLinkName( + string $project, + string $location, + string $entryGroup, + string $entryLink + ): string { + return self::getPathTemplate('entryLink')->render([ + 'project' => $project, + 'location' => $location, + 'entry_group' => $entryGroup, + 'entry_link' => $entryLink, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a glossary + * resource. + * + * @param string $project + * @param string $location + * @param string $glossary + * + * @return string The formatted glossary resource. + */ + public static function glossaryName(string $project, string $location, string $glossary): string + { + return self::getPathTemplate('glossary')->render([ + 'project' => $project, + 'location' => $location, + 'glossary' => $glossary, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * glossary_category resource. + * + * @param string $project + * @param string $location + * @param string $glossary + * @param string $glossaryCategory + * + * @return string The formatted glossary_category resource. + */ + public static function glossaryCategoryName( + string $project, + string $location, + string $glossary, + string $glossaryCategory + ): string { + return self::getPathTemplate('glossaryCategory')->render([ + 'project' => $project, + 'location' => $location, + 'glossary' => $glossary, + 'glossary_category' => $glossaryCategory, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * glossary_term resource. + * + * @param string $project + * @param string $location + * @param string $glossary + * @param string $glossaryTerm + * + * @return string The formatted glossary_term resource. + */ + public static function glossaryTermName( + string $project, + string $location, + string $glossary, + string $glossaryTerm + ): string { + return self::getPathTemplate('glossaryTerm')->render([ + 'project' => $project, + 'location' => $location, + 'glossary' => $glossary, + 'glossary_term' => $glossaryTerm, + ]); + } + /** * Formats a string containing the fully-qualified path to represent a location * resource. @@ -249,8 +410,15 @@ public static function locationName(string $project, string $location): string * Parses a formatted name string and returns an associative array of the components in the name. * The following name formats are supported: * Template: Pattern + * - changeRequest: projects/{project}/locations/{location}/changeRequests/{change_request} * - dataAsset: projects/{project}/locations/{location}/dataProducts/{data_product}/dataAssets/{data_asset} * - dataProduct: projects/{project}/locations/{location}/dataProducts/{data_product} + * - entry: projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry} + * - entryGroup: projects/{project}/locations/{location}/entryGroups/{entry_group} + * - entryLink: projects/{project}/locations/{location}/entryGroups/{entry_group}/entryLinks/{entry_link} + * - glossary: projects/{project}/locations/{location}/glossaries/{glossary} + * - glossaryCategory: projects/{project}/locations/{location}/glossaries/{glossary}/categories/{glossary_category} + * - glossaryTerm: projects/{project}/locations/{location}/glossaries/{glossary}/terms/{glossary_term} * - location: projects/{project}/locations/{location} * * The optional $template argument can be supplied to specify a particular pattern, @@ -566,6 +734,37 @@ public function listDataProducts(ListDataProductsRequest $request, array $callOp return $this->startApiCall('ListDataProducts', $request, $callOptions); } + /** + * Requests access to a data product. This will trigger an access approval + * workflow, and the requester will need to wait for the approval to be + * granted before they will be able to access the data product assets. + * + * The async variant is + * {@see DataProductServiceClient::requestDataProductAccessAsync()} . + * + * @example samples/V1/DataProductServiceClient/request_data_product_access.php + * + * @param RequestDataProductAccessRequest $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 RequestDataProductAccessResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function requestDataProductAccess( + RequestDataProductAccessRequest $request, + array $callOptions = [] + ): RequestDataProductAccessResponse { + return $this->startApiCall('RequestDataProductAccess', $request, $callOptions)->wait(); + } + /** * Updates a data asset. * @@ -646,13 +845,21 @@ public function getLocation(GetLocationRequest $request, array $callOptions = [] /** * Lists information about the supported locations for this service. - This method can be called in two ways: - * **List all public locations:** Use the path `GET /v1/locations`. - * **List project-visible locations:** Use the path - `GET /v1/projects/{project_id}/locations`. This may include public - locations as well as private or other locations specifically visible - to the project. + 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 DataProductServiceClient::listLocationsAsync()} . * diff --git a/Dataplex/src/V1/Client/DataScanServiceClient.php b/Dataplex/src/V1/Client/DataScanServiceClient.php index 55605066ae34..d43e706d2220 100644 --- a/Dataplex/src/V1/Client/DataScanServiceClient.php +++ b/Dataplex/src/V1/Client/DataScanServiceClient.php @@ -35,6 +35,8 @@ use Google\ApiCore\Transport\TransportInterface; use Google\ApiCore\ValidationException; use Google\Auth\FetchAuthTokenInterface; +use Google\Cloud\Dataplex\V1\CancelDataScanJobRequest; +use Google\Cloud\Dataplex\V1\CancelDataScanJobResponse; use Google\Cloud\Dataplex\V1\CreateDataScanRequest; use Google\Cloud\Dataplex\V1\DataScan; use Google\Cloud\Dataplex\V1\DataScanJob; @@ -74,6 +76,7 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * + * @method PromiseInterface cancelDataScanJobAsync(CancelDataScanJobRequest $request, array $optionalArgs = []) * @method PromiseInterface createDataScanAsync(CreateDataScanRequest $request, array $optionalArgs = []) * @method PromiseInterface deleteDataScanAsync(DeleteDataScanRequest $request, array $optionalArgs = []) * @method PromiseInterface generateDataQualityRulesAsync(GenerateDataQualityRulesRequest $request, array $optionalArgs = []) @@ -114,7 +117,12 @@ final class DataScanServiceClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = ['https://www.googleapis.com/auth/cloud-platform']; + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/cloud-platform', + 'https://www.googleapis.com/auth/cloud-platform.read-only', + 'https://www.googleapis.com/auth/dataplex.read-write', + 'https://www.googleapis.com/auth/dataplex.readonly', + ]; private $operationsClient; @@ -289,6 +297,27 @@ public static function entityName( ]); } + /** + * Formats a string containing the fully-qualified path to represent a entry + * resource. + * + * @param string $project + * @param string $location + * @param string $entryGroup + * @param string $entry + * + * @return string The formatted entry resource. + */ + public static function entryName(string $project, string $location, string $entryGroup, string $entry): string + { + return self::getPathTemplate('entry')->render([ + 'project' => $project, + 'location' => $location, + 'entry_group' => $entryGroup, + 'entry' => $entry, + ]); + } + /** * Formats a string containing the fully-qualified path to represent a location * resource. @@ -330,6 +359,7 @@ public static function projectName(string $project): string * - dataScanJob: projects/{project}/locations/{location}/dataScans/{dataScan}/jobs/{job} * - dataset: projects/{project}/datasets/{dataset} * - entity: projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/entities/{entity} + * - entry: projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry} * - location: projects/{project}/locations/{location} * - project: projects/{project} * @@ -437,6 +467,34 @@ public function __call($method, $args) return call_user_func_array([$this, 'startAsyncCall'], $args); } + /** + * Cancels a running/pending DataScan job. + * + * The async variant is {@see DataScanServiceClient::cancelDataScanJobAsync()} . + * + * @example samples/V1/DataScanServiceClient/cancel_data_scan_job.php + * + * @param CancelDataScanJobRequest $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 CancelDataScanJobResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function cancelDataScanJob( + CancelDataScanJobRequest $request, + array $callOptions = [] + ): CancelDataScanJobResponse { + return $this->startApiCall('CancelDataScanJob', $request, $callOptions)->wait(); + } + /** * Creates a DataScan resource. * @@ -705,13 +763,21 @@ public function getLocation(GetLocationRequest $request, array $callOptions = [] /** * Lists information about the supported locations for this service. - This method can be called in two ways: - * **List all public locations:** Use the path `GET /v1/locations`. - * **List project-visible locations:** Use the path - `GET /v1/projects/{project_id}/locations`. This may include public - locations as well as private or other locations specifically visible - to the project. + 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 DataScanServiceClient::listLocationsAsync()} . * diff --git a/Dataplex/src/V1/Client/DataTaxonomyServiceClient.php b/Dataplex/src/V1/Client/DataTaxonomyServiceClient.php index 302e884f877d..d28d632ffc09 100644 --- a/Dataplex/src/V1/Client/DataTaxonomyServiceClient.php +++ b/Dataplex/src/V1/Client/DataTaxonomyServiceClient.php @@ -126,7 +126,10 @@ final class DataTaxonomyServiceClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = ['https://www.googleapis.com/auth/cloud-platform']; + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/cloud-platform', + 'https://www.googleapis.com/auth/dataplex.read-write', + ]; private $operationsClient; @@ -867,13 +870,21 @@ public function getLocation(GetLocationRequest $request, array $callOptions = [] /** * Lists information about the supported locations for this service. - This method can be called in two ways: - * **List all public locations:** Use the path `GET /v1/locations`. - * **List project-visible locations:** Use the path - `GET /v1/projects/{project_id}/locations`. This may include public - locations as well as private or other locations specifically visible - to the project. + 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 DataTaxonomyServiceClient::listLocationsAsync()} . * diff --git a/Dataplex/src/V1/Client/DataplexServiceClient.php b/Dataplex/src/V1/Client/DataplexServiceClient.php index 3cf8d9f16428..cee279b6b0cc 100644 --- a/Dataplex/src/V1/Client/DataplexServiceClient.php +++ b/Dataplex/src/V1/Client/DataplexServiceClient.php @@ -154,7 +154,12 @@ final class DataplexServiceClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = ['https://www.googleapis.com/auth/cloud-platform']; + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/cloud-platform', + 'https://www.googleapis.com/auth/cloud-platform.read-only', + 'https://www.googleapis.com/auth/dataplex.read-write', + 'https://www.googleapis.com/auth/dataplex.readonly', + ]; private $operationsClient; @@ -1200,13 +1205,21 @@ public function getLocation(GetLocationRequest $request, array $callOptions = [] /** * Lists information about the supported locations for this service. - This method can be called in two ways: - * **List all public locations:** Use the path `GET /v1/locations`. - * **List project-visible locations:** Use the path - `GET /v1/projects/{project_id}/locations`. This may include public - locations as well as private or other locations specifically visible - to the project. + 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 DataplexServiceClient::listLocationsAsync()} . * diff --git a/Dataplex/src/V1/Client/MetadataServiceClient.php b/Dataplex/src/V1/Client/MetadataServiceClient.php index 36beef3621cc..f9e675833e16 100644 --- a/Dataplex/src/V1/Client/MetadataServiceClient.php +++ b/Dataplex/src/V1/Client/MetadataServiceClient.php @@ -108,7 +108,10 @@ final class MetadataServiceClient private const CODEGEN_NAME = 'gapic'; /** The default scopes required by the service. */ - public static $serviceScopes = ['https://www.googleapis.com/auth/cloud-platform']; + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/cloud-platform', + 'https://www.googleapis.com/auth/dataplex.read-write', + ]; private static function getClientDefaults() { @@ -578,13 +581,21 @@ public function getLocation(GetLocationRequest $request, array $callOptions = [] /** * Lists information about the supported locations for this service. - This method can be called in two ways: - * **List all public locations:** Use the path `GET /v1/locations`. - * **List project-visible locations:** Use the path - `GET /v1/projects/{project_id}/locations`. This may include public - locations as well as private or other locations specifically visible - to the project. + 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 MetadataServiceClient::listLocationsAsync()} . * diff --git a/Dataplex/src/V1/CreateDataScanRequest.php b/Dataplex/src/V1/CreateDataScanRequest.php index 2389a27e3be8..6cbb738f08c9 100644 --- a/Dataplex/src/V1/CreateDataScanRequest.php +++ b/Dataplex/src/V1/CreateDataScanRequest.php @@ -31,14 +31,15 @@ class CreateDataScanRequest extends \Google\Protobuf\Internal\Message */ protected $data_scan = null; /** - * Required. DataScan identifier. + * Optional. DataScan identifier. If not provided, a unique ID will be + * generated with the prefix "data-scan-". * * Must contain only lowercase letters, numbers and hyphens. * * Must start with a letter. * * Must end with a number or a letter. * * Must be between 1-63 characters. * * Must be unique within the customer project / location. * - * Generated from protobuf field string data_scan_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field string data_scan_id = 3 [(.google.api.field_behavior) = OPTIONAL]; */ protected $data_scan_id = ''; /** @@ -56,7 +57,8 @@ class CreateDataScanRequest extends \Google\Protobuf\Internal\Message * `location_id` refers to a Google Cloud region. Please see * {@see DataScanServiceClient::locationName()} for help formatting this field. * @param \Google\Cloud\Dataplex\V1\DataScan $dataScan Required. DataScan resource. - * @param string $dataScanId Required. DataScan identifier. + * @param string $dataScanId Optional. DataScan identifier. If not provided, a unique ID will be + * generated with the prefix "data-scan-". * * * Must contain only lowercase letters, numbers and hyphens. * * Must start with a letter. @@ -90,7 +92,8 @@ public static function build(string $parent, \Google\Cloud\Dataplex\V1\DataScan * @type \Google\Cloud\Dataplex\V1\DataScan $data_scan * Required. DataScan resource. * @type string $data_scan_id - * Required. DataScan identifier. + * Optional. DataScan identifier. If not provided, a unique ID will be + * generated with the prefix "data-scan-". * * Must contain only lowercase letters, numbers and hyphens. * * Must start with a letter. * * Must end with a number or a letter. @@ -175,14 +178,15 @@ public function setDataScan($var) } /** - * Required. DataScan identifier. + * Optional. DataScan identifier. If not provided, a unique ID will be + * generated with the prefix "data-scan-". * * Must contain only lowercase letters, numbers and hyphens. * * Must start with a letter. * * Must end with a number or a letter. * * Must be between 1-63 characters. * * Must be unique within the customer project / location. * - * Generated from protobuf field string data_scan_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field string data_scan_id = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return string */ public function getDataScanId() @@ -191,14 +195,15 @@ public function getDataScanId() } /** - * Required. DataScan identifier. + * Optional. DataScan identifier. If not provided, a unique ID will be + * generated with the prefix "data-scan-". * * Must contain only lowercase letters, numbers and hyphens. * * Must start with a letter. * * Must end with a number or a letter. * * Must be between 1-63 characters. * * Must be unique within the customer project / location. * - * Generated from protobuf field string data_scan_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * Generated from protobuf field string data_scan_id = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var * @return $this */ diff --git a/Dataplex/src/V1/DataDiscoverySpec/StorageConfig.php b/Dataplex/src/V1/DataDiscoverySpec/StorageConfig.php index e4fb08fe3831..d8a9112f02ae 100644 --- a/Dataplex/src/V1/DataDiscoverySpec/StorageConfig.php +++ b/Dataplex/src/V1/DataDiscoverySpec/StorageConfig.php @@ -48,6 +48,12 @@ class StorageConfig extends \Google\Protobuf\Internal\Message * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.JsonOptions json_options = 4 [(.google.api.field_behavior) = OPTIONAL]; */ protected $json_options = null; + /** + * Optional. Specifies configuration for unstructured data discovery. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.UnstructuredDataOptions unstructured_data_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $unstructured_data_options = null; /** * Constructor. @@ -72,6 +78,8 @@ class StorageConfig extends \Google\Protobuf\Internal\Message * Optional. Configuration for CSV data. * @type \Google\Cloud\Dataplex\V1\DataDiscoverySpec\StorageConfig\JsonOptions $json_options * Optional. Configuration for JSON data. + * @type \Google\Cloud\Dataplex\V1\DataDiscoverySpec\StorageConfig\UnstructuredDataOptions $unstructured_data_options + * Optional. Specifies configuration for unstructured data discovery. * } */ public function __construct($data = NULL) { @@ -221,5 +229,41 @@ public function setJsonOptions($var) return $this; } + /** + * Optional. Specifies configuration for unstructured data discovery. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.UnstructuredDataOptions unstructured_data_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataplex\V1\DataDiscoverySpec\StorageConfig\UnstructuredDataOptions|null + */ + public function getUnstructuredDataOptions() + { + return $this->unstructured_data_options; + } + + public function hasUnstructuredDataOptions() + { + return isset($this->unstructured_data_options); + } + + public function clearUnstructuredDataOptions() + { + unset($this->unstructured_data_options); + } + + /** + * Optional. Specifies configuration for unstructured data discovery. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.UnstructuredDataOptions unstructured_data_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataplex\V1\DataDiscoverySpec\StorageConfig\UnstructuredDataOptions $var + * @return $this + */ + public function setUnstructuredDataOptions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataDiscoverySpec\StorageConfig\UnstructuredDataOptions::class); + $this->unstructured_data_options = $var; + + return $this; + } + } diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoverySpec/StorageConfig/UnstructuredDataOptions.php b/Dataplex/src/V1/DataDiscoverySpec/StorageConfig/UnstructuredDataOptions.php similarity index 100% rename from owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoverySpec/StorageConfig/UnstructuredDataOptions.php rename to Dataplex/src/V1/DataDiscoverySpec/StorageConfig/UnstructuredDataOptions.php diff --git a/Dataplex/src/V1/DataProduct.php b/Dataplex/src/V1/DataProduct.php index 2639a88ccd26..5ea6efdba3bf 100644 --- a/Dataplex/src/V1/DataProduct.php +++ b/Dataplex/src/V1/DataProduct.php @@ -122,6 +122,12 @@ class DataProduct extends \Google\Protobuf\Internal\Message * Generated from protobuf field map access_groups = 14 [(.google.api.field_behavior) = OPTIONAL]; */ private $access_groups; + /** + * Optional. Configuration for access approval for the data product. + * + * Generated from protobuf field optional .google.cloud.dataplex.v1.DataProduct.AccessApprovalConfig access_approval_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $access_approval_config = null; /** * Constructor. @@ -186,6 +192,8 @@ class DataProduct extends \Google\Protobuf\Internal\Message * } * } * ``` + * @type \Google\Cloud\Dataplex\V1\DataProduct\AccessApprovalConfig $access_approval_config + * Optional. Configuration for access approval for the data product. * } */ public function __construct($data = NULL) { @@ -591,5 +599,41 @@ public function setAccessGroups($var) return $this; } + /** + * Optional. Configuration for access approval for the data product. + * + * Generated from protobuf field optional .google.cloud.dataplex.v1.DataProduct.AccessApprovalConfig access_approval_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataplex\V1\DataProduct\AccessApprovalConfig|null + */ + public function getAccessApprovalConfig() + { + return $this->access_approval_config; + } + + public function hasAccessApprovalConfig() + { + return isset($this->access_approval_config); + } + + public function clearAccessApprovalConfig() + { + unset($this->access_approval_config); + } + + /** + * Optional. Configuration for access approval for the data product. + * + * Generated from protobuf field optional .google.cloud.dataplex.v1.DataProduct.AccessApprovalConfig access_approval_config = 15 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataplex\V1\DataProduct\AccessApprovalConfig $var + * @return $this + */ + public function setAccessApprovalConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataProduct\AccessApprovalConfig::class); + $this->access_approval_config = $var; + + return $this; + } + } diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProduct/AccessApprovalConfig.php b/Dataplex/src/V1/DataProduct/AccessApprovalConfig.php similarity index 100% rename from owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProduct/AccessApprovalConfig.php rename to Dataplex/src/V1/DataProduct/AccessApprovalConfig.php diff --git a/Dataplex/src/V1/DataProduct/Principal.php b/Dataplex/src/V1/DataProduct/Principal.php index d5bc9cacd1e2..558e897b2f80 100644 --- a/Dataplex/src/V1/DataProduct/Principal.php +++ b/Dataplex/src/V1/DataProduct/Principal.php @@ -16,6 +16,13 @@ */ class Principal extends \Google\Protobuf\Internal\Message { + /** + * Optional. Specifies the email of the producer service account, as per + * https://cloud.google.com/iam/docs/principals-overview#service-account. + * + * Generated from protobuf field optional string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $service_account = null; protected $type; /** @@ -27,6 +34,9 @@ class Principal extends \Google\Protobuf\Internal\Message * @type string $google_group * Optional. Email of the Google Group, as per * https://cloud.google.com/iam/docs/principals-overview#google-group. + * @type string $service_account + * Optional. Specifies the email of the producer service account, as per + * https://cloud.google.com/iam/docs/principals-overview#service-account. * } */ public function __construct($data = NULL) { @@ -67,6 +77,44 @@ public function setGoogleGroup($var) return $this; } + /** + * Optional. Specifies the email of the producer service account, as per + * https://cloud.google.com/iam/docs/principals-overview#service-account. + * + * Generated from protobuf field optional string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getServiceAccount() + { + return isset($this->service_account) ? $this->service_account : ''; + } + + public function hasServiceAccount() + { + return isset($this->service_account); + } + + public function clearServiceAccount() + { + unset($this->service_account); + } + + /** + * Optional. Specifies the email of the producer service account, as per + * https://cloud.google.com/iam/docs/principals-overview#service-account. + * + * Generated from protobuf field optional string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setServiceAccount($var) + { + GPBUtil::checkString($var, True); + $this->service_account = $var; + + return $this; + } + /** * @return string */ diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProductAccessRequest.php b/Dataplex/src/V1/DataProductAccessRequest.php similarity index 100% rename from owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProductAccessRequest.php rename to Dataplex/src/V1/DataProductAccessRequest.php diff --git a/Dataplex/src/V1/DataProfileSpec.php b/Dataplex/src/V1/DataProfileSpec.php index efb736dec377..c9f0f682394b 100644 --- a/Dataplex/src/V1/DataProfileSpec.php +++ b/Dataplex/src/V1/DataProfileSpec.php @@ -64,6 +64,12 @@ class DataProfileSpec extends \Google\Protobuf\Internal\Message * Generated from protobuf field bool catalog_publishing_enabled = 8 [(.google.api.field_behavior) = OPTIONAL]; */ protected $catalog_publishing_enabled = false; + /** + * Optional. The execution mode for the profile scan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileSpec.Mode mode = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $mode = 0; /** * Constructor. @@ -96,6 +102,8 @@ class DataProfileSpec extends \Google\Protobuf\Internal\Message * @type bool $catalog_publishing_enabled * Optional. If set, the latest DataScan job result will be published as * Dataplex Universal Catalog metadata. + * @type int $mode + * Optional. The execution mode for the profile scan. * } */ public function __construct($data = NULL) { @@ -315,5 +323,31 @@ public function setCatalogPublishingEnabled($var) return $this; } + /** + * Optional. The execution mode for the profile scan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileSpec.Mode mode = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getMode() + { + return $this->mode; + } + + /** + * Optional. The execution mode for the profile scan. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileSpec.Mode mode = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setMode($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\DataProfileSpec\Mode::class); + $this->mode = $var; + + return $this; + } + } diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileSpec/Mode.php b/Dataplex/src/V1/DataProfileSpec/Mode.php similarity index 100% rename from owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileSpec/Mode.php rename to Dataplex/src/V1/DataProfileSpec/Mode.php diff --git a/Dataplex/src/V1/DataQualityRule.php b/Dataplex/src/V1/DataQualityRule.php index a532bc1d9c4b..94c6a80933c2 100644 --- a/Dataplex/src/V1/DataQualityRule.php +++ b/Dataplex/src/V1/DataQualityRule.php @@ -76,6 +76,21 @@ class DataQualityRule extends \Google\Protobuf\Internal\Message * Generated from protobuf field bool suspended = 506 [(.google.api.field_behavior) = OPTIONAL]; */ protected $suspended = false; + /** + * Optional. Map of attribute name and value linked to the rule. The rules to + * evaluate can be filtered based on attributes provided here and a filter + * expression provided in the DataQualitySpec.filter field. + * + * Generated from protobuf field map attributes = 507 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $attributes; + /** + * Output only. Contains information about the source of the rule and its + * relationship with the BigQuery table, where applicable. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.RuleSource rule_source = 508 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $rule_source = null; /** * Optional. Specifies the debug queries for this rule. * Currently, only one query is supported, but this may be expanded in the @@ -117,6 +132,10 @@ class DataQualityRule extends \Google\Protobuf\Internal\Message * @type \Google\Cloud\Dataplex\V1\DataQualityRule\SqlAssertion $sql_assertion * Aggregate rule which evaluates the number of rows returned for the * provided statement. If any rows are returned, this rule fails. + * @type \Google\Cloud\Dataplex\V1\DataQualityRule\TemplateReference $template_reference + * Aggregate rule which references a rule template and provides the + * parameters to be substituted in the template. If any rows are returned, + * this rule fails. * @type string $column * Optional. The unnested column which this rule is evaluated against. * @type bool $ignore_null @@ -150,6 +169,13 @@ class DataQualityRule extends \Google\Protobuf\Internal\Message * @type bool $suspended * Optional. Whether the Rule is active or suspended. * Default is false. + * @type array|\Google\Protobuf\Internal\MapField $attributes + * Optional. Map of attribute name and value linked to the rule. The rules to + * evaluate can be filtered based on attributes provided here and a filter + * expression provided in the DataQualitySpec.filter field. + * @type \Google\Cloud\Dataplex\V1\DataQualityRule\RuleSource $rule_source + * Output only. Contains information about the source of the rule and its + * relationship with the BigQuery table, where applicable. * @type \Google\Cloud\Dataplex\V1\DataQualityRule\DebugQuery[] $debug_queries * Optional. Specifies the debug queries for this rule. * Currently, only one query is supported, but this may be expanded in the @@ -454,6 +480,41 @@ public function setSqlAssertion($var) return $this; } + /** + * Aggregate rule which references a rule template and provides the + * parameters to be substituted in the template. If any rows are returned, + * this rule fails. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.TemplateReference template_reference = 5; + * @return \Google\Cloud\Dataplex\V1\DataQualityRule\TemplateReference|null + */ + public function getTemplateReference() + { + return $this->readOneof(5); + } + + public function hasTemplateReference() + { + return $this->hasOneof(5); + } + + /** + * Aggregate rule which references a rule template and provides the + * parameters to be substituted in the template. If any rows are returned, + * this rule fails. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.TemplateReference template_reference = 5; + * @param \Google\Cloud\Dataplex\V1\DataQualityRule\TemplateReference $var + * @return $this + */ + public function setTemplateReference($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataQualityRule\TemplateReference::class); + $this->writeOneof(5, $var); + + return $this; + } + /** * Optional. The unnested column which this rule is evaluated against. * @@ -674,6 +735,74 @@ public function setSuspended($var) return $this; } + /** + * Optional. Map of attribute name and value linked to the rule. The rules to + * evaluate can be filtered based on attributes provided here and a filter + * expression provided in the DataQualitySpec.filter field. + * + * Generated from protobuf field map attributes = 507 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getAttributes() + { + return $this->attributes; + } + + /** + * Optional. Map of attribute name and value linked to the rule. The rules to + * evaluate can be filtered based on attributes provided here and a filter + * expression provided in the DataQualitySpec.filter field. + * + * Generated from protobuf field map attributes = 507 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setAttributes($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->attributes = $arr; + + return $this; + } + + /** + * Output only. Contains information about the source of the rule and its + * relationship with the BigQuery table, where applicable. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.RuleSource rule_source = 508 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\Dataplex\V1\DataQualityRule\RuleSource|null + */ + public function getRuleSource() + { + return $this->rule_source; + } + + public function hasRuleSource() + { + return isset($this->rule_source); + } + + public function clearRuleSource() + { + unset($this->rule_source); + } + + /** + * Output only. Contains information about the source of the rule and its + * relationship with the BigQuery table, where applicable. + * + * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.RuleSource rule_source = 508 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\Dataplex\V1\DataQualityRule\RuleSource $var + * @return $this + */ + public function setRuleSource($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataQualityRule\RuleSource::class); + $this->rule_source = $var; + + return $this; + } + /** * Optional. Specifies the debug queries for this rule. * Currently, only one query is supported, but this may be expanded in the diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/RuleSource.php b/Dataplex/src/V1/DataQualityRule/RuleSource.php similarity index 100% rename from owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/RuleSource.php rename to Dataplex/src/V1/DataQualityRule/RuleSource.php diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/RuleSource/RulePathElement.php b/Dataplex/src/V1/DataQualityRule/RuleSource/RulePathElement.php similarity index 100% rename from owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/RuleSource/RulePathElement.php rename to Dataplex/src/V1/DataQualityRule/RuleSource/RulePathElement.php diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/RuleSource/RulePathElement/EntryLinkSource.php b/Dataplex/src/V1/DataQualityRule/RuleSource/RulePathElement/EntryLinkSource.php similarity index 100% rename from owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/RuleSource/RulePathElement/EntryLinkSource.php rename to Dataplex/src/V1/DataQualityRule/RuleSource/RulePathElement/EntryLinkSource.php diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/RuleSource/RulePathElement/EntrySource.php b/Dataplex/src/V1/DataQualityRule/RuleSource/RulePathElement/EntrySource.php similarity index 100% rename from owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/RuleSource/RulePathElement/EntrySource.php rename to Dataplex/src/V1/DataQualityRule/RuleSource/RulePathElement/EntrySource.php diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/TemplateReference.php b/Dataplex/src/V1/DataQualityRule/TemplateReference.php similarity index 100% rename from owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/TemplateReference.php rename to Dataplex/src/V1/DataQualityRule/TemplateReference.php diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/TemplateReference/ParameterValue.php b/Dataplex/src/V1/DataQualityRule/TemplateReference/ParameterValue.php similarity index 100% rename from owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/TemplateReference/ParameterValue.php rename to Dataplex/src/V1/DataQualityRule/TemplateReference/ParameterValue.php diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRuleTemplate.php b/Dataplex/src/V1/DataQualityRuleTemplate.php similarity index 100% rename from owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRuleTemplate.php rename to Dataplex/src/V1/DataQualityRuleTemplate.php diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRuleTemplate/ParameterDescription.php b/Dataplex/src/V1/DataQualityRuleTemplate/ParameterDescription.php similarity index 100% rename from owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRuleTemplate/ParameterDescription.php rename to Dataplex/src/V1/DataQualityRuleTemplate/ParameterDescription.php diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRuleTemplate/Sql.php b/Dataplex/src/V1/DataQualityRuleTemplate/Sql.php similarity index 100% rename from owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRuleTemplate/Sql.php rename to Dataplex/src/V1/DataQualityRuleTemplate/Sql.php diff --git a/Dataplex/src/V1/DataQualityScanRuleResult/RuleType.php b/Dataplex/src/V1/DataQualityScanRuleResult/RuleType.php index 99e48fc7e6ca..b7519f675823 100644 --- a/Dataplex/src/V1/DataQualityScanRuleResult/RuleType.php +++ b/Dataplex/src/V1/DataQualityScanRuleResult/RuleType.php @@ -82,6 +82,13 @@ class RuleType * Generated from protobuf enum SQL_ASSERTION = 9; */ const SQL_ASSERTION = 9; + /** + * See + * [DataQualityRule.TemplateReference][google.cloud.dataplex.v1.DataQualityRule.TemplateReference]. + * + * Generated from protobuf enum TEMPLATE_REFERENCE = 10; + */ + const TEMPLATE_REFERENCE = 10; private static $valueToName = [ self::RULE_TYPE_UNSPECIFIED => 'RULE_TYPE_UNSPECIFIED', @@ -94,6 +101,7 @@ class RuleType self::TABLE_CONDITION_EXPECTATION => 'TABLE_CONDITION_EXPECTATION', self::UNIQUENESS_EXPECTATION => 'UNIQUENESS_EXPECTATION', self::SQL_ASSERTION => 'SQL_ASSERTION', + self::TEMPLATE_REFERENCE => 'TEMPLATE_REFERENCE', ]; public static function name($value) diff --git a/Dataplex/src/V1/DataQualitySpec.php b/Dataplex/src/V1/DataQualitySpec.php index 7ecdbcc5ad4d..48caf1a03755 100644 --- a/Dataplex/src/V1/DataQualitySpec.php +++ b/Dataplex/src/V1/DataQualitySpec.php @@ -56,6 +56,34 @@ class DataQualitySpec extends \Google\Protobuf\Internal\Message * Generated from protobuf field bool catalog_publishing_enabled = 8 [(.google.api.field_behavior) = OPTIONAL]; */ protected $catalog_publishing_enabled = false; + /** + * Optional. If enabled, the data scan will retrieve rules defined in the + * dataplex-types.global.data-rules aspect on all paths of the catalog entry + * corresponding to the BigQuery table resource and all attached glossary + * terms. The path that data-rules aspect is attached on the table entry + * defines the column that the rule will be evaluated against. For glossary + * terms, the path that the terms are attached on the table entry defines the + * column that the rule will be evaluated against. At the start of scan + * execution, the rules reflect the latest state retrieved from the catalog + * entry and any updates on the rules thereafter are ignored for that + * execution. The updates will be reflected from the next execution. Rules + * defined in the datascan must be empty if this field is enabled. + * + * Generated from protobuf field bool enable_catalog_based_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $enable_catalog_based_rules = false; + /** + * Optional. Filter for selectively running a subset of rules. You can filter + * the request by the name or attribute key-value pairs defined on the rule. + * If not specified, all rules are run. The filter is applicable to both, the + * rules retrieved from catalog and explicitly defined rules in the scan. + * Please see [filter + * syntax](https://docs.cloud.google.com/dataplex/docs/auto-data-quality-overview#rule-filtering) + * for more details. + * + * Generated from protobuf field string filter = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; /** * Constructor. @@ -84,6 +112,26 @@ class DataQualitySpec extends \Google\Protobuf\Internal\Message * @type bool $catalog_publishing_enabled * Optional. If set, the latest DataScan job result will be published as * Dataplex Universal Catalog metadata. + * @type bool $enable_catalog_based_rules + * Optional. If enabled, the data scan will retrieve rules defined in the + * dataplex-types.global.data-rules aspect on all paths of the catalog entry + * corresponding to the BigQuery table resource and all attached glossary + * terms. The path that data-rules aspect is attached on the table entry + * defines the column that the rule will be evaluated against. For glossary + * terms, the path that the terms are attached on the table entry defines the + * column that the rule will be evaluated against. At the start of scan + * execution, the rules reflect the latest state retrieved from the catalog + * entry and any updates on the rules thereafter are ignored for that + * execution. The updates will be reflected from the next execution. Rules + * defined in the datascan must be empty if this field is enabled. + * @type string $filter + * Optional. Filter for selectively running a subset of rules. You can filter + * the request by the name or attribute key-value pairs defined on the rule. + * If not specified, all rules are run. The filter is applicable to both, the + * rules retrieved from catalog and explicitly defined rules in the scan. + * Please see [filter + * syntax](https://docs.cloud.google.com/dataplex/docs/auto-data-quality-overview#rule-filtering) + * for more details. * } */ public function __construct($data = NULL) { @@ -253,5 +301,89 @@ public function setCatalogPublishingEnabled($var) return $this; } + /** + * Optional. If enabled, the data scan will retrieve rules defined in the + * dataplex-types.global.data-rules aspect on all paths of the catalog entry + * corresponding to the BigQuery table resource and all attached glossary + * terms. The path that data-rules aspect is attached on the table entry + * defines the column that the rule will be evaluated against. For glossary + * terms, the path that the terms are attached on the table entry defines the + * column that the rule will be evaluated against. At the start of scan + * execution, the rules reflect the latest state retrieved from the catalog + * entry and any updates on the rules thereafter are ignored for that + * execution. The updates will be reflected from the next execution. Rules + * defined in the datascan must be empty if this field is enabled. + * + * Generated from protobuf field bool enable_catalog_based_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getEnableCatalogBasedRules() + { + return $this->enable_catalog_based_rules; + } + + /** + * Optional. If enabled, the data scan will retrieve rules defined in the + * dataplex-types.global.data-rules aspect on all paths of the catalog entry + * corresponding to the BigQuery table resource and all attached glossary + * terms. The path that data-rules aspect is attached on the table entry + * defines the column that the rule will be evaluated against. For glossary + * terms, the path that the terms are attached on the table entry defines the + * column that the rule will be evaluated against. At the start of scan + * execution, the rules reflect the latest state retrieved from the catalog + * entry and any updates on the rules thereafter are ignored for that + * execution. The updates will be reflected from the next execution. Rules + * defined in the datascan must be empty if this field is enabled. + * + * Generated from protobuf field bool enable_catalog_based_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setEnableCatalogBasedRules($var) + { + GPBUtil::checkBool($var); + $this->enable_catalog_based_rules = $var; + + return $this; + } + + /** + * Optional. Filter for selectively running a subset of rules. You can filter + * the request by the name or attribute key-value pairs defined on the rule. + * If not specified, all rules are run. The filter is applicable to both, the + * rules retrieved from catalog and explicitly defined rules in the scan. + * Please see [filter + * syntax](https://docs.cloud.google.com/dataplex/docs/auto-data-quality-overview#rule-filtering) + * for more details. + * + * Generated from protobuf field string filter = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Filter for selectively running a subset of rules. You can filter + * the request by the name or attribute key-value pairs defined on the rule. + * If not specified, all rules are run. The filter is applicable to both, the + * rules retrieved from catalog and explicitly defined rules in the scan. + * Please see [filter + * syntax](https://docs.cloud.google.com/dataplex/docs/auto-data-quality-overview#rule-filtering) + * for more details. + * + * Generated from protobuf field string filter = 11 [(.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/Dataplex/src/V1/DataScan.php b/Dataplex/src/V1/DataScan.php index b3e21cb75988..fc8507dac394 100644 --- a/Dataplex/src/V1/DataScan.php +++ b/Dataplex/src/V1/DataScan.php @@ -23,10 +23,11 @@ * * Data discovery: scans data in Cloud Storage buckets to extract and then * catalog metadata. For more information, see [Discover and catalog Cloud * Storage data](https://cloud.google.com/bigquery/docs/automatic-discovery). - * * Data documentation: analyzes the table details and generates insights - * including descriptions and sample SQL queries for the table. For more - * information, see [Generate data insights in - * BigQuery](https://cloud.google.com/bigquery/docs/data-insights). + * * Data documentation: analyzes the table or dataset metadata and generates + * insights. For tables, insights include descriptions and sample SQL + * queries. For datasets, insights include descriptions, schema relationships + * and sample SQL queries. For more information, see [Generate data insights + * in BigQuery](https://cloud.google.com/bigquery/docs/data-insights). * * Generated from protobuf message google.cloud.dataplex.v1.DataScan */ @@ -111,6 +112,13 @@ class DataScan extends \Google\Protobuf\Internal\Message * Generated from protobuf field .google.cloud.dataplex.v1.DataScanType type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ protected $type = 0; + /** + * Optional. Immutable. The identity to run the datascan. + * If not specified, defaults to the Dataplex Service Agent. + * + * Generated from protobuf field .google.cloud.dataplex.v1.ExecutionIdentity execution_identity = 300 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + */ + protected $execution_identity = null; protected $spec; protected $result; @@ -167,6 +175,9 @@ class DataScan extends \Google\Protobuf\Internal\Message * Output only. The result of a data discovery scan. * @type \Google\Cloud\Dataplex\V1\DataDocumentationResult $data_documentation_result * Output only. The result of a data documentation scan. + * @type \Google\Cloud\Dataplex\V1\ExecutionIdentity $execution_identity + * Optional. Immutable. The identity to run the datascan. + * If not specified, defaults to the Dataplex Service Agent. * } */ public function __construct($data = NULL) { @@ -798,6 +809,44 @@ public function setDataDocumentationResult($var) return $this; } + /** + * Optional. Immutable. The identity to run the datascan. + * If not specified, defaults to the Dataplex Service Agent. + * + * Generated from protobuf field .google.cloud.dataplex.v1.ExecutionIdentity execution_identity = 300 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * @return \Google\Cloud\Dataplex\V1\ExecutionIdentity|null + */ + public function getExecutionIdentity() + { + return $this->execution_identity; + } + + public function hasExecutionIdentity() + { + return isset($this->execution_identity); + } + + public function clearExecutionIdentity() + { + unset($this->execution_identity); + } + + /** + * Optional. Immutable. The identity to run the datascan. + * If not specified, defaults to the Dataplex Service Agent. + * + * Generated from protobuf field .google.cloud.dataplex.v1.ExecutionIdentity execution_identity = 300 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * @param \Google\Cloud\Dataplex\V1\ExecutionIdentity $var + * @return $this + */ + public function setExecutionIdentity($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\ExecutionIdentity::class); + $this->execution_identity = $var; + + return $this; + } + /** * @return string */ diff --git a/Dataplex/src/V1/DataScanJob.php b/Dataplex/src/V1/DataScanJob.php index ef30f5bcf510..e0799f3623cf 100644 --- a/Dataplex/src/V1/DataScanJob.php +++ b/Dataplex/src/V1/DataScanJob.php @@ -37,6 +37,12 @@ class DataScanJob extends \Google\Protobuf\Internal\Message * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ protected $create_time = null; + /** + * Output only. A message indicating partial failure details. + * + * Generated from protobuf field string partial_failure_message = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $partial_failure_message = ''; /** * Output only. The time when the DataScanJob was started. * @@ -86,6 +92,8 @@ class DataScanJob extends \Google\Protobuf\Internal\Message * Output only. System generated globally unique ID for the DataScanJob. * @type \Google\Protobuf\Timestamp $create_time * Output only. The time when the DataScanJob was created. + * @type string $partial_failure_message + * Output only. A message indicating partial failure details. * @type \Google\Protobuf\Timestamp $start_time * Output only. The time when the DataScanJob was started. * @type \Google\Protobuf\Timestamp $end_time @@ -215,6 +223,32 @@ public function setCreateTime($var) return $this; } + /** + * Output only. A message indicating partial failure details. + * + * Generated from protobuf field string partial_failure_message = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getPartialFailureMessage() + { + return $this->partial_failure_message; + } + + /** + * Output only. A message indicating partial failure details. + * + * Generated from protobuf field string partial_failure_message = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setPartialFailureMessage($var) + { + GPBUtil::checkString($var, True); + $this->partial_failure_message = $var; + + return $this; + } + /** * Output only. The time when the DataScanJob was started. * diff --git a/Dataplex/src/V1/DataScanJob/State.php b/Dataplex/src/V1/DataScanJob/State.php index 2709a4d239fa..5f79ddc321e2 100644 --- a/Dataplex/src/V1/DataScanJob/State.php +++ b/Dataplex/src/V1/DataScanJob/State.php @@ -55,6 +55,12 @@ class State * Generated from protobuf enum PENDING = 7; */ const PENDING = 7; + /** + * The DataScanJob succeeded with errors. + * + * Generated from protobuf enum SUCCEEDED_WITH_ERRORS = 8; + */ + const SUCCEEDED_WITH_ERRORS = 8; private static $valueToName = [ self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', @@ -64,6 +70,7 @@ class State self::SUCCEEDED => 'SUCCEEDED', self::FAILED => 'FAILED', self::PENDING => 'PENDING', + self::SUCCEEDED_WITH_ERRORS => 'SUCCEEDED_WITH_ERRORS', ]; public static function name($value) diff --git a/Dataplex/src/V1/DataSource.php b/Dataplex/src/V1/DataSource.php index a6def1dea490..38e25bb9c433 100644 --- a/Dataplex/src/V1/DataSource.php +++ b/Dataplex/src/V1/DataSource.php @@ -34,8 +34,13 @@ class DataSource extends \Google\Protobuf\Internal\Message * //storage.googleapis.com/projects/PROJECT_ID/buckets/BUCKET_ID * or * BigQuery table of type "TABLE" for - * DataProfileScan/DataQualityScan/DataDocumentationScan Format: + * DataProfileScan/DataQualityScan/DataDocumentationScan + * Format: * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID + * or + * BigQuery dataset for DataDocumentationScan only + * Format: + * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID * } */ public function __construct($data = NULL) { @@ -85,8 +90,13 @@ public function setEntity($var) * //storage.googleapis.com/projects/PROJECT_ID/buckets/BUCKET_ID * or * BigQuery table of type "TABLE" for - * DataProfileScan/DataQualityScan/DataDocumentationScan Format: + * DataProfileScan/DataQualityScan/DataDocumentationScan + * Format: * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID + * or + * BigQuery dataset for DataDocumentationScan only + * Format: + * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID * * Generated from protobuf field string resource = 101 [(.google.api.field_behavior) = IMMUTABLE]; * @return string @@ -108,8 +118,13 @@ public function hasResource() * //storage.googleapis.com/projects/PROJECT_ID/buckets/BUCKET_ID * or * BigQuery table of type "TABLE" for - * DataProfileScan/DataQualityScan/DataDocumentationScan Format: + * DataProfileScan/DataQualityScan/DataDocumentationScan + * Format: * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID + * or + * BigQuery dataset for DataDocumentationScan only + * Format: + * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID * * Generated from protobuf field string resource = 101 [(.google.api.field_behavior) = IMMUTABLE]; * @param string $var diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ExecutionIdentity.php b/Dataplex/src/V1/ExecutionIdentity.php similarity index 100% rename from owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ExecutionIdentity.php rename to Dataplex/src/V1/ExecutionIdentity.php diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ExecutionIdentity/DataplexServiceAgent.php b/Dataplex/src/V1/ExecutionIdentity/DataplexServiceAgent.php similarity index 100% rename from owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ExecutionIdentity/DataplexServiceAgent.php rename to Dataplex/src/V1/ExecutionIdentity/DataplexServiceAgent.php diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ExecutionIdentity/ServiceAccount.php b/Dataplex/src/V1/ExecutionIdentity/ServiceAccount.php similarity index 100% rename from owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ExecutionIdentity/ServiceAccount.php rename to Dataplex/src/V1/ExecutionIdentity/ServiceAccount.php diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ExecutionIdentity/UserCredential.php b/Dataplex/src/V1/ExecutionIdentity/UserCredential.php similarity index 100% rename from owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ExecutionIdentity/UserCredential.php rename to Dataplex/src/V1/ExecutionIdentity/UserCredential.php diff --git a/Dataplex/src/V1/GetEntryRequest.php b/Dataplex/src/V1/GetEntryRequest.php index e4099479ce1f..425cfc062f0b 100644 --- a/Dataplex/src/V1/GetEntryRequest.php +++ b/Dataplex/src/V1/GetEntryRequest.php @@ -25,6 +25,9 @@ class GetEntryRequest extends \Google\Protobuf\Internal\Message /** * Optional. View to control which parts of an entry the service should * return. + * **Please check the limitations on returned aspects in the Entry view + * documentation. Amount of returned aspects depends on the selected Entry + * View.** * * Generated from protobuf field .google.cloud.dataplex.v1.EntryView view = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -71,6 +74,9 @@ public static function build(string $name): self * @type int $view * Optional. View to control which parts of an entry the service should * return. + * **Please check the limitations on returned aspects in the Entry view + * documentation. Amount of returned aspects depends on the selected Entry + * View.** * @type string[] $aspect_types * Optional. Limits the aspects returned to the provided aspect types. * It only works for CUSTOM view. @@ -115,6 +121,9 @@ public function setName($var) /** * Optional. View to control which parts of an entry the service should * return. + * **Please check the limitations on returned aspects in the Entry view + * documentation. Amount of returned aspects depends on the selected Entry + * View.** * * Generated from protobuf field .google.cloud.dataplex.v1.EntryView view = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return int @@ -127,6 +136,9 @@ public function getView() /** * Optional. View to control which parts of an entry the service should * return. + * **Please check the limitations on returned aspects in the Entry view + * documentation. Amount of returned aspects depends on the selected Entry + * View.** * * Generated from protobuf field .google.cloud.dataplex.v1.EntryView view = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param int $var diff --git a/Dataplex/src/V1/LookupContextRequest.php b/Dataplex/src/V1/LookupContextRequest.php index fad3ee9c0fed..aad7968a1d54 100644 --- a/Dataplex/src/V1/LookupContextRequest.php +++ b/Dataplex/src/V1/LookupContextRequest.php @@ -23,16 +23,29 @@ class LookupContextRequest extends \Google\Protobuf\Internal\Message */ protected $name = ''; /** - * Required. The entry names to lookup context for. The request should have - * max 10 of those. + * Required. The entry names to look up the context for. The maximum number of + * resources for a request is limited to 10. * ## Examples: - * projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry} + * `projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}` * * Generated from protobuf field repeated string resources = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ private $resources; + /** + * Optional. The text representing contextual information for which metadata + * context is being requested. + * + * Generated from protobuf field string context = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $context = ''; /** * Optional. Allows to configure the context. + * Supported options: + * - `format` - The format of the context (one of `yaml`, + * `xml`, `json`, default is `yaml`). + * - `context_budget` - If provided, the output will be intelligently + * truncated on a best-effort basis to contain approximately the desired + * amount of characters. There is no guarantee to achieve the specific amount. * * Generated from protobuf field map options = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -48,12 +61,21 @@ class LookupContextRequest extends \Google\Protobuf\Internal\Message * Required. The project to which the request should be attributed in the * following form: `projects/{project}/locations/{location}`. * @type string[] $resources - * Required. The entry names to lookup context for. The request should have - * max 10 of those. + * Required. The entry names to look up the context for. The maximum number of + * resources for a request is limited to 10. * ## Examples: - * projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry} + * `projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}` + * @type string $context + * Optional. The text representing contextual information for which metadata + * context is being requested. * @type array|\Google\Protobuf\Internal\MapField $options * Optional. Allows to configure the context. + * Supported options: + * - `format` - The format of the context (one of `yaml`, + * `xml`, `json`, default is `yaml`). + * - `context_budget` - If provided, the output will be intelligently + * truncated on a best-effort basis to contain approximately the desired + * amount of characters. There is no guarantee to achieve the specific amount. * } */ public function __construct($data = NULL) { @@ -90,10 +112,10 @@ public function setName($var) } /** - * Required. The entry names to lookup context for. The request should have - * max 10 of those. + * Required. The entry names to look up the context for. The maximum number of + * resources for a request is limited to 10. * ## Examples: - * projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry} + * `projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}` * * Generated from protobuf field repeated string resources = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @return RepeatedField @@ -104,10 +126,10 @@ public function getResources() } /** - * Required. The entry names to lookup context for. The request should have - * max 10 of those. + * Required. The entry names to look up the context for. The maximum number of + * resources for a request is limited to 10. * ## Examples: - * projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry} + * `projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}` * * Generated from protobuf field repeated string resources = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @param string[] $var @@ -121,8 +143,42 @@ public function setResources($var) return $this; } + /** + * Optional. The text representing contextual information for which metadata + * context is being requested. + * + * Generated from protobuf field string context = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getContext() + { + return $this->context; + } + + /** + * Optional. The text representing contextual information for which metadata + * context is being requested. + * + * Generated from protobuf field string context = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setContext($var) + { + GPBUtil::checkString($var, True); + $this->context = $var; + + return $this; + } + /** * Optional. Allows to configure the context. + * Supported options: + * - `format` - The format of the context (one of `yaml`, + * `xml`, `json`, default is `yaml`). + * - `context_budget` - If provided, the output will be intelligently + * truncated on a best-effort basis to contain approximately the desired + * amount of characters. There is no guarantee to achieve the specific amount. * * Generated from protobuf field map options = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return \Google\Protobuf\Internal\MapField @@ -134,6 +190,12 @@ public function getOptions() /** * Optional. Allows to configure the context. + * Supported options: + * - `format` - The format of the context (one of `yaml`, + * `xml`, `json`, default is `yaml`). + * - `context_budget` - If provided, the output will be intelligently + * truncated on a best-effort basis to contain approximately the desired + * amount of characters. There is no guarantee to achieve the specific amount. * * Generated from protobuf field map options = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param array|\Google\Protobuf\Internal\MapField $var diff --git a/Dataplex/src/V1/LookupContextResponse.php b/Dataplex/src/V1/LookupContextResponse.php index 6edb7ca58100..8d292fb2d3b6 100644 --- a/Dataplex/src/V1/LookupContextResponse.php +++ b/Dataplex/src/V1/LookupContextResponse.php @@ -16,7 +16,8 @@ class LookupContextResponse extends \Google\Protobuf\Internal\Message { /** - * LLM generated context for the resources. + * Pre-formatted block of text containing the context for the requested + * resources. * * Generated from protobuf field string context = 1; */ @@ -29,7 +30,8 @@ class LookupContextResponse extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $context - * LLM generated context for the resources. + * Pre-formatted block of text containing the context for the requested + * resources. * } */ public function __construct($data = NULL) { @@ -38,7 +40,8 @@ public function __construct($data = NULL) { } /** - * LLM generated context for the resources. + * Pre-formatted block of text containing the context for the requested + * resources. * * Generated from protobuf field string context = 1; * @return string @@ -49,7 +52,8 @@ public function getContext() } /** - * LLM generated context for the resources. + * Pre-formatted block of text containing the context for the requested + * resources. * * Generated from protobuf field string context = 1; * @param string $var diff --git a/Dataplex/src/V1/LookupEntryRequest.php b/Dataplex/src/V1/LookupEntryRequest.php index 1fbba3f0f92a..34e44e82a6c1 100644 --- a/Dataplex/src/V1/LookupEntryRequest.php +++ b/Dataplex/src/V1/LookupEntryRequest.php @@ -25,6 +25,9 @@ class LookupEntryRequest extends \Google\Protobuf\Internal\Message /** * Optional. View to control which parts of an entry the service should * return. + * **Please check the limitations on returned aspects in the Entry view + * documentation. Amount of returned aspects depends on the selected Entry + * View.** * * Generated from protobuf field .google.cloud.dataplex.v1.EntryView view = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -63,6 +66,9 @@ class LookupEntryRequest extends \Google\Protobuf\Internal\Message * @type int $view * Optional. View to control which parts of an entry the service should * return. + * **Please check the limitations on returned aspects in the Entry view + * documentation. Amount of returned aspects depends on the selected Entry + * View.** * @type string[] $aspect_types * Optional. Limits the aspects returned to the provided aspect types. * It only works for CUSTOM view. @@ -110,6 +116,9 @@ public function setName($var) /** * Optional. View to control which parts of an entry the service should * return. + * **Please check the limitations on returned aspects in the Entry view + * documentation. Amount of returned aspects depends on the selected Entry + * View.** * * Generated from protobuf field .google.cloud.dataplex.v1.EntryView view = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return int @@ -122,6 +131,9 @@ public function getView() /** * Optional. View to control which parts of an entry the service should * return. + * **Please check the limitations on returned aspects in the Entry view + * documentation. Amount of returned aspects depends on the selected Entry + * View.** * * Generated from protobuf field .google.cloud.dataplex.v1.EntryView view = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param int $var diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ModifyEntryRequest.php b/Dataplex/src/V1/ModifyEntryRequest.php similarity index 100% rename from owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ModifyEntryRequest.php rename to Dataplex/src/V1/ModifyEntryRequest.php diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/RequestDataProductAccessRequest.php b/Dataplex/src/V1/RequestDataProductAccessRequest.php similarity index 100% rename from owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/RequestDataProductAccessRequest.php rename to Dataplex/src/V1/RequestDataProductAccessRequest.php diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/RequestDataProductAccessResponse.php b/Dataplex/src/V1/RequestDataProductAccessResponse.php similarity index 100% rename from owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/RequestDataProductAccessResponse.php rename to Dataplex/src/V1/RequestDataProductAccessResponse.php diff --git a/Dataplex/src/V1/gapic_metadata.json b/Dataplex/src/V1/gapic_metadata.json index 2bdcfb90f45e..fb49daf13f33 100644 --- a/Dataplex/src/V1/gapic_metadata.json +++ b/Dataplex/src/V1/gapic_metadata.json @@ -438,6 +438,11 @@ "lookupEntryLinks" ] }, + "ModifyEntry": { + "methods": [ + "modifyEntry" + ] + }, "SearchEntries": { "methods": [ "searchEntries" @@ -640,6 +645,11 @@ "listDataProducts" ] }, + "RequestDataProductAccess": { + "methods": [ + "requestDataProductAccess" + ] + }, "UpdateDataAsset": { "methods": [ "updateDataAsset" @@ -793,6 +803,11 @@ "grpc": { "libraryClient": "DataScanServiceGapicClient", "rpcs": { + "CancelDataScanJob": { + "methods": [ + "cancelDataScanJob" + ] + }, "CreateDataScan": { "methods": [ "createDataScan" diff --git a/Dataplex/src/V1/resources/business_glossary_service_rest_client_config.php b/Dataplex/src/V1/resources/business_glossary_service_rest_client_config.php index 96a57becffff..b4af8f0da8f0 100644 --- a/Dataplex/src/V1/resources/business_glossary_service_rest_client_config.php +++ b/Dataplex/src/V1/resources/business_glossary_service_rest_client_config.php @@ -257,10 +257,6 @@ 'method' => 'get', 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:getIamPolicy', ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:getIamPolicy', - ], [ 'method' => 'get', 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:getIamPolicy', @@ -321,6 +317,10 @@ 'method' => 'get', 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:getIamPolicy', ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:getIamPolicy', + ], ], 'placeholders' => [ 'resource' => [ @@ -350,11 +350,6 @@ 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:setIamPolicy', 'body' => '*', ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:setIamPolicy', - 'body' => '*', - ], [ 'method' => 'post', 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:setIamPolicy', @@ -430,6 +425,11 @@ 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:setIamPolicy', 'body' => '*', ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:setIamPolicy', + 'body' => '*', + ], ], 'placeholders' => [ 'resource' => [ @@ -459,11 +459,6 @@ 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:testIamPermissions', 'body' => '*', ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:testIamPermissions', - 'body' => '*', - ], [ 'method' => 'post', 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:testIamPermissions', @@ -539,6 +534,11 @@ 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:testIamPermissions', 'body' => '*', ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:testIamPermissions', + 'body' => '*', + ], ], 'placeholders' => [ 'resource' => [ diff --git a/Dataplex/src/V1/resources/catalog_service_client_config.json b/Dataplex/src/V1/resources/catalog_service_client_config.json index bb323a0bb67f..4a3df73c84c8 100644 --- a/Dataplex/src/V1/resources/catalog_service_client_config.json +++ b/Dataplex/src/V1/resources/catalog_service_client_config.json @@ -97,8 +97,8 @@ }, "CreateEntryLink": { "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" + "retry_codes_name": "no_retry_4_codes", + "retry_params_name": "no_retry_4_params" }, "CreateEntryType": { "timeout_millis": 60000, @@ -132,8 +132,8 @@ }, "DeleteEntryLink": { "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" + "retry_codes_name": "no_retry_4_codes", + "retry_params_name": "no_retry_4_params" }, "DeleteEntryType": { "timeout_millis": 60000, @@ -161,9 +161,9 @@ "retry_params_name": "retry_policy_9_params" }, "GetEntryLink": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" + "timeout_millis": 20000, + "retry_codes_name": "retry_policy_7_codes", + "retry_params_name": "retry_policy_7_params" }, "GetEntryType": { "timeout_millis": 60000, @@ -221,6 +221,11 @@ "retry_params_name": "retry_policy_7_params" }, "LookupEntryLinks": { + "timeout_millis": 20000, + "retry_codes_name": "retry_policy_7_codes", + "retry_params_name": "retry_policy_7_params" + }, + "ModifyEntry": { "timeout_millis": 60000, "retry_codes_name": "no_retry_codes", "retry_params_name": "no_retry_params" @@ -247,8 +252,8 @@ }, "UpdateEntryLink": { "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" + "retry_codes_name": "retry_policy_8_codes", + "retry_params_name": "retry_policy_8_params" }, "UpdateEntryType": { "timeout_millis": 60000, diff --git a/Dataplex/src/V1/resources/catalog_service_descriptor_config.php b/Dataplex/src/V1/resources/catalog_service_descriptor_config.php index 5e3abfad63e8..cb51ee721ce0 100644 --- a/Dataplex/src/V1/resources/catalog_service_descriptor_config.php +++ b/Dataplex/src/V1/resources/catalog_service_descriptor_config.php @@ -582,6 +582,18 @@ ], ], ], + 'ModifyEntry' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\Entry', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], 'SearchEntries' => [ 'pageStreaming' => [ 'requestPageTokenGetMethod' => 'getPageToken', diff --git a/Dataplex/src/V1/resources/catalog_service_rest_client_config.php b/Dataplex/src/V1/resources/catalog_service_rest_client_config.php index 5129dca486b5..6bad68b73f4b 100644 --- a/Dataplex/src/V1/resources/catalog_service_rest_client_config.php +++ b/Dataplex/src/V1/resources/catalog_service_rest_client_config.php @@ -377,6 +377,18 @@ ], ], ], + 'ModifyEntry' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}:modifyEntry', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], 'SearchEntries' => [ 'method' => 'post', 'uriTemplate' => '/v1/{name=projects/*/locations/*}:searchEntries', @@ -517,10 +529,6 @@ 'method' => 'get', 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:getIamPolicy', ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:getIamPolicy', - ], [ 'method' => 'get', 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:getIamPolicy', @@ -581,6 +589,10 @@ 'method' => 'get', 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:getIamPolicy', ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:getIamPolicy', + ], ], 'placeholders' => [ 'resource' => [ @@ -610,11 +622,6 @@ 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:setIamPolicy', 'body' => '*', ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:setIamPolicy', - 'body' => '*', - ], [ 'method' => 'post', 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:setIamPolicy', @@ -690,6 +697,11 @@ 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:setIamPolicy', 'body' => '*', ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:setIamPolicy', + 'body' => '*', + ], ], 'placeholders' => [ 'resource' => [ @@ -719,11 +731,6 @@ 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:testIamPermissions', 'body' => '*', ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:testIamPermissions', - 'body' => '*', - ], [ 'method' => 'post', 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:testIamPermissions', @@ -799,6 +806,11 @@ 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:testIamPermissions', 'body' => '*', ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:testIamPermissions', + 'body' => '*', + ], ], 'placeholders' => [ 'resource' => [ diff --git a/Dataplex/src/V1/resources/cmek_service_rest_client_config.php b/Dataplex/src/V1/resources/cmek_service_rest_client_config.php index 8397272482de..92929f11e178 100644 --- a/Dataplex/src/V1/resources/cmek_service_rest_client_config.php +++ b/Dataplex/src/V1/resources/cmek_service_rest_client_config.php @@ -126,10 +126,6 @@ 'method' => 'get', 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:getIamPolicy', ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:getIamPolicy', - ], [ 'method' => 'get', 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:getIamPolicy', @@ -190,6 +186,10 @@ 'method' => 'get', 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:getIamPolicy', ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:getIamPolicy', + ], ], 'placeholders' => [ 'resource' => [ @@ -219,11 +219,6 @@ 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:setIamPolicy', 'body' => '*', ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:setIamPolicy', - 'body' => '*', - ], [ 'method' => 'post', 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:setIamPolicy', @@ -299,6 +294,11 @@ 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:setIamPolicy', 'body' => '*', ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:setIamPolicy', + 'body' => '*', + ], ], 'placeholders' => [ 'resource' => [ @@ -328,11 +328,6 @@ 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:testIamPermissions', 'body' => '*', ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:testIamPermissions', - 'body' => '*', - ], [ 'method' => 'post', 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:testIamPermissions', @@ -408,6 +403,11 @@ 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:testIamPermissions', 'body' => '*', ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:testIamPermissions', + 'body' => '*', + ], ], 'placeholders' => [ 'resource' => [ diff --git a/Dataplex/src/V1/resources/content_service_rest_client_config.php b/Dataplex/src/V1/resources/content_service_rest_client_config.php index 7a036781f50f..159c091da02d 100644 --- a/Dataplex/src/V1/resources/content_service_rest_client_config.php +++ b/Dataplex/src/V1/resources/content_service_rest_client_config.php @@ -63,10 +63,6 @@ 'method' => 'get', 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:getIamPolicy', ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:getIamPolicy', - ], [ 'method' => 'get', 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:getIamPolicy', @@ -127,6 +123,10 @@ 'method' => 'get', 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:getIamPolicy', ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:getIamPolicy', + ], ], 'placeholders' => [ 'resource' => [ @@ -156,11 +156,6 @@ 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:setIamPolicy', 'body' => '*', ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:setIamPolicy', - 'body' => '*', - ], [ 'method' => 'post', 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:setIamPolicy', @@ -236,6 +231,11 @@ 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:setIamPolicy', 'body' => '*', ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:setIamPolicy', + 'body' => '*', + ], ], 'placeholders' => [ 'resource' => [ @@ -265,11 +265,6 @@ 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:testIamPermissions', 'body' => '*', ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:testIamPermissions', - 'body' => '*', - ], [ 'method' => 'post', 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:testIamPermissions', @@ -345,6 +340,11 @@ 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:testIamPermissions', 'body' => '*', ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:testIamPermissions', + 'body' => '*', + ], ], 'placeholders' => [ 'resource' => [ diff --git a/Dataplex/src/V1/resources/data_product_service_client_config.json b/Dataplex/src/V1/resources/data_product_service_client_config.json index 8337b1ae330a..f160b2345b6c 100644 --- a/Dataplex/src/V1/resources/data_product_service_client_config.json +++ b/Dataplex/src/V1/resources/data_product_service_client_config.json @@ -56,6 +56,11 @@ "retry_codes_name": "no_retry_codes", "retry_params_name": "no_retry_params" }, + "RequestDataProductAccess": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, "UpdateDataAsset": { "timeout_millis": 60000, "retry_codes_name": "no_retry_codes", diff --git a/Dataplex/src/V1/resources/data_product_service_descriptor_config.php b/Dataplex/src/V1/resources/data_product_service_descriptor_config.php index a9ac24f0d32c..5c49c5557a20 100644 --- a/Dataplex/src/V1/resources/data_product_service_descriptor_config.php +++ b/Dataplex/src/V1/resources/data_product_service_descriptor_config.php @@ -203,6 +203,18 @@ ], ], ], + 'RequestDataProductAccess' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\RequestDataProductAccessResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], 'GetLocation' => [ 'callType' => \Google\ApiCore\Call::UNARY_CALL, 'responseType' => 'Google\Cloud\Location\Location', @@ -277,8 +289,15 @@ 'interfaceOverride' => 'google.iam.v1.IAMPolicy', ], 'templateMap' => [ + 'changeRequest' => 'projects/{project}/locations/{location}/changeRequests/{change_request}', 'dataAsset' => 'projects/{project}/locations/{location}/dataProducts/{data_product}/dataAssets/{data_asset}', 'dataProduct' => 'projects/{project}/locations/{location}/dataProducts/{data_product}', + 'entry' => 'projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}', + 'entryGroup' => 'projects/{project}/locations/{location}/entryGroups/{entry_group}', + 'entryLink' => 'projects/{project}/locations/{location}/entryGroups/{entry_group}/entryLinks/{entry_link}', + 'glossary' => 'projects/{project}/locations/{location}/glossaries/{glossary}', + 'glossaryCategory' => 'projects/{project}/locations/{location}/glossaries/{glossary}/categories/{glossary_category}', + 'glossaryTerm' => 'projects/{project}/locations/{location}/glossaries/{glossary}/terms/{glossary_term}', 'location' => 'projects/{project}/locations/{location}', ], ], diff --git a/Dataplex/src/V1/resources/data_product_service_rest_client_config.php b/Dataplex/src/V1/resources/data_product_service_rest_client_config.php index 322310fe1c60..ddc88c1c8330 100644 --- a/Dataplex/src/V1/resources/data_product_service_rest_client_config.php +++ b/Dataplex/src/V1/resources/data_product_service_rest_client_config.php @@ -113,6 +113,18 @@ ], ], ], + 'RequestDataProductAccess' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/dataProducts/*}:requestAccess', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], 'UpdateDataAsset' => [ 'method' => 'patch', 'uriTemplate' => '/v1/{data_asset.name=projects/*/locations/*/dataProducts/*/dataAssets/*}', @@ -181,10 +193,6 @@ 'method' => 'get', 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:getIamPolicy', ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:getIamPolicy', - ], [ 'method' => 'get', 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:getIamPolicy', @@ -245,6 +253,10 @@ 'method' => 'get', 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:getIamPolicy', ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:getIamPolicy', + ], ], 'placeholders' => [ 'resource' => [ @@ -274,11 +286,6 @@ 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:setIamPolicy', 'body' => '*', ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:setIamPolicy', - 'body' => '*', - ], [ 'method' => 'post', 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:setIamPolicy', @@ -354,6 +361,11 @@ 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:setIamPolicy', 'body' => '*', ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:setIamPolicy', + 'body' => '*', + ], ], 'placeholders' => [ 'resource' => [ @@ -383,11 +395,6 @@ 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:testIamPermissions', 'body' => '*', ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:testIamPermissions', - 'body' => '*', - ], [ 'method' => 'post', 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:testIamPermissions', @@ -463,6 +470,11 @@ 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:testIamPermissions', 'body' => '*', ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:testIamPermissions', + 'body' => '*', + ], ], 'placeholders' => [ 'resource' => [ diff --git a/Dataplex/src/V1/resources/data_scan_service_client_config.json b/Dataplex/src/V1/resources/data_scan_service_client_config.json index 270ba2b2b0ee..405f258d4ce6 100644 --- a/Dataplex/src/V1/resources/data_scan_service_client_config.json +++ b/Dataplex/src/V1/resources/data_scan_service_client_config.json @@ -16,6 +16,11 @@ } }, "methods": { + "CancelDataScanJob": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, "CreateDataScan": { "timeout_millis": 60000, "retry_codes_name": "no_retry_codes", diff --git a/Dataplex/src/V1/resources/data_scan_service_descriptor_config.php b/Dataplex/src/V1/resources/data_scan_service_descriptor_config.php index 1607f45f33c5..fba6acfda371 100644 --- a/Dataplex/src/V1/resources/data_scan_service_descriptor_config.php +++ b/Dataplex/src/V1/resources/data_scan_service_descriptor_config.php @@ -81,6 +81,18 @@ ], ], ], + 'CancelDataScanJob' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Dataplex\V1\CancelDataScanJobResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], 'GenerateDataQualityRules' => [ 'callType' => \Google\ApiCore\Call::UNARY_CALL, 'responseType' => 'Google\Cloud\Dataplex\V1\GenerateDataQualityRulesResponse', @@ -248,6 +260,7 @@ 'dataScanJob' => 'projects/{project}/locations/{location}/dataScans/{dataScan}/jobs/{job}', 'dataset' => 'projects/{project}/datasets/{dataset}', 'entity' => 'projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/entities/{entity}', + 'entry' => 'projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}', 'location' => 'projects/{project}/locations/{location}', 'project' => 'projects/{project}', ], diff --git a/Dataplex/src/V1/resources/data_scan_service_rest_client_config.php b/Dataplex/src/V1/resources/data_scan_service_rest_client_config.php index 480471fbb267..3314387a5a45 100644 --- a/Dataplex/src/V1/resources/data_scan_service_rest_client_config.php +++ b/Dataplex/src/V1/resources/data_scan_service_rest_client_config.php @@ -23,6 +23,18 @@ return [ 'interfaces' => [ 'google.cloud.dataplex.v1.DataScanService' => [ + 'CancelDataScanJob' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataScans/*/jobs/*}:cancel', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], 'CreateDataScan' => [ 'method' => 'post', 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/dataScans', @@ -34,9 +46,6 @@ ], ], ], - 'queryParams' => [ - 'data_scan_id', - ], ], 'DeleteDataScan' => [ 'method' => 'delete', @@ -179,10 +188,6 @@ 'method' => 'get', 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:getIamPolicy', ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:getIamPolicy', - ], [ 'method' => 'get', 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:getIamPolicy', @@ -243,6 +248,10 @@ 'method' => 'get', 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:getIamPolicy', ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:getIamPolicy', + ], ], 'placeholders' => [ 'resource' => [ @@ -272,11 +281,6 @@ 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:setIamPolicy', 'body' => '*', ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:setIamPolicy', - 'body' => '*', - ], [ 'method' => 'post', 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:setIamPolicy', @@ -352,6 +356,11 @@ 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:setIamPolicy', 'body' => '*', ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:setIamPolicy', + 'body' => '*', + ], ], 'placeholders' => [ 'resource' => [ @@ -381,11 +390,6 @@ 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:testIamPermissions', 'body' => '*', ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:testIamPermissions', - 'body' => '*', - ], [ 'method' => 'post', 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:testIamPermissions', @@ -461,6 +465,11 @@ 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:testIamPermissions', 'body' => '*', ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:testIamPermissions', + 'body' => '*', + ], ], 'placeholders' => [ 'resource' => [ diff --git a/Dataplex/src/V1/resources/data_taxonomy_service_rest_client_config.php b/Dataplex/src/V1/resources/data_taxonomy_service_rest_client_config.php index bd73f6bcc608..57ea87f5b17d 100644 --- a/Dataplex/src/V1/resources/data_taxonomy_service_rest_client_config.php +++ b/Dataplex/src/V1/resources/data_taxonomy_service_rest_client_config.php @@ -260,10 +260,6 @@ 'method' => 'get', 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:getIamPolicy', ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:getIamPolicy', - ], [ 'method' => 'get', 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:getIamPolicy', @@ -324,6 +320,10 @@ 'method' => 'get', 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:getIamPolicy', ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:getIamPolicy', + ], ], 'placeholders' => [ 'resource' => [ @@ -353,11 +353,6 @@ 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:setIamPolicy', 'body' => '*', ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:setIamPolicy', - 'body' => '*', - ], [ 'method' => 'post', 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:setIamPolicy', @@ -433,6 +428,11 @@ 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:setIamPolicy', 'body' => '*', ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:setIamPolicy', + 'body' => '*', + ], ], 'placeholders' => [ 'resource' => [ @@ -462,11 +462,6 @@ 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:testIamPermissions', 'body' => '*', ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:testIamPermissions', - 'body' => '*', - ], [ 'method' => 'post', 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:testIamPermissions', @@ -542,6 +537,11 @@ 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:testIamPermissions', 'body' => '*', ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:testIamPermissions', + 'body' => '*', + ], ], 'placeholders' => [ 'resource' => [ diff --git a/Dataplex/src/V1/resources/dataplex_service_rest_client_config.php b/Dataplex/src/V1/resources/dataplex_service_rest_client_config.php index a6695c5d366a..49c1eabad1ce 100644 --- a/Dataplex/src/V1/resources/dataplex_service_rest_client_config.php +++ b/Dataplex/src/V1/resources/dataplex_service_rest_client_config.php @@ -400,10 +400,6 @@ 'method' => 'get', 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:getIamPolicy', ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:getIamPolicy', - ], [ 'method' => 'get', 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:getIamPolicy', @@ -464,6 +460,10 @@ 'method' => 'get', 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:getIamPolicy', ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:getIamPolicy', + ], ], 'placeholders' => [ 'resource' => [ @@ -493,11 +493,6 @@ 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:setIamPolicy', 'body' => '*', ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:setIamPolicy', - 'body' => '*', - ], [ 'method' => 'post', 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:setIamPolicy', @@ -573,6 +568,11 @@ 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:setIamPolicy', 'body' => '*', ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:setIamPolicy', + 'body' => '*', + ], ], 'placeholders' => [ 'resource' => [ @@ -602,11 +602,6 @@ 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:testIamPermissions', 'body' => '*', ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:testIamPermissions', - 'body' => '*', - ], [ 'method' => 'post', 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:testIamPermissions', @@ -682,6 +677,11 @@ 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:testIamPermissions', 'body' => '*', ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:testIamPermissions', + 'body' => '*', + ], ], 'placeholders' => [ 'resource' => [ diff --git a/Dataplex/src/V1/resources/metadata_service_rest_client_config.php b/Dataplex/src/V1/resources/metadata_service_rest_client_config.php index 2b86d2e82fe5..bc18d323dbe2 100644 --- a/Dataplex/src/V1/resources/metadata_service_rest_client_config.php +++ b/Dataplex/src/V1/resources/metadata_service_rest_client_config.php @@ -174,10 +174,6 @@ 'method' => 'get', 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:getIamPolicy', ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:getIamPolicy', - ], [ 'method' => 'get', 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:getIamPolicy', @@ -238,6 +234,10 @@ 'method' => 'get', 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:getIamPolicy', ], + [ + 'method' => 'get', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:getIamPolicy', + ], ], 'placeholders' => [ 'resource' => [ @@ -267,11 +267,6 @@ 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:setIamPolicy', 'body' => '*', ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:setIamPolicy', - 'body' => '*', - ], [ 'method' => 'post', 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:setIamPolicy', @@ -347,6 +342,11 @@ 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:setIamPolicy', 'body' => '*', ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:setIamPolicy', + 'body' => '*', + ], ], 'placeholders' => [ 'resource' => [ @@ -376,11 +376,6 @@ 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:testIamPermissions', 'body' => '*', ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/environments/*}:testIamPermissions', - 'body' => '*', - ], [ 'method' => 'post', 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:testIamPermissions', @@ -456,6 +451,11 @@ 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:testIamPermissions', 'body' => '*', ], + [ + 'method' => 'post', + 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:testIamPermissions', + 'body' => '*', + ], ], 'placeholders' => [ 'resource' => [ diff --git a/Dataplex/tests/Unit/V1/Client/CatalogServiceClientTest.php b/Dataplex/tests/Unit/V1/Client/CatalogServiceClientTest.php index 7915da08a750..68903aadaa3c 100644 --- a/Dataplex/tests/Unit/V1/Client/CatalogServiceClientTest.php +++ b/Dataplex/tests/Unit/V1/Client/CatalogServiceClientTest.php @@ -75,6 +75,7 @@ use Google\Cloud\Dataplex\V1\MetadataFeed\Scope; use Google\Cloud\Dataplex\V1\MetadataJob; use Google\Cloud\Dataplex\V1\MetadataJob\Type; +use Google\Cloud\Dataplex\V1\ModifyEntryRequest; use Google\Cloud\Dataplex\V1\SearchEntriesRequest; use Google\Cloud\Dataplex\V1\SearchEntriesResponse; use Google\Cloud\Dataplex\V1\SearchEntriesResult; @@ -2654,9 +2655,9 @@ public function lookupContextTest() ]); $this->assertTrue($transport->isExhausted()); // Mock response - $context = 'context951530927'; + $context2 = 'context2-406810206'; $expectedResponse = new LookupContextResponse(); - $expectedResponse->setContext($context); + $expectedResponse->setContext($context2); $transport->addResponse($expectedResponse); // Mock request $name = 'name3373707'; @@ -2864,6 +2865,85 @@ public function lookupEntryLinksExceptionTest() $this->assertTrue($transport->isExhausted()); } + /** @test */ + public function modifyEntryTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $entryType = 'entryType-1965312281'; + $parentEntry = 'parentEntry1393020061'; + $fullyQualifiedName = 'fullyQualifiedName338146659'; + $expectedResponse = new Entry(); + $expectedResponse->setName($name2); + $expectedResponse->setEntryType($entryType); + $expectedResponse->setParentEntry($parentEntry); + $expectedResponse->setFullyQualifiedName($fullyQualifiedName); + $transport->addResponse($expectedResponse); + // Mock request + $name = 'name3373707'; + $entry = new Entry(); + $entryEntryType = 'entryEntryType884603514'; + $entry->setEntryType($entryEntryType); + $request = (new ModifyEntryRequest())->setName($name)->setEntry($entry); + $response = $gapicClient->modifyEntry($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.dataplex.v1.CatalogService/ModifyEntry', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($name, $actualValue); + $actualValue = $actualRequestObject->getEntry(); + $this->assertProtobufEquals($entry, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function modifyEntryExceptionTest() + { + $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 + $name = 'name3373707'; + $entry = new Entry(); + $entryEntryType = 'entryEntryType884603514'; + $entry->setEntryType($entryEntryType); + $request = (new ModifyEntryRequest())->setName($name)->setEntry($entry); + try { + $gapicClient->modifyEntry($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 searchEntriesTest() { diff --git a/Dataplex/tests/Unit/V1/Client/DataProductServiceClientTest.php b/Dataplex/tests/Unit/V1/Client/DataProductServiceClientTest.php index 6b8dd56e8659..565c97e20603 100644 --- a/Dataplex/tests/Unit/V1/Client/DataProductServiceClientTest.php +++ b/Dataplex/tests/Unit/V1/Client/DataProductServiceClientTest.php @@ -26,6 +26,7 @@ use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; +use Google\Cloud\Dataplex\V1\ChangeRequest; use Google\Cloud\Dataplex\V1\Client\DataProductServiceClient; use Google\Cloud\Dataplex\V1\CreateDataAssetRequest; use Google\Cloud\Dataplex\V1\CreateDataProductRequest; @@ -39,6 +40,8 @@ use Google\Cloud\Dataplex\V1\ListDataAssetsResponse; use Google\Cloud\Dataplex\V1\ListDataProductsRequest; use Google\Cloud\Dataplex\V1\ListDataProductsResponse; +use Google\Cloud\Dataplex\V1\RequestDataProductAccessRequest; +use Google\Cloud\Dataplex\V1\RequestDataProductAccessResponse; use Google\Cloud\Dataplex\V1\UpdateDataAssetRequest; use Google\Cloud\Dataplex\V1\UpdateDataProductRequest; use Google\Cloud\Iam\V1\GetIamPolicyRequest; @@ -908,6 +911,79 @@ public function listDataProductsExceptionTest() $this->assertTrue($transport->isExhausted()); } + /** @test */ + public function requestDataProductAccessTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $changeRequestName = 'changeRequestName-180005270'; + $expectedResponse = new RequestDataProductAccessResponse(); + $expectedResponse->setChangeRequestName($changeRequestName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->dataProductName('[PROJECT]', '[LOCATION]', '[DATA_PRODUCT]'); + $changeRequest = new ChangeRequest(); + $request = (new RequestDataProductAccessRequest()) + ->setParent($formattedParent) + ->setChangeRequest($changeRequest); + $response = $gapicClient->requestDataProductAccess($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.dataplex.v1.DataProductService/RequestDataProductAccess', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getChangeRequest(); + $this->assertProtobufEquals($changeRequest, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function requestDataProductAccessExceptionTest() + { + $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->dataProductName('[PROJECT]', '[LOCATION]', '[DATA_PRODUCT]'); + $changeRequest = new ChangeRequest(); + $request = (new RequestDataProductAccessRequest()) + ->setParent($formattedParent) + ->setChangeRequest($changeRequest); + try { + $gapicClient->requestDataProductAccess($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 updateDataAssetTest() { diff --git a/Dataplex/tests/Unit/V1/Client/DataScanServiceClientTest.php b/Dataplex/tests/Unit/V1/Client/DataScanServiceClientTest.php index 046d398e8397..d020bff1fdf4 100644 --- a/Dataplex/tests/Unit/V1/Client/DataScanServiceClientTest.php +++ b/Dataplex/tests/Unit/V1/Client/DataScanServiceClientTest.php @@ -26,6 +26,8 @@ use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; use Google\ApiCore\Testing\MockTransport; +use Google\Cloud\Dataplex\V1\CancelDataScanJobRequest; +use Google\Cloud\Dataplex\V1\CancelDataScanJobResponse; use Google\Cloud\Dataplex\V1\Client\DataScanServiceClient; use Google\Cloud\Dataplex\V1\CreateDataScanRequest; use Google\Cloud\Dataplex\V1\DataScan; @@ -90,6 +92,69 @@ private function createClient(array $options = []) return new DataScanServiceClient($options); } + /** @test */ + public function cancelDataScanJobTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new CancelDataScanJobResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->dataScanJobName('[PROJECT]', '[LOCATION]', '[DATASCAN]', '[JOB]'); + $request = (new CancelDataScanJobRequest())->setName($formattedName); + $response = $gapicClient->cancelDataScanJob($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.dataplex.v1.DataScanService/CancelDataScanJob', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function cancelDataScanJobExceptionTest() + { + $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->dataScanJobName('[PROJECT]', '[LOCATION]', '[DATASCAN]', '[JOB]'); + $request = (new CancelDataScanJobRequest())->setName($formattedName); + try { + $gapicClient->cancelDataScanJob($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 createDataScanTest() { @@ -132,11 +197,7 @@ public function createDataScanTest() $dataScan = new DataScan(); $dataScanData = new DataSource(); $dataScan->setData($dataScanData); - $dataScanId = 'dataScanId1236798088'; - $request = (new CreateDataScanRequest()) - ->setParent($formattedParent) - ->setDataScan($dataScan) - ->setDataScanId($dataScanId); + $request = (new CreateDataScanRequest())->setParent($formattedParent)->setDataScan($dataScan); $response = $gapicClient->createDataScan($request); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); @@ -151,8 +212,6 @@ public function createDataScanTest() $this->assertProtobufEquals($formattedParent, $actualValue); $actualValue = $actualApiRequestObject->getDataScan(); $this->assertProtobufEquals($dataScan, $actualValue); - $actualValue = $actualApiRequestObject->getDataScanId(); - $this->assertProtobufEquals($dataScanId, $actualValue); $expectedOperationsRequestObject = new GetOperationRequest(); $expectedOperationsRequestObject->setName('operations/createDataScanTest'); $response->pollUntilComplete([ @@ -211,11 +270,7 @@ public function createDataScanExceptionTest() $dataScan = new DataScan(); $dataScanData = new DataSource(); $dataScan->setData($dataScanData); - $dataScanId = 'dataScanId1236798088'; - $request = (new CreateDataScanRequest()) - ->setParent($formattedParent) - ->setDataScan($dataScan) - ->setDataScanId($dataScanId); + $request = (new CreateDataScanRequest())->setParent($formattedParent)->setDataScan($dataScan); $response = $gapicClient->createDataScan($request); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); @@ -505,10 +560,12 @@ public function getDataScanJobTest() // Mock response $name2 = 'name2-1052831874'; $uid = 'uid115792'; + $partialFailureMessage = 'partialFailureMessage564046740'; $message = 'message954925063'; $expectedResponse = new DataScanJob(); $expectedResponse->setName($name2); $expectedResponse->setUid($uid); + $expectedResponse->setPartialFailureMessage($partialFailureMessage); $expectedResponse->setMessage($message); $transport->addResponse($expectedResponse); // Mock request @@ -1236,84 +1293,28 @@ public function testIamPermissionsExceptionTest() } /** @test */ - public function createDataScanAsyncTest() + public function cancelDataScanJobAsyncTest() { - $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/createDataScanTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $uid = 'uid115792'; - $description = 'description-1724546052'; - $displayName = 'displayName1615086568'; - $expectedResponse = new DataScan(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setDescription($description); - $expectedResponse->setDisplayName($displayName); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createDataScanTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); + $expectedResponse = new CancelDataScanJobResponse(); + $transport->addResponse($expectedResponse); // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $dataScan = new DataScan(); - $dataScanData = new DataSource(); - $dataScan->setData($dataScanData); - $dataScanId = 'dataScanId1236798088'; - $request = (new CreateDataScanRequest()) - ->setParent($formattedParent) - ->setDataScan($dataScan) - ->setDataScanId($dataScanId); - $response = $gapicClient->createDataScanAsync($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.dataplex.v1.DataScanService/CreateDataScan', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getDataScan(); - $this->assertProtobufEquals($dataScan, $actualValue); - $actualValue = $actualApiRequestObject->getDataScanId(); - $this->assertProtobufEquals($dataScanId, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createDataScanTest'); - $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); + $formattedName = $gapicClient->dataScanJobName('[PROJECT]', '[LOCATION]', '[DATASCAN]', '[JOB]'); + $request = (new CancelDataScanJobRequest())->setName($formattedName); + $response = $gapicClient->cancelDataScanJobAsync($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.dataplex.v1.DataScanService/CancelDataScanJob', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); } } diff --git a/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Analyze.php b/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Analyze.php deleted file mode 100644 index 369f37c7a9c6..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Analyze.php +++ /dev/null @@ -1,29 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xCF\x19\x0A&google/cloud/dataplex/v1/analyze.proto\x12\x18google.cloud.dataplex.v1\x1A\x19google/api/resource.proto\x1A(google/cloud/dataplex/v1/resources.proto\x1A\x1Egoogle/protobuf/duration.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\x99\x0D\x0A\x0BEnvironment\x129\x0A\x04name\x18\x01 \x01(\x09B+\xE0A\x03\xFAA%\x0A#dataplex.googleapis.com/Environment\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x10\x0A\x03uid\x18\x03 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12F\x0A\x06labels\x18\x06 \x03(\x0B21.google.cloud.dataplex.v1.Environment.LabelsEntryB\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x07 \x01(\x09B\x03\xE0A\x01\x123\x0A\x05state\x18\x08 \x01(\x0E2\x1F.google.cloud.dataplex.v1.StateB\x03\xE0A\x03\x12Z\x0A\x13infrastructure_spec\x18d \x01(\x0B28.google.cloud.dataplex.v1.Environment.InfrastructureSpecB\x03\xE0A\x02\x12L\x0A\x0Csession_spec\x18e \x01(\x0B21.google.cloud.dataplex.v1.Environment.SessionSpecB\x03\xE0A\x01\x12P\x0A\x0Esession_status\x18f \x01(\x0B23.google.cloud.dataplex.v1.Environment.SessionStatusB\x03\xE0A\x03\x12H\x0A\x09endpoints\x18\xC8\x01 \x01(\x0B2/.google.cloud.dataplex.v1.Environment.EndpointsB\x03\xE0A\x03\x1A\xE5\x04\x0A\x12InfrastructureSpec\x12a\x0A\x07compute\x182 \x01(\x0B2I.google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResourcesB\x03\xE0A\x01H\x00\x12`\x0A\x08os_image\x18d \x01(\x0B2G.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntimeB\x03\xE0A\x02H\x01\x1Ac\x0A\x10ComputeResources\x12\x19\x0A\x0Cdisk_size_gb\x18\x01 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Anode_count\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x1B\x0A\x0Emax_node_count\x18\x03 \x01(\x05B\x03\xE0A\x01\x1A\x8C\x02\x0A\x0EOsImageRuntime\x12\x1A\x0A\x0Dimage_version\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x1B\x0A\x0Ejava_libraries\x18\x02 \x03(\x09B\x03\xE0A\x01\x12\x1C\x0A\x0Fpython_packages\x18\x03 \x03(\x09B\x03\xE0A\x01\x12p\x0A\x0Aproperties\x18\x04 \x03(\x0B2W.google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime.PropertiesEntryB\x03\xE0A\x01\x1A1\x0A\x0FPropertiesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01B\x0B\x0A\x09resourcesB\x09\x0A\x07runtime\x1Aj\x0A\x0BSessionSpec\x129\x0A\x11max_idle_duration\x18\x01 \x01(\x0B2\x19.google.protobuf.DurationB\x03\xE0A\x01\x12 \x0A\x13enable_fast_startup\x18\x02 \x01(\x08B\x03\xE0A\x01\x1A\$\x0A\x0DSessionStatus\x12\x13\x0A\x06active\x18\x01 \x01(\x08B\x03\xE0A\x03\x1A5\x0A\x09Endpoints\x12\x16\x0A\x09notebooks\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x10\x0A\x03sql\x18\x02 \x01(\x09B\x03\xE0A\x03\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:y\xEAAv\x0A#dataplex.googleapis.com/Environment\x12Oprojects/{project}/locations/{location}/lakes/{lake}/environments/{environment}\"\xA6\x07\x0A\x07Content\x125\x0A\x04name\x18\x01 \x01(\x09B'\xE0A\x03\xFAA!\x0A\x1Fdataplex.googleapis.com/Content\x12\x10\x0A\x03uid\x18\x02 \x01(\x09B\x03\xE0A\x03\x12\x11\x0A\x04path\x18\x03 \x01(\x09B\x03\xE0A\x02\x124\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12B\x0A\x06labels\x18\x06 \x03(\x0B2-.google.cloud.dataplex.v1.Content.LabelsEntryB\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x07 \x01(\x09B\x03\xE0A\x01\x12\x18\x0A\x09data_text\x18\x09 \x01(\x09B\x03\xE0A\x02H\x00\x12A\x0A\x0Asql_script\x18d \x01(\x0B2+.google.cloud.dataplex.v1.Content.SqlScriptH\x01\x12>\x0A\x08notebook\x18e \x01(\x0B2*.google.cloud.dataplex.v1.Content.NotebookH\x01\x1A\x91\x01\x0A\x09SqlScript\x12L\x0A\x06engine\x18\x01 \x01(\x0E27.google.cloud.dataplex.v1.Content.SqlScript.QueryEngineB\x03\xE0A\x02\"6\x0A\x0BQueryEngine\x12\x1C\x0A\x18QUERY_ENGINE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05SPARK\x10\x02\x1A\x93\x01\x0A\x08Notebook\x12O\x0A\x0Bkernel_type\x18\x01 \x01(\x0E25.google.cloud.dataplex.v1.Content.Notebook.KernelTypeB\x03\xE0A\x02\"6\x0A\x0AKernelType\x12\x1B\x0A\x17KERNEL_TYPE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07PYTHON3\x10\x01\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:l\xEAAi\x0A\x1Fdataplex.googleapis.com/Content\x12Fprojects/{project}/locations/{location}/lakes/{lake}/content/{content}B\x06\x0A\x04dataB\x09\x0A\x07content\"\xCD\x02\x0A\x07Session\x125\x0A\x04name\x18\x01 \x01(\x09B'\xE0A\x03\xFAA!\x0A\x1Fdataplex.googleapis.com/Session\x12\x14\x0A\x07user_id\x18\x02 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x123\x0A\x05state\x18\x04 \x01(\x0E2\x1F.google.cloud.dataplex.v1.StateB\x03\xE0A\x03:\x89\x01\xEAA\x85\x01\x0A\x1Fdataplex.googleapis.com/Session\x12bprojects/{project}/locations/{location}/lakes/{lake}/environments/{environment}/sessions/{session}Bh\x0A\x1Ccom.google.cloud.dataplex.v1B\x0CAnalyzeProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/BusinessGlossary.php b/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/BusinessGlossary.php deleted file mode 100644 index 8233d5ce8709..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/BusinessGlossary.php +++ /dev/null @@ -1,34 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xA1>\x0A0google/cloud/dataplex/v1/business_glossary.proto\x12\x18google.cloud.dataplex.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x1Bgoogle/api/field_info.proto\x1A\x19google/api/resource.proto\x1A&google/cloud/dataplex/v1/service.proto\x1A#google/longrunning/operations.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\x94\x04\x0A\x08Glossary\x12\x14\x0A\x04name\x18\x01 \x01(\x09B\x06\xE0A\x03\xE0A\x08\x12\x18\x0A\x03uid\x18\x02 \x01(\x09B\x0B\xE0A\x03\xE2\x8C\xCF\xD7\x08\x02\x08\x01\x12\x19\x0A\x0Cdisplay_name\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x04 \x01(\x09B\x03\xE0A\x01\x124\x0A\x0Bcreate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12C\x0A\x06labels\x18\x07 \x03(\x0B2..google.cloud.dataplex.v1.Glossary.LabelsEntryB\x03\xE0A\x01\x12\x17\x0A\x0Aterm_count\x18\x08 \x01(\x05B\x03\xE0A\x03\x12\x1B\x0A\x0Ecategory_count\x18\x09 \x01(\x05B\x03\xE0A\x03\x12\x11\x0A\x04etag\x18\x0A \x01(\x09B\x03\xE0A\x01\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:z\xEAAw\x0A dataplex.googleapis.com/Glossary\x12=projects/{project}/locations/{location}/glossaries/{glossary}*\x0Aglossaries2\x08glossary\"\x99\x04\x0A\x10GlossaryCategory\x12\x14\x0A\x04name\x18\x01 \x01(\x09B\x06\xE0A\x03\xE0A\x08\x12\x18\x0A\x03uid\x18\x02 \x01(\x09B\x0B\xE0A\x03\xE2\x8C\xCF\xD7\x08\x02\x08\x01\x12\x19\x0A\x0Cdisplay_name\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x04 \x01(\x09B\x03\xE0A\x01\x124\x0A\x0Bcreate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12K\x0A\x06labels\x18\x07 \x03(\x0B26.google.cloud.dataplex.v1.GlossaryCategory.LabelsEntryB\x03\xE0A\x01\x12\x13\x0A\x06parent\x18\x08 \x01(\x09B\x03\xE0A\x02\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:\xA2\x01\xEAA\x9E\x01\x0A(dataplex.googleapis.com/GlossaryCategory\x12\\projects/{project}/locations/{location}/glossaries/{glossary}/categories/{glossary_category}*\x0Acategories2\x08category\"\xA0\x04\x0A\x0CGlossaryTerm\x12\x14\x0A\x04name\x18\x01 \x01(\x09B\x06\xE0A\x03\xE0A\x08\x12\x18\x0A\x03uid\x18\x02 \x01(\x09B\x0B\xE0A\x03\xE2\x8C\xCF\xD7\x08\x02\x08\x01\x12\x19\x0A\x0Cdisplay_name\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x04 \x01(\x09B\x03\xE0A\x01\x124\x0A\x0Bcreate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12G\x0A\x06labels\x18\x07 \x03(\x0B22.google.cloud.dataplex.v1.GlossaryTerm.LabelsEntryB\x03\xE0A\x01\x128\x0A\x06parent\x18\x08 \x01(\x09B(\xE0A\x02\xFAA\"\x0A dataplex.googleapis.com/Glossary\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:\x8C\x01\xEAA\x88\x01\x0A\$dataplex.googleapis.com/GlossaryTerm\x12Sprojects/{project}/locations/{location}/glossaries/{glossary}/terms/{glossary_term}*\x05terms2\x04term\"\xC3\x01\x0A\x15CreateGlossaryRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12\x18\x0A\x0Bglossary_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x129\x0A\x08glossary\x18\x03 \x01(\x0B2\".google.cloud.dataplex.v1.GlossaryB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"\xA4\x01\x0A\x15UpdateGlossaryRequest\x129\x0A\x08glossary\x18\x01 \x01(\x0B2\".google.cloud.dataplex.v1.GlossaryB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"b\x0A\x15DeleteGlossaryRequest\x126\x0A\x04name\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A dataplex.googleapis.com/Glossary\x12\x11\x0A\x04etag\x18\x02 \x01(\x09B\x03\xE0A\x01\"L\x0A\x12GetGlossaryRequest\x126\x0A\x04name\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A dataplex.googleapis.com/Glossary\"\xAF\x01\x0A\x15ListGlossariesRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\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\"\x88\x01\x0A\x16ListGlossariesResponse\x126\x0A\x0Aglossaries\x18\x01 \x03(\x0B2\".google.cloud.dataplex.v1.Glossary\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x1D\x0A\x15unreachable_locations\x18\x03 \x03(\x09\"\xB6\x01\x0A\x1DCreateGlossaryCategoryRequest\x128\x0A\x06parent\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A dataplex.googleapis.com/Glossary\x12\x18\x0A\x0Bcategory_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12A\x0A\x08category\x18\x03 \x01(\x0B2*.google.cloud.dataplex.v1.GlossaryCategoryB\x03\xE0A\x02\"\x98\x01\x0A\x1DUpdateGlossaryCategoryRequest\x12A\x0A\x08category\x18\x01 \x01(\x0B2*.google.cloud.dataplex.v1.GlossaryCategoryB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\"_\x0A\x1DDeleteGlossaryCategoryRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(dataplex.googleapis.com/GlossaryCategory\"\\\x0A\x1AGetGlossaryCategoryRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(dataplex.googleapis.com/GlossaryCategory\"\xB6\x01\x0A\x1DListGlossaryCategoriesRequest\x128\x0A\x06parent\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A dataplex.googleapis.com/Glossary\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\x1EListGlossaryCategoriesResponse\x12>\x0A\x0Acategories\x18\x01 \x03(\x0B2*.google.cloud.dataplex.v1.GlossaryCategory\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x1D\x0A\x15unreachable_locations\x18\x03 \x03(\x09\"\xA6\x01\x0A\x19CreateGlossaryTermRequest\x128\x0A\x06parent\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A dataplex.googleapis.com/Glossary\x12\x14\x0A\x07term_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x129\x0A\x04term\x18\x03 \x01(\x0B2&.google.cloud.dataplex.v1.GlossaryTermB\x03\xE0A\x02\"\x8C\x01\x0A\x19UpdateGlossaryTermRequest\x129\x0A\x04term\x18\x01 \x01(\x0B2&.google.cloud.dataplex.v1.GlossaryTermB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\"W\x0A\x19DeleteGlossaryTermRequest\x12:\x0A\x04name\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$dataplex.googleapis.com/GlossaryTerm\"T\x0A\x16GetGlossaryTermRequest\x12:\x0A\x04name\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$dataplex.googleapis.com/GlossaryTerm\"\xB1\x01\x0A\x18ListGlossaryTermsRequest\x128\x0A\x06parent\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A dataplex.googleapis.com/Glossary\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\"\x8A\x01\x0A\x19ListGlossaryTermsResponse\x125\x0A\x05terms\x18\x01 \x03(\x0B2&.google.cloud.dataplex.v1.GlossaryTerm\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x1D\x0A\x15unreachable_locations\x18\x03 \x03(\x092\xF7\x19\x0A\x17BusinessGlossaryService\x12\xE0\x01\x0A\x0ECreateGlossary\x12/.google.cloud.dataplex.v1.CreateGlossaryRequest\x1A\x1D.google.longrunning.Operation\"~\xCAA\x1D\x0A\x08Glossary\x12\x11OperationMetadata\xDAA\x1Bparent,glossary,glossary_id\x82\xD3\xE4\x93\x02:\"./v1/{parent=projects/*/locations/*}/glossaries:\x08glossary\x12\xE3\x01\x0A\x0EUpdateGlossary\x12/.google.cloud.dataplex.v1.UpdateGlossaryRequest\x1A\x1D.google.longrunning.Operation\"\x80\x01\xCAA\x1D\x0A\x08Glossary\x12\x11OperationMetadata\xDAA\x14glossary,update_mask\x82\xD3\xE4\x93\x02C27/v1/{glossary.name=projects/*/locations/*/glossaries/*}:\x08glossary\x12\xCC\x01\x0A\x0EDeleteGlossary\x12/.google.cloud.dataplex.v1.DeleteGlossaryRequest\x1A\x1D.google.longrunning.Operation\"j\xCAA*\x0A\x15google.protobuf.Empty\x12\x11OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x020*./v1/{name=projects/*/locations/*/glossaries/*}\x12\x9E\x01\x0A\x0BGetGlossary\x12,.google.cloud.dataplex.v1.GetGlossaryRequest\x1A\".google.cloud.dataplex.v1.Glossary\"=\xDAA\x04name\x82\xD3\xE4\x93\x020\x12./v1/{name=projects/*/locations/*/glossaries/*}\x12\xB4\x01\x0A\x0EListGlossaries\x12/.google.cloud.dataplex.v1.ListGlossariesRequest\x1A0.google.cloud.dataplex.v1.ListGlossariesResponse\"?\xDAA\x06parent\x82\xD3\xE4\x93\x020\x12./v1/{parent=projects/*/locations/*}/glossaries\x12\xEA\x01\x0A\x16CreateGlossaryCategory\x127.google.cloud.dataplex.v1.CreateGlossaryCategoryRequest\x1A*.google.cloud.dataplex.v1.GlossaryCategory\"k\xDAA\x1Bparent,category,category_id\x82\xD3\xE4\x93\x02G\";/v1/{parent=projects/*/locations/*/glossaries/*}/categories:\x08category\x12\xEC\x01\x0A\x16UpdateGlossaryCategory\x127.google.cloud.dataplex.v1.UpdateGlossaryCategoryRequest\x1A*.google.cloud.dataplex.v1.GlossaryCategory\"m\xDAA\x14category,update_mask\x82\xD3\xE4\x93\x02P2D/v1/{category.name=projects/*/locations/*/glossaries/*/categories/*}:\x08category\x12\xB5\x01\x0A\x16DeleteGlossaryCategory\x127.google.cloud.dataplex.v1.DeleteGlossaryCategoryRequest\x1A\x16.google.protobuf.Empty\"J\xDAA\x04name\x82\xD3\xE4\x93\x02=*;/v1/{name=projects/*/locations/*/glossaries/*/categories/*}\x12\xC3\x01\x0A\x13GetGlossaryCategory\x124.google.cloud.dataplex.v1.GetGlossaryCategoryRequest\x1A*.google.cloud.dataplex.v1.GlossaryCategory\"J\xDAA\x04name\x82\xD3\xE4\x93\x02=\x12;/v1/{name=projects/*/locations/*/glossaries/*/categories/*}\x12\xD9\x01\x0A\x16ListGlossaryCategories\x127.google.cloud.dataplex.v1.ListGlossaryCategoriesRequest\x1A8.google.cloud.dataplex.v1.ListGlossaryCategoriesResponse\"L\xDAA\x06parent\x82\xD3\xE4\x93\x02=\x12;/v1/{parent=projects/*/locations/*/glossaries/*}/categories\x12\xCD\x01\x0A\x12CreateGlossaryTerm\x123.google.cloud.dataplex.v1.CreateGlossaryTermRequest\x1A&.google.cloud.dataplex.v1.GlossaryTerm\"Z\xDAA\x13parent,term,term_id\x82\xD3\xE4\x93\x02>\"6/v1/{parent=projects/*/locations/*/glossaries/*}/terms:\x04term\x12\xCF\x01\x0A\x12UpdateGlossaryTerm\x123.google.cloud.dataplex.v1.UpdateGlossaryTermRequest\x1A&.google.cloud.dataplex.v1.GlossaryTerm\"\\\xDAA\x10term,update_mask\x82\xD3\xE4\x93\x02C2;/v1/{term.name=projects/*/locations/*/glossaries/*/terms/*}:\x04term\x12\xA8\x01\x0A\x12DeleteGlossaryTerm\x123.google.cloud.dataplex.v1.DeleteGlossaryTermRequest\x1A\x16.google.protobuf.Empty\"E\xDAA\x04name\x82\xD3\xE4\x93\x028*6/v1/{name=projects/*/locations/*/glossaries/*/terms/*}\x12\xB2\x01\x0A\x0FGetGlossaryTerm\x120.google.cloud.dataplex.v1.GetGlossaryTermRequest\x1A&.google.cloud.dataplex.v1.GlossaryTerm\"E\xDAA\x04name\x82\xD3\xE4\x93\x028\x126/v1/{name=projects/*/locations/*/glossaries/*/terms/*}\x12\xC5\x01\x0A\x11ListGlossaryTerms\x122.google.cloud.dataplex.v1.ListGlossaryTermsRequest\x1A3.google.cloud.dataplex.v1.ListGlossaryTermsResponse\"G\xDAA\x06parent\x82\xD3\xE4\x93\x028\x126/v1/{parent=projects/*/locations/*/glossaries/*}/terms\x1A\xEB\x01\xCAA\x17dataplex.googleapis.com\xD2A\xCD\x01https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.read-only,https://www.googleapis.com/auth/dataplex.read-write,https://www.googleapis.com/auth/dataplex.readonlyBq\x0A\x1Ccom.google.cloud.dataplex.v1B\x15BusinessGlossaryProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Catalog.php b/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Catalog.php deleted file mode 100644 index f9d69ad3e373..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Catalog.php +++ /dev/null @@ -1,35 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xAD\xCB\x01\x0A&google/cloud/dataplex/v1/catalog.proto\x12\x18google.cloud.dataplex.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x1Bgoogle/api/field_info.proto\x1A\x19google/api/resource.proto\x1A&google/cloud/dataplex/v1/service.proto\x1A#google/longrunning/operations.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Cgoogle/protobuf/struct.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\x83\x0F\x0A\x0AAspectType\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x03\xFAA\$\x0A\"dataplex.googleapis.com/AspectType\x12\x10\x0A\x03uid\x18\x02 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x05 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cdisplay_name\x18\x06 \x01(\x09B\x03\xE0A\x01\x12E\x0A\x06labels\x18\x07 \x03(\x0B20.google.cloud.dataplex.v1.AspectType.LabelsEntryB\x03\xE0A\x01\x12\x0C\x0A\x04etag\x18\x08 \x01(\x09\x12\\\x0A\x13data_classification\x18\x09 \x01(\x0E27.google.cloud.dataplex.v1.AspectType.DataClassificationB\x06\xE0A\x01\xE0A\x05\x12N\x0A\x0Dauthorization\x184 \x01(\x0B22.google.cloud.dataplex.v1.AspectType.AuthorizationB\x03\xE0A\x05\x12U\x0A\x11metadata_template\x185 \x01(\x0B25.google.cloud.dataplex.v1.AspectType.MetadataTemplateB\x03\xE0A\x02\x12G\x0A\x0Ftransfer_status\x18\xCA\x01 \x01(\x0E2(.google.cloud.dataplex.v1.TransferStatusB\x03\xE0A\x03\x1A6\x0A\x0DAuthorization\x12%\x0A\x18alternate_use_permission\x18\x01 \x01(\x09B\x03\xE0A\x05\x1A\xA4\x07\x0A\x10MetadataTemplate\x12\x12\x0A\x05index\x18\x01 \x01(\x05B\x03\xE0A\x01\x12\x11\x0A\x04name\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x11\x0A\x04type\x18\x05 \x01(\x09B\x03\xE0A\x02\x12Q\x0A\x0Drecord_fields\x18\x06 \x03(\x0B25.google.cloud.dataplex.v1.AspectType.MetadataTemplateB\x03\xE0A\x01\x12Y\x0A\x0Benum_values\x18\x08 \x03(\x0B2?.google.cloud.dataplex.v1.AspectType.MetadataTemplate.EnumValueB\x03\xE0A\x01\x12M\x0A\x09map_items\x18\x0A \x01(\x0B25.google.cloud.dataplex.v1.AspectType.MetadataTemplateB\x03\xE0A\x01\x12O\x0A\x0Barray_items\x18\x0B \x01(\x0B25.google.cloud.dataplex.v1.AspectType.MetadataTemplateB\x03\xE0A\x01\x12\x14\x0A\x07type_id\x18\x0C \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08type_ref\x18\x0D \x01(\x09B\x03\xE0A\x01\x12[\x0A\x0Bconstraints\x182 \x01(\x0B2A.google.cloud.dataplex.v1.AspectType.MetadataTemplate.ConstraintsB\x03\xE0A\x01\x12[\x0A\x0Bannotations\x183 \x01(\x0B2A.google.cloud.dataplex.v1.AspectType.MetadataTemplate.AnnotationsB\x03\xE0A\x01\x1AK\x0A\x09EnumValue\x12\x12\x0A\x05index\x18\x01 \x01(\x05B\x03\xE0A\x02\x12\x11\x0A\x04name\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x17\x0A\x0Adeprecated\x18\x03 \x01(\x09B\x03\xE0A\x01\x1A\$\x0A\x0BConstraints\x12\x15\x0A\x08required\x18\x01 \x01(\x08B\x03\xE0A\x01\x1A\xAD\x01\x0A\x0BAnnotations\x12\x17\x0A\x0Adeprecated\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x1A\x0A\x0Ddisplay_order\x18\x04 \x01(\x05B\x03\xE0A\x01\x12\x18\x0A\x0Bstring_type\x18\x06 \x01(\x09B\x03\xE0A\x01\x12\x1A\x0A\x0Dstring_values\x18\x07 \x03(\x09B\x03\xE0A\x01\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"P\x0A\x12DataClassification\x12#\x0A\x1FDATA_CLASSIFICATION_UNSPECIFIED\x10\x00\x12\x15\x0A\x11METADATA_AND_DATA\x10\x01:\x84\x01\xEAA\x80\x01\x0A\"dataplex.googleapis.com/AspectType\x12Aprojects/{project}/locations/{location}/aspectTypes/{aspect_type}*\x0BaspectTypes2\x0AaspectType\"\xCD\x04\x0A\x0AEntryGroup\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x03\xFAA\$\x0A\"dataplex.googleapis.com/EntryGroup\x12\x10\x0A\x03uid\x18\x02 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x05 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cdisplay_name\x18\x06 \x01(\x09B\x03\xE0A\x01\x12E\x0A\x06labels\x18\x07 \x03(\x0B20.google.cloud.dataplex.v1.EntryGroup.LabelsEntryB\x03\xE0A\x01\x12\x0C\x0A\x04etag\x18\x08 \x01(\x09\x12G\x0A\x0Ftransfer_status\x18\xCA\x01 \x01(\x0E2(.google.cloud.dataplex.v1.TransferStatusB\x03\xE0A\x03\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:\x84\x01\xEAA\x80\x01\x0A\"dataplex.googleapis.com/EntryGroup\x12Aprojects/{project}/locations/{location}/entryGroups/{entry_group}*\x0BentryGroups2\x0AentryGroup\"\xDC\x06\x0A\x09EntryType\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x03\xFAA#\x0A!dataplex.googleapis.com/EntryType\x12\x10\x0A\x03uid\x18\x02 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x05 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cdisplay_name\x18\x06 \x01(\x09B\x03\xE0A\x01\x12D\x0A\x06labels\x18\x07 \x03(\x0B2/.google.cloud.dataplex.v1.EntryType.LabelsEntryB\x03\xE0A\x01\x12\x11\x0A\x04etag\x18\x08 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Ctype_aliases\x18\x09 \x03(\x09B\x03\xE0A\x01\x12\x15\x0A\x08platform\x18\x0A \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06system\x18\x0B \x01(\x09B\x03\xE0A\x01\x12H\x0A\x10required_aspects\x182 \x03(\x0B2..google.cloud.dataplex.v1.EntryType.AspectInfo\x12M\x0A\x0Dauthorization\x183 \x01(\x0B21.google.cloud.dataplex.v1.EntryType.AuthorizationB\x03\xE0A\x05\x1AC\x0A\x0AAspectInfo\x125\x0A\x04type\x18\x01 \x01(\x09B'\xFAA\$\x0A\"dataplex.googleapis.com/AspectType\x1A6\x0A\x0DAuthorization\x12%\x0A\x18alternate_use_permission\x18\x01 \x01(\x09B\x03\xE0A\x05\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:~\xEAA{\x0A!dataplex.googleapis.com/EntryType\x12?projects/{project}/locations/{location}/entryTypes/{entry_type}*\x0AentryTypes2\x09entryType\"\x91\x02\x0A\x06Aspect\x12\x18\x0A\x0Baspect_type\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12*\x0A\x04data\x18\x08 \x01(\x0B2\x17.google.protobuf.StructB\x03\xE0A\x02\x12B\x0A\x0Daspect_source\x18\x09 \x01(\x0B2&.google.cloud.dataplex.v1.AspectSourceB\x03\xE0A\x01\"\x86\x01\x0A\x0CAspectSource\x12/\x0A\x0Bcreate_time\x18\x0A \x01(\x0B2\x1A.google.protobuf.Timestamp\x12/\x0A\x0Bupdate_time\x18\x0B \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x14\x0A\x0Cdata_version\x18\x0C \x01(\x09\"\xC4\x04\x0A\x05Entry\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x1A\x0A\x0Aentry_type\x18\x04 \x01(\x09B\x06\xE0A\x02\xE0A\x05\x124\x0A\x0Bcreate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12B\x0A\x07aspects\x18\x09 \x03(\x0B2,.google.cloud.dataplex.v1.Entry.AspectsEntryB\x03\xE0A\x01\x12\x1C\x0A\x0Cparent_entry\x18\x0A \x01(\x09B\x06\xE0A\x01\xE0A\x05\x12!\x0A\x14fully_qualified_name\x18\x0C \x01(\x09B\x03\xE0A\x01\x12@\x0A\x0Centry_source\x18\x0F \x01(\x0B2%.google.cloud.dataplex.v1.EntrySourceB\x03\xE0A\x01\x1AP\x0A\x0CAspectsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12/\x0A\x05value\x18\x02 \x01(\x0B2 .google.cloud.dataplex.v1.Aspect:\x028\x01:\x86\x01\xEAA\x82\x01\x0A\x1Ddataplex.googleapis.com/Entry\x12Qprojects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}*\x07entries2\x05entry\"\xD1\x03\x0A\x0BEntrySource\x12\x10\x0A\x08resource\x18\x01 \x01(\x09\x12\x0E\x0A\x06system\x18\x02 \x01(\x09\x12\x10\x0A\x08platform\x18\x03 \x01(\x09\x12\x14\x0A\x0Cdisplay_name\x18\x05 \x01(\x09\x12\x13\x0A\x0Bdescription\x18\x06 \x01(\x09\x12A\x0A\x06labels\x18\x07 \x03(\x0B21.google.cloud.dataplex.v1.EntrySource.LabelsEntry\x12F\x0A\x09ancestors\x18\x09 \x03(\x0B2..google.cloud.dataplex.v1.EntrySource.AncestorB\x03\xE0A\x05\x12/\x0A\x0Bcreate_time\x18\x0A \x01(\x0B2\x1A.google.protobuf.Timestamp\x12/\x0A\x0Bupdate_time\x18\x0B \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x15\x0A\x08location\x18\x0C \x01(\x09B\x03\xE0A\x03\x1A0\x0A\x08Ancestor\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04type\x18\x02 \x01(\x09B\x03\xE0A\x01\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"\xCD\x01\x0A\x17CreateEntryGroupRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12\x1B\x0A\x0Eentry_group_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12>\x0A\x0Bentry_group\x18\x03 \x01(\x0B2\$.google.cloud.dataplex.v1.EntryGroupB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"\xAB\x01\x0A\x17UpdateEntryGroupRequest\x12>\x0A\x0Bentry_group\x18\x01 \x01(\x0B2\$.google.cloud.dataplex.v1.EntryGroupB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"f\x0A\x17DeleteEntryGroupRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataplex.googleapis.com/EntryGroup\x12\x11\x0A\x04etag\x18\x02 \x01(\x09B\x03\xE0A\x01\"\xB0\x01\x0A\x16ListEntryGroupsRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\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\"\x8D\x01\x0A\x17ListEntryGroupsResponse\x12:\x0A\x0Centry_groups\x18\x01 \x03(\x0B2\$.google.cloud.dataplex.v1.EntryGroup\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x1D\x0A\x15unreachable_locations\x18\x03 \x03(\x09\"P\x0A\x14GetEntryGroupRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataplex.googleapis.com/EntryGroup\"\xC9\x01\x0A\x16CreateEntryTypeRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12\x1A\x0A\x0Dentry_type_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12<\x0A\x0Aentry_type\x18\x03 \x01(\x0B2#.google.cloud.dataplex.v1.EntryTypeB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"\xA8\x01\x0A\x16UpdateEntryTypeRequest\x12<\x0A\x0Aentry_type\x18\x01 \x01(\x0B2#.google.cloud.dataplex.v1.EntryTypeB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"d\x0A\x16DeleteEntryTypeRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataplex.googleapis.com/EntryType\x12\x11\x0A\x04etag\x18\x02 \x01(\x09B\x03\xE0A\x01\"\xAF\x01\x0A\x15ListEntryTypesRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\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\"\x8A\x01\x0A\x16ListEntryTypesResponse\x128\x0A\x0Bentry_types\x18\x01 \x03(\x0B2#.google.cloud.dataplex.v1.EntryType\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x1D\x0A\x15unreachable_locations\x18\x03 \x03(\x09\"N\x0A\x13GetEntryTypeRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataplex.googleapis.com/EntryType\"\xCD\x01\x0A\x17CreateAspectTypeRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12\x1B\x0A\x0Easpect_type_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12>\x0A\x0Baspect_type\x18\x03 \x01(\x0B2\$.google.cloud.dataplex.v1.AspectTypeB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"\xAB\x01\x0A\x17UpdateAspectTypeRequest\x12>\x0A\x0Baspect_type\x18\x01 \x01(\x0B2\$.google.cloud.dataplex.v1.AspectTypeB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"f\x0A\x17DeleteAspectTypeRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataplex.googleapis.com/AspectType\x12\x11\x0A\x04etag\x18\x02 \x01(\x09B\x03\xE0A\x01\"\xB0\x01\x0A\x16ListAspectTypesRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\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\"\x8D\x01\x0A\x17ListAspectTypesResponse\x12:\x0A\x0Caspect_types\x18\x01 \x03(\x0B2\$.google.cloud.dataplex.v1.AspectType\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x1D\x0A\x15unreachable_locations\x18\x03 \x03(\x09\"P\x0A\x14GetAspectTypeRequest\x128\x0A\x04name\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataplex.googleapis.com/AspectType\"\x9C\x01\x0A\x12CreateEntryRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataplex.googleapis.com/EntryGroup\x12\x15\x0A\x08entry_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x123\x0A\x05entry\x18\x03 \x01(\x0B2\x1F.google.cloud.dataplex.v1.EntryB\x03\xE0A\x02\"\xDA\x01\x0A\x12UpdateEntryRequest\x123\x0A\x05entry\x18\x01 \x01(\x0B2\x1F.google.cloud.dataplex.v1.EntryB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12\x1A\x0A\x0Dallow_missing\x18\x03 \x01(\x08B\x03\xE0A\x01\x12#\x0A\x16delete_missing_aspects\x18\x04 \x01(\x08B\x03\xE0A\x01\x12\x18\x0A\x0Baspect_keys\x18\x05 \x03(\x09B\x03\xE0A\x01\"I\x0A\x12DeleteEntryRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddataplex.googleapis.com/Entry\"\x96\x01\x0A\x12ListEntriesRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataplex.googleapis.com/EntryGroup\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\"`\x0A\x13ListEntriesResponse\x120\x0A\x07entries\x18\x01 \x03(\x0B2\x1F.google.cloud.dataplex.v1.Entry\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xAD\x01\x0A\x0FGetEntryRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddataplex.googleapis.com/Entry\x126\x0A\x04view\x18\x02 \x01(\x0E2#.google.cloud.dataplex.v1.EntryViewB\x03\xE0A\x01\x12\x19\x0A\x0Caspect_types\x18\x03 \x03(\x09B\x03\xE0A\x01\x12\x12\x0A\x05paths\x18\x04 \x03(\x09B\x03\xE0A\x01\"\xC4\x01\x0A\x12LookupEntryRequest\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x126\x0A\x04view\x18\x02 \x01(\x0E2#.google.cloud.dataplex.v1.EntryViewB\x03\xE0A\x01\x12\x19\x0A\x0Caspect_types\x18\x03 \x03(\x09B\x03\xE0A\x01\x12\x12\x0A\x05paths\x18\x04 \x03(\x09B\x03\xE0A\x01\x124\x0A\x05entry\x18\x05 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddataplex.googleapis.com/Entry\"\xFC\x01\x0A\x14LookupContextRequest\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x128\x0A\x09resources\x18\x02 \x03(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddataplex.googleapis.com/Entry\x12\x14\x0A\x07context\x18\x03 \x01(\x09B\x03\xE0A\x01\x12Q\x0A\x07options\x18\x04 \x03(\x0B2;.google.cloud.dataplex.v1.LookupContextRequest.OptionsEntryB\x03\xE0A\x01\x1A.\x0A\x0COptionsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"\xD1\x01\x0A\x12ModifyEntryRequest\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x123\x0A\x05entry\x18\x02 \x01(\x0B2\x1F.google.cloud.dataplex.v1.EntryB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x03 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12#\x0A\x16delete_missing_aspects\x18\x04 \x01(\x08B\x03\xE0A\x01\x12\x18\x0A\x0Baspect_keys\x18\x05 \x03(\x09B\x03\xE0A\x01\"(\x0A\x15LookupContextResponse\x12\x0F\x0A\x07context\x18\x01 \x01(\x09\"\xDD\x01\x0A\x14SearchEntriesRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12\x12\x0A\x05query\x18\x02 \x01(\x09B\x03\xE0A\x02\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\x15\x0A\x08order_by\x18\x05 \x01(\x09B\x03\xE0A\x01\x12\x12\x0A\x05scope\x18\x07 \x01(\x09B\x03\xE0A\x01\x12\x1C\x0A\x0Fsemantic_search\x18\x0B \x01(\x08B\x03\xE0A\x01\"\x86\x02\x0A\x13SearchEntriesResult\x12\x1B\x0A\x0Flinked_resource\x18\x08 \x01(\x09B\x02\x18\x01\x127\x0A\x0Edataplex_entry\x18\x09 \x01(\x0B2\x1F.google.cloud.dataplex.v1.Entry\x12L\x0A\x08snippets\x18\x0C \x01(\x0B26.google.cloud.dataplex.v1.SearchEntriesResult.SnippetsB\x02\x18\x01\x1AK\x0A\x08Snippets\x12;\x0A\x0Edataplex_entry\x18\x01 \x01(\x0B2\x1F.google.cloud.dataplex.v1.EntryB\x02\x18\x01:\x02\x18\x01\"\x99\x01\x0A\x15SearchEntriesResponse\x12>\x0A\x07results\x18\x01 \x03(\x0B2-.google.cloud.dataplex.v1.SearchEntriesResult\x12\x12\x0A\x0Atotal_size\x18\x02 \x01(\x05\x12\x17\x0A\x0Fnext_page_token\x18\x03 \x01(\x09\x12\x13\x0A\x0Bunreachable\x18\x04 \x03(\x09\"\xBB\x01\x0A\x0AImportItem\x12.\x0A\x05entry\x18\x01 \x01(\x0B2\x1F.google.cloud.dataplex.v1.Entry\x127\x0A\x0Aentry_link\x18\x04 \x01(\x0B2#.google.cloud.dataplex.v1.EntryLink\x12/\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMask\x12\x13\x0A\x0Baspect_keys\x18\x03 \x03(\x09\"\xD1\x01\x0A\x18CreateMetadataJobRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12@\x0A\x0Cmetadata_job\x18\x02 \x01(\x0B2%.google.cloud.dataplex.v1.MetadataJobB\x03\xE0A\x02\x12\x1C\x0A\x0Fmetadata_job_id\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"R\x0A\x15GetMetadataJobRequest\x129\x0A\x04name\x18\x01 \x01(\x09B+\xE0A\x02\xFAA%\x0A#dataplex.googleapis.com/MetadataJob\"\xB1\x01\x0A\x17ListMetadataJobsRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\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\"\x90\x01\x0A\x18ListMetadataJobsResponse\x12<\x0A\x0Dmetadata_jobs\x18\x01 \x03(\x0B2%.google.cloud.dataplex.v1.MetadataJob\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x1D\x0A\x15unreachable_locations\x18\x03 \x03(\x09\"U\x0A\x18CancelMetadataJobRequest\x129\x0A\x04name\x18\x01 \x01(\x09B+\xE0A\x02\xFAA%\x0A#dataplex.googleapis.com/MetadataJob\"\xEE\x17\x0A\x0BMetadataJob\x12\x14\x0A\x04name\x18\x01 \x01(\x09B\x06\xE0A\x03\xE0A\x08\x12\x18\x0A\x03uid\x18\x02 \x01(\x09B\x0B\xE0A\x03\xE2\x8C\xCF\xD7\x08\x02\x08\x01\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12F\x0A\x06labels\x18\x05 \x03(\x0B21.google.cloud.dataplex.v1.MetadataJob.LabelsEntryB\x03\xE0A\x01\x12=\x0A\x04type\x18\x06 \x01(\x0E2*.google.cloud.dataplex.v1.MetadataJob.TypeB\x03\xE0A\x02\x12J\x0A\x0Bimport_spec\x18d \x01(\x0B23.google.cloud.dataplex.v1.MetadataJob.ImportJobSpecH\x00\x12J\x0A\x0Bexport_spec\x18e \x01(\x0B23.google.cloud.dataplex.v1.MetadataJob.ExportJobSpecH\x00\x12T\x0A\x0Dimport_result\x18\xC8\x01 \x01(\x0B25.google.cloud.dataplex.v1.MetadataJob.ImportJobResultB\x03\xE0A\x03H\x01\x12T\x0A\x0Dexport_result\x18\xC9\x01 \x01(\x0B25.google.cloud.dataplex.v1.MetadataJob.ExportJobResultB\x03\xE0A\x03H\x01\x12A\x0A\x06status\x18\x07 \x01(\x0B2,.google.cloud.dataplex.v1.MetadataJob.StatusB\x03\xE0A\x03\x1A\xC9\x02\x0A\x0FImportJobResult\x12\x1C\x0A\x0Fdeleted_entries\x18\x01 \x01(\x03B\x03\xE0A\x03\x12\x1C\x0A\x0Fupdated_entries\x18\x02 \x01(\x03B\x03\xE0A\x03\x12\x1C\x0A\x0Fcreated_entries\x18\x03 \x01(\x03B\x03\xE0A\x03\x12\x1E\x0A\x11unchanged_entries\x18\x04 \x01(\x03B\x03\xE0A\x03\x12\x1E\x0A\x11recreated_entries\x18\x06 \x01(\x03B\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12 \x0A\x13deleted_entry_links\x18\x07 \x01(\x03B\x03\xE0A\x03\x12 \x0A\x13created_entry_links\x18\x08 \x01(\x03B\x03\xE0A\x03\x12\"\x0A\x15unchanged_entry_links\x18\x09 \x01(\x03B\x03\xE0A\x03\x1AL\x0A\x0FExportJobResult\x12\x1D\x0A\x10exported_entries\x18\x01 \x01(\x03B\x03\xE0A\x03\x12\x1A\x0A\x0Derror_message\x18\x02 \x01(\x09B\x03\xE0A\x03\x1A\xB6\x07\x0A\x0DImportJobSpec\x12\x1F\x0A\x12source_storage_uri\x18\x01 \x01(\x09B\x03\xE0A\x01\x12;\x0A\x12source_create_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x01\x12V\x0A\x05scope\x18\x02 \x01(\x0B2B.google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.ImportJobScopeB\x03\xE0A\x02\x12Z\x0A\x0Fentry_sync_mode\x18\x03 \x01(\x0E2<.google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.SyncModeB\x03\xE0A\x02\x12[\x0A\x10aspect_sync_mode\x18\x04 \x01(\x0E2<.google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.SyncModeB\x03\xE0A\x02\x12T\x0A\x09log_level\x18\x06 \x01(\x0E2<.google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.LogLevelB\x03\xE0A\x01\x1A\xD7\x02\x0A\x0EImportJobScope\x12@\x0A\x0Centry_groups\x18\x01 \x03(\x09B*\xE0A\x02\xFAA\$\x0A\"dataplex.googleapis.com/EntryGroup\x12>\x0A\x0Bentry_types\x18\x02 \x03(\x09B)\xE0A\x02\xFAA#\x0A!dataplex.googleapis.com/EntryType\x12@\x0A\x0Caspect_types\x18\x03 \x03(\x09B*\xE0A\x01\xFAA\$\x0A\"dataplex.googleapis.com/AspectType\x12<\x0A\x0Aglossaries\x18\x04 \x03(\x09B(\xE0A\x01\xFAA\"\x0A dataplex.googleapis.com/Glossary\x12\x1D\x0A\x10entry_link_types\x18\x05 \x03(\x09B\x03\xE0A\x01\x12\$\x0A\x17referenced_entry_scopes\x18\x06 \x03(\x09B\x03\xE0A\x01\"J\x0A\x08SyncMode\x12\x19\x0A\x15SYNC_MODE_UNSPECIFIED\x10\x00\x12\x08\x0A\x04FULL\x10\x01\x12\x0F\x0A\x0BINCREMENTAL\x10\x02\x12\x08\x0A\x04NONE\x10\x03\":\x0A\x08LogLevel\x12\x19\x0A\x15LOG_LEVEL_UNSPECIFIED\x10\x00\x12\x09\x0A\x05DEBUG\x10\x01\x12\x08\x0A\x04INFO\x10\x02\x1A\xAF\x03\x0A\x0DExportJobSpec\x12V\x0A\x05scope\x18\x02 \x01(\x0B2B.google.cloud.dataplex.v1.MetadataJob.ExportJobSpec.ExportJobScopeB\x03\xE0A\x02\x12\x18\x0A\x0Boutput_path\x18\x03 \x01(\x09B\x03\xE0A\x02\x1A\xAB\x02\x0A\x0EExportJobScope\x12\x1A\x0A\x12organization_level\x18\x01 \x01(\x08\x12B\x0A\x08projects\x18\x02 \x03(\x09B0\xFAA-\x0A+cloudresourcemanager.googleapis.com/Project\x12=\x0A\x0Centry_groups\x18\x03 \x03(\x09B'\xFAA\$\x0A\"dataplex.googleapis.com/EntryGroup\x12;\x0A\x0Bentry_types\x18\x04 \x03(\x09B&\xFAA#\x0A!dataplex.googleapis.com/EntryType\x12=\x0A\x0Caspect_types\x18\x05 \x03(\x09B'\xFAA\$\x0A\"dataplex.googleapis.com/AspectType\x1A\xCA\x02\x0A\x06Status\x12F\x0A\x05state\x18\x01 \x01(\x0E22.google.cloud.dataplex.v1.MetadataJob.Status.StateB\x03\xE0A\x03\x12\x14\x0A\x07message\x18\x02 \x01(\x09B\x03\xE0A\x03\x12\x1F\x0A\x12completion_percent\x18\x03 \x01(\x05B\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\"\x8A\x01\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06QUEUED\x10\x01\x12\x0B\x0A\x07RUNNING\x10\x02\x12\x0D\x0A\x09CANCELING\x10\x03\x12\x0C\x0A\x08CANCELED\x10\x04\x12\x0D\x0A\x09SUCCEEDED\x10\x05\x12\x0A\x0A\x06FAILED\x10\x06\x12\x19\x0A\x15SUCCEEDED_WITH_ERRORS\x10\x07\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"4\x0A\x04Type\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06IMPORT\x10\x01\x12\x0A\x0A\x06EXPORT\x10\x02:l\xEAAi\x0A#dataplex.googleapis.com/MetadataJob\x12Bprojects/{project}/locations/{location}/metadataJobs/{metadataJob}B\x06\x0A\x04specB\x08\x0A\x06result\"\x9F\x06\x0A\x09EntryLink\x12=\x0A\x04name\x18\x01 \x01(\x09B/\xE0A\x03\xE0A\x05\xE0A\x08\xFAA#\x0A!dataplex.googleapis.com/EntryLink\x12\x1F\x0A\x0Fentry_link_type\x18\x02 \x01(\x09B\x06\xE0A\x02\xE0A\x05\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12F\x0A\x07aspects\x18\x06 \x03(\x0B20.google.cloud.dataplex.v1.EntryLink.AspectsEntryB\x03\xE0A\x01\x12T\x0A\x10entry_references\x18\x0A \x03(\x0B22.google.cloud.dataplex.v1.EntryLink.EntryReferenceB\x06\xE0A\x02\xE0A\x05\x1A\xB9\x01\x0A\x0EEntryReference\x12\x14\x0A\x04name\x18\x01 \x01(\x09B\x06\xE0A\x02\xE0A\x05\x12\x11\x0A\x04path\x18\x02 \x01(\x09B\x03\xE0A\x05\x12M\x0A\x04type\x18\x03 \x01(\x0E27.google.cloud.dataplex.v1.EntryLink.EntryReference.TypeB\x06\xE0A\x02\xE0A\x05\"/\x0A\x04Type\x12\x0F\x0A\x0BUNSPECIFIED\x10\x00\x12\x0A\x0A\x06SOURCE\x10\x02\x12\x0A\x0A\x06TARGET\x10\x03\x1AP\x0A\x0CAspectsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12/\x0A\x05value\x18\x02 \x01(\x0B2 .google.cloud.dataplex.v1.Aspect:\x028\x01:\x99\x01\xEAA\x95\x01\x0A!dataplex.googleapis.com/EntryLink\x12Yprojects/{project}/locations/{location}/entryGroups/{entry_group}/entryLinks/{entry_link}*\x0AentryLinks2\x09entryLink\"\xAE\x01\x0A\x16CreateEntryLinkRequest\x12:\x0A\x06parent\x18\x01 \x01(\x09B*\xE0A\x02\xFAA\$\x0A\"dataplex.googleapis.com/EntryGroup\x12\x1A\x0A\x0Dentry_link_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12<\x0A\x0Aentry_link\x18\x03 \x01(\x0B2#.google.cloud.dataplex.v1.EntryLinkB\x03\xE0A\x02\"\x8C\x01\x0A\x16UpdateEntryLinkRequest\x12<\x0A\x0Aentry_link\x18\x01 \x01(\x0B2#.google.cloud.dataplex.v1.EntryLinkB\x03\xE0A\x02\x12\x1A\x0A\x0Dallow_missing\x18\x03 \x01(\x08B\x03\xE0A\x01\x12\x18\x0A\x0Baspect_keys\x18\x05 \x03(\x09B\x03\xE0A\x01\"Q\x0A\x16DeleteEntryLinkRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataplex.googleapis.com/EntryLink\"\xB5\x02\x0A\x17LookupEntryLinksRequest\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x124\x0A\x05entry\x18\x02 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddataplex.googleapis.com/Entry\x12O\x0A\x0Aentry_mode\x18\x03 \x01(\x0E2;.google.cloud.dataplex.v1.LookupEntryLinksRequest.EntryMode\x12\x18\x0A\x10entry_link_types\x18\x04 \x03(\x09\x12\x11\x0A\x09page_size\x18\x05 \x01(\x05\x12\x12\x0A\x0Apage_token\x18\x06 \x01(\x09\"?\x0A\x09EntryMode\x12\x1A\x0A\x16ENTRY_MODE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06SOURCE\x10\x01\x12\x0A\x0A\x06TARGET\x10\x02\"m\x0A\x18LookupEntryLinksResponse\x128\x0A\x0Bentry_links\x18\x01 \x03(\x0B2#.google.cloud.dataplex.v1.EntryLink\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"N\x0A\x13GetEntryLinkRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataplex.googleapis.com/EntryLink\"\xC8\x08\x0A\x0CMetadataFeed\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x18\x0A\x03uid\x18\x02 \x01(\x09B\x0B\xE0A\x03\xE2\x8C\xCF\xD7\x08\x02\x08\x01\x12@\x0A\x05scope\x18\x03 \x01(\x0B2,.google.cloud.dataplex.v1.MetadataFeed.ScopeB\x03\xE0A\x02\x12D\x0A\x07filters\x18\x04 \x01(\x0B2..google.cloud.dataplex.v1.MetadataFeed.FiltersB\x03\xE0A\x01\x124\x0A\x0Bcreate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12G\x0A\x06labels\x18\x08 \x03(\x0B22.google.cloud.dataplex.v1.MetadataFeed.LabelsEntryB\x03\xE0A\x01\x12\x1B\x0A\x0Cpubsub_topic\x18d \x01(\x09B\x03\xE0A\x01H\x00\x1A\xB1\x01\x0A\x05Scope\x12\x1F\x0A\x12organization_level\x18\x01 \x01(\x08B\x03\xE0A\x01\x12E\x0A\x08projects\x18\x02 \x03(\x09B3\xE0A\x01\xFAA-\x0A+cloudresourcemanager.googleapis.com/Project\x12@\x0A\x0Centry_groups\x18\x03 \x03(\x09B*\xE0A\x01\xFAA\$\x0A\"dataplex.googleapis.com/EntryGroup\x1A\xB0\x02\x0A\x07Filters\x12>\x0A\x0Bentry_types\x18\x01 \x03(\x09B)\xE0A\x01\xFAA#\x0A!dataplex.googleapis.com/EntryType\x12@\x0A\x0Caspect_types\x18\x02 \x03(\x09B*\xE0A\x01\xFAA\$\x0A\"dataplex.googleapis.com/AspectType\x12T\x0A\x0Cchange_types\x18\x03 \x03(\x0E29.google.cloud.dataplex.v1.MetadataFeed.Filters.ChangeTypeB\x03\xE0A\x01\"M\x0A\x0AChangeType\x12\x1B\x0A\x17CHANGE_TYPE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06CREATE\x10\x01\x12\x0A\x0A\x06UPDATE\x10\x02\x12\x0A\x0A\x06DELETE\x10\x03\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:\x8E\x01\xEAA\x8A\x01\x0A\$dataplex.googleapis.com/MetadataFeed\x12Eprojects/{project}/locations/{location}/metadataFeeds/{metadata_feed}*\x0DmetadataFeeds2\x0CmetadataFeedB\x0A\x0A\x08endpoint\"\xD5\x01\x0A\x19CreateMetadataFeedRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12B\x0A\x0Dmetadata_feed\x18\x02 \x01(\x0B2&.google.cloud.dataplex.v1.MetadataFeedB\x03\xE0A\x02\x12\x1D\x0A\x10metadata_feed_id\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"T\x0A\x16GetMetadataFeedRequest\x12:\x0A\x04name\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$dataplex.googleapis.com/MetadataFeed\"\xB2\x01\x0A\x18ListMetadataFeedsRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\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\"\x8E\x01\x0A\x19ListMetadataFeedsResponse\x12>\x0A\x0Emetadata_feeds\x18\x01 \x03(\x0B2&.google.cloud.dataplex.v1.MetadataFeed\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x18\x0A\x0Bunreachable\x18\x03 \x03(\x09B\x03\xE0A\x06\"W\x0A\x19DeleteMetadataFeedRequest\x12:\x0A\x04name\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$dataplex.googleapis.com/MetadataFeed\"\xB1\x01\x0A\x19UpdateMetadataFeedRequest\x12B\x0A\x0Dmetadata_feed\x18\x01 \x01(\x0B2&.google.cloud.dataplex.v1.MetadataFeedB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01*Q\x0A\x09EntryView\x12\x1A\x0A\x16ENTRY_VIEW_UNSPECIFIED\x10\x00\x12\x09\x0A\x05BASIC\x10\x01\x12\x08\x0A\x04FULL\x10\x02\x12\x0A\x0A\x06CUSTOM\x10\x03\x12\x07\x0A\x03ALL\x10\x04*p\x0A\x0ETransferStatus\x12\x1F\x0A\x1BTRANSFER_STATUS_UNSPECIFIED\x10\x00\x12\x1C\x0A\x18TRANSFER_STATUS_MIGRATED\x10\x01\x12\x1F\x0A\x1BTRANSFER_STATUS_TRANSFERRED\x10\x022\xA8=\x0A\x0ECatalogService\x12\xEA\x01\x0A\x0FCreateEntryType\x120.google.cloud.dataplex.v1.CreateEntryTypeRequest\x1A\x1D.google.longrunning.Operation\"\x85\x01\xCAA\x1E\x0A\x09EntryType\x12\x11OperationMetadata\xDAA\x1Fparent,entry_type,entry_type_id\x82\xD3\xE4\x93\x02<\"./v1/{parent=projects/*/locations/*}/entryTypes:\x0Aentry_type\x12\xEC\x01\x0A\x0FUpdateEntryType\x120.google.cloud.dataplex.v1.UpdateEntryTypeRequest\x1A\x1D.google.longrunning.Operation\"\x87\x01\xCAA\x1E\x0A\x09EntryType\x12\x11OperationMetadata\xDAA\x16entry_type,update_mask\x82\xD3\xE4\x93\x02G29/v1/{entry_type.name=projects/*/locations/*/entryTypes/*}:\x0Aentry_type\x12\xCE\x01\x0A\x0FDeleteEntryType\x120.google.cloud.dataplex.v1.DeleteEntryTypeRequest\x1A\x1D.google.longrunning.Operation\"j\xCAA*\x0A\x15google.protobuf.Empty\x12\x11OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x020*./v1/{name=projects/*/locations/*/entryTypes/*}\x12\xB4\x01\x0A\x0EListEntryTypes\x12/.google.cloud.dataplex.v1.ListEntryTypesRequest\x1A0.google.cloud.dataplex.v1.ListEntryTypesResponse\"?\xDAA\x06parent\x82\xD3\xE4\x93\x020\x12./v1/{parent=projects/*/locations/*}/entryTypes\x12\xA1\x01\x0A\x0CGetEntryType\x12-.google.cloud.dataplex.v1.GetEntryTypeRequest\x1A#.google.cloud.dataplex.v1.EntryType\"=\xDAA\x04name\x82\xD3\xE4\x93\x020\x12./v1/{name=projects/*/locations/*/entryTypes/*}\x12\xF1\x01\x0A\x10CreateAspectType\x121.google.cloud.dataplex.v1.CreateAspectTypeRequest\x1A\x1D.google.longrunning.Operation\"\x8A\x01\xCAA\x1F\x0A\x0AAspectType\x12\x11OperationMetadata\xDAA!parent,aspect_type,aspect_type_id\x82\xD3\xE4\x93\x02>\"//v1/{parent=projects/*/locations/*}/aspectTypes:\x0Baspect_type\x12\xF3\x01\x0A\x10UpdateAspectType\x121.google.cloud.dataplex.v1.UpdateAspectTypeRequest\x1A\x1D.google.longrunning.Operation\"\x8C\x01\xCAA\x1F\x0A\x0AAspectType\x12\x11OperationMetadata\xDAA\x17aspect_type,update_mask\x82\xD3\xE4\x93\x02J2;/v1/{aspect_type.name=projects/*/locations/*/aspectTypes/*}:\x0Baspect_type\x12\xD1\x01\x0A\x10DeleteAspectType\x121.google.cloud.dataplex.v1.DeleteAspectTypeRequest\x1A\x1D.google.longrunning.Operation\"k\xCAA*\x0A\x15google.protobuf.Empty\x12\x11OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x021*//v1/{name=projects/*/locations/*/aspectTypes/*}\x12\xB8\x01\x0A\x0FListAspectTypes\x120.google.cloud.dataplex.v1.ListAspectTypesRequest\x1A1.google.cloud.dataplex.v1.ListAspectTypesResponse\"@\xDAA\x06parent\x82\xD3\xE4\x93\x021\x12//v1/{parent=projects/*/locations/*}/aspectTypes\x12\xA5\x01\x0A\x0DGetAspectType\x12..google.cloud.dataplex.v1.GetAspectTypeRequest\x1A\$.google.cloud.dataplex.v1.AspectType\">\xDAA\x04name\x82\xD3\xE4\x93\x021\x12//v1/{name=projects/*/locations/*/aspectTypes/*}\x12\xF1\x01\x0A\x10CreateEntryGroup\x121.google.cloud.dataplex.v1.CreateEntryGroupRequest\x1A\x1D.google.longrunning.Operation\"\x8A\x01\xCAA\x1F\x0A\x0AEntryGroup\x12\x11OperationMetadata\xDAA!parent,entry_group,entry_group_id\x82\xD3\xE4\x93\x02>\"//v1/{parent=projects/*/locations/*}/entryGroups:\x0Bentry_group\x12\xF3\x01\x0A\x10UpdateEntryGroup\x121.google.cloud.dataplex.v1.UpdateEntryGroupRequest\x1A\x1D.google.longrunning.Operation\"\x8C\x01\xCAA\x1F\x0A\x0AEntryGroup\x12\x11OperationMetadata\xDAA\x17entry_group,update_mask\x82\xD3\xE4\x93\x02J2;/v1/{entry_group.name=projects/*/locations/*/entryGroups/*}:\x0Bentry_group\x12\xD1\x01\x0A\x10DeleteEntryGroup\x121.google.cloud.dataplex.v1.DeleteEntryGroupRequest\x1A\x1D.google.longrunning.Operation\"k\xCAA*\x0A\x15google.protobuf.Empty\x12\x11OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x021*//v1/{name=projects/*/locations/*/entryGroups/*}\x12\xB8\x01\x0A\x0FListEntryGroups\x120.google.cloud.dataplex.v1.ListEntryGroupsRequest\x1A1.google.cloud.dataplex.v1.ListEntryGroupsResponse\"@\xDAA\x06parent\x82\xD3\xE4\x93\x021\x12//v1/{parent=projects/*/locations/*}/entryGroups\x12\xA5\x01\x0A\x0DGetEntryGroup\x12..google.cloud.dataplex.v1.GetEntryGroupRequest\x1A\$.google.cloud.dataplex.v1.EntryGroup\">\xDAA\x04name\x82\xD3\xE4\x93\x021\x12//v1/{name=projects/*/locations/*/entryGroups/*}\x12\xBE\x01\x0A\x0BCreateEntry\x12,.google.cloud.dataplex.v1.CreateEntryRequest\x1A\x1F.google.cloud.dataplex.v1.Entry\"`\xDAA\x15parent,entry,entry_id\x82\xD3\xE4\x93\x02B\"9/v1/{parent=projects/*/locations/*/entryGroups/*}/entries:\x05entry\x12\xC1\x01\x0A\x0BUpdateEntry\x12,.google.cloud.dataplex.v1.UpdateEntryRequest\x1A\x1F.google.cloud.dataplex.v1.Entry\"c\xDAA\x11entry,update_mask\x82\xD3\xE4\x93\x02I2@/v1/{entry.name=projects/*/locations/*/entryGroups/*/entries/**}:\x05entry\x12\xA7\x01\x0A\x0BDeleteEntry\x12,.google.cloud.dataplex.v1.DeleteEntryRequest\x1A\x1F.google.cloud.dataplex.v1.Entry\"I\xDAA\x04name\x82\xD3\xE4\x93\x02<*:/v1/{name=projects/*/locations/*/entryGroups/*/entries/**}\x12\xB6\x01\x0A\x0BListEntries\x12,.google.cloud.dataplex.v1.ListEntriesRequest\x1A-.google.cloud.dataplex.v1.ListEntriesResponse\"J\xDAA\x06parent\x82\xD3\xE4\x93\x02;\x129/v1/{parent=projects/*/locations/*/entryGroups/*}/entries\x12\xA1\x01\x0A\x08GetEntry\x12).google.cloud.dataplex.v1.GetEntryRequest\x1A\x1F.google.cloud.dataplex.v1.Entry\"I\xDAA\x04name\x82\xD3\xE4\x93\x02<\x12:/v1/{name=projects/*/locations/*/entryGroups/*/entries/**}\x12\x93\x01\x0A\x0BLookupEntry\x12,.google.cloud.dataplex.v1.LookupEntryRequest\x1A\x1F.google.cloud.dataplex.v1.Entry\"5\x82\xD3\xE4\x93\x02/\x12-/v1/{name=projects/*/locations/*}:lookupEntry\x12\x96\x01\x0A\x0BModifyEntry\x12,.google.cloud.dataplex.v1.ModifyEntryRequest\x1A\x1F.google.cloud.dataplex.v1.Entry\"8\x82\xD3\xE4\x93\x022\"-/v1/{name=projects/*/locations/*}:modifyEntry:\x01*\x12\xB6\x01\x0A\x0DSearchEntries\x12..google.cloud.dataplex.v1.SearchEntriesRequest\x1A/.google.cloud.dataplex.v1.SearchEntriesResponse\"D\xDAA\x0Aname,query\x82\xD3\xE4\x93\x021\"//v1/{name=projects/*/locations/*}:searchEntries\x12\xF8\x01\x0A\x11CreateMetadataJob\x122.google.cloud.dataplex.v1.CreateMetadataJobRequest\x1A\x1D.google.longrunning.Operation\"\x8F\x01\xCAA \x0A\x0BMetadataJob\x12\x11OperationMetadata\xDAA#parent,metadata_job,metadata_job_id\x82\xD3\xE4\x93\x02@\"0/v1/{parent=projects/*/locations/*}/metadataJobs:\x0Cmetadata_job\x12\xA9\x01\x0A\x0EGetMetadataJob\x12/.google.cloud.dataplex.v1.GetMetadataJobRequest\x1A%.google.cloud.dataplex.v1.MetadataJob\"?\xDAA\x04name\x82\xD3\xE4\x93\x022\x120/v1/{name=projects/*/locations/*/metadataJobs/*}\x12\xBC\x01\x0A\x10ListMetadataJobs\x121.google.cloud.dataplex.v1.ListMetadataJobsRequest\x1A2.google.cloud.dataplex.v1.ListMetadataJobsResponse\"A\xDAA\x06parent\x82\xD3\xE4\x93\x022\x120/v1/{parent=projects/*/locations/*}/metadataJobs\x12\xAA\x01\x0A\x11CancelMetadataJob\x122.google.cloud.dataplex.v1.CancelMetadataJobRequest\x1A\x16.google.protobuf.Empty\"I\xDAA\x04name\x82\xD3\xE4\x93\x02<\"7/v1/{name=projects/*/locations/*/metadataJobs/*}:cancel:\x01*\x12\xDC\x01\x0A\x0FCreateEntryLink\x120.google.cloud.dataplex.v1.CreateEntryLinkRequest\x1A#.google.cloud.dataplex.v1.EntryLink\"r\xDAA\x1Fparent,entry_link,entry_link_id\x82\xD3\xE4\x93\x02J\"*\x12internalAddGeneratedFile( - "\x0A\x9E\x1E\x0A#google/cloud/dataplex/v1/cmek.proto\x12\x18google.cloud.dataplex.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A&google/cloud/dataplex/v1/service.proto\x1A#google/longrunning/operations.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xFA\x06\x0A\x10EncryptionConfig\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x08\xFAA*\x0A(dataplex.googleapis.com/EncryptionConfig\x12\x10\x0A\x03key\x18\x02 \x01(\x09B\x03\xE0A\x01\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12Y\x0A\x10encryption_state\x18\x05 \x01(\x0E2:.google.cloud.dataplex.v1.EncryptionConfig.EncryptionStateB\x03\xE0A\x03\x12\x0C\x0A\x04etag\x18\x06 \x01(\x09\x12W\x0A\x0Ffailure_details\x18\x07 \x01(\x0B29.google.cloud.dataplex.v1.EncryptionConfig.FailureDetailsB\x03\xE0A\x03\x12(\x0A\x1Benable_metastore_encryption\x18\x08 \x01(\x08B\x03\xE0A\x01\x1A\xD1\x01\x0A\x0EFailureDetails\x12\\\x0A\x0Aerror_code\x18\x01 \x01(\x0E2C.google.cloud.dataplex.v1.EncryptionConfig.FailureDetails.ErrorCodeB\x03\xE0A\x03\x12\x1A\x0A\x0Derror_message\x18\x02 \x01(\x09B\x03\xE0A\x03\"E\x0A\x09ErrorCode\x12\x0B\x0A\x07UNKNOWN\x10\x00\x12\x12\x0A\x0EINTERNAL_ERROR\x10\x01\x12\x17\x0A\x13REQUIRE_USER_ACTION\x10\x02\"^\x0A\x0FEncryptionState\x12 \x0A\x1CENCRYPTION_STATE_UNSPECIFIED\x10\x00\x12\x0E\x0A\x0AENCRYPTING\x10\x01\x12\x0D\x0A\x09COMPLETED\x10\x02\x12\x0A\x0A\x06FAILED\x10\x03:\x87\x01\xEAA\x83\x01\x0A(dataplex.googleapis.com/EncryptionConfig\x12Worganizations/{organization}/locations/{location}/encryptionConfigs/{encryption_config}\"\xD4\x01\x0A\x1DCreateEncryptionConfigRequest\x12D\x0A\x06parent\x18\x01 \x01(\x09B4\xE0A\x02\xFAA.\x0A,dataplex.googleapis.com/OrganizationLocation\x12!\x0A\x14encryption_config_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12J\x0A\x11encryption_config\x18\x03 \x01(\x0B2*.google.cloud.dataplex.v1.EncryptionConfigB\x03\xE0A\x02\"\\\x0A\x1AGetEncryptionConfigRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(dataplex.googleapis.com/EncryptionConfig\"\xA1\x01\x0A\x1DUpdateEncryptionConfigRequest\x12J\x0A\x11encryption_config\x18\x01 \x01(\x0B2*.google.cloud.dataplex.v1.EncryptionConfigB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\"r\x0A\x1DDeleteEncryptionConfigRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(dataplex.googleapis.com/EncryptionConfig\x12\x11\x0A\x04etag\x18\x02 \x01(\x09B\x03\xE0A\x01\"\xBD\x01\x0A\x1CListEncryptionConfigsRequest\x12@\x0A\x06parent\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x12(dataplex.googleapis.com/EncryptionConfig\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\"\xC7\x01\x0A\x1DListEncryptionConfigsResponse\x12F\x0A\x12encryption_configs\x18\x01 \x03(\x0B2*.google.cloud.dataplex.v1.EncryptionConfig\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12E\x0A\x15unreachable_locations\x18\x03 \x03(\x09B&\xFAA#\x0A!locations.googleapis.com/Location2\xDE\x0A\x0A\x0BCmekService\x12\xA0\x02\x0A\x16CreateEncryptionConfig\x127.google.cloud.dataplex.v1.CreateEncryptionConfigRequest\x1A\x1D.google.longrunning.Operation\"\xAD\x01\xCAA%\x0A\x10EncryptionConfig\x12\x11OperationMetadata\xDAA-parent,encryption_config,encryption_config_id\x82\xD3\xE4\x93\x02O\":/v1/{parent=organizations/*/locations/*}/encryptionConfigs:\x11encryption_config\x12\xA2\x02\x0A\x16UpdateEncryptionConfig\x127.google.cloud.dataplex.v1.UpdateEncryptionConfigRequest\x1A\x1D.google.longrunning.Operation\"\xAF\x01\xCAA%\x0A\x10EncryptionConfig\x12\x11OperationMetadata\xDAA\x1Dencryption_config,update_mask\x82\xD3\xE4\x93\x02a2L/v1/{encryption_config.name=organizations/*/locations/*/encryptionConfigs/*}:\x11encryption_config\x12\xE8\x01\x0A\x16DeleteEncryptionConfig\x127.google.cloud.dataplex.v1.DeleteEncryptionConfigRequest\x1A\x1D.google.longrunning.Operation\"v\xCAA*\x0A\x15google.protobuf.Empty\x12\x11OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x02<*:/v1/{name=organizations/*/locations/*/encryptionConfigs/*}\x12\xD5\x01\x0A\x15ListEncryptionConfigs\x126.google.cloud.dataplex.v1.ListEncryptionConfigsRequest\x1A7.google.cloud.dataplex.v1.ListEncryptionConfigsResponse\"K\xDAA\x06parent\x82\xD3\xE4\x93\x02<\x12:/v1/{parent=organizations/*/locations/*}/encryptionConfigs\x12\xC2\x01\x0A\x13GetEncryptionConfig\x124.google.cloud.dataplex.v1.GetEncryptionConfigRequest\x1A*.google.cloud.dataplex.v1.EncryptionConfig\"I\xDAA\x04name\x82\xD3\xE4\x93\x02<\x12:/v1/{name=organizations/*/locations/*/encryptionConfigs/*}\x1A\x7F\xCAA\x17dataplex.googleapis.com\xD2Abhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dataplex.read-writeB\x9D\x02\x0A\x1Ccom.google.cloud.dataplex.v1B\x09CmekProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpb\xAA\x02\x18Google.Cloud.Dataplex.V1\xCA\x02\x18Google\\Cloud\\Dataplex\\V1\xEA\x02\x1BGoogle::Cloud::Dataplex::V1\xEAAa\x0A,dataplex.googleapis.com/OrganizationLocation\x121organizations/{organization}/locations/{location}b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Content.php b/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Content.php deleted file mode 100644 index 7920c279de7c..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Content.php +++ /dev/null @@ -1,28 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xB7\x02\x0A&google/cloud/dataplex/v1/content.proto\x12\x18google.cloud.dataplex.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto2,\x0A\x0EContentService\x1A\x1A\xCAA\x17dataplex.googleapis.comBh\x0A\x1Ccom.google.cloud.dataplex.v1B\x0CContentProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DataDiscovery.php b/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DataDiscovery.php deleted file mode 100644 index 130e48189d1f..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DataDiscovery.php +++ /dev/null @@ -1,26 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xE2\x11\x0A-google/cloud/dataplex/v1/data_discovery.proto\x12\x18google.cloud.dataplex.v1\x1A\x19google/api/resource.proto\"\x8A\x0A\x0A\x11DataDiscoverySpec\x12m\x0A\x1Abigquery_publishing_config\x18\x01 \x01(\x0B2D.google.cloud.dataplex.v1.DataDiscoverySpec.BigQueryPublishingConfigB\x03\xE0A\x01\x12S\x0A\x0Estorage_config\x18d \x01(\x0B29.google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfigH\x00\x1A\xEE\x02\x0A\x18BigQueryPublishingConfig\x12g\x0A\x0Atable_type\x18\x02 \x01(\x0E2N.google.cloud.dataplex.v1.DataDiscoverySpec.BigQueryPublishingConfig.TableTypeB\x03\xE0A\x01\x12H\x0A\x0Aconnection\x18\x03 \x01(\x09B4\xE0A\x01\xFAA.\x0A,bigqueryconnection.googleapis.com/Connection\x12\x15\x0A\x08location\x18\x04 \x01(\x09B\x03\xE0A\x01\x12D\x0A\x07project\x18\x05 \x01(\x09B3\xE0A\x01\xFAA-\x0A+cloudresourcemanager.googleapis.com/Project\"B\x0A\x09TableType\x12\x1A\x0A\x16TABLE_TYPE_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08EXTERNAL\x10\x01\x12\x0B\x0A\x07BIGLAKE\x10\x02\x1A\xAC\x05\x0A\x0DStorageConfig\x12\x1D\x0A\x10include_patterns\x18\x01 \x03(\x09B\x03\xE0A\x01\x12\x1D\x0A\x10exclude_patterns\x18\x02 \x03(\x09B\x03\xE0A\x01\x12^\x0A\x0Bcsv_options\x18\x03 \x01(\x0B2D.google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.CsvOptionsB\x03\xE0A\x01\x12`\x0A\x0Cjson_options\x18\x04 \x01(\x0B2E.google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.JsonOptionsB\x03\xE0A\x01\x12y\x0A\x19unstructured_data_options\x18\x05 \x01(\x0B2Q.google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.UnstructuredDataOptionsB\x03\xE0A\x01\x1A\x8F\x01\x0A\x0ACsvOptions\x12\x18\x0A\x0Bheader_rows\x18\x01 \x01(\x05B\x03\xE0A\x01\x12\x16\x0A\x09delimiter\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08encoding\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\$\x0A\x17type_inference_disabled\x18\x04 \x01(\x08B\x03\xE0A\x01\x12\x12\x0A\x05quote\x18\x05 \x01(\x09B\x03\xE0A\x01\x1AJ\x0A\x0BJsonOptions\x12\x15\x0A\x08encoding\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\$\x0A\x17type_inference_disabled\x18\x02 \x01(\x08B\x03\xE0A\x01\x1AB\x0A\x17UnstructuredDataOptions\x12'\x0A\x1Asemantic_inference_enabled\x18\x02 \x01(\x08B\x03\xE0A\x01B\x11\x0A\x0Fresource_config\"\xB7\x04\x0A\x13DataDiscoveryResult\x12b\x0A\x13bigquery_publishing\x18\x01 \x01(\x0B2@.google.cloud.dataplex.v1.DataDiscoveryResult.BigQueryPublishingB\x03\xE0A\x03\x12Z\x0A\x0Fscan_statistics\x18\x02 \x01(\x0B2<.google.cloud.dataplex.v1.DataDiscoveryResult.ScanStatisticsB\x03\xE0A\x03\x1Ae\x0A\x12BigQueryPublishing\x128\x0A\x07dataset\x18\x01 \x01(\x09B'\xE0A\x03\xFAA!\x0A\x1Fbigquery.googleapis.com/Dataset\x12\x15\x0A\x08location\x18\x02 \x01(\x09B\x03\xE0A\x03\x1A\xF8\x01\x0A\x0EScanStatistics\x12\x1A\x0A\x12scanned_file_count\x18\x01 \x01(\x05\x12\x1C\x0A\x14data_processed_bytes\x18\x02 \x01(\x03\x12\x16\x0A\x0Efiles_excluded\x18\x03 \x01(\x05\x12\x16\x0A\x0Etables_created\x18\x04 \x01(\x05\x12\x16\x0A\x0Etables_deleted\x18\x05 \x01(\x05\x12\x16\x0A\x0Etables_updated\x18\x06 \x01(\x05\x12\x18\x0A\x10filesets_created\x18\x07 \x01(\x05\x12\x18\x0A\x10filesets_deleted\x18\x08 \x01(\x05\x12\x18\x0A\x10filesets_updated\x18\x09 \x01(\x05B\xAC\x02\x0A\x1Ccom.google.cloud.dataplex.v1B\x12DataDiscoveryProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpb\xEAAH\x0A\x1Fbigquery.googleapis.com/Dataset\x12%projects/{project}/datasets/{dataset}\xEAAp\x0A,bigqueryconnection.googleapis.com/Connection\x12@projects/{project}/locations/{location}/connections/{connection}b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DataDocumentation.php b/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DataDocumentation.php deleted file mode 100644 index 826eb9bc6041..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DataDocumentation.php +++ /dev/null @@ -1,26 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xA5\x10\x0A1google/cloud/dataplex/v1/data_documentation.proto\x12\x18google.cloud.dataplex.v1\x1A\x19google/api/resource.proto\"\x93\x02\x0A\x15DataDocumentationSpec\x12'\x0A\x1Acatalog_publishing_enabled\x18\x02 \x01(\x08B\x03\xE0A\x01\x12_\x0A\x11generation_scopes\x18\x03 \x03(\x0E2?.google.cloud.dataplex.v1.DataDocumentationSpec.GenerationScopeB\x03\xE0A\x01\"p\x0A\x0FGenerationScope\x12 \x0A\x1CGENERATION_SCOPE_UNSPECIFIED\x10\x00\x12\x07\x0A\x03ALL\x10\x01\x12!\x0A\x1DTABLE_AND_COLUMN_DESCRIPTIONS\x10\x02\x12\x0F\x0A\x0BSQL_QUERIES\x10\x03\"\xA8\x0C\x0A\x17DataDocumentationResult\x12^\x0A\x0Edataset_result\x18\x07 \x01(\x0B2?.google.cloud.dataplex.v1.DataDocumentationResult.DatasetResultB\x03\xE0A\x03H\x00\x12Z\x0A\x0Ctable_result\x18\x08 \x01(\x0B2=.google.cloud.dataplex.v1.DataDocumentationResult.TableResultB\x03\xE0A\x03H\x00\x1A\xDE\x01\x0A\x0DDatasetResult\x12\x15\x0A\x08overview\x18\x01 \x01(\x09B\x03\xE0A\x03\x12g\x0A\x14schema_relationships\x18\x03 \x03(\x0B2D.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationshipB\x03\xE0A\x03\x12M\x0A\x07queries\x18\x04 \x03(\x0B27.google.cloud.dataplex.v1.DataDocumentationResult.QueryB\x03\xE0A\x03\x1A\xD5\x01\x0A\x0BTableResult\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x15\x0A\x08overview\x18\x02 \x01(\x09B\x03\xE0A\x03\x12M\x0A\x06schema\x18\x03 \x01(\x0B28.google.cloud.dataplex.v1.DataDocumentationResult.SchemaB\x03\xE0A\x03\x12M\x0A\x07queries\x18\x04 \x03(\x0B27.google.cloud.dataplex.v1.DataDocumentationResult.QueryB\x03\xE0A\x03\x1A\xFB\x04\x0A\x12SchemaRelationship\x12p\x0A\x11left_schema_paths\x18\x01 \x01(\x0B2P.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPathsB\x03\xE0A\x03\x12q\x0A\x12right_schema_paths\x18\x02 \x01(\x0B2P.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPathsB\x03\xE0A\x03\x12a\x0A\x07sources\x18\x04 \x03(\x0E2K.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SourceB\x03\xE0A\x03\x12\\\x0A\x04type\x18\x06 \x01(\x0E2I.google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.TypeB\x03\xE0A\x03\x1A9\x0A\x0BSchemaPaths\x12\x16\x0A\x09table_fqn\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x12\x0A\x05paths\x18\x02 \x03(\x09B\x03\xE0A\x03\"U\x0A\x06Source\x12\x16\x0A\x12SOURCE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05AGENT\x10\x04\x12\x11\x0A\x0DQUERY_HISTORY\x10\x05\x12\x15\x0A\x11TABLE_CONSTRAINTS\x10\x06\"-\x0A\x04Type\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BSCHEMA_JOIN\x10\x01\x1A3\x0A\x05Query\x12\x10\x0A\x03sql\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x02 \x01(\x09B\x03\xE0A\x03\x1AV\x0A\x06Schema\x12L\x0A\x06fields\x18\x01 \x03(\x0B27.google.cloud.dataplex.v1.DataDocumentationResult.FieldB\x03\xE0A\x03\x1A\x82\x01\x0A\x05Field\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x02 \x01(\x09B\x03\xE0A\x03\x12L\x0A\x06fields\x18\x03 \x03(\x0B27.google.cloud.dataplex.v1.DataDocumentationResult.FieldB\x03\xE0A\x03B\x08\x0A\x06resultBr\x0A\x1Ccom.google.cloud.dataplex.v1B\x16DataDocumentationProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DataProducts.php b/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DataProducts.php deleted file mode 100644 index 2d38053965d6..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DataProducts.php +++ /dev/null @@ -1,35 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xF88\x0A,google/cloud/dataplex/v1/data_products.proto\x12\x18google.cloud.dataplex.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x1Bgoogle/api/field_info.proto\x1A\x19google/api/resource.proto\x1A0google/cloud/dataplex/v1/approval_workflow.proto\x1A&google/cloud/dataplex/v1/service.proto\x1A#google/longrunning/operations.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xB5\x09\x0A\x0BDataProduct\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x18\x0A\x03uid\x18\x02 \x01(\x09B\x0B\xE0A\x03\xE2\x8C\xCF\xD7\x08\x02\x08\x01\x12\x19\x0A\x0Cdisplay_name\x18\x03 \x01(\x09B\x03\xE0A\x02\x124\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x11\x0A\x04etag\x18\x06 \x01(\x09B\x03\xE0A\x01\x12F\x0A\x06labels\x18\x07 \x03(\x0B21.google.cloud.dataplex.v1.DataProduct.LabelsEntryB\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x08 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04icon\x18\x0A \x01(\x0CB\x03\xE0A\x01\x12\x19\x0A\x0Cowner_emails\x18\x0B \x03(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Basset_count\x18\x0D \x01(\x05B\x03\xE0A\x03\x12S\x0A\x0Daccess_groups\x18\x0E \x03(\x0B27.google.cloud.dataplex.v1.DataProduct.AccessGroupsEntryB\x03\xE0A\x01\x12d\x0A\x16access_approval_config\x18\x0F \x01(\x0B2:.google.cloud.dataplex.v1.DataProduct.AccessApprovalConfigB\x03\xE0A\x01H\x00\x88\x01\x01\x1Ag\x0A\x09Principal\x12\x1B\x0A\x0Cgoogle_group\x18\x01 \x01(\x09B\x03\xE0A\x01H\x00\x12!\x0A\x0Fservice_account\x18\x02 \x01(\x09B\x03\xE0A\x01H\x01\x88\x01\x01B\x06\x0A\x04typeB\x12\x0A\x10_service_account\x1A\x9C\x01\x0A\x0BAccessGroup\x12\x0F\x0A\x02id\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Bdescription\x18\x03 \x01(\x09B\x03\xE0A\x01\x12G\x0A\x09principal\x18\x04 \x01(\x0B2/.google.cloud.dataplex.v1.DataProduct.PrincipalB\x03\xE0A\x02\x1A4\x0A\x14AccessApprovalConfig\x12\x1C\x0A\x0Fapprover_emails\x18\x02 \x03(\x09B\x03\xE0A\x01\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1Af\x0A\x11AccessGroupsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12@\x0A\x05value\x18\x02 \x01(\x0B21.google.cloud.dataplex.v1.DataProduct.AccessGroup:\x028\x01:\x89\x01\xEAA\x85\x01\x0A#dataplex.googleapis.com/DataProduct\x12Cprojects/{project}/locations/{location}/dataProducts/{data_product}*\x0CdataProducts2\x0BdataProductB\x19\x0A\x17_access_approval_config\"\xE3\x05\x0A\x09DataAsset\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x18\x0A\x03uid\x18\x02 \x01(\x09B\x0B\xE0A\x03\xE2\x8C\xCF\xD7\x08\x02\x08\x01\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x11\x0A\x04etag\x18\x05 \x01(\x09B\x03\xE0A\x01\x12D\x0A\x06labels\x18\x06 \x03(\x0B2/.google.cloud.dataplex.v1.DataAsset.LabelsEntryB\x03\xE0A\x01\x12\x18\x0A\x08resource\x18\x07 \x01(\x09B\x06\xE0A\x05\xE0A\x02\x12^\x0A\x14access_group_configs\x18\x09 \x03(\x0B2;.google.cloud.dataplex.v1.DataAsset.AccessGroupConfigsEntryB\x03\xE0A\x01\x1A+\x0A\x11AccessGroupConfig\x12\x16\x0A\x09iam_roles\x18\x01 \x03(\x09B\x03\xE0A\x01\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1Ap\x0A\x17AccessGroupConfigsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12D\x0A\x05value\x18\x02 \x01(\x0B25.google.cloud.dataplex.v1.DataAsset.AccessGroupConfig:\x028\x01:\x9B\x01\xEAA\x97\x01\x0A!dataplex.googleapis.com/DataAsset\x12[projects/{project}/locations/{location}/dataProducts/{data_product}/dataAssets/{data_asset}*\x0AdataAssets2\x09dataAsset\"\xD1\x01\x0A\x18CreateDataProductRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12\x1C\x0A\x0Fdata_product_id\x18\x02 \x01(\x09B\x03\xE0A\x01\x12@\x0A\x0Cdata_product\x18\x03 \x01(\x0B2%.google.cloud.dataplex.v1.DataProductB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"\x84\x01\x0A\x18DeleteDataProductRequest\x129\x0A\x04name\x18\x01 \x01(\x09B+\xE0A\x02\xFAA%\x0A#dataplex.googleapis.com/DataProduct\x12\x11\x0A\x04etag\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"R\x0A\x15GetDataProductRequest\x129\x0A\x04name\x18\x01 \x01(\x09B+\xE0A\x02\xFAA%\x0A#dataplex.googleapis.com/DataProduct\"\xB1\x01\x0A\x17ListDataProductsRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12\x13\x0A\x06filter\x18\x02 \x01(\x09B\x03\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\x15\x0A\x08order_by\x18\x05 \x01(\x09B\x03\xE0A\x01\"\x8B\x01\x0A\x18ListDataProductsResponse\x12<\x0A\x0Ddata_products\x18\x01 \x03(\x0B2%.google.cloud.dataplex.v1.DataProduct\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x18\x0A\x0Bunreachable\x18\x03 \x03(\x09B\x03\xE0A\x06\"\xAE\x01\x0A\x18UpdateDataProductRequest\x12@\x0A\x0Cdata_product\x18\x01 \x01(\x0B2%.google.cloud.dataplex.v1.DataProductB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"\xC0\x01\x0A\x1FRequestDataProductAccessRequest\x12;\x0A\x06parent\x18\x01 \x01(\x09B+\xE0A\x02\xFAA%\x0A#dataplex.googleapis.com/DataProduct\x12D\x0A\x0Echange_request\x18\x02 \x01(\x0B2'.google.cloud.dataplex.v1.ChangeRequestB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"k\x0A RequestDataProductAccessResponse\x12G\x0A\x13change_request_name\x18\x01 \x01(\x09B*\xFAA'\x0A%dataplex.googleapis.com/ChangeRequest\"\xCB\x01\x0A\x16CreateDataAssetRequest\x12;\x0A\x06parent\x18\x01 \x01(\x09B+\xE0A\x02\xFAA%\x0A#dataplex.googleapis.com/DataProduct\x12\x1A\x0A\x0Ddata_asset_id\x18\x02 \x01(\x09B\x03\xE0A\x01\x12<\x0A\x0Adata_asset\x18\x03 \x01(\x0B2#.google.cloud.dataplex.v1.DataAssetB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"\xA8\x01\x0A\x16UpdateDataAssetRequest\x12<\x0A\x0Adata_asset\x18\x01 \x01(\x0B2#.google.cloud.dataplex.v1.DataAssetB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"\x80\x01\x0A\x16DeleteDataAssetRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataplex.googleapis.com/DataAsset\x12\x11\x0A\x04etag\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"N\x0A\x13GetDataAssetRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataplex.googleapis.com/DataAsset\"\xB1\x01\x0A\x15ListDataAssetsRequest\x12;\x0A\x06parent\x18\x01 \x01(\x09B+\xE0A\x02\xFAA%\x0A#dataplex.googleapis.com/DataProduct\x12\x13\x0A\x06filter\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09page_size\x18\x04 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x05 \x01(\x09B\x03\xE0A\x01\"k\x0A\x16ListDataAssetsResponse\x128\x0A\x0Bdata_assets\x18\x01 \x03(\x0B2#.google.cloud.dataplex.v1.DataAsset\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x092\x88\x15\x0A\x12DataProductService\x12\xF8\x01\x0A\x11CreateDataProduct\x122.google.cloud.dataplex.v1.CreateDataProductRequest\x1A\x1D.google.longrunning.Operation\"\x8F\x01\xCAA \x0A\x0BDataProduct\x12\x11OperationMetadata\xDAA#parent,data_product,data_product_id\x82\xD3\xE4\x93\x02@\"0/v1/{parent=projects/*/locations/*}/dataProducts:\x0Cdata_product\x12\xD4\x01\x0A\x11DeleteDataProduct\x122.google.cloud.dataplex.v1.DeleteDataProductRequest\x1A\x1D.google.longrunning.Operation\"l\xCAA*\x0A\x15google.protobuf.Empty\x12\x11OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x022*0/v1/{name=projects/*/locations/*/dataProducts/*}\x12\xA9\x01\x0A\x0EGetDataProduct\x12/.google.cloud.dataplex.v1.GetDataProductRequest\x1A%.google.cloud.dataplex.v1.DataProduct\"?\xDAA\x04name\x82\xD3\xE4\x93\x022\x120/v1/{name=projects/*/locations/*/dataProducts/*}\x12\xBC\x01\x0A\x10ListDataProducts\x121.google.cloud.dataplex.v1.ListDataProductsRequest\x1A2.google.cloud.dataplex.v1.ListDataProductsResponse\"A\xDAA\x06parent\x82\xD3\xE4\x93\x022\x120/v1/{parent=projects/*/locations/*}/dataProducts\x12\xFA\x01\x0A\x11UpdateDataProduct\x122.google.cloud.dataplex.v1.UpdateDataProductRequest\x1A\x1D.google.longrunning.Operation\"\x91\x01\xCAA \x0A\x0BDataProduct\x12\x11OperationMetadata\xDAA\x18data_product,update_mask\x82\xD3\xE4\x93\x02M2=/v1/{data_product.name=projects/*/locations/*/dataProducts/*}:\x0Cdata_product\x12\xF6\x01\x0A\x18RequestDataProductAccess\x129.google.cloud.dataplex.v1.RequestDataProductAccessRequest\x1A:.google.cloud.dataplex.v1.RequestDataProductAccessResponse\"c\xDAA\x15parent,change_request\x82\xD3\xE4\x93\x02E\"@/v1/{parent=projects/*/locations/*/dataProducts/*}:requestAccess:\x01*\x12\xF9\x01\x0A\x0FCreateDataAsset\x120.google.cloud.dataplex.v1.CreateDataAssetRequest\x1A\x1D.google.longrunning.Operation\"\x94\x01\xCAA\x1E\x0A\x09DataAsset\x12\x11OperationMetadata\xDAA\x1Fparent,data_asset,data_asset_id\x82\xD3\xE4\x93\x02K\"=/v1/{parent=projects/*/locations/*/dataProducts/*}/dataAssets:\x0Adata_asset\x12\xFB\x01\x0A\x0FUpdateDataAsset\x120.google.cloud.dataplex.v1.UpdateDataAssetRequest\x1A\x1D.google.longrunning.Operation\"\x96\x01\xCAA\x1E\x0A\x09DataAsset\x12\x11OperationMetadata\xDAA\x16data_asset,update_mask\x82\xD3\xE4\x93\x02V2H/v1/{data_asset.name=projects/*/locations/*/dataProducts/*/dataAssets/*}:\x0Adata_asset\x12\xDD\x01\x0A\x0FDeleteDataAsset\x120.google.cloud.dataplex.v1.DeleteDataAssetRequest\x1A\x1D.google.longrunning.Operation\"y\xCAA*\x0A\x15google.protobuf.Empty\x12\x11OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x02?*=/v1/{name=projects/*/locations/*/dataProducts/*/dataAssets/*}\x12\xB0\x01\x0A\x0CGetDataAsset\x12-.google.cloud.dataplex.v1.GetDataAssetRequest\x1A#.google.cloud.dataplex.v1.DataAsset\"L\xDAA\x04name\x82\xD3\xE4\x93\x02?\x12=/v1/{name=projects/*/locations/*/dataProducts/*/dataAssets/*}\x12\xC3\x01\x0A\x0EListDataAssets\x12/.google.cloud.dataplex.v1.ListDataAssetsRequest\x1A0.google.cloud.dataplex.v1.ListDataAssetsResponse\"N\xDAA\x06parent\x82\xD3\xE4\x93\x02?\x12=/v1/{parent=projects/*/locations/*/dataProducts/*}/dataAssets\x1A\xEB\x01\xCAA\x17dataplex.googleapis.com\xD2A\xCD\x01https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.read-only,https://www.googleapis.com/auth/dataplex.read-write,https://www.googleapis.com/auth/dataplex.readonlyBm\x0A\x1Ccom.google.cloud.dataplex.v1B\x11DataProductsProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DataProfile.php b/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DataProfile.php deleted file mode 100644 index 94a3f94d3c62..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DataProfile.php +++ /dev/null @@ -1,27 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xC0\x17\x0A+google/cloud/dataplex/v1/data_profile.proto\x12\x18google.cloud.dataplex.v1\x1A/google/cloud/dataplex/v1/datascans_common.proto\x1A)google/cloud/dataplex/v1/processing.proto\"\xD1\x05\x0A\x0FDataProfileSpec\x12\x1D\x0A\x10sampling_percent\x18\x02 \x01(\x02B\x03\xE0A\x01\x12\x17\x0A\x0Arow_filter\x18\x03 \x01(\x09B\x03\xE0A\x01\x12Y\x0A\x11post_scan_actions\x18\x04 \x01(\x0B29.google.cloud.dataplex.v1.DataProfileSpec.PostScanActionsB\x03\xE0A\x01\x12U\x0A\x0Einclude_fields\x18\x05 \x01(\x0B28.google.cloud.dataplex.v1.DataProfileSpec.SelectedFieldsB\x03\xE0A\x01\x12U\x0A\x0Eexclude_fields\x18\x06 \x01(\x0B28.google.cloud.dataplex.v1.DataProfileSpec.SelectedFieldsB\x03\xE0A\x01\x12'\x0A\x1Acatalog_publishing_enabled\x18\x08 \x01(\x08B\x03\xE0A\x01\x12A\x0A\x04mode\x18\x09 \x01(\x0E2..google.cloud.dataplex.v1.DataProfileSpec.ModeB\x03\xE0A\x01\x1A\xA7\x01\x0A\x0FPostScanActions\x12f\x0A\x0Fbigquery_export\x18\x01 \x01(\x0B2H.google.cloud.dataplex.v1.DataProfileSpec.PostScanActions.BigQueryExportB\x03\xE0A\x01\x1A,\x0A\x0EBigQueryExport\x12\x1A\x0A\x0Dresults_table\x18\x01 \x01(\x09B\x03\xE0A\x01\x1A*\x0A\x0ESelectedFields\x12\x18\x0A\x0Bfield_names\x18\x01 \x03(\x09B\x03\xE0A\x01\";\x0A\x04Mode\x12\x14\x0A\x10MODE_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08STANDARD\x10\x01\x12\x0F\x0A\x0BLIGHTWEIGHT\x10\x02\"\xD0\x0F\x0A\x11DataProfileResult\x12\x16\x0A\x09row_count\x18\x03 \x01(\x03B\x03\xE0A\x03\x12I\x0A\x07profile\x18\x04 \x01(\x0B23.google.cloud.dataplex.v1.DataProfileResult.ProfileB\x03\xE0A\x03\x12@\x0A\x0Cscanned_data\x18\x05 \x01(\x0B2%.google.cloud.dataplex.v1.ScannedDataB\x03\xE0A\x03\x12h\x0A\x18post_scan_actions_result\x18\x06 \x01(\x0B2A.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResultB\x03\xE0A\x03\x12a\x0A\x19catalog_publishing_status\x18\x07 \x01(\x0B29.google.cloud.dataplex.v1.DataScanCatalogPublishingStatusB\x03\xE0A\x03\x1A\xC8\x09\x0A\x07Profile\x12N\x0A\x06fields\x18\x02 \x03(\x0B29.google.cloud.dataplex.v1.DataProfileResult.Profile.FieldB\x03\xE0A\x03\x1A\xEC\x08\x0A\x05Field\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x11\x0A\x04type\x18\x02 \x01(\x09B\x03\xE0A\x03\x12\x11\x0A\x04mode\x18\x03 \x01(\x09B\x03\xE0A\x03\x12[\x0A\x07profile\x18\x04 \x01(\x0B2E.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfoB\x03\xE0A\x03\x1A\xCC\x07\x0A\x0BProfileInfo\x12\x17\x0A\x0Anull_ratio\x18\x02 \x01(\x01B\x03\xE0A\x03\x12\x1B\x0A\x0Edistinct_ratio\x18\x03 \x01(\x01B\x03\xE0A\x03\x12j\x0A\x0Ctop_n_values\x18\x04 \x03(\x0B2O.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValueB\x03\xE0A\x03\x12o\x0A\x0Estring_profile\x18e \x01(\x0B2U.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfoH\x00\x12q\x0A\x0Finteger_profile\x18f \x01(\x0B2V.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfoH\x00\x12o\x0A\x0Edouble_profile\x18g \x01(\x0B2U.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfoH\x00\x1A`\x0A\x0FStringFieldInfo\x12\x17\x0A\x0Amin_length\x18\x01 \x01(\x03B\x03\xE0A\x03\x12\x17\x0A\x0Amax_length\x18\x02 \x01(\x03B\x03\xE0A\x03\x12\x1B\x0A\x0Eaverage_length\x18\x03 \x01(\x01B\x03\xE0A\x03\x1A\x85\x01\x0A\x10IntegerFieldInfo\x12\x14\x0A\x07average\x18\x01 \x01(\x01B\x03\xE0A\x03\x12\x1F\x0A\x12standard_deviation\x18\x03 \x01(\x01B\x03\xE0A\x03\x12\x10\x0A\x03min\x18\x04 \x01(\x03B\x03\xE0A\x03\x12\x16\x0A\x09quartiles\x18\x06 \x03(\x03B\x03\xE0A\x03\x12\x10\x0A\x03max\x18\x05 \x01(\x03B\x03\xE0A\x03\x1A\x84\x01\x0A\x0FDoubleFieldInfo\x12\x14\x0A\x07average\x18\x01 \x01(\x01B\x03\xE0A\x03\x12\x1F\x0A\x12standard_deviation\x18\x03 \x01(\x01B\x03\xE0A\x03\x12\x10\x0A\x03min\x18\x04 \x01(\x01B\x03\xE0A\x03\x12\x16\x0A\x09quartiles\x18\x06 \x03(\x01B\x03\xE0A\x03\x12\x10\x0A\x03max\x18\x05 \x01(\x01B\x03\xE0A\x03\x1AG\x0A\x09TopNValue\x12\x12\x0A\x05value\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x12\x0A\x05count\x18\x02 \x01(\x03B\x03\xE0A\x03\x12\x12\x0A\x05ratio\x18\x03 \x01(\x01B\x03\xE0A\x03B\x0C\x0A\x0Afield_info\x1A\xFD\x02\x0A\x15PostScanActionsResult\x12{\x0A\x16bigquery_export_result\x18\x01 \x01(\x0B2V.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResultB\x03\xE0A\x03\x1A\xE6\x01\x0A\x14BigQueryExportResult\x12p\x0A\x05state\x18\x01 \x01(\x0E2\\.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult.StateB\x03\xE0A\x03\x12\x14\x0A\x07message\x18\x02 \x01(\x09B\x03\xE0A\x03\"F\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09SUCCEEDED\x10\x01\x12\x0A\x0A\x06FAILED\x10\x02\x12\x0B\x0A\x07SKIPPED\x10\x03Bl\x0A\x1Ccom.google.cloud.dataplex.v1B\x10DataProfileProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DataQuality.php b/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DataQuality.php deleted file mode 100644 index 016668568d3c..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DataQuality.php +++ /dev/null @@ -1,29 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xE27\x0A+google/cloud/dataplex/v1/data_quality.proto\x12\x18google.cloud.dataplex.v1\x1A\x19google/api/resource.proto\x1A9google/cloud/dataplex/v1/data_quality_rule_template.proto\x1A/google/cloud/dataplex/v1/datascans_common.proto\x1A)google/cloud/dataplex/v1/processing.proto\"\xA7\x09\x0A\x0FDataQualitySpec\x12=\x0A\x05rules\x18\x01 \x03(\x0B2).google.cloud.dataplex.v1.DataQualityRuleB\x03\xE0A\x02\x12\x1D\x0A\x10sampling_percent\x18\x04 \x01(\x02B\x03\xE0A\x01\x12\x17\x0A\x0Arow_filter\x18\x05 \x01(\x09B\x03\xE0A\x01\x12Y\x0A\x11post_scan_actions\x18\x06 \x01(\x0B29.google.cloud.dataplex.v1.DataQualitySpec.PostScanActionsB\x03\xE0A\x01\x12'\x0A\x1Acatalog_publishing_enabled\x18\x08 \x01(\x08B\x03\xE0A\x01\x12'\x0A\x1Aenable_catalog_based_rules\x18\x0A \x01(\x08B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x0B \x01(\x09B\x03\xE0A\x01\x1A\xDA\x06\x0A\x0FPostScanActions\x12f\x0A\x0Fbigquery_export\x18\x01 \x01(\x0B2H.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExportB\x03\xE0A\x01\x12n\x0A\x13notification_report\x18\x02 \x01(\x0B2L.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReportB\x03\xE0A\x01\x1A,\x0A\x0EBigQueryExport\x12\x1A\x0A\x0Dresults_table\x18\x01 \x01(\x09B\x03\xE0A\x01\x1A!\x0A\x0ARecipients\x12\x13\x0A\x06emails\x18\x01 \x03(\x09B\x03\xE0A\x01\x1A5\x0A\x15ScoreThresholdTrigger\x12\x1C\x0A\x0Fscore_threshold\x18\x02 \x01(\x02B\x03\xE0A\x01\x1A\x13\x0A\x11JobFailureTrigger\x1A\x0F\x0A\x0DJobEndTrigger\x1A\xC0\x03\x0A\x12NotificationReport\x12]\x0A\x0Arecipients\x18\x01 \x01(\x0B2D.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.RecipientsB\x03\xE0A\x02\x12u\x0A\x17score_threshold_trigger\x18\x02 \x01(\x0B2O.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTriggerB\x03\xE0A\x01\x12m\x0A\x13job_failure_trigger\x18\x04 \x01(\x0B2K.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTriggerB\x03\xE0A\x01\x12e\x0A\x0Fjob_end_trigger\x18\x05 \x01(\x0B2G.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTriggerB\x03\xE0A\x01\"\x85\x0A\x0A\x11DataQualityResult\x12\x13\x0A\x06passed\x18\x05 \x01(\x08B\x03\xE0A\x03\x12\x17\x0A\x05score\x18\x09 \x01(\x02B\x03\xE0A\x03H\x00\x88\x01\x01\x12M\x0A\x0Adimensions\x18\x02 \x03(\x0B24.google.cloud.dataplex.v1.DataQualityDimensionResultB\x03\xE0A\x03\x12G\x0A\x07columns\x18\x0A \x03(\x0B21.google.cloud.dataplex.v1.DataQualityColumnResultB\x03\xE0A\x03\x12C\x0A\x05rules\x18\x03 \x03(\x0B2/.google.cloud.dataplex.v1.DataQualityRuleResultB\x03\xE0A\x03\x12\x16\x0A\x09row_count\x18\x04 \x01(\x03B\x03\xE0A\x03\x12@\x0A\x0Cscanned_data\x18\x07 \x01(\x0B2%.google.cloud.dataplex.v1.ScannedDataB\x03\xE0A\x03\x12h\x0A\x18post_scan_actions_result\x18\x08 \x01(\x0B2A.google.cloud.dataplex.v1.DataQualityResult.PostScanActionsResultB\x03\xE0A\x03\x12a\x0A\x19catalog_publishing_status\x18\x0B \x01(\x0B29.google.cloud.dataplex.v1.DataScanCatalogPublishingStatusB\x03\xE0A\x03\x12|\x0A\"anomaly_detection_generated_assets\x18\x0C \x01(\x0B2K.google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssetsB\x03\xE0A\x03\x1A\xFD\x02\x0A\x15PostScanActionsResult\x12{\x0A\x16bigquery_export_result\x18\x01 \x01(\x0B2V.google.cloud.dataplex.v1.DataQualityResult.PostScanActionsResult.BigQueryExportResultB\x03\xE0A\x03\x1A\xE6\x01\x0A\x14BigQueryExportResult\x12p\x0A\x05state\x18\x01 \x01(\x0E2\\.google.cloud.dataplex.v1.DataQualityResult.PostScanActionsResult.BigQueryExportResult.StateB\x03\xE0A\x03\x12\x14\x0A\x07message\x18\x02 \x01(\x09B\x03\xE0A\x03\"F\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09SUCCEEDED\x10\x01\x12\x0A\x0A\x06FAILED\x10\x02\x12\x0B\x0A\x07SKIPPED\x10\x03\x1A\xB5\x01\x0A\x1FAnomalyDetectionGeneratedAssets\x12\x19\x0A\x0Cresult_table\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\$\x0A\x17data_intermediate_table\x18\x02 \x01(\x09B\x03\xE0A\x03\x12)\x0A\x1Cfreshness_intermediate_table\x18\x03 \x01(\x09B\x03\xE0A\x03\x12&\x0A\x19volume_intermediate_table\x18\x04 \x01(\x09B\x03\xE0A\x03B\x08\x0A\x06_score\"\xB3\x04\x0A\x15DataQualityRuleResult\x12<\x0A\x04rule\x18\x01 \x01(\x0B2).google.cloud.dataplex.v1.DataQualityRuleB\x03\xE0A\x03\x12\x13\x0A\x06passed\x18\x07 \x01(\x08B\x03\xE0A\x03\x12\x1C\x0A\x0Fevaluated_count\x18\x09 \x01(\x03B\x03\xE0A\x03\x12\x19\x0A\x0Cpassed_count\x18\x08 \x01(\x03B\x03\xE0A\x03\x12\x17\x0A\x0Anull_count\x18\x05 \x01(\x03B\x03\xE0A\x03\x12\x17\x0A\x0Apass_ratio\x18\x06 \x01(\x01B\x03\xE0A\x03\x12\x1F\x0A\x12failing_rows_query\x18\x0A \x01(\x09B\x03\xE0A\x03\x12 \x0A\x13assertion_row_count\x18\x0B \x01(\x03B\x03\xE0A\x03\x12k\x0A\x19debug_queries_result_sets\x18\x0D \x03(\x0B2C.google.cloud.dataplex.v1.DataQualityRuleResult.DebugQueryResultSetB\x03\xE0A\x03\x1A=\x0A\x10DebugQueryResult\x12\x0C\x0A\x04name\x18\x01 \x01(\x09\x12\x0C\x0A\x04type\x18\x02 \x01(\x09\x12\x0D\x0A\x05value\x18\x03 \x01(\x09\x1Am\x0A\x13DebugQueryResultSet\x12V\x0A\x07results\x18\x01 \x03(\x0B2@.google.cloud.dataplex.v1.DataQualityRuleResult.DebugQueryResultB\x03\xE0A\x03\"\x9C\x01\x0A\x1ADataQualityDimensionResult\x12F\x0A\x09dimension\x18\x01 \x01(\x0B2..google.cloud.dataplex.v1.DataQualityDimensionB\x03\xE0A\x03\x12\x13\x0A\x06passed\x18\x03 \x01(\x08B\x03\xE0A\x03\x12\x17\x0A\x05score\x18\x04 \x01(\x02B\x03\xE0A\x03H\x00\x88\x01\x01B\x08\x0A\x06_score\")\x0A\x14DataQualityDimension\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x03\"\xAD\x19\x0A\x0FDataQualityRule\x12W\x0A\x11range_expectation\x18\x01 \x01(\x0B2:.google.cloud.dataplex.v1.DataQualityRule.RangeExpectationH\x00\x12\\\x0A\x14non_null_expectation\x18\x02 \x01(\x0B2<.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectationH\x00\x12S\x0A\x0Fset_expectation\x18\x03 \x01(\x0B28.google.cloud.dataplex.v1.DataQualityRule.SetExpectationH\x00\x12W\x0A\x11regex_expectation\x18\x04 \x01(\x0B2:.google.cloud.dataplex.v1.DataQualityRule.RegexExpectationH\x00\x12a\x0A\x16uniqueness_expectation\x18d \x01(\x0B2?.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectationH\x00\x12j\x0A\x1Bstatistic_range_expectation\x18e \x01(\x0B2C.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectationH\x00\x12g\x0A\x19row_condition_expectation\x18\xC8\x01 \x01(\x0B2A.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectationH\x00\x12k\x0A\x1Btable_condition_expectation\x18\xC9\x01 \x01(\x0B2C.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectationH\x00\x12P\x0A\x0Dsql_assertion\x18\xCA\x01 \x01(\x0B26.google.cloud.dataplex.v1.DataQualityRule.SqlAssertionH\x00\x12Y\x0A\x12template_reference\x18\x05 \x01(\x0B2;.google.cloud.dataplex.v1.DataQualityRule.TemplateReferenceH\x00\x12\x14\x0A\x06column\x18\xF4\x03 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Bignore_null\x18\xF5\x03 \x01(\x08B\x03\xE0A\x01\x12\x17\x0A\x09dimension\x18\xF6\x03 \x01(\x09B\x03\xE0A\x01\x12\x17\x0A\x09threshold\x18\xF7\x03 \x01(\x01B\x03\xE0A\x01\x12\x12\x0A\x04name\x18\xF8\x03 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Bdescription\x18\xF9\x03 \x01(\x09B\x03\xE0A\x01\x12\x17\x0A\x09suspended\x18\xFA\x03 \x01(\x08B\x03\xE0A\x01\x12S\x0A\x0Aattributes\x18\xFB\x03 \x03(\x0B29.google.cloud.dataplex.v1.DataQualityRule.AttributesEntryB\x03\xE0A\x01\x12O\x0A\x0Brule_source\x18\xFC\x03 \x01(\x0B24.google.cloud.dataplex.v1.DataQualityRule.RuleSourceB\x03\xE0A\x03\x12Q\x0A\x0Ddebug_queries\x18\xFE\x03 \x03(\x0B24.google.cloud.dataplex.v1.DataQualityRule.DebugQueryB\x03\xE0A\x01\x1A\x84\x01\x0A\x10RangeExpectation\x12\x16\x0A\x09min_value\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09max_value\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x1F\x0A\x12strict_min_enabled\x18\x03 \x01(\x08B\x03\xE0A\x01\x12\x1F\x0A\x12strict_max_enabled\x18\x04 \x01(\x08B\x03\xE0A\x01\x1A\x14\x0A\x12NonNullExpectation\x1A%\x0A\x0ESetExpectation\x12\x13\x0A\x06values\x18\x01 \x03(\x09B\x03\xE0A\x01\x1A&\x0A\x10RegexExpectation\x12\x12\x0A\x05regex\x18\x01 \x01(\x09B\x03\xE0A\x01\x1A\x17\x0A\x15UniquenessExpectation\x1A\xC2\x02\x0A\x19StatisticRangeExpectation\x12k\x0A\x09statistic\x18\x01 \x01(\x0E2S.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.ColumnStatisticB\x03\xE0A\x01\x12\x16\x0A\x09min_value\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09max_value\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x1F\x0A\x12strict_min_enabled\x18\x04 \x01(\x08B\x03\xE0A\x01\x12\x1F\x0A\x12strict_max_enabled\x18\x05 \x01(\x08B\x03\xE0A\x01\"F\x0A\x0FColumnStatistic\x12\x17\x0A\x13STATISTIC_UNDEFINED\x10\x00\x12\x08\x0A\x04MEAN\x10\x01\x12\x07\x0A\x03MIN\x10\x02\x12\x07\x0A\x03MAX\x10\x03\x1A6\x0A\x17RowConditionExpectation\x12\x1B\x0A\x0Esql_expression\x18\x01 \x01(\x09B\x03\xE0A\x01\x1A8\x0A\x19TableConditionExpectation\x12\x1B\x0A\x0Esql_expression\x18\x01 \x01(\x09B\x03\xE0A\x01\x1A*\x0A\x0CSqlAssertion\x12\x1A\x0A\x0Dsql_statement\x18\x01 \x01(\x09B\x03\xE0A\x01\x1A\xB1\x03\x0A\x11TemplateReference\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddataplex.googleapis.com/Entry\x12\\\x0A\x06values\x18\x05 \x03(\x0B2G.google.cloud.dataplex.v1.DataQualityRule.TemplateReference.ValuesEntryB\x03\xE0A\x01\x12\x19\x0A\x0Cresolved_sql\x18\x03 \x01(\x09B\x03\xE0A\x03\x12M\x0A\x0Drule_template\x18\x04 \x01(\x0B21.google.cloud.dataplex.v1.DataQualityRuleTemplateB\x03\xE0A\x03\x1A\$\x0A\x0EParameterValue\x12\x12\x0A\x05value\x18\x01 \x01(\x09B\x03\xE0A\x02\x1Ay\x0A\x0BValuesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12Y\x0A\x05value\x18\x02 \x01(\x0B2J.google.cloud.dataplex.v1.DataQualityRule.TemplateReference.ParameterValue:\x028\x01\x1A\x9E\x04\x0A\x0ARuleSource\x12e\x0A\x12rule_path_elements\x18\x01 \x03(\x0B2D.google.cloud.dataplex.v1.DataQualityRule.RuleSource.RulePathElementB\x03\xE0A\x03\x1A\xA8\x03\x0A\x0FRulePathElement\x12m\x0A\x0Centry_source\x18\x01 \x01(\x0B2P.google.cloud.dataplex.v1.DataQualityRule.RuleSource.RulePathElement.EntrySourceB\x03\xE0A\x03H\x00\x12v\x0A\x11entry_link_source\x18\x02 \x01(\x0B2T.google.cloud.dataplex.v1.DataQualityRule.RuleSource.RulePathElement.EntryLinkSourceB\x03\xE0A\x03H\x00\x1AU\x0A\x0BEntrySource\x12\x17\x0A\x0Aentry_type\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x12\x0A\x05entry\x18\x02 \x01(\x09B\x03\xE0A\x03\x12\x19\x0A\x0Cdisplay_name\x18\x03 \x01(\x09B\x03\xE0A\x03\x1AH\x0A\x0FEntryLinkSource\x12\x1C\x0A\x0Fentry_link_type\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x17\x0A\x0Aentry_link\x18\x02 \x01(\x09B\x03\xE0A\x03B\x0D\x0A\x0Bsource_type\x1AB\x0A\x0ADebugQuery\x12\x18\x0A\x0Bdescription\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x1A\x0A\x0Dsql_statement\x18\x02 \x01(\x09B\x03\xE0A\x02\x1A1\x0A\x0FAttributesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01B\x0B\x0A\x09rule_type\"\xB5\x01\x0A\x17DataQualityColumnResult\x12\x13\x0A\x06column\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x17\x0A\x05score\x18\x02 \x01(\x02B\x03\xE0A\x03H\x00\x88\x01\x01\x12\x13\x0A\x06passed\x18\x03 \x01(\x08B\x03\xE0A\x03\x12M\x0A\x0Adimensions\x18\x04 \x03(\x0B24.google.cloud.dataplex.v1.DataQualityDimensionResultB\x03\xE0A\x03B\x08\x0A\x06_scoreB\xC4\x01\x0A\x1Ccom.google.cloud.dataplex.v1B\x10DataQualityProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpb\xEAAU\x0A\x1Dbigquery.googleapis.com/Table\x124projects/{project}/datasets/{dataset}/tables/{table}b\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DataTaxonomy.php b/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DataTaxonomy.php deleted file mode 100644 index f2dba18b4be9..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DataTaxonomy.php +++ /dev/null @@ -1,34 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xE7I\x0A,google/cloud/dataplex/v1/data_taxonomy.proto\x12\x18google.cloud.dataplex.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A'google/cloud/dataplex/v1/security.proto\x1A&google/cloud/dataplex/v1/service.proto\x1A#google/longrunning/operations.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xB3\x04\x0A\x0CDataTaxonomy\x12:\x0A\x04name\x18\x01 \x01(\x09B,\xE0A\x03\xFAA&\x0A\$dataplex.googleapis.com/DataTaxonomy\x12\x10\x0A\x03uid\x18\x02 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x05 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cdisplay_name\x18\x06 \x01(\x09B\x03\xE0A\x01\x12G\x0A\x06labels\x18\x08 \x03(\x0B22.google.cloud.dataplex.v1.DataTaxonomy.LabelsEntryB\x03\xE0A\x01\x12\x1C\x0A\x0Fattribute_count\x18\x09 \x01(\x05B\x03\xE0A\x03\x12\x0C\x0A\x04etag\x18\x0A \x01(\x09\x12\x18\x0A\x0Bclass_count\x18\x0B \x01(\x05B\x03\xE0A\x03\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:v\x18\x01\xEAAq\x0A\$dataplex.googleapis.com/DataTaxonomy\x12Iprojects/{project}/locations/{location}/dataTaxonomies/{data_taxonomy_id}\"\x96\x06\x0A\x0DDataAttribute\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x03\xFAA'\x0A%dataplex.googleapis.com/DataAttribute\x12\x10\x0A\x03uid\x18\x02 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x05 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cdisplay_name\x18\x06 \x01(\x09B\x03\xE0A\x01\x12H\x0A\x06labels\x18\x07 \x03(\x0B23.google.cloud.dataplex.v1.DataAttribute.LabelsEntryB\x03\xE0A\x01\x12@\x0A\x09parent_id\x18\x08 \x01(\x09B-\xE0A\x01\xFAA'\x0A%dataplex.googleapis.com/DataAttribute\x12\x1C\x0A\x0Fattribute_count\x18\x09 \x01(\x05B\x03\xE0A\x03\x12\x0C\x0A\x04etag\x18\x0A \x01(\x09\x12O\x0A\x14resource_access_spec\x18d \x01(\x0B2,.google.cloud.dataplex.v1.ResourceAccessSpecB\x03\xE0A\x01\x12G\x0A\x10data_access_spec\x18e \x01(\x0B2(.google.cloud.dataplex.v1.DataAccessSpecB\x03\xE0A\x01\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:\x93\x01\x18\x01\xEAA\x8D\x01\x0A%dataplex.googleapis.com/DataAttribute\x12dprojects/{project}/locations/{location}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id}\"\xC9\x06\x0A\x14DataAttributeBinding\x12B\x0A\x04name\x18\x01 \x01(\x09B4\xE0A\x03\xFAA.\x0A,dataplex.googleapis.com/DataAttributeBinding\x12\x10\x0A\x03uid\x18\x02 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x05 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cdisplay_name\x18\x06 \x01(\x09B\x03\xE0A\x01\x12O\x0A\x06labels\x18\x07 \x03(\x0B2:.google.cloud.dataplex.v1.DataAttributeBinding.LabelsEntryB\x03\xE0A\x01\x12\x0C\x0A\x04etag\x18\x08 \x01(\x09\x12\x1A\x0A\x08resource\x18d \x01(\x09B\x06\xE0A\x01\xE0A\x05H\x00\x12A\x0A\x0Aattributes\x18n \x03(\x09B-\xE0A\x01\xFAA'\x0A%dataplex.googleapis.com/DataAttribute\x12G\x0A\x05paths\x18x \x03(\x0B23.google.cloud.dataplex.v1.DataAttributeBinding.PathB\x03\xE0A\x01\x1A\\\x0A\x04Path\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12A\x0A\x0Aattributes\x18\x02 \x03(\x09B-\xE0A\x01\xFAA'\x0A%dataplex.googleapis.com/DataAttribute\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:\x8F\x01\x18\x01\xEAA\x89\x01\x0A,dataplex.googleapis.com/DataAttributeBinding\x12Yprojects/{project}/locations/{location}/dataAttributeBindings/{data_attribute_binding_id}B\x14\x0A\x12resource_reference\"\xD9\x01\x0A\x19CreateDataTaxonomyRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12\x1D\x0A\x10data_taxonomy_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12B\x0A\x0Ddata_taxonomy\x18\x03 \x01(\x0B2&.google.cloud.dataplex.v1.DataTaxonomyB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01:\x02\x18\x01\"\xB5\x01\x0A\x19UpdateDataTaxonomyRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12B\x0A\x0Ddata_taxonomy\x18\x02 \x01(\x0B2&.google.cloud.dataplex.v1.DataTaxonomyB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01:\x02\x18\x01\"X\x0A\x16GetDataTaxonomyRequest\x12:\x0A\x04name\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$dataplex.googleapis.com/DataTaxonomy:\x02\x18\x01\"\xB3\x01\x0A\x19ListDataTaxonomiesRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\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\"\x95\x01\x0A\x1AListDataTaxonomiesResponse\x12?\x0A\x0Fdata_taxonomies\x18\x01 \x03(\x0B2&.google.cloud.dataplex.v1.DataTaxonomy\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x1D\x0A\x15unreachable_locations\x18\x03 \x03(\x09\"n\x0A\x19DeleteDataTaxonomyRequest\x12:\x0A\x04name\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$dataplex.googleapis.com/DataTaxonomy\x12\x11\x0A\x04etag\x18\x02 \x01(\x09B\x03\xE0A\x01:\x02\x18\x01\"\xDC\x01\x0A\x1ACreateDataAttributeRequest\x12<\x0A\x06parent\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$dataplex.googleapis.com/DataTaxonomy\x12\x1E\x0A\x11data_attribute_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12D\x0A\x0Edata_attribute\x18\x03 \x01(\x0B2'.google.cloud.dataplex.v1.DataAttributeB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"\xB4\x01\x0A\x1AUpdateDataAttributeRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12D\x0A\x0Edata_attribute\x18\x02 \x01(\x0B2'.google.cloud.dataplex.v1.DataAttributeB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"V\x0A\x17GetDataAttributeRequest\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%dataplex.googleapis.com/DataAttribute\"\xB6\x01\x0A\x19ListDataAttributesRequest\x12<\x0A\x06parent\x18\x01 \x01(\x09B,\xE0A\x02\xFAA&\x0A\$dataplex.googleapis.com/DataTaxonomy\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\"\x96\x01\x0A\x1AListDataAttributesResponse\x12@\x0A\x0Fdata_attributes\x18\x01 \x03(\x0B2'.google.cloud.dataplex.v1.DataAttribute\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x1D\x0A\x15unreachable_locations\x18\x03 \x03(\x09\"l\x0A\x1ADeleteDataAttributeRequest\x12;\x0A\x04name\x18\x01 \x01(\x09B-\xE0A\x02\xFAA'\x0A%dataplex.googleapis.com/DataAttribute\x12\x11\x0A\x04etag\x18\x02 \x01(\x09B\x03\xE0A\x01\"\xF7\x01\x0A!CreateDataAttributeBindingRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12&\x0A\x19data_attribute_binding_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x12S\x0A\x16data_attribute_binding\x18\x03 \x01(\x0B2..google.cloud.dataplex.v1.DataAttributeBindingB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"\xCA\x01\x0A!UpdateDataAttributeBindingRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x12S\x0A\x16data_attribute_binding\x18\x02 \x01(\x0B2..google.cloud.dataplex.v1.DataAttributeBindingB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"d\x0A\x1EGetDataAttributeBindingRequest\x12B\x0A\x04name\x18\x01 \x01(\x09B4\xE0A\x02\xFAA.\x0A,dataplex.googleapis.com/DataAttributeBinding\"\xBA\x01\x0A ListDataAttributeBindingsRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\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\"\xAC\x01\x0A!ListDataAttributeBindingsResponse\x12O\x0A\x17data_attribute_bindings\x18\x01 \x03(\x0B2..google.cloud.dataplex.v1.DataAttributeBinding\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x1D\x0A\x15unreachable_locations\x18\x03 \x03(\x09\"z\x0A!DeleteDataAttributeBindingRequest\x12B\x0A\x04name\x18\x01 \x01(\x09B4\xE0A\x02\xFAA.\x0A,dataplex.googleapis.com/DataAttributeBinding\x12\x11\x0A\x04etag\x18\x02 \x01(\x09B\x03\xE0A\x022\xF0\x1D\x0A\x13DataTaxonomyService\x12\x83\x02\x0A\x12CreateDataTaxonomy\x123.google.cloud.dataplex.v1.CreateDataTaxonomyRequest\x1A\x1D.google.longrunning.Operation\"\x98\x01\x88\x02\x01\xCAA!\x0A\x0CDataTaxonomy\x12\x11OperationMetadata\xDAA%parent,data_taxonomy,data_taxonomy_id\x82\xD3\xE4\x93\x02C\"2/v1/{parent=projects/*/locations/*}/dataTaxonomies:\x0Ddata_taxonomy\x12\x85\x02\x0A\x12UpdateDataTaxonomy\x123.google.cloud.dataplex.v1.UpdateDataTaxonomyRequest\x1A\x1D.google.longrunning.Operation\"\x9A\x01\x88\x02\x01\xCAA!\x0A\x0CDataTaxonomy\x12\x11OperationMetadata\xDAA\x19data_taxonomy,update_mask\x82\xD3\xE4\x93\x02Q2@/v1/{data_taxonomy.name=projects/*/locations/*/dataTaxonomies/*}:\x0Ddata_taxonomy\x12\xDB\x01\x0A\x12DeleteDataTaxonomy\x123.google.cloud.dataplex.v1.DeleteDataTaxonomyRequest\x1A\x1D.google.longrunning.Operation\"q\x88\x02\x01\xCAA*\x0A\x15google.protobuf.Empty\x12\x11OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x024*2/v1/{name=projects/*/locations/*/dataTaxonomies/*}\x12\xC7\x01\x0A\x12ListDataTaxonomies\x123.google.cloud.dataplex.v1.ListDataTaxonomiesRequest\x1A4.google.cloud.dataplex.v1.ListDataTaxonomiesResponse\"F\x88\x02\x01\xDAA\x06parent\x82\xD3\xE4\x93\x024\x122/v1/{parent=projects/*/locations/*}/dataTaxonomies\x12\xB1\x01\x0A\x0FGetDataTaxonomy\x120.google.cloud.dataplex.v1.GetDataTaxonomyRequest\x1A&.google.cloud.dataplex.v1.DataTaxonomy\"D\x88\x02\x01\xDAA\x04name\x82\xD3\xE4\x93\x024\x122/v1/{name=projects/*/locations/*/dataTaxonomies/*}\x12\xBD\x02\x0A\x1ACreateDataAttributeBinding\x12;.google.cloud.dataplex.v1.CreateDataAttributeBindingRequest\x1A\x1D.google.longrunning.Operation\"\xC2\x01\x88\x02\x01\xCAA)\x0A\x14DataAttributeBinding\x12\x11OperationMetadata\xDAA7parent,data_attribute_binding,data_attribute_binding_id\x82\xD3\xE4\x93\x02S\"9/v1/{parent=projects/*/locations/*}/dataAttributeBindings:\x16data_attribute_binding\x12\xBF\x02\x0A\x1AUpdateDataAttributeBinding\x12;.google.cloud.dataplex.v1.UpdateDataAttributeBindingRequest\x1A\x1D.google.longrunning.Operation\"\xC4\x01\x88\x02\x01\xCAA)\x0A\x14DataAttributeBinding\x12\x11OperationMetadata\xDAA\"data_attribute_binding,update_mask\x82\xD3\xE4\x93\x02j2P/v1/{data_attribute_binding.name=projects/*/locations/*/dataAttributeBindings/*}:\x16data_attribute_binding\x12\xF2\x01\x0A\x1ADeleteDataAttributeBinding\x12;.google.cloud.dataplex.v1.DeleteDataAttributeBindingRequest\x1A\x1D.google.longrunning.Operation\"x\x88\x02\x01\xCAA*\x0A\x15google.protobuf.Empty\x12\x11OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x02;*9/v1/{name=projects/*/locations/*/dataAttributeBindings/*}\x12\xE3\x01\x0A\x19ListDataAttributeBindings\x12:.google.cloud.dataplex.v1.ListDataAttributeBindingsRequest\x1A;.google.cloud.dataplex.v1.ListDataAttributeBindingsResponse\"M\x88\x02\x01\xDAA\x06parent\x82\xD3\xE4\x93\x02;\x129/v1/{parent=projects/*/locations/*}/dataAttributeBindings\x12\xD0\x01\x0A\x17GetDataAttributeBinding\x128.google.cloud.dataplex.v1.GetDataAttributeBindingRequest\x1A..google.cloud.dataplex.v1.DataAttributeBinding\"K\x88\x02\x01\xDAA\x04name\x82\xD3\xE4\x93\x02;\x129/v1/{name=projects/*/locations/*/dataAttributeBindings/*}\x12\x96\x02\x0A\x13CreateDataAttribute\x124.google.cloud.dataplex.v1.CreateDataAttributeRequest\x1A\x1D.google.longrunning.Operation\"\xA9\x01\x88\x02\x01\xCAA\"\x0A\x0DDataAttribute\x12\x11OperationMetadata\xDAA'parent,data_attribute,data_attribute_id\x82\xD3\xE4\x93\x02Q\"?/v1/{parent=projects/*/locations/*/dataTaxonomies/*}/attributes:\x0Edata_attribute\x12\x98\x02\x0A\x13UpdateDataAttribute\x124.google.cloud.dataplex.v1.UpdateDataAttributeRequest\x1A\x1D.google.longrunning.Operation\"\xAB\x01\x88\x02\x01\xCAA\"\x0A\x0DDataAttribute\x12\x11OperationMetadata\xDAA\x1Adata_attribute,update_mask\x82\xD3\xE4\x93\x02`2N/v1/{data_attribute.name=projects/*/locations/*/dataTaxonomies/*/attributes/*}:\x0Edata_attribute\x12\xEA\x01\x0A\x13DeleteDataAttribute\x124.google.cloud.dataplex.v1.DeleteDataAttributeRequest\x1A\x1D.google.longrunning.Operation\"~\x88\x02\x01\xCAA*\x0A\x15google.protobuf.Empty\x12\x11OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x02A*?/v1/{name=projects/*/locations/*/dataTaxonomies/*/attributes/*}\x12\xD4\x01\x0A\x12ListDataAttributes\x123.google.cloud.dataplex.v1.ListDataAttributesRequest\x1A4.google.cloud.dataplex.v1.ListDataAttributesResponse\"S\x88\x02\x01\xDAA\x06parent\x82\xD3\xE4\x93\x02A\x12?/v1/{parent=projects/*/locations/*/dataTaxonomies/*}/attributes\x12\xC1\x01\x0A\x10GetDataAttribute\x121.google.cloud.dataplex.v1.GetDataAttributeRequest\x1A'.google.cloud.dataplex.v1.DataAttribute\"Q\x88\x02\x01\xDAA\x04name\x82\xD3\xE4\x93\x02A\x12?/v1/{name=projects/*/locations/*/dataTaxonomies/*/attributes/*}\x1A\x82\x01\x88\x02\x01\xCAA\x17dataplex.googleapis.com\xD2Abhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dataplex.read-writeBm\x0A\x1Ccom.google.cloud.dataplex.v1B\x11DataTaxonomyProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Datascans.php b/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Datascans.php deleted file mode 100644 index 6682172bae2e..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Datascans.php +++ /dev/null @@ -1,40 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xA5D\x0A(google/cloud/dataplex/v1/datascans.proto\x12\x18google.cloud.dataplex.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x1Bgoogle/api/field_info.proto\x1A\x19google/api/resource.proto\x1A-google/cloud/dataplex/v1/data_discovery.proto\x1A1google/cloud/dataplex/v1/data_documentation.proto\x1A+google/cloud/dataplex/v1/data_profile.proto\x1A+google/cloud/dataplex/v1/data_quality.proto\x1A)google/cloud/dataplex/v1/processing.proto\x1A(google/cloud/dataplex/v1/resources.proto\x1A&google/cloud/dataplex/v1/service.proto\x1A#google/longrunning/operations.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xC5\x01\x0A\x15CreateDataScanRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12:\x0A\x09data_scan\x18\x02 \x01(\x0B2\".google.cloud.dataplex.v1.DataScanB\x03\xE0A\x02\x12\x19\x0A\x0Cdata_scan_id\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"\xA5\x01\x0A\x15UpdateDataScanRequest\x12:\x0A\x09data_scan\x18\x01 \x01(\x0B2\".google.cloud.dataplex.v1.DataScanB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"c\x0A\x15DeleteDataScanRequest\x126\x0A\x04name\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A dataplex.googleapis.com/DataScan\x12\x12\x0A\x05force\x18\x02 \x01(\x08B\x03\xE0A\x01\"\xDF\x01\x0A\x12GetDataScanRequest\x126\x0A\x04name\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A dataplex.googleapis.com/DataScan\x12L\x0A\x04view\x18\x02 \x01(\x0E29.google.cloud.dataplex.v1.GetDataScanRequest.DataScanViewB\x03\xE0A\x01\"C\x0A\x0CDataScanView\x12\x1E\x0A\x1ADATA_SCAN_VIEW_UNSPECIFIED\x10\x00\x12\x09\x0A\x05BASIC\x10\x01\x12\x08\x0A\x04FULL\x10\x0A\"\xAE\x01\x0A\x14ListDataScansRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\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\"}\x0A\x15ListDataScansResponse\x126\x0A\x0Adata_scans\x18\x01 \x03(\x0B2\".google.cloud.dataplex.v1.DataScan\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x13\x0A\x0Bunreachable\x18\x03 \x03(\x09\"L\x0A\x12RunDataScanRequest\x126\x0A\x04name\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A dataplex.googleapis.com/DataScan\"I\x0A\x13RunDataScanResponse\x122\x0A\x03job\x18\x01 \x01(\x0B2%.google.cloud.dataplex.v1.DataScanJob\"\xF2\x01\x0A\x15GetDataScanJobRequest\x129\x0A\x04name\x18\x01 \x01(\x09B+\xE0A\x02\xFAA%\x0A#dataplex.googleapis.com/DataScanJob\x12R\x0A\x04view\x18\x02 \x01(\x0E2?.google.cloud.dataplex.v1.GetDataScanJobRequest.DataScanJobViewB\x03\xE0A\x01\"J\x0A\x0FDataScanJobView\x12\"\x0A\x1EDATA_SCAN_JOB_VIEW_UNSPECIFIED\x10\x00\x12\x09\x0A\x05BASIC\x10\x01\x12\x08\x0A\x04FULL\x10\x0A\"\x99\x01\x0A\x17ListDataScanJobsRequest\x128\x0A\x06parent\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A dataplex.googleapis.com/DataScan\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\"r\x0A\x18ListDataScanJobsResponse\x12=\x0A\x0Edata_scan_jobs\x18\x01 \x03(\x0B2%.google.cloud.dataplex.v1.DataScanJob\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"U\x0A\x18CancelDataScanJobRequest\x129\x0A\x04name\x18\x01 \x01(\x09B+\xE0A\x02\xFAA%\x0A#dataplex.googleapis.com/DataScanJob\"\x1B\x0A\x19CancelDataScanJobResponse\"4\x0A\x1FGenerateDataQualityRulesRequest\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\"[\x0A GenerateDataQualityRulesResponse\x127\x0A\x04rule\x18\x01 \x03(\x0B2).google.cloud.dataplex.v1.DataQualityRule\"\xAD\x0E\x0A\x08DataScan\x12\x14\x0A\x04name\x18\x01 \x01(\x09B\x06\xE0A\x03\xE0A\x08\x12\x18\x0A\x03uid\x18\x02 \x01(\x09B\x0B\xE0A\x03\xE2\x8C\xCF\xD7\x08\x02\x08\x01\x12\x18\x0A\x0Bdescription\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cdisplay_name\x18\x04 \x01(\x09B\x03\xE0A\x01\x12C\x0A\x06labels\x18\x05 \x03(\x0B2..google.cloud.dataplex.v1.DataScan.LabelsEntryB\x03\xE0A\x01\x123\x0A\x05state\x18\x06 \x01(\x0E2\x1F.google.cloud.dataplex.v1.StateB\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\x127\x0A\x04data\x18\x09 \x01(\x0B2\$.google.cloud.dataplex.v1.DataSourceB\x03\xE0A\x02\x12M\x0A\x0Eexecution_spec\x18\x0A \x01(\x0B20.google.cloud.dataplex.v1.DataScan.ExecutionSpecB\x03\xE0A\x01\x12Q\x0A\x10execution_status\x18\x0B \x01(\x0B22.google.cloud.dataplex.v1.DataScan.ExecutionStatusB\x03\xE0A\x03\x129\x0A\x04type\x18\x0C \x01(\x0E2&.google.cloud.dataplex.v1.DataScanTypeB\x03\xE0A\x03\x12F\x0A\x11data_quality_spec\x18d \x01(\x0B2).google.cloud.dataplex.v1.DataQualitySpecH\x00\x12F\x0A\x11data_profile_spec\x18e \x01(\x0B2).google.cloud.dataplex.v1.DataProfileSpecH\x00\x12J\x0A\x13data_discovery_spec\x18f \x01(\x0B2+.google.cloud.dataplex.v1.DataDiscoverySpecH\x00\x12R\x0A\x17data_documentation_spec\x18g \x01(\x0B2/.google.cloud.dataplex.v1.DataDocumentationSpecH\x00\x12P\x0A\x13data_quality_result\x18\xC8\x01 \x01(\x0B2+.google.cloud.dataplex.v1.DataQualityResultB\x03\xE0A\x03H\x01\x12P\x0A\x13data_profile_result\x18\xC9\x01 \x01(\x0B2+.google.cloud.dataplex.v1.DataProfileResultB\x03\xE0A\x03H\x01\x12T\x0A\x15data_discovery_result\x18\xCA\x01 \x01(\x0B2-.google.cloud.dataplex.v1.DataDiscoveryResultB\x03\xE0A\x03H\x01\x12\\\x0A\x19data_documentation_result\x18\xCB\x01 \x01(\x0B21.google.cloud.dataplex.v1.DataDocumentationResultB\x03\xE0A\x03H\x01\x12P\x0A\x12execution_identity\x18\xAC\x02 \x01(\x0B2+.google.cloud.dataplex.v1.ExecutionIdentityB\x06\xE0A\x01\xE0A\x05\x1Am\x0A\x0DExecutionSpec\x127\x0A\x07trigger\x18\x01 \x01(\x0B2!.google.cloud.dataplex.v1.TriggerB\x03\xE0A\x01\x12\x14\x0A\x05field\x18d \x01(\x09B\x03\xE0A\x05H\x00B\x0D\x0A\x0Bincremental\x1A\xD0\x01\x0A\x0FExecutionStatus\x12>\x0A\x15latest_job_start_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x01\x12<\x0A\x13latest_job_end_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x01\x12?\x0A\x16latest_job_create_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x01\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:c\xEAA`\x0A dataplex.googleapis.com/DataScan\x12\xDAA\x06parent\x82\xD3\xE4\x93\x02/\x12-/v1/{parent=projects/*/locations/*}/dataScans\x12\xAF\x01\x0A\x0BRunDataScan\x12,.google.cloud.dataplex.v1.RunDataScanRequest\x1A-.google.cloud.dataplex.v1.RunDataScanResponse\"C\xDAA\x04name\x82\xD3\xE4\x93\x026\"1/v1/{name=projects/*/locations/*/dataScans/*}:run:\x01*\x12\xAD\x01\x0A\x0EGetDataScanJob\x12/.google.cloud.dataplex.v1.GetDataScanJobRequest\x1A%.google.cloud.dataplex.v1.DataScanJob\"C\xDAA\x04name\x82\xD3\xE4\x93\x026\x124/v1/{name=projects/*/locations/*/dataScans/*/jobs/*}\x12\xC0\x01\x0A\x10ListDataScanJobs\x121.google.cloud.dataplex.v1.ListDataScanJobsRequest\x1A2.google.cloud.dataplex.v1.ListDataScanJobsResponse\"E\xDAA\x06parent\x82\xD3\xE4\x93\x026\x124/v1/{parent=projects/*/locations/*/dataScans/*}/jobs\x12\xCB\x01\x0A\x11CancelDataScanJob\x122.google.cloud.dataplex.v1.CancelDataScanJobRequest\x1A3.google.cloud.dataplex.v1.CancelDataScanJobResponse\"M\xDAA\x04name\x82\xD3\xE4\x93\x02@\";/v1/{name=projects/*/locations/*/dataScans/*/jobs/*}:cancel:\x01*\x12\xC1\x02\x0A\x18GenerateDataQualityRules\x129.google.cloud.dataplex.v1.GenerateDataQualityRulesRequest\x1A:.google.cloud.dataplex.v1.GenerateDataQualityRulesResponse\"\xAD\x01\xDAA\x04name\x82\xD3\xE4\x93\x02\x9F\x01\"F/v1/{name=projects/*/locations/*/dataScans/*}:generateDataQualityRules:\x01*ZR\"M/v1/{name=projects/*/locations/*/dataScans/*/jobs/*}:generateDataQualityRules:\x01*\x1A\xEB\x01\xCAA\x17dataplex.googleapis.com\xD2A\xCD\x01https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.read-only,https://www.googleapis.com/auth/dataplex.read-write,https://www.googleapis.com/auth/dataplex.readonlyBj\x0A\x1Ccom.google.cloud.dataplex.v1B\x0EDataScansProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DatascansCommon.php b/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DatascansCommon.php deleted file mode 100644 index 5a231f2fab51..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/DatascansCommon.php +++ /dev/null @@ -1,25 +0,0 @@ -internalAddGeneratedFile( - "\x0A\x86\x03\x0A/google/cloud/dataplex/v1/datascans_common.proto\x12\x18google.cloud.dataplex.v1\"\xBE\x01\x0A\x1FDataScanCatalogPublishingStatus\x12S\x0A\x05state\x18\x01 \x01(\x0E2?.google.cloud.dataplex.v1.DataScanCatalogPublishingStatus.StateB\x03\xE0A\x03\"F\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09SUCCEEDED\x10\x01\x12\x0A\x0A\x06FAILED\x10\x02\x12\x0B\x0A\x07SKIPPED\x10\x03Bp\x0A\x1Ccom.google.cloud.dataplex.v1B\x14DataScansCommonProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Logs.php b/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Logs.php deleted file mode 100644 index a58a4208c282..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Logs.php +++ /dev/null @@ -1,29 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xBCA\x0A#google/cloud/dataplex/v1/logs.proto\x12\x18google.cloud.dataplex.v1\x1A\x19google/api/resource.proto\x1A/google/cloud/dataplex/v1/datascans_common.proto\x1A\x1Egoogle/protobuf/duration.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\x9D\x0C\x0A\x0EDiscoveryEvent\x12\x0F\x0A\x07message\x18\x01 \x01(\x09\x12\x0F\x0A\x07lake_id\x18\x02 \x01(\x09\x12\x0F\x0A\x07zone_id\x18\x03 \x01(\x09\x12\x10\x0A\x08asset_id\x18\x04 \x01(\x09\x12\x15\x0A\x0Ddata_location\x18\x05 \x01(\x09\x12\x13\x0A\x0Bdatascan_id\x18\x06 \x01(\x09\x12@\x0A\x04type\x18\x0A \x01(\x0E22.google.cloud.dataplex.v1.DiscoveryEvent.EventType\x12H\x0A\x06config\x18\x14 \x01(\x0B26.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetailsH\x00\x12H\x0A\x06entity\x18\x15 \x01(\x0B26.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetailsH\x00\x12N\x0A\x09partition\x18\x16 \x01(\x0B29.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetailsH\x00\x12H\x0A\x06action\x18\x17 \x01(\x0B26.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetailsH\x00\x12F\x0A\x05table\x18\x18 \x01(\x0B25.google.cloud.dataplex.v1.DiscoveryEvent.TableDetailsH\x00\x1A\x9E\x01\x0A\x0DConfigDetails\x12Z\x0A\x0Aparameters\x18\x01 \x03(\x0B2F.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails.ParametersEntry\x1A1\x0A\x0FParametersEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1Ab\x0A\x0DEntityDetails\x12\x0E\x0A\x06entity\x18\x01 \x01(\x09\x12A\x0A\x04type\x18\x02 \x01(\x0E23.google.cloud.dataplex.v1.DiscoveryEvent.EntityType\x1A_\x0A\x0CTableDetails\x12\x0D\x0A\x05table\x18\x01 \x01(\x09\x12@\x0A\x04type\x18\x02 \x01(\x0E22.google.cloud.dataplex.v1.DiscoveryEvent.TableType\x1A\x98\x01\x0A\x10PartitionDetails\x12\x11\x0A\x09partition\x18\x01 \x01(\x09\x12\x0E\x0A\x06entity\x18\x02 \x01(\x09\x12A\x0A\x04type\x18\x03 \x01(\x0E23.google.cloud.dataplex.v1.DiscoveryEvent.EntityType\x12\x1E\x0A\x16sampled_data_locations\x18\x04 \x03(\x09\x1A,\x0A\x0DActionDetails\x12\x0C\x0A\x04type\x18\x01 \x01(\x09\x12\x0D\x0A\x05issue\x18\x02 \x01(\x09\"\x82\x02\x0A\x09EventType\x12\x1A\x0A\x16EVENT_TYPE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06CONFIG\x10\x01\x12\x12\x0A\x0EENTITY_CREATED\x10\x02\x12\x12\x0A\x0EENTITY_UPDATED\x10\x03\x12\x12\x0A\x0EENTITY_DELETED\x10\x04\x12\x15\x0A\x11PARTITION_CREATED\x10\x05\x12\x15\x0A\x11PARTITION_UPDATED\x10\x06\x12\x15\x0A\x11PARTITION_DELETED\x10\x07\x12\x13\x0A\x0FTABLE_PUBLISHED\x10\x0A\x12\x11\x0A\x0DTABLE_UPDATED\x10\x0B\x12\x11\x0A\x0DTABLE_IGNORED\x10\x0C\x12\x11\x0A\x0DTABLE_DELETED\x10\x0D\"A\x0A\x0AEntityType\x12\x1B\x0A\x17ENTITY_TYPE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05TABLE\x10\x01\x12\x0B\x0A\x07FILESET\x10\x02\"`\x0A\x09TableType\x12\x1A\x0A\x16TABLE_TYPE_UNSPECIFIED\x10\x00\x12\x12\x0A\x0EEXTERNAL_TABLE\x10\x01\x12\x11\x0A\x0DBIGLAKE_TABLE\x10\x02\x12\x10\x0A\x0COBJECT_TABLE\x10\x03B\x09\x0A\x07details\"\xC5\x05\x0A\x08JobEvent\x12\x0F\x0A\x07message\x18\x01 \x01(\x09\x12\x0E\x0A\x06job_id\x18\x02 \x01(\x09\x12.\x0A\x0Astart_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12,\x0A\x08end_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.Timestamp\x127\x0A\x05state\x18\x05 \x01(\x0E2(.google.cloud.dataplex.v1.JobEvent.State\x12\x0F\x0A\x07retries\x18\x06 \x01(\x05\x125\x0A\x04type\x18\x07 \x01(\x0E2'.google.cloud.dataplex.v1.JobEvent.Type\x12;\x0A\x07service\x18\x08 \x01(\x0E2*.google.cloud.dataplex.v1.JobEvent.Service\x12\x13\x0A\x0Bservice_job\x18\x09 \x01(\x09\x12N\x0A\x11execution_trigger\x18\x0B \x01(\x0E23.google.cloud.dataplex.v1.JobEvent.ExecutionTrigger\"5\x0A\x04Type\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05SPARK\x10\x01\x12\x0C\x0A\x08NOTEBOOK\x10\x02\"U\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09SUCCEEDED\x10\x01\x12\x0A\x0A\x06FAILED\x10\x02\x12\x0D\x0A\x09CANCELLED\x10\x03\x12\x0B\x0A\x07ABORTED\x10\x04\"0\x0A\x07Service\x12\x17\x0A\x13SERVICE_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08DATAPROC\x10\x01\"W\x0A\x10ExecutionTrigger\x12!\x0A\x1DEXECUTION_TRIGGER_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BTASK_CONFIG\x10\x01\x12\x0F\x0A\x0BRUN_REQUEST\x10\x02\"\xBD\x05\x0A\x0CSessionEvent\x12\x0F\x0A\x07message\x18\x01 \x01(\x09\x12\x0F\x0A\x07user_id\x18\x02 \x01(\x09\x12\x12\x0A\x0Asession_id\x18\x03 \x01(\x09\x12>\x0A\x04type\x18\x04 \x01(\x0E20.google.cloud.dataplex.v1.SessionEvent.EventType\x12C\x0A\x05query\x18\x05 \x01(\x0B22.google.cloud.dataplex.v1.SessionEvent.QueryDetailH\x00\x12\x17\x0A\x0Fevent_succeeded\x18\x06 \x01(\x08\x12\x1C\x0A\x14fast_startup_enabled\x18\x07 \x01(\x08\x126\x0A\x13unassigned_duration\x18\x08 \x01(\x0B2\x19.google.protobuf.Duration\x1A\xA3\x02\x0A\x0BQueryDetail\x12\x10\x0A\x08query_id\x18\x01 \x01(\x09\x12\x12\x0A\x0Aquery_text\x18\x02 \x01(\x09\x12I\x0A\x06engine\x18\x03 \x01(\x0E29.google.cloud.dataplex.v1.SessionEvent.QueryDetail.Engine\x12+\x0A\x08duration\x18\x04 \x01(\x0B2\x19.google.protobuf.Duration\x12\x19\x0A\x11result_size_bytes\x18\x05 \x01(\x03\x12\x1C\x0A\x14data_processed_bytes\x18\x06 \x01(\x03\"=\x0A\x06Engine\x12\x16\x0A\x12ENGINE_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09SPARK_SQL\x10\x01\x12\x0C\x0A\x08BIGQUERY\x10\x02\"S\x0A\x09EventType\x12\x1A\x0A\x16EVENT_TYPE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05START\x10\x01\x12\x08\x0A\x04STOP\x10\x02\x12\x09\x0A\x05QUERY\x10\x03\x12\x0A\x0A\x06CREATE\x10\x04B\x08\x0A\x06detail\"\xBA\x07\x0A\x0FGovernanceEvent\x12\x0F\x0A\x07message\x18\x01 \x01(\x09\x12G\x0A\x0Aevent_type\x18\x02 \x01(\x0E23.google.cloud.dataplex.v1.GovernanceEvent.EventType\x12E\x0A\x06entity\x18\x03 \x01(\x0B20.google.cloud.dataplex.v1.GovernanceEvent.EntityH\x00\x88\x01\x01\x1A\xD2\x01\x0A\x06Entity\x123\x0A\x06entity\x18\x01 \x01(\x09B#\xFAA \x0A\x1Edataplex.googleapis.com/Entity\x12P\x0A\x0Bentity_type\x18\x02 \x01(\x0E2;.google.cloud.dataplex.v1.GovernanceEvent.Entity.EntityType\"A\x0A\x0AEntityType\x12\x1B\x0A\x17ENTITY_TYPE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05TABLE\x10\x01\x12\x0B\x0A\x07FILESET\x10\x02\"\xA5\x04\x0A\x09EventType\x12\x1A\x0A\x16EVENT_TYPE_UNSPECIFIED\x10\x00\x12\x1E\x0A\x1ARESOURCE_IAM_POLICY_UPDATE\x10\x01\x12\x19\x0A\x15BIGQUERY_TABLE_CREATE\x10\x02\x12\x19\x0A\x15BIGQUERY_TABLE_UPDATE\x10\x03\x12\x19\x0A\x15BIGQUERY_TABLE_DELETE\x10\x04\x12\x1E\x0A\x1ABIGQUERY_CONNECTION_CREATE\x10\x05\x12\x1E\x0A\x1ABIGQUERY_CONNECTION_UPDATE\x10\x06\x12\x1E\x0A\x1ABIGQUERY_CONNECTION_DELETE\x10\x07\x12\x1C\x0A\x18BIGQUERY_TAXONOMY_CREATE\x10\x0A\x12\x1E\x0A\x1ABIGQUERY_POLICY_TAG_CREATE\x10\x0B\x12\x1E\x0A\x1ABIGQUERY_POLICY_TAG_DELETE\x10\x0C\x12&\x0A\"BIGQUERY_POLICY_TAG_SET_IAM_POLICY\x10\x0D\x12\x18\x0A\x14ACCESS_POLICY_UPDATE\x10\x0E\x12%\x0A!GOVERNANCE_RULE_MATCHED_RESOURCES\x10\x0F\x12(\x0A\$GOVERNANCE_RULE_SEARCH_LIMIT_EXCEEDS\x10\x10\x12\x1A\x0A\x16GOVERNANCE_RULE_ERRORS\x10\x11\x12\x1E\x0A\x1AGOVERNANCE_RULE_PROCESSING\x10\x12B\x09\x0A\x07_entity\"\xF3\x13\x0A\x0DDataScanEvent\x12\x13\x0A\x0Bdata_source\x18\x01 \x01(\x09\x12\x0E\x0A\x06job_id\x18\x02 \x01(\x09\x12/\x0A\x0Bcreate_time\x18\x0C \x01(\x0B2\x1A.google.protobuf.Timestamp\x12.\x0A\x0Astart_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12,\x0A\x08end_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12>\x0A\x04type\x18\x05 \x01(\x0E20.google.cloud.dataplex.v1.DataScanEvent.ScanType\x12<\x0A\x05state\x18\x06 \x01(\x0E2-.google.cloud.dataplex.v1.DataScanEvent.State\x12\x0F\x0A\x07message\x18\x07 \x01(\x09\x12\x14\x0A\x0Cspec_version\x18\x08 \x01(\x09\x12@\x0A\x07trigger\x18\x09 \x01(\x0E2/.google.cloud.dataplex.v1.DataScanEvent.Trigger\x12<\x0A\x05scope\x18\x0A \x01(\x0E2-.google.cloud.dataplex.v1.DataScanEvent.Scope\x12Q\x0A\x0Cdata_profile\x18e \x01(\x0B29.google.cloud.dataplex.v1.DataScanEvent.DataProfileResultH\x00\x12Q\x0A\x0Cdata_quality\x18f \x01(\x0B29.google.cloud.dataplex.v1.DataScanEvent.DataQualityResultH\x00\x12b\x0A\x14data_profile_configs\x18\xC9\x01 \x01(\x0B2A.google.cloud.dataplex.v1.DataScanEvent.DataProfileAppliedConfigsH\x01\x12b\x0A\x14data_quality_configs\x18\xCA\x01 \x01(\x0B2A.google.cloud.dataplex.v1.DataScanEvent.DataQualityAppliedConfigsH\x01\x12_\x0A\x18post_scan_actions_result\x18\x0B \x01(\x0B2=.google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult\x12\\\x0A\x19catalog_publishing_status\x18\x0D \x01(\x0B29.google.cloud.dataplex.v1.DataScanCatalogPublishingStatus\x1A&\x0A\x11DataProfileResult\x12\x11\x0A\x09row_count\x18\x01 \x01(\x03\x1A\x9C\x04\x0A\x11DataQualityResult\x12\x11\x0A\x09row_count\x18\x01 \x01(\x03\x12\x0E\x0A\x06passed\x18\x02 \x01(\x08\x12h\x0A\x10dimension_passed\x18\x03 \x03(\x0B2N.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult.DimensionPassedEntry\x12\x0D\x0A\x05score\x18\x04 \x01(\x02\x12f\x0A\x0Fdimension_score\x18\x05 \x03(\x0B2M.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult.DimensionScoreEntry\x12`\x0A\x0Ccolumn_score\x18\x06 \x03(\x0B2J.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult.ColumnScoreEntry\x1A6\x0A\x14DimensionPassedEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x08:\x028\x01\x1A5\x0A\x13DimensionScoreEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x02:\x028\x01\x1A2\x0A\x10ColumnScoreEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x02:\x028\x01\x1Ap\x0A\x19DataProfileAppliedConfigs\x12\x18\x0A\x10sampling_percent\x18\x01 \x01(\x02\x12\x1A\x0A\x12row_filter_applied\x18\x02 \x01(\x08\x12\x1D\x0A\x15column_filter_applied\x18\x03 \x01(\x08\x1AQ\x0A\x19DataQualityAppliedConfigs\x12\x18\x0A\x10sampling_percent\x18\x01 \x01(\x02\x12\x1A\x0A\x12row_filter_applied\x18\x02 \x01(\x08\x1A\xE6\x02\x0A\x15PostScanActionsResult\x12r\x0A\x16bigquery_export_result\x18\x01 \x01(\x0B2R.google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult.BigQueryExportResult\x1A\xD8\x01\x0A\x14BigQueryExportResult\x12g\x0A\x05state\x18\x01 \x01(\x0E2X.google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult.BigQueryExportResult.State\x12\x0F\x0A\x07message\x18\x02 \x01(\x09\"F\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09SUCCEEDED\x10\x01\x12\x0A\x0A\x06FAILED\x10\x02\x12\x0B\x0A\x07SKIPPED\x10\x03\"]\x0A\x08ScanType\x12\x19\x0A\x15SCAN_TYPE_UNSPECIFIED\x10\x00\x12\x10\x0A\x0CDATA_PROFILE\x10\x01\x12\x10\x0A\x0CDATA_QUALITY\x10\x02\x12\x12\x0A\x0EDATA_DISCOVERY\x10\x04\"b\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07STARTED\x10\x01\x12\x0D\x0A\x09SUCCEEDED\x10\x02\x12\x0A\x0A\x06FAILED\x10\x03\x12\x0D\x0A\x09CANCELLED\x10\x04\x12\x0B\x0A\x07CREATED\x10\x05\"M\x0A\x07Trigger\x12\x17\x0A\x13TRIGGER_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09ON_DEMAND\x10\x01\x12\x0C\x0A\x08SCHEDULE\x10\x02\x12\x0C\x0A\x08ONE_TIME\x10\x03\"9\x0A\x05Scope\x12\x15\x0A\x11SCOPE_UNSPECIFIED\x10\x00\x12\x08\x0A\x04FULL\x10\x01\x12\x0F\x0A\x0BINCREMENTAL\x10\x02B\x08\x0A\x06resultB\x10\x0A\x0EappliedConfigs\"\xB1\x07\x0A\x19DataQualityScanRuleResult\x12\x0E\x0A\x06job_id\x18\x01 \x01(\x09\x12\x13\x0A\x0Bdata_source\x18\x02 \x01(\x09\x12\x0E\x0A\x06column\x18\x03 \x01(\x09\x12\x11\x0A\x09rule_name\x18\x04 \x01(\x09\x12O\x0A\x09rule_type\x18\x05 \x01(\x0E2<.google.cloud.dataplex.v1.DataQualityScanRuleResult.RuleType\x12Z\x0A\x0Eevalution_type\x18\x06 \x01(\x0E2B.google.cloud.dataplex.v1.DataQualityScanRuleResult.EvaluationType\x12\x16\x0A\x0Erule_dimension\x18\x07 \x01(\x09\x12\x19\x0A\x11threshold_percent\x18\x08 \x01(\x01\x12J\x0A\x06result\x18\x09 \x01(\x0E2:.google.cloud.dataplex.v1.DataQualityScanRuleResult.Result\x12\x1B\x0A\x13evaluated_row_count\x18\x0A \x01(\x03\x12\x18\x0A\x10passed_row_count\x18\x0B \x01(\x03\x12\x16\x0A\x0Enull_row_count\x18\x0C \x01(\x03\x12\x1B\x0A\x13assertion_row_count\x18\x0D \x01(\x03\"\xAA\x02\x0A\x08RuleType\x12\x19\x0A\x15RULE_TYPE_UNSPECIFIED\x10\x00\x12\x18\x0A\x14NON_NULL_EXPECTATION\x10\x01\x12\x15\x0A\x11RANGE_EXPECTATION\x10\x02\x12\x15\x0A\x11REGEX_EXPECTATION\x10\x03\x12\x1D\x0A\x19ROW_CONDITION_EXPECTATION\x10\x04\x12\x13\x0A\x0FSET_EXPECTATION\x10\x05\x12\x1F\x0A\x1BSTATISTIC_RANGE_EXPECTATION\x10\x06\x12\x1F\x0A\x1BTABLE_CONDITION_EXPECTATION\x10\x07\x12\x1A\x0A\x16UNIQUENESS_EXPECTATION\x10\x08\x12\x11\x0A\x0DSQL_ASSERTION\x10\x09\x12\x16\x0A\x12TEMPLATE_REFERENCE\x10\x0A\"M\x0A\x0EEvaluationType\x12\x1F\x0A\x1BEVALUATION_TYPE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07PER_ROW\x10\x01\x12\x0D\x0A\x09AGGREGATE\x10\x02\"8\x0A\x06Result\x12\x16\x0A\x12RESULT_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06PASSED\x10\x01\x12\x0A\x0A\x06FAILED\x10\x02\"\x9A\x03\x0A\x15BusinessGlossaryEvent\x12\x0F\x0A\x07message\x18\x01 \x01(\x09\x12M\x0A\x0Aevent_type\x18\x02 \x01(\x0E29.google.cloud.dataplex.v1.BusinessGlossaryEvent.EventType\x12\x10\x0A\x08resource\x18\x03 \x01(\x09\"\x8E\x02\x0A\x09EventType\x12\x1A\x0A\x16EVENT_TYPE_UNSPECIFIED\x10\x00\x12\x13\x0A\x0FGLOSSARY_CREATE\x10\x01\x12\x13\x0A\x0FGLOSSARY_UPDATE\x10\x02\x12\x13\x0A\x0FGLOSSARY_DELETE\x10\x03\x12\x1C\x0A\x18GLOSSARY_CATEGORY_CREATE\x10\x04\x12\x1C\x0A\x18GLOSSARY_CATEGORY_UPDATE\x10\x05\x12\x1C\x0A\x18GLOSSARY_CATEGORY_DELETE\x10\x06\x12\x18\x0A\x14GLOSSARY_TERM_CREATE\x10\x07\x12\x18\x0A\x14GLOSSARY_TERM_UPDATE\x10\x08\x12\x18\x0A\x14GLOSSARY_TERM_DELETE\x10\x09\"\xD2\x01\x0A\x0EEntryLinkEvent\x12\x0F\x0A\x07message\x18\x01 \x01(\x09\x12F\x0A\x0Aevent_type\x18\x02 \x01(\x0E22.google.cloud.dataplex.v1.EntryLinkEvent.EventType\x12\x10\x0A\x08resource\x18\x03 \x01(\x09\"U\x0A\x09EventType\x12\x1A\x0A\x16EVENT_TYPE_UNSPECIFIED\x10\x00\x12\x15\x0A\x11ENTRY_LINK_CREATE\x10\x01\x12\x15\x0A\x11ENTRY_LINK_DELETE\x10\x02Be\x0A\x1Ccom.google.cloud.dataplex.v1B\x09LogsProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Metadata.php b/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Metadata.php deleted file mode 100644 index d12ce793e0c0..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Metadata.php +++ /dev/null @@ -1,30 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xD89\x0A'google/cloud/dataplex/v1/metadata.proto\x12\x18google.cloud.dataplex.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\x9E\x01\x0A\x13CreateEntityRequest\x124\x0A\x06parent\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Zone\x125\x0A\x06entity\x18\x03 \x01(\x0B2 .google.cloud.dataplex.v1.EntityB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"h\x0A\x13UpdateEntityRequest\x125\x0A\x06entity\x18\x02 \x01(\x0B2 .google.cloud.dataplex.v1.EntityB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"^\x0A\x13DeleteEntityRequest\x124\x0A\x04name\x18\x01 \x01(\x09B&\xE0A\x02\xFAA \x0A\x1Edataplex.googleapis.com/Entity\x12\x11\x0A\x04etag\x18\x02 \x01(\x09B\x03\xE0A\x02\"\xA3\x02\x0A\x13ListEntitiesRequest\x124\x0A\x06parent\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Zone\x12K\x0A\x04view\x18\x02 \x01(\x0E28.google.cloud.dataplex.v1.ListEntitiesRequest.EntityViewB\x03\xE0A\x02\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\"C\x0A\x0AEntityView\x12\x1B\x0A\x17ENTITY_VIEW_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06TABLES\x10\x01\x12\x0C\x0A\x08FILESETS\x10\x02\"c\x0A\x14ListEntitiesResponse\x122\x0A\x08entities\x18\x01 \x03(\x0B2 .google.cloud.dataplex.v1.Entity\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\xDE\x01\x0A\x10GetEntityRequest\x124\x0A\x04name\x18\x01 \x01(\x09B&\xE0A\x02\xFAA \x0A\x1Edataplex.googleapis.com/Entity\x12H\x0A\x04view\x18\x02 \x01(\x0E25.google.cloud.dataplex.v1.GetEntityRequest.EntityViewB\x03\xE0A\x01\"J\x0A\x0AEntityView\x12\x1B\x0A\x17ENTITY_VIEW_UNSPECIFIED\x10\x00\x12\x09\x0A\x05BASIC\x10\x01\x12\x0A\x0A\x06SCHEMA\x10\x02\x12\x08\x0A\x04FULL\x10\x04\"\x95\x01\x0A\x15ListPartitionsRequest\x126\x0A\x06parent\x18\x01 \x01(\x09B&\xE0A\x02\xFAA \x0A\x1Edataplex.googleapis.com/Entity\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\"\xA9\x01\x0A\x16CreatePartitionRequest\x126\x0A\x06parent\x18\x01 \x01(\x09B&\xE0A\x02\xFAA \x0A\x1Edataplex.googleapis.com/Entity\x12;\x0A\x09partition\x18\x03 \x01(\x0B2#.google.cloud.dataplex.v1.PartitionB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"f\x0A\x16DeletePartitionRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataplex.googleapis.com/Partition\x12\x13\x0A\x04etag\x18\x02 \x01(\x09B\x05\x18\x01\xE0A\x01\"j\x0A\x16ListPartitionsResponse\x127\x0A\x0Apartitions\x18\x01 \x03(\x0B2#.google.cloud.dataplex.v1.Partition\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"N\x0A\x13GetPartitionRequest\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!dataplex.googleapis.com/Partition\"\xC9\x09\x0A\x06Entity\x124\x0A\x04name\x18\x01 \x01(\x09B&\xE0A\x03\xFAA \x0A\x1Edataplex.googleapis.com/Entity\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x03 \x01(\x09B\x03\xE0A\x01\x124\x0A\x0Bcreate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x0F\x0A\x02id\x18\x07 \x01(\x09B\x03\xE0A\x02\x12\x11\x0A\x04etag\x18\x08 \x01(\x09B\x03\xE0A\x01\x12;\x0A\x04type\x18\x0A \x01(\x0E2%.google.cloud.dataplex.v1.Entity.TypeB\x06\xE0A\x02\xE0A\x05\x12\x15\x0A\x05asset\x18\x0B \x01(\x09B\x06\xE0A\x02\xE0A\x05\x12\x19\x0A\x09data_path\x18\x0C \x01(\x09B\x06\xE0A\x02\xE0A\x05\x12\x1E\x0A\x11data_path_pattern\x18\x0D \x01(\x09B\x03\xE0A\x01\x12\x1A\x0A\x0Dcatalog_entry\x18\x0E \x01(\x09B\x03\xE0A\x03\x12?\x0A\x06system\x18\x0F \x01(\x0E2'.google.cloud.dataplex.v1.StorageSystemB\x06\xE0A\x02\xE0A\x05\x12<\x0A\x06format\x18\x10 \x01(\x0B2'.google.cloud.dataplex.v1.StorageFormatB\x03\xE0A\x02\x12P\x0A\x0Dcompatibility\x18\x13 \x01(\x0B24.google.cloud.dataplex.v1.Entity.CompatibilityStatusB\x03\xE0A\x03\x12<\x0A\x06access\x18\x15 \x01(\x0B2'.google.cloud.dataplex.v1.StorageAccessB\x03\xE0A\x03\x12\x10\x0A\x03uid\x18\x16 \x01(\x09B\x03\xE0A\x03\x125\x0A\x06schema\x182 \x01(\x0B2 .google.cloud.dataplex.v1.SchemaB\x03\xE0A\x02\x1A\x90\x02\x0A\x13CompatibilityStatus\x12_\x0A\x0Ehive_metastore\x18\x01 \x01(\x0B2B.google.cloud.dataplex.v1.Entity.CompatibilityStatus.CompatibilityB\x03\xE0A\x03\x12Y\x0A\x08bigquery\x18\x02 \x01(\x0B2B.google.cloud.dataplex.v1.Entity.CompatibilityStatus.CompatibilityB\x03\xE0A\x03\x1A=\x0A\x0DCompatibility\x12\x17\x0A\x0Acompatible\x18\x01 \x01(\x08B\x03\xE0A\x03\x12\x13\x0A\x06reason\x18\x02 \x01(\x09B\x03\xE0A\x03\"4\x0A\x04Type\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05TABLE\x10\x01\x12\x0B\x0A\x07FILESET\x10\x02:x\xEAAu\x0A\x1Edataplex.googleapis.com/Entity\x12Sprojects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/entities/{entity}\"\xA1\x02\x0A\x09Partition\x127\x0A\x04name\x18\x01 \x01(\x09B)\xE0A\x03\xFAA#\x0A!dataplex.googleapis.com/Partition\x12\x16\x0A\x06values\x18\x02 \x03(\x09B\x06\xE0A\x02\xE0A\x05\x12\x18\x0A\x08location\x18\x03 \x01(\x09B\x06\xE0A\x02\xE0A\x05\x12\x13\x0A\x04etag\x18\x04 \x01(\x09B\x05\x18\x01\xE0A\x01:\x93\x01\xEAA\x8F\x01\x0A!dataplex.googleapis.com/Partition\x12jprojects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/entities/{entity}/partitions/{partition}\"\xB7\x07\x0A\x06Schema\x12\x19\x0A\x0Cuser_managed\x18\x01 \x01(\x08B\x03\xE0A\x02\x12A\x0A\x06fields\x18\x02 \x03(\x0B2,.google.cloud.dataplex.v1.Schema.SchemaFieldB\x03\xE0A\x01\x12N\x0A\x10partition_fields\x18\x03 \x03(\x0B2/.google.cloud.dataplex.v1.Schema.PartitionFieldB\x03\xE0A\x01\x12M\x0A\x0Fpartition_style\x18\x04 \x01(\x0E2/.google.cloud.dataplex.v1.Schema.PartitionStyleB\x03\xE0A\x01\x1A\xF1\x01\x0A\x0BSchemaField\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12\x18\x0A\x0Bdescription\x18\x02 \x01(\x09B\x03\xE0A\x01\x128\x0A\x04type\x18\x03 \x01(\x0E2%.google.cloud.dataplex.v1.Schema.TypeB\x03\xE0A\x02\x128\x0A\x04mode\x18\x04 \x01(\x0E2%.google.cloud.dataplex.v1.Schema.ModeB\x03\xE0A\x02\x12A\x0A\x06fields\x18\x0A \x03(\x0B2,.google.cloud.dataplex.v1.Schema.SchemaFieldB\x03\xE0A\x01\x1A`\x0A\x0EPartitionField\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x02\x12;\x0A\x04type\x18\x02 \x01(\x0E2%.google.cloud.dataplex.v1.Schema.TypeB\x06\xE0A\x02\xE0A\x05\"\xC9\x01\x0A\x04Type\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07BOOLEAN\x10\x01\x12\x08\x0A\x04BYTE\x10\x02\x12\x09\x0A\x05INT16\x10\x03\x12\x09\x0A\x05INT32\x10\x04\x12\x09\x0A\x05INT64\x10\x05\x12\x09\x0A\x05FLOAT\x10\x06\x12\x0A\x0A\x06DOUBLE\x10\x07\x12\x0B\x0A\x07DECIMAL\x10\x08\x12\x0A\x0A\x06STRING\x10\x09\x12\x0A\x0A\x06BINARY\x10\x0A\x12\x0D\x0A\x09TIMESTAMP\x10\x0B\x12\x08\x0A\x04DATE\x10\x0C\x12\x08\x0A\x04TIME\x10\x0D\x12\x0A\x0A\x06RECORD\x10\x0E\x12\x08\x0A\x04NULL\x10d\"F\x0A\x04Mode\x12\x14\x0A\x10MODE_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08REQUIRED\x10\x01\x12\x0C\x0A\x08NULLABLE\x10\x02\x12\x0C\x0A\x08REPEATED\x10\x03\"F\x0A\x0EPartitionStyle\x12\x1F\x0A\x1BPARTITION_STYLE_UNSPECIFIED\x10\x00\x12\x13\x0A\x0FHIVE_COMPATIBLE\x10\x01\"\xF4\x06\x0A\x0DStorageFormat\x12C\x0A\x06format\x18\x01 \x01(\x0E2..google.cloud.dataplex.v1.StorageFormat.FormatB\x03\xE0A\x03\x12Z\x0A\x12compression_format\x18\x02 \x01(\x0E29.google.cloud.dataplex.v1.StorageFormat.CompressionFormatB\x03\xE0A\x01\x12\x16\x0A\x09mime_type\x18\x03 \x01(\x09B\x03\xE0A\x02\x12F\x0A\x03csv\x18\x0A \x01(\x0B22.google.cloud.dataplex.v1.StorageFormat.CsvOptionsB\x03\xE0A\x01H\x00\x12H\x0A\x04json\x18\x0B \x01(\x0B23.google.cloud.dataplex.v1.StorageFormat.JsonOptionsB\x03\xE0A\x01H\x00\x12N\x0A\x07iceberg\x18\x0C \x01(\x0B26.google.cloud.dataplex.v1.StorageFormat.IcebergOptionsB\x03\xE0A\x01H\x00\x1Ai\x0A\x0ACsvOptions\x12\x15\x0A\x08encoding\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x18\x0A\x0Bheader_rows\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x16\x0A\x09delimiter\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x12\x0A\x05quote\x18\x04 \x01(\x09B\x03\xE0A\x01\x1A\$\x0A\x0BJsonOptions\x12\x15\x0A\x08encoding\x18\x01 \x01(\x09B\x03\xE0A\x01\x1A0\x0A\x0EIcebergOptions\x12\x1E\x0A\x11metadata_location\x18\x01 \x01(\x09B\x03\xE0A\x01\"\xAB\x01\x0A\x06Format\x12\x16\x0A\x12FORMAT_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07PARQUET\x10\x01\x12\x08\x0A\x04AVRO\x10\x02\x12\x07\x0A\x03ORC\x10\x03\x12\x07\x0A\x03CSV\x10d\x12\x08\x0A\x04JSON\x10e\x12\x0A\x0A\x05IMAGE\x10\xC8\x01\x12\x0A\x0A\x05AUDIO\x10\xC9\x01\x12\x0A\x0A\x05VIDEO\x10\xCA\x01\x12\x09\x0A\x04TEXT\x10\xCB\x01\x12\x0D\x0A\x08TFRECORD\x10\xCC\x01\x12\x0A\x0A\x05OTHER\x10\xE8\x07\x12\x0C\x0A\x07UNKNOWN\x10\xE9\x07\"L\x0A\x11CompressionFormat\x12\"\x0A\x1ECOMPRESSION_FORMAT_UNSPECIFIED\x10\x00\x12\x08\x0A\x04GZIP\x10\x02\x12\x09\x0A\x05BZIP2\x10\x03B\x09\x0A\x07options\"\x9A\x01\x0A\x0DStorageAccess\x12E\x0A\x04read\x18\x15 \x01(\x0E22.google.cloud.dataplex.v1.StorageAccess.AccessModeB\x03\xE0A\x03\"B\x0A\x0AAccessMode\x12\x1B\x0A\x17ACCESS_MODE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06DIRECT\x10\x01\x12\x0B\x0A\x07MANAGED\x10\x02*P\x0A\x0DStorageSystem\x12\x1E\x0A\x1ASTORAGE_SYSTEM_UNSPECIFIED\x10\x00\x12\x11\x0A\x0DCLOUD_STORAGE\x10\x01\x12\x0C\x0A\x08BIGQUERY\x10\x022\xBD\x0E\x0A\x0FMetadataService\x12\xBD\x01\x0A\x0CCreateEntity\x12-.google.cloud.dataplex.v1.CreateEntityRequest\x1A .google.cloud.dataplex.v1.Entity\"\\\xDAA\x0Dparent,entity\x82\xD3\xE4\x93\x02F\"*\x12\x12internalAddGeneratedFile( - "\x0A\xEE\x06\x0A)google/cloud/dataplex/v1/processing.proto\x12\x18google.cloud.dataplex.v1\x1A\x19google/api/resource.proto\x1A\x1Egoogle/protobuf/duration.proto\"\xCA\x02\x0A\x07Trigger\x12?\x0A\x09on_demand\x18d \x01(\x0B2*.google.cloud.dataplex.v1.Trigger.OnDemandH\x00\x12>\x0A\x08schedule\x18e \x01(\x0B2*.google.cloud.dataplex.v1.Trigger.ScheduleH\x00\x12=\x0A\x08one_time\x18f \x01(\x0B2).google.cloud.dataplex.v1.Trigger.OneTimeH\x00\x1A\x0A\x0A\x08OnDemand\x1A\x1D\x0A\x08Schedule\x12\x11\x0A\x04cron\x18\x01 \x01(\x09B\x03\xE0A\x02\x1AL\x0A\x07OneTime\x12A\x0A\x19ttl_after_scan_completion\x18\x01 \x01(\x0B2\x19.google.protobuf.DurationB\x03\xE0A\x01B\x06\x0A\x04mode\"i\x0A\x0ADataSource\x128\x0A\x06entity\x18d \x01(\x09B&\xE0A\x05\xFAA \x0A\x1Edataplex.googleapis.com/EntityH\x00\x12\x17\x0A\x08resource\x18e \x01(\x09B\x03\xE0A\x05H\x00B\x08\x0A\x06source\"\xBE\x01\x0A\x0BScannedData\x12S\x0A\x11incremental_field\x18\x01 \x01(\x0B26.google.cloud.dataplex.v1.ScannedData.IncrementalFieldH\x00\x1AL\x0A\x10IncrementalField\x12\x12\x0A\x05field\x18\x01 \x01(\x09B\x03\xE0A\x03\x12\x12\x0A\x05start\x18\x02 \x01(\x09B\x03\xE0A\x03\x12\x10\x0A\x03end\x18\x03 \x01(\x09B\x03\xE0A\x03B\x0C\x0A\x0Adata_rangeBk\x0A\x1Ccom.google.cloud.dataplex.v1B\x0FProcessingProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Resources.php b/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Resources.php deleted file mode 100644 index 99e233b1007d..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Resources.php +++ /dev/null @@ -1,28 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xBA>\x0A(google/cloud/dataplex/v1/resources.proto\x12\x18google.cloud.dataplex.v1\x1A\x19google/api/resource.proto\x1A\x1Egoogle/protobuf/duration.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xFA\x07\x0A\x04Lake\x122\x0A\x04name\x18\x01 \x01(\x09B\$\xE0A\x03\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Lake\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x10\x0A\x03uid\x18\x03 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12?\x0A\x06labels\x18\x06 \x03(\x0B2*.google.cloud.dataplex.v1.Lake.LabelsEntryB\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x07 \x01(\x09B\x03\xE0A\x01\x123\x0A\x05state\x18\x08 \x01(\x0E2\x1F.google.cloud.dataplex.v1.StateB\x03\xE0A\x03\x12\x1C\x0A\x0Fservice_account\x18\x09 \x01(\x09B\x03\xE0A\x03\x12@\x0A\x09metastore\x18f \x01(\x0B2(.google.cloud.dataplex.v1.Lake.MetastoreB\x03\xE0A\x01\x12@\x0A\x0Casset_status\x18g \x01(\x0B2%.google.cloud.dataplex.v1.AssetStatusB\x03\xE0A\x03\x12M\x0A\x10metastore_status\x18h \x01(\x0B2..google.cloud.dataplex.v1.Lake.MetastoreStatusB\x03\xE0A\x03\x1A!\x0A\x09Metastore\x12\x14\x0A\x07service\x18\x01 \x01(\x09B\x03\xE0A\x01\x1A\xF8\x01\x0A\x0FMetastoreStatus\x12C\x0A\x05state\x18\x01 \x01(\x0E24.google.cloud.dataplex.v1.Lake.MetastoreStatus.State\x12\x0F\x0A\x07message\x18\x02 \x01(\x09\x12/\x0A\x0Bupdate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x10\x0A\x08endpoint\x18\x04 \x01(\x09\"L\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x08\x0A\x04NONE\x10\x01\x12\x09\x0A\x05READY\x10\x02\x12\x0C\x0A\x08UPDATING\x10\x03\x12\x09\x0A\x05ERROR\x10\x04\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:W\xEAAT\x0A\x1Cdataplex.googleapis.com/Lake\x124projects/{project}/locations/{location}/lakes/{lake}\"~\x0A\x0BAssetStatus\x12/\x0A\x0Bupdate_time\x18\x01 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\x15\x0A\x0Dactive_assets\x18\x02 \x01(\x05\x12'\x0A\x1Fsecurity_policy_applying_assets\x18\x03 \x01(\x05\"\xF4\x0B\x0A\x04Zone\x122\x0A\x04name\x18\x01 \x01(\x09B\$\xE0A\x03\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Zone\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x10\x0A\x03uid\x18\x03 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12?\x0A\x06labels\x18\x06 \x03(\x0B2*.google.cloud.dataplex.v1.Zone.LabelsEntryB\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x07 \x01(\x09B\x03\xE0A\x01\x123\x0A\x05state\x18\x08 \x01(\x0E2\x1F.google.cloud.dataplex.v1.StateB\x03\xE0A\x03\x129\x0A\x04type\x18\x09 \x01(\x0E2#.google.cloud.dataplex.v1.Zone.TypeB\x06\xE0A\x02\xE0A\x05\x12I\x0A\x0Ediscovery_spec\x18g \x01(\x0B2,.google.cloud.dataplex.v1.Zone.DiscoverySpecB\x03\xE0A\x01\x12G\x0A\x0Dresource_spec\x18h \x01(\x0B2+.google.cloud.dataplex.v1.Zone.ResourceSpecB\x03\xE0A\x02\x12@\x0A\x0Casset_status\x18i \x01(\x0B2%.google.cloud.dataplex.v1.AssetStatusB\x03\xE0A\x03\x1A\xBB\x01\x0A\x0CResourceSpec\x12W\x0A\x0Dlocation_type\x18\x01 \x01(\x0E28.google.cloud.dataplex.v1.Zone.ResourceSpec.LocationTypeB\x06\xE0A\x02\xE0A\x05\"R\x0A\x0CLocationType\x12\x1D\x0A\x19LOCATION_TYPE_UNSPECIFIED\x10\x00\x12\x11\x0A\x0DSINGLE_REGION\x10\x01\x12\x10\x0A\x0CMULTI_REGION\x10\x02\x1A\xF6\x03\x0A\x0DDiscoverySpec\x12\x14\x0A\x07enabled\x18\x01 \x01(\x08B\x03\xE0A\x02\x12\x1D\x0A\x10include_patterns\x18\x02 \x03(\x09B\x03\xE0A\x01\x12\x1D\x0A\x10exclude_patterns\x18\x03 \x03(\x09B\x03\xE0A\x01\x12Q\x0A\x0Bcsv_options\x18\x04 \x01(\x0B27.google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptionsB\x03\xE0A\x01\x12S\x0A\x0Cjson_options\x18\x05 \x01(\x0B28.google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptionsB\x03\xE0A\x01\x12\x17\x0A\x08schedule\x18\x0A \x01(\x09B\x03\xE0A\x01H\x00\x1Az\x0A\x0ACsvOptions\x12\x18\x0A\x0Bheader_rows\x18\x01 \x01(\x05B\x03\xE0A\x01\x12\x16\x0A\x09delimiter\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08encoding\x18\x03 \x01(\x09B\x03\xE0A\x01\x12#\x0A\x16disable_type_inference\x18\x04 \x01(\x08B\x03\xE0A\x01\x1AI\x0A\x0BJsonOptions\x12\x15\x0A\x08encoding\x18\x01 \x01(\x09B\x03\xE0A\x01\x12#\x0A\x16disable_type_inference\x18\x02 \x01(\x08B\x03\xE0A\x01B\x09\x0A\x07trigger\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"2\x0A\x04Type\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x07\x0A\x03RAW\x10\x01\x12\x0B\x0A\x07CURATED\x10\x02:d\xEAAa\x0A\x1Cdataplex.googleapis.com/Zone\x12Aprojects/{project}/locations/{location}/lakes/{lake}/zones/{zone}\"\xAB\x11\x0A\x06Action\x12;\x0A\x08category\x18\x01 \x01(\x0E2).google.cloud.dataplex.v1.Action.Category\x12\x0D\x0A\x05issue\x18\x02 \x01(\x09\x12/\x0A\x0Bdetect_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.Timestamp\x124\x0A\x04name\x18\x05 \x01(\x09B&\xE0A\x03\xFAA \x0A\x1Edataplex.googleapis.com/Action\x122\x0A\x04lake\x18\x06 \x01(\x09B\$\xE0A\x03\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Lake\x122\x0A\x04zone\x18\x07 \x01(\x09B\$\xE0A\x03\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Zone\x124\x0A\x05asset\x18\x08 \x01(\x09B%\xE0A\x03\xFAA\x1F\x0A\x1Ddataplex.googleapis.com/Asset\x12\x16\x0A\x0Edata_locations\x18\x09 \x03(\x09\x12Q\x0A\x13invalid_data_format\x18\x0A \x01(\x0B22.google.cloud.dataplex.v1.Action.InvalidDataFormatH\x00\x12[\x0A\x18incompatible_data_schema\x18\x0B \x01(\x0B27.google.cloud.dataplex.v1.Action.IncompatibleDataSchemaH\x00\x12W\x0A\x16invalid_data_partition\x18\x0C \x01(\x0B25.google.cloud.dataplex.v1.Action.InvalidDataPartitionH\x00\x12D\x0A\x0Cmissing_data\x18\x0D \x01(\x0B2,.google.cloud.dataplex.v1.Action.MissingDataH\x00\x12L\x0A\x10missing_resource\x18\x0E \x01(\x0B20.google.cloud.dataplex.v1.Action.MissingResourceH\x00\x12V\x0A\x15unauthorized_resource\x18\x0F \x01(\x0B25.google.cloud.dataplex.v1.Action.UnauthorizedResourceH\x00\x12b\x0A\x1Cfailed_security_policy_apply\x18\x15 \x01(\x0B2:.google.cloud.dataplex.v1.Action.FailedSecurityPolicyApplyH\x00\x12]\x0A\x19invalid_data_organization\x18\x16 \x01(\x0B28.google.cloud.dataplex.v1.Action.InvalidDataOrganizationH\x00\x1A\x11\x0A\x0FMissingResource\x1A\x16\x0A\x14UnauthorizedResource\x1A*\x0A\x19FailedSecurityPolicyApply\x12\x0D\x0A\x05asset\x18\x01 \x01(\x09\x1A`\x0A\x11InvalidDataFormat\x12\x1E\x0A\x16sampled_data_locations\x18\x01 \x03(\x09\x12\x17\x0A\x0Fexpected_format\x18\x02 \x01(\x09\x12\x12\x0A\x0Anew_format\x18\x03 \x01(\x09\x1A\xA0\x02\x0A\x16IncompatibleDataSchema\x12\x0D\x0A\x05table\x18\x01 \x01(\x09\x12\x17\x0A\x0Fexisting_schema\x18\x02 \x01(\x09\x12\x12\x0A\x0Anew_schema\x18\x03 \x01(\x09\x12\x1E\x0A\x16sampled_data_locations\x18\x04 \x03(\x09\x12[\x0A\x0Dschema_change\x18\x05 \x01(\x0E2D.google.cloud.dataplex.v1.Action.IncompatibleDataSchema.SchemaChange\"M\x0A\x0CSchemaChange\x12\x1D\x0A\x19SCHEMA_CHANGE_UNSPECIFIED\x10\x00\x12\x10\x0A\x0CINCOMPATIBLE\x10\x01\x12\x0C\x0A\x08MODIFIED\x10\x02\x1A\xE1\x01\x0A\x14InvalidDataPartition\x12d\x0A\x12expected_structure\x18\x01 \x01(\x0E2H.google.cloud.dataplex.v1.Action.InvalidDataPartition.PartitionStructure\"c\x0A\x12PartitionStructure\x12#\x0A\x1FPARTITION_STRUCTURE_UNSPECIFIED\x10\x00\x12\x13\x0A\x0FCONSISTENT_KEYS\x10\x01\x12\x13\x0A\x0FHIVE_STYLE_KEYS\x10\x02\x1A\x0D\x0A\x0BMissingData\x1A\x19\x0A\x17InvalidDataOrganization\"f\x0A\x08Category\x12\x18\x0A\x14CATEGORY_UNSPECIFIED\x10\x00\x12\x17\x0A\x13RESOURCE_MANAGEMENT\x10\x01\x12\x13\x0A\x0FSECURITY_POLICY\x10\x02\x12\x12\x0A\x0EDATA_DISCOVERY\x10\x03:\xA2\x02\xEAA\x9E\x02\x0A\x1Edataplex.googleapis.com/Action\x12Eprojects/{project}/locations/{location}/lakes/{lake}/actions/{action}\x12Rprojects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/actions/{action}\x12aprojects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/assets/{asset}/actions/{action}B\x09\x0A\x07details\"\xA4\x15\x0A\x05Asset\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x03\xFAA\x1F\x0A\x1Ddataplex.googleapis.com/Asset\x12\x19\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x10\x0A\x03uid\x18\x03 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12@\x0A\x06labels\x18\x06 \x03(\x0B2+.google.cloud.dataplex.v1.Asset.LabelsEntryB\x03\xE0A\x01\x12\x18\x0A\x0Bdescription\x18\x07 \x01(\x09B\x03\xE0A\x01\x123\x0A\x05state\x18\x08 \x01(\x0E2\x1F.google.cloud.dataplex.v1.StateB\x03\xE0A\x03\x12H\x0A\x0Dresource_spec\x18d \x01(\x0B2,.google.cloud.dataplex.v1.Asset.ResourceSpecB\x03\xE0A\x02\x12L\x0A\x0Fresource_status\x18e \x01(\x0B2..google.cloud.dataplex.v1.Asset.ResourceStatusB\x03\xE0A\x03\x12L\x0A\x0Fsecurity_status\x18g \x01(\x0B2..google.cloud.dataplex.v1.Asset.SecurityStatusB\x03\xE0A\x03\x12J\x0A\x0Ediscovery_spec\x18j \x01(\x0B2-.google.cloud.dataplex.v1.Asset.DiscoverySpecB\x03\xE0A\x01\x12N\x0A\x10discovery_status\x18k \x01(\x0B2/.google.cloud.dataplex.v1.Asset.DiscoveryStatusB\x03\xE0A\x03\x1A\xDB\x01\x0A\x0ESecurityStatus\x12C\x0A\x05state\x18\x01 \x01(\x0E24.google.cloud.dataplex.v1.Asset.SecurityStatus.State\x12\x0F\x0A\x07message\x18\x02 \x01(\x09\x12/\x0A\x0Bupdate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\"B\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05READY\x10\x01\x12\x0C\x0A\x08APPLYING\x10\x02\x12\x09\x0A\x05ERROR\x10\x03\x1A\xF8\x03\x0A\x0DDiscoverySpec\x12\x14\x0A\x07enabled\x18\x01 \x01(\x08B\x03\xE0A\x01\x12\x1D\x0A\x10include_patterns\x18\x02 \x03(\x09B\x03\xE0A\x01\x12\x1D\x0A\x10exclude_patterns\x18\x03 \x03(\x09B\x03\xE0A\x01\x12R\x0A\x0Bcsv_options\x18\x04 \x01(\x0B28.google.cloud.dataplex.v1.Asset.DiscoverySpec.CsvOptionsB\x03\xE0A\x01\x12T\x0A\x0Cjson_options\x18\x05 \x01(\x0B29.google.cloud.dataplex.v1.Asset.DiscoverySpec.JsonOptionsB\x03\xE0A\x01\x12\x17\x0A\x08schedule\x18\x0A \x01(\x09B\x03\xE0A\x01H\x00\x1Az\x0A\x0ACsvOptions\x12\x18\x0A\x0Bheader_rows\x18\x01 \x01(\x05B\x03\xE0A\x01\x12\x16\x0A\x09delimiter\x18\x02 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08encoding\x18\x03 \x01(\x09B\x03\xE0A\x01\x12#\x0A\x16disable_type_inference\x18\x04 \x01(\x08B\x03\xE0A\x01\x1AI\x0A\x0BJsonOptions\x12\x15\x0A\x08encoding\x18\x01 \x01(\x09B\x03\xE0A\x01\x12#\x0A\x16disable_type_inference\x18\x02 \x01(\x08B\x03\xE0A\x01B\x09\x0A\x07trigger\x1A\xCE\x02\x0A\x0CResourceSpec\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x05\x12G\x0A\x04type\x18\x02 \x01(\x0E21.google.cloud.dataplex.v1.Asset.ResourceSpec.TypeB\x06\xE0A\x02\xE0A\x05\x12V\x0A\x10read_access_mode\x18\x05 \x01(\x0E27.google.cloud.dataplex.v1.Asset.ResourceSpec.AccessModeB\x03\xE0A\x01\"F\x0A\x04Type\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x12\x0A\x0ESTORAGE_BUCKET\x10\x01\x12\x14\x0A\x10BIGQUERY_DATASET\x10\x02\"B\x0A\x0AAccessMode\x12\x1B\x0A\x17ACCESS_MODE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06DIRECT\x10\x01\x12\x0B\x0A\x07MANAGED\x10\x02\x1A\xF3\x01\x0A\x0EResourceStatus\x12C\x0A\x05state\x18\x01 \x01(\x0E24.google.cloud.dataplex.v1.Asset.ResourceStatus.State\x12\x0F\x0A\x07message\x18\x02 \x01(\x09\x12/\x0A\x0Bupdate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12\$\x0A\x17managed_access_identity\x18\x04 \x01(\x09B\x03\xE0A\x03\"4\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05READY\x10\x01\x12\x09\x0A\x05ERROR\x10\x02\x1A\xF4\x03\x0A\x0FDiscoveryStatus\x12D\x0A\x05state\x18\x01 \x01(\x0E25.google.cloud.dataplex.v1.Asset.DiscoveryStatus.State\x12\x0F\x0A\x07message\x18\x02 \x01(\x09\x12/\x0A\x0Bupdate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.Timestamp\x121\x0A\x0Dlast_run_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.Timestamp\x12D\x0A\x05stats\x18\x06 \x01(\x0B25.google.cloud.dataplex.v1.Asset.DiscoveryStatus.Stats\x124\x0A\x11last_run_duration\x18\x07 \x01(\x0B2\x19.google.protobuf.Duration\x1AP\x0A\x05Stats\x12\x12\x0A\x0Adata_items\x18\x01 \x01(\x03\x12\x11\x0A\x09data_size\x18\x02 \x01(\x03\x12\x0E\x0A\x06tables\x18\x03 \x01(\x03\x12\x10\x0A\x08filesets\x18\x04 \x01(\x03\"X\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09SCHEDULED\x10\x01\x12\x0F\x0A\x0BIN_PROGRESS\x10\x02\x12\x0A\x0A\x06PAUSED\x10\x03\x12\x0C\x0A\x08DISABLED\x10\x05\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:t\xEAAq\x0A\x1Ddataplex.googleapis.com/Asset\x12Pprojects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/assets/{asset}*[\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06ACTIVE\x10\x01\x12\x0C\x0A\x08CREATING\x10\x02\x12\x0C\x0A\x08DELETING\x10\x03\x12\x13\x0A\x0FACTION_REQUIRED\x10\x04Bj\x0A\x1Ccom.google.cloud.dataplex.v1B\x0EResourcesProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Security.php b/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Security.php deleted file mode 100644 index a766567c33e9..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Security.php +++ /dev/null @@ -1,25 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xB5\x02\x0A'google/cloud/dataplex/v1/security.proto\x12\x18google.cloud.dataplex.v1\"U\x0A\x12ResourceAccessSpec\x12\x14\x0A\x07readers\x18\x01 \x03(\x09B\x03\xE0A\x01\x12\x14\x0A\x07writers\x18\x02 \x03(\x09B\x03\xE0A\x01\x12\x13\x0A\x06owners\x18\x03 \x03(\x09B\x03\xE0A\x01\"&\x0A\x0EDataAccessSpec\x12\x14\x0A\x07readers\x18\x01 \x03(\x09B\x03\xE0A\x01Bi\x0A\x1Ccom.google.cloud.dataplex.v1B\x0DSecurityProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Service.php b/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Service.php deleted file mode 100644 index 46b36b4d7e8a..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Service.php +++ /dev/null @@ -1,34 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xA2P\x0A&google/cloud/dataplex/v1/service.proto\x12\x18google.cloud.dataplex.v1\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A(google/cloud/dataplex/v1/resources.proto\x1A\$google/cloud/dataplex/v1/tasks.proto\x1A#google/longrunning/operations.proto\x1A\x1Bgoogle/protobuf/empty.proto\x1A google/protobuf/field_mask.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xB3\x01\x0A\x11CreateLakeRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\x12\x14\x0A\x07lake_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x121\x0A\x04lake\x18\x03 \x01(\x0B2\x1E.google.cloud.dataplex.v1.LakeB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"\x98\x01\x0A\x11UpdateLakeRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x121\x0A\x04lake\x18\x02 \x01(\x0B2\x1E.google.cloud.dataplex.v1.LakeB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"G\x0A\x11DeleteLakeRequest\x122\x0A\x04name\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Lake\"\xAA\x01\x0A\x10ListLakesRequest\x129\x0A\x06parent\x18\x01 \x01(\x09B)\xE0A\x02\xFAA#\x0A!locations.googleapis.com/Location\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\"z\x0A\x11ListLakesResponse\x12-\x0A\x05lakes\x18\x01 \x03(\x0B2\x1E.google.cloud.dataplex.v1.Lake\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x1D\x0A\x15unreachable_locations\x18\x03 \x03(\x09\"\x7F\x0A\x16ListLakeActionsRequest\x124\x0A\x06parent\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Lake\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\"a\x0A\x13ListActionsResponse\x121\x0A\x07actions\x18\x01 \x03(\x0B2 .google.cloud.dataplex.v1.Action\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"D\x0A\x0EGetLakeRequest\x122\x0A\x04name\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Lake\"\xAE\x01\x0A\x11CreateZoneRequest\x124\x0A\x06parent\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Lake\x12\x14\x0A\x07zone_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x121\x0A\x04zone\x18\x03 \x01(\x0B2\x1E.google.cloud.dataplex.v1.ZoneB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"\x98\x01\x0A\x11UpdateZoneRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x121\x0A\x04zone\x18\x02 \x01(\x0B2\x1E.google.cloud.dataplex.v1.ZoneB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"G\x0A\x11DeleteZoneRequest\x122\x0A\x04name\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Zone\"\xA5\x01\x0A\x10ListZonesRequest\x124\x0A\x06parent\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Lake\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\"[\x0A\x11ListZonesResponse\x12-\x0A\x05zones\x18\x01 \x03(\x0B2\x1E.google.cloud.dataplex.v1.Zone\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x7F\x0A\x16ListZoneActionsRequest\x124\x0A\x06parent\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Zone\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\"D\x0A\x0EGetZoneRequest\x122\x0A\x04name\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Zone\"\xB2\x01\x0A\x12CreateAssetRequest\x124\x0A\x06parent\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Zone\x12\x15\x0A\x08asset_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x123\x0A\x05asset\x18\x03 \x01(\x0B2\x1F.google.cloud.dataplex.v1.AssetB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"\x9B\x01\x0A\x12UpdateAssetRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x123\x0A\x05asset\x18\x02 \x01(\x0B2\x1F.google.cloud.dataplex.v1.AssetB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"I\x0A\x12DeleteAssetRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddataplex.googleapis.com/Asset\"\xA6\x01\x0A\x11ListAssetsRequest\x124\x0A\x06parent\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Zone\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\"^\x0A\x12ListAssetsResponse\x12/\x0A\x06assets\x18\x01 \x03(\x0B2\x1F.google.cloud.dataplex.v1.Asset\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"\x81\x01\x0A\x17ListAssetActionsRequest\x125\x0A\x06parent\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddataplex.googleapis.com/Asset\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\"F\x0A\x0FGetAssetRequest\x123\x0A\x04name\x18\x01 \x01(\x09B%\xE0A\x02\xFAA\x1F\x0A\x1Ddataplex.googleapis.com/Asset\"\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\"\xAE\x01\x0A\x11CreateTaskRequest\x124\x0A\x06parent\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Lake\x12\x14\x0A\x07task_id\x18\x02 \x01(\x09B\x03\xE0A\x02\x121\x0A\x04task\x18\x03 \x01(\x0B2\x1E.google.cloud.dataplex.v1.TaskB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x04 \x01(\x08B\x03\xE0A\x01\"\x98\x01\x0A\x11UpdateTaskRequest\x124\x0A\x0Bupdate_mask\x18\x01 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x02\x121\x0A\x04task\x18\x02 \x01(\x0B2\x1E.google.cloud.dataplex.v1.TaskB\x03\xE0A\x02\x12\x1A\x0A\x0Dvalidate_only\x18\x03 \x01(\x08B\x03\xE0A\x01\"G\x0A\x11DeleteTaskRequest\x122\x0A\x04name\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Task\"\xA5\x01\x0A\x10ListTasksRequest\x124\x0A\x06parent\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Lake\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\"z\x0A\x11ListTasksResponse\x12-\x0A\x05tasks\x18\x01 \x03(\x0B2\x1E.google.cloud.dataplex.v1.Task\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x1D\x0A\x15unreachable_locations\x18\x03 \x03(\x09\"D\x0A\x0EGetTaskRequest\x122\x0A\x04name\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Task\"B\x0A\x0DGetJobRequest\x121\x0A\x04name\x18\x01 \x01(\x09B#\xE0A\x02\xFAA\x1D\x0A\x1Bdataplex.googleapis.com/Job\"\xB2\x02\x0A\x0ERunTaskRequest\x122\x0A\x04name\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Task\x12I\x0A\x06labels\x18\x03 \x03(\x0B24.google.cloud.dataplex.v1.RunTaskRequest.LabelsEntryB\x03\xE0A\x01\x12E\x0A\x04args\x18\x04 \x03(\x0B22.google.cloud.dataplex.v1.RunTaskRequest.ArgsEntryB\x03\xE0A\x01\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1A+\x0A\x09ArgsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"=\x0A\x0FRunTaskResponse\x12*\x0A\x03job\x18\x01 \x01(\x0B2\x1D.google.cloud.dataplex.v1.Job\"x\x0A\x0FListJobsRequest\x124\x0A\x06parent\x18\x01 \x01(\x09B\$\xE0A\x02\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Task\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\"X\x0A\x10ListJobsResponse\x12+\x0A\x04jobs\x18\x01 \x03(\x0B2\x1D.google.cloud.dataplex.v1.Job\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\"E\x0A\x10CancelJobRequest\x121\x0A\x04name\x18\x01 \x01(\x09B#\xE0A\x02\xFAA\x1D\x0A\x1Bdataplex.googleapis.com/Job2\xAB)\x0A\x0FDataplexService\x12\xC3\x01\x0A\x0ACreateLake\x12+.google.cloud.dataplex.v1.CreateLakeRequest\x1A\x1D.google.longrunning.Operation\"i\xCAA\x19\x0A\x04Lake\x12\x11OperationMetadata\xDAA\x13parent,lake,lake_id\x82\xD3\xE4\x93\x021\")/v1/{parent=projects/*/locations/*}/lakes:\x04lake\x12\xC5\x01\x0A\x0AUpdateLake\x12+.google.cloud.dataplex.v1.UpdateLakeRequest\x1A\x1D.google.longrunning.Operation\"k\xCAA\x19\x0A\x04Lake\x12\x11OperationMetadata\xDAA\x10lake,update_mask\x82\xD3\xE4\x93\x0262./v1/{lake.name=projects/*/locations/*/lakes/*}:\x04lake\x12\xBF\x01\x0A\x0ADeleteLake\x12+.google.cloud.dataplex.v1.DeleteLakeRequest\x1A\x1D.google.longrunning.Operation\"e\xCAA*\x0A\x15google.protobuf.Empty\x12\x11OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x02+*)/v1/{name=projects/*/locations/*/lakes/*}\x12\xA0\x01\x0A\x09ListLakes\x12*.google.cloud.dataplex.v1.ListLakesRequest\x1A+.google.cloud.dataplex.v1.ListLakesResponse\":\xDAA\x06parent\x82\xD3\xE4\x93\x02+\x12)/v1/{parent=projects/*/locations/*}/lakes\x12\x8D\x01\x0A\x07GetLake\x12(.google.cloud.dataplex.v1.GetLakeRequest\x1A\x1E.google.cloud.dataplex.v1.Lake\"8\xDAA\x04name\x82\xD3\xE4\x93\x02+\x12)/v1/{name=projects/*/locations/*/lakes/*}\x12\xB8\x01\x0A\x0FListLakeActions\x120.google.cloud.dataplex.v1.ListLakeActionsRequest\x1A-.google.cloud.dataplex.v1.ListActionsResponse\"D\xDAA\x06parent\x82\xD3\xE4\x93\x025\x123/v1/{parent=projects/*/locations/*/lakes/*}/actions\x12\xCB\x01\x0A\x0ACreateZone\x12+.google.cloud.dataplex.v1.CreateZoneRequest\x1A\x1D.google.longrunning.Operation\"q\xCAA\x19\x0A\x04Zone\x12\x11OperationMetadata\xDAA\x13parent,zone,zone_id\x82\xD3\xE4\x93\x029\"1/v1/{parent=projects/*/locations/*/lakes/*}/zones:\x04zone\x12\xCD\x01\x0A\x0AUpdateZone\x12+.google.cloud.dataplex.v1.UpdateZoneRequest\x1A\x1D.google.longrunning.Operation\"s\xCAA\x19\x0A\x04Zone\x12\x11OperationMetadata\xDAA\x10zone,update_mask\x82\xD3\xE4\x93\x02>26/v1/{zone.name=projects/*/locations/*/lakes/*/zones/*}:\x04zone\x12\xC7\x01\x0A\x0ADeleteZone\x12+.google.cloud.dataplex.v1.DeleteZoneRequest\x1A\x1D.google.longrunning.Operation\"m\xCAA*\x0A\x15google.protobuf.Empty\x12\x11OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x023*1/v1/{name=projects/*/locations/*/lakes/*/zones/*}\x12\xA8\x01\x0A\x09ListZones\x12*.google.cloud.dataplex.v1.ListZonesRequest\x1A+.google.cloud.dataplex.v1.ListZonesResponse\"B\xDAA\x06parent\x82\xD3\xE4\x93\x023\x121/v1/{parent=projects/*/locations/*/lakes/*}/zones\x12\x95\x01\x0A\x07GetZone\x12(.google.cloud.dataplex.v1.GetZoneRequest\x1A\x1E.google.cloud.dataplex.v1.Zone\"@\xDAA\x04name\x82\xD3\xE4\x93\x023\x121/v1/{name=projects/*/locations/*/lakes/*/zones/*}\x12\xC0\x01\x0A\x0FListZoneActions\x120.google.cloud.dataplex.v1.ListZoneActionsRequest\x1A-.google.cloud.dataplex.v1.ListActionsResponse\"L\xDAA\x06parent\x82\xD3\xE4\x93\x02=\x12;/v1/{parent=projects/*/locations/*/lakes/*/zones/*}/actions\x12\xDA\x01\x0A\x0BCreateAsset\x12,.google.cloud.dataplex.v1.CreateAssetRequest\x1A\x1D.google.longrunning.Operation\"~\xCAA\x1A\x0A\x05Asset\x12\x11OperationMetadata\xDAA\x15parent,asset,asset_id\x82\xD3\xE4\x93\x02C\":/v1/{parent=projects/*/locations/*/lakes/*/zones/*}/assets:\x05asset\x12\xDD\x01\x0A\x0BUpdateAsset\x12,.google.cloud.dataplex.v1.UpdateAssetRequest\x1A\x1D.google.longrunning.Operation\"\x80\x01\xCAA\x1A\x0A\x05Asset\x12\x11OperationMetadata\xDAA\x11asset,update_mask\x82\xD3\xE4\x93\x02I2@/v1/{asset.name=projects/*/locations/*/lakes/*/zones/*/assets/*}:\x05asset\x12\xD2\x01\x0A\x0BDeleteAsset\x12,.google.cloud.dataplex.v1.DeleteAssetRequest\x1A\x1D.google.longrunning.Operation\"v\xCAA*\x0A\x15google.protobuf.Empty\x12\x11OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x02<*:/v1/{name=projects/*/locations/*/lakes/*/zones/*/assets/*}\x12\xB4\x01\x0A\x0AListAssets\x12+.google.cloud.dataplex.v1.ListAssetsRequest\x1A,.google.cloud.dataplex.v1.ListAssetsResponse\"K\xDAA\x06parent\x82\xD3\xE4\x93\x02<\x12:/v1/{parent=projects/*/locations/*/lakes/*/zones/*}/assets\x12\xA1\x01\x0A\x08GetAsset\x12).google.cloud.dataplex.v1.GetAssetRequest\x1A\x1F.google.cloud.dataplex.v1.Asset\"I\xDAA\x04name\x82\xD3\xE4\x93\x02<\x12:/v1/{name=projects/*/locations/*/lakes/*/zones/*/assets/*}\x12\xCB\x01\x0A\x10ListAssetActions\x121.google.cloud.dataplex.v1.ListAssetActionsRequest\x1A-.google.cloud.dataplex.v1.ListActionsResponse\"U\xDAA\x06parent\x82\xD3\xE4\x93\x02F\x12D/v1/{parent=projects/*/locations/*/lakes/*/zones/*/assets/*}/actions\x12\xCB\x01\x0A\x0ACreateTask\x12+.google.cloud.dataplex.v1.CreateTaskRequest\x1A\x1D.google.longrunning.Operation\"q\xCAA\x19\x0A\x04Task\x12\x11OperationMetadata\xDAA\x13parent,task,task_id\x82\xD3\xE4\x93\x029\"1/v1/{parent=projects/*/locations/*/lakes/*}/tasks:\x04task\x12\xCD\x01\x0A\x0AUpdateTask\x12+.google.cloud.dataplex.v1.UpdateTaskRequest\x1A\x1D.google.longrunning.Operation\"s\xCAA\x19\x0A\x04Task\x12\x11OperationMetadata\xDAA\x10task,update_mask\x82\xD3\xE4\x93\x02>26/v1/{task.name=projects/*/locations/*/lakes/*/tasks/*}:\x04task\x12\xC7\x01\x0A\x0ADeleteTask\x12+.google.cloud.dataplex.v1.DeleteTaskRequest\x1A\x1D.google.longrunning.Operation\"m\xCAA*\x0A\x15google.protobuf.Empty\x12\x11OperationMetadata\xDAA\x04name\x82\xD3\xE4\x93\x023*1/v1/{name=projects/*/locations/*/lakes/*/tasks/*}\x12\xA8\x01\x0A\x09ListTasks\x12*.google.cloud.dataplex.v1.ListTasksRequest\x1A+.google.cloud.dataplex.v1.ListTasksResponse\"B\xDAA\x06parent\x82\xD3\xE4\x93\x023\x121/v1/{parent=projects/*/locations/*/lakes/*}/tasks\x12\x95\x01\x0A\x07GetTask\x12(.google.cloud.dataplex.v1.GetTaskRequest\x1A\x1E.google.cloud.dataplex.v1.Task\"@\xDAA\x04name\x82\xD3\xE4\x93\x023\x121/v1/{name=projects/*/locations/*/lakes/*/tasks/*}\x12\xAC\x01\x0A\x08ListJobs\x12).google.cloud.dataplex.v1.ListJobsRequest\x1A*.google.cloud.dataplex.v1.ListJobsResponse\"I\xDAA\x06parent\x82\xD3\xE4\x93\x02:\x128/v1/{parent=projects/*/locations/*/lakes/*/tasks/*}/jobs\x12\xA7\x01\x0A\x07RunTask\x12(.google.cloud.dataplex.v1.RunTaskRequest\x1A).google.cloud.dataplex.v1.RunTaskResponse\"G\xDAA\x04name\x82\xD3\xE4\x93\x02:\"5/v1/{name=projects/*/locations/*/lakes/*/tasks/*}:run:\x01*\x12\x99\x01\x0A\x06GetJob\x12'.google.cloud.dataplex.v1.GetJobRequest\x1A\x1D.google.cloud.dataplex.v1.Job\"G\xDAA\x04name\x82\xD3\xE4\x93\x02:\x128/v1/{name=projects/*/locations/*/lakes/*/tasks/*/jobs/*}\x12\xA2\x01\x0A\x09CancelJob\x12*.google.cloud.dataplex.v1.CancelJobRequest\x1A\x16.google.protobuf.Empty\"Q\xDAA\x04name\x82\xD3\xE4\x93\x02D\"?/v1/{name=projects/*/locations/*/lakes/*/tasks/*/jobs/*}:cancel:\x01*\x1A\xEB\x01\xCAA\x17dataplex.googleapis.com\xD2A\xCD\x01https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.read-only,https://www.googleapis.com/auth/dataplex.read-write,https://www.googleapis.com/auth/dataplex.readonlyBh\x0A\x1Ccom.google.cloud.dataplex.v1B\x0CServiceProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Tasks.php b/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Tasks.php deleted file mode 100644 index 9de483ad00b3..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/GPBMetadata/Google/Cloud/Dataplex/V1/Tasks.php +++ /dev/null @@ -1,29 +0,0 @@ -internalAddGeneratedFile( - "\x0A\xA0 \x0A\$google/cloud/dataplex/v1/tasks.proto\x12\x18google.cloud.dataplex.v1\x1A\x19google/api/resource.proto\x1A(google/cloud/dataplex/v1/resources.proto\x1A\x1Egoogle/protobuf/duration.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\x9F\x16\x0A\x04Task\x122\x0A\x04name\x18\x01 \x01(\x09B\$\xE0A\x03\xFAA\x1E\x0A\x1Cdataplex.googleapis.com/Task\x12\x10\x0A\x03uid\x18\x02 \x01(\x09B\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x18\x0A\x0Bdescription\x18\x05 \x01(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Cdisplay_name\x18\x06 \x01(\x09B\x03\xE0A\x01\x123\x0A\x05state\x18\x07 \x01(\x0E2\x1F.google.cloud.dataplex.v1.StateB\x03\xE0A\x03\x12?\x0A\x06labels\x18\x08 \x03(\x0B2*.google.cloud.dataplex.v1.Task.LabelsEntryB\x03\xE0A\x01\x12E\x0A\x0Ctrigger_spec\x18d \x01(\x0B2*.google.cloud.dataplex.v1.Task.TriggerSpecB\x03\xE0A\x02\x12I\x0A\x0Eexecution_spec\x18e \x01(\x0B2,.google.cloud.dataplex.v1.Task.ExecutionSpecB\x03\xE0A\x02\x12N\x0A\x10execution_status\x18\xC9\x01 \x01(\x0B2..google.cloud.dataplex.v1.Task.ExecutionStatusB\x03\xE0A\x03\x12@\x0A\x05spark\x18\xAC\x02 \x01(\x0B2..google.cloud.dataplex.v1.Task.SparkTaskConfigH\x00\x12F\x0A\x08notebook\x18\xAE\x02 \x01(\x0B21.google.cloud.dataplex.v1.Task.NotebookTaskConfigH\x00\x1A\x9A\x06\x0A\x12InfrastructureSpec\x12X\x0A\x05batch\x184 \x01(\x0B2G.google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResourcesH\x00\x12b\x0A\x0Fcontainer_image\x18e \x01(\x0B2G.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntimeH\x01\x12T\x0A\x0Bvpc_network\x18\x96\x01 \x01(\x0B2<.google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetworkH\x02\x1AW\x0A\x15BatchComputeResources\x12\x1C\x0A\x0Fexecutors_count\x18\x01 \x01(\x05B\x03\xE0A\x01\x12 \x0A\x13max_executors_count\x18\x02 \x01(\x05B\x03\xE0A\x01\x1A\x86\x02\x0A\x15ContainerImageRuntime\x12\x12\x0A\x05image\x18\x01 \x01(\x09B\x03\xE0A\x01\x12\x16\x0A\x09java_jars\x18\x02 \x03(\x09B\x03\xE0A\x01\x12\x1C\x0A\x0Fpython_packages\x18\x03 \x03(\x09B\x03\xE0A\x01\x12p\x0A\x0Aproperties\x18\x04 \x03(\x0B2W.google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime.PropertiesEntryB\x03\xE0A\x01\x1A1\x0A\x0FPropertiesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1Ak\x0A\x0AVpcNetwork\x12\x16\x0A\x07network\x18\x01 \x01(\x09B\x03\xE0A\x01H\x00\x12\x1A\x0A\x0Bsub_network\x18\x02 \x01(\x09B\x03\xE0A\x01H\x00\x12\x19\x0A\x0Cnetwork_tags\x18\x03 \x03(\x09B\x03\xE0A\x01B\x0E\x0A\x0Cnetwork_nameB\x0B\x0A\x09resourcesB\x09\x0A\x07runtimeB\x09\x0A\x07network\x1A\x9A\x02\x0A\x0BTriggerSpec\x12E\x0A\x04type\x18\x05 \x01(\x0E2/.google.cloud.dataplex.v1.Task.TriggerSpec.TypeB\x06\xE0A\x02\xE0A\x05\x123\x0A\x0Astart_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x01\x12\x15\x0A\x08disabled\x18\x04 \x01(\x08B\x03\xE0A\x01\x12\x18\x0A\x0Bmax_retries\x18\x07 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x08schedule\x18d \x01(\x09B\x03\xE0A\x01H\x00\":\x0A\x04Type\x12\x14\x0A\x10TYPE_UNSPECIFIED\x10\x00\x12\x0D\x0A\x09ON_DEMAND\x10\x01\x12\x0D\x0A\x09RECURRING\x10\x02B\x09\x0A\x07trigger\x1A\x95\x02\x0A\x0DExecutionSpec\x12I\x0A\x04args\x18\x04 \x03(\x0B26.google.cloud.dataplex.v1.Task.ExecutionSpec.ArgsEntryB\x03\xE0A\x01\x12\x1C\x0A\x0Fservice_account\x18\x05 \x01(\x09B\x03\xE0A\x02\x12\x14\x0A\x07project\x18\x07 \x01(\x09B\x03\xE0A\x01\x12B\x0A\x1Amax_job_execution_lifetime\x18\x08 \x01(\x0B2\x19.google.protobuf.DurationB\x03\xE0A\x01\x12\x14\x0A\x07kms_key\x18\x09 \x01(\x09B\x03\xE0A\x01\x1A+\x0A\x09ArgsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1A\xA5\x02\x0A\x0FSparkTaskConfig\x12\x1B\x0A\x11main_jar_file_uri\x18d \x01(\x09H\x00\x12\x14\x0A\x0Amain_class\x18e \x01(\x09H\x00\x12\x1C\x0A\x12python_script_file\x18f \x01(\x09H\x00\x12\x19\x0A\x0Fsql_script_file\x18h \x01(\x09H\x00\x12\x14\x0A\x0Asql_script\x18i \x01(\x09H\x00\x12\x16\x0A\x09file_uris\x18\x03 \x03(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Carchive_uris\x18\x04 \x03(\x09B\x03\xE0A\x01\x12S\x0A\x13infrastructure_spec\x18\x06 \x01(\x0B21.google.cloud.dataplex.v1.Task.InfrastructureSpecB\x03\xE0A\x01B\x08\x0A\x06driver\x1A\xB3\x01\x0A\x12NotebookTaskConfig\x12\x15\x0A\x08notebook\x18\x04 \x01(\x09B\x03\xE0A\x02\x12S\x0A\x13infrastructure_spec\x18\x03 \x01(\x0B21.google.cloud.dataplex.v1.Task.InfrastructureSpecB\x03\xE0A\x01\x12\x16\x0A\x09file_uris\x18\x05 \x03(\x09B\x03\xE0A\x01\x12\x19\x0A\x0Carchive_uris\x18\x06 \x03(\x09B\x03\xE0A\x01\x1A\x7F\x0A\x0FExecutionStatus\x124\x0A\x0Bupdate_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x126\x0A\x0Alatest_job\x18\x09 \x01(\x0B2\x1D.google.cloud.dataplex.v1.JobB\x03\xE0A\x03\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01:d\xEAAa\x0A\x1Cdataplex.googleapis.com/Task\x12Aprojects/{project}/locations/{location}/lakes/{lake}/tasks/{task}B\x08\x0A\x06config\"\xC5\x07\x0A\x03Job\x121\x0A\x04name\x18\x01 \x01(\x09B#\xE0A\x03\xFAA\x1D\x0A\x1Bdataplex.googleapis.com/Job\x12\x10\x0A\x03uid\x18\x02 \x01(\x09B\x03\xE0A\x03\x123\x0A\x0Astart_time\x18\x03 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x121\x0A\x08end_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x127\x0A\x05state\x18\x05 \x01(\x0E2#.google.cloud.dataplex.v1.Job.StateB\x03\xE0A\x03\x12\x18\x0A\x0Bretry_count\x18\x06 \x01(\x0DB\x03\xE0A\x03\x12;\x0A\x07service\x18\x07 \x01(\x0E2%.google.cloud.dataplex.v1.Job.ServiceB\x03\xE0A\x03\x12\x18\x0A\x0Bservice_job\x18\x08 \x01(\x09B\x03\xE0A\x03\x12\x14\x0A\x07message\x18\x09 \x01(\x09B\x03\xE0A\x03\x12>\x0A\x06labels\x18\x0A \x03(\x0B2).google.cloud.dataplex.v1.Job.LabelsEntryB\x03\xE0A\x03\x12;\x0A\x07trigger\x18\x0B \x01(\x0E2%.google.cloud.dataplex.v1.Job.TriggerB\x03\xE0A\x03\x12I\x0A\x0Eexecution_spec\x18d \x01(\x0B2,.google.cloud.dataplex.v1.Task.ExecutionSpecB\x03\xE0A\x03\x1A-\x0A\x0BLabelsEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"0\x0A\x07Service\x12\x17\x0A\x13SERVICE_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08DATAPROC\x10\x01\"r\x0A\x05State\x12\x15\x0A\x11STATE_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07RUNNING\x10\x01\x12\x0E\x0A\x0ACANCELLING\x10\x02\x12\x0D\x0A\x09CANCELLED\x10\x03\x12\x0D\x0A\x09SUCCEEDED\x10\x04\x12\x0A\x0A\x06FAILED\x10\x05\x12\x0B\x0A\x07ABORTED\x10\x06\"D\x0A\x07Trigger\x12\x17\x0A\x13TRIGGER_UNSPECIFIED\x10\x00\x12\x0F\x0A\x0BTASK_CONFIG\x10\x01\x12\x0F\x0A\x0BRUN_REQUEST\x10\x02:n\xEAAk\x0A\x1Bdataplex.googleapis.com/Job\x12Lprojects/{project}/locations/{location}/lakes/{lake}/tasks/{task}/jobs/{job}Bf\x0A\x1Ccom.google.cloud.dataplex.v1B\x0ATasksProtoP\x01Z8cloud.google.com/go/dataplex/apiv1/dataplexpb;dataplexpbb\x06proto3" - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action.php deleted file mode 100644 index f72260a44fe5..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action.php +++ /dev/null @@ -1,634 +0,0 @@ -google.cloud.dataplex.v1.Action - */ -class Action extends \Google\Protobuf\Internal\Message -{ - /** - * The category of issue associated with the action. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Action.Category category = 1; - */ - protected $category = 0; - /** - * Detailed description of the issue requiring action. - * - * Generated from protobuf field string issue = 2; - */ - protected $issue = ''; - /** - * The time that the issue was detected. - * - * Generated from protobuf field .google.protobuf.Timestamp detect_time = 4; - */ - protected $detect_time = null; - /** - * Output only. The relative resource name of the action, of the form: - * `projects/{project}/locations/{location}/lakes/{lake}/actions/{action}` - * `projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/actions/{action}` - * `projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/assets/{asset}/actions/{action}`. - * - * Generated from protobuf field string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Output only. The relative resource name of the lake, of the form: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. - * - * Generated from protobuf field string lake = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $lake = ''; - /** - * Output only. The relative resource name of the zone, of the form: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. - * - * Generated from protobuf field string zone = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $zone = ''; - /** - * Output only. The relative resource name of the asset, of the form: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. - * - * Generated from protobuf field string asset = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $asset = ''; - /** - * The list of data locations associated with this action. Cloud Storage - * locations are represented as URI paths(E.g. - * `gs://bucket/table1/year=2020/month=Jan/`). BigQuery locations refer to - * resource names(E.g. - * `bigquery.googleapis.com/projects/project-id/datasets/dataset-id`). - * - * Generated from protobuf field repeated string data_locations = 9; - */ - private $data_locations; - protected $details; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $category - * The category of issue associated with the action. - * @type string $issue - * Detailed description of the issue requiring action. - * @type \Google\Protobuf\Timestamp $detect_time - * The time that the issue was detected. - * @type string $name - * Output only. The relative resource name of the action, of the form: - * `projects/{project}/locations/{location}/lakes/{lake}/actions/{action}` - * `projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/actions/{action}` - * `projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/assets/{asset}/actions/{action}`. - * @type string $lake - * Output only. The relative resource name of the lake, of the form: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. - * @type string $zone - * Output only. The relative resource name of the zone, of the form: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. - * @type string $asset - * Output only. The relative resource name of the asset, of the form: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. - * @type string[] $data_locations - * The list of data locations associated with this action. Cloud Storage - * locations are represented as URI paths(E.g. - * `gs://bucket/table1/year=2020/month=Jan/`). BigQuery locations refer to - * resource names(E.g. - * `bigquery.googleapis.com/projects/project-id/datasets/dataset-id`). - * @type \Google\Cloud\Dataplex\V1\Action\InvalidDataFormat $invalid_data_format - * Details for issues related to invalid or unsupported data formats. - * @type \Google\Cloud\Dataplex\V1\Action\IncompatibleDataSchema $incompatible_data_schema - * Details for issues related to incompatible schemas detected within data. - * @type \Google\Cloud\Dataplex\V1\Action\InvalidDataPartition $invalid_data_partition - * Details for issues related to invalid or unsupported data partition - * structure. - * @type \Google\Cloud\Dataplex\V1\Action\MissingData $missing_data - * Details for issues related to absence of data within managed resources. - * @type \Google\Cloud\Dataplex\V1\Action\MissingResource $missing_resource - * Details for issues related to absence of a managed resource. - * @type \Google\Cloud\Dataplex\V1\Action\UnauthorizedResource $unauthorized_resource - * Details for issues related to lack of permissions to access data - * resources. - * @type \Google\Cloud\Dataplex\V1\Action\FailedSecurityPolicyApply $failed_security_policy_apply - * Details for issues related to applying security policy. - * @type \Google\Cloud\Dataplex\V1\Action\InvalidDataOrganization $invalid_data_organization - * Details for issues related to invalid data arrangement. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * The category of issue associated with the action. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Action.Category category = 1; - * @return int - */ - public function getCategory() - { - return $this->category; - } - - /** - * The category of issue associated with the action. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Action.Category category = 1; - * @param int $var - * @return $this - */ - public function setCategory($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\Action\Category::class); - $this->category = $var; - - return $this; - } - - /** - * Detailed description of the issue requiring action. - * - * Generated from protobuf field string issue = 2; - * @return string - */ - public function getIssue() - { - return $this->issue; - } - - /** - * Detailed description of the issue requiring action. - * - * Generated from protobuf field string issue = 2; - * @param string $var - * @return $this - */ - public function setIssue($var) - { - GPBUtil::checkString($var, True); - $this->issue = $var; - - return $this; - } - - /** - * The time that the issue was detected. - * - * Generated from protobuf field .google.protobuf.Timestamp detect_time = 4; - * @return \Google\Protobuf\Timestamp|null - */ - public function getDetectTime() - { - return $this->detect_time; - } - - public function hasDetectTime() - { - return isset($this->detect_time); - } - - public function clearDetectTime() - { - unset($this->detect_time); - } - - /** - * The time that the issue was detected. - * - * Generated from protobuf field .google.protobuf.Timestamp detect_time = 4; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setDetectTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->detect_time = $var; - - return $this; - } - - /** - * Output only. The relative resource name of the action, of the form: - * `projects/{project}/locations/{location}/lakes/{lake}/actions/{action}` - * `projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/actions/{action}` - * `projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/assets/{asset}/actions/{action}`. - * - * Generated from protobuf field string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The relative resource name of the action, of the form: - * `projects/{project}/locations/{location}/lakes/{lake}/actions/{action}` - * `projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/actions/{action}` - * `projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/assets/{asset}/actions/{action}`. - * - * Generated from protobuf field string name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. The relative resource name of the lake, of the form: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. - * - * Generated from protobuf field string lake = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getLake() - { - return $this->lake; - } - - /** - * Output only. The relative resource name of the lake, of the form: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. - * - * Generated from protobuf field string lake = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setLake($var) - { - GPBUtil::checkString($var, True); - $this->lake = $var; - - return $this; - } - - /** - * Output only. The relative resource name of the zone, of the form: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. - * - * Generated from protobuf field string zone = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getZone() - { - return $this->zone; - } - - /** - * Output only. The relative resource name of the zone, of the form: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. - * - * Generated from protobuf field string zone = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setZone($var) - { - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Output only. The relative resource name of the asset, of the form: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. - * - * Generated from protobuf field string asset = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getAsset() - { - return $this->asset; - } - - /** - * Output only. The relative resource name of the asset, of the form: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. - * - * Generated from protobuf field string asset = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setAsset($var) - { - GPBUtil::checkString($var, True); - $this->asset = $var; - - return $this; - } - - /** - * The list of data locations associated with this action. Cloud Storage - * locations are represented as URI paths(E.g. - * `gs://bucket/table1/year=2020/month=Jan/`). BigQuery locations refer to - * resource names(E.g. - * `bigquery.googleapis.com/projects/project-id/datasets/dataset-id`). - * - * Generated from protobuf field repeated string data_locations = 9; - * @return RepeatedField - */ - public function getDataLocations() - { - return $this->data_locations; - } - - /** - * The list of data locations associated with this action. Cloud Storage - * locations are represented as URI paths(E.g. - * `gs://bucket/table1/year=2020/month=Jan/`). BigQuery locations refer to - * resource names(E.g. - * `bigquery.googleapis.com/projects/project-id/datasets/dataset-id`). - * - * Generated from protobuf field repeated string data_locations = 9; - * @param string[] $var - * @return $this - */ - public function setDataLocations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->data_locations = $arr; - - return $this; - } - - /** - * Details for issues related to invalid or unsupported data formats. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Action.InvalidDataFormat invalid_data_format = 10; - * @return \Google\Cloud\Dataplex\V1\Action\InvalidDataFormat|null - */ - public function getInvalidDataFormat() - { - return $this->readOneof(10); - } - - public function hasInvalidDataFormat() - { - return $this->hasOneof(10); - } - - /** - * Details for issues related to invalid or unsupported data formats. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Action.InvalidDataFormat invalid_data_format = 10; - * @param \Google\Cloud\Dataplex\V1\Action\InvalidDataFormat $var - * @return $this - */ - public function setInvalidDataFormat($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Action\InvalidDataFormat::class); - $this->writeOneof(10, $var); - - return $this; - } - - /** - * Details for issues related to incompatible schemas detected within data. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Action.IncompatibleDataSchema incompatible_data_schema = 11; - * @return \Google\Cloud\Dataplex\V1\Action\IncompatibleDataSchema|null - */ - public function getIncompatibleDataSchema() - { - return $this->readOneof(11); - } - - public function hasIncompatibleDataSchema() - { - return $this->hasOneof(11); - } - - /** - * Details for issues related to incompatible schemas detected within data. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Action.IncompatibleDataSchema incompatible_data_schema = 11; - * @param \Google\Cloud\Dataplex\V1\Action\IncompatibleDataSchema $var - * @return $this - */ - public function setIncompatibleDataSchema($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Action\IncompatibleDataSchema::class); - $this->writeOneof(11, $var); - - return $this; - } - - /** - * Details for issues related to invalid or unsupported data partition - * structure. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Action.InvalidDataPartition invalid_data_partition = 12; - * @return \Google\Cloud\Dataplex\V1\Action\InvalidDataPartition|null - */ - public function getInvalidDataPartition() - { - return $this->readOneof(12); - } - - public function hasInvalidDataPartition() - { - return $this->hasOneof(12); - } - - /** - * Details for issues related to invalid or unsupported data partition - * structure. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Action.InvalidDataPartition invalid_data_partition = 12; - * @param \Google\Cloud\Dataplex\V1\Action\InvalidDataPartition $var - * @return $this - */ - public function setInvalidDataPartition($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Action\InvalidDataPartition::class); - $this->writeOneof(12, $var); - - return $this; - } - - /** - * Details for issues related to absence of data within managed resources. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Action.MissingData missing_data = 13; - * @return \Google\Cloud\Dataplex\V1\Action\MissingData|null - */ - public function getMissingData() - { - return $this->readOneof(13); - } - - public function hasMissingData() - { - return $this->hasOneof(13); - } - - /** - * Details for issues related to absence of data within managed resources. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Action.MissingData missing_data = 13; - * @param \Google\Cloud\Dataplex\V1\Action\MissingData $var - * @return $this - */ - public function setMissingData($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Action\MissingData::class); - $this->writeOneof(13, $var); - - return $this; - } - - /** - * Details for issues related to absence of a managed resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Action.MissingResource missing_resource = 14; - * @return \Google\Cloud\Dataplex\V1\Action\MissingResource|null - */ - public function getMissingResource() - { - return $this->readOneof(14); - } - - public function hasMissingResource() - { - return $this->hasOneof(14); - } - - /** - * Details for issues related to absence of a managed resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Action.MissingResource missing_resource = 14; - * @param \Google\Cloud\Dataplex\V1\Action\MissingResource $var - * @return $this - */ - public function setMissingResource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Action\MissingResource::class); - $this->writeOneof(14, $var); - - return $this; - } - - /** - * Details for issues related to lack of permissions to access data - * resources. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Action.UnauthorizedResource unauthorized_resource = 15; - * @return \Google\Cloud\Dataplex\V1\Action\UnauthorizedResource|null - */ - public function getUnauthorizedResource() - { - return $this->readOneof(15); - } - - public function hasUnauthorizedResource() - { - return $this->hasOneof(15); - } - - /** - * Details for issues related to lack of permissions to access data - * resources. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Action.UnauthorizedResource unauthorized_resource = 15; - * @param \Google\Cloud\Dataplex\V1\Action\UnauthorizedResource $var - * @return $this - */ - public function setUnauthorizedResource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Action\UnauthorizedResource::class); - $this->writeOneof(15, $var); - - return $this; - } - - /** - * Details for issues related to applying security policy. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Action.FailedSecurityPolicyApply failed_security_policy_apply = 21; - * @return \Google\Cloud\Dataplex\V1\Action\FailedSecurityPolicyApply|null - */ - public function getFailedSecurityPolicyApply() - { - return $this->readOneof(21); - } - - public function hasFailedSecurityPolicyApply() - { - return $this->hasOneof(21); - } - - /** - * Details for issues related to applying security policy. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Action.FailedSecurityPolicyApply failed_security_policy_apply = 21; - * @param \Google\Cloud\Dataplex\V1\Action\FailedSecurityPolicyApply $var - * @return $this - */ - public function setFailedSecurityPolicyApply($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Action\FailedSecurityPolicyApply::class); - $this->writeOneof(21, $var); - - return $this; - } - - /** - * Details for issues related to invalid data arrangement. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Action.InvalidDataOrganization invalid_data_organization = 22; - * @return \Google\Cloud\Dataplex\V1\Action\InvalidDataOrganization|null - */ - public function getInvalidDataOrganization() - { - return $this->readOneof(22); - } - - public function hasInvalidDataOrganization() - { - return $this->hasOneof(22); - } - - /** - * Details for issues related to invalid data arrangement. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Action.InvalidDataOrganization invalid_data_organization = 22; - * @param \Google\Cloud\Dataplex\V1\Action\InvalidDataOrganization $var - * @return $this - */ - public function setInvalidDataOrganization($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Action\InvalidDataOrganization::class); - $this->writeOneof(22, $var); - - return $this; - } - - /** - * @return string - */ - public function getDetails() - { - return $this->whichOneof("details"); - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/Category.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/Category.php deleted file mode 100644 index 1c8a8fb25661..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/Category.php +++ /dev/null @@ -1,68 +0,0 @@ -google.cloud.dataplex.v1.Action.Category - */ -class Category -{ - /** - * Unspecified category. - * - * Generated from protobuf enum CATEGORY_UNSPECIFIED = 0; - */ - const CATEGORY_UNSPECIFIED = 0; - /** - * Resource management related issues. - * - * Generated from protobuf enum RESOURCE_MANAGEMENT = 1; - */ - const RESOURCE_MANAGEMENT = 1; - /** - * Security policy related issues. - * - * Generated from protobuf enum SECURITY_POLICY = 2; - */ - const SECURITY_POLICY = 2; - /** - * Data and discovery related issues. - * - * Generated from protobuf enum DATA_DISCOVERY = 3; - */ - const DATA_DISCOVERY = 3; - - private static $valueToName = [ - self::CATEGORY_UNSPECIFIED => 'CATEGORY_UNSPECIFIED', - self::RESOURCE_MANAGEMENT => 'RESOURCE_MANAGEMENT', - self::SECURITY_POLICY => 'SECURITY_POLICY', - self::DATA_DISCOVERY => 'DATA_DISCOVERY', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/FailedSecurityPolicyApply.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/FailedSecurityPolicyApply.php deleted file mode 100644 index 9b4ff32c1629..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/FailedSecurityPolicyApply.php +++ /dev/null @@ -1,74 +0,0 @@ -google.cloud.dataplex.v1.Action.FailedSecurityPolicyApply - */ -class FailedSecurityPolicyApply extends \Google\Protobuf\Internal\Message -{ - /** - * Resource name of one of the assets with failing security policy - * application. Populated for a lake or zone resource only. - * - * Generated from protobuf field string asset = 1; - */ - protected $asset = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $asset - * Resource name of one of the assets with failing security policy - * application. Populated for a lake or zone resource only. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Resource name of one of the assets with failing security policy - * application. Populated for a lake or zone resource only. - * - * Generated from protobuf field string asset = 1; - * @return string - */ - public function getAsset() - { - return $this->asset; - } - - /** - * Resource name of one of the assets with failing security policy - * application. Populated for a lake or zone resource only. - * - * Generated from protobuf field string asset = 1; - * @param string $var - * @return $this - */ - public function setAsset($var) - { - GPBUtil::checkString($var, True); - $this->asset = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/IncompatibleDataSchema.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/IncompatibleDataSchema.php deleted file mode 100644 index 9820e8e27513..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/IncompatibleDataSchema.php +++ /dev/null @@ -1,215 +0,0 @@ -google.cloud.dataplex.v1.Action.IncompatibleDataSchema - */ -class IncompatibleDataSchema extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the table containing invalid data. - * - * Generated from protobuf field string table = 1; - */ - protected $table = ''; - /** - * The existing and expected schema of the table. The schema is provided as - * a JSON formatted structure listing columns and data types. - * - * Generated from protobuf field string existing_schema = 2; - */ - protected $existing_schema = ''; - /** - * The new and incompatible schema within the table. The schema is provided - * as a JSON formatted structured listing columns and data types. - * - * Generated from protobuf field string new_schema = 3; - */ - protected $new_schema = ''; - /** - * The list of data locations sampled and used for format/schema - * inference. - * - * Generated from protobuf field repeated string sampled_data_locations = 4; - */ - private $sampled_data_locations; - /** - * Whether the action relates to a schema that is incompatible or modified. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Action.IncompatibleDataSchema.SchemaChange schema_change = 5; - */ - protected $schema_change = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $table - * The name of the table containing invalid data. - * @type string $existing_schema - * The existing and expected schema of the table. The schema is provided as - * a JSON formatted structure listing columns and data types. - * @type string $new_schema - * The new and incompatible schema within the table. The schema is provided - * as a JSON formatted structured listing columns and data types. - * @type string[] $sampled_data_locations - * The list of data locations sampled and used for format/schema - * inference. - * @type int $schema_change - * Whether the action relates to a schema that is incompatible or modified. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * The name of the table containing invalid data. - * - * Generated from protobuf field string table = 1; - * @return string - */ - public function getTable() - { - return $this->table; - } - - /** - * The name of the table containing invalid data. - * - * Generated from protobuf field string table = 1; - * @param string $var - * @return $this - */ - public function setTable($var) - { - GPBUtil::checkString($var, True); - $this->table = $var; - - return $this; - } - - /** - * The existing and expected schema of the table. The schema is provided as - * a JSON formatted structure listing columns and data types. - * - * Generated from protobuf field string existing_schema = 2; - * @return string - */ - public function getExistingSchema() - { - return $this->existing_schema; - } - - /** - * The existing and expected schema of the table. The schema is provided as - * a JSON formatted structure listing columns and data types. - * - * Generated from protobuf field string existing_schema = 2; - * @param string $var - * @return $this - */ - public function setExistingSchema($var) - { - GPBUtil::checkString($var, True); - $this->existing_schema = $var; - - return $this; - } - - /** - * The new and incompatible schema within the table. The schema is provided - * as a JSON formatted structured listing columns and data types. - * - * Generated from protobuf field string new_schema = 3; - * @return string - */ - public function getNewSchema() - { - return $this->new_schema; - } - - /** - * The new and incompatible schema within the table. The schema is provided - * as a JSON formatted structured listing columns and data types. - * - * Generated from protobuf field string new_schema = 3; - * @param string $var - * @return $this - */ - public function setNewSchema($var) - { - GPBUtil::checkString($var, True); - $this->new_schema = $var; - - return $this; - } - - /** - * The list of data locations sampled and used for format/schema - * inference. - * - * Generated from protobuf field repeated string sampled_data_locations = 4; - * @return RepeatedField - */ - public function getSampledDataLocations() - { - return $this->sampled_data_locations; - } - - /** - * The list of data locations sampled and used for format/schema - * inference. - * - * Generated from protobuf field repeated string sampled_data_locations = 4; - * @param string[] $var - * @return $this - */ - public function setSampledDataLocations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->sampled_data_locations = $arr; - - return $this; - } - - /** - * Whether the action relates to a schema that is incompatible or modified. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Action.IncompatibleDataSchema.SchemaChange schema_change = 5; - * @return int - */ - public function getSchemaChange() - { - return $this->schema_change; - } - - /** - * Whether the action relates to a schema that is incompatible or modified. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Action.IncompatibleDataSchema.SchemaChange schema_change = 5; - * @param int $var - * @return $this - */ - public function setSchemaChange($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\Action\IncompatibleDataSchema\SchemaChange::class); - $this->schema_change = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/IncompatibleDataSchema/SchemaChange.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/IncompatibleDataSchema/SchemaChange.php deleted file mode 100644 index 85c842476efd..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/IncompatibleDataSchema/SchemaChange.php +++ /dev/null @@ -1,62 +0,0 @@ -google.cloud.dataplex.v1.Action.IncompatibleDataSchema.SchemaChange - */ -class SchemaChange -{ - /** - * Schema change unspecified. - * - * Generated from protobuf enum SCHEMA_CHANGE_UNSPECIFIED = 0; - */ - const SCHEMA_CHANGE_UNSPECIFIED = 0; - /** - * Newly discovered schema is incompatible with existing schema. - * - * Generated from protobuf enum INCOMPATIBLE = 1; - */ - const INCOMPATIBLE = 1; - /** - * Newly discovered schema has changed from existing schema for data in a - * curated zone. - * - * Generated from protobuf enum MODIFIED = 2; - */ - const MODIFIED = 2; - - private static $valueToName = [ - self::SCHEMA_CHANGE_UNSPECIFIED => 'SCHEMA_CHANGE_UNSPECIFIED', - self::INCOMPATIBLE => 'INCOMPATIBLE', - self::MODIFIED => 'MODIFIED', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/InvalidDataFormat.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/InvalidDataFormat.php deleted file mode 100644 index df89cdfeea28..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/InvalidDataFormat.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.dataplex.v1.Action.InvalidDataFormat - */ -class InvalidDataFormat extends \Google\Protobuf\Internal\Message -{ - /** - * The list of data locations sampled and used for format/schema - * inference. - * - * Generated from protobuf field repeated string sampled_data_locations = 1; - */ - private $sampled_data_locations; - /** - * The expected data format of the entity. - * - * Generated from protobuf field string expected_format = 2; - */ - protected $expected_format = ''; - /** - * The new unexpected data format within the entity. - * - * Generated from protobuf field string new_format = 3; - */ - protected $new_format = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string[] $sampled_data_locations - * The list of data locations sampled and used for format/schema - * inference. - * @type string $expected_format - * The expected data format of the entity. - * @type string $new_format - * The new unexpected data format within the entity. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * The list of data locations sampled and used for format/schema - * inference. - * - * Generated from protobuf field repeated string sampled_data_locations = 1; - * @return RepeatedField - */ - public function getSampledDataLocations() - { - return $this->sampled_data_locations; - } - - /** - * The list of data locations sampled and used for format/schema - * inference. - * - * Generated from protobuf field repeated string sampled_data_locations = 1; - * @param string[] $var - * @return $this - */ - public function setSampledDataLocations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->sampled_data_locations = $arr; - - return $this; - } - - /** - * The expected data format of the entity. - * - * Generated from protobuf field string expected_format = 2; - * @return string - */ - public function getExpectedFormat() - { - return $this->expected_format; - } - - /** - * The expected data format of the entity. - * - * Generated from protobuf field string expected_format = 2; - * @param string $var - * @return $this - */ - public function setExpectedFormat($var) - { - GPBUtil::checkString($var, True); - $this->expected_format = $var; - - return $this; - } - - /** - * The new unexpected data format within the entity. - * - * Generated from protobuf field string new_format = 3; - * @return string - */ - public function getNewFormat() - { - return $this->new_format; - } - - /** - * The new unexpected data format within the entity. - * - * Generated from protobuf field string new_format = 3; - * @param string $var - * @return $this - */ - public function setNewFormat($var) - { - GPBUtil::checkString($var, True); - $this->new_format = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/InvalidDataOrganization.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/InvalidDataOrganization.php deleted file mode 100644 index 3ec504d59cb7..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/InvalidDataOrganization.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.dataplex.v1.Action.InvalidDataOrganization - */ -class InvalidDataOrganization extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Resources::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/InvalidDataPartition.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/InvalidDataPartition.php deleted file mode 100644 index 0a4b1eae35a6..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/InvalidDataPartition.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.dataplex.v1.Action.InvalidDataPartition - */ -class InvalidDataPartition extends \Google\Protobuf\Internal\Message -{ - /** - * The issue type of InvalidDataPartition. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Action.InvalidDataPartition.PartitionStructure expected_structure = 1; - */ - protected $expected_structure = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $expected_structure - * The issue type of InvalidDataPartition. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * The issue type of InvalidDataPartition. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Action.InvalidDataPartition.PartitionStructure expected_structure = 1; - * @return int - */ - public function getExpectedStructure() - { - return $this->expected_structure; - } - - /** - * The issue type of InvalidDataPartition. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Action.InvalidDataPartition.PartitionStructure expected_structure = 1; - * @param int $var - * @return $this - */ - public function setExpectedStructure($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\Action\InvalidDataPartition\PartitionStructure::class); - $this->expected_structure = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/InvalidDataPartition/PartitionStructure.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/InvalidDataPartition/PartitionStructure.php deleted file mode 100644 index 1802cabccd61..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/InvalidDataPartition/PartitionStructure.php +++ /dev/null @@ -1,61 +0,0 @@ -google.cloud.dataplex.v1.Action.InvalidDataPartition.PartitionStructure - */ -class PartitionStructure -{ - /** - * PartitionStructure unspecified. - * - * Generated from protobuf enum PARTITION_STRUCTURE_UNSPECIFIED = 0; - */ - const PARTITION_STRUCTURE_UNSPECIFIED = 0; - /** - * Consistent hive-style partition definition (both raw and curated zone). - * - * Generated from protobuf enum CONSISTENT_KEYS = 1; - */ - const CONSISTENT_KEYS = 1; - /** - * Hive style partition definition (curated zone only). - * - * Generated from protobuf enum HIVE_STYLE_KEYS = 2; - */ - const HIVE_STYLE_KEYS = 2; - - private static $valueToName = [ - self::PARTITION_STRUCTURE_UNSPECIFIED => 'PARTITION_STRUCTURE_UNSPECIFIED', - self::CONSISTENT_KEYS => 'CONSISTENT_KEYS', - self::HIVE_STYLE_KEYS => 'HIVE_STYLE_KEYS', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/MissingData.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/MissingData.php deleted file mode 100644 index a3c7181f3299..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/MissingData.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.dataplex.v1.Action.MissingData - */ -class MissingData extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Resources::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/MissingResource.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/MissingResource.php deleted file mode 100644 index a4396e93f89b..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/MissingResource.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.dataplex.v1.Action.MissingResource - */ -class MissingResource extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Resources::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/UnauthorizedResource.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/UnauthorizedResource.php deleted file mode 100644 index c10d7722a10a..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Action/UnauthorizedResource.php +++ /dev/null @@ -1,35 +0,0 @@ -google.cloud.dataplex.v1.Action.UnauthorizedResource - */ -class UnauthorizedResource extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Resources::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Aspect.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Aspect.php deleted file mode 100644 index 1cf3c1a17717..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Aspect.php +++ /dev/null @@ -1,281 +0,0 @@ -google.cloud.dataplex.v1.Aspect - */ -class Aspect extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The resource name of the type used to create this Aspect. - * - * Generated from protobuf field string aspect_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $aspect_type = ''; - /** - * Output only. The path in the entry under which the aspect is attached. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $path = ''; - /** - * Output only. The time when the Aspect was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time when the Aspect was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Required. The content of the aspect, according to its aspect type schema. - * The maximum size of the field is 120KB (encoded as UTF-8). - * - * Generated from protobuf field .google.protobuf.Struct data = 8 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data = null; - /** - * Optional. Information related to the source system of the aspect. - * - * Generated from protobuf field .google.cloud.dataplex.v1.AspectSource aspect_source = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $aspect_source = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $aspect_type - * Output only. The resource name of the type used to create this Aspect. - * @type string $path - * Output only. The path in the entry under which the aspect is attached. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time when the Aspect was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time when the Aspect was last updated. - * @type \Google\Protobuf\Struct $data - * Required. The content of the aspect, according to its aspect type schema. - * The maximum size of the field is 120KB (encoded as UTF-8). - * @type \Google\Cloud\Dataplex\V1\AspectSource $aspect_source - * Optional. Information related to the source system of the aspect. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The resource name of the type used to create this Aspect. - * - * Generated from protobuf field string aspect_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getAspectType() - { - return $this->aspect_type; - } - - /** - * Output only. The resource name of the type used to create this Aspect. - * - * Generated from protobuf field string aspect_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setAspectType($var) - { - GPBUtil::checkString($var, True); - $this->aspect_type = $var; - - return $this; - } - - /** - * Output only. The path in the entry under which the aspect is attached. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * Output only. The path in the entry under which the aspect is attached. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - - /** - * Output only. The time when the Aspect was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The time when the Aspect was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The time when the Aspect was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The time when the Aspect was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Required. The content of the aspect, according to its aspect type schema. - * The maximum size of the field is 120KB (encoded as UTF-8). - * - * Generated from protobuf field .google.protobuf.Struct data = 8 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Struct|null - */ - public function getData() - { - return $this->data; - } - - public function hasData() - { - return isset($this->data); - } - - public function clearData() - { - unset($this->data); - } - - /** - * Required. The content of the aspect, according to its aspect type schema. - * The maximum size of the field is 120KB (encoded as UTF-8). - * - * Generated from protobuf field .google.protobuf.Struct data = 8 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\Struct $var - * @return $this - */ - public function setData($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); - $this->data = $var; - - return $this; - } - - /** - * Optional. Information related to the source system of the aspect. - * - * Generated from protobuf field .google.cloud.dataplex.v1.AspectSource aspect_source = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dataplex\V1\AspectSource|null - */ - public function getAspectSource() - { - return $this->aspect_source; - } - - public function hasAspectSource() - { - return isset($this->aspect_source); - } - - public function clearAspectSource() - { - unset($this->aspect_source); - } - - /** - * Optional. Information related to the source system of the aspect. - * - * Generated from protobuf field .google.cloud.dataplex.v1.AspectSource aspect_source = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataplex\V1\AspectSource $var - * @return $this - */ - public function setAspectSource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\AspectSource::class); - $this->aspect_source = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectSource.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectSource.php deleted file mode 100644 index a1278532ff5b..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectSource.php +++ /dev/null @@ -1,163 +0,0 @@ -google.cloud.dataplex.v1.AspectSource - */ -class AspectSource extends \Google\Protobuf\Internal\Message -{ - /** - * The time the aspect was created in the source system. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 10; - */ - protected $create_time = null; - /** - * The time the aspect was last updated in the source system. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 11; - */ - protected $update_time = null; - /** - * The version of the data format used to produce this data. This field is - * used to indicated when the underlying data format changes (e.g., schema - * modifications, changes to the source URL format definition, etc). - * - * Generated from protobuf field string data_version = 12; - */ - protected $data_version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $create_time - * The time the aspect was created in the source system. - * @type \Google\Protobuf\Timestamp $update_time - * The time the aspect was last updated in the source system. - * @type string $data_version - * The version of the data format used to produce this data. This field is - * used to indicated when the underlying data format changes (e.g., schema - * modifications, changes to the source URL format definition, etc). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * The time the aspect was created in the source system. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 10; - * @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 time the aspect was created in the source system. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 10; - * @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 time the aspect was last updated in the source system. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 11; - * @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 time the aspect was last updated in the source system. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 11; - * @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 version of the data format used to produce this data. This field is - * used to indicated when the underlying data format changes (e.g., schema - * modifications, changes to the source URL format definition, etc). - * - * Generated from protobuf field string data_version = 12; - * @return string - */ - public function getDataVersion() - { - return $this->data_version; - } - - /** - * The version of the data format used to produce this data. This field is - * used to indicated when the underlying data format changes (e.g., schema - * modifications, changes to the source URL format definition, etc). - * - * Generated from protobuf field string data_version = 12; - * @param string $var - * @return $this - */ - public function setDataVersion($var) - { - GPBUtil::checkString($var, True); - $this->data_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType.php deleted file mode 100644 index 8efe9261ea98..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType.php +++ /dev/null @@ -1,502 +0,0 @@ -google.cloud.dataplex.v1.AspectType - */ -class AspectType extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The relative resource name of the AspectType, of the form: - * projects/{project_number}/locations/{location_id}/aspectTypes/{aspect_type_id}. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Output only. System generated globally unique ID for the AspectType. - * If you delete and recreate the AspectType with the same name, then this ID - * will be different. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $uid = ''; - /** - * Output only. The time when the AspectType was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time when the AspectType was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Optional. Description of the AspectType. - * - * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Optional. User friendly display name. - * - * Generated from protobuf field string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $display_name = ''; - /** - * Optional. User-defined labels for the AspectType. - * - * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $labels; - /** - * The service computes this checksum. The client may send it on update and - * delete requests to ensure it has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 8; - */ - protected $etag = ''; - /** - * Optional. Immutable. Stores data classification of the aspect. - * - * Generated from protobuf field .google.cloud.dataplex.v1.AspectType.DataClassification data_classification = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $data_classification = 0; - /** - * Immutable. Defines the Authorization for this type. - * - * Generated from protobuf field .google.cloud.dataplex.v1.AspectType.Authorization authorization = 52 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $authorization = null; - /** - * Required. MetadataTemplate of the aspect. - * - * Generated from protobuf field .google.cloud.dataplex.v1.AspectType.MetadataTemplate metadata_template = 53 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $metadata_template = null; - /** - * Output only. Denotes the transfer status of the Aspect Type. It is - * unspecified for Aspect Types created from Dataplex API. - * - * Generated from protobuf field .google.cloud.dataplex.v1.TransferStatus transfer_status = 202 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $transfer_status = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. The relative resource name of the AspectType, of the form: - * projects/{project_number}/locations/{location_id}/aspectTypes/{aspect_type_id}. - * @type string $uid - * Output only. System generated globally unique ID for the AspectType. - * If you delete and recreate the AspectType with the same name, then this ID - * will be different. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time when the AspectType was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time when the AspectType was last updated. - * @type string $description - * Optional. Description of the AspectType. - * @type string $display_name - * Optional. User friendly display name. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Optional. User-defined labels for the AspectType. - * @type string $etag - * The service computes this checksum. The client may send it on update and - * delete requests to ensure it has an up-to-date value before proceeding. - * @type int $data_classification - * Optional. Immutable. Stores data classification of the aspect. - * @type \Google\Cloud\Dataplex\V1\AspectType\Authorization $authorization - * Immutable. Defines the Authorization for this type. - * @type \Google\Cloud\Dataplex\V1\AspectType\MetadataTemplate $metadata_template - * Required. MetadataTemplate of the aspect. - * @type int $transfer_status - * Output only. Denotes the transfer status of the Aspect Type. It is - * unspecified for Aspect Types created from Dataplex API. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The relative resource name of the AspectType, of the form: - * projects/{project_number}/locations/{location_id}/aspectTypes/{aspect_type_id}. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The relative resource name of the AspectType, of the form: - * projects/{project_number}/locations/{location_id}/aspectTypes/{aspect_type_id}. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. System generated globally unique ID for the AspectType. - * If you delete and recreate the AspectType with the same name, then this ID - * will be different. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. System generated globally unique ID for the AspectType. - * If you delete and recreate the AspectType with the same name, then this ID - * will be different. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Output only. The time when the AspectType was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The time when the AspectType was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The time when the AspectType was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The time when the AspectType was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Optional. Description of the AspectType. - * - * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. Description of the AspectType. - * - * 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; - } - - /** - * Optional. User friendly display name. - * - * Generated from protobuf field string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Optional. User friendly display name. - * - * Generated from protobuf field string display_name = 6 [(.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. User-defined labels for the AspectType. - * - * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Optional. User-defined labels for the AspectType. - * - * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * The service computes this checksum. The client may send it on update and - * delete requests to ensure it has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 8; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * The service computes this checksum. The client may send it on update and - * delete requests to ensure it has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 8; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Optional. Immutable. Stores data classification of the aspect. - * - * Generated from protobuf field .google.cloud.dataplex.v1.AspectType.DataClassification data_classification = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - * @return int - */ - public function getDataClassification() - { - return $this->data_classification; - } - - /** - * Optional. Immutable. Stores data classification of the aspect. - * - * Generated from protobuf field .google.cloud.dataplex.v1.AspectType.DataClassification data_classification = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - * @param int $var - * @return $this - */ - public function setDataClassification($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\AspectType\DataClassification::class); - $this->data_classification = $var; - - return $this; - } - - /** - * Immutable. Defines the Authorization for this type. - * - * Generated from protobuf field .google.cloud.dataplex.v1.AspectType.Authorization authorization = 52 [(.google.api.field_behavior) = IMMUTABLE]; - * @return \Google\Cloud\Dataplex\V1\AspectType\Authorization|null - */ - public function getAuthorization() - { - return $this->authorization; - } - - public function hasAuthorization() - { - return isset($this->authorization); - } - - public function clearAuthorization() - { - unset($this->authorization); - } - - /** - * Immutable. Defines the Authorization for this type. - * - * Generated from protobuf field .google.cloud.dataplex.v1.AspectType.Authorization authorization = 52 [(.google.api.field_behavior) = IMMUTABLE]; - * @param \Google\Cloud\Dataplex\V1\AspectType\Authorization $var - * @return $this - */ - public function setAuthorization($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\AspectType\Authorization::class); - $this->authorization = $var; - - return $this; - } - - /** - * Required. MetadataTemplate of the aspect. - * - * Generated from protobuf field .google.cloud.dataplex.v1.AspectType.MetadataTemplate metadata_template = 53 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataplex\V1\AspectType\MetadataTemplate|null - */ - public function getMetadataTemplate() - { - return $this->metadata_template; - } - - public function hasMetadataTemplate() - { - return isset($this->metadata_template); - } - - public function clearMetadataTemplate() - { - unset($this->metadata_template); - } - - /** - * Required. MetadataTemplate of the aspect. - * - * Generated from protobuf field .google.cloud.dataplex.v1.AspectType.MetadataTemplate metadata_template = 53 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\AspectType\MetadataTemplate $var - * @return $this - */ - public function setMetadataTemplate($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\AspectType\MetadataTemplate::class); - $this->metadata_template = $var; - - return $this; - } - - /** - * Output only. Denotes the transfer status of the Aspect Type. It is - * unspecified for Aspect Types created from Dataplex API. - * - * Generated from protobuf field .google.cloud.dataplex.v1.TransferStatus transfer_status = 202 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getTransferStatus() - { - return $this->transfer_status; - } - - /** - * Output only. Denotes the transfer status of the Aspect Type. It is - * unspecified for Aspect Types created from Dataplex API. - * - * Generated from protobuf field .google.cloud.dataplex.v1.TransferStatus transfer_status = 202 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setTransferStatus($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\TransferStatus::class); - $this->transfer_status = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType/Authorization.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType/Authorization.php deleted file mode 100644 index 2c66b632395b..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType/Authorization.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.dataplex.v1.AspectType.Authorization - */ -class Authorization extends \Google\Protobuf\Internal\Message -{ - /** - * Immutable. The IAM permission grantable on the EntryGroup to allow access - * to instantiate Aspects of Dataplex Universal Catalog owned AspectTypes, - * only settable for Dataplex Universal Catalog owned Types. - * - * Generated from protobuf field string alternate_use_permission = 1 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $alternate_use_permission = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $alternate_use_permission - * Immutable. The IAM permission grantable on the EntryGroup to allow access - * to instantiate Aspects of Dataplex Universal Catalog owned AspectTypes, - * only settable for Dataplex Universal Catalog owned Types. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Immutable. The IAM permission grantable on the EntryGroup to allow access - * to instantiate Aspects of Dataplex Universal Catalog owned AspectTypes, - * only settable for Dataplex Universal Catalog owned Types. - * - * Generated from protobuf field string alternate_use_permission = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getAlternateUsePermission() - { - return $this->alternate_use_permission; - } - - /** - * Immutable. The IAM permission grantable on the EntryGroup to allow access - * to instantiate Aspects of Dataplex Universal Catalog owned AspectTypes, - * only settable for Dataplex Universal Catalog owned Types. - * - * Generated from protobuf field string alternate_use_permission = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setAlternateUsePermission($var) - { - GPBUtil::checkString($var, True); - $this->alternate_use_permission = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType/DataClassification.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType/DataClassification.php deleted file mode 100644 index 7d683ad0b920..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType/DataClassification.php +++ /dev/null @@ -1,54 +0,0 @@ -google.cloud.dataplex.v1.AspectType.DataClassification - */ -class DataClassification -{ - /** - * Denotes that the aspect contains only metadata. - * - * Generated from protobuf enum DATA_CLASSIFICATION_UNSPECIFIED = 0; - */ - const DATA_CLASSIFICATION_UNSPECIFIED = 0; - /** - * Metadata and data classification. - * - * Generated from protobuf enum METADATA_AND_DATA = 1; - */ - const METADATA_AND_DATA = 1; - - private static $valueToName = [ - self::DATA_CLASSIFICATION_UNSPECIFIED => 'DATA_CLASSIFICATION_UNSPECIFIED', - self::METADATA_AND_DATA => 'METADATA_AND_DATA', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType/MetadataTemplate.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType/MetadataTemplate.php deleted file mode 100644 index 561c8b413d20..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType/MetadataTemplate.php +++ /dev/null @@ -1,575 +0,0 @@ -google.cloud.dataplex.v1.AspectType.MetadataTemplate - */ -class MetadataTemplate extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Index is used to encode Template messages. The value of index - * can range between 1 and 2,147,483,647. Index must be unique within all - * fields in a Template. (Nested Templates can reuse indexes). Once a - * Template is defined, the index cannot be changed, because it identifies - * the field in the actual storage format. Index is a mandatory field, but - * it is optional for top level fields, and map/array "values" definitions. - * - * Generated from protobuf field int32 index = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $index = 0; - /** - * Required. The name of the field. - * - * Generated from protobuf field string name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - /** - * Required. The datatype of this field. The following values are supported: - * Primitive types: - * * string - * * int - * * bool - * * double - * * datetime. Must be of the format RFC3339 UTC "Zulu" (Examples: - * "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z"). - * Complex types: - * * enum - * * array - * * map - * * record - * - * Generated from protobuf field string type = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $type = ''; - /** - * Optional. Field definition. You must specify it if the type is record. It - * defines the nested fields. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.AspectType.MetadataTemplate record_fields = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $record_fields; - /** - * Optional. The list of values for an enum type. You must define it if the - * type is enum. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.AspectType.MetadataTemplate.EnumValue enum_values = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $enum_values; - /** - * Optional. If the type is map, set map_items. map_items can refer to a - * primitive field or a complex (record only) field. To specify a primitive - * field, you only need to set name and type in the nested - * MetadataTemplate. The recommended value for the name field is item, as - * this isn't used in the actual payload. - * - * Generated from protobuf field .google.cloud.dataplex.v1.AspectType.MetadataTemplate map_items = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $map_items = null; - /** - * Optional. If the type is array, set array_items. array_items can refer - * to a primitive field or a complex (record only) field. To specify a - * primitive field, you only need to set name and type in the nested - * MetadataTemplate. The recommended value for the name field is item, as - * this isn't used in the actual payload. - * - * Generated from protobuf field .google.cloud.dataplex.v1.AspectType.MetadataTemplate array_items = 11 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $array_items = null; - /** - * Optional. You can use type id if this definition of the field needs to be - * reused later. The type id must be unique across the entire template. You - * can only specify it if the field type is record. - * - * Generated from protobuf field string type_id = 12 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $type_id = ''; - /** - * Optional. A reference to another field definition (not an inline - * definition). The value must be equal to the value of an id field defined - * elsewhere in the MetadataTemplate. Only fields with record type can - * refer to other fields. - * - * Generated from protobuf field string type_ref = 13 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $type_ref = ''; - /** - * Optional. Specifies the constraints on this field. - * - * Generated from protobuf field .google.cloud.dataplex.v1.AspectType.MetadataTemplate.Constraints constraints = 50 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $constraints = null; - /** - * Optional. Specifies annotations on this field. - * - * Generated from protobuf field .google.cloud.dataplex.v1.AspectType.MetadataTemplate.Annotations annotations = 51 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $annotations = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $index - * Optional. Index is used to encode Template messages. The value of index - * can range between 1 and 2,147,483,647. Index must be unique within all - * fields in a Template. (Nested Templates can reuse indexes). Once a - * Template is defined, the index cannot be changed, because it identifies - * the field in the actual storage format. Index is a mandatory field, but - * it is optional for top level fields, and map/array "values" definitions. - * @type string $name - * Required. The name of the field. - * @type string $type - * Required. The datatype of this field. The following values are supported: - * Primitive types: - * * string - * * int - * * bool - * * double - * * datetime. Must be of the format RFC3339 UTC "Zulu" (Examples: - * "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z"). - * Complex types: - * * enum - * * array - * * map - * * record - * @type \Google\Cloud\Dataplex\V1\AspectType\MetadataTemplate[] $record_fields - * Optional. Field definition. You must specify it if the type is record. It - * defines the nested fields. - * @type \Google\Cloud\Dataplex\V1\AspectType\MetadataTemplate\EnumValue[] $enum_values - * Optional. The list of values for an enum type. You must define it if the - * type is enum. - * @type \Google\Cloud\Dataplex\V1\AspectType\MetadataTemplate $map_items - * Optional. If the type is map, set map_items. map_items can refer to a - * primitive field or a complex (record only) field. To specify a primitive - * field, you only need to set name and type in the nested - * MetadataTemplate. The recommended value for the name field is item, as - * this isn't used in the actual payload. - * @type \Google\Cloud\Dataplex\V1\AspectType\MetadataTemplate $array_items - * Optional. If the type is array, set array_items. array_items can refer - * to a primitive field or a complex (record only) field. To specify a - * primitive field, you only need to set name and type in the nested - * MetadataTemplate. The recommended value for the name field is item, as - * this isn't used in the actual payload. - * @type string $type_id - * Optional. You can use type id if this definition of the field needs to be - * reused later. The type id must be unique across the entire template. You - * can only specify it if the field type is record. - * @type string $type_ref - * Optional. A reference to another field definition (not an inline - * definition). The value must be equal to the value of an id field defined - * elsewhere in the MetadataTemplate. Only fields with record type can - * refer to other fields. - * @type \Google\Cloud\Dataplex\V1\AspectType\MetadataTemplate\Constraints $constraints - * Optional. Specifies the constraints on this field. - * @type \Google\Cloud\Dataplex\V1\AspectType\MetadataTemplate\Annotations $annotations - * Optional. Specifies annotations on this field. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Index is used to encode Template messages. The value of index - * can range between 1 and 2,147,483,647. Index must be unique within all - * fields in a Template. (Nested Templates can reuse indexes). Once a - * Template is defined, the index cannot be changed, because it identifies - * the field in the actual storage format. Index is a mandatory field, but - * it is optional for top level fields, and map/array "values" definitions. - * - * Generated from protobuf field int32 index = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getIndex() - { - return $this->index; - } - - /** - * Optional. Index is used to encode Template messages. The value of index - * can range between 1 and 2,147,483,647. Index must be unique within all - * fields in a Template. (Nested Templates can reuse indexes). Once a - * Template is defined, the index cannot be changed, because it identifies - * the field in the actual storage format. Index is a mandatory field, but - * it is optional for top level fields, and map/array "values" definitions. - * - * Generated from protobuf field int32 index = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setIndex($var) - { - GPBUtil::checkInt32($var); - $this->index = $var; - - return $this; - } - - /** - * Required. The name of the field. - * - * Generated from protobuf field string name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the field. - * - * Generated from protobuf field string name = 2 [(.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 datatype of this field. The following values are supported: - * Primitive types: - * * string - * * int - * * bool - * * double - * * datetime. Must be of the format RFC3339 UTC "Zulu" (Examples: - * "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z"). - * Complex types: - * * enum - * * array - * * map - * * record - * - * Generated from protobuf field string type = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * Required. The datatype of this field. The following values are supported: - * Primitive types: - * * string - * * int - * * bool - * * double - * * datetime. Must be of the format RFC3339 UTC "Zulu" (Examples: - * "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z"). - * Complex types: - * * enum - * * array - * * map - * * record - * - * Generated from protobuf field string type = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkString($var, True); - $this->type = $var; - - return $this; - } - - /** - * Optional. Field definition. You must specify it if the type is record. It - * defines the nested fields. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.AspectType.MetadataTemplate record_fields = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\Dataplex\V1\AspectType\MetadataTemplate> - */ - public function getRecordFields() - { - return $this->record_fields; - } - - /** - * Optional. Field definition. You must specify it if the type is record. It - * defines the nested fields. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.AspectType.MetadataTemplate record_fields = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataplex\V1\AspectType\MetadataTemplate[] $var - * @return $this - */ - public function setRecordFields($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\AspectType\MetadataTemplate::class); - $this->record_fields = $arr; - - return $this; - } - - /** - * Optional. The list of values for an enum type. You must define it if the - * type is enum. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.AspectType.MetadataTemplate.EnumValue enum_values = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\Dataplex\V1\AspectType\MetadataTemplate\EnumValue> - */ - public function getEnumValues() - { - return $this->enum_values; - } - - /** - * Optional. The list of values for an enum type. You must define it if the - * type is enum. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.AspectType.MetadataTemplate.EnumValue enum_values = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataplex\V1\AspectType\MetadataTemplate\EnumValue[] $var - * @return $this - */ - public function setEnumValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\AspectType\MetadataTemplate\EnumValue::class); - $this->enum_values = $arr; - - return $this; - } - - /** - * Optional. If the type is map, set map_items. map_items can refer to a - * primitive field or a complex (record only) field. To specify a primitive - * field, you only need to set name and type in the nested - * MetadataTemplate. The recommended value for the name field is item, as - * this isn't used in the actual payload. - * - * Generated from protobuf field .google.cloud.dataplex.v1.AspectType.MetadataTemplate map_items = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dataplex\V1\AspectType\MetadataTemplate|null - */ - public function getMapItems() - { - return $this->map_items; - } - - public function hasMapItems() - { - return isset($this->map_items); - } - - public function clearMapItems() - { - unset($this->map_items); - } - - /** - * Optional. If the type is map, set map_items. map_items can refer to a - * primitive field or a complex (record only) field. To specify a primitive - * field, you only need to set name and type in the nested - * MetadataTemplate. The recommended value for the name field is item, as - * this isn't used in the actual payload. - * - * Generated from protobuf field .google.cloud.dataplex.v1.AspectType.MetadataTemplate map_items = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataplex\V1\AspectType\MetadataTemplate $var - * @return $this - */ - public function setMapItems($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\AspectType\MetadataTemplate::class); - $this->map_items = $var; - - return $this; - } - - /** - * Optional. If the type is array, set array_items. array_items can refer - * to a primitive field or a complex (record only) field. To specify a - * primitive field, you only need to set name and type in the nested - * MetadataTemplate. The recommended value for the name field is item, as - * this isn't used in the actual payload. - * - * Generated from protobuf field .google.cloud.dataplex.v1.AspectType.MetadataTemplate array_items = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dataplex\V1\AspectType\MetadataTemplate|null - */ - public function getArrayItems() - { - return $this->array_items; - } - - public function hasArrayItems() - { - return isset($this->array_items); - } - - public function clearArrayItems() - { - unset($this->array_items); - } - - /** - * Optional. If the type is array, set array_items. array_items can refer - * to a primitive field or a complex (record only) field. To specify a - * primitive field, you only need to set name and type in the nested - * MetadataTemplate. The recommended value for the name field is item, as - * this isn't used in the actual payload. - * - * Generated from protobuf field .google.cloud.dataplex.v1.AspectType.MetadataTemplate array_items = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataplex\V1\AspectType\MetadataTemplate $var - * @return $this - */ - public function setArrayItems($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\AspectType\MetadataTemplate::class); - $this->array_items = $var; - - return $this; - } - - /** - * Optional. You can use type id if this definition of the field needs to be - * reused later. The type id must be unique across the entire template. You - * can only specify it if the field type is record. - * - * Generated from protobuf field string type_id = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getTypeId() - { - return $this->type_id; - } - - /** - * Optional. You can use type id if this definition of the field needs to be - * reused later. The type id must be unique across the entire template. You - * can only specify it if the field type is record. - * - * Generated from protobuf field string type_id = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setTypeId($var) - { - GPBUtil::checkString($var, True); - $this->type_id = $var; - - return $this; - } - - /** - * Optional. A reference to another field definition (not an inline - * definition). The value must be equal to the value of an id field defined - * elsewhere in the MetadataTemplate. Only fields with record type can - * refer to other fields. - * - * Generated from protobuf field string type_ref = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getTypeRef() - { - return $this->type_ref; - } - - /** - * Optional. A reference to another field definition (not an inline - * definition). The value must be equal to the value of an id field defined - * elsewhere in the MetadataTemplate. Only fields with record type can - * refer to other fields. - * - * Generated from protobuf field string type_ref = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setTypeRef($var) - { - GPBUtil::checkString($var, True); - $this->type_ref = $var; - - return $this; - } - - /** - * Optional. Specifies the constraints on this field. - * - * Generated from protobuf field .google.cloud.dataplex.v1.AspectType.MetadataTemplate.Constraints constraints = 50 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dataplex\V1\AspectType\MetadataTemplate\Constraints|null - */ - public function getConstraints() - { - return $this->constraints; - } - - public function hasConstraints() - { - return isset($this->constraints); - } - - public function clearConstraints() - { - unset($this->constraints); - } - - /** - * Optional. Specifies the constraints on this field. - * - * Generated from protobuf field .google.cloud.dataplex.v1.AspectType.MetadataTemplate.Constraints constraints = 50 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataplex\V1\AspectType\MetadataTemplate\Constraints $var - * @return $this - */ - public function setConstraints($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\AspectType\MetadataTemplate\Constraints::class); - $this->constraints = $var; - - return $this; - } - - /** - * Optional. Specifies annotations on this field. - * - * Generated from protobuf field .google.cloud.dataplex.v1.AspectType.MetadataTemplate.Annotations annotations = 51 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dataplex\V1\AspectType\MetadataTemplate\Annotations|null - */ - public function getAnnotations() - { - return $this->annotations; - } - - public function hasAnnotations() - { - return isset($this->annotations); - } - - public function clearAnnotations() - { - unset($this->annotations); - } - - /** - * Optional. Specifies annotations on this field. - * - * Generated from protobuf field .google.cloud.dataplex.v1.AspectType.MetadataTemplate.Annotations annotations = 51 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataplex\V1\AspectType\MetadataTemplate\Annotations $var - * @return $this - */ - public function setAnnotations($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\AspectType\MetadataTemplate\Annotations::class); - $this->annotations = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType/MetadataTemplate/Annotations.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType/MetadataTemplate/Annotations.php deleted file mode 100644 index 7e6f7ff6bc36..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType/MetadataTemplate/Annotations.php +++ /dev/null @@ -1,265 +0,0 @@ -google.cloud.dataplex.v1.AspectType.MetadataTemplate.Annotations - */ -class Annotations extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Marks a field as deprecated. You can include a deprecation - * message. - * - * Generated from protobuf field string deprecated = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $deprecated = ''; - /** - * Optional. Display name for a field. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $display_name = ''; - /** - * Optional. Description for a field. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Optional. Display order for a field. You can use this to reorder where - * a field is rendered. - * - * Generated from protobuf field int32 display_order = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $display_order = 0; - /** - * Optional. You can use String Type annotations to specify special - * meaning to string fields. The following values are supported: - * * richText: The field must be interpreted as a rich text field. - * * url: A fully qualified URL link. - * * resource: A service qualified resource reference. - * - * Generated from protobuf field string string_type = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $string_type = ''; - /** - * Optional. Suggested hints for string fields. You can use them to - * suggest values to users through console. - * - * Generated from protobuf field repeated string string_values = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $string_values; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $deprecated - * Optional. Marks a field as deprecated. You can include a deprecation - * message. - * @type string $display_name - * Optional. Display name for a field. - * @type string $description - * Optional. Description for a field. - * @type int $display_order - * Optional. Display order for a field. You can use this to reorder where - * a field is rendered. - * @type string $string_type - * Optional. You can use String Type annotations to specify special - * meaning to string fields. The following values are supported: - * * richText: The field must be interpreted as a rich text field. - * * url: A fully qualified URL link. - * * resource: A service qualified resource reference. - * @type string[] $string_values - * Optional. Suggested hints for string fields. You can use them to - * suggest values to users through console. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Marks a field as deprecated. You can include a deprecation - * message. - * - * Generated from protobuf field string deprecated = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDeprecated() - { - return $this->deprecated; - } - - /** - * Optional. Marks a field as deprecated. You can include a deprecation - * message. - * - * Generated from protobuf field string deprecated = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDeprecated($var) - { - GPBUtil::checkString($var, True); - $this->deprecated = $var; - - return $this; - } - - /** - * Optional. Display name for a field. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Optional. Display name for a field. - * - * 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. Description for a field. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. Description for a field. - * - * 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; - } - - /** - * Optional. Display order for a field. You can use this to reorder where - * a field is rendered. - * - * Generated from protobuf field int32 display_order = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getDisplayOrder() - { - return $this->display_order; - } - - /** - * Optional. Display order for a field. You can use this to reorder where - * a field is rendered. - * - * Generated from protobuf field int32 display_order = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setDisplayOrder($var) - { - GPBUtil::checkInt32($var); - $this->display_order = $var; - - return $this; - } - - /** - * Optional. You can use String Type annotations to specify special - * meaning to string fields. The following values are supported: - * * richText: The field must be interpreted as a rich text field. - * * url: A fully qualified URL link. - * * resource: A service qualified resource reference. - * - * Generated from protobuf field string string_type = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getStringType() - { - return $this->string_type; - } - - /** - * Optional. You can use String Type annotations to specify special - * meaning to string fields. The following values are supported: - * * richText: The field must be interpreted as a rich text field. - * * url: A fully qualified URL link. - * * resource: A service qualified resource reference. - * - * Generated from protobuf field string string_type = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setStringType($var) - { - GPBUtil::checkString($var, True); - $this->string_type = $var; - - return $this; - } - - /** - * Optional. Suggested hints for string fields. You can use them to - * suggest values to users through console. - * - * Generated from protobuf field repeated string string_values = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getStringValues() - { - return $this->string_values; - } - - /** - * Optional. Suggested hints for string fields. You can use them to - * suggest values to users through console. - * - * Generated from protobuf field repeated string string_values = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setStringValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->string_values = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType/MetadataTemplate/Constraints.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType/MetadataTemplate/Constraints.php deleted file mode 100644 index e62300431f54..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType/MetadataTemplate/Constraints.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.dataplex.v1.AspectType.MetadataTemplate.Constraints - */ -class Constraints extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Marks this field as optional or required. - * - * Generated from protobuf field bool required = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $required = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $required - * Optional. Marks this field as optional or required. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Marks this field as optional or required. - * - * Generated from protobuf field bool required = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getRequired() - { - return $this->required; - } - - /** - * Optional. Marks this field as optional or required. - * - * Generated from protobuf field bool required = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setRequired($var) - { - GPBUtil::checkBool($var); - $this->required = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType/MetadataTemplate/EnumValue.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType/MetadataTemplate/EnumValue.php deleted file mode 100644 index 9a3c62b355f4..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AspectType/MetadataTemplate/EnumValue.php +++ /dev/null @@ -1,143 +0,0 @@ -google.cloud.dataplex.v1.AspectType.MetadataTemplate.EnumValue - */ -class EnumValue extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Index for the enum value. It can't be modified. - * - * Generated from protobuf field int32 index = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $index = 0; - /** - * Required. Name of the enumvalue. This is the actual value that the - * aspect can contain. - * - * Generated from protobuf field string name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - /** - * Optional. You can set this message if you need to deprecate an enum - * value. - * - * Generated from protobuf field string deprecated = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $deprecated = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $index - * Required. Index for the enum value. It can't be modified. - * @type string $name - * Required. Name of the enumvalue. This is the actual value that the - * aspect can contain. - * @type string $deprecated - * Optional. You can set this message if you need to deprecate an enum - * value. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Required. Index for the enum value. It can't be modified. - * - * Generated from protobuf field int32 index = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getIndex() - { - return $this->index; - } - - /** - * Required. Index for the enum value. It can't be modified. - * - * Generated from protobuf field int32 index = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setIndex($var) - { - GPBUtil::checkInt32($var); - $this->index = $var; - - return $this; - } - - /** - * Required. Name of the enumvalue. This is the actual value that the - * aspect can contain. - * - * Generated from protobuf field string name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Name of the enumvalue. This is the actual value that the - * aspect can contain. - * - * Generated from protobuf field string name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. You can set this message if you need to deprecate an enum - * value. - * - * Generated from protobuf field string deprecated = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDeprecated() - { - return $this->deprecated; - } - - /** - * Optional. You can set this message if you need to deprecate an enum - * value. - * - * Generated from protobuf field string deprecated = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDeprecated($var) - { - GPBUtil::checkString($var, True); - $this->deprecated = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset.php deleted file mode 100644 index 39336619d18f..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset.php +++ /dev/null @@ -1,574 +0,0 @@ -google.cloud.dataplex.v1.Asset - */ -class Asset extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The relative resource name of the asset, of the form: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. User friendly display name. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $display_name = ''; - /** - * Output only. System generated globally unique ID for the asset. This ID - * will be different if the asset is deleted and re-created with the same - * name. - * - * Generated from protobuf field string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $uid = ''; - /** - * Output only. The time when the asset was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time when the asset was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Optional. User defined labels for the asset. - * - * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $labels; - /** - * Optional. Description of the asset. - * - * Generated from protobuf field string description = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Output only. Current state of the asset. - * - * Generated from protobuf field .google.cloud.dataplex.v1.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Required. Specification of the resource that is referenced by this asset. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Asset.ResourceSpec resource_spec = 100 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $resource_spec = null; - /** - * Output only. Status of the resource referenced by this asset. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Asset.ResourceStatus resource_status = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $resource_status = null; - /** - * Output only. Status of the security policy applied to resource referenced - * by this asset. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Asset.SecurityStatus security_status = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $security_status = null; - /** - * Optional. Specification of the discovery feature applied to data referenced - * by this asset. When this spec is left unset, the asset will use the spec - * set on the parent zone. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Asset.DiscoverySpec discovery_spec = 106 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $discovery_spec = null; - /** - * Output only. Status of the discovery feature applied to data referenced by - * this asset. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Asset.DiscoveryStatus discovery_status = 107 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $discovery_status = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. The relative resource name of the asset, of the form: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. - * @type string $display_name - * Optional. User friendly display name. - * @type string $uid - * Output only. System generated globally unique ID for the asset. This ID - * will be different if the asset is deleted and re-created with the same - * name. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time when the asset was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time when the asset was last updated. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Optional. User defined labels for the asset. - * @type string $description - * Optional. Description of the asset. - * @type int $state - * Output only. Current state of the asset. - * @type \Google\Cloud\Dataplex\V1\Asset\ResourceSpec $resource_spec - * Required. Specification of the resource that is referenced by this asset. - * @type \Google\Cloud\Dataplex\V1\Asset\ResourceStatus $resource_status - * Output only. Status of the resource referenced by this asset. - * @type \Google\Cloud\Dataplex\V1\Asset\SecurityStatus $security_status - * Output only. Status of the security policy applied to resource referenced - * by this asset. - * @type \Google\Cloud\Dataplex\V1\Asset\DiscoverySpec $discovery_spec - * Optional. Specification of the discovery feature applied to data referenced - * by this asset. When this spec is left unset, the asset will use the spec - * set on the parent zone. - * @type \Google\Cloud\Dataplex\V1\Asset\DiscoveryStatus $discovery_status - * Output only. Status of the discovery feature applied to data referenced by - * this asset. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The relative resource name of the asset, of the form: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The relative resource name of the asset, of the form: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. User friendly display name. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Optional. User friendly display name. - * - * 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; - } - - /** - * Output only. System generated globally unique ID for the asset. This ID - * will be different if the asset is deleted and re-created with the same - * name. - * - * Generated from protobuf field string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. System generated globally unique ID for the asset. This ID - * will be different if the asset is deleted and re-created with the same - * name. - * - * Generated from protobuf field string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Output only. The time when the asset was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.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 asset was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.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 asset was last updated. - * - * 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 time when the asset was last updated. - * - * 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. User defined labels for the asset. - * - * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Optional. User defined labels for the asset. - * - * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Optional. Description of the asset. - * - * Generated from protobuf field string description = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. Description of the asset. - * - * Generated from protobuf field string description = 7 [(.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. Current state of the asset. - * - * Generated from protobuf field .google.cloud.dataplex.v1.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. Current state of the asset. - * - * Generated from protobuf field .google.cloud.dataplex.v1.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\State::class); - $this->state = $var; - - return $this; - } - - /** - * Required. Specification of the resource that is referenced by this asset. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Asset.ResourceSpec resource_spec = 100 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataplex\V1\Asset\ResourceSpec|null - */ - public function getResourceSpec() - { - return $this->resource_spec; - } - - public function hasResourceSpec() - { - return isset($this->resource_spec); - } - - public function clearResourceSpec() - { - unset($this->resource_spec); - } - - /** - * Required. Specification of the resource that is referenced by this asset. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Asset.ResourceSpec resource_spec = 100 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\Asset\ResourceSpec $var - * @return $this - */ - public function setResourceSpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Asset\ResourceSpec::class); - $this->resource_spec = $var; - - return $this; - } - - /** - * Output only. Status of the resource referenced by this asset. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Asset.ResourceStatus resource_status = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataplex\V1\Asset\ResourceStatus|null - */ - public function getResourceStatus() - { - return $this->resource_status; - } - - public function hasResourceStatus() - { - return isset($this->resource_status); - } - - public function clearResourceStatus() - { - unset($this->resource_status); - } - - /** - * Output only. Status of the resource referenced by this asset. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Asset.ResourceStatus resource_status = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\Asset\ResourceStatus $var - * @return $this - */ - public function setResourceStatus($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Asset\ResourceStatus::class); - $this->resource_status = $var; - - return $this; - } - - /** - * Output only. Status of the security policy applied to resource referenced - * by this asset. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Asset.SecurityStatus security_status = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataplex\V1\Asset\SecurityStatus|null - */ - public function getSecurityStatus() - { - return $this->security_status; - } - - public function hasSecurityStatus() - { - return isset($this->security_status); - } - - public function clearSecurityStatus() - { - unset($this->security_status); - } - - /** - * Output only. Status of the security policy applied to resource referenced - * by this asset. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Asset.SecurityStatus security_status = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\Asset\SecurityStatus $var - * @return $this - */ - public function setSecurityStatus($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Asset\SecurityStatus::class); - $this->security_status = $var; - - return $this; - } - - /** - * Optional. Specification of the discovery feature applied to data referenced - * by this asset. When this spec is left unset, the asset will use the spec - * set on the parent zone. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Asset.DiscoverySpec discovery_spec = 106 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dataplex\V1\Asset\DiscoverySpec|null - */ - public function getDiscoverySpec() - { - return $this->discovery_spec; - } - - public function hasDiscoverySpec() - { - return isset($this->discovery_spec); - } - - public function clearDiscoverySpec() - { - unset($this->discovery_spec); - } - - /** - * Optional. Specification of the discovery feature applied to data referenced - * by this asset. When this spec is left unset, the asset will use the spec - * set on the parent zone. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Asset.DiscoverySpec discovery_spec = 106 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataplex\V1\Asset\DiscoverySpec $var - * @return $this - */ - public function setDiscoverySpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Asset\DiscoverySpec::class); - $this->discovery_spec = $var; - - return $this; - } - - /** - * Output only. Status of the discovery feature applied to data referenced by - * this asset. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Asset.DiscoveryStatus discovery_status = 107 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataplex\V1\Asset\DiscoveryStatus|null - */ - public function getDiscoveryStatus() - { - return $this->discovery_status; - } - - public function hasDiscoveryStatus() - { - return isset($this->discovery_status); - } - - public function clearDiscoveryStatus() - { - unset($this->discovery_status); - } - - /** - * Output only. Status of the discovery feature applied to data referenced by - * this asset. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Asset.DiscoveryStatus discovery_status = 107 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\Asset\DiscoveryStatus $var - * @return $this - */ - public function setDiscoveryStatus($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Asset\DiscoveryStatus::class); - $this->discovery_status = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/DiscoverySpec.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/DiscoverySpec.php deleted file mode 100644 index ca3f9f8fd794..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/DiscoverySpec.php +++ /dev/null @@ -1,317 +0,0 @@ -google.cloud.dataplex.v1.Asset.DiscoverySpec - */ -class DiscoverySpec extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Whether discovery is enabled. - * - * Generated from protobuf field bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $enabled = false; - /** - * Optional. The list of patterns to apply for selecting data to include - * during discovery if only a subset of the data should considered. For - * Cloud Storage bucket assets, these are interpreted as glob patterns used - * to match object names. For BigQuery dataset assets, these are interpreted - * as patterns to match table names. - * - * Generated from protobuf field repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $include_patterns; - /** - * Optional. The list of patterns to apply for selecting data to exclude - * during discovery. For Cloud Storage bucket assets, these are interpreted - * as glob patterns used to match object names. For BigQuery dataset assets, - * these are interpreted as patterns to match table names. - * - * Generated from protobuf field repeated string exclude_patterns = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $exclude_patterns; - /** - * Optional. Configuration for CSV data. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Asset.DiscoverySpec.CsvOptions csv_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $csv_options = null; - /** - * Optional. Configuration for Json data. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Asset.DiscoverySpec.JsonOptions json_options = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $json_options = null; - protected $trigger; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Optional. Whether discovery is enabled. - * @type string[] $include_patterns - * Optional. The list of patterns to apply for selecting data to include - * during discovery if only a subset of the data should considered. For - * Cloud Storage bucket assets, these are interpreted as glob patterns used - * to match object names. For BigQuery dataset assets, these are interpreted - * as patterns to match table names. - * @type string[] $exclude_patterns - * Optional. The list of patterns to apply for selecting data to exclude - * during discovery. For Cloud Storage bucket assets, these are interpreted - * as glob patterns used to match object names. For BigQuery dataset assets, - * these are interpreted as patterns to match table names. - * @type \Google\Cloud\Dataplex\V1\Asset\DiscoverySpec\CsvOptions $csv_options - * Optional. Configuration for CSV data. - * @type \Google\Cloud\Dataplex\V1\Asset\DiscoverySpec\JsonOptions $json_options - * Optional. Configuration for Json data. - * @type string $schedule - * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for - * running discovery periodically. Successive discovery runs must be - * scheduled at least 60 minutes apart. The default value is to run - * discovery every 60 minutes. - * To explicitly set a timezone to the cron tab, apply a prefix in the - * cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}". - * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone - * database. For example, `CRON_TZ=America/New_York 1 * * * *`, or - * `TZ=America/New_York 1 * * * *`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Whether discovery is enabled. - * - * Generated from protobuf field bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Optional. Whether discovery is enabled. - * - * Generated from protobuf field bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - - /** - * Optional. The list of patterns to apply for selecting data to include - * during discovery if only a subset of the data should considered. For - * Cloud Storage bucket assets, these are interpreted as glob patterns used - * to match object names. For BigQuery dataset assets, these are interpreted - * as patterns to match table names. - * - * Generated from protobuf field repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getIncludePatterns() - { - return $this->include_patterns; - } - - /** - * Optional. The list of patterns to apply for selecting data to include - * during discovery if only a subset of the data should considered. For - * Cloud Storage bucket assets, these are interpreted as glob patterns used - * to match object names. For BigQuery dataset assets, these are interpreted - * as patterns to match table names. - * - * Generated from protobuf field repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setIncludePatterns($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->include_patterns = $arr; - - return $this; - } - - /** - * Optional. The list of patterns to apply for selecting data to exclude - * during discovery. For Cloud Storage bucket assets, these are interpreted - * as glob patterns used to match object names. For BigQuery dataset assets, - * these are interpreted as patterns to match table names. - * - * Generated from protobuf field repeated string exclude_patterns = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getExcludePatterns() - { - return $this->exclude_patterns; - } - - /** - * Optional. The list of patterns to apply for selecting data to exclude - * during discovery. For Cloud Storage bucket assets, these are interpreted - * as glob patterns used to match object names. For BigQuery dataset assets, - * these are interpreted as patterns to match table names. - * - * Generated from protobuf field repeated string exclude_patterns = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setExcludePatterns($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->exclude_patterns = $arr; - - return $this; - } - - /** - * Optional. Configuration for CSV data. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Asset.DiscoverySpec.CsvOptions csv_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dataplex\V1\Asset\DiscoverySpec\CsvOptions|null - */ - public function getCsvOptions() - { - return $this->csv_options; - } - - public function hasCsvOptions() - { - return isset($this->csv_options); - } - - public function clearCsvOptions() - { - unset($this->csv_options); - } - - /** - * Optional. Configuration for CSV data. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Asset.DiscoverySpec.CsvOptions csv_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataplex\V1\Asset\DiscoverySpec\CsvOptions $var - * @return $this - */ - public function setCsvOptions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Asset\DiscoverySpec\CsvOptions::class); - $this->csv_options = $var; - - return $this; - } - - /** - * Optional. Configuration for Json data. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Asset.DiscoverySpec.JsonOptions json_options = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dataplex\V1\Asset\DiscoverySpec\JsonOptions|null - */ - public function getJsonOptions() - { - return $this->json_options; - } - - public function hasJsonOptions() - { - return isset($this->json_options); - } - - public function clearJsonOptions() - { - unset($this->json_options); - } - - /** - * Optional. Configuration for Json data. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Asset.DiscoverySpec.JsonOptions json_options = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataplex\V1\Asset\DiscoverySpec\JsonOptions $var - * @return $this - */ - public function setJsonOptions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Asset\DiscoverySpec\JsonOptions::class); - $this->json_options = $var; - - return $this; - } - - /** - * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for - * running discovery periodically. Successive discovery runs must be - * scheduled at least 60 minutes apart. The default value is to run - * discovery every 60 minutes. - * To explicitly set a timezone to the cron tab, apply a prefix in the - * cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}". - * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone - * database. For example, `CRON_TZ=America/New_York 1 * * * *`, or - * `TZ=America/New_York 1 * * * *`. - * - * Generated from protobuf field string schedule = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getSchedule() - { - return $this->readOneof(10); - } - - public function hasSchedule() - { - return $this->hasOneof(10); - } - - /** - * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for - * running discovery periodically. Successive discovery runs must be - * scheduled at least 60 minutes apart. The default value is to run - * discovery every 60 minutes. - * To explicitly set a timezone to the cron tab, apply a prefix in the - * cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}". - * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone - * database. For example, `CRON_TZ=America/New_York 1 * * * *`, or - * `TZ=America/New_York 1 * * * *`. - * - * Generated from protobuf field string schedule = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setSchedule($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(10, $var); - - return $this; - } - - /** - * @return string - */ - public function getTrigger() - { - return $this->whichOneof("trigger"); - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/DiscoverySpec/CsvOptions.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/DiscoverySpec/CsvOptions.php deleted file mode 100644 index bbf45a836180..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/DiscoverySpec/CsvOptions.php +++ /dev/null @@ -1,181 +0,0 @@ -google.cloud.dataplex.v1.Asset.DiscoverySpec.CsvOptions - */ -class CsvOptions extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The number of rows to interpret as header rows that should be - * skipped when reading data rows. - * - * Generated from protobuf field int32 header_rows = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $header_rows = 0; - /** - * Optional. The delimiter being used to separate values. This defaults to - * ','. - * - * Generated from protobuf field string delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $delimiter = ''; - /** - * Optional. The character encoding of the data. The default is UTF-8. - * - * Generated from protobuf field string encoding = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $encoding = ''; - /** - * Optional. Whether to disable the inference of data type for CSV data. - * If true, all columns will be registered as strings. - * - * Generated from protobuf field bool disable_type_inference = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $disable_type_inference = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $header_rows - * Optional. The number of rows to interpret as header rows that should be - * skipped when reading data rows. - * @type string $delimiter - * Optional. The delimiter being used to separate values. This defaults to - * ','. - * @type string $encoding - * Optional. The character encoding of the data. The default is UTF-8. - * @type bool $disable_type_inference - * Optional. Whether to disable the inference of data type for CSV data. - * If true, all columns will be registered as strings. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The number of rows to interpret as header rows that should be - * skipped when reading data rows. - * - * Generated from protobuf field int32 header_rows = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getHeaderRows() - { - return $this->header_rows; - } - - /** - * Optional. The number of rows to interpret as header rows that should be - * skipped when reading data rows. - * - * Generated from protobuf field int32 header_rows = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setHeaderRows($var) - { - GPBUtil::checkInt32($var); - $this->header_rows = $var; - - return $this; - } - - /** - * Optional. The delimiter being used to separate values. This defaults to - * ','. - * - * Generated from protobuf field string delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDelimiter() - { - return $this->delimiter; - } - - /** - * Optional. The delimiter being used to separate values. This defaults to - * ','. - * - * Generated from protobuf field string delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDelimiter($var) - { - GPBUtil::checkString($var, True); - $this->delimiter = $var; - - return $this; - } - - /** - * Optional. The character encoding of the data. The default is UTF-8. - * - * Generated from protobuf field string encoding = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEncoding() - { - return $this->encoding; - } - - /** - * Optional. The character encoding of the data. The default is UTF-8. - * - * Generated from protobuf field string encoding = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setEncoding($var) - { - GPBUtil::checkString($var, True); - $this->encoding = $var; - - return $this; - } - - /** - * Optional. Whether to disable the inference of data type for CSV data. - * If true, all columns will be registered as strings. - * - * Generated from protobuf field bool disable_type_inference = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getDisableTypeInference() - { - return $this->disable_type_inference; - } - - /** - * Optional. Whether to disable the inference of data type for CSV data. - * If true, all columns will be registered as strings. - * - * Generated from protobuf field bool disable_type_inference = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setDisableTypeInference($var) - { - GPBUtil::checkBool($var); - $this->disable_type_inference = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/DiscoverySpec/JsonOptions.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/DiscoverySpec/JsonOptions.php deleted file mode 100644 index fd1fa209a76e..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/DiscoverySpec/JsonOptions.php +++ /dev/null @@ -1,109 +0,0 @@ -google.cloud.dataplex.v1.Asset.DiscoverySpec.JsonOptions - */ -class JsonOptions extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The character encoding of the data. The default is UTF-8. - * - * Generated from protobuf field string encoding = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $encoding = ''; - /** - * Optional. Whether to disable the inference of data type for Json data. - * If true, all columns will be registered as their primitive types - * (strings, number or boolean). - * - * Generated from protobuf field bool disable_type_inference = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $disable_type_inference = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $encoding - * Optional. The character encoding of the data. The default is UTF-8. - * @type bool $disable_type_inference - * Optional. Whether to disable the inference of data type for Json data. - * If true, all columns will be registered as their primitive types - * (strings, number or boolean). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The character encoding of the data. The default is UTF-8. - * - * Generated from protobuf field string encoding = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEncoding() - { - return $this->encoding; - } - - /** - * Optional. The character encoding of the data. The default is UTF-8. - * - * Generated from protobuf field string encoding = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setEncoding($var) - { - GPBUtil::checkString($var, True); - $this->encoding = $var; - - return $this; - } - - /** - * Optional. Whether to disable the inference of data type for Json data. - * If true, all columns will be registered as their primitive types - * (strings, number or boolean). - * - * Generated from protobuf field bool disable_type_inference = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getDisableTypeInference() - { - return $this->disable_type_inference; - } - - /** - * Optional. Whether to disable the inference of data type for Json data. - * If true, all columns will be registered as their primitive types - * (strings, number or boolean). - * - * Generated from protobuf field bool disable_type_inference = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setDisableTypeInference($var) - { - GPBUtil::checkBool($var); - $this->disable_type_inference = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/DiscoveryStatus.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/DiscoveryStatus.php deleted file mode 100644 index 8137020d5287..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/DiscoveryStatus.php +++ /dev/null @@ -1,277 +0,0 @@ -google.cloud.dataplex.v1.Asset.DiscoveryStatus - */ -class DiscoveryStatus extends \Google\Protobuf\Internal\Message -{ - /** - * The current status of the discovery feature. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Asset.DiscoveryStatus.State state = 1; - */ - protected $state = 0; - /** - * Additional information about the current state. - * - * Generated from protobuf field string message = 2; - */ - protected $message = ''; - /** - * Last update time of the status. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 3; - */ - protected $update_time = null; - /** - * The start time of the last discovery run. - * - * Generated from protobuf field .google.protobuf.Timestamp last_run_time = 4; - */ - protected $last_run_time = null; - /** - * Data Stats of the asset reported by discovery. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Asset.DiscoveryStatus.Stats stats = 6; - */ - protected $stats = null; - /** - * The duration of the last discovery run. - * - * Generated from protobuf field .google.protobuf.Duration last_run_duration = 7; - */ - protected $last_run_duration = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $state - * The current status of the discovery feature. - * @type string $message - * Additional information about the current state. - * @type \Google\Protobuf\Timestamp $update_time - * Last update time of the status. - * @type \Google\Protobuf\Timestamp $last_run_time - * The start time of the last discovery run. - * @type \Google\Cloud\Dataplex\V1\Asset\DiscoveryStatus\Stats $stats - * Data Stats of the asset reported by discovery. - * @type \Google\Protobuf\Duration $last_run_duration - * The duration of the last discovery run. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * The current status of the discovery feature. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Asset.DiscoveryStatus.State state = 1; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * The current status of the discovery feature. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Asset.DiscoveryStatus.State state = 1; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\Asset\DiscoveryStatus\State::class); - $this->state = $var; - - return $this; - } - - /** - * Additional information about the current state. - * - * Generated from protobuf field string message = 2; - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * Additional information about the current state. - * - * Generated from protobuf field string message = 2; - * @param string $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkString($var, True); - $this->message = $var; - - return $this; - } - - /** - * Last update time of the status. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 3; - * @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); - } - - /** - * Last update time of the status. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 3; - * @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 start time of the last discovery run. - * - * Generated from protobuf field .google.protobuf.Timestamp last_run_time = 4; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLastRunTime() - { - return $this->last_run_time; - } - - public function hasLastRunTime() - { - return isset($this->last_run_time); - } - - public function clearLastRunTime() - { - unset($this->last_run_time); - } - - /** - * The start time of the last discovery run. - * - * Generated from protobuf field .google.protobuf.Timestamp last_run_time = 4; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLastRunTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->last_run_time = $var; - - return $this; - } - - /** - * Data Stats of the asset reported by discovery. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Asset.DiscoveryStatus.Stats stats = 6; - * @return \Google\Cloud\Dataplex\V1\Asset\DiscoveryStatus\Stats|null - */ - public function getStats() - { - return $this->stats; - } - - public function hasStats() - { - return isset($this->stats); - } - - public function clearStats() - { - unset($this->stats); - } - - /** - * Data Stats of the asset reported by discovery. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Asset.DiscoveryStatus.Stats stats = 6; - * @param \Google\Cloud\Dataplex\V1\Asset\DiscoveryStatus\Stats $var - * @return $this - */ - public function setStats($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Asset\DiscoveryStatus\Stats::class); - $this->stats = $var; - - return $this; - } - - /** - * The duration of the last discovery run. - * - * Generated from protobuf field .google.protobuf.Duration last_run_duration = 7; - * @return \Google\Protobuf\Duration|null - */ - public function getLastRunDuration() - { - return $this->last_run_duration; - } - - public function hasLastRunDuration() - { - return isset($this->last_run_duration); - } - - public function clearLastRunDuration() - { - unset($this->last_run_duration); - } - - /** - * The duration of the last discovery run. - * - * Generated from protobuf field .google.protobuf.Duration last_run_duration = 7; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setLastRunDuration($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->last_run_duration = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/DiscoveryStatus/State.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/DiscoveryStatus/State.php deleted file mode 100644 index 507fd64afe64..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/DiscoveryStatus/State.php +++ /dev/null @@ -1,76 +0,0 @@ -google.cloud.dataplex.v1.Asset.DiscoveryStatus.State - */ -class State -{ - /** - * State is unspecified. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * Discovery for the asset is scheduled. - * - * Generated from protobuf enum SCHEDULED = 1; - */ - const SCHEDULED = 1; - /** - * Discovery for the asset is running. - * - * Generated from protobuf enum IN_PROGRESS = 2; - */ - const IN_PROGRESS = 2; - /** - * Discovery for the asset is currently paused (e.g. due to a lack - * of available resources). It will be automatically resumed. - * - * Generated from protobuf enum PAUSED = 3; - */ - const PAUSED = 3; - /** - * Discovery for the asset is disabled. - * - * Generated from protobuf enum DISABLED = 5; - */ - const DISABLED = 5; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::SCHEDULED => 'SCHEDULED', - self::IN_PROGRESS => 'IN_PROGRESS', - self::PAUSED => 'PAUSED', - self::DISABLED => 'DISABLED', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/DiscoveryStatus/Stats.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/DiscoveryStatus/Stats.php deleted file mode 100644 index 1744168f772e..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/DiscoveryStatus/Stats.php +++ /dev/null @@ -1,169 +0,0 @@ -google.cloud.dataplex.v1.Asset.DiscoveryStatus.Stats - */ -class Stats extends \Google\Protobuf\Internal\Message -{ - /** - * The count of data items within the referenced resource. - * - * Generated from protobuf field int64 data_items = 1; - */ - protected $data_items = 0; - /** - * The number of stored data bytes within the referenced resource. - * - * Generated from protobuf field int64 data_size = 2; - */ - protected $data_size = 0; - /** - * The count of table entities within the referenced resource. - * - * Generated from protobuf field int64 tables = 3; - */ - protected $tables = 0; - /** - * The count of fileset entities within the referenced resource. - * - * Generated from protobuf field int64 filesets = 4; - */ - protected $filesets = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $data_items - * The count of data items within the referenced resource. - * @type int|string $data_size - * The number of stored data bytes within the referenced resource. - * @type int|string $tables - * The count of table entities within the referenced resource. - * @type int|string $filesets - * The count of fileset entities within the referenced resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * The count of data items within the referenced resource. - * - * Generated from protobuf field int64 data_items = 1; - * @return int|string - */ - public function getDataItems() - { - return $this->data_items; - } - - /** - * The count of data items within the referenced resource. - * - * Generated from protobuf field int64 data_items = 1; - * @param int|string $var - * @return $this - */ - public function setDataItems($var) - { - GPBUtil::checkInt64($var); - $this->data_items = $var; - - return $this; - } - - /** - * The number of stored data bytes within the referenced resource. - * - * Generated from protobuf field int64 data_size = 2; - * @return int|string - */ - public function getDataSize() - { - return $this->data_size; - } - - /** - * The number of stored data bytes within the referenced resource. - * - * Generated from protobuf field int64 data_size = 2; - * @param int|string $var - * @return $this - */ - public function setDataSize($var) - { - GPBUtil::checkInt64($var); - $this->data_size = $var; - - return $this; - } - - /** - * The count of table entities within the referenced resource. - * - * Generated from protobuf field int64 tables = 3; - * @return int|string - */ - public function getTables() - { - return $this->tables; - } - - /** - * The count of table entities within the referenced resource. - * - * Generated from protobuf field int64 tables = 3; - * @param int|string $var - * @return $this - */ - public function setTables($var) - { - GPBUtil::checkInt64($var); - $this->tables = $var; - - return $this; - } - - /** - * The count of fileset entities within the referenced resource. - * - * Generated from protobuf field int64 filesets = 4; - * @return int|string - */ - public function getFilesets() - { - return $this->filesets; - } - - /** - * The count of fileset entities within the referenced resource. - * - * Generated from protobuf field int64 filesets = 4; - * @param int|string $var - * @return $this - */ - public function setFilesets($var) - { - GPBUtil::checkInt64($var); - $this->filesets = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/ResourceSpec.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/ResourceSpec.php deleted file mode 100644 index 55b1dc836f7f..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/ResourceSpec.php +++ /dev/null @@ -1,151 +0,0 @@ -google.cloud.dataplex.v1.Asset.ResourceSpec - */ -class ResourceSpec extends \Google\Protobuf\Internal\Message -{ - /** - * Immutable. Relative name of the cloud resource that contains the data - * that is being managed within a lake. For example: - * `projects/{project_number}/buckets/{bucket_id}` - * `projects/{project_number}/datasets/{dataset_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $name = ''; - /** - * Required. Immutable. Type of resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Asset.ResourceSpec.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $type = 0; - /** - * Optional. Determines how read permissions are handled for each asset and - * their associated tables. Only available to storage buckets assets. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Asset.ResourceSpec.AccessMode read_access_mode = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $read_access_mode = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Immutable. Relative name of the cloud resource that contains the data - * that is being managed within a lake. For example: - * `projects/{project_number}/buckets/{bucket_id}` - * `projects/{project_number}/datasets/{dataset_id}` - * @type int $type - * Required. Immutable. Type of resource. - * @type int $read_access_mode - * Optional. Determines how read permissions are handled for each asset and - * their associated tables. Only available to storage buckets assets. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Immutable. Relative name of the cloud resource that contains the data - * that is being managed within a lake. For example: - * `projects/{project_number}/buckets/{bucket_id}` - * `projects/{project_number}/datasets/{dataset_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Immutable. Relative name of the cloud resource that contains the data - * that is being managed within a lake. For example: - * `projects/{project_number}/buckets/{bucket_id}` - * `projects/{project_number}/datasets/{dataset_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. Immutable. Type of resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Asset.ResourceSpec.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Required. Immutable. Type of resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Asset.ResourceSpec.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\Asset\ResourceSpec\Type::class); - $this->type = $var; - - return $this; - } - - /** - * Optional. Determines how read permissions are handled for each asset and - * their associated tables. Only available to storage buckets assets. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Asset.ResourceSpec.AccessMode read_access_mode = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getReadAccessMode() - { - return $this->read_access_mode; - } - - /** - * Optional. Determines how read permissions are handled for each asset and - * their associated tables. Only available to storage buckets assets. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Asset.ResourceSpec.AccessMode read_access_mode = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setReadAccessMode($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\Asset\ResourceSpec\AccessMode::class); - $this->read_access_mode = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/ResourceSpec/AccessMode.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/ResourceSpec/AccessMode.php deleted file mode 100644 index c82d7573720e..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/ResourceSpec/AccessMode.php +++ /dev/null @@ -1,62 +0,0 @@ -google.cloud.dataplex.v1.Asset.ResourceSpec.AccessMode - */ -class AccessMode -{ - /** - * Access mode unspecified. - * - * Generated from protobuf enum ACCESS_MODE_UNSPECIFIED = 0; - */ - const ACCESS_MODE_UNSPECIFIED = 0; - /** - * Default. Data is accessed directly using storage APIs. - * - * Generated from protobuf enum DIRECT = 1; - */ - const DIRECT = 1; - /** - * Data is accessed through a managed interface using BigQuery APIs. - * - * Generated from protobuf enum MANAGED = 2; - */ - const MANAGED = 2; - - private static $valueToName = [ - self::ACCESS_MODE_UNSPECIFIED => 'ACCESS_MODE_UNSPECIFIED', - self::DIRECT => 'DIRECT', - self::MANAGED => 'MANAGED', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/ResourceSpec/Type.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/ResourceSpec/Type.php deleted file mode 100644 index d6ac27413920..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/ResourceSpec/Type.php +++ /dev/null @@ -1,61 +0,0 @@ -google.cloud.dataplex.v1.Asset.ResourceSpec.Type - */ -class Type -{ - /** - * Type not specified. - * - * Generated from protobuf enum TYPE_UNSPECIFIED = 0; - */ - const TYPE_UNSPECIFIED = 0; - /** - * Cloud Storage bucket. - * - * Generated from protobuf enum STORAGE_BUCKET = 1; - */ - const STORAGE_BUCKET = 1; - /** - * BigQuery dataset. - * - * Generated from protobuf enum BIGQUERY_DATASET = 2; - */ - const BIGQUERY_DATASET = 2; - - private static $valueToName = [ - self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', - self::STORAGE_BUCKET => 'STORAGE_BUCKET', - self::BIGQUERY_DATASET => 'BIGQUERY_DATASET', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/ResourceStatus.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/ResourceStatus.php deleted file mode 100644 index 4e0dbae27dfc..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/ResourceStatus.php +++ /dev/null @@ -1,179 +0,0 @@ -google.cloud.dataplex.v1.Asset.ResourceStatus - */ -class ResourceStatus extends \Google\Protobuf\Internal\Message -{ - /** - * The current state of the managed resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Asset.ResourceStatus.State state = 1; - */ - protected $state = 0; - /** - * Additional information about the current state. - * - * Generated from protobuf field string message = 2; - */ - protected $message = ''; - /** - * Last update time of the status. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 3; - */ - protected $update_time = null; - /** - * Output only. Service account associated with the BigQuery Connection. - * - * Generated from protobuf field string managed_access_identity = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $managed_access_identity = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $state - * The current state of the managed resource. - * @type string $message - * Additional information about the current state. - * @type \Google\Protobuf\Timestamp $update_time - * Last update time of the status. - * @type string $managed_access_identity - * Output only. Service account associated with the BigQuery Connection. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * The current state of the managed resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Asset.ResourceStatus.State state = 1; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * The current state of the managed resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Asset.ResourceStatus.State state = 1; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\Asset\ResourceStatus\State::class); - $this->state = $var; - - return $this; - } - - /** - * Additional information about the current state. - * - * Generated from protobuf field string message = 2; - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * Additional information about the current state. - * - * Generated from protobuf field string message = 2; - * @param string $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkString($var, True); - $this->message = $var; - - return $this; - } - - /** - * Last update time of the status. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 3; - * @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); - } - - /** - * Last update time of the status. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Output only. Service account associated with the BigQuery Connection. - * - * Generated from protobuf field string managed_access_identity = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getManagedAccessIdentity() - { - return $this->managed_access_identity; - } - - /** - * Output only. Service account associated with the BigQuery Connection. - * - * Generated from protobuf field string managed_access_identity = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setManagedAccessIdentity($var) - { - GPBUtil::checkString($var, True); - $this->managed_access_identity = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/ResourceStatus/State.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/ResourceStatus/State.php deleted file mode 100644 index 693da4209a1e..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/ResourceStatus/State.php +++ /dev/null @@ -1,61 +0,0 @@ -google.cloud.dataplex.v1.Asset.ResourceStatus.State - */ -class State -{ - /** - * State unspecified. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * Resource does not have any errors. - * - * Generated from protobuf enum READY = 1; - */ - const READY = 1; - /** - * Resource has errors. - * - * Generated from protobuf enum ERROR = 2; - */ - const ERROR = 2; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::READY => 'READY', - self::ERROR => 'ERROR', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/SecurityStatus.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/SecurityStatus.php deleted file mode 100644 index ade4cc4b0566..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/SecurityStatus.php +++ /dev/null @@ -1,150 +0,0 @@ -google.cloud.dataplex.v1.Asset.SecurityStatus - */ -class SecurityStatus extends \Google\Protobuf\Internal\Message -{ - /** - * The current state of the security policy applied to the attached - * resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Asset.SecurityStatus.State state = 1; - */ - protected $state = 0; - /** - * Additional information about the current state. - * - * Generated from protobuf field string message = 2; - */ - protected $message = ''; - /** - * Last update time of the status. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 3; - */ - protected $update_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $state - * The current state of the security policy applied to the attached - * resource. - * @type string $message - * Additional information about the current state. - * @type \Google\Protobuf\Timestamp $update_time - * Last update time of the status. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * The current state of the security policy applied to the attached - * resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Asset.SecurityStatus.State state = 1; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * The current state of the security policy applied to the attached - * resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Asset.SecurityStatus.State state = 1; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\Asset\SecurityStatus\State::class); - $this->state = $var; - - return $this; - } - - /** - * Additional information about the current state. - * - * Generated from protobuf field string message = 2; - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * Additional information about the current state. - * - * Generated from protobuf field string message = 2; - * @param string $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkString($var, True); - $this->message = $var; - - return $this; - } - - /** - * Last update time of the status. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 3; - * @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); - } - - /** - * Last update time of the status. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/SecurityStatus/State.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/SecurityStatus/State.php deleted file mode 100644 index 50735f21b1e4..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Asset/SecurityStatus/State.php +++ /dev/null @@ -1,70 +0,0 @@ -google.cloud.dataplex.v1.Asset.SecurityStatus.State - */ -class State -{ - /** - * State unspecified. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * Security policy has been successfully applied to the attached resource. - * - * Generated from protobuf enum READY = 1; - */ - const READY = 1; - /** - * Security policy is in the process of being applied to the attached - * resource. - * - * Generated from protobuf enum APPLYING = 2; - */ - const APPLYING = 2; - /** - * Security policy could not be applied to the attached resource due to - * errors. - * - * Generated from protobuf enum ERROR = 3; - */ - const ERROR = 3; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::READY => 'READY', - self::APPLYING => 'APPLYING', - self::ERROR => 'ERROR', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AssetStatus.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AssetStatus.php deleted file mode 100644 index f04d900950c0..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/AssetStatus.php +++ /dev/null @@ -1,149 +0,0 @@ -google.cloud.dataplex.v1.AssetStatus - */ -class AssetStatus extends \Google\Protobuf\Internal\Message -{ - /** - * Last update time of the status. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 1; - */ - protected $update_time = null; - /** - * Number of active assets. - * - * Generated from protobuf field int32 active_assets = 2; - */ - protected $active_assets = 0; - /** - * Number of assets that are in process of updating the security policy on - * attached resources. - * - * Generated from protobuf field int32 security_policy_applying_assets = 3; - */ - protected $security_policy_applying_assets = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $update_time - * Last update time of the status. - * @type int $active_assets - * Number of active assets. - * @type int $security_policy_applying_assets - * Number of assets that are in process of updating the security policy on - * attached resources. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Last update time of the status. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 1; - * @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); - } - - /** - * Last update time of the status. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 1; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Number of active assets. - * - * Generated from protobuf field int32 active_assets = 2; - * @return int - */ - public function getActiveAssets() - { - return $this->active_assets; - } - - /** - * Number of active assets. - * - * Generated from protobuf field int32 active_assets = 2; - * @param int $var - * @return $this - */ - public function setActiveAssets($var) - { - GPBUtil::checkInt32($var); - $this->active_assets = $var; - - return $this; - } - - /** - * Number of assets that are in process of updating the security policy on - * attached resources. - * - * Generated from protobuf field int32 security_policy_applying_assets = 3; - * @return int - */ - public function getSecurityPolicyApplyingAssets() - { - return $this->security_policy_applying_assets; - } - - /** - * Number of assets that are in process of updating the security policy on - * attached resources. - * - * Generated from protobuf field int32 security_policy_applying_assets = 3; - * @param int $var - * @return $this - */ - public function setSecurityPolicyApplyingAssets($var) - { - GPBUtil::checkInt32($var); - $this->security_policy_applying_assets = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/BusinessGlossaryEvent.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/BusinessGlossaryEvent.php deleted file mode 100644 index a396d4552ce4..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/BusinessGlossaryEvent.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.dataplex.v1.BusinessGlossaryEvent - */ -class BusinessGlossaryEvent extends \Google\Protobuf\Internal\Message -{ - /** - * The log message. - * - * Generated from protobuf field string message = 1; - */ - protected $message = ''; - /** - * The type of the event. - * - * Generated from protobuf field .google.cloud.dataplex.v1.BusinessGlossaryEvent.EventType event_type = 2; - */ - protected $event_type = 0; - /** - * Name of the resource. - * - * Generated from protobuf field string resource = 3; - */ - protected $resource = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $message - * The log message. - * @type int $event_type - * The type of the event. - * @type string $resource - * Name of the resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Logs::initOnce(); - parent::__construct($data); - } - - /** - * The log message. - * - * Generated from protobuf field string message = 1; - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * The log message. - * - * Generated from protobuf field string message = 1; - * @param string $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkString($var, True); - $this->message = $var; - - return $this; - } - - /** - * The type of the event. - * - * Generated from protobuf field .google.cloud.dataplex.v1.BusinessGlossaryEvent.EventType event_type = 2; - * @return int - */ - public function getEventType() - { - return $this->event_type; - } - - /** - * The type of the event. - * - * Generated from protobuf field .google.cloud.dataplex.v1.BusinessGlossaryEvent.EventType event_type = 2; - * @param int $var - * @return $this - */ - public function setEventType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\BusinessGlossaryEvent\EventType::class); - $this->event_type = $var; - - return $this; - } - - /** - * Name of the resource. - * - * Generated from protobuf field string resource = 3; - * @return string - */ - public function getResource() - { - return $this->resource; - } - - /** - * Name of the resource. - * - * Generated from protobuf field string resource = 3; - * @param string $var - * @return $this - */ - public function setResource($var) - { - GPBUtil::checkString($var, True); - $this->resource = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/BusinessGlossaryEvent/EventType.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/BusinessGlossaryEvent/EventType.php deleted file mode 100644 index e8441876842e..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/BusinessGlossaryEvent/EventType.php +++ /dev/null @@ -1,110 +0,0 @@ -google.cloud.dataplex.v1.BusinessGlossaryEvent.EventType - */ -class EventType -{ - /** - * An unspecified event type. - * - * Generated from protobuf enum EVENT_TYPE_UNSPECIFIED = 0; - */ - const EVENT_TYPE_UNSPECIFIED = 0; - /** - * Glossary create event. - * - * Generated from protobuf enum GLOSSARY_CREATE = 1; - */ - const GLOSSARY_CREATE = 1; - /** - * Glossary update event. - * - * Generated from protobuf enum GLOSSARY_UPDATE = 2; - */ - const GLOSSARY_UPDATE = 2; - /** - * Glossary delete event. - * - * Generated from protobuf enum GLOSSARY_DELETE = 3; - */ - const GLOSSARY_DELETE = 3; - /** - * Glossary category create event. - * - * Generated from protobuf enum GLOSSARY_CATEGORY_CREATE = 4; - */ - const GLOSSARY_CATEGORY_CREATE = 4; - /** - * Glossary category update event. - * - * Generated from protobuf enum GLOSSARY_CATEGORY_UPDATE = 5; - */ - const GLOSSARY_CATEGORY_UPDATE = 5; - /** - * Glossary category delete event. - * - * Generated from protobuf enum GLOSSARY_CATEGORY_DELETE = 6; - */ - const GLOSSARY_CATEGORY_DELETE = 6; - /** - * Glossary term create event. - * - * Generated from protobuf enum GLOSSARY_TERM_CREATE = 7; - */ - const GLOSSARY_TERM_CREATE = 7; - /** - * Glossary term update event. - * - * Generated from protobuf enum GLOSSARY_TERM_UPDATE = 8; - */ - const GLOSSARY_TERM_UPDATE = 8; - /** - * Glossary term delete event. - * - * Generated from protobuf enum GLOSSARY_TERM_DELETE = 9; - */ - const GLOSSARY_TERM_DELETE = 9; - - private static $valueToName = [ - self::EVENT_TYPE_UNSPECIFIED => 'EVENT_TYPE_UNSPECIFIED', - self::GLOSSARY_CREATE => 'GLOSSARY_CREATE', - self::GLOSSARY_UPDATE => 'GLOSSARY_UPDATE', - self::GLOSSARY_DELETE => 'GLOSSARY_DELETE', - self::GLOSSARY_CATEGORY_CREATE => 'GLOSSARY_CATEGORY_CREATE', - self::GLOSSARY_CATEGORY_UPDATE => 'GLOSSARY_CATEGORY_UPDATE', - self::GLOSSARY_CATEGORY_DELETE => 'GLOSSARY_CATEGORY_DELETE', - self::GLOSSARY_TERM_CREATE => 'GLOSSARY_TERM_CREATE', - self::GLOSSARY_TERM_UPDATE => 'GLOSSARY_TERM_UPDATE', - self::GLOSSARY_TERM_DELETE => 'GLOSSARY_TERM_DELETE', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CancelJobRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CancelJobRequest.php deleted file mode 100644 index 332223bbfae1..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CancelJobRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.dataplex.v1.CancelJobRequest - */ -class CancelJobRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the job: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/task/{task_id}/job/{job_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the job: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/task/{task_id}/job/{job_id}`. Please see - * {@see DataplexServiceClient::jobName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\CancelJobRequest - * - * @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 resource name of the job: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/task/{task_id}/job/{job_id}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the job: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/task/{task_id}/job/{job_id}`. - * - * 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 resource name of the job: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/task/{task_id}/job/{job_id}`. - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CancelMetadataJobRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CancelMetadataJobRequest.php deleted file mode 100644 index 3eab71a01bbe..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CancelMetadataJobRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.dataplex.v1.CancelMetadataJobRequest - */ -class CancelMetadataJobRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the job, in the format - * `projects/{project_id_or_number}/locations/{location_id}/metadataJobs/{metadata_job_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the job, in the format - * `projects/{project_id_or_number}/locations/{location_id}/metadataJobs/{metadata_job_id}` - * Please see {@see CatalogServiceClient::metadataJobName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\CancelMetadataJobRequest - * - * @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 resource name of the job, in the format - * `projects/{project_id_or_number}/locations/{location_id}/metadataJobs/{metadata_job_id}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the job, in the format - * `projects/{project_id_or_number}/locations/{location_id}/metadataJobs/{metadata_job_id}` - * - * 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 resource name of the job, in the format - * `projects/{project_id_or_number}/locations/{location_id}/metadataJobs/{metadata_job_id}` - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Content.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Content.php deleted file mode 100644 index 7a9cbd3f8e44..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Content.php +++ /dev/null @@ -1,428 +0,0 @@ -google.cloud.dataplex.v1.Content - */ -class Content extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The relative resource name of the content, of the form: - * projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{content_id} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Output only. System generated globally unique ID for the content. This ID - * will be different if the content is deleted and re-created with the same - * name. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $uid = ''; - /** - * Required. The path for the Content file, represented as directory - * structure. Unique within a lake. Limited to alphanumerics, hyphens, - * underscores, dots and slashes. - * - * Generated from protobuf field string path = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $path = ''; - /** - * Output only. Content creation time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time when the content was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Optional. User defined labels for the content. - * - * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $labels; - /** - * Optional. Description of the content. - * - * Generated from protobuf field string description = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - protected $data; - protected $content; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. The relative resource name of the content, of the form: - * projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{content_id} - * @type string $uid - * Output only. System generated globally unique ID for the content. This ID - * will be different if the content is deleted and re-created with the same - * name. - * @type string $path - * Required. The path for the Content file, represented as directory - * structure. Unique within a lake. Limited to alphanumerics, hyphens, - * underscores, dots and slashes. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Content creation time. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time when the content was last updated. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Optional. User defined labels for the content. - * @type string $description - * Optional. Description of the content. - * @type string $data_text - * Required. Content data in string format. - * @type \Google\Cloud\Dataplex\V1\Content\SqlScript $sql_script - * Sql Script related configurations. - * @type \Google\Cloud\Dataplex\V1\Content\Notebook $notebook - * Notebook related configurations. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Analyze::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The relative resource name of the content, of the form: - * projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{content_id} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The relative resource name of the content, of the form: - * projects/{project_id}/locations/{location_id}/lakes/{lake_id}/content/{content_id} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. System generated globally unique ID for the content. This ID - * will be different if the content is deleted and re-created with the same - * name. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. System generated globally unique ID for the content. This ID - * will be different if the content is deleted and re-created with the same - * name. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Required. The path for the Content file, represented as directory - * structure. Unique within a lake. Limited to alphanumerics, hyphens, - * underscores, dots and slashes. - * - * Generated from protobuf field string path = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * Required. The path for the Content file, represented as directory - * structure. Unique within a lake. Limited to alphanumerics, hyphens, - * underscores, dots and slashes. - * - * Generated from protobuf field string path = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - - /** - * Output only. Content creation time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.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. Content creation time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.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 content was last updated. - * - * 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 time when the content was last updated. - * - * 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. User defined labels for the content. - * - * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Optional. User defined labels for the content. - * - * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Optional. Description of the content. - * - * Generated from protobuf field string description = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. Description of the content. - * - * Generated from protobuf field string description = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Required. Content data in string format. - * - * Generated from protobuf field string data_text = 9 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDataText() - { - return $this->readOneof(9); - } - - public function hasDataText() - { - return $this->hasOneof(9); - } - - /** - * Required. Content data in string format. - * - * Generated from protobuf field string data_text = 9 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDataText($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(9, $var); - - return $this; - } - - /** - * Sql Script related configurations. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Content.SqlScript sql_script = 100; - * @return \Google\Cloud\Dataplex\V1\Content\SqlScript|null - */ - public function getSqlScript() - { - return $this->readOneof(100); - } - - public function hasSqlScript() - { - return $this->hasOneof(100); - } - - /** - * Sql Script related configurations. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Content.SqlScript sql_script = 100; - * @param \Google\Cloud\Dataplex\V1\Content\SqlScript $var - * @return $this - */ - public function setSqlScript($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Content\SqlScript::class); - $this->writeOneof(100, $var); - - return $this; - } - - /** - * Notebook related configurations. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Content.Notebook notebook = 101; - * @return \Google\Cloud\Dataplex\V1\Content\Notebook|null - */ - public function getNotebook() - { - return $this->readOneof(101); - } - - public function hasNotebook() - { - return $this->hasOneof(101); - } - - /** - * Notebook related configurations. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Content.Notebook notebook = 101; - * @param \Google\Cloud\Dataplex\V1\Content\Notebook $var - * @return $this - */ - public function setNotebook($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Content\Notebook::class); - $this->writeOneof(101, $var); - - return $this; - } - - /** - * @return string - */ - public function getData() - { - return $this->whichOneof("data"); - } - - /** - * @return string - */ - public function getContent() - { - return $this->whichOneof("content"); - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Content/Notebook.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Content/Notebook.php deleted file mode 100644 index 26c2dbcde077..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Content/Notebook.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.dataplex.v1.Content.Notebook - */ -class Notebook extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Kernel Type of the notebook. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Content.Notebook.KernelType kernel_type = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $kernel_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $kernel_type - * Required. Kernel Type of the notebook. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Analyze::initOnce(); - parent::__construct($data); - } - - /** - * Required. Kernel Type of the notebook. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Content.Notebook.KernelType kernel_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getKernelType() - { - return $this->kernel_type; - } - - /** - * Required. Kernel Type of the notebook. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Content.Notebook.KernelType kernel_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setKernelType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\Content\Notebook\KernelType::class); - $this->kernel_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Content/Notebook/KernelType.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Content/Notebook/KernelType.php deleted file mode 100644 index 0846d08b6e60..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Content/Notebook/KernelType.php +++ /dev/null @@ -1,54 +0,0 @@ -google.cloud.dataplex.v1.Content.Notebook.KernelType - */ -class KernelType -{ - /** - * Kernel Type unspecified. - * - * Generated from protobuf enum KERNEL_TYPE_UNSPECIFIED = 0; - */ - const KERNEL_TYPE_UNSPECIFIED = 0; - /** - * Python 3 Kernel. - * - * Generated from protobuf enum PYTHON3 = 1; - */ - const PYTHON3 = 1; - - private static $valueToName = [ - self::KERNEL_TYPE_UNSPECIFIED => 'KERNEL_TYPE_UNSPECIFIED', - self::PYTHON3 => 'PYTHON3', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Content/SqlScript.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Content/SqlScript.php deleted file mode 100644 index c8832548f6a6..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Content/SqlScript.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.dataplex.v1.Content.SqlScript - */ -class SqlScript extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Query Engine to be used for the Sql Query. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Content.SqlScript.QueryEngine engine = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $engine = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $engine - * Required. Query Engine to be used for the Sql Query. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Analyze::initOnce(); - parent::__construct($data); - } - - /** - * Required. Query Engine to be used for the Sql Query. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Content.SqlScript.QueryEngine engine = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getEngine() - { - return $this->engine; - } - - /** - * Required. Query Engine to be used for the Sql Query. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Content.SqlScript.QueryEngine engine = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setEngine($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\Content\SqlScript\QueryEngine::class); - $this->engine = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Content/SqlScript/QueryEngine.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Content/SqlScript/QueryEngine.php deleted file mode 100644 index 39e242989fcc..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Content/SqlScript/QueryEngine.php +++ /dev/null @@ -1,54 +0,0 @@ -google.cloud.dataplex.v1.Content.SqlScript.QueryEngine - */ -class QueryEngine -{ - /** - * Value was unspecified. - * - * Generated from protobuf enum QUERY_ENGINE_UNSPECIFIED = 0; - */ - const QUERY_ENGINE_UNSPECIFIED = 0; - /** - * Spark SQL Query. - * - * Generated from protobuf enum SPARK = 2; - */ - const SPARK = 2; - - private static $valueToName = [ - self::QUERY_ENGINE_UNSPECIFIED => 'QUERY_ENGINE_UNSPECIFIED', - self::SPARK => 'SPARK', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateAspectTypeRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateAspectTypeRequest.php deleted file mode 100644 index b9cd33c8b8dc..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateAspectTypeRequest.php +++ /dev/null @@ -1,211 +0,0 @@ -google.cloud.dataplex.v1.CreateAspectTypeRequest - */ -class CreateAspectTypeRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the AspectType, of the form: - * projects/{project_number}/locations/{location_id} - * where `location_id` refers to a Google Cloud region. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. AspectType identifier. - * - * Generated from protobuf field string aspect_type_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $aspect_type_id = ''; - /** - * Required. AspectType Resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.AspectType aspect_type = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $aspect_type = null; - /** - * Optional. The service validates the request without performing any - * mutations. The default is false. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param string $parent Required. The resource name of the AspectType, of the form: - * projects/{project_number}/locations/{location_id} - * where `location_id` refers to a Google Cloud region. Please see - * {@see CatalogServiceClient::locationName()} for help formatting this field. - * @param \Google\Cloud\Dataplex\V1\AspectType $aspectType Required. AspectType Resource. - * @param string $aspectTypeId Required. AspectType identifier. - * - * @return \Google\Cloud\Dataplex\V1\CreateAspectTypeRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Dataplex\V1\AspectType $aspectType, string $aspectTypeId): self - { - return (new self()) - ->setParent($parent) - ->setAspectType($aspectType) - ->setAspectTypeId($aspectTypeId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The resource name of the AspectType, of the form: - * projects/{project_number}/locations/{location_id} - * where `location_id` refers to a Google Cloud region. - * @type string $aspect_type_id - * Required. AspectType identifier. - * @type \Google\Cloud\Dataplex\V1\AspectType $aspect_type - * Required. AspectType Resource. - * @type bool $validate_only - * Optional. The service validates the request without performing any - * mutations. The default is false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the AspectType, of the form: - * projects/{project_number}/locations/{location_id} - * where `location_id` refers to a Google Cloud region. - * - * 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 resource name of the AspectType, of the form: - * projects/{project_number}/locations/{location_id} - * where `location_id` refers to a Google Cloud region. - * - * 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. AspectType identifier. - * - * Generated from protobuf field string aspect_type_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getAspectTypeId() - { - return $this->aspect_type_id; - } - - /** - * Required. AspectType identifier. - * - * Generated from protobuf field string aspect_type_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setAspectTypeId($var) - { - GPBUtil::checkString($var, True); - $this->aspect_type_id = $var; - - return $this; - } - - /** - * Required. AspectType Resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.AspectType aspect_type = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataplex\V1\AspectType|null - */ - public function getAspectType() - { - return $this->aspect_type; - } - - public function hasAspectType() - { - return isset($this->aspect_type); - } - - public function clearAspectType() - { - unset($this->aspect_type); - } - - /** - * Required. AspectType Resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.AspectType aspect_type = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\AspectType $var - * @return $this - */ - public function setAspectType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\AspectType::class); - $this->aspect_type = $var; - - return $this; - } - - /** - * Optional. The service validates the request without performing any - * mutations. The default is false. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. The service validates the request without performing any - * mutations. The default is false. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateAssetRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateAssetRequest.php deleted file mode 100644 index 878840ad0e22..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateAssetRequest.php +++ /dev/null @@ -1,241 +0,0 @@ -google.cloud.dataplex.v1.CreateAssetRequest - */ -class CreateAssetRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the parent zone: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. Asset identifier. - * This ID will be used to generate names such as table names when publishing - * metadata to Hive Metastore and BigQuery. - * * Must contain only lowercase letters, numbers and hyphens. - * * Must start with a letter. - * * Must end with a number or a letter. - * * Must be between 1-63 characters. - * * Must be unique within the zone. - * - * Generated from protobuf field string asset_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $asset_id = ''; - /** - * Required. Asset resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Asset asset = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $asset = null; - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param string $parent Required. The resource name of the parent zone: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. Please see - * {@see DataplexServiceClient::zoneName()} for help formatting this field. - * @param \Google\Cloud\Dataplex\V1\Asset $asset Required. Asset resource. - * @param string $assetId Required. Asset identifier. - * This ID will be used to generate names such as table names when publishing - * metadata to Hive Metastore and BigQuery. - * * Must contain only lowercase letters, numbers and hyphens. - * * Must start with a letter. - * * Must end with a number or a letter. - * * Must be between 1-63 characters. - * * Must be unique within the zone. - * - * @return \Google\Cloud\Dataplex\V1\CreateAssetRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Dataplex\V1\Asset $asset, string $assetId): self - { - return (new self()) - ->setParent($parent) - ->setAsset($asset) - ->setAssetId($assetId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The resource name of the parent zone: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. - * @type string $asset_id - * Required. Asset identifier. - * This ID will be used to generate names such as table names when publishing - * metadata to Hive Metastore and BigQuery. - * * Must contain only lowercase letters, numbers and hyphens. - * * Must start with a letter. - * * Must end with a number or a letter. - * * Must be between 1-63 characters. - * * Must be unique within the zone. - * @type \Google\Cloud\Dataplex\V1\Asset $asset - * Required. Asset resource. - * @type bool $validate_only - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the parent zone: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. - * - * 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 resource name of the parent zone: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. - * - * 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. Asset identifier. - * This ID will be used to generate names such as table names when publishing - * metadata to Hive Metastore and BigQuery. - * * Must contain only lowercase letters, numbers and hyphens. - * * Must start with a letter. - * * Must end with a number or a letter. - * * Must be between 1-63 characters. - * * Must be unique within the zone. - * - * Generated from protobuf field string asset_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getAssetId() - { - return $this->asset_id; - } - - /** - * Required. Asset identifier. - * This ID will be used to generate names such as table names when publishing - * metadata to Hive Metastore and BigQuery. - * * Must contain only lowercase letters, numbers and hyphens. - * * Must start with a letter. - * * Must end with a number or a letter. - * * Must be between 1-63 characters. - * * Must be unique within the zone. - * - * Generated from protobuf field string asset_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setAssetId($var) - { - GPBUtil::checkString($var, True); - $this->asset_id = $var; - - return $this; - } - - /** - * Required. Asset resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Asset asset = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataplex\V1\Asset|null - */ - public function getAsset() - { - return $this->asset; - } - - public function hasAsset() - { - return isset($this->asset); - } - - public function clearAsset() - { - unset($this->asset); - } - - /** - * Required. Asset resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Asset asset = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\Asset $var - * @return $this - */ - public function setAsset($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Asset::class); - $this->asset = $var; - - return $this; - } - - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateDataAssetRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateDataAssetRequest.php deleted file mode 100644 index 4a282d0c9631..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateDataAssetRequest.php +++ /dev/null @@ -1,242 +0,0 @@ -google.cloud.dataplex.v1.CreateDataAssetRequest - */ -class CreateDataAssetRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource where this data asset will be created. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The ID of the data asset to create. - * The ID must conform to RFC-1034 and contain only lower-case letters (a-z), - * numbers (0-9), or hyphens, with the first character a letter, the last a - * letter or a number, and a 63 character maximum. Characters outside of - * ASCII are not permitted. - * Valid format regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$` - * If not provided, a system generated ID will be used. - * - * Generated from protobuf field string data_asset_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $data_asset_id = ''; - /** - * Required. The data asset to create. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataAsset data_asset = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_asset = null; - /** - * Optional. Validates the request without actually creating the data asset. - * Defaults to false. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param string $parent Required. The parent resource where this data asset will be created. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} - * Please see {@see DataProductServiceClient::dataProductName()} for help formatting this field. - * @param \Google\Cloud\Dataplex\V1\DataAsset $dataAsset Required. The data asset to create. - * @param string $dataAssetId Optional. The ID of the data asset to create. - * - * The ID must conform to RFC-1034 and contain only lower-case letters (a-z), - * numbers (0-9), or hyphens, with the first character a letter, the last a - * letter or a number, and a 63 character maximum. Characters outside of - * ASCII are not permitted. - * Valid format regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$` - * If not provided, a system generated ID will be used. - * - * @return \Google\Cloud\Dataplex\V1\CreateDataAssetRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Dataplex\V1\DataAsset $dataAsset, string $dataAssetId): self - { - return (new self()) - ->setParent($parent) - ->setDataAsset($dataAsset) - ->setDataAssetId($dataAssetId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource where this data asset will be created. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} - * @type string $data_asset_id - * Optional. The ID of the data asset to create. - * The ID must conform to RFC-1034 and contain only lower-case letters (a-z), - * numbers (0-9), or hyphens, with the first character a letter, the last a - * letter or a number, and a 63 character maximum. Characters outside of - * ASCII are not permitted. - * Valid format regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$` - * If not provided, a system generated ID will be used. - * @type \Google\Cloud\Dataplex\V1\DataAsset $data_asset - * Required. The data asset to create. - * @type bool $validate_only - * Optional. Validates the request without actually creating the data asset. - * Defaults to false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataProducts::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource where this data asset will be created. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} - * - * 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 data asset will be created. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} - * - * 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 of the data asset to create. - * The ID must conform to RFC-1034 and contain only lower-case letters (a-z), - * numbers (0-9), or hyphens, with the first character a letter, the last a - * letter or a number, and a 63 character maximum. Characters outside of - * ASCII are not permitted. - * Valid format regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$` - * If not provided, a system generated ID will be used. - * - * Generated from protobuf field string data_asset_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDataAssetId() - { - return $this->data_asset_id; - } - - /** - * Optional. The ID of the data asset to create. - * The ID must conform to RFC-1034 and contain only lower-case letters (a-z), - * numbers (0-9), or hyphens, with the first character a letter, the last a - * letter or a number, and a 63 character maximum. Characters outside of - * ASCII are not permitted. - * Valid format regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$` - * If not provided, a system generated ID will be used. - * - * Generated from protobuf field string data_asset_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDataAssetId($var) - { - GPBUtil::checkString($var, True); - $this->data_asset_id = $var; - - return $this; - } - - /** - * Required. The data asset to create. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataAsset data_asset = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataplex\V1\DataAsset|null - */ - public function getDataAsset() - { - return $this->data_asset; - } - - public function hasDataAsset() - { - return isset($this->data_asset); - } - - public function clearDataAsset() - { - unset($this->data_asset); - } - - /** - * Required. The data asset to create. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataAsset data_asset = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\DataAsset $var - * @return $this - */ - public function setDataAsset($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataAsset::class); - $this->data_asset = $var; - - return $this; - } - - /** - * Optional. Validates the request without actually creating the data asset. - * Defaults to false. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. Validates the request without actually creating the data asset. - * Defaults to false. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateDataAttributeBindingRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateDataAttributeBindingRequest.php deleted file mode 100644 index f6d3bf5b28f8..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateDataAttributeBindingRequest.php +++ /dev/null @@ -1,231 +0,0 @@ -google.cloud.dataplex.v1.CreateDataAttributeBindingRequest - */ -class CreateDataAttributeBindingRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the parent data taxonomy - * projects/{project_number}/locations/{location_id} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. DataAttributeBinding identifier. - * * Must contain only lowercase letters, numbers and hyphens. - * * Must start with a letter. - * * Must be between 1-63 characters. - * * Must end with a number or a letter. - * * Must be unique within the Location. - * - * Generated from protobuf field string data_attribute_binding_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_attribute_binding_id = ''; - /** - * Required. DataAttributeBinding resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataAttributeBinding data_attribute_binding = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_attribute_binding = null; - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param string $parent Required. The resource name of the parent data taxonomy - * projects/{project_number}/locations/{location_id} - * Please see {@see DataTaxonomyServiceClient::locationName()} for help formatting this field. - * @param \Google\Cloud\Dataplex\V1\DataAttributeBinding $dataAttributeBinding Required. DataAttributeBinding resource. - * @param string $dataAttributeBindingId Required. DataAttributeBinding identifier. - * * Must contain only lowercase letters, numbers and hyphens. - * * Must start with a letter. - * * Must be between 1-63 characters. - * * Must end with a number or a letter. - * * Must be unique within the Location. - * - * @return \Google\Cloud\Dataplex\V1\CreateDataAttributeBindingRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Dataplex\V1\DataAttributeBinding $dataAttributeBinding, string $dataAttributeBindingId): self - { - return (new self()) - ->setParent($parent) - ->setDataAttributeBinding($dataAttributeBinding) - ->setDataAttributeBindingId($dataAttributeBindingId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The resource name of the parent data taxonomy - * projects/{project_number}/locations/{location_id} - * @type string $data_attribute_binding_id - * Required. DataAttributeBinding identifier. - * * Must contain only lowercase letters, numbers and hyphens. - * * Must start with a letter. - * * Must be between 1-63 characters. - * * Must end with a number or a letter. - * * Must be unique within the Location. - * @type \Google\Cloud\Dataplex\V1\DataAttributeBinding $data_attribute_binding - * Required. DataAttributeBinding resource. - * @type bool $validate_only - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataTaxonomy::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the parent data taxonomy - * projects/{project_number}/locations/{location_id} - * - * 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 resource name of the parent data taxonomy - * projects/{project_number}/locations/{location_id} - * - * 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. DataAttributeBinding identifier. - * * Must contain only lowercase letters, numbers and hyphens. - * * Must start with a letter. - * * Must be between 1-63 characters. - * * Must end with a number or a letter. - * * Must be unique within the Location. - * - * Generated from protobuf field string data_attribute_binding_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDataAttributeBindingId() - { - return $this->data_attribute_binding_id; - } - - /** - * Required. DataAttributeBinding identifier. - * * Must contain only lowercase letters, numbers and hyphens. - * * Must start with a letter. - * * Must be between 1-63 characters. - * * Must end with a number or a letter. - * * Must be unique within the Location. - * - * Generated from protobuf field string data_attribute_binding_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDataAttributeBindingId($var) - { - GPBUtil::checkString($var, True); - $this->data_attribute_binding_id = $var; - - return $this; - } - - /** - * Required. DataAttributeBinding resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataAttributeBinding data_attribute_binding = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataplex\V1\DataAttributeBinding|null - */ - public function getDataAttributeBinding() - { - return $this->data_attribute_binding; - } - - public function hasDataAttributeBinding() - { - return isset($this->data_attribute_binding); - } - - public function clearDataAttributeBinding() - { - unset($this->data_attribute_binding); - } - - /** - * Required. DataAttributeBinding resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataAttributeBinding data_attribute_binding = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\DataAttributeBinding $var - * @return $this - */ - public function setDataAttributeBinding($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataAttributeBinding::class); - $this->data_attribute_binding = $var; - - return $this; - } - - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateDataAttributeRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateDataAttributeRequest.php deleted file mode 100644 index e46d11db174d..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateDataAttributeRequest.php +++ /dev/null @@ -1,231 +0,0 @@ -google.cloud.dataplex.v1.CreateDataAttributeRequest - */ -class CreateDataAttributeRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the parent data taxonomy - * projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. DataAttribute identifier. - * * Must contain only lowercase letters, numbers and hyphens. - * * Must start with a letter. - * * Must be between 1-63 characters. - * * Must end with a number or a letter. - * * Must be unique within the DataTaxonomy. - * - * Generated from protobuf field string data_attribute_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_attribute_id = ''; - /** - * Required. DataAttribute resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataAttribute data_attribute = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_attribute = null; - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param string $parent Required. The resource name of the parent data taxonomy - * projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id} - * Please see {@see DataTaxonomyServiceClient::dataTaxonomyName()} for help formatting this field. - * @param \Google\Cloud\Dataplex\V1\DataAttribute $dataAttribute Required. DataAttribute resource. - * @param string $dataAttributeId Required. DataAttribute identifier. - * * Must contain only lowercase letters, numbers and hyphens. - * * Must start with a letter. - * * Must be between 1-63 characters. - * * Must end with a number or a letter. - * * Must be unique within the DataTaxonomy. - * - * @return \Google\Cloud\Dataplex\V1\CreateDataAttributeRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Dataplex\V1\DataAttribute $dataAttribute, string $dataAttributeId): self - { - return (new self()) - ->setParent($parent) - ->setDataAttribute($dataAttribute) - ->setDataAttributeId($dataAttributeId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The resource name of the parent data taxonomy - * projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id} - * @type string $data_attribute_id - * Required. DataAttribute identifier. - * * Must contain only lowercase letters, numbers and hyphens. - * * Must start with a letter. - * * Must be between 1-63 characters. - * * Must end with a number or a letter. - * * Must be unique within the DataTaxonomy. - * @type \Google\Cloud\Dataplex\V1\DataAttribute $data_attribute - * Required. DataAttribute resource. - * @type bool $validate_only - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataTaxonomy::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the parent data taxonomy - * projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id} - * - * 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 resource name of the parent data taxonomy - * projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id} - * - * 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. DataAttribute identifier. - * * Must contain only lowercase letters, numbers and hyphens. - * * Must start with a letter. - * * Must be between 1-63 characters. - * * Must end with a number or a letter. - * * Must be unique within the DataTaxonomy. - * - * Generated from protobuf field string data_attribute_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDataAttributeId() - { - return $this->data_attribute_id; - } - - /** - * Required. DataAttribute identifier. - * * Must contain only lowercase letters, numbers and hyphens. - * * Must start with a letter. - * * Must be between 1-63 characters. - * * Must end with a number or a letter. - * * Must be unique within the DataTaxonomy. - * - * Generated from protobuf field string data_attribute_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDataAttributeId($var) - { - GPBUtil::checkString($var, True); - $this->data_attribute_id = $var; - - return $this; - } - - /** - * Required. DataAttribute resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataAttribute data_attribute = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataplex\V1\DataAttribute|null - */ - public function getDataAttribute() - { - return $this->data_attribute; - } - - public function hasDataAttribute() - { - return isset($this->data_attribute); - } - - public function clearDataAttribute() - { - unset($this->data_attribute); - } - - /** - * Required. DataAttribute resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataAttribute data_attribute = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\DataAttribute $var - * @return $this - */ - public function setDataAttribute($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataAttribute::class); - $this->data_attribute = $var; - - return $this; - } - - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateDataProductRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateDataProductRequest.php deleted file mode 100644 index d90319c06e2c..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateDataProductRequest.php +++ /dev/null @@ -1,237 +0,0 @@ -google.cloud.dataplex.v1.CreateDataProductRequest - */ -class CreateDataProductRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource where this data product will be created. - * Format: projects/{project_id_or_number}/locations/{location_id} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The ID of the data product to create. - * The ID must conform to RFC-1034 and contain only lower-case letters (a-z), - * numbers (0-9), or hyphens, with the first character a letter, the last a - * letter or a number, and a 63 character maximum. Characters outside of - * ASCII are not permitted. - * Valid format regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$` - * If not provided, a system generated ID will be used. - * - * Generated from protobuf field string data_product_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $data_product_id = ''; - /** - * Required. The data product to create. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataProduct data_product = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_product = null; - /** - * Optional. Validates the request without actually creating the data product. - * Default: false. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param string $parent Required. The parent resource where this data product will be created. - * Format: projects/{project_id_or_number}/locations/{location_id} - * Please see {@see DataProductServiceClient::locationName()} for help formatting this field. - * @param \Google\Cloud\Dataplex\V1\DataProduct $dataProduct Required. The data product to create. - * @param string $dataProductId Optional. The ID of the data product to create. - * - * The ID must conform to RFC-1034 and contain only lower-case letters (a-z), - * numbers (0-9), or hyphens, with the first character a letter, the last a - * letter or a number, and a 63 character maximum. Characters outside of - * ASCII are not permitted. - * Valid format regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$` - * If not provided, a system generated ID will be used. - * - * @return \Google\Cloud\Dataplex\V1\CreateDataProductRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Dataplex\V1\DataProduct $dataProduct, string $dataProductId): self - { - return (new self()) - ->setParent($parent) - ->setDataProduct($dataProduct) - ->setDataProductId($dataProductId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource where this data product will be created. - * Format: projects/{project_id_or_number}/locations/{location_id} - * @type string $data_product_id - * Optional. The ID of the data product to create. - * The ID must conform to RFC-1034 and contain only lower-case letters (a-z), - * numbers (0-9), or hyphens, with the first character a letter, the last a - * letter or a number, and a 63 character maximum. Characters outside of - * ASCII are not permitted. - * Valid format regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$` - * If not provided, a system generated ID will be used. - * @type \Google\Cloud\Dataplex\V1\DataProduct $data_product - * Required. The data product to create. - * @type bool $validate_only - * Optional. Validates the request without actually creating the data product. - * Default: false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataProducts::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource where this data product will be created. - * Format: projects/{project_id_or_number}/locations/{location_id} - * - * 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 data product will be created. - * Format: projects/{project_id_or_number}/locations/{location_id} - * - * 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 of the data product to create. - * The ID must conform to RFC-1034 and contain only lower-case letters (a-z), - * numbers (0-9), or hyphens, with the first character a letter, the last a - * letter or a number, and a 63 character maximum. Characters outside of - * ASCII are not permitted. - * Valid format regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$` - * If not provided, a system generated ID will be used. - * - * Generated from protobuf field string data_product_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDataProductId() - { - return $this->data_product_id; - } - - /** - * Optional. The ID of the data product to create. - * The ID must conform to RFC-1034 and contain only lower-case letters (a-z), - * numbers (0-9), or hyphens, with the first character a letter, the last a - * letter or a number, and a 63 character maximum. Characters outside of - * ASCII are not permitted. - * Valid format regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$` - * If not provided, a system generated ID will be used. - * - * Generated from protobuf field string data_product_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDataProductId($var) - { - GPBUtil::checkString($var, True); - $this->data_product_id = $var; - - return $this; - } - - /** - * Required. The data product to create. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataProduct data_product = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataplex\V1\DataProduct|null - */ - public function getDataProduct() - { - return $this->data_product; - } - - public function hasDataProduct() - { - return isset($this->data_product); - } - - public function clearDataProduct() - { - unset($this->data_product); - } - - /** - * Required. The data product to create. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataProduct data_product = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\DataProduct $var - * @return $this - */ - public function setDataProduct($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataProduct::class); - $this->data_product = $var; - - return $this; - } - - /** - * Optional. Validates the request without actually creating the data product. - * Default: false. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. Validates the request without actually creating the data product. - * Default: false. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateDataScanRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateDataScanRequest.php deleted file mode 100644 index 6cbb738f08c9..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateDataScanRequest.php +++ /dev/null @@ -1,247 +0,0 @@ -google.cloud.dataplex.v1.CreateDataScanRequest - */ -class CreateDataScanRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the parent location: - * `projects/{project}/locations/{location_id}` - * where `project` refers to a *project_id* or *project_number* and - * `location_id` refers to a Google Cloud region. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. DataScan resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScan data_scan = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_scan = null; - /** - * Optional. DataScan identifier. If not provided, a unique ID will be - * generated with the prefix "data-scan-". - * * Must contain only lowercase letters, numbers and hyphens. - * * Must start with a letter. - * * Must end with a number or a letter. - * * Must be between 1-63 characters. - * * Must be unique within the customer project / location. - * - * Generated from protobuf field string data_scan_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $data_scan_id = ''; - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is `false`. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param string $parent Required. The resource name of the parent location: - * `projects/{project}/locations/{location_id}` - * where `project` refers to a *project_id* or *project_number* and - * `location_id` refers to a Google Cloud region. Please see - * {@see DataScanServiceClient::locationName()} for help formatting this field. - * @param \Google\Cloud\Dataplex\V1\DataScan $dataScan Required. DataScan resource. - * @param string $dataScanId Optional. DataScan identifier. If not provided, a unique ID will be - * generated with the prefix "data-scan-". - * - * * Must contain only lowercase letters, numbers and hyphens. - * * Must start with a letter. - * * Must end with a number or a letter. - * * Must be between 1-63 characters. - * * Must be unique within the customer project / location. - * - * @return \Google\Cloud\Dataplex\V1\CreateDataScanRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Dataplex\V1\DataScan $dataScan, string $dataScanId): self - { - return (new self()) - ->setParent($parent) - ->setDataScan($dataScan) - ->setDataScanId($dataScanId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The resource name of the parent location: - * `projects/{project}/locations/{location_id}` - * where `project` refers to a *project_id* or *project_number* and - * `location_id` refers to a Google Cloud region. - * @type \Google\Cloud\Dataplex\V1\DataScan $data_scan - * Required. DataScan resource. - * @type string $data_scan_id - * Optional. DataScan identifier. If not provided, a unique ID will be - * generated with the prefix "data-scan-". - * * Must contain only lowercase letters, numbers and hyphens. - * * Must start with a letter. - * * Must end with a number or a letter. - * * Must be between 1-63 characters. - * * Must be unique within the customer project / location. - * @type bool $validate_only - * Optional. Only validate the request, but do not perform mutations. - * The default is `false`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Datascans::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the parent location: - * `projects/{project}/locations/{location_id}` - * where `project` refers to a *project_id* or *project_number* and - * `location_id` refers to a Google Cloud region. - * - * 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 resource name of the parent location: - * `projects/{project}/locations/{location_id}` - * where `project` refers to a *project_id* or *project_number* and - * `location_id` refers to a Google Cloud region. - * - * 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. DataScan resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScan data_scan = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataplex\V1\DataScan|null - */ - public function getDataScan() - { - return $this->data_scan; - } - - public function hasDataScan() - { - return isset($this->data_scan); - } - - public function clearDataScan() - { - unset($this->data_scan); - } - - /** - * Required. DataScan resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScan data_scan = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\DataScan $var - * @return $this - */ - public function setDataScan($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataScan::class); - $this->data_scan = $var; - - return $this; - } - - /** - * Optional. DataScan identifier. If not provided, a unique ID will be - * generated with the prefix "data-scan-". - * * Must contain only lowercase letters, numbers and hyphens. - * * Must start with a letter. - * * Must end with a number or a letter. - * * Must be between 1-63 characters. - * * Must be unique within the customer project / location. - * - * Generated from protobuf field string data_scan_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDataScanId() - { - return $this->data_scan_id; - } - - /** - * Optional. DataScan identifier. If not provided, a unique ID will be - * generated with the prefix "data-scan-". - * * Must contain only lowercase letters, numbers and hyphens. - * * Must start with a letter. - * * Must end with a number or a letter. - * * Must be between 1-63 characters. - * * Must be unique within the customer project / location. - * - * Generated from protobuf field string data_scan_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDataScanId($var) - { - GPBUtil::checkString($var, True); - $this->data_scan_id = $var; - - return $this; - } - - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is `false`. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is `false`. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateDataTaxonomyRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateDataTaxonomyRequest.php deleted file mode 100644 index c950b605ce45..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateDataTaxonomyRequest.php +++ /dev/null @@ -1,219 +0,0 @@ -google.cloud.dataplex.v1.CreateDataTaxonomyRequest - */ -class CreateDataTaxonomyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. DataTaxonomy identifier. - * * Must contain only lowercase letters, numbers and hyphens. - * * Must start with a letter. - * * Must be between 1-63 characters. - * * Must end with a number or a letter. - * * Must be unique within the Project. - * - * Generated from protobuf field string data_taxonomy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_taxonomy_id = ''; - /** - * Required. DataTaxonomy resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataTaxonomy data_taxonomy = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_taxonomy = null; - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param string $parent Please see {@see DataTaxonomyServiceClient::locationName()} for help formatting this field. - * @param \Google\Cloud\Dataplex\V1\DataTaxonomy $dataTaxonomy Required. DataTaxonomy resource. - * @param string $dataTaxonomyId Required. DataTaxonomy identifier. - * * Must contain only lowercase letters, numbers and hyphens. - * * Must start with a letter. - * * Must be between 1-63 characters. - * * Must end with a number or a letter. - * * Must be unique within the Project. - * - * @return \Google\Cloud\Dataplex\V1\CreateDataTaxonomyRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Dataplex\V1\DataTaxonomy $dataTaxonomy, string $dataTaxonomyId): self - { - return (new self()) - ->setParent($parent) - ->setDataTaxonomy($dataTaxonomy) - ->setDataTaxonomyId($dataTaxonomyId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * @type string $data_taxonomy_id - * Required. DataTaxonomy identifier. - * * Must contain only lowercase letters, numbers and hyphens. - * * Must start with a letter. - * * Must be between 1-63 characters. - * * Must end with a number or a letter. - * * Must be unique within the Project. - * @type \Google\Cloud\Dataplex\V1\DataTaxonomy $data_taxonomy - * Required. DataTaxonomy resource. - * @type bool $validate_only - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataTaxonomy::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * 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. DataTaxonomy identifier. - * * Must contain only lowercase letters, numbers and hyphens. - * * Must start with a letter. - * * Must be between 1-63 characters. - * * Must end with a number or a letter. - * * Must be unique within the Project. - * - * Generated from protobuf field string data_taxonomy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDataTaxonomyId() - { - return $this->data_taxonomy_id; - } - - /** - * Required. DataTaxonomy identifier. - * * Must contain only lowercase letters, numbers and hyphens. - * * Must start with a letter. - * * Must be between 1-63 characters. - * * Must end with a number or a letter. - * * Must be unique within the Project. - * - * Generated from protobuf field string data_taxonomy_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDataTaxonomyId($var) - { - GPBUtil::checkString($var, True); - $this->data_taxonomy_id = $var; - - return $this; - } - - /** - * Required. DataTaxonomy resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataTaxonomy data_taxonomy = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataplex\V1\DataTaxonomy|null - */ - public function getDataTaxonomy() - { - return $this->data_taxonomy; - } - - public function hasDataTaxonomy() - { - return isset($this->data_taxonomy); - } - - public function clearDataTaxonomy() - { - unset($this->data_taxonomy); - } - - /** - * Required. DataTaxonomy resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataTaxonomy data_taxonomy = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\DataTaxonomy $var - * @return $this - */ - public function setDataTaxonomy($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataTaxonomy::class); - $this->data_taxonomy = $var; - - return $this; - } - - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateEncryptionConfigRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateEncryptionConfigRequest.php deleted file mode 100644 index 10212335db2d..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateEncryptionConfigRequest.php +++ /dev/null @@ -1,173 +0,0 @@ -google.cloud.dataplex.v1.CreateEncryptionConfigRequest - */ -class CreateEncryptionConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The location at which the EncryptionConfig is to be created. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The ID of the - * [EncryptionConfig][google.cloud.dataplex.v1.EncryptionConfig] to create. - * Currently, only a value of "default" is supported. - * - * Generated from protobuf field string encryption_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $encryption_config_id = ''; - /** - * Required. The EncryptionConfig to create. - * - * Generated from protobuf field .google.cloud.dataplex.v1.EncryptionConfig encryption_config = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $encryption_config = null; - - /** - * @param string $parent Required. The location at which the EncryptionConfig is to be created. Please see - * {@see CmekServiceClient::organizationLocationName()} for help formatting this field. - * @param \Google\Cloud\Dataplex\V1\EncryptionConfig $encryptionConfig Required. The EncryptionConfig to create. - * @param string $encryptionConfigId Required. The ID of the - * [EncryptionConfig][google.cloud.dataplex.v1.EncryptionConfig] to create. - * Currently, only a value of "default" is supported. - * - * @return \Google\Cloud\Dataplex\V1\CreateEncryptionConfigRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Dataplex\V1\EncryptionConfig $encryptionConfig, string $encryptionConfigId): self - { - return (new self()) - ->setParent($parent) - ->setEncryptionConfig($encryptionConfig) - ->setEncryptionConfigId($encryptionConfigId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The location at which the EncryptionConfig is to be created. - * @type string $encryption_config_id - * Required. The ID of the - * [EncryptionConfig][google.cloud.dataplex.v1.EncryptionConfig] to create. - * Currently, only a value of "default" is supported. - * @type \Google\Cloud\Dataplex\V1\EncryptionConfig $encryption_config - * Required. The EncryptionConfig to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Cmek::initOnce(); - parent::__construct($data); - } - - /** - * Required. The location at which the EncryptionConfig is to be created. - * - * 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 location at which the EncryptionConfig is to be created. - * - * 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 ID of the - * [EncryptionConfig][google.cloud.dataplex.v1.EncryptionConfig] to create. - * Currently, only a value of "default" is supported. - * - * Generated from protobuf field string encryption_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getEncryptionConfigId() - { - return $this->encryption_config_id; - } - - /** - * Required. The ID of the - * [EncryptionConfig][google.cloud.dataplex.v1.EncryptionConfig] to create. - * Currently, only a value of "default" is supported. - * - * Generated from protobuf field string encryption_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setEncryptionConfigId($var) - { - GPBUtil::checkString($var, True); - $this->encryption_config_id = $var; - - return $this; - } - - /** - * Required. The EncryptionConfig to create. - * - * Generated from protobuf field .google.cloud.dataplex.v1.EncryptionConfig encryption_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataplex\V1\EncryptionConfig|null - */ - public function getEncryptionConfig() - { - return $this->encryption_config; - } - - public function hasEncryptionConfig() - { - return isset($this->encryption_config); - } - - public function clearEncryptionConfig() - { - unset($this->encryption_config); - } - - /** - * Required. The EncryptionConfig to create. - * - * Generated from protobuf field .google.cloud.dataplex.v1.EncryptionConfig encryption_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\EncryptionConfig $var - * @return $this - */ - public function setEncryptionConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\EncryptionConfig::class); - $this->encryption_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateEntityRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateEntityRequest.php deleted file mode 100644 index 79fe62114e60..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateEntityRequest.php +++ /dev/null @@ -1,170 +0,0 @@ -google.cloud.dataplex.v1.CreateEntityRequest - */ -class CreateEntityRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the parent zone: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. Entity resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Entity entity = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $entity = null; - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param string $parent Required. The resource name of the parent zone: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. Please see - * {@see MetadataServiceClient::zoneName()} for help formatting this field. - * @param \Google\Cloud\Dataplex\V1\Entity $entity Required. Entity resource. - * - * @return \Google\Cloud\Dataplex\V1\CreateEntityRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Dataplex\V1\Entity $entity): self - { - return (new self()) - ->setParent($parent) - ->setEntity($entity); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The resource name of the parent zone: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. - * @type \Google\Cloud\Dataplex\V1\Entity $entity - * Required. Entity resource. - * @type bool $validate_only - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Metadata::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the parent zone: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. - * - * 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 resource name of the parent zone: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. - * - * 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. Entity resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Entity entity = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataplex\V1\Entity|null - */ - public function getEntity() - { - return $this->entity; - } - - public function hasEntity() - { - return isset($this->entity); - } - - public function clearEntity() - { - unset($this->entity); - } - - /** - * Required. Entity resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Entity entity = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\Entity $var - * @return $this - */ - public function setEntity($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Entity::class); - $this->entity = $var; - - return $this; - } - - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateEntryGroupRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateEntryGroupRequest.php deleted file mode 100644 index 76f7bd3e59cf..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateEntryGroupRequest.php +++ /dev/null @@ -1,211 +0,0 @@ -google.cloud.dataplex.v1.CreateEntryGroupRequest - */ -class CreateEntryGroupRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the entryGroup, of the form: - * projects/{project_number}/locations/{location_id} - * where `location_id` refers to a Google Cloud region. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. EntryGroup identifier. - * - * Generated from protobuf field string entry_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $entry_group_id = ''; - /** - * Required. EntryGroup Resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.EntryGroup entry_group = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $entry_group = null; - /** - * Optional. The service validates the request without performing any - * mutations. The default is false. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param string $parent Required. The resource name of the entryGroup, of the form: - * projects/{project_number}/locations/{location_id} - * where `location_id` refers to a Google Cloud region. Please see - * {@see CatalogServiceClient::locationName()} for help formatting this field. - * @param \Google\Cloud\Dataplex\V1\EntryGroup $entryGroup Required. EntryGroup Resource. - * @param string $entryGroupId Required. EntryGroup identifier. - * - * @return \Google\Cloud\Dataplex\V1\CreateEntryGroupRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Dataplex\V1\EntryGroup $entryGroup, string $entryGroupId): self - { - return (new self()) - ->setParent($parent) - ->setEntryGroup($entryGroup) - ->setEntryGroupId($entryGroupId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The resource name of the entryGroup, of the form: - * projects/{project_number}/locations/{location_id} - * where `location_id` refers to a Google Cloud region. - * @type string $entry_group_id - * Required. EntryGroup identifier. - * @type \Google\Cloud\Dataplex\V1\EntryGroup $entry_group - * Required. EntryGroup Resource. - * @type bool $validate_only - * Optional. The service validates the request without performing any - * mutations. The default is false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the entryGroup, of the form: - * projects/{project_number}/locations/{location_id} - * where `location_id` refers to a Google Cloud region. - * - * 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 resource name of the entryGroup, of the form: - * projects/{project_number}/locations/{location_id} - * where `location_id` refers to a Google Cloud region. - * - * 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. EntryGroup identifier. - * - * Generated from protobuf field string entry_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getEntryGroupId() - { - return $this->entry_group_id; - } - - /** - * Required. EntryGroup identifier. - * - * Generated from protobuf field string entry_group_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setEntryGroupId($var) - { - GPBUtil::checkString($var, True); - $this->entry_group_id = $var; - - return $this; - } - - /** - * Required. EntryGroup Resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.EntryGroup entry_group = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataplex\V1\EntryGroup|null - */ - public function getEntryGroup() - { - return $this->entry_group; - } - - public function hasEntryGroup() - { - return isset($this->entry_group); - } - - public function clearEntryGroup() - { - unset($this->entry_group); - } - - /** - * Required. EntryGroup Resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.EntryGroup entry_group = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\EntryGroup $var - * @return $this - */ - public function setEntryGroup($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\EntryGroup::class); - $this->entry_group = $var; - - return $this; - } - - /** - * Optional. The service validates the request without performing any - * mutations. The default is false. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. The service validates the request without performing any - * mutations. The default is false. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateEntryLinkRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateEntryLinkRequest.php deleted file mode 100644 index b7dd5733206c..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateEntryLinkRequest.php +++ /dev/null @@ -1,193 +0,0 @@ -google.cloud.dataplex.v1.CreateEntryLinkRequest - */ -class CreateEntryLinkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the parent Entry Group: - * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. Entry Link identifier - * * Must contain only lowercase letters, numbers and hyphens. - * * Must start with a letter. - * * Must be between 1-63 characters. - * * Must end with a number or a letter. - * * Must be unique within the EntryGroup. - * - * Generated from protobuf field string entry_link_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $entry_link_id = ''; - /** - * Required. Entry Link resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.EntryLink entry_link = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $entry_link = null; - - /** - * @param string $parent Required. The resource name of the parent Entry Group: - * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`. Please see - * {@see CatalogServiceClient::entryGroupName()} for help formatting this field. - * @param \Google\Cloud\Dataplex\V1\EntryLink $entryLink Required. Entry Link resource. - * @param string $entryLinkId Required. Entry Link identifier - * * Must contain only lowercase letters, numbers and hyphens. - * * Must start with a letter. - * * Must be between 1-63 characters. - * * Must end with a number or a letter. - * * Must be unique within the EntryGroup. - * - * @return \Google\Cloud\Dataplex\V1\CreateEntryLinkRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Dataplex\V1\EntryLink $entryLink, string $entryLinkId): self - { - return (new self()) - ->setParent($parent) - ->setEntryLink($entryLink) - ->setEntryLinkId($entryLinkId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The resource name of the parent Entry Group: - * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`. - * @type string $entry_link_id - * Required. Entry Link identifier - * * Must contain only lowercase letters, numbers and hyphens. - * * Must start with a letter. - * * Must be between 1-63 characters. - * * Must end with a number or a letter. - * * Must be unique within the EntryGroup. - * @type \Google\Cloud\Dataplex\V1\EntryLink $entry_link - * Required. Entry Link resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the parent Entry Group: - * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`. - * - * 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 resource name of the parent Entry Group: - * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`. - * - * 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. Entry Link identifier - * * Must contain only lowercase letters, numbers and hyphens. - * * Must start with a letter. - * * Must be between 1-63 characters. - * * Must end with a number or a letter. - * * Must be unique within the EntryGroup. - * - * Generated from protobuf field string entry_link_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getEntryLinkId() - { - return $this->entry_link_id; - } - - /** - * Required. Entry Link identifier - * * Must contain only lowercase letters, numbers and hyphens. - * * Must start with a letter. - * * Must be between 1-63 characters. - * * Must end with a number or a letter. - * * Must be unique within the EntryGroup. - * - * Generated from protobuf field string entry_link_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setEntryLinkId($var) - { - GPBUtil::checkString($var, True); - $this->entry_link_id = $var; - - return $this; - } - - /** - * Required. Entry Link resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.EntryLink entry_link = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataplex\V1\EntryLink|null - */ - public function getEntryLink() - { - return $this->entry_link; - } - - public function hasEntryLink() - { - return isset($this->entry_link); - } - - public function clearEntryLink() - { - unset($this->entry_link); - } - - /** - * Required. Entry Link resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.EntryLink entry_link = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\EntryLink $var - * @return $this - */ - public function setEntryLink($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\EntryLink::class); - $this->entry_link = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateEntryRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateEntryRequest.php deleted file mode 100644 index 3884740fbe84..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateEntryRequest.php +++ /dev/null @@ -1,247 +0,0 @@ -google.cloud.dataplex.v1.CreateEntryRequest - */ -class CreateEntryRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the parent Entry Group: - * `projects/{project}/locations/{location}/entryGroups/{entry_group}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. Entry identifier. It has to be unique within an Entry Group. - * Entries corresponding to Google Cloud resources use an Entry ID format - * based on [full resource - * names](https://cloud.google.com/apis/design/resource_names#full_resource_name). - * The format is a full resource name of the resource without the - * prefix double slashes in the API service name part of the full resource - * name. This allows retrieval of entries using their associated resource - * name. - * For example, if the full resource name of a resource is - * `//library.googleapis.com/shelves/shelf1/books/book2`, - * then the suggested entry_id is - * `library.googleapis.com/shelves/shelf1/books/book2`. - * It is also suggested to follow the same convention for entries - * corresponding to resources from providers or systems other than Google - * Cloud. - * The maximum size of the field is 4000 characters. - * - * Generated from protobuf field string entry_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $entry_id = ''; - /** - * Required. Entry resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Entry entry = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $entry = null; - - /** - * @param string $parent Required. The resource name of the parent Entry Group: - * `projects/{project}/locations/{location}/entryGroups/{entry_group}`. Please see - * {@see CatalogServiceClient::entryGroupName()} for help formatting this field. - * @param \Google\Cloud\Dataplex\V1\Entry $entry Required. Entry resource. - * @param string $entryId Required. Entry identifier. It has to be unique within an Entry Group. - * - * Entries corresponding to Google Cloud resources use an Entry ID format - * based on [full resource - * names](https://cloud.google.com/apis/design/resource_names#full_resource_name). - * The format is a full resource name of the resource without the - * prefix double slashes in the API service name part of the full resource - * name. This allows retrieval of entries using their associated resource - * name. - * - * For example, if the full resource name of a resource is - * `//library.googleapis.com/shelves/shelf1/books/book2`, - * then the suggested entry_id is - * `library.googleapis.com/shelves/shelf1/books/book2`. - * - * It is also suggested to follow the same convention for entries - * corresponding to resources from providers or systems other than Google - * Cloud. - * - * The maximum size of the field is 4000 characters. - * - * @return \Google\Cloud\Dataplex\V1\CreateEntryRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Dataplex\V1\Entry $entry, string $entryId): self - { - return (new self()) - ->setParent($parent) - ->setEntry($entry) - ->setEntryId($entryId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The resource name of the parent Entry Group: - * `projects/{project}/locations/{location}/entryGroups/{entry_group}`. - * @type string $entry_id - * Required. Entry identifier. It has to be unique within an Entry Group. - * Entries corresponding to Google Cloud resources use an Entry ID format - * based on [full resource - * names](https://cloud.google.com/apis/design/resource_names#full_resource_name). - * The format is a full resource name of the resource without the - * prefix double slashes in the API service name part of the full resource - * name. This allows retrieval of entries using their associated resource - * name. - * For example, if the full resource name of a resource is - * `//library.googleapis.com/shelves/shelf1/books/book2`, - * then the suggested entry_id is - * `library.googleapis.com/shelves/shelf1/books/book2`. - * It is also suggested to follow the same convention for entries - * corresponding to resources from providers or systems other than Google - * Cloud. - * The maximum size of the field is 4000 characters. - * @type \Google\Cloud\Dataplex\V1\Entry $entry - * Required. Entry resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the parent Entry Group: - * `projects/{project}/locations/{location}/entryGroups/{entry_group}`. - * - * 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 resource name of the parent Entry Group: - * `projects/{project}/locations/{location}/entryGroups/{entry_group}`. - * - * 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. Entry identifier. It has to be unique within an Entry Group. - * Entries corresponding to Google Cloud resources use an Entry ID format - * based on [full resource - * names](https://cloud.google.com/apis/design/resource_names#full_resource_name). - * The format is a full resource name of the resource without the - * prefix double slashes in the API service name part of the full resource - * name. This allows retrieval of entries using their associated resource - * name. - * For example, if the full resource name of a resource is - * `//library.googleapis.com/shelves/shelf1/books/book2`, - * then the suggested entry_id is - * `library.googleapis.com/shelves/shelf1/books/book2`. - * It is also suggested to follow the same convention for entries - * corresponding to resources from providers or systems other than Google - * Cloud. - * The maximum size of the field is 4000 characters. - * - * Generated from protobuf field string entry_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getEntryId() - { - return $this->entry_id; - } - - /** - * Required. Entry identifier. It has to be unique within an Entry Group. - * Entries corresponding to Google Cloud resources use an Entry ID format - * based on [full resource - * names](https://cloud.google.com/apis/design/resource_names#full_resource_name). - * The format is a full resource name of the resource without the - * prefix double slashes in the API service name part of the full resource - * name. This allows retrieval of entries using their associated resource - * name. - * For example, if the full resource name of a resource is - * `//library.googleapis.com/shelves/shelf1/books/book2`, - * then the suggested entry_id is - * `library.googleapis.com/shelves/shelf1/books/book2`. - * It is also suggested to follow the same convention for entries - * corresponding to resources from providers or systems other than Google - * Cloud. - * The maximum size of the field is 4000 characters. - * - * Generated from protobuf field string entry_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setEntryId($var) - { - GPBUtil::checkString($var, True); - $this->entry_id = $var; - - return $this; - } - - /** - * Required. Entry resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Entry entry = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataplex\V1\Entry|null - */ - public function getEntry() - { - return $this->entry; - } - - public function hasEntry() - { - return isset($this->entry); - } - - public function clearEntry() - { - unset($this->entry); - } - - /** - * Required. Entry resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Entry entry = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\Entry $var - * @return $this - */ - public function setEntry($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Entry::class); - $this->entry = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateEntryTypeRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateEntryTypeRequest.php deleted file mode 100644 index 2f84cd0f070e..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateEntryTypeRequest.php +++ /dev/null @@ -1,211 +0,0 @@ -google.cloud.dataplex.v1.CreateEntryTypeRequest - */ -class CreateEntryTypeRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the EntryType, of the form: - * projects/{project_number}/locations/{location_id} - * where `location_id` refers to a Google Cloud region. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. EntryType identifier. - * - * Generated from protobuf field string entry_type_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $entry_type_id = ''; - /** - * Required. EntryType Resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.EntryType entry_type = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $entry_type = null; - /** - * Optional. The service validates the request without performing any - * mutations. The default is false. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param string $parent Required. The resource name of the EntryType, of the form: - * projects/{project_number}/locations/{location_id} - * where `location_id` refers to a Google Cloud region. Please see - * {@see CatalogServiceClient::locationName()} for help formatting this field. - * @param \Google\Cloud\Dataplex\V1\EntryType $entryType Required. EntryType Resource. - * @param string $entryTypeId Required. EntryType identifier. - * - * @return \Google\Cloud\Dataplex\V1\CreateEntryTypeRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Dataplex\V1\EntryType $entryType, string $entryTypeId): self - { - return (new self()) - ->setParent($parent) - ->setEntryType($entryType) - ->setEntryTypeId($entryTypeId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The resource name of the EntryType, of the form: - * projects/{project_number}/locations/{location_id} - * where `location_id` refers to a Google Cloud region. - * @type string $entry_type_id - * Required. EntryType identifier. - * @type \Google\Cloud\Dataplex\V1\EntryType $entry_type - * Required. EntryType Resource. - * @type bool $validate_only - * Optional. The service validates the request without performing any - * mutations. The default is false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the EntryType, of the form: - * projects/{project_number}/locations/{location_id} - * where `location_id` refers to a Google Cloud region. - * - * 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 resource name of the EntryType, of the form: - * projects/{project_number}/locations/{location_id} - * where `location_id` refers to a Google Cloud region. - * - * 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. EntryType identifier. - * - * Generated from protobuf field string entry_type_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getEntryTypeId() - { - return $this->entry_type_id; - } - - /** - * Required. EntryType identifier. - * - * Generated from protobuf field string entry_type_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setEntryTypeId($var) - { - GPBUtil::checkString($var, True); - $this->entry_type_id = $var; - - return $this; - } - - /** - * Required. EntryType Resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.EntryType entry_type = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataplex\V1\EntryType|null - */ - public function getEntryType() - { - return $this->entry_type; - } - - public function hasEntryType() - { - return isset($this->entry_type); - } - - public function clearEntryType() - { - unset($this->entry_type); - } - - /** - * Required. EntryType Resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.EntryType entry_type = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\EntryType $var - * @return $this - */ - public function setEntryType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\EntryType::class); - $this->entry_type = $var; - - return $this; - } - - /** - * Optional. The service validates the request without performing any - * mutations. The default is false. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. The service validates the request without performing any - * mutations. The default is false. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateGlossaryCategoryRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateGlossaryCategoryRequest.php deleted file mode 100644 index 5c46e3508abe..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateGlossaryCategoryRequest.php +++ /dev/null @@ -1,178 +0,0 @@ -google.cloud.dataplex.v1.CreateGlossaryCategoryRequest - */ -class CreateGlossaryCategoryRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource where this GlossaryCategory will be created. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} - * where `locationId` refers to a Google Cloud region. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. GlossaryCategory identifier. - * - * Generated from protobuf field string category_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $category_id = ''; - /** - * Required. The GlossaryCategory to create. - * - * Generated from protobuf field .google.cloud.dataplex.v1.GlossaryCategory category = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $category = null; - - /** - * @param string $parent Required. The parent resource where this GlossaryCategory will be created. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} - * where `locationId` refers to a Google Cloud region. Please see - * {@see BusinessGlossaryServiceClient::glossaryName()} for help formatting this field. - * @param \Google\Cloud\Dataplex\V1\GlossaryCategory $category Required. The GlossaryCategory to create. - * @param string $categoryId Required. GlossaryCategory identifier. - * - * @return \Google\Cloud\Dataplex\V1\CreateGlossaryCategoryRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Dataplex\V1\GlossaryCategory $category, string $categoryId): self - { - return (new self()) - ->setParent($parent) - ->setCategory($category) - ->setCategoryId($categoryId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource where this GlossaryCategory will be created. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} - * where `locationId` refers to a Google Cloud region. - * @type string $category_id - * Required. GlossaryCategory identifier. - * @type \Google\Cloud\Dataplex\V1\GlossaryCategory $category - * Required. The GlossaryCategory to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\BusinessGlossary::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource where this GlossaryCategory will be created. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} - * where `locationId` refers to a Google Cloud region. - * - * 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 GlossaryCategory will be created. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} - * where `locationId` refers to a Google Cloud region. - * - * 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. GlossaryCategory identifier. - * - * Generated from protobuf field string category_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getCategoryId() - { - return $this->category_id; - } - - /** - * Required. GlossaryCategory identifier. - * - * Generated from protobuf field string category_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setCategoryId($var) - { - GPBUtil::checkString($var, True); - $this->category_id = $var; - - return $this; - } - - /** - * Required. The GlossaryCategory to create. - * - * Generated from protobuf field .google.cloud.dataplex.v1.GlossaryCategory category = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataplex\V1\GlossaryCategory|null - */ - public function getCategory() - { - return $this->category; - } - - public function hasCategory() - { - return isset($this->category); - } - - public function clearCategory() - { - unset($this->category); - } - - /** - * Required. The GlossaryCategory to create. - * - * Generated from protobuf field .google.cloud.dataplex.v1.GlossaryCategory category = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\GlossaryCategory $var - * @return $this - */ - public function setCategory($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\GlossaryCategory::class); - $this->category = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateGlossaryRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateGlossaryRequest.php deleted file mode 100644 index d36354d02d47..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateGlossaryRequest.php +++ /dev/null @@ -1,211 +0,0 @@ -google.cloud.dataplex.v1.CreateGlossaryRequest - */ -class CreateGlossaryRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource where this Glossary will be created. - * Format: projects/{project_id_or_number}/locations/{location_id} - * where `location_id` refers to a Google Cloud region. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. Glossary ID: Glossary identifier. - * - * Generated from protobuf field string glossary_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $glossary_id = ''; - /** - * Required. The Glossary to create. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Glossary glossary = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $glossary = null; - /** - * Optional. Validates the request without actually creating the Glossary. - * Default: false. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param string $parent Required. The parent resource where this Glossary will be created. - * Format: projects/{project_id_or_number}/locations/{location_id} - * where `location_id` refers to a Google Cloud region. Please see - * {@see BusinessGlossaryServiceClient::locationName()} for help formatting this field. - * @param \Google\Cloud\Dataplex\V1\Glossary $glossary Required. The Glossary to create. - * @param string $glossaryId Required. Glossary ID: Glossary identifier. - * - * @return \Google\Cloud\Dataplex\V1\CreateGlossaryRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Dataplex\V1\Glossary $glossary, string $glossaryId): self - { - return (new self()) - ->setParent($parent) - ->setGlossary($glossary) - ->setGlossaryId($glossaryId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource where this Glossary will be created. - * Format: projects/{project_id_or_number}/locations/{location_id} - * where `location_id` refers to a Google Cloud region. - * @type string $glossary_id - * Required. Glossary ID: Glossary identifier. - * @type \Google\Cloud\Dataplex\V1\Glossary $glossary - * Required. The Glossary to create. - * @type bool $validate_only - * Optional. Validates the request without actually creating the Glossary. - * Default: false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\BusinessGlossary::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource where this Glossary will be created. - * Format: projects/{project_id_or_number}/locations/{location_id} - * where `location_id` refers to a Google Cloud region. - * - * 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 Glossary will be created. - * Format: projects/{project_id_or_number}/locations/{location_id} - * where `location_id` refers to a Google Cloud region. - * - * 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. Glossary ID: Glossary identifier. - * - * Generated from protobuf field string glossary_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getGlossaryId() - { - return $this->glossary_id; - } - - /** - * Required. Glossary ID: Glossary identifier. - * - * Generated from protobuf field string glossary_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setGlossaryId($var) - { - GPBUtil::checkString($var, True); - $this->glossary_id = $var; - - return $this; - } - - /** - * Required. The Glossary to create. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Glossary glossary = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataplex\V1\Glossary|null - */ - public function getGlossary() - { - return $this->glossary; - } - - public function hasGlossary() - { - return isset($this->glossary); - } - - public function clearGlossary() - { - unset($this->glossary); - } - - /** - * Required. The Glossary to create. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Glossary glossary = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\Glossary $var - * @return $this - */ - public function setGlossary($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Glossary::class); - $this->glossary = $var; - - return $this; - } - - /** - * Optional. Validates the request without actually creating the Glossary. - * Default: false. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. Validates the request without actually creating the Glossary. - * Default: false. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateGlossaryTermRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateGlossaryTermRequest.php deleted file mode 100644 index 3edc1d14fa9e..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateGlossaryTermRequest.php +++ /dev/null @@ -1,178 +0,0 @@ -google.cloud.dataplex.v1.CreateGlossaryTermRequest - */ -class CreateGlossaryTermRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource where the GlossaryTerm will be created. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} - * where `location_id` refers to a Google Cloud region. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. GlossaryTerm identifier. - * - * Generated from protobuf field string term_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $term_id = ''; - /** - * Required. The GlossaryTerm to create. - * - * Generated from protobuf field .google.cloud.dataplex.v1.GlossaryTerm term = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $term = null; - - /** - * @param string $parent Required. The parent resource where the GlossaryTerm will be created. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} - * where `location_id` refers to a Google Cloud region. Please see - * {@see BusinessGlossaryServiceClient::glossaryName()} for help formatting this field. - * @param \Google\Cloud\Dataplex\V1\GlossaryTerm $term Required. The GlossaryTerm to create. - * @param string $termId Required. GlossaryTerm identifier. - * - * @return \Google\Cloud\Dataplex\V1\CreateGlossaryTermRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Dataplex\V1\GlossaryTerm $term, string $termId): self - { - return (new self()) - ->setParent($parent) - ->setTerm($term) - ->setTermId($termId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource where the GlossaryTerm will be created. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} - * where `location_id` refers to a Google Cloud region. - * @type string $term_id - * Required. GlossaryTerm identifier. - * @type \Google\Cloud\Dataplex\V1\GlossaryTerm $term - * Required. The GlossaryTerm to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\BusinessGlossary::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource where the GlossaryTerm will be created. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} - * where `location_id` refers to a Google Cloud region. - * - * 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 GlossaryTerm will be created. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} - * where `location_id` refers to a Google Cloud region. - * - * 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. GlossaryTerm identifier. - * - * Generated from protobuf field string term_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getTermId() - { - return $this->term_id; - } - - /** - * Required. GlossaryTerm identifier. - * - * Generated from protobuf field string term_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setTermId($var) - { - GPBUtil::checkString($var, True); - $this->term_id = $var; - - return $this; - } - - /** - * Required. The GlossaryTerm to create. - * - * Generated from protobuf field .google.cloud.dataplex.v1.GlossaryTerm term = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataplex\V1\GlossaryTerm|null - */ - public function getTerm() - { - return $this->term; - } - - public function hasTerm() - { - return isset($this->term); - } - - public function clearTerm() - { - unset($this->term); - } - - /** - * Required. The GlossaryTerm to create. - * - * Generated from protobuf field .google.cloud.dataplex.v1.GlossaryTerm term = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\GlossaryTerm $var - * @return $this - */ - public function setTerm($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\GlossaryTerm::class); - $this->term = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateLakeRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateLakeRequest.php deleted file mode 100644 index cd67d67b5ade..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateLakeRequest.php +++ /dev/null @@ -1,246 +0,0 @@ -google.cloud.dataplex.v1.CreateLakeRequest - */ -class CreateLakeRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the lake location, of the form: - * projects/{project_number}/locations/{location_id} - * where `location_id` refers to a Google Cloud region. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. Lake identifier. - * This ID will be used to generate names such as database and dataset names - * when publishing metadata to Hive Metastore and BigQuery. - * * Must contain only lowercase letters, numbers and hyphens. - * * Must start with a letter. - * * Must end with a number or a letter. - * * Must be between 1-63 characters. - * * Must be unique within the customer project / location. - * - * Generated from protobuf field string lake_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $lake_id = ''; - /** - * Required. Lake resource - * - * Generated from protobuf field .google.cloud.dataplex.v1.Lake lake = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $lake = null; - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param string $parent Required. The resource name of the lake location, of the form: - * projects/{project_number}/locations/{location_id} - * where `location_id` refers to a Google Cloud region. Please see - * {@see DataplexServiceClient::locationName()} for help formatting this field. - * @param \Google\Cloud\Dataplex\V1\Lake $lake Required. Lake resource - * @param string $lakeId Required. Lake identifier. - * This ID will be used to generate names such as database and dataset names - * when publishing metadata to Hive Metastore and BigQuery. - * * Must contain only lowercase letters, numbers and hyphens. - * * Must start with a letter. - * * Must end with a number or a letter. - * * Must be between 1-63 characters. - * * Must be unique within the customer project / location. - * - * @return \Google\Cloud\Dataplex\V1\CreateLakeRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Dataplex\V1\Lake $lake, string $lakeId): self - { - return (new self()) - ->setParent($parent) - ->setLake($lake) - ->setLakeId($lakeId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The resource name of the lake location, of the form: - * projects/{project_number}/locations/{location_id} - * where `location_id` refers to a Google Cloud region. - * @type string $lake_id - * Required. Lake identifier. - * This ID will be used to generate names such as database and dataset names - * when publishing metadata to Hive Metastore and BigQuery. - * * Must contain only lowercase letters, numbers and hyphens. - * * Must start with a letter. - * * Must end with a number or a letter. - * * Must be between 1-63 characters. - * * Must be unique within the customer project / location. - * @type \Google\Cloud\Dataplex\V1\Lake $lake - * Required. Lake resource - * @type bool $validate_only - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the lake location, of the form: - * projects/{project_number}/locations/{location_id} - * where `location_id` refers to a Google Cloud region. - * - * 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 resource name of the lake location, of the form: - * projects/{project_number}/locations/{location_id} - * where `location_id` refers to a Google Cloud region. - * - * 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. Lake identifier. - * This ID will be used to generate names such as database and dataset names - * when publishing metadata to Hive Metastore and BigQuery. - * * Must contain only lowercase letters, numbers and hyphens. - * * Must start with a letter. - * * Must end with a number or a letter. - * * Must be between 1-63 characters. - * * Must be unique within the customer project / location. - * - * Generated from protobuf field string lake_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getLakeId() - { - return $this->lake_id; - } - - /** - * Required. Lake identifier. - * This ID will be used to generate names such as database and dataset names - * when publishing metadata to Hive Metastore and BigQuery. - * * Must contain only lowercase letters, numbers and hyphens. - * * Must start with a letter. - * * Must end with a number or a letter. - * * Must be between 1-63 characters. - * * Must be unique within the customer project / location. - * - * Generated from protobuf field string lake_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setLakeId($var) - { - GPBUtil::checkString($var, True); - $this->lake_id = $var; - - return $this; - } - - /** - * Required. Lake resource - * - * Generated from protobuf field .google.cloud.dataplex.v1.Lake lake = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataplex\V1\Lake|null - */ - public function getLake() - { - return $this->lake; - } - - public function hasLake() - { - return isset($this->lake); - } - - public function clearLake() - { - unset($this->lake); - } - - /** - * Required. Lake resource - * - * Generated from protobuf field .google.cloud.dataplex.v1.Lake lake = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\Lake $var - * @return $this - */ - public function setLake($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Lake::class); - $this->lake = $var; - - return $this; - } - - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateMetadataFeedRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateMetadataFeedRequest.php deleted file mode 100644 index 72f250f7844b..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateMetadataFeedRequest.php +++ /dev/null @@ -1,211 +0,0 @@ -google.cloud.dataplex.v1.CreateMetadataFeedRequest - */ -class CreateMetadataFeedRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the parent location, in the format - * `projects/{project_id_or_number}/locations/{location_id}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The metadata job resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.MetadataFeed metadata_feed = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $metadata_feed = null; - /** - * Optional. The metadata job ID. If not provided, a unique ID is generated - * with the prefix `metadata-job-`. - * - * Generated from protobuf field string metadata_feed_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $metadata_feed_id = ''; - /** - * Optional. The service validates the request without performing any - * mutations. The default is false. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param string $parent Required. The resource name of the parent location, in the format - * `projects/{project_id_or_number}/locations/{location_id}` - * Please see {@see CatalogServiceClient::locationName()} for help formatting this field. - * @param \Google\Cloud\Dataplex\V1\MetadataFeed $metadataFeed Required. The metadata job resource. - * @param string $metadataFeedId Optional. The metadata job ID. If not provided, a unique ID is generated - * with the prefix `metadata-job-`. - * - * @return \Google\Cloud\Dataplex\V1\CreateMetadataFeedRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Dataplex\V1\MetadataFeed $metadataFeed, string $metadataFeedId): self - { - return (new self()) - ->setParent($parent) - ->setMetadataFeed($metadataFeed) - ->setMetadataFeedId($metadataFeedId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The resource name of the parent location, in the format - * `projects/{project_id_or_number}/locations/{location_id}` - * @type \Google\Cloud\Dataplex\V1\MetadataFeed $metadata_feed - * Required. The metadata job resource. - * @type string $metadata_feed_id - * Optional. The metadata job ID. If not provided, a unique ID is generated - * with the prefix `metadata-job-`. - * @type bool $validate_only - * Optional. The service validates the request without performing any - * mutations. The default is false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the parent location, in the format - * `projects/{project_id_or_number}/locations/{location_id}` - * - * 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 resource name of the parent location, in the format - * `projects/{project_id_or_number}/locations/{location_id}` - * - * 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 metadata job resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.MetadataFeed metadata_feed = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataplex\V1\MetadataFeed|null - */ - public function getMetadataFeed() - { - return $this->metadata_feed; - } - - public function hasMetadataFeed() - { - return isset($this->metadata_feed); - } - - public function clearMetadataFeed() - { - unset($this->metadata_feed); - } - - /** - * Required. The metadata job resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.MetadataFeed metadata_feed = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\MetadataFeed $var - * @return $this - */ - public function setMetadataFeed($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\MetadataFeed::class); - $this->metadata_feed = $var; - - return $this; - } - - /** - * Optional. The metadata job ID. If not provided, a unique ID is generated - * with the prefix `metadata-job-`. - * - * Generated from protobuf field string metadata_feed_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getMetadataFeedId() - { - return $this->metadata_feed_id; - } - - /** - * Optional. The metadata job ID. If not provided, a unique ID is generated - * with the prefix `metadata-job-`. - * - * Generated from protobuf field string metadata_feed_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setMetadataFeedId($var) - { - GPBUtil::checkString($var, True); - $this->metadata_feed_id = $var; - - return $this; - } - - /** - * Optional. The service validates the request without performing any - * mutations. The default is false. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. The service validates the request without performing any - * mutations. The default is false. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateMetadataJobRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateMetadataJobRequest.php deleted file mode 100644 index 2c5106757369..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateMetadataJobRequest.php +++ /dev/null @@ -1,211 +0,0 @@ -google.cloud.dataplex.v1.CreateMetadataJobRequest - */ -class CreateMetadataJobRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the parent location, in the format - * `projects/{project_id_or_number}/locations/{location_id}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The metadata job resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob metadata_job = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $metadata_job = null; - /** - * Optional. The metadata job ID. If not provided, a unique ID is generated - * with the prefix `metadata-job-`. - * - * Generated from protobuf field string metadata_job_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $metadata_job_id = ''; - /** - * Optional. The service validates the request without performing any - * mutations. The default is false. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param string $parent Required. The resource name of the parent location, in the format - * `projects/{project_id_or_number}/locations/{location_id}` - * Please see {@see CatalogServiceClient::locationName()} for help formatting this field. - * @param \Google\Cloud\Dataplex\V1\MetadataJob $metadataJob Required. The metadata job resource. - * @param string $metadataJobId Optional. The metadata job ID. If not provided, a unique ID is generated - * with the prefix `metadata-job-`. - * - * @return \Google\Cloud\Dataplex\V1\CreateMetadataJobRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Dataplex\V1\MetadataJob $metadataJob, string $metadataJobId): self - { - return (new self()) - ->setParent($parent) - ->setMetadataJob($metadataJob) - ->setMetadataJobId($metadataJobId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The resource name of the parent location, in the format - * `projects/{project_id_or_number}/locations/{location_id}` - * @type \Google\Cloud\Dataplex\V1\MetadataJob $metadata_job - * Required. The metadata job resource. - * @type string $metadata_job_id - * Optional. The metadata job ID. If not provided, a unique ID is generated - * with the prefix `metadata-job-`. - * @type bool $validate_only - * Optional. The service validates the request without performing any - * mutations. The default is false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the parent location, in the format - * `projects/{project_id_or_number}/locations/{location_id}` - * - * 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 resource name of the parent location, in the format - * `projects/{project_id_or_number}/locations/{location_id}` - * - * 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 metadata job resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob metadata_job = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataplex\V1\MetadataJob|null - */ - public function getMetadataJob() - { - return $this->metadata_job; - } - - public function hasMetadataJob() - { - return isset($this->metadata_job); - } - - public function clearMetadataJob() - { - unset($this->metadata_job); - } - - /** - * Required. The metadata job resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob metadata_job = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\MetadataJob $var - * @return $this - */ - public function setMetadataJob($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\MetadataJob::class); - $this->metadata_job = $var; - - return $this; - } - - /** - * Optional. The metadata job ID. If not provided, a unique ID is generated - * with the prefix `metadata-job-`. - * - * Generated from protobuf field string metadata_job_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getMetadataJobId() - { - return $this->metadata_job_id; - } - - /** - * Optional. The metadata job ID. If not provided, a unique ID is generated - * with the prefix `metadata-job-`. - * - * Generated from protobuf field string metadata_job_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setMetadataJobId($var) - { - GPBUtil::checkString($var, True); - $this->metadata_job_id = $var; - - return $this; - } - - /** - * Optional. The service validates the request without performing any - * mutations. The default is false. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. The service validates the request without performing any - * mutations. The default is false. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreatePartitionRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreatePartitionRequest.php deleted file mode 100644 index 52e4184fe5c3..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreatePartitionRequest.php +++ /dev/null @@ -1,170 +0,0 @@ -google.cloud.dataplex.v1.CreatePartitionRequest - */ -class CreatePartitionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the parent zone: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. Partition resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Partition partition = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $partition = null; - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param string $parent Required. The resource name of the parent zone: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`. Please see - * {@see MetadataServiceClient::entityName()} for help formatting this field. - * @param \Google\Cloud\Dataplex\V1\Partition $partition Required. Partition resource. - * - * @return \Google\Cloud\Dataplex\V1\CreatePartitionRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Dataplex\V1\Partition $partition): self - { - return (new self()) - ->setParent($parent) - ->setPartition($partition); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The resource name of the parent zone: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`. - * @type \Google\Cloud\Dataplex\V1\Partition $partition - * Required. Partition resource. - * @type bool $validate_only - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Metadata::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the parent zone: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`. - * - * 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 resource name of the parent zone: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`. - * - * 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. Partition resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Partition partition = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataplex\V1\Partition|null - */ - public function getPartition() - { - return $this->partition; - } - - public function hasPartition() - { - return isset($this->partition); - } - - public function clearPartition() - { - unset($this->partition); - } - - /** - * Required. Partition resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Partition partition = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\Partition $var - * @return $this - */ - public function setPartition($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Partition::class); - $this->partition = $var; - - return $this; - } - - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateTaskRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateTaskRequest.php deleted file mode 100644 index 4491d15c6b7f..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateTaskRequest.php +++ /dev/null @@ -1,206 +0,0 @@ -google.cloud.dataplex.v1.CreateTaskRequest - */ -class CreateTaskRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the parent lake: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. Task identifier. - * - * Generated from protobuf field string task_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $task_id = ''; - /** - * Required. Task resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Task task = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $task = null; - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param string $parent Required. The resource name of the parent lake: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. Please see - * {@see DataplexServiceClient::lakeName()} for help formatting this field. - * @param \Google\Cloud\Dataplex\V1\Task $task Required. Task resource. - * @param string $taskId Required. Task identifier. - * - * @return \Google\Cloud\Dataplex\V1\CreateTaskRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Dataplex\V1\Task $task, string $taskId): self - { - return (new self()) - ->setParent($parent) - ->setTask($task) - ->setTaskId($taskId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The resource name of the parent lake: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. - * @type string $task_id - * Required. Task identifier. - * @type \Google\Cloud\Dataplex\V1\Task $task - * Required. Task resource. - * @type bool $validate_only - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the parent lake: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. - * - * 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 resource name of the parent lake: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. - * - * 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. Task identifier. - * - * Generated from protobuf field string task_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getTaskId() - { - return $this->task_id; - } - - /** - * Required. Task identifier. - * - * Generated from protobuf field string task_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setTaskId($var) - { - GPBUtil::checkString($var, True); - $this->task_id = $var; - - return $this; - } - - /** - * Required. Task resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Task task = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataplex\V1\Task|null - */ - public function getTask() - { - return $this->task; - } - - public function hasTask() - { - return isset($this->task); - } - - public function clearTask() - { - unset($this->task); - } - - /** - * Required. Task resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Task task = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\Task $var - * @return $this - */ - public function setTask($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Task::class); - $this->task = $var; - - return $this; - } - - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateZoneRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateZoneRequest.php deleted file mode 100644 index 68e7f544d0ee..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/CreateZoneRequest.php +++ /dev/null @@ -1,246 +0,0 @@ -google.cloud.dataplex.v1.CreateZoneRequest - */ -class CreateZoneRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the parent lake: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. Zone identifier. - * This ID will be used to generate names such as database and dataset names - * when publishing metadata to Hive Metastore and BigQuery. - * * Must contain only lowercase letters, numbers and hyphens. - * * Must start with a letter. - * * Must end with a number or a letter. - * * Must be between 1-63 characters. - * * Must be unique across all lakes from all locations in a project. - * * Must not be one of the reserved IDs (i.e. "default", "global-temp") - * - * Generated from protobuf field string zone_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $zone_id = ''; - /** - * Required. Zone resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Zone zone = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $zone = null; - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param string $parent Required. The resource name of the parent lake: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. Please see - * {@see DataplexServiceClient::lakeName()} for help formatting this field. - * @param \Google\Cloud\Dataplex\V1\Zone $zone Required. Zone resource. - * @param string $zoneId Required. Zone identifier. - * This ID will be used to generate names such as database and dataset names - * when publishing metadata to Hive Metastore and BigQuery. - * * Must contain only lowercase letters, numbers and hyphens. - * * Must start with a letter. - * * Must end with a number or a letter. - * * Must be between 1-63 characters. - * * Must be unique across all lakes from all locations in a project. - * * Must not be one of the reserved IDs (i.e. "default", "global-temp") - * - * @return \Google\Cloud\Dataplex\V1\CreateZoneRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Dataplex\V1\Zone $zone, string $zoneId): self - { - return (new self()) - ->setParent($parent) - ->setZone($zone) - ->setZoneId($zoneId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The resource name of the parent lake: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. - * @type string $zone_id - * Required. Zone identifier. - * This ID will be used to generate names such as database and dataset names - * when publishing metadata to Hive Metastore and BigQuery. - * * Must contain only lowercase letters, numbers and hyphens. - * * Must start with a letter. - * * Must end with a number or a letter. - * * Must be between 1-63 characters. - * * Must be unique across all lakes from all locations in a project. - * * Must not be one of the reserved IDs (i.e. "default", "global-temp") - * @type \Google\Cloud\Dataplex\V1\Zone $zone - * Required. Zone resource. - * @type bool $validate_only - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the parent lake: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. - * - * 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 resource name of the parent lake: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. - * - * 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. Zone identifier. - * This ID will be used to generate names such as database and dataset names - * when publishing metadata to Hive Metastore and BigQuery. - * * Must contain only lowercase letters, numbers and hyphens. - * * Must start with a letter. - * * Must end with a number or a letter. - * * Must be between 1-63 characters. - * * Must be unique across all lakes from all locations in a project. - * * Must not be one of the reserved IDs (i.e. "default", "global-temp") - * - * Generated from protobuf field string zone_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getZoneId() - { - return $this->zone_id; - } - - /** - * Required. Zone identifier. - * This ID will be used to generate names such as database and dataset names - * when publishing metadata to Hive Metastore and BigQuery. - * * Must contain only lowercase letters, numbers and hyphens. - * * Must start with a letter. - * * Must end with a number or a letter. - * * Must be between 1-63 characters. - * * Must be unique across all lakes from all locations in a project. - * * Must not be one of the reserved IDs (i.e. "default", "global-temp") - * - * Generated from protobuf field string zone_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setZoneId($var) - { - GPBUtil::checkString($var, True); - $this->zone_id = $var; - - return $this; - } - - /** - * Required. Zone resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Zone zone = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataplex\V1\Zone|null - */ - public function getZone() - { - return $this->zone; - } - - public function hasZone() - { - return isset($this->zone); - } - - public function clearZone() - { - unset($this->zone); - } - - /** - * Required. Zone resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Zone zone = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\Zone $var - * @return $this - */ - public function setZone($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Zone::class); - $this->zone = $var; - - return $this; - } - - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataAccessSpec.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataAccessSpec.php deleted file mode 100644 index cf0c13e9e60a..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataAccessSpec.php +++ /dev/null @@ -1,83 +0,0 @@ -google.cloud.dataplex.v1.DataAccessSpec - */ -class DataAccessSpec extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The format of strings follows the pattern followed by IAM in the - * bindings. user:{email}, serviceAccount:{email} group:{email}. - * The set of principals to be granted reader role on data - * stored within resources. - * - * Generated from protobuf field repeated string readers = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $readers; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string[] $readers - * Optional. The format of strings follows the pattern followed by IAM in the - * bindings. user:{email}, serviceAccount:{email} group:{email}. - * The set of principals to be granted reader role on data - * stored within resources. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Security::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The format of strings follows the pattern followed by IAM in the - * bindings. user:{email}, serviceAccount:{email} group:{email}. - * The set of principals to be granted reader role on data - * stored within resources. - * - * Generated from protobuf field repeated string readers = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getReaders() - { - return $this->readers; - } - - /** - * Optional. The format of strings follows the pattern followed by IAM in the - * bindings. user:{email}, serviceAccount:{email} group:{email}. - * The set of principals to be granted reader role on data - * stored within resources. - * - * Generated from protobuf field repeated string readers = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setReaders($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->readers = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataAsset.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataAsset.php deleted file mode 100644 index eb31fbf21a17..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataAsset.php +++ /dev/null @@ -1,458 +0,0 @@ -google.cloud.dataplex.v1.DataAsset - */ -class DataAsset extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. Resource name of the data asset. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}/dataAssets/{data_asset_id} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. System generated globally unique ID for the data asset. - * This ID will be different if the data asset is deleted and re-created - * with the same name. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - */ - protected $uid = ''; - /** - * Output only. The time at which the data asset was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time at which the data asset was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Optional. This checksum is computed by the server based on the value of - * other fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $etag = ''; - /** - * Optional. User-defined labels for the data asset. - * Example: - * ``` - * { - * "environment": "production", - * "billing": "marketing-department" - * } - * ``` - * - * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $labels; - /** - * Required. Immutable. Full resource name of the cloud resource represented - * by the data asset. This must follow - * https://cloud.google.com/iam/docs/full-resource-names. Example: - * `//bigquery.googleapis.com/projects/my_project_123/datasets/dataset_456/tables/table_789` - * Only BigQuery tables and datasets are currently supported. - * Data asset creator must have getIamPolicy and setIamPolicy permissions on - * the resource. Data asset creator must also have resource specific get - * permission, for instance, bigquery.tables.get for BigQuery tables. - * - * Generated from protobuf field string resource = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - */ - protected $resource = ''; - /** - * Optional. Access groups configurations for this data asset. - * The key is `DataProduct.AccessGroup.id` and the value is - * `AccessGroupConfig`. - * Example: - * ``` - * { - * "analyst": { - * "iamRoles": ["roles/bigquery.dataViewer"] - * } - * } - * ``` - * Currently, at most one IAM role is allowed per access group. For providing - * multiple predefined IAM roles, wrap them in a custom IAM role as per - * https://cloud.google.com/iam/docs/creating-custom-roles. - * - * Generated from protobuf field map access_group_configs = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $access_group_configs; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. Resource name of the data asset. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}/dataAssets/{data_asset_id} - * @type string $uid - * Output only. System generated globally unique ID for the data asset. - * This ID will be different if the data asset is deleted and re-created - * with the same name. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time at which the data asset was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time at which the data asset was last updated. - * @type string $etag - * Optional. This checksum is computed by the server based on the value of - * other fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Optional. User-defined labels for the data asset. - * Example: - * ``` - * { - * "environment": "production", - * "billing": "marketing-department" - * } - * ``` - * @type string $resource - * Required. Immutable. Full resource name of the cloud resource represented - * by the data asset. This must follow - * https://cloud.google.com/iam/docs/full-resource-names. Example: - * `//bigquery.googleapis.com/projects/my_project_123/datasets/dataset_456/tables/table_789` - * Only BigQuery tables and datasets are currently supported. - * Data asset creator must have getIamPolicy and setIamPolicy permissions on - * the resource. Data asset creator must also have resource specific get - * permission, for instance, bigquery.tables.get for BigQuery tables. - * @type array|\Google\Protobuf\Internal\MapField $access_group_configs - * Optional. Access groups configurations for this data asset. - * The key is `DataProduct.AccessGroup.id` and the value is - * `AccessGroupConfig`. - * Example: - * ``` - * { - * "analyst": { - * "iamRoles": ["roles/bigquery.dataViewer"] - * } - * } - * ``` - * Currently, at most one IAM role is allowed per access group. For providing - * multiple predefined IAM roles, wrap them in a custom IAM role as per - * https://cloud.google.com/iam/docs/creating-custom-roles. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataProducts::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. Resource name of the data asset. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}/dataAssets/{data_asset_id} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. Resource name of the data asset. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}/dataAssets/{data_asset_id} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. System generated globally unique ID for the data asset. - * This ID will be different if the data asset is deleted and re-created - * with the same name. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. System generated globally unique ID for the data asset. - * This ID will be different if the data asset is deleted and re-created - * with the same name. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Output only. The time at which the data asset was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The time at which the data asset was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The time at which the data asset was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The time at which the data asset was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Optional. This checksum is computed by the server based on the value of - * other fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Optional. This checksum is computed by the server based on the value of - * other fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Optional. User-defined labels for the data asset. - * Example: - * ``` - * { - * "environment": "production", - * "billing": "marketing-department" - * } - * ``` - * - * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Optional. User-defined labels for the data asset. - * Example: - * ``` - * { - * "environment": "production", - * "billing": "marketing-department" - * } - * ``` - * - * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Required. Immutable. Full resource name of the cloud resource represented - * by the data asset. This must follow - * https://cloud.google.com/iam/docs/full-resource-names. Example: - * `//bigquery.googleapis.com/projects/my_project_123/datasets/dataset_456/tables/table_789` - * Only BigQuery tables and datasets are currently supported. - * Data asset creator must have getIamPolicy and setIamPolicy permissions on - * the resource. Data asset creator must also have resource specific get - * permission, for instance, bigquery.tables.get for BigQuery tables. - * - * Generated from protobuf field string resource = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getResource() - { - return $this->resource; - } - - /** - * Required. Immutable. Full resource name of the cloud resource represented - * by the data asset. This must follow - * https://cloud.google.com/iam/docs/full-resource-names. Example: - * `//bigquery.googleapis.com/projects/my_project_123/datasets/dataset_456/tables/table_789` - * Only BigQuery tables and datasets are currently supported. - * Data asset creator must have getIamPolicy and setIamPolicy permissions on - * the resource. Data asset creator must also have resource specific get - * permission, for instance, bigquery.tables.get for BigQuery tables. - * - * Generated from protobuf field string resource = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setResource($var) - { - GPBUtil::checkString($var, True); - $this->resource = $var; - - return $this; - } - - /** - * Optional. Access groups configurations for this data asset. - * The key is `DataProduct.AccessGroup.id` and the value is - * `AccessGroupConfig`. - * Example: - * ``` - * { - * "analyst": { - * "iamRoles": ["roles/bigquery.dataViewer"] - * } - * } - * ``` - * Currently, at most one IAM role is allowed per access group. For providing - * multiple predefined IAM roles, wrap them in a custom IAM role as per - * https://cloud.google.com/iam/docs/creating-custom-roles. - * - * Generated from protobuf field map access_group_configs = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAccessGroupConfigs() - { - return $this->access_group_configs; - } - - /** - * Optional. Access groups configurations for this data asset. - * The key is `DataProduct.AccessGroup.id` and the value is - * `AccessGroupConfig`. - * Example: - * ``` - * { - * "analyst": { - * "iamRoles": ["roles/bigquery.dataViewer"] - * } - * } - * ``` - * Currently, at most one IAM role is allowed per access group. For providing - * multiple predefined IAM roles, wrap them in a custom IAM role as per - * https://cloud.google.com/iam/docs/creating-custom-roles. - * - * Generated from protobuf field map access_group_configs = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAccessGroupConfigs($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\DataAsset\AccessGroupConfig::class); - $this->access_group_configs = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataAsset/AccessGroupConfig.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataAsset/AccessGroupConfig.php deleted file mode 100644 index 86a1e8aa88fb..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataAsset/AccessGroupConfig.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.dataplex.v1.DataAsset.AccessGroupConfig - */ -class AccessGroupConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. IAM roles granted on the resource to this access group. Role - * name follows https://cloud.google.com/iam/docs/reference/rest/v1/roles. - * Example: `[ "roles/bigquery.dataViewer" ]` - * - * Generated from protobuf field repeated string iam_roles = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $iam_roles; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string[] $iam_roles - * Optional. IAM roles granted on the resource to this access group. Role - * name follows https://cloud.google.com/iam/docs/reference/rest/v1/roles. - * Example: `[ "roles/bigquery.dataViewer" ]` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataProducts::initOnce(); - parent::__construct($data); - } - - /** - * Optional. IAM roles granted on the resource to this access group. Role - * name follows https://cloud.google.com/iam/docs/reference/rest/v1/roles. - * Example: `[ "roles/bigquery.dataViewer" ]` - * - * Generated from protobuf field repeated string iam_roles = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getIamRoles() - { - return $this->iam_roles; - } - - /** - * Optional. IAM roles granted on the resource to this access group. Role - * name follows https://cloud.google.com/iam/docs/reference/rest/v1/roles. - * Example: `[ "roles/bigquery.dataViewer" ]` - * - * Generated from protobuf field repeated string iam_roles = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setIamRoles($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->iam_roles = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataAttribute.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataAttribute.php deleted file mode 100644 index 2fc088a3cc80..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataAttribute.php +++ /dev/null @@ -1,531 +0,0 @@ -google.cloud.dataplex.v1.DataAttribute - */ -class DataAttribute extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The relative resource name of the dataAttribute, of the form: - * projects/{project_number}/locations/{location_id}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id}. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Output only. System generated globally unique ID for the DataAttribute. - * This ID will be different if the DataAttribute is deleted and re-created - * with the same name. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $uid = ''; - /** - * Output only. The time when the DataAttribute was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time when the DataAttribute was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Optional. Description of the DataAttribute. - * - * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Optional. User friendly display name. - * - * Generated from protobuf field string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $display_name = ''; - /** - * Optional. User-defined labels for the DataAttribute. - * - * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $labels; - /** - * Optional. The ID of the parent DataAttribute resource, should belong to the - * same data taxonomy. Circular dependency in parent chain is not valid. - * Maximum depth of the hierarchy allowed is 4. - * [a -> b -> c -> d -> e, depth = 4] - * - * Generated from protobuf field string parent_id = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - protected $parent_id = ''; - /** - * Output only. The number of child attributes present for this attribute. - * - * Generated from protobuf field int32 attribute_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $attribute_count = 0; - /** - * This checksum is computed by the server based on the value of other - * fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 10; - */ - protected $etag = ''; - /** - * Optional. Specified when applied to a resource (eg: Cloud Storage bucket, - * BigQuery dataset, BigQuery table). - * - * Generated from protobuf field .google.cloud.dataplex.v1.ResourceAccessSpec resource_access_spec = 100 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $resource_access_spec = null; - /** - * Optional. Specified when applied to data stored on the resource (eg: rows, - * columns in BigQuery Tables). - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataAccessSpec data_access_spec = 101 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $data_access_spec = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. The relative resource name of the dataAttribute, of the form: - * projects/{project_number}/locations/{location_id}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id}. - * @type string $uid - * Output only. System generated globally unique ID for the DataAttribute. - * This ID will be different if the DataAttribute is deleted and re-created - * with the same name. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time when the DataAttribute was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time when the DataAttribute was last updated. - * @type string $description - * Optional. Description of the DataAttribute. - * @type string $display_name - * Optional. User friendly display name. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Optional. User-defined labels for the DataAttribute. - * @type string $parent_id - * Optional. The ID of the parent DataAttribute resource, should belong to the - * same data taxonomy. Circular dependency in parent chain is not valid. - * Maximum depth of the hierarchy allowed is 4. - * [a -> b -> c -> d -> e, depth = 4] - * @type int $attribute_count - * Output only. The number of child attributes present for this attribute. - * @type string $etag - * This checksum is computed by the server based on the value of other - * fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * @type \Google\Cloud\Dataplex\V1\ResourceAccessSpec $resource_access_spec - * Optional. Specified when applied to a resource (eg: Cloud Storage bucket, - * BigQuery dataset, BigQuery table). - * @type \Google\Cloud\Dataplex\V1\DataAccessSpec $data_access_spec - * Optional. Specified when applied to data stored on the resource (eg: rows, - * columns in BigQuery Tables). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataTaxonomy::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The relative resource name of the dataAttribute, of the form: - * projects/{project_number}/locations/{location_id}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id}. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The relative resource name of the dataAttribute, of the form: - * projects/{project_number}/locations/{location_id}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id}. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. System generated globally unique ID for the DataAttribute. - * This ID will be different if the DataAttribute is deleted and re-created - * with the same name. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. System generated globally unique ID for the DataAttribute. - * This ID will be different if the DataAttribute is deleted and re-created - * with the same name. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Output only. The time when the DataAttribute was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The time when the DataAttribute was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The time when the DataAttribute was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The time when the DataAttribute was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Optional. Description of the DataAttribute. - * - * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. Description of the DataAttribute. - * - * 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; - } - - /** - * Optional. User friendly display name. - * - * Generated from protobuf field string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Optional. User friendly display name. - * - * Generated from protobuf field string display_name = 6 [(.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. User-defined labels for the DataAttribute. - * - * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Optional. User-defined labels for the DataAttribute. - * - * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Optional. The ID of the parent DataAttribute resource, should belong to the - * same data taxonomy. Circular dependency in parent chain is not valid. - * Maximum depth of the hierarchy allowed is 4. - * [a -> b -> c -> d -> e, depth = 4] - * - * Generated from protobuf field string parent_id = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getParentId() - { - return $this->parent_id; - } - - /** - * Optional. The ID of the parent DataAttribute resource, should belong to the - * same data taxonomy. Circular dependency in parent chain is not valid. - * Maximum depth of the hierarchy allowed is 4. - * [a -> b -> c -> d -> e, depth = 4] - * - * Generated from protobuf field string parent_id = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParentId($var) - { - GPBUtil::checkString($var, True); - $this->parent_id = $var; - - return $this; - } - - /** - * Output only. The number of child attributes present for this attribute. - * - * Generated from protobuf field int32 attribute_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getAttributeCount() - { - return $this->attribute_count; - } - - /** - * Output only. The number of child attributes present for this attribute. - * - * Generated from protobuf field int32 attribute_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setAttributeCount($var) - { - GPBUtil::checkInt32($var); - $this->attribute_count = $var; - - return $this; - } - - /** - * This checksum is computed by the server based on the value of other - * fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 10; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * This checksum is computed by the server based on the value of other - * fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 10; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Optional. Specified when applied to a resource (eg: Cloud Storage bucket, - * BigQuery dataset, BigQuery table). - * - * Generated from protobuf field .google.cloud.dataplex.v1.ResourceAccessSpec resource_access_spec = 100 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dataplex\V1\ResourceAccessSpec|null - */ - public function getResourceAccessSpec() - { - return $this->resource_access_spec; - } - - public function hasResourceAccessSpec() - { - return isset($this->resource_access_spec); - } - - public function clearResourceAccessSpec() - { - unset($this->resource_access_spec); - } - - /** - * Optional. Specified when applied to a resource (eg: Cloud Storage bucket, - * BigQuery dataset, BigQuery table). - * - * Generated from protobuf field .google.cloud.dataplex.v1.ResourceAccessSpec resource_access_spec = 100 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataplex\V1\ResourceAccessSpec $var - * @return $this - */ - public function setResourceAccessSpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\ResourceAccessSpec::class); - $this->resource_access_spec = $var; - - return $this; - } - - /** - * Optional. Specified when applied to data stored on the resource (eg: rows, - * columns in BigQuery Tables). - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataAccessSpec data_access_spec = 101 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dataplex\V1\DataAccessSpec|null - */ - public function getDataAccessSpec() - { - return $this->data_access_spec; - } - - public function hasDataAccessSpec() - { - return isset($this->data_access_spec); - } - - public function clearDataAccessSpec() - { - unset($this->data_access_spec); - } - - /** - * Optional. Specified when applied to data stored on the resource (eg: rows, - * columns in BigQuery Tables). - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataAccessSpec data_access_spec = 101 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataplex\V1\DataAccessSpec $var - * @return $this - */ - public function setDataAccessSpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataAccessSpec::class); - $this->data_access_spec = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataAttributeBinding.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataAttributeBinding.php deleted file mode 100644 index 7c892b7c6e91..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataAttributeBinding.php +++ /dev/null @@ -1,493 +0,0 @@ -google.cloud.dataplex.v1.DataAttributeBinding - */ -class DataAttributeBinding extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The relative resource name of the Data Attribute Binding, of - * the form: - * projects/{project_number}/locations/{location}/dataAttributeBindings/{data_attribute_binding_id} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Output only. System generated globally unique ID for the - * DataAttributeBinding. This ID will be different if the DataAttributeBinding - * is deleted and re-created with the same name. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $uid = ''; - /** - * Output only. The time when the DataAttributeBinding was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time when the DataAttributeBinding was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Optional. Description of the DataAttributeBinding. - * - * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Optional. User friendly display name. - * - * Generated from protobuf field string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $display_name = ''; - /** - * Optional. User-defined labels for the DataAttributeBinding. - * - * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $labels; - /** - * This checksum is computed by the server based on the value of other - * fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * Etags must be used when calling the DeleteDataAttributeBinding and the - * UpdateDataAttributeBinding method. - * - * Generated from protobuf field string etag = 8; - */ - protected $etag = ''; - /** - * Optional. List of attributes to be associated with the resource, provided - * in the form: - * projects/{project}/locations/{location}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id} - * - * Generated from protobuf field repeated string attributes = 110 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - private $attributes; - /** - * Optional. The list of paths for items within the associated resource (eg. - * columns and partitions within a table) along with attribute bindings. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataAttributeBinding.Path paths = 120 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $paths; - protected $resource_reference; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. The relative resource name of the Data Attribute Binding, of - * the form: - * projects/{project_number}/locations/{location}/dataAttributeBindings/{data_attribute_binding_id} - * @type string $uid - * Output only. System generated globally unique ID for the - * DataAttributeBinding. This ID will be different if the DataAttributeBinding - * is deleted and re-created with the same name. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time when the DataAttributeBinding was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time when the DataAttributeBinding was last updated. - * @type string $description - * Optional. Description of the DataAttributeBinding. - * @type string $display_name - * Optional. User friendly display name. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Optional. User-defined labels for the DataAttributeBinding. - * @type string $etag - * This checksum is computed by the server based on the value of other - * fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * Etags must be used when calling the DeleteDataAttributeBinding and the - * UpdateDataAttributeBinding method. - * @type string $resource - * Optional. Immutable. The resource name of the resource that is associated - * to attributes. Presently, only entity resource is supported in the form: - * projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/entities/{entity_id} - * Must belong in the same project and region as the attribute binding, and - * there can only exist one active binding for a resource. - * @type string[] $attributes - * Optional. List of attributes to be associated with the resource, provided - * in the form: - * projects/{project}/locations/{location}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id} - * @type \Google\Cloud\Dataplex\V1\DataAttributeBinding\Path[] $paths - * Optional. The list of paths for items within the associated resource (eg. - * columns and partitions within a table) along with attribute bindings. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataTaxonomy::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The relative resource name of the Data Attribute Binding, of - * the form: - * projects/{project_number}/locations/{location}/dataAttributeBindings/{data_attribute_binding_id} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The relative resource name of the Data Attribute Binding, of - * the form: - * projects/{project_number}/locations/{location}/dataAttributeBindings/{data_attribute_binding_id} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. System generated globally unique ID for the - * DataAttributeBinding. This ID will be different if the DataAttributeBinding - * is deleted and re-created with the same name. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. System generated globally unique ID for the - * DataAttributeBinding. This ID will be different if the DataAttributeBinding - * is deleted and re-created with the same name. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Output only. The time when the DataAttributeBinding was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The time when the DataAttributeBinding was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The time when the DataAttributeBinding was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The time when the DataAttributeBinding was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Optional. Description of the DataAttributeBinding. - * - * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. Description of the DataAttributeBinding. - * - * 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; - } - - /** - * Optional. User friendly display name. - * - * Generated from protobuf field string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Optional. User friendly display name. - * - * Generated from protobuf field string display_name = 6 [(.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. User-defined labels for the DataAttributeBinding. - * - * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Optional. User-defined labels for the DataAttributeBinding. - * - * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * This checksum is computed by the server based on the value of other - * fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * Etags must be used when calling the DeleteDataAttributeBinding and the - * UpdateDataAttributeBinding method. - * - * Generated from protobuf field string etag = 8; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * This checksum is computed by the server based on the value of other - * fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * Etags must be used when calling the DeleteDataAttributeBinding and the - * UpdateDataAttributeBinding method. - * - * Generated from protobuf field string etag = 8; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Optional. Immutable. The resource name of the resource that is associated - * to attributes. Presently, only entity resource is supported in the form: - * projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/entities/{entity_id} - * Must belong in the same project and region as the attribute binding, and - * there can only exist one active binding for a resource. - * - * Generated from protobuf field string resource = 100 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getResource() - { - return $this->readOneof(100); - } - - public function hasResource() - { - return $this->hasOneof(100); - } - - /** - * Optional. Immutable. The resource name of the resource that is associated - * to attributes. Presently, only entity resource is supported in the form: - * projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/entities/{entity_id} - * Must belong in the same project and region as the attribute binding, and - * there can only exist one active binding for a resource. - * - * Generated from protobuf field string resource = 100 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setResource($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(100, $var); - - return $this; - } - - /** - * Optional. List of attributes to be associated with the resource, provided - * in the form: - * projects/{project}/locations/{location}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id} - * - * Generated from protobuf field repeated string attributes = 110 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return RepeatedField - */ - public function getAttributes() - { - return $this->attributes; - } - - /** - * Optional. List of attributes to be associated with the resource, provided - * in the form: - * projects/{project}/locations/{location}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id} - * - * Generated from protobuf field repeated string attributes = 110 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string[] $var - * @return $this - */ - public function setAttributes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->attributes = $arr; - - return $this; - } - - /** - * Optional. The list of paths for items within the associated resource (eg. - * columns and partitions within a table) along with attribute bindings. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataAttributeBinding.Path paths = 120 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\Dataplex\V1\DataAttributeBinding\Path> - */ - public function getPaths() - { - return $this->paths; - } - - /** - * Optional. The list of paths for items within the associated resource (eg. - * columns and partitions within a table) along with attribute bindings. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataAttributeBinding.Path paths = 120 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataplex\V1\DataAttributeBinding\Path[] $var - * @return $this - */ - public function setPaths($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\DataAttributeBinding\Path::class); - $this->paths = $arr; - - return $this; - } - - /** - * @return string - */ - public function getResourceReference() - { - return $this->whichOneof("resource_reference"); - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataAttributeBinding/Path.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataAttributeBinding/Path.php deleted file mode 100644 index b43a56e6205c..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataAttributeBinding/Path.php +++ /dev/null @@ -1,115 +0,0 @@ -google.cloud.dataplex.v1.DataAttributeBinding.Path - */ -class Path extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name identifier of the path. - * Nested columns should be of the form: 'address.city'. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - /** - * Optional. List of attributes to be associated with the path of the - * resource, provided in the form: - * projects/{project}/locations/{location}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id} - * - * Generated from protobuf field repeated string attributes = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - private $attributes; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name identifier of the path. - * Nested columns should be of the form: 'address.city'. - * @type string[] $attributes - * Optional. List of attributes to be associated with the path of the - * resource, provided in the form: - * projects/{project}/locations/{location}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataTaxonomy::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name identifier of the path. - * Nested columns should be of the form: 'address.city'. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name identifier of the path. - * Nested columns should be of the form: 'address.city'. - * - * 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. List of attributes to be associated with the path of the - * resource, provided in the form: - * projects/{project}/locations/{location}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id} - * - * Generated from protobuf field repeated string attributes = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return RepeatedField - */ - public function getAttributes() - { - return $this->attributes; - } - - /** - * Optional. List of attributes to be associated with the path of the - * resource, provided in the form: - * projects/{project}/locations/{location}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id} - * - * Generated from protobuf field repeated string attributes = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string[] $var - * @return $this - */ - public function setAttributes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->attributes = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoveryResult.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoveryResult.php deleted file mode 100644 index 271a7eb57265..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoveryResult.php +++ /dev/null @@ -1,121 +0,0 @@ -google.cloud.dataplex.v1.DataDiscoveryResult - */ -class DataDiscoveryResult extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Configuration for metadata publishing. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoveryResult.BigQueryPublishing bigquery_publishing = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $bigquery_publishing = null; - /** - * Output only. Describes result statistics of a data scan discovery job. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoveryResult.ScanStatistics scan_statistics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $scan_statistics = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\DataDiscoveryResult\BigQueryPublishing $bigquery_publishing - * Output only. Configuration for metadata publishing. - * @type \Google\Cloud\Dataplex\V1\DataDiscoveryResult\ScanStatistics $scan_statistics - * Output only. Describes result statistics of a data scan discovery job. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataDiscovery::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Configuration for metadata publishing. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoveryResult.BigQueryPublishing bigquery_publishing = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataplex\V1\DataDiscoveryResult\BigQueryPublishing|null - */ - public function getBigqueryPublishing() - { - return $this->bigquery_publishing; - } - - public function hasBigqueryPublishing() - { - return isset($this->bigquery_publishing); - } - - public function clearBigqueryPublishing() - { - unset($this->bigquery_publishing); - } - - /** - * Output only. Configuration for metadata publishing. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoveryResult.BigQueryPublishing bigquery_publishing = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\DataDiscoveryResult\BigQueryPublishing $var - * @return $this - */ - public function setBigqueryPublishing($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataDiscoveryResult\BigQueryPublishing::class); - $this->bigquery_publishing = $var; - - return $this; - } - - /** - * Output only. Describes result statistics of a data scan discovery job. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoveryResult.ScanStatistics scan_statistics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataplex\V1\DataDiscoveryResult\ScanStatistics|null - */ - public function getScanStatistics() - { - return $this->scan_statistics; - } - - public function hasScanStatistics() - { - return isset($this->scan_statistics); - } - - public function clearScanStatistics() - { - unset($this->scan_statistics); - } - - /** - * Output only. Describes result statistics of a data scan discovery job. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoveryResult.ScanStatistics scan_statistics = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\DataDiscoveryResult\ScanStatistics $var - * @return $this - */ - public function setScanStatistics($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataDiscoveryResult\ScanStatistics::class); - $this->scan_statistics = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoveryResult/BigQueryPublishing.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoveryResult/BigQueryPublishing.php deleted file mode 100644 index 96837bd70477..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoveryResult/BigQueryPublishing.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.dataplex.v1.DataDiscoveryResult.BigQueryPublishing - */ -class BigQueryPublishing extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The BigQuery dataset the discovered tables are published to. - * - * Generated from protobuf field string dataset = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $dataset = ''; - /** - * Output only. The location of the BigQuery publishing dataset. - * - * Generated from protobuf field string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $location = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dataset - * Output only. The BigQuery dataset the discovered tables are published to. - * @type string $location - * Output only. The location of the BigQuery publishing dataset. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataDiscovery::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The BigQuery dataset the discovered tables are published to. - * - * Generated from protobuf field string dataset = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getDataset() - { - return $this->dataset; - } - - /** - * Output only. The BigQuery dataset the discovered tables are published to. - * - * Generated from protobuf field string dataset = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setDataset($var) - { - GPBUtil::checkString($var, True); - $this->dataset = $var; - - return $this; - } - - /** - * Output only. The location of the BigQuery publishing dataset. - * - * Generated from protobuf field string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * Output only. The location of the BigQuery publishing dataset. - * - * Generated from protobuf field string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoveryResult/ScanStatistics.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoveryResult/ScanStatistics.php deleted file mode 100644 index c303c493d105..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoveryResult/ScanStatistics.php +++ /dev/null @@ -1,339 +0,0 @@ -google.cloud.dataplex.v1.DataDiscoveryResult.ScanStatistics - */ -class ScanStatistics extends \Google\Protobuf\Internal\Message -{ - /** - * The number of files scanned. - * - * Generated from protobuf field int32 scanned_file_count = 1; - */ - protected $scanned_file_count = 0; - /** - * The data processed in bytes. - * - * Generated from protobuf field int64 data_processed_bytes = 2; - */ - protected $data_processed_bytes = 0; - /** - * The number of files excluded. - * - * Generated from protobuf field int32 files_excluded = 3; - */ - protected $files_excluded = 0; - /** - * The number of tables created. - * - * Generated from protobuf field int32 tables_created = 4; - */ - protected $tables_created = 0; - /** - * The number of tables deleted. - * - * Generated from protobuf field int32 tables_deleted = 5; - */ - protected $tables_deleted = 0; - /** - * The number of tables updated. - * - * Generated from protobuf field int32 tables_updated = 6; - */ - protected $tables_updated = 0; - /** - * The number of filesets created. - * - * Generated from protobuf field int32 filesets_created = 7; - */ - protected $filesets_created = 0; - /** - * The number of filesets deleted. - * - * Generated from protobuf field int32 filesets_deleted = 8; - */ - protected $filesets_deleted = 0; - /** - * The number of filesets updated. - * - * Generated from protobuf field int32 filesets_updated = 9; - */ - protected $filesets_updated = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $scanned_file_count - * The number of files scanned. - * @type int|string $data_processed_bytes - * The data processed in bytes. - * @type int $files_excluded - * The number of files excluded. - * @type int $tables_created - * The number of tables created. - * @type int $tables_deleted - * The number of tables deleted. - * @type int $tables_updated - * The number of tables updated. - * @type int $filesets_created - * The number of filesets created. - * @type int $filesets_deleted - * The number of filesets deleted. - * @type int $filesets_updated - * The number of filesets updated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataDiscovery::initOnce(); - parent::__construct($data); - } - - /** - * The number of files scanned. - * - * Generated from protobuf field int32 scanned_file_count = 1; - * @return int - */ - public function getScannedFileCount() - { - return $this->scanned_file_count; - } - - /** - * The number of files scanned. - * - * Generated from protobuf field int32 scanned_file_count = 1; - * @param int $var - * @return $this - */ - public function setScannedFileCount($var) - { - GPBUtil::checkInt32($var); - $this->scanned_file_count = $var; - - return $this; - } - - /** - * The data processed in bytes. - * - * Generated from protobuf field int64 data_processed_bytes = 2; - * @return int|string - */ - public function getDataProcessedBytes() - { - return $this->data_processed_bytes; - } - - /** - * The data processed in bytes. - * - * Generated from protobuf field int64 data_processed_bytes = 2; - * @param int|string $var - * @return $this - */ - public function setDataProcessedBytes($var) - { - GPBUtil::checkInt64($var); - $this->data_processed_bytes = $var; - - return $this; - } - - /** - * The number of files excluded. - * - * Generated from protobuf field int32 files_excluded = 3; - * @return int - */ - public function getFilesExcluded() - { - return $this->files_excluded; - } - - /** - * The number of files excluded. - * - * Generated from protobuf field int32 files_excluded = 3; - * @param int $var - * @return $this - */ - public function setFilesExcluded($var) - { - GPBUtil::checkInt32($var); - $this->files_excluded = $var; - - return $this; - } - - /** - * The number of tables created. - * - * Generated from protobuf field int32 tables_created = 4; - * @return int - */ - public function getTablesCreated() - { - return $this->tables_created; - } - - /** - * The number of tables created. - * - * Generated from protobuf field int32 tables_created = 4; - * @param int $var - * @return $this - */ - public function setTablesCreated($var) - { - GPBUtil::checkInt32($var); - $this->tables_created = $var; - - return $this; - } - - /** - * The number of tables deleted. - * - * Generated from protobuf field int32 tables_deleted = 5; - * @return int - */ - public function getTablesDeleted() - { - return $this->tables_deleted; - } - - /** - * The number of tables deleted. - * - * Generated from protobuf field int32 tables_deleted = 5; - * @param int $var - * @return $this - */ - public function setTablesDeleted($var) - { - GPBUtil::checkInt32($var); - $this->tables_deleted = $var; - - return $this; - } - - /** - * The number of tables updated. - * - * Generated from protobuf field int32 tables_updated = 6; - * @return int - */ - public function getTablesUpdated() - { - return $this->tables_updated; - } - - /** - * The number of tables updated. - * - * Generated from protobuf field int32 tables_updated = 6; - * @param int $var - * @return $this - */ - public function setTablesUpdated($var) - { - GPBUtil::checkInt32($var); - $this->tables_updated = $var; - - return $this; - } - - /** - * The number of filesets created. - * - * Generated from protobuf field int32 filesets_created = 7; - * @return int - */ - public function getFilesetsCreated() - { - return $this->filesets_created; - } - - /** - * The number of filesets created. - * - * Generated from protobuf field int32 filesets_created = 7; - * @param int $var - * @return $this - */ - public function setFilesetsCreated($var) - { - GPBUtil::checkInt32($var); - $this->filesets_created = $var; - - return $this; - } - - /** - * The number of filesets deleted. - * - * Generated from protobuf field int32 filesets_deleted = 8; - * @return int - */ - public function getFilesetsDeleted() - { - return $this->filesets_deleted; - } - - /** - * The number of filesets deleted. - * - * Generated from protobuf field int32 filesets_deleted = 8; - * @param int $var - * @return $this - */ - public function setFilesetsDeleted($var) - { - GPBUtil::checkInt32($var); - $this->filesets_deleted = $var; - - return $this; - } - - /** - * The number of filesets updated. - * - * Generated from protobuf field int32 filesets_updated = 9; - * @return int - */ - public function getFilesetsUpdated() - { - return $this->filesets_updated; - } - - /** - * The number of filesets updated. - * - * Generated from protobuf field int32 filesets_updated = 9; - * @param int $var - * @return $this - */ - public function setFilesetsUpdated($var) - { - GPBUtil::checkInt32($var); - $this->filesets_updated = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoverySpec.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoverySpec.php deleted file mode 100644 index 33379a5a34ac..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoverySpec.php +++ /dev/null @@ -1,119 +0,0 @@ -google.cloud.dataplex.v1.DataDiscoverySpec - */ -class DataDiscoverySpec extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Configuration for metadata publishing. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoverySpec.BigQueryPublishingConfig bigquery_publishing_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $bigquery_publishing_config = null; - protected $resource_config; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\DataDiscoverySpec\BigQueryPublishingConfig $bigquery_publishing_config - * Optional. Configuration for metadata publishing. - * @type \Google\Cloud\Dataplex\V1\DataDiscoverySpec\StorageConfig $storage_config - * Cloud Storage related configurations. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataDiscovery::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Configuration for metadata publishing. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoverySpec.BigQueryPublishingConfig bigquery_publishing_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dataplex\V1\DataDiscoverySpec\BigQueryPublishingConfig|null - */ - public function getBigqueryPublishingConfig() - { - return $this->bigquery_publishing_config; - } - - public function hasBigqueryPublishingConfig() - { - return isset($this->bigquery_publishing_config); - } - - public function clearBigqueryPublishingConfig() - { - unset($this->bigquery_publishing_config); - } - - /** - * Optional. Configuration for metadata publishing. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoverySpec.BigQueryPublishingConfig bigquery_publishing_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataplex\V1\DataDiscoverySpec\BigQueryPublishingConfig $var - * @return $this - */ - public function setBigqueryPublishingConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataDiscoverySpec\BigQueryPublishingConfig::class); - $this->bigquery_publishing_config = $var; - - return $this; - } - - /** - * Cloud Storage related configurations. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig storage_config = 100; - * @return \Google\Cloud\Dataplex\V1\DataDiscoverySpec\StorageConfig|null - */ - public function getStorageConfig() - { - return $this->readOneof(100); - } - - public function hasStorageConfig() - { - return $this->hasOneof(100); - } - - /** - * Cloud Storage related configurations. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig storage_config = 100; - * @param \Google\Cloud\Dataplex\V1\DataDiscoverySpec\StorageConfig $var - * @return $this - */ - public function setStorageConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataDiscoverySpec\StorageConfig::class); - $this->writeOneof(100, $var); - - return $this; - } - - /** - * @return string - */ - public function getResourceConfig() - { - return $this->whichOneof("resource_config"); - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoverySpec/BigQueryPublishingConfig.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoverySpec/BigQueryPublishingConfig.php deleted file mode 100644 index b3bc6ba965ea..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoverySpec/BigQueryPublishingConfig.php +++ /dev/null @@ -1,269 +0,0 @@ -google.cloud.dataplex.v1.DataDiscoverySpec.BigQueryPublishingConfig - */ -class BigQueryPublishingConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Determines whether to publish discovered tables as BigLake - * external tables or non-BigLake external tables. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoverySpec.BigQueryPublishingConfig.TableType table_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $table_type = 0; - /** - * Optional. The BigQuery connection used to create BigLake tables. - * Must be in the form - * `projects/{project_id}/locations/{location_id}/connections/{connection_id}` - * - * Generated from protobuf field string connection = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - protected $connection = ''; - /** - * Optional. The location of the BigQuery dataset to publish BigLake - * external or non-BigLake external tables to. - * 1. If the Cloud Storage bucket is located in a multi-region bucket, then - * BigQuery dataset can be in the same multi-region bucket or any single - * region that is included in the same multi-region bucket. The datascan can - * be created in any single region that is included in the same multi-region - * bucket - * 2. If the Cloud Storage bucket is located in a dual-region bucket, then - * BigQuery dataset can be located in regions that are included in the - * dual-region bucket, or in a multi-region that includes the dual-region. - * The datascan can be created in any single region that is included in the - * same dual-region bucket. - * 3. If the Cloud Storage bucket is located in a single region, then - * BigQuery dataset can be in the same single region or any multi-region - * bucket that includes the same single region. The datascan will be created - * in the same single region as the bucket. - * 4. If the BigQuery dataset is in single region, it must be in the same - * single region as the datascan. - * For supported values, refer to - * https://cloud.google.com/bigquery/docs/locations#supported_locations. - * - * Generated from protobuf field string location = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $location = ''; - /** - * Optional. The project of the BigQuery dataset to publish BigLake external - * or non-BigLake external tables to. If not specified, the project of the - * Cloud Storage bucket will be used. The format is - * "projects/{project_id_or_number}". - * - * Generated from protobuf field string project = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - protected $project = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $table_type - * Optional. Determines whether to publish discovered tables as BigLake - * external tables or non-BigLake external tables. - * @type string $connection - * Optional. The BigQuery connection used to create BigLake tables. - * Must be in the form - * `projects/{project_id}/locations/{location_id}/connections/{connection_id}` - * @type string $location - * Optional. The location of the BigQuery dataset to publish BigLake - * external or non-BigLake external tables to. - * 1. If the Cloud Storage bucket is located in a multi-region bucket, then - * BigQuery dataset can be in the same multi-region bucket or any single - * region that is included in the same multi-region bucket. The datascan can - * be created in any single region that is included in the same multi-region - * bucket - * 2. If the Cloud Storage bucket is located in a dual-region bucket, then - * BigQuery dataset can be located in regions that are included in the - * dual-region bucket, or in a multi-region that includes the dual-region. - * The datascan can be created in any single region that is included in the - * same dual-region bucket. - * 3. If the Cloud Storage bucket is located in a single region, then - * BigQuery dataset can be in the same single region or any multi-region - * bucket that includes the same single region. The datascan will be created - * in the same single region as the bucket. - * 4. If the BigQuery dataset is in single region, it must be in the same - * single region as the datascan. - * For supported values, refer to - * https://cloud.google.com/bigquery/docs/locations#supported_locations. - * @type string $project - * Optional. The project of the BigQuery dataset to publish BigLake external - * or non-BigLake external tables to. If not specified, the project of the - * Cloud Storage bucket will be used. The format is - * "projects/{project_id_or_number}". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataDiscovery::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Determines whether to publish discovered tables as BigLake - * external tables or non-BigLake external tables. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoverySpec.BigQueryPublishingConfig.TableType table_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getTableType() - { - return $this->table_type; - } - - /** - * Optional. Determines whether to publish discovered tables as BigLake - * external tables or non-BigLake external tables. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoverySpec.BigQueryPublishingConfig.TableType table_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setTableType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\DataDiscoverySpec\BigQueryPublishingConfig\TableType::class); - $this->table_type = $var; - - return $this; - } - - /** - * Optional. The BigQuery connection used to create BigLake tables. - * Must be in the form - * `projects/{project_id}/locations/{location_id}/connections/{connection_id}` - * - * Generated from protobuf field string connection = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getConnection() - { - return $this->connection; - } - - /** - * Optional. The BigQuery connection used to create BigLake tables. - * Must be in the form - * `projects/{project_id}/locations/{location_id}/connections/{connection_id}` - * - * Generated from protobuf field string connection = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setConnection($var) - { - GPBUtil::checkString($var, True); - $this->connection = $var; - - return $this; - } - - /** - * Optional. The location of the BigQuery dataset to publish BigLake - * external or non-BigLake external tables to. - * 1. If the Cloud Storage bucket is located in a multi-region bucket, then - * BigQuery dataset can be in the same multi-region bucket or any single - * region that is included in the same multi-region bucket. The datascan can - * be created in any single region that is included in the same multi-region - * bucket - * 2. If the Cloud Storage bucket is located in a dual-region bucket, then - * BigQuery dataset can be located in regions that are included in the - * dual-region bucket, or in a multi-region that includes the dual-region. - * The datascan can be created in any single region that is included in the - * same dual-region bucket. - * 3. If the Cloud Storage bucket is located in a single region, then - * BigQuery dataset can be in the same single region or any multi-region - * bucket that includes the same single region. The datascan will be created - * in the same single region as the bucket. - * 4. If the BigQuery dataset is in single region, it must be in the same - * single region as the datascan. - * For supported values, refer to - * https://cloud.google.com/bigquery/docs/locations#supported_locations. - * - * Generated from protobuf field string location = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * Optional. The location of the BigQuery dataset to publish BigLake - * external or non-BigLake external tables to. - * 1. If the Cloud Storage bucket is located in a multi-region bucket, then - * BigQuery dataset can be in the same multi-region bucket or any single - * region that is included in the same multi-region bucket. The datascan can - * be created in any single region that is included in the same multi-region - * bucket - * 2. If the Cloud Storage bucket is located in a dual-region bucket, then - * BigQuery dataset can be located in regions that are included in the - * dual-region bucket, or in a multi-region that includes the dual-region. - * The datascan can be created in any single region that is included in the - * same dual-region bucket. - * 3. If the Cloud Storage bucket is located in a single region, then - * BigQuery dataset can be in the same single region or any multi-region - * bucket that includes the same single region. The datascan will be created - * in the same single region as the bucket. - * 4. If the BigQuery dataset is in single region, it must be in the same - * single region as the datascan. - * For supported values, refer to - * https://cloud.google.com/bigquery/docs/locations#supported_locations. - * - * Generated from protobuf field string location = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - - /** - * Optional. The project of the BigQuery dataset to publish BigLake external - * or non-BigLake external tables to. If not specified, the project of the - * Cloud Storage bucket will be used. The format is - * "projects/{project_id_or_number}". - * - * Generated from protobuf field string project = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getProject() - { - return $this->project; - } - - /** - * Optional. The project of the BigQuery dataset to publish BigLake external - * or non-BigLake external tables to. If not specified, the project of the - * Cloud Storage bucket will be used. The format is - * "projects/{project_id_or_number}". - * - * Generated from protobuf field string project = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setProject($var) - { - GPBUtil::checkString($var, True); - $this->project = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoverySpec/BigQueryPublishingConfig/TableType.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoverySpec/BigQueryPublishingConfig/TableType.php deleted file mode 100644 index 5fe720ecc3d2..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoverySpec/BigQueryPublishingConfig/TableType.php +++ /dev/null @@ -1,65 +0,0 @@ -google.cloud.dataplex.v1.DataDiscoverySpec.BigQueryPublishingConfig.TableType - */ -class TableType -{ - /** - * Table type unspecified. - * - * Generated from protobuf enum TABLE_TYPE_UNSPECIFIED = 0; - */ - const TABLE_TYPE_UNSPECIFIED = 0; - /** - * Default. Discovered tables are published as BigQuery external tables - * whose data is accessed using the credentials of the user querying the - * table. - * - * Generated from protobuf enum EXTERNAL = 1; - */ - const EXTERNAL = 1; - /** - * Discovered tables are published as BigLake external tables whose data - * is accessed using the credentials of the associated BigQuery - * connection. - * - * Generated from protobuf enum BIGLAKE = 2; - */ - const BIGLAKE = 2; - - private static $valueToName = [ - self::TABLE_TYPE_UNSPECIFIED => 'TABLE_TYPE_UNSPECIFIED', - self::EXTERNAL => 'EXTERNAL', - self::BIGLAKE => 'BIGLAKE', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoverySpec/StorageConfig.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoverySpec/StorageConfig.php deleted file mode 100644 index d8a9112f02ae..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoverySpec/StorageConfig.php +++ /dev/null @@ -1,269 +0,0 @@ -google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig - */ -class StorageConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Defines the data to include during discovery when only a subset - * of the data should be considered. Provide a list of patterns that - * identify the data to include. For Cloud Storage bucket assets, these - * patterns are interpreted as glob patterns used to match object names. For - * BigQuery dataset assets, these patterns are interpreted as patterns to - * match table names. - * - * Generated from protobuf field repeated string include_patterns = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $include_patterns; - /** - * Optional. Defines the data to exclude during discovery. Provide a list of - * patterns that identify the data to exclude. For Cloud Storage bucket - * assets, these patterns are interpreted as glob patterns used to match - * object names. For BigQuery dataset assets, these patterns are interpreted - * as patterns to match table names. - * - * Generated from protobuf field repeated string exclude_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $exclude_patterns; - /** - * Optional. Configuration for CSV data. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.CsvOptions csv_options = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $csv_options = null; - /** - * Optional. Configuration for JSON data. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.JsonOptions json_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $json_options = null; - /** - * Optional. Specifies configuration for unstructured data discovery. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.UnstructuredDataOptions unstructured_data_options = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $unstructured_data_options = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string[] $include_patterns - * Optional. Defines the data to include during discovery when only a subset - * of the data should be considered. Provide a list of patterns that - * identify the data to include. For Cloud Storage bucket assets, these - * patterns are interpreted as glob patterns used to match object names. For - * BigQuery dataset assets, these patterns are interpreted as patterns to - * match table names. - * @type string[] $exclude_patterns - * Optional. Defines the data to exclude during discovery. Provide a list of - * patterns that identify the data to exclude. For Cloud Storage bucket - * assets, these patterns are interpreted as glob patterns used to match - * object names. For BigQuery dataset assets, these patterns are interpreted - * as patterns to match table names. - * @type \Google\Cloud\Dataplex\V1\DataDiscoverySpec\StorageConfig\CsvOptions $csv_options - * Optional. Configuration for CSV data. - * @type \Google\Cloud\Dataplex\V1\DataDiscoverySpec\StorageConfig\JsonOptions $json_options - * Optional. Configuration for JSON data. - * @type \Google\Cloud\Dataplex\V1\DataDiscoverySpec\StorageConfig\UnstructuredDataOptions $unstructured_data_options - * Optional. Specifies configuration for unstructured data discovery. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataDiscovery::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Defines the data to include during discovery when only a subset - * of the data should be considered. Provide a list of patterns that - * identify the data to include. For Cloud Storage bucket assets, these - * patterns are interpreted as glob patterns used to match object names. For - * BigQuery dataset assets, these patterns are interpreted as patterns to - * match table names. - * - * Generated from protobuf field repeated string include_patterns = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getIncludePatterns() - { - return $this->include_patterns; - } - - /** - * Optional. Defines the data to include during discovery when only a subset - * of the data should be considered. Provide a list of patterns that - * identify the data to include. For Cloud Storage bucket assets, these - * patterns are interpreted as glob patterns used to match object names. For - * BigQuery dataset assets, these patterns are interpreted as patterns to - * match table names. - * - * Generated from protobuf field repeated string include_patterns = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setIncludePatterns($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->include_patterns = $arr; - - return $this; - } - - /** - * Optional. Defines the data to exclude during discovery. Provide a list of - * patterns that identify the data to exclude. For Cloud Storage bucket - * assets, these patterns are interpreted as glob patterns used to match - * object names. For BigQuery dataset assets, these patterns are interpreted - * as patterns to match table names. - * - * Generated from protobuf field repeated string exclude_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getExcludePatterns() - { - return $this->exclude_patterns; - } - - /** - * Optional. Defines the data to exclude during discovery. Provide a list of - * patterns that identify the data to exclude. For Cloud Storage bucket - * assets, these patterns are interpreted as glob patterns used to match - * object names. For BigQuery dataset assets, these patterns are interpreted - * as patterns to match table names. - * - * Generated from protobuf field repeated string exclude_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setExcludePatterns($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->exclude_patterns = $arr; - - return $this; - } - - /** - * Optional. Configuration for CSV data. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.CsvOptions csv_options = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dataplex\V1\DataDiscoverySpec\StorageConfig\CsvOptions|null - */ - public function getCsvOptions() - { - return $this->csv_options; - } - - public function hasCsvOptions() - { - return isset($this->csv_options); - } - - public function clearCsvOptions() - { - unset($this->csv_options); - } - - /** - * Optional. Configuration for CSV data. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.CsvOptions csv_options = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataplex\V1\DataDiscoverySpec\StorageConfig\CsvOptions $var - * @return $this - */ - public function setCsvOptions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataDiscoverySpec\StorageConfig\CsvOptions::class); - $this->csv_options = $var; - - return $this; - } - - /** - * Optional. Configuration for JSON data. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.JsonOptions json_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dataplex\V1\DataDiscoverySpec\StorageConfig\JsonOptions|null - */ - public function getJsonOptions() - { - return $this->json_options; - } - - public function hasJsonOptions() - { - return isset($this->json_options); - } - - public function clearJsonOptions() - { - unset($this->json_options); - } - - /** - * Optional. Configuration for JSON data. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.JsonOptions json_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataplex\V1\DataDiscoverySpec\StorageConfig\JsonOptions $var - * @return $this - */ - public function setJsonOptions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataDiscoverySpec\StorageConfig\JsonOptions::class); - $this->json_options = $var; - - return $this; - } - - /** - * Optional. Specifies configuration for unstructured data discovery. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.UnstructuredDataOptions unstructured_data_options = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dataplex\V1\DataDiscoverySpec\StorageConfig\UnstructuredDataOptions|null - */ - public function getUnstructuredDataOptions() - { - return $this->unstructured_data_options; - } - - public function hasUnstructuredDataOptions() - { - return isset($this->unstructured_data_options); - } - - public function clearUnstructuredDataOptions() - { - unset($this->unstructured_data_options); - } - - /** - * Optional. Specifies configuration for unstructured data discovery. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.UnstructuredDataOptions unstructured_data_options = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataplex\V1\DataDiscoverySpec\StorageConfig\UnstructuredDataOptions $var - * @return $this - */ - public function setUnstructuredDataOptions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataDiscoverySpec\StorageConfig\UnstructuredDataOptions::class); - $this->unstructured_data_options = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoverySpec/StorageConfig/CsvOptions.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoverySpec/StorageConfig/CsvOptions.php deleted file mode 100644 index 5b2c631ee524..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoverySpec/StorageConfig/CsvOptions.php +++ /dev/null @@ -1,223 +0,0 @@ -google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.CsvOptions - */ -class CsvOptions extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The number of rows to interpret as header rows that should be - * skipped when reading data rows. - * - * Generated from protobuf field int32 header_rows = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $header_rows = 0; - /** - * Optional. The delimiter that is used to separate values. The default is - * `,` (comma). - * - * Generated from protobuf field string delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $delimiter = ''; - /** - * Optional. The character encoding of the data. The default is UTF-8. - * - * Generated from protobuf field string encoding = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $encoding = ''; - /** - * Optional. Whether to disable the inference of data types for CSV data. - * If true, all columns are registered as strings. - * - * Generated from protobuf field bool type_inference_disabled = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $type_inference_disabled = false; - /** - * Optional. The character used to quote column values. Accepts `"` - * (double quotation mark) or `'` (single quotation mark). If unspecified, - * defaults to `"` (double quotation mark). - * - * Generated from protobuf field string quote = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $quote = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $header_rows - * Optional. The number of rows to interpret as header rows that should be - * skipped when reading data rows. - * @type string $delimiter - * Optional. The delimiter that is used to separate values. The default is - * `,` (comma). - * @type string $encoding - * Optional. The character encoding of the data. The default is UTF-8. - * @type bool $type_inference_disabled - * Optional. Whether to disable the inference of data types for CSV data. - * If true, all columns are registered as strings. - * @type string $quote - * Optional. The character used to quote column values. Accepts `"` - * (double quotation mark) or `'` (single quotation mark). If unspecified, - * defaults to `"` (double quotation mark). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataDiscovery::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The number of rows to interpret as header rows that should be - * skipped when reading data rows. - * - * Generated from protobuf field int32 header_rows = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getHeaderRows() - { - return $this->header_rows; - } - - /** - * Optional. The number of rows to interpret as header rows that should be - * skipped when reading data rows. - * - * Generated from protobuf field int32 header_rows = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setHeaderRows($var) - { - GPBUtil::checkInt32($var); - $this->header_rows = $var; - - return $this; - } - - /** - * Optional. The delimiter that is used to separate values. The default is - * `,` (comma). - * - * Generated from protobuf field string delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDelimiter() - { - return $this->delimiter; - } - - /** - * Optional. The delimiter that is used to separate values. The default is - * `,` (comma). - * - * Generated from protobuf field string delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDelimiter($var) - { - GPBUtil::checkString($var, True); - $this->delimiter = $var; - - return $this; - } - - /** - * Optional. The character encoding of the data. The default is UTF-8. - * - * Generated from protobuf field string encoding = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEncoding() - { - return $this->encoding; - } - - /** - * Optional. The character encoding of the data. The default is UTF-8. - * - * Generated from protobuf field string encoding = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setEncoding($var) - { - GPBUtil::checkString($var, True); - $this->encoding = $var; - - return $this; - } - - /** - * Optional. Whether to disable the inference of data types for CSV data. - * If true, all columns are registered as strings. - * - * Generated from protobuf field bool type_inference_disabled = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getTypeInferenceDisabled() - { - return $this->type_inference_disabled; - } - - /** - * Optional. Whether to disable the inference of data types for CSV data. - * If true, all columns are registered as strings. - * - * Generated from protobuf field bool type_inference_disabled = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setTypeInferenceDisabled($var) - { - GPBUtil::checkBool($var); - $this->type_inference_disabled = $var; - - return $this; - } - - /** - * Optional. The character used to quote column values. Accepts `"` - * (double quotation mark) or `'` (single quotation mark). If unspecified, - * defaults to `"` (double quotation mark). - * - * Generated from protobuf field string quote = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getQuote() - { - return $this->quote; - } - - /** - * Optional. The character used to quote column values. Accepts `"` - * (double quotation mark) or `'` (single quotation mark). If unspecified, - * defaults to `"` (double quotation mark). - * - * Generated from protobuf field string quote = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setQuote($var) - { - GPBUtil::checkString($var, True); - $this->quote = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoverySpec/StorageConfig/JsonOptions.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoverySpec/StorageConfig/JsonOptions.php deleted file mode 100644 index b753df01f87c..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDiscoverySpec/StorageConfig/JsonOptions.php +++ /dev/null @@ -1,109 +0,0 @@ -google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.JsonOptions - */ -class JsonOptions extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The character encoding of the data. The default is UTF-8. - * - * Generated from protobuf field string encoding = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $encoding = ''; - /** - * Optional. Whether to disable the inference of data types for JSON data. - * If true, all columns are registered as their primitive types - * (strings, number, or boolean). - * - * Generated from protobuf field bool type_inference_disabled = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $type_inference_disabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $encoding - * Optional. The character encoding of the data. The default is UTF-8. - * @type bool $type_inference_disabled - * Optional. Whether to disable the inference of data types for JSON data. - * If true, all columns are registered as their primitive types - * (strings, number, or boolean). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataDiscovery::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The character encoding of the data. The default is UTF-8. - * - * Generated from protobuf field string encoding = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEncoding() - { - return $this->encoding; - } - - /** - * Optional. The character encoding of the data. The default is UTF-8. - * - * Generated from protobuf field string encoding = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setEncoding($var) - { - GPBUtil::checkString($var, True); - $this->encoding = $var; - - return $this; - } - - /** - * Optional. Whether to disable the inference of data types for JSON data. - * If true, all columns are registered as their primitive types - * (strings, number, or boolean). - * - * Generated from protobuf field bool type_inference_disabled = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getTypeInferenceDisabled() - { - return $this->type_inference_disabled; - } - - /** - * Optional. Whether to disable the inference of data types for JSON data. - * If true, all columns are registered as their primitive types - * (strings, number, or boolean). - * - * Generated from protobuf field bool type_inference_disabled = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setTypeInferenceDisabled($var) - { - GPBUtil::checkBool($var); - $this->type_inference_disabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult.php deleted file mode 100644 index a5f2f17c338c..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult.php +++ /dev/null @@ -1,108 +0,0 @@ -google.cloud.dataplex.v1.DataDocumentationResult - */ -class DataDocumentationResult extends \Google\Protobuf\Internal\Message -{ - protected $result; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\DataDocumentationResult\DatasetResult $dataset_result - * Output only. Insights for a Dataset resource. - * @type \Google\Cloud\Dataplex\V1\DataDocumentationResult\TableResult $table_result - * Output only. Insights for a Table resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataDocumentation::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Insights for a Dataset resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult dataset_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataplex\V1\DataDocumentationResult\DatasetResult|null - */ - public function getDatasetResult() - { - return $this->readOneof(7); - } - - public function hasDatasetResult() - { - return $this->hasOneof(7); - } - - /** - * Output only. Insights for a Dataset resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult dataset_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\DataDocumentationResult\DatasetResult $var - * @return $this - */ - public function setDatasetResult($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataDocumentationResult\DatasetResult::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * Output only. Insights for a Table resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataDocumentationResult.TableResult table_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataplex\V1\DataDocumentationResult\TableResult|null - */ - public function getTableResult() - { - return $this->readOneof(8); - } - - public function hasTableResult() - { - return $this->hasOneof(8); - } - - /** - * Output only. Insights for a Table resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataDocumentationResult.TableResult table_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\DataDocumentationResult\TableResult $var - * @return $this - */ - public function setTableResult($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataDocumentationResult\TableResult::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * @return string - */ - public function getResult() - { - return $this->whichOneof("result"); - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/DatasetResult.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/DatasetResult.php deleted file mode 100644 index 46c393ce568c..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/DatasetResult.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.dataplex.v1.DataDocumentationResult.DatasetResult - */ -class DatasetResult extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Generated Dataset description. - * - * Generated from protobuf field string overview = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $overview = ''; - /** - * Output only. Relationships suggesting how tables in the dataset are - * related to each other, based on their schema. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship schema_relationships = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $schema_relationships; - /** - * Output only. Sample SQL queries for the dataset. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $queries; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $overview - * Output only. Generated Dataset description. - * @type \Google\Cloud\Dataplex\V1\DataDocumentationResult\SchemaRelationship[] $schema_relationships - * Output only. Relationships suggesting how tables in the dataset are - * related to each other, based on their schema. - * @type \Google\Cloud\Dataplex\V1\DataDocumentationResult\Query[] $queries - * Output only. Sample SQL queries for the dataset. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataDocumentation::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Generated Dataset description. - * - * Generated from protobuf field string overview = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getOverview() - { - return $this->overview; - } - - /** - * Output only. Generated Dataset description. - * - * Generated from protobuf field string overview = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setOverview($var) - { - GPBUtil::checkString($var, True); - $this->overview = $var; - - return $this; - } - - /** - * Output only. Relationships suggesting how tables in the dataset are - * related to each other, based on their schema. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship schema_relationships = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField<\Google\Cloud\Dataplex\V1\DataDocumentationResult\SchemaRelationship> - */ - public function getSchemaRelationships() - { - return $this->schema_relationships; - } - - /** - * Output only. Relationships suggesting how tables in the dataset are - * related to each other, based on their schema. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship schema_relationships = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\DataDocumentationResult\SchemaRelationship[] $var - * @return $this - */ - public function setSchemaRelationships($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\DataDocumentationResult\SchemaRelationship::class); - $this->schema_relationships = $arr; - - return $this; - } - - /** - * Output only. Sample SQL queries for the dataset. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField<\Google\Cloud\Dataplex\V1\DataDocumentationResult\Query> - */ - public function getQueries() - { - return $this->queries; - } - - /** - * Output only. Sample SQL queries for the dataset. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\DataDocumentationResult\Query[] $var - * @return $this - */ - public function setQueries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\DataDocumentationResult\Query::class); - $this->queries = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/Field.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/Field.php deleted file mode 100644 index 37a462af7a15..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/Field.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.dataplex.v1.DataDocumentationResult.Field - */ -class Field extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The name of the column. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Output only. Generated description for columns and fields. - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $description = ''; - /** - * Output only. Nested fields. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $fields; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. The name of the column. - * @type string $description - * Output only. Generated description for columns and fields. - * @type \Google\Cloud\Dataplex\V1\DataDocumentationResult\Field[] $fields - * Output only. Nested fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataDocumentation::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The name of the column. - * - * 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 column. - * - * 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. Generated description for columns and fields. - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Output only. Generated description for columns and fields. - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Output only. Nested fields. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField<\Google\Cloud\Dataplex\V1\DataDocumentationResult\Field> - */ - public function getFields() - { - return $this->fields; - } - - /** - * Output only. Nested fields. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\DataDocumentationResult\Field[] $var - * @return $this - */ - public function setFields($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\DataDocumentationResult\Field::class); - $this->fields = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/Query.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/Query.php deleted file mode 100644 index 3cb9a8259b41..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/Query.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.dataplex.v1.DataDocumentationResult.Query - */ -class Query extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The SQL query string which can be executed. - * - * Generated from protobuf field string sql = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $sql = ''; - /** - * Output only. The description for the query. - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $description = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $sql - * Output only. The SQL query string which can be executed. - * @type string $description - * Output only. The description for the query. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataDocumentation::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The SQL query string which can be executed. - * - * Generated from protobuf field string sql = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getSql() - { - return $this->sql; - } - - /** - * Output only. The SQL query string which can be executed. - * - * Generated from protobuf field string sql = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setSql($var) - { - GPBUtil::checkString($var, True); - $this->sql = $var; - - return $this; - } - - /** - * Output only. The description for the query. - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Output only. The description for the query. - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/Schema.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/Schema.php deleted file mode 100644 index 9286f2e2fee9..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/Schema.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.dataplex.v1.DataDocumentationResult.Schema - */ -class Schema extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The list of columns. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $fields; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\DataDocumentationResult\Field[] $fields - * Output only. The list of columns. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataDocumentation::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The list of columns. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField<\Google\Cloud\Dataplex\V1\DataDocumentationResult\Field> - */ - public function getFields() - { - return $this->fields; - } - - /** - * Output only. The list of columns. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataDocumentationResult.Field fields = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\DataDocumentationResult\Field[] $var - * @return $this - */ - public function setFields($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\DataDocumentationResult\Field::class); - $this->fields = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/SchemaRelationship.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/SchemaRelationship.php deleted file mode 100644 index 9997ee5ce3ff..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/SchemaRelationship.php +++ /dev/null @@ -1,213 +0,0 @@ -google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship - */ -class SchemaRelationship extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. An ordered list of fields for the join from the first table. - * The size of this list must be the same as `right_schema_paths`. - * Each field at index i in this list must correspond to a field at the same - * index in the `right_schema_paths` list. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths left_schema_paths = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $left_schema_paths = null; - /** - * Output only. An ordered list of fields for the join from the second - * table. The size of this list must be the same as `left_schema_paths`. - * Each field at index i in this list must correspond to a field at the same - * index in the `left_schema_paths` list. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths right_schema_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $right_schema_paths = null; - /** - * Output only. Sources which generated the schema relation edge. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Source sources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $sources; - /** - * Output only. The type of relationship between the schema paths. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Type type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\DataDocumentationResult\SchemaRelationship\SchemaPaths $left_schema_paths - * Output only. An ordered list of fields for the join from the first table. - * The size of this list must be the same as `right_schema_paths`. - * Each field at index i in this list must correspond to a field at the same - * index in the `right_schema_paths` list. - * @type \Google\Cloud\Dataplex\V1\DataDocumentationResult\SchemaRelationship\SchemaPaths $right_schema_paths - * Output only. An ordered list of fields for the join from the second - * table. The size of this list must be the same as `left_schema_paths`. - * Each field at index i in this list must correspond to a field at the same - * index in the `left_schema_paths` list. - * @type int[] $sources - * Output only. Sources which generated the schema relation edge. - * @type int $type - * Output only. The type of relationship between the schema paths. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataDocumentation::initOnce(); - parent::__construct($data); - } - - /** - * Output only. An ordered list of fields for the join from the first table. - * The size of this list must be the same as `right_schema_paths`. - * Each field at index i in this list must correspond to a field at the same - * index in the `right_schema_paths` list. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths left_schema_paths = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataplex\V1\DataDocumentationResult\SchemaRelationship\SchemaPaths|null - */ - public function getLeftSchemaPaths() - { - return $this->left_schema_paths; - } - - public function hasLeftSchemaPaths() - { - return isset($this->left_schema_paths); - } - - public function clearLeftSchemaPaths() - { - unset($this->left_schema_paths); - } - - /** - * Output only. An ordered list of fields for the join from the first table. - * The size of this list must be the same as `right_schema_paths`. - * Each field at index i in this list must correspond to a field at the same - * index in the `right_schema_paths` list. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths left_schema_paths = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\DataDocumentationResult\SchemaRelationship\SchemaPaths $var - * @return $this - */ - public function setLeftSchemaPaths($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataDocumentationResult\SchemaRelationship\SchemaPaths::class); - $this->left_schema_paths = $var; - - return $this; - } - - /** - * Output only. An ordered list of fields for the join from the second - * table. The size of this list must be the same as `left_schema_paths`. - * Each field at index i in this list must correspond to a field at the same - * index in the `left_schema_paths` list. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths right_schema_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataplex\V1\DataDocumentationResult\SchemaRelationship\SchemaPaths|null - */ - public function getRightSchemaPaths() - { - return $this->right_schema_paths; - } - - public function hasRightSchemaPaths() - { - return isset($this->right_schema_paths); - } - - public function clearRightSchemaPaths() - { - unset($this->right_schema_paths); - } - - /** - * Output only. An ordered list of fields for the join from the second - * table. The size of this list must be the same as `left_schema_paths`. - * Each field at index i in this list must correspond to a field at the same - * index in the `left_schema_paths` list. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths right_schema_paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\DataDocumentationResult\SchemaRelationship\SchemaPaths $var - * @return $this - */ - public function setRightSchemaPaths($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataDocumentationResult\SchemaRelationship\SchemaPaths::class); - $this->right_schema_paths = $var; - - return $this; - } - - /** - * Output only. Sources which generated the schema relation edge. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Source sources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField - */ - public function getSources() - { - return $this->sources; - } - - /** - * Output only. Sources which generated the schema relation edge. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Source sources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int[] $var - * @return $this - */ - public function setSources($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Dataplex\V1\DataDocumentationResult\SchemaRelationship\Source::class); - $this->sources = $arr; - - return $this; - } - - /** - * Output only. The type of relationship between the schema paths. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Type type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Output only. The type of relationship between the schema paths. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Type type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\DataDocumentationResult\SchemaRelationship\Type::class); - $this->type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/SchemaRelationship/SchemaPaths.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/SchemaRelationship/SchemaPaths.php deleted file mode 100644 index e81eff9235d8..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/SchemaRelationship/SchemaPaths.php +++ /dev/null @@ -1,121 +0,0 @@ -google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.SchemaPaths - */ -class SchemaPaths extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The service-qualified full resource name of the table - * Ex: - * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID - * - * Generated from protobuf field string table_fqn = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $table_fqn = ''; - /** - * Output only. An ordered set of Paths to fields within the schema of the - * table. For fields nested within a top level field of type record, use - * '.' to separate field names. Examples: Top level field - `top_level` - * Nested field - `top_level.child.sub_field` - * - * Generated from protobuf field repeated string paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $paths; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $table_fqn - * Output only. The service-qualified full resource name of the table - * Ex: - * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID - * @type string[] $paths - * Output only. An ordered set of Paths to fields within the schema of the - * table. For fields nested within a top level field of type record, use - * '.' to separate field names. Examples: Top level field - `top_level` - * Nested field - `top_level.child.sub_field` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataDocumentation::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The service-qualified full resource name of the table - * Ex: - * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID - * - * Generated from protobuf field string table_fqn = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getTableFqn() - { - return $this->table_fqn; - } - - /** - * Output only. The service-qualified full resource name of the table - * Ex: - * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID - * - * Generated from protobuf field string table_fqn = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setTableFqn($var) - { - GPBUtil::checkString($var, True); - $this->table_fqn = $var; - - return $this; - } - - /** - * Output only. An ordered set of Paths to fields within the schema of the - * table. For fields nested within a top level field of type record, use - * '.' to separate field names. Examples: Top level field - `top_level` - * Nested field - `top_level.child.sub_field` - * - * Generated from protobuf field repeated string paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField - */ - public function getPaths() - { - return $this->paths; - } - - /** - * Output only. An ordered set of Paths to fields within the schema of the - * table. For fields nested within a top level field of type record, use - * '.' to separate field names. Examples: Top level field - `top_level` - * Nested field - `top_level.child.sub_field` - * - * Generated from protobuf field repeated string paths = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string[] $var - * @return $this - */ - public function setPaths($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->paths = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/SchemaRelationship/Source.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/SchemaRelationship/Source.php deleted file mode 100644 index f4a5ca2274ee..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/SchemaRelationship/Source.php +++ /dev/null @@ -1,70 +0,0 @@ -google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Source - */ -class Source -{ - /** - * The source of the schema relationship is unspecified. - * - * Generated from protobuf enum SOURCE_UNSPECIFIED = 0; - */ - const SOURCE_UNSPECIFIED = 0; - /** - * The source of the schema relationship is agent. - * - * Generated from protobuf enum AGENT = 4; - */ - const AGENT = 4; - /** - * The source of the schema relationship is query history from the source - * system. - * - * Generated from protobuf enum QUERY_HISTORY = 5; - */ - const QUERY_HISTORY = 5; - /** - * The source of the schema relationship is table constraints added in - * the source system. - * - * Generated from protobuf enum TABLE_CONSTRAINTS = 6; - */ - const TABLE_CONSTRAINTS = 6; - - private static $valueToName = [ - self::SOURCE_UNSPECIFIED => 'SOURCE_UNSPECIFIED', - self::AGENT => 'AGENT', - self::QUERY_HISTORY => 'QUERY_HISTORY', - self::TABLE_CONSTRAINTS => 'TABLE_CONSTRAINTS', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/SchemaRelationship/Type.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/SchemaRelationship/Type.php deleted file mode 100644 index f3948cd9ab2d..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/SchemaRelationship/Type.php +++ /dev/null @@ -1,54 +0,0 @@ -google.cloud.dataplex.v1.DataDocumentationResult.SchemaRelationship.Type - */ -class Type -{ - /** - * The type of the schema relationship is unspecified. - * - * Generated from protobuf enum TYPE_UNSPECIFIED = 0; - */ - const TYPE_UNSPECIFIED = 0; - /** - * Indicates a join relationship between the schema fields. - * - * Generated from protobuf enum SCHEMA_JOIN = 1; - */ - const SCHEMA_JOIN = 1; - - private static $valueToName = [ - self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', - self::SCHEMA_JOIN => 'SCHEMA_JOIN', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/TableResult.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/TableResult.php deleted file mode 100644 index 44b569fb8955..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationResult/TableResult.php +++ /dev/null @@ -1,191 +0,0 @@ -google.cloud.dataplex.v1.DataDocumentationResult.TableResult - */ -class TableResult extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The service-qualified full resource name of the cloud - * resource. Ex: - * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Output only. Generated description of the table. - * - * Generated from protobuf field string overview = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $overview = ''; - /** - * Output only. Schema of the table with generated metadata of the columns - * in the schema. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataDocumentationResult.Schema schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $schema = null; - /** - * Output only. Sample SQL queries for the table. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $queries; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. The service-qualified full resource name of the cloud - * resource. Ex: - * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID - * @type string $overview - * Output only. Generated description of the table. - * @type \Google\Cloud\Dataplex\V1\DataDocumentationResult\Schema $schema - * Output only. Schema of the table with generated metadata of the columns - * in the schema. - * @type \Google\Cloud\Dataplex\V1\DataDocumentationResult\Query[] $queries - * Output only. Sample SQL queries for the table. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataDocumentation::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The service-qualified full resource name of the cloud - * resource. Ex: - * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The service-qualified full resource name of the cloud - * resource. Ex: - * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID - * - * 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. Generated description of the table. - * - * Generated from protobuf field string overview = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getOverview() - { - return $this->overview; - } - - /** - * Output only. Generated description of the table. - * - * Generated from protobuf field string overview = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setOverview($var) - { - GPBUtil::checkString($var, True); - $this->overview = $var; - - return $this; - } - - /** - * Output only. Schema of the table with generated metadata of the columns - * in the schema. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataDocumentationResult.Schema schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataplex\V1\DataDocumentationResult\Schema|null - */ - public function getSchema() - { - return $this->schema; - } - - public function hasSchema() - { - return isset($this->schema); - } - - public function clearSchema() - { - unset($this->schema); - } - - /** - * Output only. Schema of the table with generated metadata of the columns - * in the schema. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataDocumentationResult.Schema schema = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\DataDocumentationResult\Schema $var - * @return $this - */ - public function setSchema($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataDocumentationResult\Schema::class); - $this->schema = $var; - - return $this; - } - - /** - * Output only. Sample SQL queries for the table. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField<\Google\Cloud\Dataplex\V1\DataDocumentationResult\Query> - */ - public function getQueries() - { - return $this->queries; - } - - /** - * Output only. Sample SQL queries for the table. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataDocumentationResult.Query queries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\DataDocumentationResult\Query[] $var - * @return $this - */ - public function setQueries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\DataDocumentationResult\Query::class); - $this->queries = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationSpec.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationSpec.php deleted file mode 100644 index 24182de45dc8..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationSpec.php +++ /dev/null @@ -1,113 +0,0 @@ -google.cloud.dataplex.v1.DataDocumentationSpec - */ -class DataDocumentationSpec extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Whether to publish result to Dataplex Catalog. - * - * Generated from protobuf field bool catalog_publishing_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $catalog_publishing_enabled = false; - /** - * Optional. Specifies which components of the data documentation to generate. - * Any component that is required to generate the specified components will - * also be generated. If no generation scope is specified, all available - * documentation components will be generated. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataDocumentationSpec.GenerationScope generation_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $generation_scopes; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $catalog_publishing_enabled - * Optional. Whether to publish result to Dataplex Catalog. - * @type int[] $generation_scopes - * Optional. Specifies which components of the data documentation to generate. - * Any component that is required to generate the specified components will - * also be generated. If no generation scope is specified, all available - * documentation components will be generated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataDocumentation::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Whether to publish result to Dataplex Catalog. - * - * Generated from protobuf field bool catalog_publishing_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getCatalogPublishingEnabled() - { - return $this->catalog_publishing_enabled; - } - - /** - * Optional. Whether to publish result to Dataplex Catalog. - * - * Generated from protobuf field bool catalog_publishing_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setCatalogPublishingEnabled($var) - { - GPBUtil::checkBool($var); - $this->catalog_publishing_enabled = $var; - - return $this; - } - - /** - * Optional. Specifies which components of the data documentation to generate. - * Any component that is required to generate the specified components will - * also be generated. If no generation scope is specified, all available - * documentation components will be generated. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataDocumentationSpec.GenerationScope generation_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getGenerationScopes() - { - return $this->generation_scopes; - } - - /** - * Optional. Specifies which components of the data documentation to generate. - * Any component that is required to generate the specified components will - * also be generated. If no generation scope is specified, all available - * documentation components will be generated. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataDocumentationSpec.GenerationScope generation_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param int[] $var - * @return $this - */ - public function setGenerationScopes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Dataplex\V1\DataDocumentationSpec\GenerationScope::class); - $this->generation_scopes = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationSpec/GenerationScope.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationSpec/GenerationScope.php deleted file mode 100644 index 4eab919c552a..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataDocumentationSpec/GenerationScope.php +++ /dev/null @@ -1,70 +0,0 @@ -google.cloud.dataplex.v1.DataDocumentationSpec.GenerationScope - */ -class GenerationScope -{ - /** - * Unspecified generation scope. If no generation scope is specified, all - * available documentation components will be generated. - * - * Generated from protobuf enum GENERATION_SCOPE_UNSPECIFIED = 0; - */ - const GENERATION_SCOPE_UNSPECIFIED = 0; - /** - * All the possible results will be generated. - * - * Generated from protobuf enum ALL = 1; - */ - const ALL = 1; - /** - * Table and column descriptions will be generated. - * - * Generated from protobuf enum TABLE_AND_COLUMN_DESCRIPTIONS = 2; - */ - const TABLE_AND_COLUMN_DESCRIPTIONS = 2; - /** - * SQL queries will be generated. - * - * Generated from protobuf enum SQL_QUERIES = 3; - */ - const SQL_QUERIES = 3; - - private static $valueToName = [ - self::GENERATION_SCOPE_UNSPECIFIED => 'GENERATION_SCOPE_UNSPECIFIED', - self::ALL => 'ALL', - self::TABLE_AND_COLUMN_DESCRIPTIONS => 'TABLE_AND_COLUMN_DESCRIPTIONS', - self::SQL_QUERIES => 'SQL_QUERIES', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProduct.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProduct.php deleted file mode 100644 index 5ea6efdba3bf..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProduct.php +++ /dev/null @@ -1,639 +0,0 @@ -google.cloud.dataplex.v1.DataProduct - */ -class DataProduct extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. Resource name of the data product. - * Format: - * `projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. System generated unique ID for the data product. - * This ID will be different if the data product is deleted and re-created - * with the same name. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - */ - protected $uid = ''; - /** - * Required. User-friendly display name of the data product. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Output only. The time at which the data product was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time at which the data product was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Optional. This checksum is computed by the server based on the value of - * other fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $etag = ''; - /** - * Optional. User-defined labels for the data product. - * Example: - * ``` - * { - * "environment": "production", - * "billing": "marketing-department" - * } - * ``` - * - * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $labels; - /** - * Optional. Description of the data product. - * - * Generated from protobuf field string description = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Optional. Base64 encoded image representing the data product. Max - * Size: 3.0MiB Expected image dimensions are 512x512 pixels, however the API - * only performs validation on size of the encoded data. Note: For byte - * fields, the content of the fields are base64-encoded (which increases the - * size of the data by 33-36%) when using JSON on the wire. - * - * Generated from protobuf field bytes icon = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $icon = ''; - /** - * Required. Emails of the data product owners. - * - * Generated from protobuf field repeated string owner_emails = 11 [(.google.api.field_behavior) = REQUIRED]; - */ - private $owner_emails; - /** - * Output only. Number of data assets associated with this data product. - * - * Generated from protobuf field int32 asset_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $asset_count = 0; - /** - * Optional. Data product access groups by access group id as key. - * If data product is used only for packaging data assets, then access groups - * may be empty. However, if a data product is used for sharing data assets, - * then at least one access group must be specified. - * Example: - * ``` - * { - * "analyst": { - * "id": "analyst", - * "displayName": "Analyst", - * "description": "Access group for analysts", - * "principal": { - * "googleGroup": "analysts\@example.com" - * } - * } - * } - * ``` - * - * Generated from protobuf field map access_groups = 14 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $access_groups; - /** - * Optional. Configuration for access approval for the data product. - * - * Generated from protobuf field optional .google.cloud.dataplex.v1.DataProduct.AccessApprovalConfig access_approval_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $access_approval_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. Resource name of the data product. - * Format: - * `projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}`. - * @type string $uid - * Output only. System generated unique ID for the data product. - * This ID will be different if the data product is deleted and re-created - * with the same name. - * @type string $display_name - * Required. User-friendly display name of the data product. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time at which the data product was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time at which the data product was last updated. - * @type string $etag - * Optional. This checksum is computed by the server based on the value of - * other fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Optional. User-defined labels for the data product. - * Example: - * ``` - * { - * "environment": "production", - * "billing": "marketing-department" - * } - * ``` - * @type string $description - * Optional. Description of the data product. - * @type string $icon - * Optional. Base64 encoded image representing the data product. Max - * Size: 3.0MiB Expected image dimensions are 512x512 pixels, however the API - * only performs validation on size of the encoded data. Note: For byte - * fields, the content of the fields are base64-encoded (which increases the - * size of the data by 33-36%) when using JSON on the wire. - * @type string[] $owner_emails - * Required. Emails of the data product owners. - * @type int $asset_count - * Output only. Number of data assets associated with this data product. - * @type array|\Google\Protobuf\Internal\MapField $access_groups - * Optional. Data product access groups by access group id as key. - * If data product is used only for packaging data assets, then access groups - * may be empty. However, if a data product is used for sharing data assets, - * then at least one access group must be specified. - * Example: - * ``` - * { - * "analyst": { - * "id": "analyst", - * "displayName": "Analyst", - * "description": "Access group for analysts", - * "principal": { - * "googleGroup": "analysts\@example.com" - * } - * } - * } - * ``` - * @type \Google\Cloud\Dataplex\V1\DataProduct\AccessApprovalConfig $access_approval_config - * Optional. Configuration for access approval for the data product. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataProducts::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. Resource name of the data product. - * Format: - * `projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. Resource name of the data product. - * Format: - * `projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. System generated unique ID for the data product. - * This ID will be different if the data product is deleted and re-created - * with the same name. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. System generated unique ID for the data product. - * This ID will be different if the data product is deleted and re-created - * with the same name. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Required. User-friendly display name of the data product. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. User-friendly display name of the data product. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Output only. The time at which the data product was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.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 data product was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.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 data product was last updated. - * - * 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 time at which the data product was last updated. - * - * 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. This checksum is computed by the server based on the value of - * other fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Optional. This checksum is computed by the server based on the value of - * other fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Optional. User-defined labels for the data product. - * Example: - * ``` - * { - * "environment": "production", - * "billing": "marketing-department" - * } - * ``` - * - * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Optional. User-defined labels for the data product. - * Example: - * ``` - * { - * "environment": "production", - * "billing": "marketing-department" - * } - * ``` - * - * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Optional. Description of the data product. - * - * Generated from protobuf field string description = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. Description of the data product. - * - * Generated from protobuf field string description = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Optional. Base64 encoded image representing the data product. Max - * Size: 3.0MiB Expected image dimensions are 512x512 pixels, however the API - * only performs validation on size of the encoded data. Note: For byte - * fields, the content of the fields are base64-encoded (which increases the - * size of the data by 33-36%) when using JSON on the wire. - * - * Generated from protobuf field bytes icon = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getIcon() - { - return $this->icon; - } - - /** - * Optional. Base64 encoded image representing the data product. Max - * Size: 3.0MiB Expected image dimensions are 512x512 pixels, however the API - * only performs validation on size of the encoded data. Note: For byte - * fields, the content of the fields are base64-encoded (which increases the - * size of the data by 33-36%) when using JSON on the wire. - * - * Generated from protobuf field bytes icon = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setIcon($var) - { - GPBUtil::checkString($var, False); - $this->icon = $var; - - return $this; - } - - /** - * Required. Emails of the data product owners. - * - * Generated from protobuf field repeated string owner_emails = 11 [(.google.api.field_behavior) = REQUIRED]; - * @return RepeatedField - */ - public function getOwnerEmails() - { - return $this->owner_emails; - } - - /** - * Required. Emails of the data product owners. - * - * Generated from protobuf field repeated string owner_emails = 11 [(.google.api.field_behavior) = REQUIRED]; - * @param string[] $var - * @return $this - */ - public function setOwnerEmails($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->owner_emails = $arr; - - return $this; - } - - /** - * Output only. Number of data assets associated with this data product. - * - * Generated from protobuf field int32 asset_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getAssetCount() - { - return $this->asset_count; - } - - /** - * Output only. Number of data assets associated with this data product. - * - * Generated from protobuf field int32 asset_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setAssetCount($var) - { - GPBUtil::checkInt32($var); - $this->asset_count = $var; - - return $this; - } - - /** - * Optional. Data product access groups by access group id as key. - * If data product is used only for packaging data assets, then access groups - * may be empty. However, if a data product is used for sharing data assets, - * then at least one access group must be specified. - * Example: - * ``` - * { - * "analyst": { - * "id": "analyst", - * "displayName": "Analyst", - * "description": "Access group for analysts", - * "principal": { - * "googleGroup": "analysts\@example.com" - * } - * } - * } - * ``` - * - * Generated from protobuf field map access_groups = 14 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAccessGroups() - { - return $this->access_groups; - } - - /** - * Optional. Data product access groups by access group id as key. - * If data product is used only for packaging data assets, then access groups - * may be empty. However, if a data product is used for sharing data assets, - * then at least one access group must be specified. - * Example: - * ``` - * { - * "analyst": { - * "id": "analyst", - * "displayName": "Analyst", - * "description": "Access group for analysts", - * "principal": { - * "googleGroup": "analysts\@example.com" - * } - * } - * } - * ``` - * - * Generated from protobuf field map access_groups = 14 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAccessGroups($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\DataProduct\AccessGroup::class); - $this->access_groups = $arr; - - return $this; - } - - /** - * Optional. Configuration for access approval for the data product. - * - * Generated from protobuf field optional .google.cloud.dataplex.v1.DataProduct.AccessApprovalConfig access_approval_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dataplex\V1\DataProduct\AccessApprovalConfig|null - */ - public function getAccessApprovalConfig() - { - return $this->access_approval_config; - } - - public function hasAccessApprovalConfig() - { - return isset($this->access_approval_config); - } - - public function clearAccessApprovalConfig() - { - unset($this->access_approval_config); - } - - /** - * Optional. Configuration for access approval for the data product. - * - * Generated from protobuf field optional .google.cloud.dataplex.v1.DataProduct.AccessApprovalConfig access_approval_config = 15 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataplex\V1\DataProduct\AccessApprovalConfig $var - * @return $this - */ - public function setAccessApprovalConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataProduct\AccessApprovalConfig::class); - $this->access_approval_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProduct/AccessGroup.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProduct/AccessGroup.php deleted file mode 100644 index 2da3cafea48f..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProduct/AccessGroup.php +++ /dev/null @@ -1,189 +0,0 @@ -google.cloud.dataplex.v1.DataProduct.AccessGroup - */ -class AccessGroup extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Unique identifier of the access group within the data product. - * User defined. Eg. "analyst", "developer", etc. - * - * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $id = ''; - /** - * Required. User friendly display name of the access group. - * Eg. "Analyst", "Developer", etc. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Optional. Description of the access group. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Required. The principal entity associated with this access group. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataProduct.Principal principal = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $principal = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * Required. Unique identifier of the access group within the data product. - * User defined. Eg. "analyst", "developer", etc. - * @type string $display_name - * Required. User friendly display name of the access group. - * Eg. "Analyst", "Developer", etc. - * @type string $description - * Optional. Description of the access group. - * @type \Google\Cloud\Dataplex\V1\DataProduct\Principal $principal - * Required. The principal entity associated with this access group. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataProducts::initOnce(); - parent::__construct($data); - } - - /** - * Required. Unique identifier of the access group within the data product. - * User defined. Eg. "analyst", "developer", etc. - * - * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Required. Unique identifier of the access group within the data product. - * User defined. Eg. "analyst", "developer", etc. - * - * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * Required. User friendly display name of the access group. - * Eg. "Analyst", "Developer", etc. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. User friendly display name of the access group. - * Eg. "Analyst", "Developer", etc. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Optional. Description of the access group. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. Description of the access group. - * - * 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. The principal entity associated with this access group. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataProduct.Principal principal = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataplex\V1\DataProduct\Principal|null - */ - public function getPrincipal() - { - return $this->principal; - } - - public function hasPrincipal() - { - return isset($this->principal); - } - - public function clearPrincipal() - { - unset($this->principal); - } - - /** - * Required. The principal entity associated with this access group. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataProduct.Principal principal = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\DataProduct\Principal $var - * @return $this - */ - public function setPrincipal($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataProduct\Principal::class); - $this->principal = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProduct/Principal.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProduct/Principal.php deleted file mode 100644 index 558e897b2f80..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProduct/Principal.php +++ /dev/null @@ -1,127 +0,0 @@ -google.cloud.dataplex.v1.DataProduct.Principal - */ -class Principal extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Specifies the email of the producer service account, as per - * https://cloud.google.com/iam/docs/principals-overview#service-account. - * - * Generated from protobuf field optional string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $service_account = null; - protected $type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $google_group - * Optional. Email of the Google Group, as per - * https://cloud.google.com/iam/docs/principals-overview#google-group. - * @type string $service_account - * Optional. Specifies the email of the producer service account, as per - * https://cloud.google.com/iam/docs/principals-overview#service-account. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataProducts::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Email of the Google Group, as per - * https://cloud.google.com/iam/docs/principals-overview#google-group. - * - * Generated from protobuf field string google_group = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getGoogleGroup() - { - return $this->readOneof(1); - } - - public function hasGoogleGroup() - { - return $this->hasOneof(1); - } - - /** - * Optional. Email of the Google Group, as per - * https://cloud.google.com/iam/docs/principals-overview#google-group. - * - * Generated from protobuf field string google_group = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setGoogleGroup($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Optional. Specifies the email of the producer service account, as per - * https://cloud.google.com/iam/docs/principals-overview#service-account. - * - * Generated from protobuf field optional string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getServiceAccount() - { - return isset($this->service_account) ? $this->service_account : ''; - } - - public function hasServiceAccount() - { - return isset($this->service_account); - } - - public function clearServiceAccount() - { - unset($this->service_account); - } - - /** - * Optional. Specifies the email of the producer service account, as per - * https://cloud.google.com/iam/docs/principals-overview#service-account. - * - * Generated from protobuf field optional string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setServiceAccount($var) - { - GPBUtil::checkString($var, True); - $this->service_account = $var; - - return $this; - } - - /** - * @return string - */ - public function getType() - { - return $this->whichOneof("type"); - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult.php deleted file mode 100644 index eca24397eb00..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult.php +++ /dev/null @@ -1,248 +0,0 @@ -google.cloud.dataplex.v1.DataProfileResult - */ -class DataProfileResult extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The count of rows scanned. - * - * Generated from protobuf field int64 row_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $row_count = 0; - /** - * Output only. The profile information per field. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileResult.Profile profile = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $profile = null; - /** - * Output only. The data scanned for this result. - * - * Generated from protobuf field .google.cloud.dataplex.v1.ScannedData scanned_data = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $scanned_data = null; - /** - * Output only. The result of post scan actions. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult post_scan_actions_result = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $post_scan_actions_result = null; - /** - * Output only. The status of publishing the data scan as Dataplex Universal - * Catalog metadata. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScanCatalogPublishingStatus catalog_publishing_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $catalog_publishing_status = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $row_count - * Output only. The count of rows scanned. - * @type \Google\Cloud\Dataplex\V1\DataProfileResult\Profile $profile - * Output only. The profile information per field. - * @type \Google\Cloud\Dataplex\V1\ScannedData $scanned_data - * Output only. The data scanned for this result. - * @type \Google\Cloud\Dataplex\V1\DataProfileResult\PostScanActionsResult $post_scan_actions_result - * Output only. The result of post scan actions. - * @type \Google\Cloud\Dataplex\V1\DataScanCatalogPublishingStatus $catalog_publishing_status - * Output only. The status of publishing the data scan as Dataplex Universal - * Catalog metadata. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataProfile::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The count of rows scanned. - * - * Generated from protobuf field int64 row_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getRowCount() - { - return $this->row_count; - } - - /** - * Output only. The count of rows scanned. - * - * Generated from protobuf field int64 row_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setRowCount($var) - { - GPBUtil::checkInt64($var); - $this->row_count = $var; - - return $this; - } - - /** - * Output only. The profile information per field. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileResult.Profile profile = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataplex\V1\DataProfileResult\Profile|null - */ - public function getProfile() - { - return $this->profile; - } - - public function hasProfile() - { - return isset($this->profile); - } - - public function clearProfile() - { - unset($this->profile); - } - - /** - * Output only. The profile information per field. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileResult.Profile profile = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\DataProfileResult\Profile $var - * @return $this - */ - public function setProfile($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataProfileResult\Profile::class); - $this->profile = $var; - - return $this; - } - - /** - * Output only. The data scanned for this result. - * - * Generated from protobuf field .google.cloud.dataplex.v1.ScannedData scanned_data = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataplex\V1\ScannedData|null - */ - public function getScannedData() - { - return $this->scanned_data; - } - - public function hasScannedData() - { - return isset($this->scanned_data); - } - - public function clearScannedData() - { - unset($this->scanned_data); - } - - /** - * Output only. The data scanned for this result. - * - * Generated from protobuf field .google.cloud.dataplex.v1.ScannedData scanned_data = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\ScannedData $var - * @return $this - */ - public function setScannedData($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\ScannedData::class); - $this->scanned_data = $var; - - return $this; - } - - /** - * Output only. The result of post scan actions. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult post_scan_actions_result = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataplex\V1\DataProfileResult\PostScanActionsResult|null - */ - public function getPostScanActionsResult() - { - return $this->post_scan_actions_result; - } - - public function hasPostScanActionsResult() - { - return isset($this->post_scan_actions_result); - } - - public function clearPostScanActionsResult() - { - unset($this->post_scan_actions_result); - } - - /** - * Output only. The result of post scan actions. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult post_scan_actions_result = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\DataProfileResult\PostScanActionsResult $var - * @return $this - */ - public function setPostScanActionsResult($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataProfileResult\PostScanActionsResult::class); - $this->post_scan_actions_result = $var; - - return $this; - } - - /** - * Output only. The status of publishing the data scan as Dataplex Universal - * Catalog metadata. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScanCatalogPublishingStatus catalog_publishing_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataplex\V1\DataScanCatalogPublishingStatus|null - */ - public function getCatalogPublishingStatus() - { - return $this->catalog_publishing_status; - } - - public function hasCatalogPublishingStatus() - { - return isset($this->catalog_publishing_status); - } - - public function clearCatalogPublishingStatus() - { - unset($this->catalog_publishing_status); - } - - /** - * Output only. The status of publishing the data scan as Dataplex Universal - * Catalog metadata. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScanCatalogPublishingStatus catalog_publishing_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\DataScanCatalogPublishingStatus $var - * @return $this - */ - public function setCatalogPublishingStatus($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataScanCatalogPublishingStatus::class); - $this->catalog_publishing_status = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/PostScanActionsResult.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/PostScanActionsResult.php deleted file mode 100644 index d3f47fdd9fdd..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/PostScanActionsResult.php +++ /dev/null @@ -1,77 +0,0 @@ -google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult - */ -class PostScanActionsResult extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The result of BigQuery export post scan action. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult bigquery_export_result = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $bigquery_export_result = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\DataProfileResult\PostScanActionsResult\BigQueryExportResult $bigquery_export_result - * Output only. The result of BigQuery export post scan action. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataProfile::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The result of BigQuery export post scan action. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult bigquery_export_result = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataplex\V1\DataProfileResult\PostScanActionsResult\BigQueryExportResult|null - */ - public function getBigqueryExportResult() - { - return $this->bigquery_export_result; - } - - public function hasBigqueryExportResult() - { - return isset($this->bigquery_export_result); - } - - public function clearBigqueryExportResult() - { - unset($this->bigquery_export_result); - } - - /** - * Output only. The result of BigQuery export post scan action. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult bigquery_export_result = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\DataProfileResult\PostScanActionsResult\BigQueryExportResult $var - * @return $this - */ - public function setBigqueryExportResult($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataProfileResult\PostScanActionsResult\BigQueryExportResult::class); - $this->bigquery_export_result = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/PostScanActionsResult/BigQueryExportResult.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/PostScanActionsResult/BigQueryExportResult.php deleted file mode 100644 index fda915947774..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/PostScanActionsResult/BigQueryExportResult.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult - */ -class BigQueryExportResult extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Execution state for the BigQuery exporting. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. Additional information about the BigQuery exporting. - * - * Generated from protobuf field string message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $message = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $state - * Output only. Execution state for the BigQuery exporting. - * @type string $message - * Output only. Additional information about the BigQuery exporting. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataProfile::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Execution state for the BigQuery exporting. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. Execution state for the BigQuery exporting. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\DataProfileResult\PostScanActionsResult\BigQueryExportResult\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. Additional information about the BigQuery exporting. - * - * Generated from protobuf field string message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * Output only. Additional information about the BigQuery exporting. - * - * Generated from protobuf field string message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkString($var, True); - $this->message = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/PostScanActionsResult/BigQueryExportResult/State.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/PostScanActionsResult/BigQueryExportResult/State.php deleted file mode 100644 index 64e863f03021..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/PostScanActionsResult/BigQueryExportResult/State.php +++ /dev/null @@ -1,69 +0,0 @@ -google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult.State - */ -class State -{ - /** - * The exporting state is unspecified. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The exporting completed successfully. - * - * Generated from protobuf enum SUCCEEDED = 1; - */ - const SUCCEEDED = 1; - /** - * The exporting is no longer running due to an error. - * - * Generated from protobuf enum FAILED = 2; - */ - const FAILED = 2; - /** - * The exporting is skipped due to no valid scan result to export - * (usually caused by scan failed). - * - * Generated from protobuf enum SKIPPED = 3; - */ - const SKIPPED = 3; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::SUCCEEDED => 'SUCCEEDED', - self::FAILED => 'FAILED', - self::SKIPPED => 'SKIPPED', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile.php deleted file mode 100644 index d88b04767219..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.dataplex.v1.DataProfileResult.Profile - */ -class Profile extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. List of fields with structural and profile information for - * each field. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $fields; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\DataProfileResult\Profile\Field[] $fields - * Output only. List of fields with structural and profile information for - * each field. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataProfile::initOnce(); - parent::__construct($data); - } - - /** - * Output only. List of fields with structural and profile information for - * each field. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField<\Google\Cloud\Dataplex\V1\DataProfileResult\Profile\Field> - */ - public function getFields() - { - return $this->fields; - } - - /** - * Output only. List of fields with structural and profile information for - * each field. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\DataProfileResult\Profile\Field[] $var - * @return $this - */ - public function setFields($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\DataProfileResult\Profile\Field::class); - $this->fields = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile/Field.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile/Field.php deleted file mode 100644 index 198ed77a713f..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile/Field.php +++ /dev/null @@ -1,211 +0,0 @@ -google.cloud.dataplex.v1.DataProfileResult.Profile.Field - */ -class Field extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The name of the field. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Output only. The data type retrieved from the schema of the data - * source. For instance, for a BigQuery native table, it is the [BigQuery - * Table - * Schema](https://cloud.google.com/bigquery/docs/reference/rest/v2/tables#tablefieldschema). - * For a Dataplex Universal Catalog Entity, it is the [Entity - * Schema](https://cloud.google.com/dataplex/docs/reference/rpc/google.cloud.dataplex.v1#type_3). - * - * Generated from protobuf field string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $type = ''; - /** - * Output only. The mode of the field. Possible values include: - * * REQUIRED, if it is a required field. - * * NULLABLE, if it is an optional field. - * * REPEATED, if it is a repeated field. - * - * Generated from protobuf field string mode = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $mode = ''; - /** - * Output only. Profile information for the corresponding field. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo profile = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $profile = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. The name of the field. - * @type string $type - * Output only. The data type retrieved from the schema of the data - * source. For instance, for a BigQuery native table, it is the [BigQuery - * Table - * Schema](https://cloud.google.com/bigquery/docs/reference/rest/v2/tables#tablefieldschema). - * For a Dataplex Universal Catalog Entity, it is the [Entity - * Schema](https://cloud.google.com/dataplex/docs/reference/rpc/google.cloud.dataplex.v1#type_3). - * @type string $mode - * Output only. The mode of the field. Possible values include: - * * REQUIRED, if it is a required field. - * * NULLABLE, if it is an optional field. - * * REPEATED, if it is a repeated field. - * @type \Google\Cloud\Dataplex\V1\DataProfileResult\Profile\Field\ProfileInfo $profile - * Output only. Profile information for the corresponding field. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataProfile::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The name of the field. - * - * 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 field. - * - * 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 data type retrieved from the schema of the data - * source. For instance, for a BigQuery native table, it is the [BigQuery - * Table - * Schema](https://cloud.google.com/bigquery/docs/reference/rest/v2/tables#tablefieldschema). - * For a Dataplex Universal Catalog Entity, it is the [Entity - * Schema](https://cloud.google.com/dataplex/docs/reference/rpc/google.cloud.dataplex.v1#type_3). - * - * Generated from protobuf field string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * Output only. The data type retrieved from the schema of the data - * source. For instance, for a BigQuery native table, it is the [BigQuery - * Table - * Schema](https://cloud.google.com/bigquery/docs/reference/rest/v2/tables#tablefieldschema). - * For a Dataplex Universal Catalog Entity, it is the [Entity - * Schema](https://cloud.google.com/dataplex/docs/reference/rpc/google.cloud.dataplex.v1#type_3). - * - * Generated from protobuf field string type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkString($var, True); - $this->type = $var; - - return $this; - } - - /** - * Output only. The mode of the field. Possible values include: - * * REQUIRED, if it is a required field. - * * NULLABLE, if it is an optional field. - * * REPEATED, if it is a repeated field. - * - * Generated from protobuf field string mode = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getMode() - { - return $this->mode; - } - - /** - * Output only. The mode of the field. Possible values include: - * * REQUIRED, if it is a required field. - * * NULLABLE, if it is an optional field. - * * REPEATED, if it is a repeated field. - * - * Generated from protobuf field string mode = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setMode($var) - { - GPBUtil::checkString($var, True); - $this->mode = $var; - - return $this; - } - - /** - * Output only. Profile information for the corresponding field. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo profile = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataplex\V1\DataProfileResult\Profile\Field\ProfileInfo|null - */ - public function getProfile() - { - return $this->profile; - } - - public function hasProfile() - { - return isset($this->profile); - } - - public function clearProfile() - { - unset($this->profile); - } - - /** - * Output only. Profile information for the corresponding field. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo profile = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\DataProfileResult\Profile\Field\ProfileInfo $var - * @return $this - */ - public function setProfile($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataProfileResult\Profile\Field\ProfileInfo::class); - $this->profile = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile/Field/ProfileInfo.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile/Field/ProfileInfo.php deleted file mode 100644 index f880d6be35fb..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile/Field/ProfileInfo.php +++ /dev/null @@ -1,275 +0,0 @@ -google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo - */ -class ProfileInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Ratio of rows with null value against total scanned - * rows. - * - * Generated from protobuf field double null_ratio = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $null_ratio = 0.0; - /** - * Output only. Ratio of rows with distinct values against total scanned - * rows. Not available for complex non-groupable field type, including - * RECORD, ARRAY, GEOGRAPHY, and JSON, as well as fields with REPEATABLE - * mode. - * - * Generated from protobuf field double distinct_ratio = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $distinct_ratio = 0.0; - /** - * Output only. The list of top N non-null values, frequency and ratio - * with which they occur in the scanned data. N is 10 or equal to the - * number of distinct values in the field, whichever is smaller. Not - * available for complex non-groupable field type, including RECORD, - * ARRAY, GEOGRAPHY, and JSON, as well as fields with REPEATABLE mode. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $top_n_values; - protected $field_info; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $null_ratio - * Output only. Ratio of rows with null value against total scanned - * rows. - * @type float $distinct_ratio - * Output only. Ratio of rows with distinct values against total scanned - * rows. Not available for complex non-groupable field type, including - * RECORD, ARRAY, GEOGRAPHY, and JSON, as well as fields with REPEATABLE - * mode. - * @type \Google\Cloud\Dataplex\V1\DataProfileResult\Profile\Field\ProfileInfo\TopNValue[] $top_n_values - * Output only. The list of top N non-null values, frequency and ratio - * with which they occur in the scanned data. N is 10 or equal to the - * number of distinct values in the field, whichever is smaller. Not - * available for complex non-groupable field type, including RECORD, - * ARRAY, GEOGRAPHY, and JSON, as well as fields with REPEATABLE mode. - * @type \Google\Cloud\Dataplex\V1\DataProfileResult\Profile\Field\ProfileInfo\StringFieldInfo $string_profile - * String type field information. - * @type \Google\Cloud\Dataplex\V1\DataProfileResult\Profile\Field\ProfileInfo\IntegerFieldInfo $integer_profile - * Integer type field information. - * @type \Google\Cloud\Dataplex\V1\DataProfileResult\Profile\Field\ProfileInfo\DoubleFieldInfo $double_profile - * Double type field information. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataProfile::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Ratio of rows with null value against total scanned - * rows. - * - * Generated from protobuf field double null_ratio = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return float - */ - public function getNullRatio() - { - return $this->null_ratio; - } - - /** - * Output only. Ratio of rows with null value against total scanned - * rows. - * - * Generated from protobuf field double null_ratio = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param float $var - * @return $this - */ - public function setNullRatio($var) - { - GPBUtil::checkDouble($var); - $this->null_ratio = $var; - - return $this; - } - - /** - * Output only. Ratio of rows with distinct values against total scanned - * rows. Not available for complex non-groupable field type, including - * RECORD, ARRAY, GEOGRAPHY, and JSON, as well as fields with REPEATABLE - * mode. - * - * Generated from protobuf field double distinct_ratio = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return float - */ - public function getDistinctRatio() - { - return $this->distinct_ratio; - } - - /** - * Output only. Ratio of rows with distinct values against total scanned - * rows. Not available for complex non-groupable field type, including - * RECORD, ARRAY, GEOGRAPHY, and JSON, as well as fields with REPEATABLE - * mode. - * - * Generated from protobuf field double distinct_ratio = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param float $var - * @return $this - */ - public function setDistinctRatio($var) - { - GPBUtil::checkDouble($var); - $this->distinct_ratio = $var; - - return $this; - } - - /** - * Output only. The list of top N non-null values, frequency and ratio - * with which they occur in the scanned data. N is 10 or equal to the - * number of distinct values in the field, whichever is smaller. Not - * available for complex non-groupable field type, including RECORD, - * ARRAY, GEOGRAPHY, and JSON, as well as fields with REPEATABLE mode. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField<\Google\Cloud\Dataplex\V1\DataProfileResult\Profile\Field\ProfileInfo\TopNValue> - */ - public function getTopNValues() - { - return $this->top_n_values; - } - - /** - * Output only. The list of top N non-null values, frequency and ratio - * with which they occur in the scanned data. N is 10 or equal to the - * number of distinct values in the field, whichever is smaller. Not - * available for complex non-groupable field type, including RECORD, - * ARRAY, GEOGRAPHY, and JSON, as well as fields with REPEATABLE mode. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\DataProfileResult\Profile\Field\ProfileInfo\TopNValue[] $var - * @return $this - */ - public function setTopNValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\DataProfileResult\Profile\Field\ProfileInfo\TopNValue::class); - $this->top_n_values = $arr; - - return $this; - } - - /** - * String type field information. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo string_profile = 101; - * @return \Google\Cloud\Dataplex\V1\DataProfileResult\Profile\Field\ProfileInfo\StringFieldInfo|null - */ - public function getStringProfile() - { - return $this->readOneof(101); - } - - public function hasStringProfile() - { - return $this->hasOneof(101); - } - - /** - * String type field information. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo string_profile = 101; - * @param \Google\Cloud\Dataplex\V1\DataProfileResult\Profile\Field\ProfileInfo\StringFieldInfo $var - * @return $this - */ - public function setStringProfile($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataProfileResult\Profile\Field\ProfileInfo\StringFieldInfo::class); - $this->writeOneof(101, $var); - - return $this; - } - - /** - * Integer type field information. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfo integer_profile = 102; - * @return \Google\Cloud\Dataplex\V1\DataProfileResult\Profile\Field\ProfileInfo\IntegerFieldInfo|null - */ - public function getIntegerProfile() - { - return $this->readOneof(102); - } - - public function hasIntegerProfile() - { - return $this->hasOneof(102); - } - - /** - * Integer type field information. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfo integer_profile = 102; - * @param \Google\Cloud\Dataplex\V1\DataProfileResult\Profile\Field\ProfileInfo\IntegerFieldInfo $var - * @return $this - */ - public function setIntegerProfile($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataProfileResult\Profile\Field\ProfileInfo\IntegerFieldInfo::class); - $this->writeOneof(102, $var); - - return $this; - } - - /** - * Double type field information. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo double_profile = 103; - * @return \Google\Cloud\Dataplex\V1\DataProfileResult\Profile\Field\ProfileInfo\DoubleFieldInfo|null - */ - public function getDoubleProfile() - { - return $this->readOneof(103); - } - - public function hasDoubleProfile() - { - return $this->hasOneof(103); - } - - /** - * Double type field information. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo double_profile = 103; - * @param \Google\Cloud\Dataplex\V1\DataProfileResult\Profile\Field\ProfileInfo\DoubleFieldInfo $var - * @return $this - */ - public function setDoubleProfile($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataProfileResult\Profile\Field\ProfileInfo\DoubleFieldInfo::class); - $this->writeOneof(103, $var); - - return $this; - } - - /** - * @return string - */ - public function getFieldInfo() - { - return $this->whichOneof("field_info"); - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile/Field/ProfileInfo/DoubleFieldInfo.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile/Field/ProfileInfo/DoubleFieldInfo.php deleted file mode 100644 index 56873bbbd665..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile/Field/ProfileInfo/DoubleFieldInfo.php +++ /dev/null @@ -1,263 +0,0 @@ -google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo - */ -class DoubleFieldInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Average of non-null values in the scanned data. NaN, - * if the field has a NaN. - * - * Generated from protobuf field double average = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $average = 0.0; - /** - * Output only. Standard deviation of non-null values in the scanned - * data. NaN, if the field has a NaN. - * - * Generated from protobuf field double standard_deviation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $standard_deviation = 0.0; - /** - * Output only. Minimum of non-null values in the scanned data. NaN, - * if the field has a NaN. - * - * Generated from protobuf field double min = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $min = 0.0; - /** - * Output only. A quartile divides the number of data points into four - * parts, or quarters, of more-or-less equal size. Three main - * quartiles used are: The first quartile (Q1) splits off the lowest - * 25% of data from the highest 75%. It is also known as the lower or - * 25th empirical quartile, as 25% of the data is below this point. - * The second quartile (Q2) is the median of a data set. So, 50% of - * the data lies below this point. The third quartile (Q3) splits off - * the highest 25% of data from the lowest 75%. It is known as the - * upper or 75th empirical quartile, as 75% of the data lies below - * this point. Here, the quartiles is provided as an ordered list of - * quartile values for the scanned data, occurring in order Q1, - * median, Q3. - * - * Generated from protobuf field repeated double quartiles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $quartiles; - /** - * Output only. Maximum of non-null values in the scanned data. NaN, - * if the field has a NaN. - * - * Generated from protobuf field double max = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $max = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $average - * Output only. Average of non-null values in the scanned data. NaN, - * if the field has a NaN. - * @type float $standard_deviation - * Output only. Standard deviation of non-null values in the scanned - * data. NaN, if the field has a NaN. - * @type float $min - * Output only. Minimum of non-null values in the scanned data. NaN, - * if the field has a NaN. - * @type float[] $quartiles - * Output only. A quartile divides the number of data points into four - * parts, or quarters, of more-or-less equal size. Three main - * quartiles used are: The first quartile (Q1) splits off the lowest - * 25% of data from the highest 75%. It is also known as the lower or - * 25th empirical quartile, as 25% of the data is below this point. - * The second quartile (Q2) is the median of a data set. So, 50% of - * the data lies below this point. The third quartile (Q3) splits off - * the highest 25% of data from the lowest 75%. It is known as the - * upper or 75th empirical quartile, as 75% of the data lies below - * this point. Here, the quartiles is provided as an ordered list of - * quartile values for the scanned data, occurring in order Q1, - * median, Q3. - * @type float $max - * Output only. Maximum of non-null values in the scanned data. NaN, - * if the field has a NaN. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataProfile::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Average of non-null values in the scanned data. NaN, - * if the field has a NaN. - * - * Generated from protobuf field double average = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return float - */ - public function getAverage() - { - return $this->average; - } - - /** - * Output only. Average of non-null values in the scanned data. NaN, - * if the field has a NaN. - * - * Generated from protobuf field double average = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param float $var - * @return $this - */ - public function setAverage($var) - { - GPBUtil::checkDouble($var); - $this->average = $var; - - return $this; - } - - /** - * Output only. Standard deviation of non-null values in the scanned - * data. NaN, if the field has a NaN. - * - * Generated from protobuf field double standard_deviation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return float - */ - public function getStandardDeviation() - { - return $this->standard_deviation; - } - - /** - * Output only. Standard deviation of non-null values in the scanned - * data. NaN, if the field has a NaN. - * - * Generated from protobuf field double standard_deviation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param float $var - * @return $this - */ - public function setStandardDeviation($var) - { - GPBUtil::checkDouble($var); - $this->standard_deviation = $var; - - return $this; - } - - /** - * Output only. Minimum of non-null values in the scanned data. NaN, - * if the field has a NaN. - * - * Generated from protobuf field double min = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return float - */ - public function getMin() - { - return $this->min; - } - - /** - * Output only. Minimum of non-null values in the scanned data. NaN, - * if the field has a NaN. - * - * Generated from protobuf field double min = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param float $var - * @return $this - */ - public function setMin($var) - { - GPBUtil::checkDouble($var); - $this->min = $var; - - return $this; - } - - /** - * Output only. A quartile divides the number of data points into four - * parts, or quarters, of more-or-less equal size. Three main - * quartiles used are: The first quartile (Q1) splits off the lowest - * 25% of data from the highest 75%. It is also known as the lower or - * 25th empirical quartile, as 25% of the data is below this point. - * The second quartile (Q2) is the median of a data set. So, 50% of - * the data lies below this point. The third quartile (Q3) splits off - * the highest 25% of data from the lowest 75%. It is known as the - * upper or 75th empirical quartile, as 75% of the data lies below - * this point. Here, the quartiles is provided as an ordered list of - * quartile values for the scanned data, occurring in order Q1, - * median, Q3. - * - * Generated from protobuf field repeated double quartiles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField - */ - public function getQuartiles() - { - return $this->quartiles; - } - - /** - * Output only. A quartile divides the number of data points into four - * parts, or quarters, of more-or-less equal size. Three main - * quartiles used are: The first quartile (Q1) splits off the lowest - * 25% of data from the highest 75%. It is also known as the lower or - * 25th empirical quartile, as 25% of the data is below this point. - * The second quartile (Q2) is the median of a data set. So, 50% of - * the data lies below this point. The third quartile (Q3) splits off - * the highest 25% of data from the lowest 75%. It is known as the - * upper or 75th empirical quartile, as 75% of the data lies below - * this point. Here, the quartiles is provided as an ordered list of - * quartile values for the scanned data, occurring in order Q1, - * median, Q3. - * - * Generated from protobuf field repeated double quartiles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param float[] $var - * @return $this - */ - public function setQuartiles($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::DOUBLE); - $this->quartiles = $arr; - - return $this; - } - - /** - * Output only. Maximum of non-null values in the scanned data. NaN, - * if the field has a NaN. - * - * Generated from protobuf field double max = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return float - */ - public function getMax() - { - return $this->max; - } - - /** - * Output only. Maximum of non-null values in the scanned data. NaN, - * if the field has a NaN. - * - * Generated from protobuf field double max = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param float $var - * @return $this - */ - public function setMax($var) - { - GPBUtil::checkDouble($var); - $this->max = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile/Field/ProfileInfo/IntegerFieldInfo.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile/Field/ProfileInfo/IntegerFieldInfo.php deleted file mode 100644 index 4e9b76e9de51..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile/Field/ProfileInfo/IntegerFieldInfo.php +++ /dev/null @@ -1,263 +0,0 @@ -google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfo - */ -class IntegerFieldInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Average of non-null values in the scanned data. NaN, - * if the field has a NaN. - * - * Generated from protobuf field double average = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $average = 0.0; - /** - * Output only. Standard deviation of non-null values in the scanned - * data. NaN, if the field has a NaN. - * - * Generated from protobuf field double standard_deviation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $standard_deviation = 0.0; - /** - * Output only. Minimum of non-null values in the scanned data. NaN, - * if the field has a NaN. - * - * Generated from protobuf field int64 min = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $min = 0; - /** - * Output only. A quartile divides the number of data points into four - * parts, or quarters, of more-or-less equal size. Three main - * quartiles used are: The first quartile (Q1) splits off the lowest - * 25% of data from the highest 75%. It is also known as the lower or - * 25th empirical quartile, as 25% of the data is below this point. - * The second quartile (Q2) is the median of a data set. So, 50% of - * the data lies below this point. The third quartile (Q3) splits off - * the highest 25% of data from the lowest 75%. It is known as the - * upper or 75th empirical quartile, as 75% of the data lies below - * this point. Here, the quartiles is provided as an ordered list of - * approximate quartile values for the scanned data, occurring in - * order Q1, median, Q3. - * - * Generated from protobuf field repeated int64 quartiles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $quartiles; - /** - * Output only. Maximum of non-null values in the scanned data. NaN, - * if the field has a NaN. - * - * Generated from protobuf field int64 max = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $max = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $average - * Output only. Average of non-null values in the scanned data. NaN, - * if the field has a NaN. - * @type float $standard_deviation - * Output only. Standard deviation of non-null values in the scanned - * data. NaN, if the field has a NaN. - * @type int|string $min - * Output only. Minimum of non-null values in the scanned data. NaN, - * if the field has a NaN. - * @type int[]|string[] $quartiles - * Output only. A quartile divides the number of data points into four - * parts, or quarters, of more-or-less equal size. Three main - * quartiles used are: The first quartile (Q1) splits off the lowest - * 25% of data from the highest 75%. It is also known as the lower or - * 25th empirical quartile, as 25% of the data is below this point. - * The second quartile (Q2) is the median of a data set. So, 50% of - * the data lies below this point. The third quartile (Q3) splits off - * the highest 25% of data from the lowest 75%. It is known as the - * upper or 75th empirical quartile, as 75% of the data lies below - * this point. Here, the quartiles is provided as an ordered list of - * approximate quartile values for the scanned data, occurring in - * order Q1, median, Q3. - * @type int|string $max - * Output only. Maximum of non-null values in the scanned data. NaN, - * if the field has a NaN. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataProfile::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Average of non-null values in the scanned data. NaN, - * if the field has a NaN. - * - * Generated from protobuf field double average = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return float - */ - public function getAverage() - { - return $this->average; - } - - /** - * Output only. Average of non-null values in the scanned data. NaN, - * if the field has a NaN. - * - * Generated from protobuf field double average = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param float $var - * @return $this - */ - public function setAverage($var) - { - GPBUtil::checkDouble($var); - $this->average = $var; - - return $this; - } - - /** - * Output only. Standard deviation of non-null values in the scanned - * data. NaN, if the field has a NaN. - * - * Generated from protobuf field double standard_deviation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return float - */ - public function getStandardDeviation() - { - return $this->standard_deviation; - } - - /** - * Output only. Standard deviation of non-null values in the scanned - * data. NaN, if the field has a NaN. - * - * Generated from protobuf field double standard_deviation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param float $var - * @return $this - */ - public function setStandardDeviation($var) - { - GPBUtil::checkDouble($var); - $this->standard_deviation = $var; - - return $this; - } - - /** - * Output only. Minimum of non-null values in the scanned data. NaN, - * if the field has a NaN. - * - * Generated from protobuf field int64 min = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getMin() - { - return $this->min; - } - - /** - * Output only. Minimum of non-null values in the scanned data. NaN, - * if the field has a NaN. - * - * Generated from protobuf field int64 min = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setMin($var) - { - GPBUtil::checkInt64($var); - $this->min = $var; - - return $this; - } - - /** - * Output only. A quartile divides the number of data points into four - * parts, or quarters, of more-or-less equal size. Three main - * quartiles used are: The first quartile (Q1) splits off the lowest - * 25% of data from the highest 75%. It is also known as the lower or - * 25th empirical quartile, as 25% of the data is below this point. - * The second quartile (Q2) is the median of a data set. So, 50% of - * the data lies below this point. The third quartile (Q3) splits off - * the highest 25% of data from the lowest 75%. It is known as the - * upper or 75th empirical quartile, as 75% of the data lies below - * this point. Here, the quartiles is provided as an ordered list of - * approximate quartile values for the scanned data, occurring in - * order Q1, median, Q3. - * - * Generated from protobuf field repeated int64 quartiles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField|RepeatedField - */ - public function getQuartiles() - { - return $this->quartiles; - } - - /** - * Output only. A quartile divides the number of data points into four - * parts, or quarters, of more-or-less equal size. Three main - * quartiles used are: The first quartile (Q1) splits off the lowest - * 25% of data from the highest 75%. It is also known as the lower or - * 25th empirical quartile, as 25% of the data is below this point. - * The second quartile (Q2) is the median of a data set. So, 50% of - * the data lies below this point. The third quartile (Q3) splits off - * the highest 25% of data from the lowest 75%. It is known as the - * upper or 75th empirical quartile, as 75% of the data lies below - * this point. Here, the quartiles is provided as an ordered list of - * approximate quartile values for the scanned data, occurring in - * order Q1, median, Q3. - * - * Generated from protobuf field repeated int64 quartiles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int[]|string[] $var - * @return $this - */ - public function setQuartiles($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT64); - $this->quartiles = $arr; - - return $this; - } - - /** - * Output only. Maximum of non-null values in the scanned data. NaN, - * if the field has a NaN. - * - * Generated from protobuf field int64 max = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getMax() - { - return $this->max; - } - - /** - * Output only. Maximum of non-null values in the scanned data. NaN, - * if the field has a NaN. - * - * Generated from protobuf field int64 max = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setMax($var) - { - GPBUtil::checkInt64($var); - $this->max = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile/Field/ProfileInfo/StringFieldInfo.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile/Field/ProfileInfo/StringFieldInfo.php deleted file mode 100644 index cc23dceb39ca..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile/Field/ProfileInfo/StringFieldInfo.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo - */ -class StringFieldInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Minimum length of non-null values in the scanned data. - * - * Generated from protobuf field int64 min_length = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $min_length = 0; - /** - * Output only. Maximum length of non-null values in the scanned data. - * - * Generated from protobuf field int64 max_length = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $max_length = 0; - /** - * Output only. Average length of non-null values in the scanned data. - * - * Generated from protobuf field double average_length = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $average_length = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $min_length - * Output only. Minimum length of non-null values in the scanned data. - * @type int|string $max_length - * Output only. Maximum length of non-null values in the scanned data. - * @type float $average_length - * Output only. Average length of non-null values in the scanned data. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataProfile::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Minimum length of non-null values in the scanned data. - * - * Generated from protobuf field int64 min_length = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getMinLength() - { - return $this->min_length; - } - - /** - * Output only. Minimum length of non-null values in the scanned data. - * - * Generated from protobuf field int64 min_length = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setMinLength($var) - { - GPBUtil::checkInt64($var); - $this->min_length = $var; - - return $this; - } - - /** - * Output only. Maximum length of non-null values in the scanned data. - * - * Generated from protobuf field int64 max_length = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getMaxLength() - { - return $this->max_length; - } - - /** - * Output only. Maximum length of non-null values in the scanned data. - * - * Generated from protobuf field int64 max_length = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setMaxLength($var) - { - GPBUtil::checkInt64($var); - $this->max_length = $var; - - return $this; - } - - /** - * Output only. Average length of non-null values in the scanned data. - * - * Generated from protobuf field double average_length = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return float - */ - public function getAverageLength() - { - return $this->average_length; - } - - /** - * Output only. Average length of non-null values in the scanned data. - * - * Generated from protobuf field double average_length = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param float $var - * @return $this - */ - public function setAverageLength($var) - { - GPBUtil::checkDouble($var); - $this->average_length = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile/Field/ProfileInfo/TopNValue.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile/Field/ProfileInfo/TopNValue.php deleted file mode 100644 index efda45c97d31..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileResult/Profile/Field/ProfileInfo/TopNValue.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue - */ -class TopNValue extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. String value of a top N non-null value. - * - * Generated from protobuf field string value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $value = ''; - /** - * Output only. Count of the corresponding value in the scanned data. - * - * Generated from protobuf field int64 count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $count = 0; - /** - * Output only. Ratio of the corresponding value in the field against - * the total number of rows in the scanned data. - * - * Generated from protobuf field double ratio = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $ratio = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $value - * Output only. String value of a top N non-null value. - * @type int|string $count - * Output only. Count of the corresponding value in the scanned data. - * @type float $ratio - * Output only. Ratio of the corresponding value in the field against - * the total number of rows in the scanned data. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataProfile::initOnce(); - parent::__construct($data); - } - - /** - * Output only. String value of a top N non-null value. - * - * Generated from protobuf field string value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * Output only. String value of a top N non-null value. - * - * Generated from protobuf field string value = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - - /** - * Output only. Count of the corresponding value in the scanned data. - * - * Generated from protobuf field int64 count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getCount() - { - return $this->count; - } - - /** - * Output only. Count of the corresponding value in the scanned data. - * - * Generated from protobuf field int64 count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setCount($var) - { - GPBUtil::checkInt64($var); - $this->count = $var; - - return $this; - } - - /** - * Output only. Ratio of the corresponding value in the field against - * the total number of rows in the scanned data. - * - * Generated from protobuf field double ratio = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return float - */ - public function getRatio() - { - return $this->ratio; - } - - /** - * Output only. Ratio of the corresponding value in the field against - * the total number of rows in the scanned data. - * - * Generated from protobuf field double ratio = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param float $var - * @return $this - */ - public function setRatio($var) - { - GPBUtil::checkDouble($var); - $this->ratio = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileSpec.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileSpec.php deleted file mode 100644 index c9f0f682394b..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileSpec.php +++ /dev/null @@ -1,353 +0,0 @@ -google.cloud.dataplex.v1.DataProfileSpec - */ -class DataProfileSpec extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The percentage of the records to be selected from the dataset for - * DataScan. - * * Value can range between 0.0 and 100.0 with up to 3 significant decimal - * digits. - * * Sampling is not applied if `sampling_percent` is not specified, 0 or - * 100. - * - * Generated from protobuf field float sampling_percent = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $sampling_percent = 0.0; - /** - * Optional. A filter applied to all rows in a single DataScan job. - * The filter needs to be a valid SQL expression for a WHERE clause in - * BigQuery standard SQL syntax. - * Example: col1 >= 0 AND col2 < 10 - * - * Generated from protobuf field string row_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $row_filter = ''; - /** - * Optional. Actions to take upon job completion.. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileSpec.PostScanActions post_scan_actions = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $post_scan_actions = null; - /** - * Optional. The fields to include in data profile. - * If not specified, all fields at the time of profile scan job execution are - * included, except for ones listed in `exclude_fields`. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileSpec.SelectedFields include_fields = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $include_fields = null; - /** - * Optional. The fields to exclude from data profile. - * If specified, the fields will be excluded from data profile, regardless of - * `include_fields` value. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileSpec.SelectedFields exclude_fields = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $exclude_fields = null; - /** - * Optional. If set, the latest DataScan job result will be published as - * Dataplex Universal Catalog metadata. - * - * Generated from protobuf field bool catalog_publishing_enabled = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $catalog_publishing_enabled = false; - /** - * Optional. The execution mode for the profile scan. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileSpec.Mode mode = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $mode = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $sampling_percent - * Optional. The percentage of the records to be selected from the dataset for - * DataScan. - * * Value can range between 0.0 and 100.0 with up to 3 significant decimal - * digits. - * * Sampling is not applied if `sampling_percent` is not specified, 0 or - * 100. - * @type string $row_filter - * Optional. A filter applied to all rows in a single DataScan job. - * The filter needs to be a valid SQL expression for a WHERE clause in - * BigQuery standard SQL syntax. - * Example: col1 >= 0 AND col2 < 10 - * @type \Google\Cloud\Dataplex\V1\DataProfileSpec\PostScanActions $post_scan_actions - * Optional. Actions to take upon job completion.. - * @type \Google\Cloud\Dataplex\V1\DataProfileSpec\SelectedFields $include_fields - * Optional. The fields to include in data profile. - * If not specified, all fields at the time of profile scan job execution are - * included, except for ones listed in `exclude_fields`. - * @type \Google\Cloud\Dataplex\V1\DataProfileSpec\SelectedFields $exclude_fields - * Optional. The fields to exclude from data profile. - * If specified, the fields will be excluded from data profile, regardless of - * `include_fields` value. - * @type bool $catalog_publishing_enabled - * Optional. If set, the latest DataScan job result will be published as - * Dataplex Universal Catalog metadata. - * @type int $mode - * Optional. The execution mode for the profile scan. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataProfile::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The percentage of the records to be selected from the dataset for - * DataScan. - * * Value can range between 0.0 and 100.0 with up to 3 significant decimal - * digits. - * * Sampling is not applied if `sampling_percent` is not specified, 0 or - * 100. - * - * Generated from protobuf field float sampling_percent = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return float - */ - public function getSamplingPercent() - { - return $this->sampling_percent; - } - - /** - * Optional. The percentage of the records to be selected from the dataset for - * DataScan. - * * Value can range between 0.0 and 100.0 with up to 3 significant decimal - * digits. - * * Sampling is not applied if `sampling_percent` is not specified, 0 or - * 100. - * - * Generated from protobuf field float sampling_percent = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param float $var - * @return $this - */ - public function setSamplingPercent($var) - { - GPBUtil::checkFloat($var); - $this->sampling_percent = $var; - - return $this; - } - - /** - * Optional. A filter applied to all rows in a single DataScan job. - * The filter needs to be a valid SQL expression for a WHERE clause in - * BigQuery standard SQL syntax. - * Example: col1 >= 0 AND col2 < 10 - * - * Generated from protobuf field string row_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRowFilter() - { - return $this->row_filter; - } - - /** - * Optional. A filter applied to all rows in a single DataScan job. - * The filter needs to be a valid SQL expression for a WHERE clause in - * BigQuery standard SQL syntax. - * Example: col1 >= 0 AND col2 < 10 - * - * Generated from protobuf field string row_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRowFilter($var) - { - GPBUtil::checkString($var, True); - $this->row_filter = $var; - - return $this; - } - - /** - * Optional. Actions to take upon job completion.. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileSpec.PostScanActions post_scan_actions = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dataplex\V1\DataProfileSpec\PostScanActions|null - */ - public function getPostScanActions() - { - return $this->post_scan_actions; - } - - public function hasPostScanActions() - { - return isset($this->post_scan_actions); - } - - public function clearPostScanActions() - { - unset($this->post_scan_actions); - } - - /** - * Optional. Actions to take upon job completion.. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileSpec.PostScanActions post_scan_actions = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataplex\V1\DataProfileSpec\PostScanActions $var - * @return $this - */ - public function setPostScanActions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataProfileSpec\PostScanActions::class); - $this->post_scan_actions = $var; - - return $this; - } - - /** - * Optional. The fields to include in data profile. - * If not specified, all fields at the time of profile scan job execution are - * included, except for ones listed in `exclude_fields`. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileSpec.SelectedFields include_fields = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dataplex\V1\DataProfileSpec\SelectedFields|null - */ - public function getIncludeFields() - { - return $this->include_fields; - } - - public function hasIncludeFields() - { - return isset($this->include_fields); - } - - public function clearIncludeFields() - { - unset($this->include_fields); - } - - /** - * Optional. The fields to include in data profile. - * If not specified, all fields at the time of profile scan job execution are - * included, except for ones listed in `exclude_fields`. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileSpec.SelectedFields include_fields = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataplex\V1\DataProfileSpec\SelectedFields $var - * @return $this - */ - public function setIncludeFields($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataProfileSpec\SelectedFields::class); - $this->include_fields = $var; - - return $this; - } - - /** - * Optional. The fields to exclude from data profile. - * If specified, the fields will be excluded from data profile, regardless of - * `include_fields` value. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileSpec.SelectedFields exclude_fields = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dataplex\V1\DataProfileSpec\SelectedFields|null - */ - public function getExcludeFields() - { - return $this->exclude_fields; - } - - public function hasExcludeFields() - { - return isset($this->exclude_fields); - } - - public function clearExcludeFields() - { - unset($this->exclude_fields); - } - - /** - * Optional. The fields to exclude from data profile. - * If specified, the fields will be excluded from data profile, regardless of - * `include_fields` value. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileSpec.SelectedFields exclude_fields = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataplex\V1\DataProfileSpec\SelectedFields $var - * @return $this - */ - public function setExcludeFields($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataProfileSpec\SelectedFields::class); - $this->exclude_fields = $var; - - return $this; - } - - /** - * Optional. If set, the latest DataScan job result will be published as - * Dataplex Universal Catalog metadata. - * - * Generated from protobuf field bool catalog_publishing_enabled = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getCatalogPublishingEnabled() - { - return $this->catalog_publishing_enabled; - } - - /** - * Optional. If set, the latest DataScan job result will be published as - * Dataplex Universal Catalog metadata. - * - * Generated from protobuf field bool catalog_publishing_enabled = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setCatalogPublishingEnabled($var) - { - GPBUtil::checkBool($var); - $this->catalog_publishing_enabled = $var; - - return $this; - } - - /** - * Optional. The execution mode for the profile scan. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileSpec.Mode mode = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getMode() - { - return $this->mode; - } - - /** - * Optional. The execution mode for the profile scan. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileSpec.Mode mode = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setMode($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\DataProfileSpec\Mode::class); - $this->mode = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileSpec/PostScanActions.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileSpec/PostScanActions.php deleted file mode 100644 index b4e5c8165baf..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileSpec/PostScanActions.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.dataplex.v1.DataProfileSpec.PostScanActions - */ -class PostScanActions extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. If set, results will be exported to the provided BigQuery - * table. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileSpec.PostScanActions.BigQueryExport bigquery_export = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $bigquery_export = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\DataProfileSpec\PostScanActions\BigQueryExport $bigquery_export - * Optional. If set, results will be exported to the provided BigQuery - * table. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataProfile::initOnce(); - parent::__construct($data); - } - - /** - * Optional. If set, results will be exported to the provided BigQuery - * table. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileSpec.PostScanActions.BigQueryExport bigquery_export = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dataplex\V1\DataProfileSpec\PostScanActions\BigQueryExport|null - */ - public function getBigqueryExport() - { - return $this->bigquery_export; - } - - public function hasBigqueryExport() - { - return isset($this->bigquery_export); - } - - public function clearBigqueryExport() - { - unset($this->bigquery_export); - } - - /** - * Optional. If set, results will be exported to the provided BigQuery - * table. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileSpec.PostScanActions.BigQueryExport bigquery_export = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataplex\V1\DataProfileSpec\PostScanActions\BigQueryExport $var - * @return $this - */ - public function setBigqueryExport($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataProfileSpec\PostScanActions\BigQueryExport::class); - $this->bigquery_export = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileSpec/PostScanActions/BigQueryExport.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileSpec/PostScanActions/BigQueryExport.php deleted file mode 100644 index 37d56c41d9c2..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileSpec/PostScanActions/BigQueryExport.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.dataplex.v1.DataProfileSpec.PostScanActions.BigQueryExport - */ -class BigQueryExport extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The BigQuery table to export DataProfileScan results to. - * Format: - * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID - * - * Generated from protobuf field string results_table = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $results_table = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $results_table - * Optional. The BigQuery table to export DataProfileScan results to. - * Format: - * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataProfile::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The BigQuery table to export DataProfileScan results to. - * Format: - * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID - * - * Generated from protobuf field string results_table = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getResultsTable() - { - return $this->results_table; - } - - /** - * Optional. The BigQuery table to export DataProfileScan results to. - * Format: - * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID - * - * Generated from protobuf field string results_table = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setResultsTable($var) - { - GPBUtil::checkString($var, True); - $this->results_table = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileSpec/SelectedFields.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileSpec/SelectedFields.php deleted file mode 100644 index 7337c572de87..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataProfileSpec/SelectedFields.php +++ /dev/null @@ -1,87 +0,0 @@ -google.cloud.dataplex.v1.DataProfileSpec.SelectedFields - */ -class SelectedFields extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Expected input is a list of fully qualified names of fields as - * in the schema. - * Only top-level field names for nested fields are supported. - * For instance, if 'x' is of nested field type, listing 'x' is supported - * but 'x.y.z' is not supported. Here 'y' and 'y.z' are nested fields of - * 'x'. - * - * Generated from protobuf field repeated string field_names = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $field_names; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string[] $field_names - * Optional. Expected input is a list of fully qualified names of fields as - * in the schema. - * Only top-level field names for nested fields are supported. - * For instance, if 'x' is of nested field type, listing 'x' is supported - * but 'x.y.z' is not supported. Here 'y' and 'y.z' are nested fields of - * 'x'. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataProfile::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Expected input is a list of fully qualified names of fields as - * in the schema. - * Only top-level field names for nested fields are supported. - * For instance, if 'x' is of nested field type, listing 'x' is supported - * but 'x.y.z' is not supported. Here 'y' and 'y.z' are nested fields of - * 'x'. - * - * Generated from protobuf field repeated string field_names = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getFieldNames() - { - return $this->field_names; - } - - /** - * Optional. Expected input is a list of fully qualified names of fields as - * in the schema. - * Only top-level field names for nested fields are supported. - * For instance, if 'x' is of nested field type, listing 'x' is supported - * but 'x.y.z' is not supported. Here 'y' and 'y.z' are nested fields of - * 'x'. - * - * Generated from protobuf field repeated string field_names = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setFieldNames($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->field_names = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityColumnResult.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityColumnResult.php deleted file mode 100644 index 4488d31cd171..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityColumnResult.php +++ /dev/null @@ -1,192 +0,0 @@ -google.cloud.dataplex.v1.DataQualityColumnResult - */ -class DataQualityColumnResult extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The column specified in the DataQualityRule. - * - * Generated from protobuf field string column = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $column = ''; - /** - * Output only. The column-level data quality score for this data scan job if - * and only if the 'column' field is set. - * The score ranges between between [0, 100] (up to two decimal - * points). - * - * Generated from protobuf field optional float score = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $score = null; - /** - * Output only. Whether the column passed or failed. - * - * Generated from protobuf field bool passed = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $passed = false; - /** - * Output only. The dimension-level results for this column. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityDimensionResult dimensions = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $dimensions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $column - * Output only. The column specified in the DataQualityRule. - * @type float $score - * Output only. The column-level data quality score for this data scan job if - * and only if the 'column' field is set. - * The score ranges between between [0, 100] (up to two decimal - * points). - * @type bool $passed - * Output only. Whether the column passed or failed. - * @type \Google\Cloud\Dataplex\V1\DataQualityDimensionResult[] $dimensions - * Output only. The dimension-level results for this column. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The column specified in the DataQualityRule. - * - * Generated from protobuf field string column = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getColumn() - { - return $this->column; - } - - /** - * Output only. The column specified in the DataQualityRule. - * - * Generated from protobuf field string column = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setColumn($var) - { - GPBUtil::checkString($var, True); - $this->column = $var; - - return $this; - } - - /** - * Output only. The column-level data quality score for this data scan job if - * and only if the 'column' field is set. - * The score ranges between between [0, 100] (up to two decimal - * points). - * - * Generated from protobuf field optional float score = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return float - */ - public function getScore() - { - return isset($this->score) ? $this->score : 0.0; - } - - public function hasScore() - { - return isset($this->score); - } - - public function clearScore() - { - unset($this->score); - } - - /** - * Output only. The column-level data quality score for this data scan job if - * and only if the 'column' field is set. - * The score ranges between between [0, 100] (up to two decimal - * points). - * - * Generated from protobuf field optional float score = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param float $var - * @return $this - */ - public function setScore($var) - { - GPBUtil::checkFloat($var); - $this->score = $var; - - return $this; - } - - /** - * Output only. Whether the column passed or failed. - * - * Generated from protobuf field bool passed = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getPassed() - { - return $this->passed; - } - - /** - * Output only. Whether the column passed or failed. - * - * Generated from protobuf field bool passed = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setPassed($var) - { - GPBUtil::checkBool($var); - $this->passed = $var; - - return $this; - } - - /** - * Output only. The dimension-level results for this column. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityDimensionResult dimensions = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField<\Google\Cloud\Dataplex\V1\DataQualityDimensionResult> - */ - public function getDimensions() - { - return $this->dimensions; - } - - /** - * Output only. The dimension-level results for this column. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityDimensionResult dimensions = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\DataQualityDimensionResult[] $var - * @return $this - */ - public function setDimensions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\DataQualityDimensionResult::class); - $this->dimensions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityDimension.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityDimension.php deleted file mode 100644 index 4b7d457ab0fa..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityDimension.php +++ /dev/null @@ -1,72 +0,0 @@ -google.cloud.dataplex.v1.DataQualityDimension - */ -class DataQualityDimension extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The dimension name a rule belongs to. Custom dimension name is - * supported with all uppercase letters and maximum length of 30 characters. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. The dimension name a rule belongs to. Custom dimension name is - * supported with all uppercase letters and maximum length of 30 characters. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The dimension name a rule belongs to. Custom dimension name is - * supported with all uppercase letters and maximum length of 30 characters. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The dimension name a rule belongs to. Custom dimension name is - * supported with all uppercase letters and maximum length of 30 characters. - * - * 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; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityDimensionResult.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityDimensionResult.php deleted file mode 100644 index d63825da0950..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityDimensionResult.php +++ /dev/null @@ -1,168 +0,0 @@ -google.cloud.dataplex.v1.DataQualityDimensionResult - */ -class DataQualityDimensionResult extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The dimension config specified in the DataQualitySpec, as is. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityDimension dimension = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $dimension = null; - /** - * Output only. Whether the dimension passed or failed. - * - * Generated from protobuf field bool passed = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $passed = false; - /** - * Output only. The dimension-level data quality score for this data scan job - * if and only if the 'dimension' field is set. - * The score ranges between [0, 100] (up to two decimal - * points). - * - * Generated from protobuf field optional float score = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $score = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\DataQualityDimension $dimension - * Output only. The dimension config specified in the DataQualitySpec, as is. - * @type bool $passed - * Output only. Whether the dimension passed or failed. - * @type float $score - * Output only. The dimension-level data quality score for this data scan job - * if and only if the 'dimension' field is set. - * The score ranges between [0, 100] (up to two decimal - * points). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The dimension config specified in the DataQualitySpec, as is. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityDimension dimension = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataplex\V1\DataQualityDimension|null - */ - public function getDimension() - { - return $this->dimension; - } - - public function hasDimension() - { - return isset($this->dimension); - } - - public function clearDimension() - { - unset($this->dimension); - } - - /** - * Output only. The dimension config specified in the DataQualitySpec, as is. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityDimension dimension = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\DataQualityDimension $var - * @return $this - */ - public function setDimension($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataQualityDimension::class); - $this->dimension = $var; - - return $this; - } - - /** - * Output only. Whether the dimension passed or failed. - * - * Generated from protobuf field bool passed = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getPassed() - { - return $this->passed; - } - - /** - * Output only. Whether the dimension passed or failed. - * - * Generated from protobuf field bool passed = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setPassed($var) - { - GPBUtil::checkBool($var); - $this->passed = $var; - - return $this; - } - - /** - * Output only. The dimension-level data quality score for this data scan job - * if and only if the 'dimension' field is set. - * The score ranges between [0, 100] (up to two decimal - * points). - * - * Generated from protobuf field optional float score = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return float - */ - public function getScore() - { - return isset($this->score) ? $this->score : 0.0; - } - - public function hasScore() - { - return isset($this->score); - } - - public function clearScore() - { - unset($this->score); - } - - /** - * Output only. The dimension-level data quality score for this data scan job - * if and only if the 'dimension' field is set. - * The score ranges between [0, 100] (up to two decimal - * points). - * - * Generated from protobuf field optional float score = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param float $var - * @return $this - */ - public function setScore($var) - { - GPBUtil::checkFloat($var); - $this->score = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityResult.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityResult.php deleted file mode 100644 index 79907982f372..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityResult.php +++ /dev/null @@ -1,447 +0,0 @@ -google.cloud.dataplex.v1.DataQualityResult - */ -class DataQualityResult extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Overall data quality result -- `true` if all rules passed. - * - * Generated from protobuf field bool passed = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $passed = false; - /** - * Output only. The overall data quality score. - * The score ranges between [0, 100] (up to two decimal points). - * - * Generated from protobuf field optional float score = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $score = null; - /** - * Output only. A list of results at the dimension level. - * A dimension will have a corresponding `DataQualityDimensionResult` if and - * only if there is at least one rule with the 'dimension' field set to it. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityDimensionResult dimensions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $dimensions; - /** - * Output only. A list of results at the column level. - * A column will have a corresponding `DataQualityColumnResult` if and only if - * there is at least one rule with the 'column' field set to it. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityColumnResult columns = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $columns; - /** - * Output only. A list of all the rules in a job, and their results. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityRuleResult rules = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $rules; - /** - * Output only. The count of rows processed. - * - * Generated from protobuf field int64 row_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $row_count = 0; - /** - * Output only. The data scanned for this result. - * - * Generated from protobuf field .google.cloud.dataplex.v1.ScannedData scanned_data = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $scanned_data = null; - /** - * Output only. The result of post scan actions. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityResult.PostScanActionsResult post_scan_actions_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $post_scan_actions_result = null; - /** - * Output only. The status of publishing the data scan as Dataplex Universal - * Catalog metadata. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScanCatalogPublishingStatus catalog_publishing_status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $catalog_publishing_status = null; - /** - * Output only. The generated assets for anomaly detection. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets anomaly_detection_generated_assets = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $anomaly_detection_generated_assets = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $passed - * Output only. Overall data quality result -- `true` if all rules passed. - * @type float $score - * Output only. The overall data quality score. - * The score ranges between [0, 100] (up to two decimal points). - * @type \Google\Cloud\Dataplex\V1\DataQualityDimensionResult[] $dimensions - * Output only. A list of results at the dimension level. - * A dimension will have a corresponding `DataQualityDimensionResult` if and - * only if there is at least one rule with the 'dimension' field set to it. - * @type \Google\Cloud\Dataplex\V1\DataQualityColumnResult[] $columns - * Output only. A list of results at the column level. - * A column will have a corresponding `DataQualityColumnResult` if and only if - * there is at least one rule with the 'column' field set to it. - * @type \Google\Cloud\Dataplex\V1\DataQualityRuleResult[] $rules - * Output only. A list of all the rules in a job, and their results. - * @type int|string $row_count - * Output only. The count of rows processed. - * @type \Google\Cloud\Dataplex\V1\ScannedData $scanned_data - * Output only. The data scanned for this result. - * @type \Google\Cloud\Dataplex\V1\DataQualityResult\PostScanActionsResult $post_scan_actions_result - * Output only. The result of post scan actions. - * @type \Google\Cloud\Dataplex\V1\DataScanCatalogPublishingStatus $catalog_publishing_status - * Output only. The status of publishing the data scan as Dataplex Universal - * Catalog metadata. - * @type \Google\Cloud\Dataplex\V1\DataQualityResult\AnomalyDetectionGeneratedAssets $anomaly_detection_generated_assets - * Output only. The generated assets for anomaly detection. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Overall data quality result -- `true` if all rules passed. - * - * Generated from protobuf field bool passed = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getPassed() - { - return $this->passed; - } - - /** - * Output only. Overall data quality result -- `true` if all rules passed. - * - * Generated from protobuf field bool passed = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setPassed($var) - { - GPBUtil::checkBool($var); - $this->passed = $var; - - return $this; - } - - /** - * Output only. The overall data quality score. - * The score ranges between [0, 100] (up to two decimal points). - * - * Generated from protobuf field optional float score = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return float - */ - public function getScore() - { - return isset($this->score) ? $this->score : 0.0; - } - - public function hasScore() - { - return isset($this->score); - } - - public function clearScore() - { - unset($this->score); - } - - /** - * Output only. The overall data quality score. - * The score ranges between [0, 100] (up to two decimal points). - * - * Generated from protobuf field optional float score = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param float $var - * @return $this - */ - public function setScore($var) - { - GPBUtil::checkFloat($var); - $this->score = $var; - - return $this; - } - - /** - * Output only. A list of results at the dimension level. - * A dimension will have a corresponding `DataQualityDimensionResult` if and - * only if there is at least one rule with the 'dimension' field set to it. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityDimensionResult dimensions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField<\Google\Cloud\Dataplex\V1\DataQualityDimensionResult> - */ - public function getDimensions() - { - return $this->dimensions; - } - - /** - * Output only. A list of results at the dimension level. - * A dimension will have a corresponding `DataQualityDimensionResult` if and - * only if there is at least one rule with the 'dimension' field set to it. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityDimensionResult dimensions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\DataQualityDimensionResult[] $var - * @return $this - */ - public function setDimensions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\DataQualityDimensionResult::class); - $this->dimensions = $arr; - - return $this; - } - - /** - * Output only. A list of results at the column level. - * A column will have a corresponding `DataQualityColumnResult` if and only if - * there is at least one rule with the 'column' field set to it. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityColumnResult columns = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField<\Google\Cloud\Dataplex\V1\DataQualityColumnResult> - */ - public function getColumns() - { - return $this->columns; - } - - /** - * Output only. A list of results at the column level. - * A column will have a corresponding `DataQualityColumnResult` if and only if - * there is at least one rule with the 'column' field set to it. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityColumnResult columns = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\DataQualityColumnResult[] $var - * @return $this - */ - public function setColumns($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\DataQualityColumnResult::class); - $this->columns = $arr; - - return $this; - } - - /** - * Output only. A list of all the rules in a job, and their results. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityRuleResult rules = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField<\Google\Cloud\Dataplex\V1\DataQualityRuleResult> - */ - public function getRules() - { - return $this->rules; - } - - /** - * Output only. A list of all the rules in a job, and their results. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityRuleResult rules = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\DataQualityRuleResult[] $var - * @return $this - */ - public function setRules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\DataQualityRuleResult::class); - $this->rules = $arr; - - return $this; - } - - /** - * Output only. The count of rows processed. - * - * Generated from protobuf field int64 row_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getRowCount() - { - return $this->row_count; - } - - /** - * Output only. The count of rows processed. - * - * Generated from protobuf field int64 row_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setRowCount($var) - { - GPBUtil::checkInt64($var); - $this->row_count = $var; - - return $this; - } - - /** - * Output only. The data scanned for this result. - * - * Generated from protobuf field .google.cloud.dataplex.v1.ScannedData scanned_data = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataplex\V1\ScannedData|null - */ - public function getScannedData() - { - return $this->scanned_data; - } - - public function hasScannedData() - { - return isset($this->scanned_data); - } - - public function clearScannedData() - { - unset($this->scanned_data); - } - - /** - * Output only. The data scanned for this result. - * - * Generated from protobuf field .google.cloud.dataplex.v1.ScannedData scanned_data = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\ScannedData $var - * @return $this - */ - public function setScannedData($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\ScannedData::class); - $this->scanned_data = $var; - - return $this; - } - - /** - * Output only. The result of post scan actions. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityResult.PostScanActionsResult post_scan_actions_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataplex\V1\DataQualityResult\PostScanActionsResult|null - */ - public function getPostScanActionsResult() - { - return $this->post_scan_actions_result; - } - - public function hasPostScanActionsResult() - { - return isset($this->post_scan_actions_result); - } - - public function clearPostScanActionsResult() - { - unset($this->post_scan_actions_result); - } - - /** - * Output only. The result of post scan actions. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityResult.PostScanActionsResult post_scan_actions_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\DataQualityResult\PostScanActionsResult $var - * @return $this - */ - public function setPostScanActionsResult($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataQualityResult\PostScanActionsResult::class); - $this->post_scan_actions_result = $var; - - return $this; - } - - /** - * Output only. The status of publishing the data scan as Dataplex Universal - * Catalog metadata. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScanCatalogPublishingStatus catalog_publishing_status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataplex\V1\DataScanCatalogPublishingStatus|null - */ - public function getCatalogPublishingStatus() - { - return $this->catalog_publishing_status; - } - - public function hasCatalogPublishingStatus() - { - return isset($this->catalog_publishing_status); - } - - public function clearCatalogPublishingStatus() - { - unset($this->catalog_publishing_status); - } - - /** - * Output only. The status of publishing the data scan as Dataplex Universal - * Catalog metadata. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScanCatalogPublishingStatus catalog_publishing_status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\DataScanCatalogPublishingStatus $var - * @return $this - */ - public function setCatalogPublishingStatus($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataScanCatalogPublishingStatus::class); - $this->catalog_publishing_status = $var; - - return $this; - } - - /** - * Output only. The generated assets for anomaly detection. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets anomaly_detection_generated_assets = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataplex\V1\DataQualityResult\AnomalyDetectionGeneratedAssets|null - */ - public function getAnomalyDetectionGeneratedAssets() - { - return $this->anomaly_detection_generated_assets; - } - - public function hasAnomalyDetectionGeneratedAssets() - { - return isset($this->anomaly_detection_generated_assets); - } - - public function clearAnomalyDetectionGeneratedAssets() - { - unset($this->anomaly_detection_generated_assets); - } - - /** - * Output only. The generated assets for anomaly detection. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets anomaly_detection_generated_assets = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\DataQualityResult\AnomalyDetectionGeneratedAssets $var - * @return $this - */ - public function setAnomalyDetectionGeneratedAssets($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataQualityResult\AnomalyDetectionGeneratedAssets::class); - $this->anomaly_detection_generated_assets = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityResult/AnomalyDetectionGeneratedAssets.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityResult/AnomalyDetectionGeneratedAssets.php deleted file mode 100644 index ed6bdeda4810..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityResult/AnomalyDetectionGeneratedAssets.php +++ /dev/null @@ -1,213 +0,0 @@ -google.cloud.dataplex.v1.DataQualityResult.AnomalyDetectionGeneratedAssets - */ -class AnomalyDetectionGeneratedAssets extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The result table for anomaly detection. - * Format: - * PROJECT_ID.DATASET_ID.TABLE_ID - * If the result table is set at AnomalyDetectionAssets, the result table - * here would be the same as the one set in the - * AnomalyDetectionAssets.result_table. - * - * Generated from protobuf field string result_table = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $result_table = ''; - /** - * Output only. The intermediate table for data anomaly detection. - * Format: - * PROJECT_ID.DATASET_ID.TABLE_ID - * - * Generated from protobuf field string data_intermediate_table = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $data_intermediate_table = ''; - /** - * Output only. The intermediate table for freshness anomaly detection. - * Format: - * PROJECT_ID.DATASET_ID.TABLE_ID - * - * Generated from protobuf field string freshness_intermediate_table = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $freshness_intermediate_table = ''; - /** - * Output only. The intermediate table for volume anomaly detection. - * Format: - * PROJECT_ID.DATASET_ID.TABLE_ID - * - * Generated from protobuf field string volume_intermediate_table = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $volume_intermediate_table = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $result_table - * Output only. The result table for anomaly detection. - * Format: - * PROJECT_ID.DATASET_ID.TABLE_ID - * If the result table is set at AnomalyDetectionAssets, the result table - * here would be the same as the one set in the - * AnomalyDetectionAssets.result_table. - * @type string $data_intermediate_table - * Output only. The intermediate table for data anomaly detection. - * Format: - * PROJECT_ID.DATASET_ID.TABLE_ID - * @type string $freshness_intermediate_table - * Output only. The intermediate table for freshness anomaly detection. - * Format: - * PROJECT_ID.DATASET_ID.TABLE_ID - * @type string $volume_intermediate_table - * Output only. The intermediate table for volume anomaly detection. - * Format: - * PROJECT_ID.DATASET_ID.TABLE_ID - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The result table for anomaly detection. - * Format: - * PROJECT_ID.DATASET_ID.TABLE_ID - * If the result table is set at AnomalyDetectionAssets, the result table - * here would be the same as the one set in the - * AnomalyDetectionAssets.result_table. - * - * Generated from protobuf field string result_table = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getResultTable() - { - return $this->result_table; - } - - /** - * Output only. The result table for anomaly detection. - * Format: - * PROJECT_ID.DATASET_ID.TABLE_ID - * If the result table is set at AnomalyDetectionAssets, the result table - * here would be the same as the one set in the - * AnomalyDetectionAssets.result_table. - * - * Generated from protobuf field string result_table = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setResultTable($var) - { - GPBUtil::checkString($var, True); - $this->result_table = $var; - - return $this; - } - - /** - * Output only. The intermediate table for data anomaly detection. - * Format: - * PROJECT_ID.DATASET_ID.TABLE_ID - * - * Generated from protobuf field string data_intermediate_table = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDataIntermediateTable() - { - return $this->data_intermediate_table; - } - - /** - * Output only. The intermediate table for data anomaly detection. - * Format: - * PROJECT_ID.DATASET_ID.TABLE_ID - * - * Generated from protobuf field string data_intermediate_table = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDataIntermediateTable($var) - { - GPBUtil::checkString($var, True); - $this->data_intermediate_table = $var; - - return $this; - } - - /** - * Output only. The intermediate table for freshness anomaly detection. - * Format: - * PROJECT_ID.DATASET_ID.TABLE_ID - * - * Generated from protobuf field string freshness_intermediate_table = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getFreshnessIntermediateTable() - { - return $this->freshness_intermediate_table; - } - - /** - * Output only. The intermediate table for freshness anomaly detection. - * Format: - * PROJECT_ID.DATASET_ID.TABLE_ID - * - * Generated from protobuf field string freshness_intermediate_table = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setFreshnessIntermediateTable($var) - { - GPBUtil::checkString($var, True); - $this->freshness_intermediate_table = $var; - - return $this; - } - - /** - * Output only. The intermediate table for volume anomaly detection. - * Format: - * PROJECT_ID.DATASET_ID.TABLE_ID - * - * Generated from protobuf field string volume_intermediate_table = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getVolumeIntermediateTable() - { - return $this->volume_intermediate_table; - } - - /** - * Output only. The intermediate table for volume anomaly detection. - * Format: - * PROJECT_ID.DATASET_ID.TABLE_ID - * - * Generated from protobuf field string volume_intermediate_table = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setVolumeIntermediateTable($var) - { - GPBUtil::checkString($var, True); - $this->volume_intermediate_table = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityResult/PostScanActionsResult.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityResult/PostScanActionsResult.php deleted file mode 100644 index 2f01c7b96304..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityResult/PostScanActionsResult.php +++ /dev/null @@ -1,77 +0,0 @@ -google.cloud.dataplex.v1.DataQualityResult.PostScanActionsResult - */ -class PostScanActionsResult extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The result of BigQuery export post scan action. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityResult.PostScanActionsResult.BigQueryExportResult bigquery_export_result = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $bigquery_export_result = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\DataQualityResult\PostScanActionsResult\BigQueryExportResult $bigquery_export_result - * Output only. The result of BigQuery export post scan action. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The result of BigQuery export post scan action. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityResult.PostScanActionsResult.BigQueryExportResult bigquery_export_result = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataplex\V1\DataQualityResult\PostScanActionsResult\BigQueryExportResult|null - */ - public function getBigqueryExportResult() - { - return $this->bigquery_export_result; - } - - public function hasBigqueryExportResult() - { - return isset($this->bigquery_export_result); - } - - public function clearBigqueryExportResult() - { - unset($this->bigquery_export_result); - } - - /** - * Output only. The result of BigQuery export post scan action. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityResult.PostScanActionsResult.BigQueryExportResult bigquery_export_result = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\DataQualityResult\PostScanActionsResult\BigQueryExportResult $var - * @return $this - */ - public function setBigqueryExportResult($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataQualityResult\PostScanActionsResult\BigQueryExportResult::class); - $this->bigquery_export_result = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityResult/PostScanActionsResult/BigQueryExportResult.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityResult/PostScanActionsResult/BigQueryExportResult.php deleted file mode 100644 index 80ec36e7a6f5..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityResult/PostScanActionsResult/BigQueryExportResult.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.dataplex.v1.DataQualityResult.PostScanActionsResult.BigQueryExportResult - */ -class BigQueryExportResult extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Execution state for the BigQuery exporting. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityResult.PostScanActionsResult.BigQueryExportResult.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. Additional information about the BigQuery exporting. - * - * Generated from protobuf field string message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $message = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $state - * Output only. Execution state for the BigQuery exporting. - * @type string $message - * Output only. Additional information about the BigQuery exporting. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Execution state for the BigQuery exporting. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityResult.PostScanActionsResult.BigQueryExportResult.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. Execution state for the BigQuery exporting. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityResult.PostScanActionsResult.BigQueryExportResult.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\DataQualityResult\PostScanActionsResult\BigQueryExportResult\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. Additional information about the BigQuery exporting. - * - * Generated from protobuf field string message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * Output only. Additional information about the BigQuery exporting. - * - * Generated from protobuf field string message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkString($var, True); - $this->message = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityResult/PostScanActionsResult/BigQueryExportResult/State.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityResult/PostScanActionsResult/BigQueryExportResult/State.php deleted file mode 100644 index 442a3b22fcb1..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityResult/PostScanActionsResult/BigQueryExportResult/State.php +++ /dev/null @@ -1,69 +0,0 @@ -google.cloud.dataplex.v1.DataQualityResult.PostScanActionsResult.BigQueryExportResult.State - */ -class State -{ - /** - * The exporting state is unspecified. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The exporting completed successfully. - * - * Generated from protobuf enum SUCCEEDED = 1; - */ - const SUCCEEDED = 1; - /** - * The exporting is no longer running due to an error. - * - * Generated from protobuf enum FAILED = 2; - */ - const FAILED = 2; - /** - * The exporting is skipped due to no valid scan result to export - * (usually caused by scan failed). - * - * Generated from protobuf enum SKIPPED = 3; - */ - const SKIPPED = 3; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::SUCCEEDED => 'SUCCEEDED', - self::FAILED => 'FAILED', - self::SKIPPED => 'SKIPPED', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule.php deleted file mode 100644 index 94c6a80933c2..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule.php +++ /dev/null @@ -1,845 +0,0 @@ -google.cloud.dataplex.v1.DataQualityRule - */ -class DataQualityRule extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The unnested column which this rule is evaluated against. - * - * Generated from protobuf field string column = 500 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $column = ''; - /** - * Optional. Rows with `null` values will automatically fail a rule, unless - * `ignore_null` is `true`. In that case, such `null` rows are trivially - * considered passing. - * This field is only valid for the following type of rules: - * * RangeExpectation - * * RegexExpectation - * * SetExpectation - * * UniquenessExpectation - * - * Generated from protobuf field bool ignore_null = 501 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $ignore_null = false; - /** - * Optional. The dimension a rule belongs to. Results are also aggregated at - * the dimension level. Custom dimension name is supported with all uppercase - * letters and maximum length of 30 characters. - * - * Generated from protobuf field string dimension = 502 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $dimension = ''; - /** - * Optional. The minimum ratio of **passing_rows / total_rows** required to - * pass this rule, with a range of [0.0, 1.0]. - * 0 indicates default value (i.e. 1.0). - * This field is only valid for row-level type rules. - * - * Generated from protobuf field double threshold = 503 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $threshold = 0.0; - /** - * Optional. A mutable name for the rule. - * * The name must contain only letters (a-z, A-Z), numbers (0-9), or - * hyphens (-). - * * The maximum length is 63 characters. - * * Must start with a letter. - * * Must end with a number or a letter. - * - * Generated from protobuf field string name = 504 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $name = ''; - /** - * Optional. Description of the rule. - * * The maximum length is 1,024 characters. - * - * Generated from protobuf field string description = 505 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Optional. Whether the Rule is active or suspended. - * Default is false. - * - * Generated from protobuf field bool suspended = 506 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $suspended = false; - /** - * Optional. Map of attribute name and value linked to the rule. The rules to - * evaluate can be filtered based on attributes provided here and a filter - * expression provided in the DataQualitySpec.filter field. - * - * Generated from protobuf field map attributes = 507 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $attributes; - /** - * Output only. Contains information about the source of the rule and its - * relationship with the BigQuery table, where applicable. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.RuleSource rule_source = 508 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $rule_source = null; - /** - * Optional. Specifies the debug queries for this rule. - * Currently, only one query is supported, but this may be expanded in the - * future. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityRule.DebugQuery debug_queries = 510 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $debug_queries; - protected $rule_type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\DataQualityRule\RangeExpectation $range_expectation - * Row-level rule which evaluates whether each column value lies between a - * specified range. - * @type \Google\Cloud\Dataplex\V1\DataQualityRule\NonNullExpectation $non_null_expectation - * Row-level rule which evaluates whether each column value is null. - * @type \Google\Cloud\Dataplex\V1\DataQualityRule\SetExpectation $set_expectation - * Row-level rule which evaluates whether each column value is contained by - * a specified set. - * @type \Google\Cloud\Dataplex\V1\DataQualityRule\RegexExpectation $regex_expectation - * Row-level rule which evaluates whether each column value matches a - * specified regex. - * @type \Google\Cloud\Dataplex\V1\DataQualityRule\UniquenessExpectation $uniqueness_expectation - * Row-level rule which evaluates whether each column value is unique. - * @type \Google\Cloud\Dataplex\V1\DataQualityRule\StatisticRangeExpectation $statistic_range_expectation - * Aggregate rule which evaluates whether the column aggregate - * statistic lies between a specified range. - * @type \Google\Cloud\Dataplex\V1\DataQualityRule\RowConditionExpectation $row_condition_expectation - * Row-level rule which evaluates whether each row in a table passes the - * specified condition. - * @type \Google\Cloud\Dataplex\V1\DataQualityRule\TableConditionExpectation $table_condition_expectation - * Aggregate rule which evaluates whether the provided expression is true - * for a table. - * @type \Google\Cloud\Dataplex\V1\DataQualityRule\SqlAssertion $sql_assertion - * Aggregate rule which evaluates the number of rows returned for the - * provided statement. If any rows are returned, this rule fails. - * @type \Google\Cloud\Dataplex\V1\DataQualityRule\TemplateReference $template_reference - * Aggregate rule which references a rule template and provides the - * parameters to be substituted in the template. If any rows are returned, - * this rule fails. - * @type string $column - * Optional. The unnested column which this rule is evaluated against. - * @type bool $ignore_null - * Optional. Rows with `null` values will automatically fail a rule, unless - * `ignore_null` is `true`. In that case, such `null` rows are trivially - * considered passing. - * This field is only valid for the following type of rules: - * * RangeExpectation - * * RegexExpectation - * * SetExpectation - * * UniquenessExpectation - * @type string $dimension - * Optional. The dimension a rule belongs to. Results are also aggregated at - * the dimension level. Custom dimension name is supported with all uppercase - * letters and maximum length of 30 characters. - * @type float $threshold - * Optional. The minimum ratio of **passing_rows / total_rows** required to - * pass this rule, with a range of [0.0, 1.0]. - * 0 indicates default value (i.e. 1.0). - * This field is only valid for row-level type rules. - * @type string $name - * Optional. A mutable name for the rule. - * * The name must contain only letters (a-z, A-Z), numbers (0-9), or - * hyphens (-). - * * The maximum length is 63 characters. - * * Must start with a letter. - * * Must end with a number or a letter. - * @type string $description - * Optional. Description of the rule. - * * The maximum length is 1,024 characters. - * @type bool $suspended - * Optional. Whether the Rule is active or suspended. - * Default is false. - * @type array|\Google\Protobuf\Internal\MapField $attributes - * Optional. Map of attribute name and value linked to the rule. The rules to - * evaluate can be filtered based on attributes provided here and a filter - * expression provided in the DataQualitySpec.filter field. - * @type \Google\Cloud\Dataplex\V1\DataQualityRule\RuleSource $rule_source - * Output only. Contains information about the source of the rule and its - * relationship with the BigQuery table, where applicable. - * @type \Google\Cloud\Dataplex\V1\DataQualityRule\DebugQuery[] $debug_queries - * Optional. Specifies the debug queries for this rule. - * Currently, only one query is supported, but this may be expanded in the - * future. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); - parent::__construct($data); - } - - /** - * Row-level rule which evaluates whether each column value lies between a - * specified range. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.RangeExpectation range_expectation = 1; - * @return \Google\Cloud\Dataplex\V1\DataQualityRule\RangeExpectation|null - */ - public function getRangeExpectation() - { - return $this->readOneof(1); - } - - public function hasRangeExpectation() - { - return $this->hasOneof(1); - } - - /** - * Row-level rule which evaluates whether each column value lies between a - * specified range. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.RangeExpectation range_expectation = 1; - * @param \Google\Cloud\Dataplex\V1\DataQualityRule\RangeExpectation $var - * @return $this - */ - public function setRangeExpectation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataQualityRule\RangeExpectation::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Row-level rule which evaluates whether each column value is null. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation non_null_expectation = 2; - * @return \Google\Cloud\Dataplex\V1\DataQualityRule\NonNullExpectation|null - */ - public function getNonNullExpectation() - { - return $this->readOneof(2); - } - - public function hasNonNullExpectation() - { - return $this->hasOneof(2); - } - - /** - * Row-level rule which evaluates whether each column value is null. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation non_null_expectation = 2; - * @param \Google\Cloud\Dataplex\V1\DataQualityRule\NonNullExpectation $var - * @return $this - */ - public function setNonNullExpectation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataQualityRule\NonNullExpectation::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Row-level rule which evaluates whether each column value is contained by - * a specified set. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.SetExpectation set_expectation = 3; - * @return \Google\Cloud\Dataplex\V1\DataQualityRule\SetExpectation|null - */ - public function getSetExpectation() - { - return $this->readOneof(3); - } - - public function hasSetExpectation() - { - return $this->hasOneof(3); - } - - /** - * Row-level rule which evaluates whether each column value is contained by - * a specified set. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.SetExpectation set_expectation = 3; - * @param \Google\Cloud\Dataplex\V1\DataQualityRule\SetExpectation $var - * @return $this - */ - public function setSetExpectation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataQualityRule\SetExpectation::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Row-level rule which evaluates whether each column value matches a - * specified regex. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.RegexExpectation regex_expectation = 4; - * @return \Google\Cloud\Dataplex\V1\DataQualityRule\RegexExpectation|null - */ - public function getRegexExpectation() - { - return $this->readOneof(4); - } - - public function hasRegexExpectation() - { - return $this->hasOneof(4); - } - - /** - * Row-level rule which evaluates whether each column value matches a - * specified regex. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.RegexExpectation regex_expectation = 4; - * @param \Google\Cloud\Dataplex\V1\DataQualityRule\RegexExpectation $var - * @return $this - */ - public function setRegexExpectation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataQualityRule\RegexExpectation::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Row-level rule which evaluates whether each column value is unique. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation uniqueness_expectation = 100; - * @return \Google\Cloud\Dataplex\V1\DataQualityRule\UniquenessExpectation|null - */ - public function getUniquenessExpectation() - { - return $this->readOneof(100); - } - - public function hasUniquenessExpectation() - { - return $this->hasOneof(100); - } - - /** - * Row-level rule which evaluates whether each column value is unique. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation uniqueness_expectation = 100; - * @param \Google\Cloud\Dataplex\V1\DataQualityRule\UniquenessExpectation $var - * @return $this - */ - public function setUniquenessExpectation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataQualityRule\UniquenessExpectation::class); - $this->writeOneof(100, $var); - - return $this; - } - - /** - * Aggregate rule which evaluates whether the column aggregate - * statistic lies between a specified range. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation statistic_range_expectation = 101; - * @return \Google\Cloud\Dataplex\V1\DataQualityRule\StatisticRangeExpectation|null - */ - public function getStatisticRangeExpectation() - { - return $this->readOneof(101); - } - - public function hasStatisticRangeExpectation() - { - return $this->hasOneof(101); - } - - /** - * Aggregate rule which evaluates whether the column aggregate - * statistic lies between a specified range. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation statistic_range_expectation = 101; - * @param \Google\Cloud\Dataplex\V1\DataQualityRule\StatisticRangeExpectation $var - * @return $this - */ - public function setStatisticRangeExpectation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataQualityRule\StatisticRangeExpectation::class); - $this->writeOneof(101, $var); - - return $this; - } - - /** - * Row-level rule which evaluates whether each row in a table passes the - * specified condition. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation row_condition_expectation = 200; - * @return \Google\Cloud\Dataplex\V1\DataQualityRule\RowConditionExpectation|null - */ - public function getRowConditionExpectation() - { - return $this->readOneof(200); - } - - public function hasRowConditionExpectation() - { - return $this->hasOneof(200); - } - - /** - * Row-level rule which evaluates whether each row in a table passes the - * specified condition. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation row_condition_expectation = 200; - * @param \Google\Cloud\Dataplex\V1\DataQualityRule\RowConditionExpectation $var - * @return $this - */ - public function setRowConditionExpectation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataQualityRule\RowConditionExpectation::class); - $this->writeOneof(200, $var); - - return $this; - } - - /** - * Aggregate rule which evaluates whether the provided expression is true - * for a table. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation table_condition_expectation = 201; - * @return \Google\Cloud\Dataplex\V1\DataQualityRule\TableConditionExpectation|null - */ - public function getTableConditionExpectation() - { - return $this->readOneof(201); - } - - public function hasTableConditionExpectation() - { - return $this->hasOneof(201); - } - - /** - * Aggregate rule which evaluates whether the provided expression is true - * for a table. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation table_condition_expectation = 201; - * @param \Google\Cloud\Dataplex\V1\DataQualityRule\TableConditionExpectation $var - * @return $this - */ - public function setTableConditionExpectation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataQualityRule\TableConditionExpectation::class); - $this->writeOneof(201, $var); - - return $this; - } - - /** - * Aggregate rule which evaluates the number of rows returned for the - * provided statement. If any rows are returned, this rule fails. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.SqlAssertion sql_assertion = 202; - * @return \Google\Cloud\Dataplex\V1\DataQualityRule\SqlAssertion|null - */ - public function getSqlAssertion() - { - return $this->readOneof(202); - } - - public function hasSqlAssertion() - { - return $this->hasOneof(202); - } - - /** - * Aggregate rule which evaluates the number of rows returned for the - * provided statement. If any rows are returned, this rule fails. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.SqlAssertion sql_assertion = 202; - * @param \Google\Cloud\Dataplex\V1\DataQualityRule\SqlAssertion $var - * @return $this - */ - public function setSqlAssertion($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataQualityRule\SqlAssertion::class); - $this->writeOneof(202, $var); - - return $this; - } - - /** - * Aggregate rule which references a rule template and provides the - * parameters to be substituted in the template. If any rows are returned, - * this rule fails. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.TemplateReference template_reference = 5; - * @return \Google\Cloud\Dataplex\V1\DataQualityRule\TemplateReference|null - */ - public function getTemplateReference() - { - return $this->readOneof(5); - } - - public function hasTemplateReference() - { - return $this->hasOneof(5); - } - - /** - * Aggregate rule which references a rule template and provides the - * parameters to be substituted in the template. If any rows are returned, - * this rule fails. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.TemplateReference template_reference = 5; - * @param \Google\Cloud\Dataplex\V1\DataQualityRule\TemplateReference $var - * @return $this - */ - public function setTemplateReference($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataQualityRule\TemplateReference::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Optional. The unnested column which this rule is evaluated against. - * - * Generated from protobuf field string column = 500 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getColumn() - { - return $this->column; - } - - /** - * Optional. The unnested column which this rule is evaluated against. - * - * Generated from protobuf field string column = 500 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setColumn($var) - { - GPBUtil::checkString($var, True); - $this->column = $var; - - return $this; - } - - /** - * Optional. Rows with `null` values will automatically fail a rule, unless - * `ignore_null` is `true`. In that case, such `null` rows are trivially - * considered passing. - * This field is only valid for the following type of rules: - * * RangeExpectation - * * RegexExpectation - * * SetExpectation - * * UniquenessExpectation - * - * Generated from protobuf field bool ignore_null = 501 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getIgnoreNull() - { - return $this->ignore_null; - } - - /** - * Optional. Rows with `null` values will automatically fail a rule, unless - * `ignore_null` is `true`. In that case, such `null` rows are trivially - * considered passing. - * This field is only valid for the following type of rules: - * * RangeExpectation - * * RegexExpectation - * * SetExpectation - * * UniquenessExpectation - * - * Generated from protobuf field bool ignore_null = 501 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setIgnoreNull($var) - { - GPBUtil::checkBool($var); - $this->ignore_null = $var; - - return $this; - } - - /** - * Optional. The dimension a rule belongs to. Results are also aggregated at - * the dimension level. Custom dimension name is supported with all uppercase - * letters and maximum length of 30 characters. - * - * Generated from protobuf field string dimension = 502 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDimension() - { - return $this->dimension; - } - - /** - * Optional. The dimension a rule belongs to. Results are also aggregated at - * the dimension level. Custom dimension name is supported with all uppercase - * letters and maximum length of 30 characters. - * - * Generated from protobuf field string dimension = 502 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDimension($var) - { - GPBUtil::checkString($var, True); - $this->dimension = $var; - - return $this; - } - - /** - * Optional. The minimum ratio of **passing_rows / total_rows** required to - * pass this rule, with a range of [0.0, 1.0]. - * 0 indicates default value (i.e. 1.0). - * This field is only valid for row-level type rules. - * - * Generated from protobuf field double threshold = 503 [(.google.api.field_behavior) = OPTIONAL]; - * @return float - */ - public function getThreshold() - { - return $this->threshold; - } - - /** - * Optional. The minimum ratio of **passing_rows / total_rows** required to - * pass this rule, with a range of [0.0, 1.0]. - * 0 indicates default value (i.e. 1.0). - * This field is only valid for row-level type rules. - * - * Generated from protobuf field double threshold = 503 [(.google.api.field_behavior) = OPTIONAL]; - * @param float $var - * @return $this - */ - public function setThreshold($var) - { - GPBUtil::checkDouble($var); - $this->threshold = $var; - - return $this; - } - - /** - * Optional. A mutable name for the rule. - * * The name must contain only letters (a-z, A-Z), numbers (0-9), or - * hyphens (-). - * * The maximum length is 63 characters. - * * Must start with a letter. - * * Must end with a number or a letter. - * - * Generated from protobuf field string name = 504 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Optional. A mutable name for the rule. - * * The name must contain only letters (a-z, A-Z), numbers (0-9), or - * hyphens (-). - * * The maximum length is 63 characters. - * * Must start with a letter. - * * Must end with a number or a letter. - * - * Generated from protobuf field string name = 504 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. Description of the rule. - * * The maximum length is 1,024 characters. - * - * Generated from protobuf field string description = 505 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. Description of the rule. - * * The maximum length is 1,024 characters. - * - * Generated from protobuf field string description = 505 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Optional. Whether the Rule is active or suspended. - * Default is false. - * - * Generated from protobuf field bool suspended = 506 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getSuspended() - { - return $this->suspended; - } - - /** - * Optional. Whether the Rule is active or suspended. - * Default is false. - * - * Generated from protobuf field bool suspended = 506 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setSuspended($var) - { - GPBUtil::checkBool($var); - $this->suspended = $var; - - return $this; - } - - /** - * Optional. Map of attribute name and value linked to the rule. The rules to - * evaluate can be filtered based on attributes provided here and a filter - * expression provided in the DataQualitySpec.filter field. - * - * Generated from protobuf field map attributes = 507 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAttributes() - { - return $this->attributes; - } - - /** - * Optional. Map of attribute name and value linked to the rule. The rules to - * evaluate can be filtered based on attributes provided here and a filter - * expression provided in the DataQualitySpec.filter field. - * - * Generated from protobuf field map attributes = 507 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAttributes($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->attributes = $arr; - - return $this; - } - - /** - * Output only. Contains information about the source of the rule and its - * relationship with the BigQuery table, where applicable. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.RuleSource rule_source = 508 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataplex\V1\DataQualityRule\RuleSource|null - */ - public function getRuleSource() - { - return $this->rule_source; - } - - public function hasRuleSource() - { - return isset($this->rule_source); - } - - public function clearRuleSource() - { - unset($this->rule_source); - } - - /** - * Output only. Contains information about the source of the rule and its - * relationship with the BigQuery table, where applicable. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.RuleSource rule_source = 508 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\DataQualityRule\RuleSource $var - * @return $this - */ - public function setRuleSource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataQualityRule\RuleSource::class); - $this->rule_source = $var; - - return $this; - } - - /** - * Optional. Specifies the debug queries for this rule. - * Currently, only one query is supported, but this may be expanded in the - * future. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityRule.DebugQuery debug_queries = 510 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\Dataplex\V1\DataQualityRule\DebugQuery> - */ - public function getDebugQueries() - { - return $this->debug_queries; - } - - /** - * Optional. Specifies the debug queries for this rule. - * Currently, only one query is supported, but this may be expanded in the - * future. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityRule.DebugQuery debug_queries = 510 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataplex\V1\DataQualityRule\DebugQuery[] $var - * @return $this - */ - public function setDebugQueries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\DataQualityRule\DebugQuery::class); - $this->debug_queries = $arr; - - return $this; - } - - /** - * @return string - */ - public function getRuleType() - { - return $this->whichOneof("rule_type"); - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/DebugQuery.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/DebugQuery.php deleted file mode 100644 index 68ef2374e47e..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/DebugQuery.php +++ /dev/null @@ -1,120 +0,0 @@ -google.cloud.dataplex.v1.DataQualityRule.DebugQuery - */ -class DebugQuery extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Specifies the description of the debug query. - * * The maximum length is 1,024 characters. - * - * Generated from protobuf field string description = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Required. Specifies the SQL statement to be executed. - * - * Generated from protobuf field string sql_statement = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $sql_statement = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $description - * Optional. Specifies the description of the debug query. - * * The maximum length is 1,024 characters. - * @type string $sql_statement - * Required. Specifies the SQL statement to be executed. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Specifies the description of the debug query. - * * The maximum length is 1,024 characters. - * - * Generated from protobuf field string description = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. Specifies the description of the debug query. - * * The maximum length is 1,024 characters. - * - * Generated from protobuf field string description = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Required. Specifies the SQL statement to be executed. - * - * Generated from protobuf field string sql_statement = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getSqlStatement() - { - return $this->sql_statement; - } - - /** - * Required. Specifies the SQL statement to be executed. - * - * Generated from protobuf field string sql_statement = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setSqlStatement($var) - { - GPBUtil::checkString($var, True); - $this->sql_statement = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/NonNullExpectation.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/NonNullExpectation.php deleted file mode 100644 index 301435c17ab5..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/NonNullExpectation.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation - */ -class NonNullExpectation extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/RangeExpectation.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/RangeExpectation.php deleted file mode 100644 index 523a722bcc9c..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/RangeExpectation.php +++ /dev/null @@ -1,201 +0,0 @@ -google.cloud.dataplex.v1.DataQualityRule.RangeExpectation - */ -class RangeExpectation extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The minimum column value allowed for a row to pass this - * validation. At least one of `min_value` and `max_value` need to be - * provided. - * - * Generated from protobuf field string min_value = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $min_value = ''; - /** - * Optional. The maximum column value allowed for a row to pass this - * validation. At least one of `min_value` and `max_value` need to be - * provided. - * - * Generated from protobuf field string max_value = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $max_value = ''; - /** - * Optional. Whether each value needs to be strictly greater than ('>') the - * minimum, or if equality is allowed. - * Only relevant if a `min_value` has been defined. Default = false. - * - * Generated from protobuf field bool strict_min_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $strict_min_enabled = false; - /** - * Optional. Whether each value needs to be strictly lesser than ('<') the - * maximum, or if equality is allowed. - * Only relevant if a `max_value` has been defined. Default = false. - * - * Generated from protobuf field bool strict_max_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $strict_max_enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $min_value - * Optional. The minimum column value allowed for a row to pass this - * validation. At least one of `min_value` and `max_value` need to be - * provided. - * @type string $max_value - * Optional. The maximum column value allowed for a row to pass this - * validation. At least one of `min_value` and `max_value` need to be - * provided. - * @type bool $strict_min_enabled - * Optional. Whether each value needs to be strictly greater than ('>') the - * minimum, or if equality is allowed. - * Only relevant if a `min_value` has been defined. Default = false. - * @type bool $strict_max_enabled - * Optional. Whether each value needs to be strictly lesser than ('<') the - * maximum, or if equality is allowed. - * Only relevant if a `max_value` has been defined. Default = false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The minimum column value allowed for a row to pass this - * validation. At least one of `min_value` and `max_value` need to be - * provided. - * - * Generated from protobuf field string min_value = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getMinValue() - { - return $this->min_value; - } - - /** - * Optional. The minimum column value allowed for a row to pass this - * validation. At least one of `min_value` and `max_value` need to be - * provided. - * - * Generated from protobuf field string min_value = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setMinValue($var) - { - GPBUtil::checkString($var, True); - $this->min_value = $var; - - return $this; - } - - /** - * Optional. The maximum column value allowed for a row to pass this - * validation. At least one of `min_value` and `max_value` need to be - * provided. - * - * Generated from protobuf field string max_value = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getMaxValue() - { - return $this->max_value; - } - - /** - * Optional. The maximum column value allowed for a row to pass this - * validation. At least one of `min_value` and `max_value` need to be - * provided. - * - * Generated from protobuf field string max_value = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setMaxValue($var) - { - GPBUtil::checkString($var, True); - $this->max_value = $var; - - return $this; - } - - /** - * Optional. Whether each value needs to be strictly greater than ('>') the - * minimum, or if equality is allowed. - * Only relevant if a `min_value` has been defined. Default = false. - * - * Generated from protobuf field bool strict_min_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getStrictMinEnabled() - { - return $this->strict_min_enabled; - } - - /** - * Optional. Whether each value needs to be strictly greater than ('>') the - * minimum, or if equality is allowed. - * Only relevant if a `min_value` has been defined. Default = false. - * - * Generated from protobuf field bool strict_min_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setStrictMinEnabled($var) - { - GPBUtil::checkBool($var); - $this->strict_min_enabled = $var; - - return $this; - } - - /** - * Optional. Whether each value needs to be strictly lesser than ('<') the - * maximum, or if equality is allowed. - * Only relevant if a `max_value` has been defined. Default = false. - * - * Generated from protobuf field bool strict_max_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getStrictMaxEnabled() - { - return $this->strict_max_enabled; - } - - /** - * Optional. Whether each value needs to be strictly lesser than ('<') the - * maximum, or if equality is allowed. - * Only relevant if a `max_value` has been defined. Default = false. - * - * Generated from protobuf field bool strict_max_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setStrictMaxEnabled($var) - { - GPBUtil::checkBool($var); - $this->strict_max_enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/RegexExpectation.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/RegexExpectation.php deleted file mode 100644 index a6662cbe0c1b..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/RegexExpectation.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.dataplex.v1.DataQualityRule.RegexExpectation - */ -class RegexExpectation extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. A regular expression the column value is expected to match. - * - * Generated from protobuf field string regex = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $regex = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $regex - * Optional. A regular expression the column value is expected to match. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); - parent::__construct($data); - } - - /** - * Optional. A regular expression the column value is expected to match. - * - * Generated from protobuf field string regex = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRegex() - { - return $this->regex; - } - - /** - * Optional. A regular expression the column value is expected to match. - * - * Generated from protobuf field string regex = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRegex($var) - { - GPBUtil::checkString($var, True); - $this->regex = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/RowConditionExpectation.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/RowConditionExpectation.php deleted file mode 100644 index 1009049c105e..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/RowConditionExpectation.php +++ /dev/null @@ -1,71 +0,0 @@ -= 0 AND col2 < 10 - * - * Generated from protobuf message google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation - */ -class RowConditionExpectation extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The SQL expression. - * - * Generated from protobuf field string sql_expression = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $sql_expression = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $sql_expression - * Optional. The SQL expression. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The SQL expression. - * - * Generated from protobuf field string sql_expression = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getSqlExpression() - { - return $this->sql_expression; - } - - /** - * Optional. The SQL expression. - * - * Generated from protobuf field string sql_expression = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setSqlExpression($var) - { - GPBUtil::checkString($var, True); - $this->sql_expression = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/SetExpectation.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/SetExpectation.php deleted file mode 100644 index aa65ea31aafc..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/SetExpectation.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.dataplex.v1.DataQualityRule.SetExpectation - */ -class SetExpectation extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Expected values for the column value. - * - * Generated from protobuf field repeated string values = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $values; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string[] $values - * Optional. Expected values for the column value. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Expected values for the column value. - * - * Generated from protobuf field repeated string values = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getValues() - { - return $this->values; - } - - /** - * Optional. Expected values for the column value. - * - * Generated from protobuf field repeated string values = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/SqlAssertion.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/SqlAssertion.php deleted file mode 100644 index 4e78209ae880..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/SqlAssertion.php +++ /dev/null @@ -1,77 +0,0 @@ -google.cloud.dataplex.v1.DataQualityRule.SqlAssertion - */ -class SqlAssertion extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The SQL statement. - * - * Generated from protobuf field string sql_statement = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $sql_statement = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $sql_statement - * Optional. The SQL statement. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The SQL statement. - * - * Generated from protobuf field string sql_statement = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getSqlStatement() - { - return $this->sql_statement; - } - - /** - * Optional. The SQL statement. - * - * Generated from protobuf field string sql_statement = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setSqlStatement($var) - { - GPBUtil::checkString($var, True); - $this->sql_statement = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/StatisticRangeExpectation.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/StatisticRangeExpectation.php deleted file mode 100644 index e61d1ed1f09a..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/StatisticRangeExpectation.php +++ /dev/null @@ -1,236 +0,0 @@ -google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation - */ -class StatisticRangeExpectation extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The aggregate metric to evaluate. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.ColumnStatistic statistic = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $statistic = 0; - /** - * Optional. The minimum column statistic value allowed for a row to pass - * this validation. - * At least one of `min_value` and `max_value` need to be provided. - * - * Generated from protobuf field string min_value = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $min_value = ''; - /** - * Optional. The maximum column statistic value allowed for a row to pass - * this validation. - * At least one of `min_value` and `max_value` need to be provided. - * - * Generated from protobuf field string max_value = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $max_value = ''; - /** - * Optional. Whether column statistic needs to be strictly greater than - * ('>') the minimum, or if equality is allowed. - * Only relevant if a `min_value` has been defined. Default = false. - * - * Generated from protobuf field bool strict_min_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $strict_min_enabled = false; - /** - * Optional. Whether column statistic needs to be strictly lesser than ('<') - * the maximum, or if equality is allowed. - * Only relevant if a `max_value` has been defined. Default = false. - * - * Generated from protobuf field bool strict_max_enabled = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $strict_max_enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $statistic - * Optional. The aggregate metric to evaluate. - * @type string $min_value - * Optional. The minimum column statistic value allowed for a row to pass - * this validation. - * At least one of `min_value` and `max_value` need to be provided. - * @type string $max_value - * Optional. The maximum column statistic value allowed for a row to pass - * this validation. - * At least one of `min_value` and `max_value` need to be provided. - * @type bool $strict_min_enabled - * Optional. Whether column statistic needs to be strictly greater than - * ('>') the minimum, or if equality is allowed. - * Only relevant if a `min_value` has been defined. Default = false. - * @type bool $strict_max_enabled - * Optional. Whether column statistic needs to be strictly lesser than ('<') - * the maximum, or if equality is allowed. - * Only relevant if a `max_value` has been defined. Default = false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The aggregate metric to evaluate. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.ColumnStatistic statistic = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getStatistic() - { - return $this->statistic; - } - - /** - * Optional. The aggregate metric to evaluate. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.ColumnStatistic statistic = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setStatistic($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\DataQualityRule\StatisticRangeExpectation\ColumnStatistic::class); - $this->statistic = $var; - - return $this; - } - - /** - * Optional. The minimum column statistic value allowed for a row to pass - * this validation. - * At least one of `min_value` and `max_value` need to be provided. - * - * Generated from protobuf field string min_value = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getMinValue() - { - return $this->min_value; - } - - /** - * Optional. The minimum column statistic value allowed for a row to pass - * this validation. - * At least one of `min_value` and `max_value` need to be provided. - * - * Generated from protobuf field string min_value = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setMinValue($var) - { - GPBUtil::checkString($var, True); - $this->min_value = $var; - - return $this; - } - - /** - * Optional. The maximum column statistic value allowed for a row to pass - * this validation. - * At least one of `min_value` and `max_value` need to be provided. - * - * Generated from protobuf field string max_value = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getMaxValue() - { - return $this->max_value; - } - - /** - * Optional. The maximum column statistic value allowed for a row to pass - * this validation. - * At least one of `min_value` and `max_value` need to be provided. - * - * Generated from protobuf field string max_value = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setMaxValue($var) - { - GPBUtil::checkString($var, True); - $this->max_value = $var; - - return $this; - } - - /** - * Optional. Whether column statistic needs to be strictly greater than - * ('>') the minimum, or if equality is allowed. - * Only relevant if a `min_value` has been defined. Default = false. - * - * Generated from protobuf field bool strict_min_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getStrictMinEnabled() - { - return $this->strict_min_enabled; - } - - /** - * Optional. Whether column statistic needs to be strictly greater than - * ('>') the minimum, or if equality is allowed. - * Only relevant if a `min_value` has been defined. Default = false. - * - * Generated from protobuf field bool strict_min_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setStrictMinEnabled($var) - { - GPBUtil::checkBool($var); - $this->strict_min_enabled = $var; - - return $this; - } - - /** - * Optional. Whether column statistic needs to be strictly lesser than ('<') - * the maximum, or if equality is allowed. - * Only relevant if a `max_value` has been defined. Default = false. - * - * Generated from protobuf field bool strict_max_enabled = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getStrictMaxEnabled() - { - return $this->strict_max_enabled; - } - - /** - * Optional. Whether column statistic needs to be strictly lesser than ('<') - * the maximum, or if equality is allowed. - * Only relevant if a `max_value` has been defined. Default = false. - * - * Generated from protobuf field bool strict_max_enabled = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setStrictMaxEnabled($var) - { - GPBUtil::checkBool($var); - $this->strict_max_enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/StatisticRangeExpectation/ColumnStatistic.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/StatisticRangeExpectation/ColumnStatistic.php deleted file mode 100644 index 28a3e6b136bc..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/StatisticRangeExpectation/ColumnStatistic.php +++ /dev/null @@ -1,68 +0,0 @@ -google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.ColumnStatistic - */ -class ColumnStatistic -{ - /** - * Unspecified statistic type - * - * Generated from protobuf enum STATISTIC_UNDEFINED = 0; - */ - const STATISTIC_UNDEFINED = 0; - /** - * Evaluate the column mean - * - * Generated from protobuf enum MEAN = 1; - */ - const MEAN = 1; - /** - * Evaluate the column min - * - * Generated from protobuf enum MIN = 2; - */ - const MIN = 2; - /** - * Evaluate the column max - * - * Generated from protobuf enum MAX = 3; - */ - const MAX = 3; - - private static $valueToName = [ - self::STATISTIC_UNDEFINED => 'STATISTIC_UNDEFINED', - self::MEAN => 'MEAN', - self::MIN => 'MIN', - self::MAX => 'MAX', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/TableConditionExpectation.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/TableConditionExpectation.php deleted file mode 100644 index 232980272289..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/TableConditionExpectation.php +++ /dev/null @@ -1,71 +0,0 @@ -= 0 - * - * Generated from protobuf message google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation - */ -class TableConditionExpectation extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The SQL expression. - * - * Generated from protobuf field string sql_expression = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $sql_expression = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $sql_expression - * Optional. The SQL expression. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The SQL expression. - * - * Generated from protobuf field string sql_expression = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getSqlExpression() - { - return $this->sql_expression; - } - - /** - * Optional. The SQL expression. - * - * Generated from protobuf field string sql_expression = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setSqlExpression($var) - { - GPBUtil::checkString($var, True); - $this->sql_expression = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/UniquenessExpectation.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/UniquenessExpectation.php deleted file mode 100644 index 1b312e53f784..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRule/UniquenessExpectation.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation - */ -class UniquenessExpectation extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRuleResult.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRuleResult.php deleted file mode 100644 index 364810237c84..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRuleResult.php +++ /dev/null @@ -1,409 +0,0 @@ -google.cloud.dataplex.v1.DataQualityRuleResult - */ -class DataQualityRuleResult extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The rule specified in the DataQualitySpec, as is. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule rule = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $rule = null; - /** - * Output only. Whether the rule passed or failed. - * - * Generated from protobuf field bool passed = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $passed = false; - /** - * Output only. The number of rows a rule was evaluated against. - * This field is only valid for row-level type rules. - * Evaluated count can be configured to either - * * include all rows (default) - with `null` rows automatically failing rule - * evaluation, or - * * exclude `null` rows from the `evaluated_count`, by setting - * `ignore_nulls = true`. - * This field is not set for rule SqlAssertion. - * - * Generated from protobuf field int64 evaluated_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $evaluated_count = 0; - /** - * Output only. The number of rows which passed a rule evaluation. - * This field is only valid for row-level type rules. - * This field is not set for rule SqlAssertion. - * - * Generated from protobuf field int64 passed_count = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $passed_count = 0; - /** - * Output only. The number of rows with null values in the specified column. - * - * Generated from protobuf field int64 null_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $null_count = 0; - /** - * Output only. The ratio of **passed_count / evaluated_count**. - * This field is only valid for row-level type rules. - * - * Generated from protobuf field double pass_ratio = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $pass_ratio = 0.0; - /** - * Output only. The query to find rows that did not pass this rule. - * This field is only valid for row-level type rules. - * - * Generated from protobuf field string failing_rows_query = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $failing_rows_query = ''; - /** - * Output only. The number of rows returned by the SQL statement in a SQL - * assertion rule. - * This field is only valid for SQL assertion rules. - * - * Generated from protobuf field int64 assertion_row_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $assertion_row_count = 0; - /** - * Output only. Contains the results of all debug queries for this rule. - * The number of result sets will correspond to the number of - * [debug_queries][google.cloud.dataplex.v1.DataQualityRule.debug_queries]. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityRuleResult.DebugQueryResultSet debug_queries_result_sets = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $debug_queries_result_sets; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\DataQualityRule $rule - * Output only. The rule specified in the DataQualitySpec, as is. - * @type bool $passed - * Output only. Whether the rule passed or failed. - * @type int|string $evaluated_count - * Output only. The number of rows a rule was evaluated against. - * This field is only valid for row-level type rules. - * Evaluated count can be configured to either - * * include all rows (default) - with `null` rows automatically failing rule - * evaluation, or - * * exclude `null` rows from the `evaluated_count`, by setting - * `ignore_nulls = true`. - * This field is not set for rule SqlAssertion. - * @type int|string $passed_count - * Output only. The number of rows which passed a rule evaluation. - * This field is only valid for row-level type rules. - * This field is not set for rule SqlAssertion. - * @type int|string $null_count - * Output only. The number of rows with null values in the specified column. - * @type float $pass_ratio - * Output only. The ratio of **passed_count / evaluated_count**. - * This field is only valid for row-level type rules. - * @type string $failing_rows_query - * Output only. The query to find rows that did not pass this rule. - * This field is only valid for row-level type rules. - * @type int|string $assertion_row_count - * Output only. The number of rows returned by the SQL statement in a SQL - * assertion rule. - * This field is only valid for SQL assertion rules. - * @type \Google\Cloud\Dataplex\V1\DataQualityRuleResult\DebugQueryResultSet[] $debug_queries_result_sets - * Output only. Contains the results of all debug queries for this rule. - * The number of result sets will correspond to the number of - * [debug_queries][google.cloud.dataplex.v1.DataQualityRule.debug_queries]. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The rule specified in the DataQualitySpec, as is. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule rule = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataplex\V1\DataQualityRule|null - */ - public function getRule() - { - return $this->rule; - } - - public function hasRule() - { - return isset($this->rule); - } - - public function clearRule() - { - unset($this->rule); - } - - /** - * Output only. The rule specified in the DataQualitySpec, as is. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityRule rule = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\DataQualityRule $var - * @return $this - */ - public function setRule($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataQualityRule::class); - $this->rule = $var; - - return $this; - } - - /** - * Output only. Whether the rule passed or failed. - * - * Generated from protobuf field bool passed = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getPassed() - { - return $this->passed; - } - - /** - * Output only. Whether the rule passed or failed. - * - * Generated from protobuf field bool passed = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setPassed($var) - { - GPBUtil::checkBool($var); - $this->passed = $var; - - return $this; - } - - /** - * Output only. The number of rows a rule was evaluated against. - * This field is only valid for row-level type rules. - * Evaluated count can be configured to either - * * include all rows (default) - with `null` rows automatically failing rule - * evaluation, or - * * exclude `null` rows from the `evaluated_count`, by setting - * `ignore_nulls = true`. - * This field is not set for rule SqlAssertion. - * - * Generated from protobuf field int64 evaluated_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getEvaluatedCount() - { - return $this->evaluated_count; - } - - /** - * Output only. The number of rows a rule was evaluated against. - * This field is only valid for row-level type rules. - * Evaluated count can be configured to either - * * include all rows (default) - with `null` rows automatically failing rule - * evaluation, or - * * exclude `null` rows from the `evaluated_count`, by setting - * `ignore_nulls = true`. - * This field is not set for rule SqlAssertion. - * - * Generated from protobuf field int64 evaluated_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setEvaluatedCount($var) - { - GPBUtil::checkInt64($var); - $this->evaluated_count = $var; - - return $this; - } - - /** - * Output only. The number of rows which passed a rule evaluation. - * This field is only valid for row-level type rules. - * This field is not set for rule SqlAssertion. - * - * Generated from protobuf field int64 passed_count = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getPassedCount() - { - return $this->passed_count; - } - - /** - * Output only. The number of rows which passed a rule evaluation. - * This field is only valid for row-level type rules. - * This field is not set for rule SqlAssertion. - * - * Generated from protobuf field int64 passed_count = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setPassedCount($var) - { - GPBUtil::checkInt64($var); - $this->passed_count = $var; - - return $this; - } - - /** - * Output only. The number of rows with null values in the specified column. - * - * Generated from protobuf field int64 null_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getNullCount() - { - return $this->null_count; - } - - /** - * Output only. The number of rows with null values in the specified column. - * - * Generated from protobuf field int64 null_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setNullCount($var) - { - GPBUtil::checkInt64($var); - $this->null_count = $var; - - return $this; - } - - /** - * Output only. The ratio of **passed_count / evaluated_count**. - * This field is only valid for row-level type rules. - * - * Generated from protobuf field double pass_ratio = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return float - */ - public function getPassRatio() - { - return $this->pass_ratio; - } - - /** - * Output only. The ratio of **passed_count / evaluated_count**. - * This field is only valid for row-level type rules. - * - * Generated from protobuf field double pass_ratio = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param float $var - * @return $this - */ - public function setPassRatio($var) - { - GPBUtil::checkDouble($var); - $this->pass_ratio = $var; - - return $this; - } - - /** - * Output only. The query to find rows that did not pass this rule. - * This field is only valid for row-level type rules. - * - * Generated from protobuf field string failing_rows_query = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getFailingRowsQuery() - { - return $this->failing_rows_query; - } - - /** - * Output only. The query to find rows that did not pass this rule. - * This field is only valid for row-level type rules. - * - * Generated from protobuf field string failing_rows_query = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setFailingRowsQuery($var) - { - GPBUtil::checkString($var, True); - $this->failing_rows_query = $var; - - return $this; - } - - /** - * Output only. The number of rows returned by the SQL statement in a SQL - * assertion rule. - * This field is only valid for SQL assertion rules. - * - * Generated from protobuf field int64 assertion_row_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getAssertionRowCount() - { - return $this->assertion_row_count; - } - - /** - * Output only. The number of rows returned by the SQL statement in a SQL - * assertion rule. - * This field is only valid for SQL assertion rules. - * - * Generated from protobuf field int64 assertion_row_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setAssertionRowCount($var) - { - GPBUtil::checkInt64($var); - $this->assertion_row_count = $var; - - return $this; - } - - /** - * Output only. Contains the results of all debug queries for this rule. - * The number of result sets will correspond to the number of - * [debug_queries][google.cloud.dataplex.v1.DataQualityRule.debug_queries]. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityRuleResult.DebugQueryResultSet debug_queries_result_sets = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField<\Google\Cloud\Dataplex\V1\DataQualityRuleResult\DebugQueryResultSet> - */ - public function getDebugQueriesResultSets() - { - return $this->debug_queries_result_sets; - } - - /** - * Output only. Contains the results of all debug queries for this rule. - * The number of result sets will correspond to the number of - * [debug_queries][google.cloud.dataplex.v1.DataQualityRule.debug_queries]. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityRuleResult.DebugQueryResultSet debug_queries_result_sets = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\DataQualityRuleResult\DebugQueryResultSet[] $var - * @return $this - */ - public function setDebugQueriesResultSets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\DataQualityRuleResult\DebugQueryResultSet::class); - $this->debug_queries_result_sets = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRuleResult/DebugQueryResult.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRuleResult/DebugQueryResult.php deleted file mode 100644 index 10e5747708ff..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRuleResult/DebugQueryResult.php +++ /dev/null @@ -1,147 +0,0 @@ -google.cloud.dataplex.v1.DataQualityRuleResult.DebugQueryResult - */ -class DebugQueryResult extends \Google\Protobuf\Internal\Message -{ - /** - * Specifies the name of the result. Available if provided with an explicit - * alias using `[AS] alias`. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Indicates the data type of the result. For more information, see - * [BigQuery data - * types](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types). - * - * Generated from protobuf field string type = 2; - */ - protected $type = ''; - /** - * Represents the value of the result as a string. - * - * Generated from protobuf field string value = 3; - */ - protected $value = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Specifies the name of the result. Available if provided with an explicit - * alias using `[AS] alias`. - * @type string $type - * Indicates the data type of the result. For more information, see - * [BigQuery data - * types](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types). - * @type string $value - * Represents the value of the result as a string. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); - parent::__construct($data); - } - - /** - * Specifies the name of the result. Available if provided with an explicit - * alias using `[AS] alias`. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Specifies the name of the result. Available if provided with an explicit - * alias using `[AS] alias`. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Indicates the data type of the result. For more information, see - * [BigQuery data - * types](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types). - * - * Generated from protobuf field string type = 2; - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * Indicates the data type of the result. For more information, see - * [BigQuery data - * types](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types). - * - * Generated from protobuf field string type = 2; - * @param string $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkString($var, True); - $this->type = $var; - - return $this; - } - - /** - * Represents the value of the result as a string. - * - * Generated from protobuf field string value = 3; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * Represents the value of the result as a string. - * - * Generated from protobuf field string value = 3; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRuleResult/DebugQueryResultSet.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRuleResult/DebugQueryResultSet.php deleted file mode 100644 index eb6e8bcae084..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityRuleResult/DebugQueryResultSet.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.dataplex.v1.DataQualityRuleResult.DebugQueryResultSet - */ -class DebugQueryResultSet extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Contains all results. Up to 10 results can be returned. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityRuleResult.DebugQueryResult results = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $results; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\DataQualityRuleResult\DebugQueryResult[] $results - * Output only. Contains all results. Up to 10 results can be returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Contains all results. Up to 10 results can be returned. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityRuleResult.DebugQueryResult results = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return RepeatedField<\Google\Cloud\Dataplex\V1\DataQualityRuleResult\DebugQueryResult> - */ - public function getResults() - { - return $this->results; - } - - /** - * Output only. Contains all results. Up to 10 results can be returned. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityRuleResult.DebugQueryResult results = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\DataQualityRuleResult\DebugQueryResult[] $var - * @return $this - */ - public function setResults($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\DataQualityRuleResult\DebugQueryResult::class); - $this->results = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityScanRuleResult.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityScanRuleResult.php deleted file mode 100644 index fd7a0ac9b0e9..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityScanRuleResult.php +++ /dev/null @@ -1,488 +0,0 @@ -google.cloud.dataplex.v1.DataQualityScanRuleResult - */ -class DataQualityScanRuleResult extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier of the specific data scan job this log entry is for. - * - * Generated from protobuf field string job_id = 1; - */ - protected $job_id = ''; - /** - * The data source of the data scan (e.g. BigQuery table name). - * - * Generated from protobuf field string data_source = 2; - */ - protected $data_source = ''; - /** - * The column which this rule is evaluated against. - * - * Generated from protobuf field string column = 3; - */ - protected $column = ''; - /** - * The name of the data quality rule. - * - * Generated from protobuf field string rule_name = 4; - */ - protected $rule_name = ''; - /** - * The type of the data quality rule. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityScanRuleResult.RuleType rule_type = 5; - */ - protected $rule_type = 0; - /** - * The evaluation type of the data quality rule. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityScanRuleResult.EvaluationType evalution_type = 6; - */ - protected $evalution_type = 0; - /** - * The dimension of the data quality rule. - * - * Generated from protobuf field string rule_dimension = 7; - */ - protected $rule_dimension = ''; - /** - * The passing threshold ([0.0, 100.0]) of the data quality rule. - * - * Generated from protobuf field double threshold_percent = 8; - */ - protected $threshold_percent = 0.0; - /** - * The result of the data quality rule. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityScanRuleResult.Result result = 9; - */ - protected $result = 0; - /** - * The number of rows evaluated against the data quality rule. - * This field is only valid for rules of PER_ROW evaluation type. - * - * Generated from protobuf field int64 evaluated_row_count = 10; - */ - protected $evaluated_row_count = 0; - /** - * The number of rows which passed a rule evaluation. - * This field is only valid for rules of PER_ROW evaluation type. - * - * Generated from protobuf field int64 passed_row_count = 11; - */ - protected $passed_row_count = 0; - /** - * The number of rows with null values in the specified column. - * - * Generated from protobuf field int64 null_row_count = 12; - */ - protected $null_row_count = 0; - /** - * The number of rows returned by the SQL statement in a SQL assertion rule. - * This field is only valid for SQL assertion rules. - * - * Generated from protobuf field int64 assertion_row_count = 13; - */ - protected $assertion_row_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $job_id - * Identifier of the specific data scan job this log entry is for. - * @type string $data_source - * The data source of the data scan (e.g. BigQuery table name). - * @type string $column - * The column which this rule is evaluated against. - * @type string $rule_name - * The name of the data quality rule. - * @type int $rule_type - * The type of the data quality rule. - * @type int $evalution_type - * The evaluation type of the data quality rule. - * @type string $rule_dimension - * The dimension of the data quality rule. - * @type float $threshold_percent - * The passing threshold ([0.0, 100.0]) of the data quality rule. - * @type int $result - * The result of the data quality rule. - * @type int|string $evaluated_row_count - * The number of rows evaluated against the data quality rule. - * This field is only valid for rules of PER_ROW evaluation type. - * @type int|string $passed_row_count - * The number of rows which passed a rule evaluation. - * This field is only valid for rules of PER_ROW evaluation type. - * @type int|string $null_row_count - * The number of rows with null values in the specified column. - * @type int|string $assertion_row_count - * The number of rows returned by the SQL statement in a SQL assertion rule. - * This field is only valid for SQL assertion rules. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Logs::initOnce(); - parent::__construct($data); - } - - /** - * Identifier of the specific data scan job this log entry is for. - * - * Generated from protobuf field string job_id = 1; - * @return string - */ - public function getJobId() - { - return $this->job_id; - } - - /** - * Identifier of the specific data scan job this log entry is for. - * - * Generated from protobuf field string job_id = 1; - * @param string $var - * @return $this - */ - public function setJobId($var) - { - GPBUtil::checkString($var, True); - $this->job_id = $var; - - return $this; - } - - /** - * The data source of the data scan (e.g. BigQuery table name). - * - * Generated from protobuf field string data_source = 2; - * @return string - */ - public function getDataSource() - { - return $this->data_source; - } - - /** - * The data source of the data scan (e.g. BigQuery table name). - * - * Generated from protobuf field string data_source = 2; - * @param string $var - * @return $this - */ - public function setDataSource($var) - { - GPBUtil::checkString($var, True); - $this->data_source = $var; - - return $this; - } - - /** - * The column which this rule is evaluated against. - * - * Generated from protobuf field string column = 3; - * @return string - */ - public function getColumn() - { - return $this->column; - } - - /** - * The column which this rule is evaluated against. - * - * Generated from protobuf field string column = 3; - * @param string $var - * @return $this - */ - public function setColumn($var) - { - GPBUtil::checkString($var, True); - $this->column = $var; - - return $this; - } - - /** - * The name of the data quality rule. - * - * Generated from protobuf field string rule_name = 4; - * @return string - */ - public function getRuleName() - { - return $this->rule_name; - } - - /** - * The name of the data quality rule. - * - * Generated from protobuf field string rule_name = 4; - * @param string $var - * @return $this - */ - public function setRuleName($var) - { - GPBUtil::checkString($var, True); - $this->rule_name = $var; - - return $this; - } - - /** - * The type of the data quality rule. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityScanRuleResult.RuleType rule_type = 5; - * @return int - */ - public function getRuleType() - { - return $this->rule_type; - } - - /** - * The type of the data quality rule. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityScanRuleResult.RuleType rule_type = 5; - * @param int $var - * @return $this - */ - public function setRuleType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\DataQualityScanRuleResult\RuleType::class); - $this->rule_type = $var; - - return $this; - } - - /** - * The evaluation type of the data quality rule. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityScanRuleResult.EvaluationType evalution_type = 6; - * @return int - */ - public function getEvalutionType() - { - return $this->evalution_type; - } - - /** - * The evaluation type of the data quality rule. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityScanRuleResult.EvaluationType evalution_type = 6; - * @param int $var - * @return $this - */ - public function setEvalutionType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\DataQualityScanRuleResult\EvaluationType::class); - $this->evalution_type = $var; - - return $this; - } - - /** - * The dimension of the data quality rule. - * - * Generated from protobuf field string rule_dimension = 7; - * @return string - */ - public function getRuleDimension() - { - return $this->rule_dimension; - } - - /** - * The dimension of the data quality rule. - * - * Generated from protobuf field string rule_dimension = 7; - * @param string $var - * @return $this - */ - public function setRuleDimension($var) - { - GPBUtil::checkString($var, True); - $this->rule_dimension = $var; - - return $this; - } - - /** - * The passing threshold ([0.0, 100.0]) of the data quality rule. - * - * Generated from protobuf field double threshold_percent = 8; - * @return float - */ - public function getThresholdPercent() - { - return $this->threshold_percent; - } - - /** - * The passing threshold ([0.0, 100.0]) of the data quality rule. - * - * Generated from protobuf field double threshold_percent = 8; - * @param float $var - * @return $this - */ - public function setThresholdPercent($var) - { - GPBUtil::checkDouble($var); - $this->threshold_percent = $var; - - return $this; - } - - /** - * The result of the data quality rule. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityScanRuleResult.Result result = 9; - * @return int - */ - public function getResult() - { - return $this->result; - } - - /** - * The result of the data quality rule. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityScanRuleResult.Result result = 9; - * @param int $var - * @return $this - */ - public function setResult($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\DataQualityScanRuleResult\Result::class); - $this->result = $var; - - return $this; - } - - /** - * The number of rows evaluated against the data quality rule. - * This field is only valid for rules of PER_ROW evaluation type. - * - * Generated from protobuf field int64 evaluated_row_count = 10; - * @return int|string - */ - public function getEvaluatedRowCount() - { - return $this->evaluated_row_count; - } - - /** - * The number of rows evaluated against the data quality rule. - * This field is only valid for rules of PER_ROW evaluation type. - * - * Generated from protobuf field int64 evaluated_row_count = 10; - * @param int|string $var - * @return $this - */ - public function setEvaluatedRowCount($var) - { - GPBUtil::checkInt64($var); - $this->evaluated_row_count = $var; - - return $this; - } - - /** - * The number of rows which passed a rule evaluation. - * This field is only valid for rules of PER_ROW evaluation type. - * - * Generated from protobuf field int64 passed_row_count = 11; - * @return int|string - */ - public function getPassedRowCount() - { - return $this->passed_row_count; - } - - /** - * The number of rows which passed a rule evaluation. - * This field is only valid for rules of PER_ROW evaluation type. - * - * Generated from protobuf field int64 passed_row_count = 11; - * @param int|string $var - * @return $this - */ - public function setPassedRowCount($var) - { - GPBUtil::checkInt64($var); - $this->passed_row_count = $var; - - return $this; - } - - /** - * The number of rows with null values in the specified column. - * - * Generated from protobuf field int64 null_row_count = 12; - * @return int|string - */ - public function getNullRowCount() - { - return $this->null_row_count; - } - - /** - * The number of rows with null values in the specified column. - * - * Generated from protobuf field int64 null_row_count = 12; - * @param int|string $var - * @return $this - */ - public function setNullRowCount($var) - { - GPBUtil::checkInt64($var); - $this->null_row_count = $var; - - return $this; - } - - /** - * The number of rows returned by the SQL statement in a SQL assertion rule. - * This field is only valid for SQL assertion rules. - * - * Generated from protobuf field int64 assertion_row_count = 13; - * @return int|string - */ - public function getAssertionRowCount() - { - return $this->assertion_row_count; - } - - /** - * The number of rows returned by the SQL statement in a SQL assertion rule. - * This field is only valid for SQL assertion rules. - * - * Generated from protobuf field int64 assertion_row_count = 13; - * @param int|string $var - * @return $this - */ - public function setAssertionRowCount($var) - { - GPBUtil::checkInt64($var); - $this->assertion_row_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityScanRuleResult/EvaluationType.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityScanRuleResult/EvaluationType.php deleted file mode 100644 index d5d51f216e4a..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityScanRuleResult/EvaluationType.php +++ /dev/null @@ -1,61 +0,0 @@ -google.cloud.dataplex.v1.DataQualityScanRuleResult.EvaluationType - */ -class EvaluationType -{ - /** - * An unspecified evaluation type. - * - * Generated from protobuf enum EVALUATION_TYPE_UNSPECIFIED = 0; - */ - const EVALUATION_TYPE_UNSPECIFIED = 0; - /** - * The rule evaluation is done at per row level. - * - * Generated from protobuf enum PER_ROW = 1; - */ - const PER_ROW = 1; - /** - * The rule evaluation is done for an aggregate of rows. - * - * Generated from protobuf enum AGGREGATE = 2; - */ - const AGGREGATE = 2; - - private static $valueToName = [ - self::EVALUATION_TYPE_UNSPECIFIED => 'EVALUATION_TYPE_UNSPECIFIED', - self::PER_ROW => 'PER_ROW', - self::AGGREGATE => 'AGGREGATE', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityScanRuleResult/Result.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityScanRuleResult/Result.php deleted file mode 100644 index 4a80e74ec275..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityScanRuleResult/Result.php +++ /dev/null @@ -1,61 +0,0 @@ -google.cloud.dataplex.v1.DataQualityScanRuleResult.Result - */ -class Result -{ - /** - * An unspecified result. - * - * Generated from protobuf enum RESULT_UNSPECIFIED = 0; - */ - const RESULT_UNSPECIFIED = 0; - /** - * The data quality rule passed. - * - * Generated from protobuf enum PASSED = 1; - */ - const PASSED = 1; - /** - * The data quality rule failed. - * - * Generated from protobuf enum FAILED = 2; - */ - const FAILED = 2; - - private static $valueToName = [ - self::RESULT_UNSPECIFIED => 'RESULT_UNSPECIFIED', - self::PASSED => 'PASSED', - self::FAILED => 'FAILED', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityScanRuleResult/RuleType.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityScanRuleResult/RuleType.php deleted file mode 100644 index b7519f675823..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualityScanRuleResult/RuleType.php +++ /dev/null @@ -1,127 +0,0 @@ -google.cloud.dataplex.v1.DataQualityScanRuleResult.RuleType - */ -class RuleType -{ - /** - * An unspecified rule type. - * - * Generated from protobuf enum RULE_TYPE_UNSPECIFIED = 0; - */ - const RULE_TYPE_UNSPECIFIED = 0; - /** - * See - * [DataQualityRule.NonNullExpectation][google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation]. - * - * Generated from protobuf enum NON_NULL_EXPECTATION = 1; - */ - const NON_NULL_EXPECTATION = 1; - /** - * See - * [DataQualityRule.RangeExpectation][google.cloud.dataplex.v1.DataQualityRule.RangeExpectation]. - * - * Generated from protobuf enum RANGE_EXPECTATION = 2; - */ - const RANGE_EXPECTATION = 2; - /** - * See - * [DataQualityRule.RegexExpectation][google.cloud.dataplex.v1.DataQualityRule.RegexExpectation]. - * - * Generated from protobuf enum REGEX_EXPECTATION = 3; - */ - const REGEX_EXPECTATION = 3; - /** - * See - * [DataQualityRule.RowConditionExpectation][google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation]. - * - * Generated from protobuf enum ROW_CONDITION_EXPECTATION = 4; - */ - const ROW_CONDITION_EXPECTATION = 4; - /** - * See - * [DataQualityRule.SetExpectation][google.cloud.dataplex.v1.DataQualityRule.SetExpectation]. - * - * Generated from protobuf enum SET_EXPECTATION = 5; - */ - const SET_EXPECTATION = 5; - /** - * See - * [DataQualityRule.StatisticRangeExpectation][google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation]. - * - * Generated from protobuf enum STATISTIC_RANGE_EXPECTATION = 6; - */ - const STATISTIC_RANGE_EXPECTATION = 6; - /** - * See - * [DataQualityRule.TableConditionExpectation][google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation]. - * - * Generated from protobuf enum TABLE_CONDITION_EXPECTATION = 7; - */ - const TABLE_CONDITION_EXPECTATION = 7; - /** - * See - * [DataQualityRule.UniquenessExpectation][google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation]. - * - * Generated from protobuf enum UNIQUENESS_EXPECTATION = 8; - */ - const UNIQUENESS_EXPECTATION = 8; - /** - * See - * [DataQualityRule.SqlAssertion][google.cloud.dataplex.v1.DataQualityRule.SqlAssertion]. - * - * Generated from protobuf enum SQL_ASSERTION = 9; - */ - const SQL_ASSERTION = 9; - /** - * See - * [DataQualityRule.TemplateReference][google.cloud.dataplex.v1.DataQualityRule.TemplateReference]. - * - * Generated from protobuf enum TEMPLATE_REFERENCE = 10; - */ - const TEMPLATE_REFERENCE = 10; - - private static $valueToName = [ - self::RULE_TYPE_UNSPECIFIED => 'RULE_TYPE_UNSPECIFIED', - self::NON_NULL_EXPECTATION => 'NON_NULL_EXPECTATION', - self::RANGE_EXPECTATION => 'RANGE_EXPECTATION', - self::REGEX_EXPECTATION => 'REGEX_EXPECTATION', - self::ROW_CONDITION_EXPECTATION => 'ROW_CONDITION_EXPECTATION', - self::SET_EXPECTATION => 'SET_EXPECTATION', - self::STATISTIC_RANGE_EXPECTATION => 'STATISTIC_RANGE_EXPECTATION', - self::TABLE_CONDITION_EXPECTATION => 'TABLE_CONDITION_EXPECTATION', - self::UNIQUENESS_EXPECTATION => 'UNIQUENESS_EXPECTATION', - self::SQL_ASSERTION => 'SQL_ASSERTION', - self::TEMPLATE_REFERENCE => 'TEMPLATE_REFERENCE', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec.php deleted file mode 100644 index 48caf1a03755..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec.php +++ /dev/null @@ -1,389 +0,0 @@ -google.cloud.dataplex.v1.DataQualitySpec - */ -class DataQualitySpec extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The list of rules to evaluate against a data source. At least one - * rule is required. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $rules; - /** - * Optional. The percentage of the records to be selected from the dataset for - * DataScan. - * * Value can range between 0.0 and 100.0 with up to 3 significant decimal - * digits. - * * Sampling is not applied if `sampling_percent` is not specified, 0 or - * 100. - * - * Generated from protobuf field float sampling_percent = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $sampling_percent = 0.0; - /** - * Optional. A filter applied to all rows in a single DataScan job. - * The filter needs to be a valid SQL expression for a [WHERE clause in - * GoogleSQL - * syntax](https://cloud.google.com/bigquery/docs/reference/standard-sql/query-syntax#where_clause). - * Example: col1 >= 0 AND col2 < 10 - * - * Generated from protobuf field string row_filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $row_filter = ''; - /** - * Optional. Actions to take upon job completion. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions post_scan_actions = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $post_scan_actions = null; - /** - * Optional. If set, the latest DataScan job result will be published as - * Dataplex Universal Catalog metadata. - * - * Generated from protobuf field bool catalog_publishing_enabled = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $catalog_publishing_enabled = false; - /** - * Optional. If enabled, the data scan will retrieve rules defined in the - * dataplex-types.global.data-rules aspect on all paths of the catalog entry - * corresponding to the BigQuery table resource and all attached glossary - * terms. The path that data-rules aspect is attached on the table entry - * defines the column that the rule will be evaluated against. For glossary - * terms, the path that the terms are attached on the table entry defines the - * column that the rule will be evaluated against. At the start of scan - * execution, the rules reflect the latest state retrieved from the catalog - * entry and any updates on the rules thereafter are ignored for that - * execution. The updates will be reflected from the next execution. Rules - * defined in the datascan must be empty if this field is enabled. - * - * Generated from protobuf field bool enable_catalog_based_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $enable_catalog_based_rules = false; - /** - * Optional. Filter for selectively running a subset of rules. You can filter - * the request by the name or attribute key-value pairs defined on the rule. - * If not specified, all rules are run. The filter is applicable to both, the - * rules retrieved from catalog and explicitly defined rules in the scan. - * Please see [filter - * syntax](https://docs.cloud.google.com/dataplex/docs/auto-data-quality-overview#rule-filtering) - * for more details. - * - * Generated from protobuf field string filter = 11 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\DataQualityRule[] $rules - * Required. The list of rules to evaluate against a data source. At least one - * rule is required. - * @type float $sampling_percent - * Optional. The percentage of the records to be selected from the dataset for - * DataScan. - * * Value can range between 0.0 and 100.0 with up to 3 significant decimal - * digits. - * * Sampling is not applied if `sampling_percent` is not specified, 0 or - * 100. - * @type string $row_filter - * Optional. A filter applied to all rows in a single DataScan job. - * The filter needs to be a valid SQL expression for a [WHERE clause in - * GoogleSQL - * syntax](https://cloud.google.com/bigquery/docs/reference/standard-sql/query-syntax#where_clause). - * Example: col1 >= 0 AND col2 < 10 - * @type \Google\Cloud\Dataplex\V1\DataQualitySpec\PostScanActions $post_scan_actions - * Optional. Actions to take upon job completion. - * @type bool $catalog_publishing_enabled - * Optional. If set, the latest DataScan job result will be published as - * Dataplex Universal Catalog metadata. - * @type bool $enable_catalog_based_rules - * Optional. If enabled, the data scan will retrieve rules defined in the - * dataplex-types.global.data-rules aspect on all paths of the catalog entry - * corresponding to the BigQuery table resource and all attached glossary - * terms. The path that data-rules aspect is attached on the table entry - * defines the column that the rule will be evaluated against. For glossary - * terms, the path that the terms are attached on the table entry defines the - * column that the rule will be evaluated against. At the start of scan - * execution, the rules reflect the latest state retrieved from the catalog - * entry and any updates on the rules thereafter are ignored for that - * execution. The updates will be reflected from the next execution. Rules - * defined in the datascan must be empty if this field is enabled. - * @type string $filter - * Optional. Filter for selectively running a subset of rules. You can filter - * the request by the name or attribute key-value pairs defined on the rule. - * If not specified, all rules are run. The filter is applicable to both, the - * rules retrieved from catalog and explicitly defined rules in the scan. - * Please see [filter - * syntax](https://docs.cloud.google.com/dataplex/docs/auto-data-quality-overview#rule-filtering) - * for more details. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); - parent::__construct($data); - } - - /** - * Required. The list of rules to evaluate against a data source. At least one - * rule is required. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return RepeatedField<\Google\Cloud\Dataplex\V1\DataQualityRule> - */ - public function getRules() - { - return $this->rules; - } - - /** - * Required. The list of rules to evaluate against a data source. At least one - * rule is required. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\DataQualityRule[] $var - * @return $this - */ - public function setRules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\DataQualityRule::class); - $this->rules = $arr; - - return $this; - } - - /** - * Optional. The percentage of the records to be selected from the dataset for - * DataScan. - * * Value can range between 0.0 and 100.0 with up to 3 significant decimal - * digits. - * * Sampling is not applied if `sampling_percent` is not specified, 0 or - * 100. - * - * Generated from protobuf field float sampling_percent = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return float - */ - public function getSamplingPercent() - { - return $this->sampling_percent; - } - - /** - * Optional. The percentage of the records to be selected from the dataset for - * DataScan. - * * Value can range between 0.0 and 100.0 with up to 3 significant decimal - * digits. - * * Sampling is not applied if `sampling_percent` is not specified, 0 or - * 100. - * - * Generated from protobuf field float sampling_percent = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param float $var - * @return $this - */ - public function setSamplingPercent($var) - { - GPBUtil::checkFloat($var); - $this->sampling_percent = $var; - - return $this; - } - - /** - * Optional. A filter applied to all rows in a single DataScan job. - * The filter needs to be a valid SQL expression for a [WHERE clause in - * GoogleSQL - * syntax](https://cloud.google.com/bigquery/docs/reference/standard-sql/query-syntax#where_clause). - * Example: col1 >= 0 AND col2 < 10 - * - * Generated from protobuf field string row_filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRowFilter() - { - return $this->row_filter; - } - - /** - * Optional. A filter applied to all rows in a single DataScan job. - * The filter needs to be a valid SQL expression for a [WHERE clause in - * GoogleSQL - * syntax](https://cloud.google.com/bigquery/docs/reference/standard-sql/query-syntax#where_clause). - * Example: col1 >= 0 AND col2 < 10 - * - * Generated from protobuf field string row_filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRowFilter($var) - { - GPBUtil::checkString($var, True); - $this->row_filter = $var; - - return $this; - } - - /** - * Optional. Actions to take upon job completion. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions post_scan_actions = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dataplex\V1\DataQualitySpec\PostScanActions|null - */ - public function getPostScanActions() - { - return $this->post_scan_actions; - } - - public function hasPostScanActions() - { - return isset($this->post_scan_actions); - } - - public function clearPostScanActions() - { - unset($this->post_scan_actions); - } - - /** - * Optional. Actions to take upon job completion. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions post_scan_actions = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataplex\V1\DataQualitySpec\PostScanActions $var - * @return $this - */ - public function setPostScanActions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataQualitySpec\PostScanActions::class); - $this->post_scan_actions = $var; - - return $this; - } - - /** - * Optional. If set, the latest DataScan job result will be published as - * Dataplex Universal Catalog metadata. - * - * Generated from protobuf field bool catalog_publishing_enabled = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getCatalogPublishingEnabled() - { - return $this->catalog_publishing_enabled; - } - - /** - * Optional. If set, the latest DataScan job result will be published as - * Dataplex Universal Catalog metadata. - * - * Generated from protobuf field bool catalog_publishing_enabled = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setCatalogPublishingEnabled($var) - { - GPBUtil::checkBool($var); - $this->catalog_publishing_enabled = $var; - - return $this; - } - - /** - * Optional. If enabled, the data scan will retrieve rules defined in the - * dataplex-types.global.data-rules aspect on all paths of the catalog entry - * corresponding to the BigQuery table resource and all attached glossary - * terms. The path that data-rules aspect is attached on the table entry - * defines the column that the rule will be evaluated against. For glossary - * terms, the path that the terms are attached on the table entry defines the - * column that the rule will be evaluated against. At the start of scan - * execution, the rules reflect the latest state retrieved from the catalog - * entry and any updates on the rules thereafter are ignored for that - * execution. The updates will be reflected from the next execution. Rules - * defined in the datascan must be empty if this field is enabled. - * - * Generated from protobuf field bool enable_catalog_based_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getEnableCatalogBasedRules() - { - return $this->enable_catalog_based_rules; - } - - /** - * Optional. If enabled, the data scan will retrieve rules defined in the - * dataplex-types.global.data-rules aspect on all paths of the catalog entry - * corresponding to the BigQuery table resource and all attached glossary - * terms. The path that data-rules aspect is attached on the table entry - * defines the column that the rule will be evaluated against. For glossary - * terms, the path that the terms are attached on the table entry defines the - * column that the rule will be evaluated against. At the start of scan - * execution, the rules reflect the latest state retrieved from the catalog - * entry and any updates on the rules thereafter are ignored for that - * execution. The updates will be reflected from the next execution. Rules - * defined in the datascan must be empty if this field is enabled. - * - * Generated from protobuf field bool enable_catalog_based_rules = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setEnableCatalogBasedRules($var) - { - GPBUtil::checkBool($var); - $this->enable_catalog_based_rules = $var; - - return $this; - } - - /** - * Optional. Filter for selectively running a subset of rules. You can filter - * the request by the name or attribute key-value pairs defined on the rule. - * If not specified, all rules are run. The filter is applicable to both, the - * rules retrieved from catalog and explicitly defined rules in the scan. - * Please see [filter - * syntax](https://docs.cloud.google.com/dataplex/docs/auto-data-quality-overview#rule-filtering) - * for more details. - * - * Generated from protobuf field string filter = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filter for selectively running a subset of rules. You can filter - * the request by the name or attribute key-value pairs defined on the rule. - * If not specified, all rules are run. The filter is applicable to both, the - * rules retrieved from catalog and explicitly defined rules in the scan. - * Please see [filter - * syntax](https://docs.cloud.google.com/dataplex/docs/auto-data-quality-overview#rule-filtering) - * for more details. - * - * Generated from protobuf field string filter = 11 [(.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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions.php deleted file mode 100644 index 775bec0eebc4..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions.php +++ /dev/null @@ -1,129 +0,0 @@ -google.cloud.dataplex.v1.DataQualitySpec.PostScanActions - */ -class PostScanActions extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. If set, results will be exported to the provided BigQuery - * table. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport bigquery_export = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $bigquery_export = null; - /** - * Optional. If set, results will be sent to the provided notification - * receipts upon triggers. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport notification_report = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $notification_report = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\DataQualitySpec\PostScanActions\BigQueryExport $bigquery_export - * Optional. If set, results will be exported to the provided BigQuery - * table. - * @type \Google\Cloud\Dataplex\V1\DataQualitySpec\PostScanActions\NotificationReport $notification_report - * Optional. If set, results will be sent to the provided notification - * receipts upon triggers. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); - parent::__construct($data); - } - - /** - * Optional. If set, results will be exported to the provided BigQuery - * table. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport bigquery_export = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dataplex\V1\DataQualitySpec\PostScanActions\BigQueryExport|null - */ - public function getBigqueryExport() - { - return $this->bigquery_export; - } - - public function hasBigqueryExport() - { - return isset($this->bigquery_export); - } - - public function clearBigqueryExport() - { - unset($this->bigquery_export); - } - - /** - * Optional. If set, results will be exported to the provided BigQuery - * table. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport bigquery_export = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataplex\V1\DataQualitySpec\PostScanActions\BigQueryExport $var - * @return $this - */ - public function setBigqueryExport($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataQualitySpec\PostScanActions\BigQueryExport::class); - $this->bigquery_export = $var; - - return $this; - } - - /** - * Optional. If set, results will be sent to the provided notification - * receipts upon triggers. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport notification_report = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dataplex\V1\DataQualitySpec\PostScanActions\NotificationReport|null - */ - public function getNotificationReport() - { - return $this->notification_report; - } - - public function hasNotificationReport() - { - return isset($this->notification_report); - } - - public function clearNotificationReport() - { - unset($this->notification_report); - } - - /** - * Optional. If set, results will be sent to the provided notification - * receipts upon triggers. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport notification_report = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataplex\V1\DataQualitySpec\PostScanActions\NotificationReport $var - * @return $this - */ - public function setNotificationReport($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataQualitySpec\PostScanActions\NotificationReport::class); - $this->notification_report = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions/BigQueryExport.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions/BigQueryExport.php deleted file mode 100644 index 58af4d60ea09..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions/BigQueryExport.php +++ /dev/null @@ -1,83 +0,0 @@ -google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport - */ -class BigQueryExport extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The BigQuery table to export DataQualityScan results to. - * Format: - * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID - * or - * projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID - * - * Generated from protobuf field string results_table = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $results_table = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $results_table - * Optional. The BigQuery table to export DataQualityScan results to. - * Format: - * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID - * or - * projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The BigQuery table to export DataQualityScan results to. - * Format: - * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID - * or - * projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID - * - * Generated from protobuf field string results_table = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getResultsTable() - { - return $this->results_table; - } - - /** - * Optional. The BigQuery table to export DataQualityScan results to. - * Format: - * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID - * or - * projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID - * - * Generated from protobuf field string results_table = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setResultsTable($var) - { - GPBUtil::checkString($var, True); - $this->results_table = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions/JobEndTrigger.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions/JobEndTrigger.php deleted file mode 100644 index ad7adc7d6d7d..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions/JobEndTrigger.php +++ /dev/null @@ -1,34 +0,0 @@ -google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger - */ -class JobEndTrigger extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions/JobFailureTrigger.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions/JobFailureTrigger.php deleted file mode 100644 index e0405f8c1cd3..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions/JobFailureTrigger.php +++ /dev/null @@ -1,34 +0,0 @@ -google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger - */ -class JobFailureTrigger extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions/NotificationReport.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions/NotificationReport.php deleted file mode 100644 index 4f36c06b0390..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions/NotificationReport.php +++ /dev/null @@ -1,209 +0,0 @@ -google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport - */ -class NotificationReport extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The recipients who will receive the notification report. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients recipients = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $recipients = null; - /** - * Optional. If set, report will be sent when score threshold is met. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger score_threshold_trigger = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $score_threshold_trigger = null; - /** - * Optional. If set, report will be sent when a scan job fails. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger job_failure_trigger = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $job_failure_trigger = null; - /** - * Optional. If set, report will be sent when a scan job ends. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger job_end_trigger = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $job_end_trigger = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\DataQualitySpec\PostScanActions\Recipients $recipients - * Required. The recipients who will receive the notification report. - * @type \Google\Cloud\Dataplex\V1\DataQualitySpec\PostScanActions\ScoreThresholdTrigger $score_threshold_trigger - * Optional. If set, report will be sent when score threshold is met. - * @type \Google\Cloud\Dataplex\V1\DataQualitySpec\PostScanActions\JobFailureTrigger $job_failure_trigger - * Optional. If set, report will be sent when a scan job fails. - * @type \Google\Cloud\Dataplex\V1\DataQualitySpec\PostScanActions\JobEndTrigger $job_end_trigger - * Optional. If set, report will be sent when a scan job ends. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); - parent::__construct($data); - } - - /** - * Required. The recipients who will receive the notification report. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients recipients = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataplex\V1\DataQualitySpec\PostScanActions\Recipients|null - */ - public function getRecipients() - { - return $this->recipients; - } - - public function hasRecipients() - { - return isset($this->recipients); - } - - public function clearRecipients() - { - unset($this->recipients); - } - - /** - * Required. The recipients who will receive the notification report. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients recipients = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\DataQualitySpec\PostScanActions\Recipients $var - * @return $this - */ - public function setRecipients($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataQualitySpec\PostScanActions\Recipients::class); - $this->recipients = $var; - - return $this; - } - - /** - * Optional. If set, report will be sent when score threshold is met. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger score_threshold_trigger = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dataplex\V1\DataQualitySpec\PostScanActions\ScoreThresholdTrigger|null - */ - public function getScoreThresholdTrigger() - { - return $this->score_threshold_trigger; - } - - public function hasScoreThresholdTrigger() - { - return isset($this->score_threshold_trigger); - } - - public function clearScoreThresholdTrigger() - { - unset($this->score_threshold_trigger); - } - - /** - * Optional. If set, report will be sent when score threshold is met. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger score_threshold_trigger = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataplex\V1\DataQualitySpec\PostScanActions\ScoreThresholdTrigger $var - * @return $this - */ - public function setScoreThresholdTrigger($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataQualitySpec\PostScanActions\ScoreThresholdTrigger::class); - $this->score_threshold_trigger = $var; - - return $this; - } - - /** - * Optional. If set, report will be sent when a scan job fails. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger job_failure_trigger = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dataplex\V1\DataQualitySpec\PostScanActions\JobFailureTrigger|null - */ - public function getJobFailureTrigger() - { - return $this->job_failure_trigger; - } - - public function hasJobFailureTrigger() - { - return isset($this->job_failure_trigger); - } - - public function clearJobFailureTrigger() - { - unset($this->job_failure_trigger); - } - - /** - * Optional. If set, report will be sent when a scan job fails. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger job_failure_trigger = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataplex\V1\DataQualitySpec\PostScanActions\JobFailureTrigger $var - * @return $this - */ - public function setJobFailureTrigger($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataQualitySpec\PostScanActions\JobFailureTrigger::class); - $this->job_failure_trigger = $var; - - return $this; - } - - /** - * Optional. If set, report will be sent when a scan job ends. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger job_end_trigger = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dataplex\V1\DataQualitySpec\PostScanActions\JobEndTrigger|null - */ - public function getJobEndTrigger() - { - return $this->job_end_trigger; - } - - public function hasJobEndTrigger() - { - return isset($this->job_end_trigger); - } - - public function clearJobEndTrigger() - { - unset($this->job_end_trigger); - } - - /** - * Optional. If set, report will be sent when a scan job ends. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger job_end_trigger = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataplex\V1\DataQualitySpec\PostScanActions\JobEndTrigger $var - * @return $this - */ - public function setJobEndTrigger($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataQualitySpec\PostScanActions\JobEndTrigger::class); - $this->job_end_trigger = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions/Recipients.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions/Recipients.php deleted file mode 100644 index ca03de9872b7..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions/Recipients.php +++ /dev/null @@ -1,72 +0,0 @@ -google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients - */ -class Recipients extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The email recipients who will receive the DataQualityScan - * results report. - * - * Generated from protobuf field repeated string emails = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $emails; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string[] $emails - * Optional. The email recipients who will receive the DataQualityScan - * results report. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The email recipients who will receive the DataQualityScan - * results report. - * - * Generated from protobuf field repeated string emails = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getEmails() - { - return $this->emails; - } - - /** - * Optional. The email recipients who will receive the DataQualityScan - * results report. - * - * Generated from protobuf field repeated string emails = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setEmails($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->emails = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions/ScoreThresholdTrigger.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions/ScoreThresholdTrigger.php deleted file mode 100644 index ab8316e459e5..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataQualitySpec/PostScanActions/ScoreThresholdTrigger.php +++ /dev/null @@ -1,68 +0,0 @@ -google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger - */ -class ScoreThresholdTrigger extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The score range is in [0,100]. - * - * Generated from protobuf field float score_threshold = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $score_threshold = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $score_threshold - * Optional. The score range is in [0,100]. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The score range is in [0,100]. - * - * Generated from protobuf field float score_threshold = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return float - */ - public function getScoreThreshold() - { - return $this->score_threshold; - } - - /** - * Optional. The score range is in [0,100]. - * - * Generated from protobuf field float score_threshold = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param float $var - * @return $this - */ - public function setScoreThreshold($var) - { - GPBUtil::checkFloat($var); - $this->score_threshold = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScan.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScan.php deleted file mode 100644 index fc8507dac394..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScan.php +++ /dev/null @@ -1,867 +0,0 @@ -google.cloud.dataplex.v1.DataScan - */ -class DataScan extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Identifier. The relative resource name of the scan, of the - * form: `projects/{project}/locations/{location_id}/dataScans/{datascan_id}`, - * where `project` refers to a *project_id* or *project_number* and - * `location_id` refers to a Google Cloud region. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. System generated globally unique ID for the scan. This ID will - * be different if the scan is deleted and re-created with the same name. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - */ - protected $uid = ''; - /** - * Optional. Description of the scan. - * * Must be between 1-1024 characters. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Optional. User friendly display name. - * * Must be between 1-256 characters. - * - * Generated from protobuf field string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $display_name = ''; - /** - * Optional. User-defined labels for the scan. - * - * Generated from protobuf field map labels = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $labels; - /** - * Output only. Current state of the DataScan. - * - * Generated from protobuf field .google.cloud.dataplex.v1.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. The time when the scan 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 scan was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Required. The data source for DataScan. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataSource data = 9 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data = null; - /** - * Optional. DataScan execution settings. - * If not specified, the fields in it will use their default values. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScan.ExecutionSpec execution_spec = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $execution_spec = null; - /** - * Output only. Status of the data scan execution. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScan.ExecutionStatus execution_status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $execution_status = null; - /** - * Output only. The type of DataScan. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScanType type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $type = 0; - /** - * Optional. Immutable. The identity to run the datascan. - * If not specified, defaults to the Dataplex Service Agent. - * - * Generated from protobuf field .google.cloud.dataplex.v1.ExecutionIdentity execution_identity = 300 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $execution_identity = null; - protected $spec; - protected $result; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Identifier. The relative resource name of the scan, of the - * form: `projects/{project}/locations/{location_id}/dataScans/{datascan_id}`, - * where `project` refers to a *project_id* or *project_number* and - * `location_id` refers to a Google Cloud region. - * @type string $uid - * Output only. System generated globally unique ID for the scan. This ID will - * be different if the scan is deleted and re-created with the same name. - * @type string $description - * Optional. Description of the scan. - * * Must be between 1-1024 characters. - * @type string $display_name - * Optional. User friendly display name. - * * Must be between 1-256 characters. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Optional. User-defined labels for the scan. - * @type int $state - * Output only. Current state of the DataScan. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time when the scan was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time when the scan was last updated. - * @type \Google\Cloud\Dataplex\V1\DataSource $data - * Required. The data source for DataScan. - * @type \Google\Cloud\Dataplex\V1\DataScan\ExecutionSpec $execution_spec - * Optional. DataScan execution settings. - * If not specified, the fields in it will use their default values. - * @type \Google\Cloud\Dataplex\V1\DataScan\ExecutionStatus $execution_status - * Output only. Status of the data scan execution. - * @type int $type - * Output only. The type of DataScan. - * @type \Google\Cloud\Dataplex\V1\DataQualitySpec $data_quality_spec - * Settings for a data quality scan. - * @type \Google\Cloud\Dataplex\V1\DataProfileSpec $data_profile_spec - * Settings for a data profile scan. - * @type \Google\Cloud\Dataplex\V1\DataDiscoverySpec $data_discovery_spec - * Settings for a data discovery scan. - * @type \Google\Cloud\Dataplex\V1\DataDocumentationSpec $data_documentation_spec - * Settings for a data documentation scan. - * @type \Google\Cloud\Dataplex\V1\DataQualityResult $data_quality_result - * Output only. The result of a data quality scan. - * @type \Google\Cloud\Dataplex\V1\DataProfileResult $data_profile_result - * Output only. The result of a data profile scan. - * @type \Google\Cloud\Dataplex\V1\DataDiscoveryResult $data_discovery_result - * Output only. The result of a data discovery scan. - * @type \Google\Cloud\Dataplex\V1\DataDocumentationResult $data_documentation_result - * Output only. The result of a data documentation scan. - * @type \Google\Cloud\Dataplex\V1\ExecutionIdentity $execution_identity - * Optional. Immutable. The identity to run the datascan. - * If not specified, defaults to the Dataplex Service Agent. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Datascans::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Identifier. The relative resource name of the scan, of the - * form: `projects/{project}/locations/{location_id}/dataScans/{datascan_id}`, - * where `project` refers to a *project_id* or *project_number* and - * `location_id` refers to a Google Cloud region. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Identifier. The relative resource name of the scan, of the - * form: `projects/{project}/locations/{location_id}/dataScans/{datascan_id}`, - * where `project` refers to a *project_id* or *project_number* and - * `location_id` refers to a Google Cloud region. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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. System generated globally unique ID for the scan. This ID will - * be different if the scan is deleted and re-created with the same name. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. System generated globally unique ID for the scan. This ID will - * be different if the scan is deleted and re-created with the same name. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Optional. Description of the scan. - * * Must be between 1-1024 characters. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. Description of the scan. - * * Must be between 1-1024 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; - } - - /** - * Optional. User friendly display name. - * * Must be between 1-256 characters. - * - * Generated from protobuf field string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Optional. User friendly display name. - * * Must be between 1-256 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. User-defined labels for the scan. - * - * Generated from protobuf field map labels = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Optional. User-defined labels for the scan. - * - * Generated from protobuf field map labels = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Output only. Current state of the DataScan. - * - * Generated from protobuf field .google.cloud.dataplex.v1.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. Current state of the DataScan. - * - * Generated from protobuf field .google.cloud.dataplex.v1.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. The time when the scan 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 scan 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 scan 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 scan 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; - } - - /** - * Required. The data source for DataScan. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataSource data = 9 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataplex\V1\DataSource|null - */ - public function getData() - { - return $this->data; - } - - public function hasData() - { - return isset($this->data); - } - - public function clearData() - { - unset($this->data); - } - - /** - * Required. The data source for DataScan. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataSource data = 9 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\DataSource $var - * @return $this - */ - public function setData($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataSource::class); - $this->data = $var; - - return $this; - } - - /** - * Optional. DataScan execution settings. - * If not specified, the fields in it will use their default values. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScan.ExecutionSpec execution_spec = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dataplex\V1\DataScan\ExecutionSpec|null - */ - public function getExecutionSpec() - { - return $this->execution_spec; - } - - public function hasExecutionSpec() - { - return isset($this->execution_spec); - } - - public function clearExecutionSpec() - { - unset($this->execution_spec); - } - - /** - * Optional. DataScan execution settings. - * If not specified, the fields in it will use their default values. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScan.ExecutionSpec execution_spec = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataplex\V1\DataScan\ExecutionSpec $var - * @return $this - */ - public function setExecutionSpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataScan\ExecutionSpec::class); - $this->execution_spec = $var; - - return $this; - } - - /** - * Output only. Status of the data scan execution. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScan.ExecutionStatus execution_status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataplex\V1\DataScan\ExecutionStatus|null - */ - public function getExecutionStatus() - { - return $this->execution_status; - } - - public function hasExecutionStatus() - { - return isset($this->execution_status); - } - - public function clearExecutionStatus() - { - unset($this->execution_status); - } - - /** - * Output only. Status of the data scan execution. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScan.ExecutionStatus execution_status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\DataScan\ExecutionStatus $var - * @return $this - */ - public function setExecutionStatus($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataScan\ExecutionStatus::class); - $this->execution_status = $var; - - return $this; - } - - /** - * Output only. The type of DataScan. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScanType type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Output only. The type of DataScan. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScanType type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\DataScanType::class); - $this->type = $var; - - return $this; - } - - /** - * Settings for a data quality scan. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualitySpec data_quality_spec = 100; - * @return \Google\Cloud\Dataplex\V1\DataQualitySpec|null - */ - public function getDataQualitySpec() - { - return $this->readOneof(100); - } - - public function hasDataQualitySpec() - { - return $this->hasOneof(100); - } - - /** - * Settings for a data quality scan. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualitySpec data_quality_spec = 100; - * @param \Google\Cloud\Dataplex\V1\DataQualitySpec $var - * @return $this - */ - public function setDataQualitySpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataQualitySpec::class); - $this->writeOneof(100, $var); - - return $this; - } - - /** - * Settings for a data profile scan. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileSpec data_profile_spec = 101; - * @return \Google\Cloud\Dataplex\V1\DataProfileSpec|null - */ - public function getDataProfileSpec() - { - return $this->readOneof(101); - } - - public function hasDataProfileSpec() - { - return $this->hasOneof(101); - } - - /** - * Settings for a data profile scan. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileSpec data_profile_spec = 101; - * @param \Google\Cloud\Dataplex\V1\DataProfileSpec $var - * @return $this - */ - public function setDataProfileSpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataProfileSpec::class); - $this->writeOneof(101, $var); - - return $this; - } - - /** - * Settings for a data discovery scan. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoverySpec data_discovery_spec = 102; - * @return \Google\Cloud\Dataplex\V1\DataDiscoverySpec|null - */ - public function getDataDiscoverySpec() - { - return $this->readOneof(102); - } - - public function hasDataDiscoverySpec() - { - return $this->hasOneof(102); - } - - /** - * Settings for a data discovery scan. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoverySpec data_discovery_spec = 102; - * @param \Google\Cloud\Dataplex\V1\DataDiscoverySpec $var - * @return $this - */ - public function setDataDiscoverySpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataDiscoverySpec::class); - $this->writeOneof(102, $var); - - return $this; - } - - /** - * Settings for a data documentation scan. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataDocumentationSpec data_documentation_spec = 103; - * @return \Google\Cloud\Dataplex\V1\DataDocumentationSpec|null - */ - public function getDataDocumentationSpec() - { - return $this->readOneof(103); - } - - public function hasDataDocumentationSpec() - { - return $this->hasOneof(103); - } - - /** - * Settings for a data documentation scan. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataDocumentationSpec data_documentation_spec = 103; - * @param \Google\Cloud\Dataplex\V1\DataDocumentationSpec $var - * @return $this - */ - public function setDataDocumentationSpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataDocumentationSpec::class); - $this->writeOneof(103, $var); - - return $this; - } - - /** - * Output only. The result of a data quality scan. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityResult data_quality_result = 200 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataplex\V1\DataQualityResult|null - */ - public function getDataQualityResult() - { - return $this->readOneof(200); - } - - public function hasDataQualityResult() - { - return $this->hasOneof(200); - } - - /** - * Output only. The result of a data quality scan. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityResult data_quality_result = 200 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\DataQualityResult $var - * @return $this - */ - public function setDataQualityResult($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataQualityResult::class); - $this->writeOneof(200, $var); - - return $this; - } - - /** - * Output only. The result of a data profile scan. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileResult data_profile_result = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataplex\V1\DataProfileResult|null - */ - public function getDataProfileResult() - { - return $this->readOneof(201); - } - - public function hasDataProfileResult() - { - return $this->hasOneof(201); - } - - /** - * Output only. The result of a data profile scan. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileResult data_profile_result = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\DataProfileResult $var - * @return $this - */ - public function setDataProfileResult($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataProfileResult::class); - $this->writeOneof(201, $var); - - return $this; - } - - /** - * Output only. The result of a data discovery scan. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoveryResult data_discovery_result = 202 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataplex\V1\DataDiscoveryResult|null - */ - public function getDataDiscoveryResult() - { - return $this->readOneof(202); - } - - public function hasDataDiscoveryResult() - { - return $this->hasOneof(202); - } - - /** - * Output only. The result of a data discovery scan. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoveryResult data_discovery_result = 202 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\DataDiscoveryResult $var - * @return $this - */ - public function setDataDiscoveryResult($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataDiscoveryResult::class); - $this->writeOneof(202, $var); - - return $this; - } - - /** - * Output only. The result of a data documentation scan. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataDocumentationResult data_documentation_result = 203 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataplex\V1\DataDocumentationResult|null - */ - public function getDataDocumentationResult() - { - return $this->readOneof(203); - } - - public function hasDataDocumentationResult() - { - return $this->hasOneof(203); - } - - /** - * Output only. The result of a data documentation scan. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataDocumentationResult data_documentation_result = 203 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\DataDocumentationResult $var - * @return $this - */ - public function setDataDocumentationResult($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataDocumentationResult::class); - $this->writeOneof(203, $var); - - return $this; - } - - /** - * Optional. Immutable. The identity to run the datascan. - * If not specified, defaults to the Dataplex Service Agent. - * - * Generated from protobuf field .google.cloud.dataplex.v1.ExecutionIdentity execution_identity = 300 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - * @return \Google\Cloud\Dataplex\V1\ExecutionIdentity|null - */ - public function getExecutionIdentity() - { - return $this->execution_identity; - } - - public function hasExecutionIdentity() - { - return isset($this->execution_identity); - } - - public function clearExecutionIdentity() - { - unset($this->execution_identity); - } - - /** - * Optional. Immutable. The identity to run the datascan. - * If not specified, defaults to the Dataplex Service Agent. - * - * Generated from protobuf field .google.cloud.dataplex.v1.ExecutionIdentity execution_identity = 300 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - * @param \Google\Cloud\Dataplex\V1\ExecutionIdentity $var - * @return $this - */ - public function setExecutionIdentity($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\ExecutionIdentity::class); - $this->execution_identity = $var; - - return $this; - } - - /** - * @return string - */ - public function getSpec() - { - return $this->whichOneof("spec"); - } - - /** - * @return string - */ - public function getResult() - { - return $this->whichOneof("result"); - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScan/ExecutionSpec.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScan/ExecutionSpec.php deleted file mode 100644 index aab963aefe04..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScan/ExecutionSpec.php +++ /dev/null @@ -1,133 +0,0 @@ -google.cloud.dataplex.v1.DataScan.ExecutionSpec - */ -class ExecutionSpec extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Spec related to how often and when a scan should be triggered. - * If not specified, the default is `OnDemand`, which means the scan will - * not run until the user calls `RunDataScan` API. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Trigger trigger = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $trigger = null; - protected $incremental; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\Trigger $trigger - * Optional. Spec related to how often and when a scan should be triggered. - * If not specified, the default is `OnDemand`, which means the scan will - * not run until the user calls `RunDataScan` API. - * @type string $field - * Immutable. The unnested field (of type *Date* or *Timestamp*) that - * contains values which monotonically increase over time. - * If not specified, a data scan will run for all data in the table. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Datascans::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Spec related to how often and when a scan should be triggered. - * If not specified, the default is `OnDemand`, which means the scan will - * not run until the user calls `RunDataScan` API. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Trigger trigger = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dataplex\V1\Trigger|null - */ - public function getTrigger() - { - return $this->trigger; - } - - public function hasTrigger() - { - return isset($this->trigger); - } - - public function clearTrigger() - { - unset($this->trigger); - } - - /** - * Optional. Spec related to how often and when a scan should be triggered. - * If not specified, the default is `OnDemand`, which means the scan will - * not run until the user calls `RunDataScan` API. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Trigger trigger = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataplex\V1\Trigger $var - * @return $this - */ - public function setTrigger($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Trigger::class); - $this->trigger = $var; - - return $this; - } - - /** - * Immutable. The unnested field (of type *Date* or *Timestamp*) that - * contains values which monotonically increase over time. - * If not specified, a data scan will run for all data in the table. - * - * Generated from protobuf field string field = 100 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getField() - { - return $this->readOneof(100); - } - - public function hasField() - { - return $this->hasOneof(100); - } - - /** - * Immutable. The unnested field (of type *Date* or *Timestamp*) that - * contains values which monotonically increase over time. - * If not specified, a data scan will run for all data in the table. - * - * Generated from protobuf field string field = 100 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setField($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(100, $var); - - return $this; - } - - /** - * @return string - */ - public function getIncremental() - { - return $this->whichOneof("incremental"); - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScan/ExecutionStatus.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScan/ExecutionStatus.php deleted file mode 100644 index 4848ef6e6729..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScan/ExecutionStatus.php +++ /dev/null @@ -1,165 +0,0 @@ -google.cloud.dataplex.v1.DataScan.ExecutionStatus - */ -class ExecutionStatus extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The time when the latest DataScanJob started. - * - * Generated from protobuf field .google.protobuf.Timestamp latest_job_start_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $latest_job_start_time = null; - /** - * Optional. The time when the latest DataScanJob ended. - * - * Generated from protobuf field .google.protobuf.Timestamp latest_job_end_time = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $latest_job_end_time = null; - /** - * Optional. The time when the DataScanJob execution was created. - * - * Generated from protobuf field .google.protobuf.Timestamp latest_job_create_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $latest_job_create_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $latest_job_start_time - * Optional. The time when the latest DataScanJob started. - * @type \Google\Protobuf\Timestamp $latest_job_end_time - * Optional. The time when the latest DataScanJob ended. - * @type \Google\Protobuf\Timestamp $latest_job_create_time - * Optional. The time when the DataScanJob execution was created. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Datascans::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The time when the latest DataScanJob started. - * - * Generated from protobuf field .google.protobuf.Timestamp latest_job_start_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLatestJobStartTime() - { - return $this->latest_job_start_time; - } - - public function hasLatestJobStartTime() - { - return isset($this->latest_job_start_time); - } - - public function clearLatestJobStartTime() - { - unset($this->latest_job_start_time); - } - - /** - * Optional. The time when the latest DataScanJob started. - * - * Generated from protobuf field .google.protobuf.Timestamp latest_job_start_time = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLatestJobStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->latest_job_start_time = $var; - - return $this; - } - - /** - * Optional. The time when the latest DataScanJob ended. - * - * Generated from protobuf field .google.protobuf.Timestamp latest_job_end_time = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLatestJobEndTime() - { - return $this->latest_job_end_time; - } - - public function hasLatestJobEndTime() - { - return isset($this->latest_job_end_time); - } - - public function clearLatestJobEndTime() - { - unset($this->latest_job_end_time); - } - - /** - * Optional. The time when the latest DataScanJob ended. - * - * Generated from protobuf field .google.protobuf.Timestamp latest_job_end_time = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLatestJobEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->latest_job_end_time = $var; - - return $this; - } - - /** - * Optional. The time when the DataScanJob execution was created. - * - * Generated from protobuf field .google.protobuf.Timestamp latest_job_create_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLatestJobCreateTime() - { - return $this->latest_job_create_time; - } - - public function hasLatestJobCreateTime() - { - return isset($this->latest_job_create_time); - } - - public function clearLatestJobCreateTime() - { - unset($this->latest_job_create_time); - } - - /** - * Optional. The time when the DataScanJob execution was created. - * - * Generated from protobuf field .google.protobuf.Timestamp latest_job_create_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLatestJobCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->latest_job_create_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanCatalogPublishingStatus.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanCatalogPublishingStatus.php deleted file mode 100644 index fa83fb754492..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanCatalogPublishingStatus.php +++ /dev/null @@ -1,69 +0,0 @@ -google.cloud.dataplex.v1.DataScanCatalogPublishingStatus - */ -class DataScanCatalogPublishingStatus extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Execution state for publishing. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScanCatalogPublishingStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $state - * Output only. Execution state for publishing. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DatascansCommon::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Execution state for publishing. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScanCatalogPublishingStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. Execution state for publishing. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScanCatalogPublishingStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\DataScanCatalogPublishingStatus\State::class); - $this->state = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanCatalogPublishingStatus/State.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanCatalogPublishingStatus/State.php deleted file mode 100644 index b2c44622f1b4..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanCatalogPublishingStatus/State.php +++ /dev/null @@ -1,68 +0,0 @@ -google.cloud.dataplex.v1.DataScanCatalogPublishingStatus.State - */ -class State -{ - /** - * The publishing state is unspecified. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * Publishing to catalog completed successfully. - * - * Generated from protobuf enum SUCCEEDED = 1; - */ - const SUCCEEDED = 1; - /** - * Publish to catalog failed. - * - * Generated from protobuf enum FAILED = 2; - */ - const FAILED = 2; - /** - * Publishing to catalog was skipped. - * - * Generated from protobuf enum SKIPPED = 3; - */ - const SKIPPED = 3; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::SUCCEEDED => 'SUCCEEDED', - self::FAILED => 'FAILED', - self::SKIPPED => 'SKIPPED', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent.php deleted file mode 100644 index 77674ecdd17f..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent.php +++ /dev/null @@ -1,680 +0,0 @@ -google.cloud.dataplex.v1.DataScanEvent - */ -class DataScanEvent extends \Google\Protobuf\Internal\Message -{ - /** - * The data source of the data scan - * - * Generated from protobuf field string data_source = 1; - */ - protected $data_source = ''; - /** - * The identifier of the specific data scan job this log entry is for. - * - * Generated from protobuf field string job_id = 2; - */ - protected $job_id = ''; - /** - * The time when the data scan job was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 12; - */ - protected $create_time = null; - /** - * The time when the data scan job started to run. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 3; - */ - protected $start_time = null; - /** - * The time when the data scan job finished. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 4; - */ - protected $end_time = null; - /** - * The type of the data scan. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScanEvent.ScanType type = 5; - */ - protected $type = 0; - /** - * The status of the data scan job. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScanEvent.State state = 6; - */ - protected $state = 0; - /** - * The message describing the data scan job event. - * - * Generated from protobuf field string message = 7; - */ - protected $message = ''; - /** - * A version identifier of the spec which was used to execute this job. - * - * Generated from protobuf field string spec_version = 8; - */ - protected $spec_version = ''; - /** - * The trigger type of the data scan job. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScanEvent.Trigger trigger = 9; - */ - protected $trigger = 0; - /** - * The scope of the data scan (e.g. full, incremental). - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScanEvent.Scope scope = 10; - */ - protected $scope = 0; - /** - * The result of post scan actions. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult post_scan_actions_result = 11; - */ - protected $post_scan_actions_result = null; - /** - * The status of publishing the data scan as Dataplex Universal Catalog - * metadata. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScanCatalogPublishingStatus catalog_publishing_status = 13; - */ - protected $catalog_publishing_status = null; - protected $result; - protected $appliedConfigs; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $data_source - * The data source of the data scan - * @type string $job_id - * The identifier of the specific data scan job this log entry is for. - * @type \Google\Protobuf\Timestamp $create_time - * The time when the data scan job was created. - * @type \Google\Protobuf\Timestamp $start_time - * The time when the data scan job started to run. - * @type \Google\Protobuf\Timestamp $end_time - * The time when the data scan job finished. - * @type int $type - * The type of the data scan. - * @type int $state - * The status of the data scan job. - * @type string $message - * The message describing the data scan job event. - * @type string $spec_version - * A version identifier of the spec which was used to execute this job. - * @type int $trigger - * The trigger type of the data scan job. - * @type int $scope - * The scope of the data scan (e.g. full, incremental). - * @type \Google\Cloud\Dataplex\V1\DataScanEvent\DataProfileResult $data_profile - * Data profile result for data profile type data scan. - * @type \Google\Cloud\Dataplex\V1\DataScanEvent\DataQualityResult $data_quality - * Data quality result for data quality type data scan. - * @type \Google\Cloud\Dataplex\V1\DataScanEvent\DataProfileAppliedConfigs $data_profile_configs - * Applied configs for data profile type data scan. - * @type \Google\Cloud\Dataplex\V1\DataScanEvent\DataQualityAppliedConfigs $data_quality_configs - * Applied configs for data quality type data scan. - * @type \Google\Cloud\Dataplex\V1\DataScanEvent\PostScanActionsResult $post_scan_actions_result - * The result of post scan actions. - * @type \Google\Cloud\Dataplex\V1\DataScanCatalogPublishingStatus $catalog_publishing_status - * The status of publishing the data scan as Dataplex Universal Catalog - * metadata. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Logs::initOnce(); - parent::__construct($data); - } - - /** - * The data source of the data scan - * - * Generated from protobuf field string data_source = 1; - * @return string - */ - public function getDataSource() - { - return $this->data_source; - } - - /** - * The data source of the data scan - * - * Generated from protobuf field string data_source = 1; - * @param string $var - * @return $this - */ - public function setDataSource($var) - { - GPBUtil::checkString($var, True); - $this->data_source = $var; - - return $this; - } - - /** - * The identifier of the specific data scan job this log entry is for. - * - * Generated from protobuf field string job_id = 2; - * @return string - */ - public function getJobId() - { - return $this->job_id; - } - - /** - * The identifier of the specific data scan job this log entry is for. - * - * Generated from protobuf field string job_id = 2; - * @param string $var - * @return $this - */ - public function setJobId($var) - { - GPBUtil::checkString($var, True); - $this->job_id = $var; - - return $this; - } - - /** - * The time when the data scan job was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 12; - * @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 time when the data scan job was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 12; - * @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 time when the data scan job started to run. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getStartTime() - { - return $this->start_time; - } - - public function hasStartTime() - { - return isset($this->start_time); - } - - public function clearStartTime() - { - unset($this->start_time); - } - - /** - * The time when the data scan job started to run. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->start_time = $var; - - return $this; - } - - /** - * The time when the data scan job finished. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 4; - * @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); - } - - /** - * The time when the data scan job finished. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 4; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - - /** - * The type of the data scan. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScanEvent.ScanType type = 5; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * The type of the data scan. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScanEvent.ScanType type = 5; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\DataScanEvent\ScanType::class); - $this->type = $var; - - return $this; - } - - /** - * The status of the data scan job. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScanEvent.State state = 6; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * The status of the data scan job. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScanEvent.State state = 6; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\DataScanEvent\State::class); - $this->state = $var; - - return $this; - } - - /** - * The message describing the data scan job event. - * - * Generated from protobuf field string message = 7; - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * The message describing the data scan job event. - * - * Generated from protobuf field string message = 7; - * @param string $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkString($var, True); - $this->message = $var; - - return $this; - } - - /** - * A version identifier of the spec which was used to execute this job. - * - * Generated from protobuf field string spec_version = 8; - * @return string - */ - public function getSpecVersion() - { - return $this->spec_version; - } - - /** - * A version identifier of the spec which was used to execute this job. - * - * Generated from protobuf field string spec_version = 8; - * @param string $var - * @return $this - */ - public function setSpecVersion($var) - { - GPBUtil::checkString($var, True); - $this->spec_version = $var; - - return $this; - } - - /** - * The trigger type of the data scan job. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScanEvent.Trigger trigger = 9; - * @return int - */ - public function getTrigger() - { - return $this->trigger; - } - - /** - * The trigger type of the data scan job. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScanEvent.Trigger trigger = 9; - * @param int $var - * @return $this - */ - public function setTrigger($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\DataScanEvent\Trigger::class); - $this->trigger = $var; - - return $this; - } - - /** - * The scope of the data scan (e.g. full, incremental). - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScanEvent.Scope scope = 10; - * @return int - */ - public function getScope() - { - return $this->scope; - } - - /** - * The scope of the data scan (e.g. full, incremental). - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScanEvent.Scope scope = 10; - * @param int $var - * @return $this - */ - public function setScope($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\DataScanEvent\Scope::class); - $this->scope = $var; - - return $this; - } - - /** - * Data profile result for data profile type data scan. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScanEvent.DataProfileResult data_profile = 101; - * @return \Google\Cloud\Dataplex\V1\DataScanEvent\DataProfileResult|null - */ - public function getDataProfile() - { - return $this->readOneof(101); - } - - public function hasDataProfile() - { - return $this->hasOneof(101); - } - - /** - * Data profile result for data profile type data scan. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScanEvent.DataProfileResult data_profile = 101; - * @param \Google\Cloud\Dataplex\V1\DataScanEvent\DataProfileResult $var - * @return $this - */ - public function setDataProfile($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataScanEvent\DataProfileResult::class); - $this->writeOneof(101, $var); - - return $this; - } - - /** - * Data quality result for data quality type data scan. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScanEvent.DataQualityResult data_quality = 102; - * @return \Google\Cloud\Dataplex\V1\DataScanEvent\DataQualityResult|null - */ - public function getDataQuality() - { - return $this->readOneof(102); - } - - public function hasDataQuality() - { - return $this->hasOneof(102); - } - - /** - * Data quality result for data quality type data scan. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScanEvent.DataQualityResult data_quality = 102; - * @param \Google\Cloud\Dataplex\V1\DataScanEvent\DataQualityResult $var - * @return $this - */ - public function setDataQuality($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataScanEvent\DataQualityResult::class); - $this->writeOneof(102, $var); - - return $this; - } - - /** - * Applied configs for data profile type data scan. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScanEvent.DataProfileAppliedConfigs data_profile_configs = 201; - * @return \Google\Cloud\Dataplex\V1\DataScanEvent\DataProfileAppliedConfigs|null - */ - public function getDataProfileConfigs() - { - return $this->readOneof(201); - } - - public function hasDataProfileConfigs() - { - return $this->hasOneof(201); - } - - /** - * Applied configs for data profile type data scan. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScanEvent.DataProfileAppliedConfigs data_profile_configs = 201; - * @param \Google\Cloud\Dataplex\V1\DataScanEvent\DataProfileAppliedConfigs $var - * @return $this - */ - public function setDataProfileConfigs($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataScanEvent\DataProfileAppliedConfigs::class); - $this->writeOneof(201, $var); - - return $this; - } - - /** - * Applied configs for data quality type data scan. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScanEvent.DataQualityAppliedConfigs data_quality_configs = 202; - * @return \Google\Cloud\Dataplex\V1\DataScanEvent\DataQualityAppliedConfigs|null - */ - public function getDataQualityConfigs() - { - return $this->readOneof(202); - } - - public function hasDataQualityConfigs() - { - return $this->hasOneof(202); - } - - /** - * Applied configs for data quality type data scan. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScanEvent.DataQualityAppliedConfigs data_quality_configs = 202; - * @param \Google\Cloud\Dataplex\V1\DataScanEvent\DataQualityAppliedConfigs $var - * @return $this - */ - public function setDataQualityConfigs($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataScanEvent\DataQualityAppliedConfigs::class); - $this->writeOneof(202, $var); - - return $this; - } - - /** - * The result of post scan actions. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult post_scan_actions_result = 11; - * @return \Google\Cloud\Dataplex\V1\DataScanEvent\PostScanActionsResult|null - */ - public function getPostScanActionsResult() - { - return $this->post_scan_actions_result; - } - - public function hasPostScanActionsResult() - { - return isset($this->post_scan_actions_result); - } - - public function clearPostScanActionsResult() - { - unset($this->post_scan_actions_result); - } - - /** - * The result of post scan actions. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult post_scan_actions_result = 11; - * @param \Google\Cloud\Dataplex\V1\DataScanEvent\PostScanActionsResult $var - * @return $this - */ - public function setPostScanActionsResult($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataScanEvent\PostScanActionsResult::class); - $this->post_scan_actions_result = $var; - - return $this; - } - - /** - * The status of publishing the data scan as Dataplex Universal Catalog - * metadata. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScanCatalogPublishingStatus catalog_publishing_status = 13; - * @return \Google\Cloud\Dataplex\V1\DataScanCatalogPublishingStatus|null - */ - public function getCatalogPublishingStatus() - { - return $this->catalog_publishing_status; - } - - public function hasCatalogPublishingStatus() - { - return isset($this->catalog_publishing_status); - } - - public function clearCatalogPublishingStatus() - { - unset($this->catalog_publishing_status); - } - - /** - * The status of publishing the data scan as Dataplex Universal Catalog - * metadata. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScanCatalogPublishingStatus catalog_publishing_status = 13; - * @param \Google\Cloud\Dataplex\V1\DataScanCatalogPublishingStatus $var - * @return $this - */ - public function setCatalogPublishingStatus($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataScanCatalogPublishingStatus::class); - $this->catalog_publishing_status = $var; - - return $this; - } - - /** - * @return string - */ - public function getResult() - { - return $this->whichOneof("result"); - } - - /** - * @return string - */ - public function getAppliedConfigs() - { - return $this->whichOneof("appliedConfigs"); - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/DataProfileAppliedConfigs.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/DataProfileAppliedConfigs.php deleted file mode 100644 index b3f25ad08f3c..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/DataProfileAppliedConfigs.php +++ /dev/null @@ -1,147 +0,0 @@ -google.cloud.dataplex.v1.DataScanEvent.DataProfileAppliedConfigs - */ -class DataProfileAppliedConfigs extends \Google\Protobuf\Internal\Message -{ - /** - * The percentage of the records selected from the dataset for DataScan. - * * Value ranges between 0.0 and 100.0. - * * Value 0.0 or 100.0 imply that sampling was not applied. - * - * Generated from protobuf field float sampling_percent = 1; - */ - protected $sampling_percent = 0.0; - /** - * Boolean indicating whether a row filter was applied in the DataScan job. - * - * Generated from protobuf field bool row_filter_applied = 2; - */ - protected $row_filter_applied = false; - /** - * Boolean indicating whether a column filter was applied in the DataScan - * job. - * - * Generated from protobuf field bool column_filter_applied = 3; - */ - protected $column_filter_applied = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $sampling_percent - * The percentage of the records selected from the dataset for DataScan. - * * Value ranges between 0.0 and 100.0. - * * Value 0.0 or 100.0 imply that sampling was not applied. - * @type bool $row_filter_applied - * Boolean indicating whether a row filter was applied in the DataScan job. - * @type bool $column_filter_applied - * Boolean indicating whether a column filter was applied in the DataScan - * job. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Logs::initOnce(); - parent::__construct($data); - } - - /** - * The percentage of the records selected from the dataset for DataScan. - * * Value ranges between 0.0 and 100.0. - * * Value 0.0 or 100.0 imply that sampling was not applied. - * - * Generated from protobuf field float sampling_percent = 1; - * @return float - */ - public function getSamplingPercent() - { - return $this->sampling_percent; - } - - /** - * The percentage of the records selected from the dataset for DataScan. - * * Value ranges between 0.0 and 100.0. - * * Value 0.0 or 100.0 imply that sampling was not applied. - * - * Generated from protobuf field float sampling_percent = 1; - * @param float $var - * @return $this - */ - public function setSamplingPercent($var) - { - GPBUtil::checkFloat($var); - $this->sampling_percent = $var; - - return $this; - } - - /** - * Boolean indicating whether a row filter was applied in the DataScan job. - * - * Generated from protobuf field bool row_filter_applied = 2; - * @return bool - */ - public function getRowFilterApplied() - { - return $this->row_filter_applied; - } - - /** - * Boolean indicating whether a row filter was applied in the DataScan job. - * - * Generated from protobuf field bool row_filter_applied = 2; - * @param bool $var - * @return $this - */ - public function setRowFilterApplied($var) - { - GPBUtil::checkBool($var); - $this->row_filter_applied = $var; - - return $this; - } - - /** - * Boolean indicating whether a column filter was applied in the DataScan - * job. - * - * Generated from protobuf field bool column_filter_applied = 3; - * @return bool - */ - public function getColumnFilterApplied() - { - return $this->column_filter_applied; - } - - /** - * Boolean indicating whether a column filter was applied in the DataScan - * job. - * - * Generated from protobuf field bool column_filter_applied = 3; - * @param bool $var - * @return $this - */ - public function setColumnFilterApplied($var) - { - GPBUtil::checkBool($var); - $this->column_filter_applied = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/DataProfileResult.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/DataProfileResult.php deleted file mode 100644 index 3ff3cc237024..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/DataProfileResult.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.dataplex.v1.DataScanEvent.DataProfileResult - */ -class DataProfileResult extends \Google\Protobuf\Internal\Message -{ - /** - * The count of rows processed in the data scan job. - * - * Generated from protobuf field int64 row_count = 1; - */ - protected $row_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $row_count - * The count of rows processed in the data scan job. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Logs::initOnce(); - parent::__construct($data); - } - - /** - * The count of rows processed in the data scan job. - * - * Generated from protobuf field int64 row_count = 1; - * @return int|string - */ - public function getRowCount() - { - return $this->row_count; - } - - /** - * The count of rows processed in the data scan job. - * - * Generated from protobuf field int64 row_count = 1; - * @param int|string $var - * @return $this - */ - public function setRowCount($var) - { - GPBUtil::checkInt64($var); - $this->row_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/DataQualityAppliedConfigs.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/DataQualityAppliedConfigs.php deleted file mode 100644 index 4d94912e2e9e..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/DataQualityAppliedConfigs.php +++ /dev/null @@ -1,109 +0,0 @@ -google.cloud.dataplex.v1.DataScanEvent.DataQualityAppliedConfigs - */ -class DataQualityAppliedConfigs extends \Google\Protobuf\Internal\Message -{ - /** - * The percentage of the records selected from the dataset for DataScan. - * * Value ranges between 0.0 and 100.0. - * * Value 0.0 or 100.0 imply that sampling was not applied. - * - * Generated from protobuf field float sampling_percent = 1; - */ - protected $sampling_percent = 0.0; - /** - * Boolean indicating whether a row filter was applied in the DataScan job. - * - * Generated from protobuf field bool row_filter_applied = 2; - */ - protected $row_filter_applied = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $sampling_percent - * The percentage of the records selected from the dataset for DataScan. - * * Value ranges between 0.0 and 100.0. - * * Value 0.0 or 100.0 imply that sampling was not applied. - * @type bool $row_filter_applied - * Boolean indicating whether a row filter was applied in the DataScan job. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Logs::initOnce(); - parent::__construct($data); - } - - /** - * The percentage of the records selected from the dataset for DataScan. - * * Value ranges between 0.0 and 100.0. - * * Value 0.0 or 100.0 imply that sampling was not applied. - * - * Generated from protobuf field float sampling_percent = 1; - * @return float - */ - public function getSamplingPercent() - { - return $this->sampling_percent; - } - - /** - * The percentage of the records selected from the dataset for DataScan. - * * Value ranges between 0.0 and 100.0. - * * Value 0.0 or 100.0 imply that sampling was not applied. - * - * Generated from protobuf field float sampling_percent = 1; - * @param float $var - * @return $this - */ - public function setSamplingPercent($var) - { - GPBUtil::checkFloat($var); - $this->sampling_percent = $var; - - return $this; - } - - /** - * Boolean indicating whether a row filter was applied in the DataScan job. - * - * Generated from protobuf field bool row_filter_applied = 2; - * @return bool - */ - public function getRowFilterApplied() - { - return $this->row_filter_applied; - } - - /** - * Boolean indicating whether a row filter was applied in the DataScan job. - * - * Generated from protobuf field bool row_filter_applied = 2; - * @param bool $var - * @return $this - */ - public function setRowFilterApplied($var) - { - GPBUtil::checkBool($var); - $this->row_filter_applied = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/DataQualityResult.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/DataQualityResult.php deleted file mode 100644 index 94c53d814a16..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/DataQualityResult.php +++ /dev/null @@ -1,289 +0,0 @@ -google.cloud.dataplex.v1.DataScanEvent.DataQualityResult - */ -class DataQualityResult extends \Google\Protobuf\Internal\Message -{ - /** - * The count of rows processed in the data scan job. - * - * Generated from protobuf field int64 row_count = 1; - */ - protected $row_count = 0; - /** - * Whether the data quality result was `pass` or not. - * - * Generated from protobuf field bool passed = 2; - */ - protected $passed = false; - /** - * The result of each dimension for data quality result. - * The key of the map is the name of the dimension. - * The value is the bool value depicting whether the dimension result was - * `pass` or not. - * - * Generated from protobuf field map dimension_passed = 3; - */ - private $dimension_passed; - /** - * The table-level data quality score for the data scan job. - * The data quality score ranges between [0, 100] (up to two decimal - * points). - * - * Generated from protobuf field float score = 4; - */ - protected $score = 0.0; - /** - * The score of each dimension for data quality result. - * The key of the map is the name of the dimension. - * The value is the data quality score for the dimension. - * The score ranges between [0, 100] (up to two decimal - * points). - * - * Generated from protobuf field map dimension_score = 5; - */ - private $dimension_score; - /** - * The score of each column scanned in the data scan job. - * The key of the map is the name of the column. - * The value is the data quality score for the column. - * The score ranges between [0, 100] (up to two decimal - * points). - * - * Generated from protobuf field map column_score = 6; - */ - private $column_score; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $row_count - * The count of rows processed in the data scan job. - * @type bool $passed - * Whether the data quality result was `pass` or not. - * @type array|\Google\Protobuf\Internal\MapField $dimension_passed - * The result of each dimension for data quality result. - * The key of the map is the name of the dimension. - * The value is the bool value depicting whether the dimension result was - * `pass` or not. - * @type float $score - * The table-level data quality score for the data scan job. - * The data quality score ranges between [0, 100] (up to two decimal - * points). - * @type array|\Google\Protobuf\Internal\MapField $dimension_score - * The score of each dimension for data quality result. - * The key of the map is the name of the dimension. - * The value is the data quality score for the dimension. - * The score ranges between [0, 100] (up to two decimal - * points). - * @type array|\Google\Protobuf\Internal\MapField $column_score - * The score of each column scanned in the data scan job. - * The key of the map is the name of the column. - * The value is the data quality score for the column. - * The score ranges between [0, 100] (up to two decimal - * points). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Logs::initOnce(); - parent::__construct($data); - } - - /** - * The count of rows processed in the data scan job. - * - * Generated from protobuf field int64 row_count = 1; - * @return int|string - */ - public function getRowCount() - { - return $this->row_count; - } - - /** - * The count of rows processed in the data scan job. - * - * Generated from protobuf field int64 row_count = 1; - * @param int|string $var - * @return $this - */ - public function setRowCount($var) - { - GPBUtil::checkInt64($var); - $this->row_count = $var; - - return $this; - } - - /** - * Whether the data quality result was `pass` or not. - * - * Generated from protobuf field bool passed = 2; - * @return bool - */ - public function getPassed() - { - return $this->passed; - } - - /** - * Whether the data quality result was `pass` or not. - * - * Generated from protobuf field bool passed = 2; - * @param bool $var - * @return $this - */ - public function setPassed($var) - { - GPBUtil::checkBool($var); - $this->passed = $var; - - return $this; - } - - /** - * The result of each dimension for data quality result. - * The key of the map is the name of the dimension. - * The value is the bool value depicting whether the dimension result was - * `pass` or not. - * - * Generated from protobuf field map dimension_passed = 3; - * @return \Google\Protobuf\Internal\MapField - */ - public function getDimensionPassed() - { - return $this->dimension_passed; - } - - /** - * The result of each dimension for data quality result. - * The key of the map is the name of the dimension. - * The value is the bool value depicting whether the dimension result was - * `pass` or not. - * - * Generated from protobuf field map dimension_passed = 3; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setDimensionPassed($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::BOOL); - $this->dimension_passed = $arr; - - return $this; - } - - /** - * The table-level data quality score for the data scan job. - * The data quality score ranges between [0, 100] (up to two decimal - * points). - * - * Generated from protobuf field float score = 4; - * @return float - */ - public function getScore() - { - return $this->score; - } - - /** - * The table-level data quality score for the data scan job. - * The data quality score ranges between [0, 100] (up to two decimal - * points). - * - * Generated from protobuf field float score = 4; - * @param float $var - * @return $this - */ - public function setScore($var) - { - GPBUtil::checkFloat($var); - $this->score = $var; - - return $this; - } - - /** - * The score of each dimension for data quality result. - * The key of the map is the name of the dimension. - * The value is the data quality score for the dimension. - * The score ranges between [0, 100] (up to two decimal - * points). - * - * Generated from protobuf field map dimension_score = 5; - * @return \Google\Protobuf\Internal\MapField - */ - public function getDimensionScore() - { - return $this->dimension_score; - } - - /** - * The score of each dimension for data quality result. - * The key of the map is the name of the dimension. - * The value is the data quality score for the dimension. - * The score ranges between [0, 100] (up to two decimal - * points). - * - * Generated from protobuf field map dimension_score = 5; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setDimensionScore($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::FLOAT); - $this->dimension_score = $arr; - - return $this; - } - - /** - * The score of each column scanned in the data scan job. - * The key of the map is the name of the column. - * The value is the data quality score for the column. - * The score ranges between [0, 100] (up to two decimal - * points). - * - * Generated from protobuf field map column_score = 6; - * @return \Google\Protobuf\Internal\MapField - */ - public function getColumnScore() - { - return $this->column_score; - } - - /** - * The score of each column scanned in the data scan job. - * The key of the map is the name of the column. - * The value is the data quality score for the column. - * The score ranges between [0, 100] (up to two decimal - * points). - * - * Generated from protobuf field map column_score = 6; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setColumnScore($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::FLOAT); - $this->column_score = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/PostScanActionsResult.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/PostScanActionsResult.php deleted file mode 100644 index 71d5d15509ef..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/PostScanActionsResult.php +++ /dev/null @@ -1,77 +0,0 @@ -google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult - */ -class PostScanActionsResult extends \Google\Protobuf\Internal\Message -{ - /** - * The result of BigQuery export post scan action. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult.BigQueryExportResult bigquery_export_result = 1; - */ - protected $bigquery_export_result = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\DataScanEvent\PostScanActionsResult\BigQueryExportResult $bigquery_export_result - * The result of BigQuery export post scan action. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Logs::initOnce(); - parent::__construct($data); - } - - /** - * The result of BigQuery export post scan action. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult.BigQueryExportResult bigquery_export_result = 1; - * @return \Google\Cloud\Dataplex\V1\DataScanEvent\PostScanActionsResult\BigQueryExportResult|null - */ - public function getBigqueryExportResult() - { - return $this->bigquery_export_result; - } - - public function hasBigqueryExportResult() - { - return isset($this->bigquery_export_result); - } - - public function clearBigqueryExportResult() - { - unset($this->bigquery_export_result); - } - - /** - * The result of BigQuery export post scan action. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult.BigQueryExportResult bigquery_export_result = 1; - * @param \Google\Cloud\Dataplex\V1\DataScanEvent\PostScanActionsResult\BigQueryExportResult $var - * @return $this - */ - public function setBigqueryExportResult($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataScanEvent\PostScanActionsResult\BigQueryExportResult::class); - $this->bigquery_export_result = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/PostScanActionsResult/BigQueryExportResult.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/PostScanActionsResult/BigQueryExportResult.php deleted file mode 100644 index 375f7a696a43..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/PostScanActionsResult/BigQueryExportResult.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult.BigQueryExportResult - */ -class BigQueryExportResult extends \Google\Protobuf\Internal\Message -{ - /** - * Execution state for the BigQuery exporting. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult.BigQueryExportResult.State state = 1; - */ - protected $state = 0; - /** - * Additional information about the BigQuery exporting. - * - * Generated from protobuf field string message = 2; - */ - protected $message = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $state - * Execution state for the BigQuery exporting. - * @type string $message - * Additional information about the BigQuery exporting. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Logs::initOnce(); - parent::__construct($data); - } - - /** - * Execution state for the BigQuery exporting. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult.BigQueryExportResult.State state = 1; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Execution state for the BigQuery exporting. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult.BigQueryExportResult.State state = 1; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\DataScanEvent\PostScanActionsResult\BigQueryExportResult\State::class); - $this->state = $var; - - return $this; - } - - /** - * Additional information about the BigQuery exporting. - * - * Generated from protobuf field string message = 2; - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * Additional information about the BigQuery exporting. - * - * Generated from protobuf field string message = 2; - * @param string $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkString($var, True); - $this->message = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/PostScanActionsResult/BigQueryExportResult/State.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/PostScanActionsResult/BigQueryExportResult/State.php deleted file mode 100644 index 82ace747ff19..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/PostScanActionsResult/BigQueryExportResult/State.php +++ /dev/null @@ -1,69 +0,0 @@ -google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult.BigQueryExportResult.State - */ -class State -{ - /** - * The exporting state is unspecified. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The exporting completed successfully. - * - * Generated from protobuf enum SUCCEEDED = 1; - */ - const SUCCEEDED = 1; - /** - * The exporting is no longer running due to an error. - * - * Generated from protobuf enum FAILED = 2; - */ - const FAILED = 2; - /** - * The exporting is skipped due to no valid scan result to export - * (usually caused by scan failed). - * - * Generated from protobuf enum SKIPPED = 3; - */ - const SKIPPED = 3; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::SUCCEEDED => 'SUCCEEDED', - self::FAILED => 'FAILED', - self::SKIPPED => 'SKIPPED', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/ScanType.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/ScanType.php deleted file mode 100644 index 4748a11f5dcf..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/ScanType.php +++ /dev/null @@ -1,68 +0,0 @@ -google.cloud.dataplex.v1.DataScanEvent.ScanType - */ -class ScanType -{ - /** - * An unspecified data scan type. - * - * Generated from protobuf enum SCAN_TYPE_UNSPECIFIED = 0; - */ - const SCAN_TYPE_UNSPECIFIED = 0; - /** - * Data scan for data profile. - * - * Generated from protobuf enum DATA_PROFILE = 1; - */ - const DATA_PROFILE = 1; - /** - * Data scan for data quality. - * - * Generated from protobuf enum DATA_QUALITY = 2; - */ - const DATA_QUALITY = 2; - /** - * Data scan for data discovery. - * - * Generated from protobuf enum DATA_DISCOVERY = 4; - */ - const DATA_DISCOVERY = 4; - - private static $valueToName = [ - self::SCAN_TYPE_UNSPECIFIED => 'SCAN_TYPE_UNSPECIFIED', - self::DATA_PROFILE => 'DATA_PROFILE', - self::DATA_QUALITY => 'DATA_QUALITY', - self::DATA_DISCOVERY => 'DATA_DISCOVERY', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/Scope.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/Scope.php deleted file mode 100644 index d1e2481a7da4..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/Scope.php +++ /dev/null @@ -1,61 +0,0 @@ -google.cloud.dataplex.v1.DataScanEvent.Scope - */ -class Scope -{ - /** - * An unspecified scope type. - * - * Generated from protobuf enum SCOPE_UNSPECIFIED = 0; - */ - const SCOPE_UNSPECIFIED = 0; - /** - * Data scan runs on all of the data. - * - * Generated from protobuf enum FULL = 1; - */ - const FULL = 1; - /** - * Data scan runs on incremental data. - * - * Generated from protobuf enum INCREMENTAL = 2; - */ - const INCREMENTAL = 2; - - private static $valueToName = [ - self::SCOPE_UNSPECIFIED => 'SCOPE_UNSPECIFIED', - self::FULL => 'FULL', - self::INCREMENTAL => 'INCREMENTAL', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/State.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/State.php deleted file mode 100644 index 653c5b349bc5..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/State.php +++ /dev/null @@ -1,82 +0,0 @@ -google.cloud.dataplex.v1.DataScanEvent.State - */ -class State -{ - /** - * Unspecified job state. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * Data scan job started. - * - * Generated from protobuf enum STARTED = 1; - */ - const STARTED = 1; - /** - * Data scan job successfully completed. - * - * Generated from protobuf enum SUCCEEDED = 2; - */ - const SUCCEEDED = 2; - /** - * Data scan job was unsuccessful. - * - * Generated from protobuf enum FAILED = 3; - */ - const FAILED = 3; - /** - * Data scan job was cancelled. - * - * Generated from protobuf enum CANCELLED = 4; - */ - const CANCELLED = 4; - /** - * Data scan job was created. - * - * Generated from protobuf enum CREATED = 5; - */ - const CREATED = 5; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::STARTED => 'STARTED', - self::SUCCEEDED => 'SUCCEEDED', - self::FAILED => 'FAILED', - self::CANCELLED => 'CANCELLED', - self::CREATED => 'CREATED', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/Trigger.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/Trigger.php deleted file mode 100644 index faa77b074c99..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanEvent/Trigger.php +++ /dev/null @@ -1,68 +0,0 @@ -google.cloud.dataplex.v1.DataScanEvent.Trigger - */ -class Trigger -{ - /** - * An unspecified trigger type. - * - * Generated from protobuf enum TRIGGER_UNSPECIFIED = 0; - */ - const TRIGGER_UNSPECIFIED = 0; - /** - * Data scan triggers on demand. - * - * Generated from protobuf enum ON_DEMAND = 1; - */ - const ON_DEMAND = 1; - /** - * Data scan triggers as per schedule. - * - * Generated from protobuf enum SCHEDULE = 2; - */ - const SCHEDULE = 2; - /** - * Data scan is run one time on creation. - * - * Generated from protobuf enum ONE_TIME = 3; - */ - const ONE_TIME = 3; - - private static $valueToName = [ - self::TRIGGER_UNSPECIFIED => 'TRIGGER_UNSPECIFIED', - self::ON_DEMAND => 'ON_DEMAND', - self::SCHEDULE => 'SCHEDULE', - self::ONE_TIME => 'ONE_TIME', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanJob.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanJob.php deleted file mode 100644 index e0799f3623cf..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanJob.php +++ /dev/null @@ -1,667 +0,0 @@ -google.cloud.dataplex.v1.DataScanJob - */ -class DataScanJob extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Identifier. The relative resource name of the DataScanJob, of - * the form: - * `projects/{project}/locations/{location_id}/dataScans/{datascan_id}/jobs/{job_id}`, - * where `project` refers to a *project_id* or *project_number* and - * `location_id` refers to a Google Cloud region. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. System generated globally unique ID for the DataScanJob. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - */ - protected $uid = ''; - /** - * Output only. The time when the DataScanJob was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. A message indicating partial failure details. - * - * Generated from protobuf field string partial_failure_message = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $partial_failure_message = ''; - /** - * Output only. The time when the DataScanJob was started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $start_time = null; - /** - * Output only. The time when the DataScanJob ended. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $end_time = null; - /** - * Output only. Execution state for the DataScanJob. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScanJob.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. Additional information about the current state. - * - * Generated from protobuf field string message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $message = ''; - /** - * Output only. The type of the parent DataScan. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScanType type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $type = 0; - protected $spec; - protected $result; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Identifier. The relative resource name of the DataScanJob, of - * the form: - * `projects/{project}/locations/{location_id}/dataScans/{datascan_id}/jobs/{job_id}`, - * where `project` refers to a *project_id* or *project_number* and - * `location_id` refers to a Google Cloud region. - * @type string $uid - * Output only. System generated globally unique ID for the DataScanJob. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time when the DataScanJob was created. - * @type string $partial_failure_message - * Output only. A message indicating partial failure details. - * @type \Google\Protobuf\Timestamp $start_time - * Output only. The time when the DataScanJob was started. - * @type \Google\Protobuf\Timestamp $end_time - * Output only. The time when the DataScanJob ended. - * @type int $state - * Output only. Execution state for the DataScanJob. - * @type string $message - * Output only. Additional information about the current state. - * @type int $type - * Output only. The type of the parent DataScan. - * @type \Google\Cloud\Dataplex\V1\DataQualitySpec $data_quality_spec - * Output only. Settings for a data quality scan. - * @type \Google\Cloud\Dataplex\V1\DataProfileSpec $data_profile_spec - * Output only. Settings for a data profile scan. - * @type \Google\Cloud\Dataplex\V1\DataDiscoverySpec $data_discovery_spec - * Output only. Settings for a data discovery scan. - * @type \Google\Cloud\Dataplex\V1\DataDocumentationSpec $data_documentation_spec - * Output only. Settings for a data documentation scan. - * @type \Google\Cloud\Dataplex\V1\DataQualityResult $data_quality_result - * Output only. The result of a data quality scan. - * @type \Google\Cloud\Dataplex\V1\DataProfileResult $data_profile_result - * Output only. The result of a data profile scan. - * @type \Google\Cloud\Dataplex\V1\DataDiscoveryResult $data_discovery_result - * Output only. The result of a data discovery scan. - * @type \Google\Cloud\Dataplex\V1\DataDocumentationResult $data_documentation_result - * Output only. The result of a data documentation scan. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Datascans::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Identifier. The relative resource name of the DataScanJob, of - * the form: - * `projects/{project}/locations/{location_id}/dataScans/{datascan_id}/jobs/{job_id}`, - * where `project` refers to a *project_id* or *project_number* and - * `location_id` refers to a Google Cloud region. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Identifier. The relative resource name of the DataScanJob, of - * the form: - * `projects/{project}/locations/{location_id}/dataScans/{datascan_id}/jobs/{job_id}`, - * where `project` refers to a *project_id* or *project_number* and - * `location_id` refers to a Google Cloud region. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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. System generated globally unique ID for the DataScanJob. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. System generated globally unique ID for the DataScanJob. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Output only. The time when the DataScanJob was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.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 DataScanJob was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.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. A message indicating partial failure details. - * - * Generated from protobuf field string partial_failure_message = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getPartialFailureMessage() - { - return $this->partial_failure_message; - } - - /** - * Output only. A message indicating partial failure details. - * - * Generated from protobuf field string partial_failure_message = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setPartialFailureMessage($var) - { - GPBUtil::checkString($var, True); - $this->partial_failure_message = $var; - - return $this; - } - - /** - * Output only. The time when the DataScanJob was started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 3 [(.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 when the DataScanJob was started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 3 [(.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 when the DataScanJob ended. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 4 [(.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 when the DataScanJob ended. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 4 [(.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. Execution state for the DataScanJob. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScanJob.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. Execution state for the DataScanJob. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScanJob.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\DataScanJob\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. Additional information about the current state. - * - * Generated from protobuf field string message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * Output only. Additional information about the current state. - * - * Generated from protobuf field string message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkString($var, True); - $this->message = $var; - - return $this; - } - - /** - * Output only. The type of the parent DataScan. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScanType type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Output only. The type of the parent DataScan. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScanType type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\DataScanType::class); - $this->type = $var; - - return $this; - } - - /** - * Output only. Settings for a data quality scan. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualitySpec data_quality_spec = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataplex\V1\DataQualitySpec|null - */ - public function getDataQualitySpec() - { - return $this->readOneof(100); - } - - public function hasDataQualitySpec() - { - return $this->hasOneof(100); - } - - /** - * Output only. Settings for a data quality scan. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualitySpec data_quality_spec = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\DataQualitySpec $var - * @return $this - */ - public function setDataQualitySpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataQualitySpec::class); - $this->writeOneof(100, $var); - - return $this; - } - - /** - * Output only. Settings for a data profile scan. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileSpec data_profile_spec = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataplex\V1\DataProfileSpec|null - */ - public function getDataProfileSpec() - { - return $this->readOneof(101); - } - - public function hasDataProfileSpec() - { - return $this->hasOneof(101); - } - - /** - * Output only. Settings for a data profile scan. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileSpec data_profile_spec = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\DataProfileSpec $var - * @return $this - */ - public function setDataProfileSpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataProfileSpec::class); - $this->writeOneof(101, $var); - - return $this; - } - - /** - * Output only. Settings for a data discovery scan. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoverySpec data_discovery_spec = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataplex\V1\DataDiscoverySpec|null - */ - public function getDataDiscoverySpec() - { - return $this->readOneof(102); - } - - public function hasDataDiscoverySpec() - { - return $this->hasOneof(102); - } - - /** - * Output only. Settings for a data discovery scan. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoverySpec data_discovery_spec = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\DataDiscoverySpec $var - * @return $this - */ - public function setDataDiscoverySpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataDiscoverySpec::class); - $this->writeOneof(102, $var); - - return $this; - } - - /** - * Output only. Settings for a data documentation scan. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataDocumentationSpec data_documentation_spec = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataplex\V1\DataDocumentationSpec|null - */ - public function getDataDocumentationSpec() - { - return $this->readOneof(103); - } - - public function hasDataDocumentationSpec() - { - return $this->hasOneof(103); - } - - /** - * Output only. Settings for a data documentation scan. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataDocumentationSpec data_documentation_spec = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\DataDocumentationSpec $var - * @return $this - */ - public function setDataDocumentationSpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataDocumentationSpec::class); - $this->writeOneof(103, $var); - - return $this; - } - - /** - * Output only. The result of a data quality scan. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityResult data_quality_result = 200 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataplex\V1\DataQualityResult|null - */ - public function getDataQualityResult() - { - return $this->readOneof(200); - } - - public function hasDataQualityResult() - { - return $this->hasOneof(200); - } - - /** - * Output only. The result of a data quality scan. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataQualityResult data_quality_result = 200 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\DataQualityResult $var - * @return $this - */ - public function setDataQualityResult($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataQualityResult::class); - $this->writeOneof(200, $var); - - return $this; - } - - /** - * Output only. The result of a data profile scan. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileResult data_profile_result = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataplex\V1\DataProfileResult|null - */ - public function getDataProfileResult() - { - return $this->readOneof(201); - } - - public function hasDataProfileResult() - { - return $this->hasOneof(201); - } - - /** - * Output only. The result of a data profile scan. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataProfileResult data_profile_result = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\DataProfileResult $var - * @return $this - */ - public function setDataProfileResult($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataProfileResult::class); - $this->writeOneof(201, $var); - - return $this; - } - - /** - * Output only. The result of a data discovery scan. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoveryResult data_discovery_result = 202 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataplex\V1\DataDiscoveryResult|null - */ - public function getDataDiscoveryResult() - { - return $this->readOneof(202); - } - - public function hasDataDiscoveryResult() - { - return $this->hasOneof(202); - } - - /** - * Output only. The result of a data discovery scan. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataDiscoveryResult data_discovery_result = 202 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\DataDiscoveryResult $var - * @return $this - */ - public function setDataDiscoveryResult($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataDiscoveryResult::class); - $this->writeOneof(202, $var); - - return $this; - } - - /** - * Output only. The result of a data documentation scan. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataDocumentationResult data_documentation_result = 203 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataplex\V1\DataDocumentationResult|null - */ - public function getDataDocumentationResult() - { - return $this->readOneof(203); - } - - public function hasDataDocumentationResult() - { - return $this->hasOneof(203); - } - - /** - * Output only. The result of a data documentation scan. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataDocumentationResult data_documentation_result = 203 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\DataDocumentationResult $var - * @return $this - */ - public function setDataDocumentationResult($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataDocumentationResult::class); - $this->writeOneof(203, $var); - - return $this; - } - - /** - * @return string - */ - public function getSpec() - { - return $this->whichOneof("spec"); - } - - /** - * @return string - */ - public function getResult() - { - return $this->whichOneof("result"); - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanJob/State.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanJob/State.php deleted file mode 100644 index 5f79ddc321e2..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanJob/State.php +++ /dev/null @@ -1,96 +0,0 @@ -google.cloud.dataplex.v1.DataScanJob.State - */ -class State -{ - /** - * The DataScanJob state is unspecified. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The DataScanJob is running. - * - * Generated from protobuf enum RUNNING = 1; - */ - const RUNNING = 1; - /** - * The DataScanJob is canceling. - * - * Generated from protobuf enum CANCELING = 2; - */ - const CANCELING = 2; - /** - * The DataScanJob cancellation was successful. - * - * Generated from protobuf enum CANCELLED = 3; - */ - const CANCELLED = 3; - /** - * The DataScanJob completed successfully. - * - * Generated from protobuf enum SUCCEEDED = 4; - */ - const SUCCEEDED = 4; - /** - * The DataScanJob is no longer running due to an error. - * - * Generated from protobuf enum FAILED = 5; - */ - const FAILED = 5; - /** - * The DataScanJob has been created but not started to run yet. - * - * Generated from protobuf enum PENDING = 7; - */ - const PENDING = 7; - /** - * The DataScanJob succeeded with errors. - * - * Generated from protobuf enum SUCCEEDED_WITH_ERRORS = 8; - */ - const SUCCEEDED_WITH_ERRORS = 8; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::RUNNING => 'RUNNING', - self::CANCELING => 'CANCELING', - self::CANCELLED => 'CANCELLED', - self::SUCCEEDED => 'SUCCEEDED', - self::FAILED => 'FAILED', - self::PENDING => 'PENDING', - self::SUCCEEDED_WITH_ERRORS => 'SUCCEEDED_WITH_ERRORS', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanType.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanType.php deleted file mode 100644 index 9ae440638b10..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataScanType.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.dataplex.v1.DataScanType - */ -class DataScanType -{ - /** - * The data scan type is unspecified. - * - * Generated from protobuf enum DATA_SCAN_TYPE_UNSPECIFIED = 0; - */ - const DATA_SCAN_TYPE_UNSPECIFIED = 0; - /** - * Data quality scan. - * - * Generated from protobuf enum DATA_QUALITY = 1; - */ - const DATA_QUALITY = 1; - /** - * Data profile scan. - * - * Generated from protobuf enum DATA_PROFILE = 2; - */ - const DATA_PROFILE = 2; - /** - * Data discovery scan. - * - * Generated from protobuf enum DATA_DISCOVERY = 3; - */ - const DATA_DISCOVERY = 3; - /** - * Data documentation scan. - * - * Generated from protobuf enum DATA_DOCUMENTATION = 4; - */ - const DATA_DOCUMENTATION = 4; - - private static $valueToName = [ - self::DATA_SCAN_TYPE_UNSPECIFIED => 'DATA_SCAN_TYPE_UNSPECIFIED', - self::DATA_QUALITY => 'DATA_QUALITY', - self::DATA_PROFILE => 'DATA_PROFILE', - self::DATA_DISCOVERY => 'DATA_DISCOVERY', - self::DATA_DOCUMENTATION => 'DATA_DOCUMENTATION', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataSource.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataSource.php deleted file mode 100644 index 38e25bb9c433..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataSource.php +++ /dev/null @@ -1,150 +0,0 @@ -google.cloud.dataplex.v1.DataSource - */ -class DataSource extends \Google\Protobuf\Internal\Message -{ - protected $source; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $entity - * Immutable. The Dataplex Universal Catalog entity that represents the data - * source (e.g. BigQuery table) for DataScan, of the form: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`. - * @type string $resource - * Immutable. The service-qualified full resource name of the cloud resource - * for a DataScan job to scan against. The field could either be: Cloud - * Storage bucket for DataDiscoveryScan Format: - * //storage.googleapis.com/projects/PROJECT_ID/buckets/BUCKET_ID - * or - * BigQuery table of type "TABLE" for - * DataProfileScan/DataQualityScan/DataDocumentationScan - * Format: - * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID - * or - * BigQuery dataset for DataDocumentationScan only - * Format: - * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Processing::initOnce(); - parent::__construct($data); - } - - /** - * Immutable. The Dataplex Universal Catalog entity that represents the data - * source (e.g. BigQuery table) for DataScan, of the form: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`. - * - * Generated from protobuf field string entity = 100 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @return string - */ - public function getEntity() - { - return $this->readOneof(100); - } - - public function hasEntity() - { - return $this->hasOneof(100); - } - - /** - * Immutable. The Dataplex Universal Catalog entity that represents the data - * source (e.g. BigQuery table) for DataScan, of the form: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`. - * - * Generated from protobuf field string entity = 100 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setEntity($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(100, $var); - - return $this; - } - - /** - * Immutable. The service-qualified full resource name of the cloud resource - * for a DataScan job to scan against. The field could either be: Cloud - * Storage bucket for DataDiscoveryScan Format: - * //storage.googleapis.com/projects/PROJECT_ID/buckets/BUCKET_ID - * or - * BigQuery table of type "TABLE" for - * DataProfileScan/DataQualityScan/DataDocumentationScan - * Format: - * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID - * or - * BigQuery dataset for DataDocumentationScan only - * Format: - * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID - * - * Generated from protobuf field string resource = 101 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getResource() - { - return $this->readOneof(101); - } - - public function hasResource() - { - return $this->hasOneof(101); - } - - /** - * Immutable. The service-qualified full resource name of the cloud resource - * for a DataScan job to scan against. The field could either be: Cloud - * Storage bucket for DataDiscoveryScan Format: - * //storage.googleapis.com/projects/PROJECT_ID/buckets/BUCKET_ID - * or - * BigQuery table of type "TABLE" for - * DataProfileScan/DataQualityScan/DataDocumentationScan - * Format: - * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID - * or - * BigQuery dataset for DataDocumentationScan only - * Format: - * //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID - * - * Generated from protobuf field string resource = 101 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setResource($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(101, $var); - - return $this; - } - - /** - * @return string - */ - public function getSource() - { - return $this->whichOneof("source"); - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataTaxonomy.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataTaxonomy.php deleted file mode 100644 index ec4488a959dd..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DataTaxonomy.php +++ /dev/null @@ -1,416 +0,0 @@ -google.cloud.dataplex.v1.DataTaxonomy - */ -class DataTaxonomy extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The relative resource name of the DataTaxonomy, of the form: - * projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id}. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Output only. System generated globally unique ID for the dataTaxonomy. This - * ID will be different if the DataTaxonomy is deleted and re-created with the - * same name. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $uid = ''; - /** - * Output only. The time when the DataTaxonomy was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time when the DataTaxonomy was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Optional. Description of the DataTaxonomy. - * - * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Optional. User friendly display name. - * - * Generated from protobuf field string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $display_name = ''; - /** - * Optional. User-defined labels for the DataTaxonomy. - * - * Generated from protobuf field map labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $labels; - /** - * Output only. The number of attributes in the DataTaxonomy. - * - * Generated from protobuf field int32 attribute_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $attribute_count = 0; - /** - * This checksum is computed by the server based on the value of other - * fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 10; - */ - protected $etag = ''; - /** - * Output only. The number of classes in the DataTaxonomy. - * - * Generated from protobuf field int32 class_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $class_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. The relative resource name of the DataTaxonomy, of the form: - * projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id}. - * @type string $uid - * Output only. System generated globally unique ID for the dataTaxonomy. This - * ID will be different if the DataTaxonomy is deleted and re-created with the - * same name. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time when the DataTaxonomy was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time when the DataTaxonomy was last updated. - * @type string $description - * Optional. Description of the DataTaxonomy. - * @type string $display_name - * Optional. User friendly display name. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Optional. User-defined labels for the DataTaxonomy. - * @type int $attribute_count - * Output only. The number of attributes in the DataTaxonomy. - * @type string $etag - * This checksum is computed by the server based on the value of other - * fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * @type int $class_count - * Output only. The number of classes in the DataTaxonomy. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataTaxonomy::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The relative resource name of the DataTaxonomy, of the form: - * projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id}. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The relative resource name of the DataTaxonomy, of the form: - * projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id}. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. System generated globally unique ID for the dataTaxonomy. This - * ID will be different if the DataTaxonomy is deleted and re-created with the - * same name. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. System generated globally unique ID for the dataTaxonomy. This - * ID will be different if the DataTaxonomy is deleted and re-created with the - * same name. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Output only. The time when the DataTaxonomy was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The time when the DataTaxonomy was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The time when the DataTaxonomy was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The time when the DataTaxonomy was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Optional. Description of the DataTaxonomy. - * - * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. Description of the DataTaxonomy. - * - * 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; - } - - /** - * Optional. User friendly display name. - * - * Generated from protobuf field string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Optional. User friendly display name. - * - * Generated from protobuf field string display_name = 6 [(.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. User-defined labels for the DataTaxonomy. - * - * Generated from protobuf field map labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Optional. User-defined labels for the DataTaxonomy. - * - * Generated from protobuf field map labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Output only. The number of attributes in the DataTaxonomy. - * - * Generated from protobuf field int32 attribute_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getAttributeCount() - { - return $this->attribute_count; - } - - /** - * Output only. The number of attributes in the DataTaxonomy. - * - * Generated from protobuf field int32 attribute_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setAttributeCount($var) - { - GPBUtil::checkInt32($var); - $this->attribute_count = $var; - - return $this; - } - - /** - * This checksum is computed by the server based on the value of other - * fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 10; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * This checksum is computed by the server based on the value of other - * fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 10; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Output only. The number of classes in the DataTaxonomy. - * - * Generated from protobuf field int32 class_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getClassCount() - { - return $this->class_count; - } - - /** - * Output only. The number of classes in the DataTaxonomy. - * - * Generated from protobuf field int32 class_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setClassCount($var) - { - GPBUtil::checkInt32($var); - $this->class_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteAspectTypeRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteAspectTypeRequest.php deleted file mode 100644 index dcecc70587bc..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteAspectTypeRequest.php +++ /dev/null @@ -1,128 +0,0 @@ -google.cloud.dataplex.v1.DeleteAspectTypeRequest - */ -class DeleteAspectTypeRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the AspectType: - * `projects/{project_number}/locations/{location_id}/aspectTypes/{aspect_type_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. If the client provided etag value does not match the current etag - * value, the DeleteAspectTypeRequest method returns an ABORTED error - * response. - * - * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $etag = ''; - - /** - * @param string $name Required. The resource name of the AspectType: - * `projects/{project_number}/locations/{location_id}/aspectTypes/{aspect_type_id}`. Please see - * {@see CatalogServiceClient::aspectTypeName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\DeleteAspectTypeRequest - * - * @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 resource name of the AspectType: - * `projects/{project_number}/locations/{location_id}/aspectTypes/{aspect_type_id}`. - * @type string $etag - * Optional. If the client provided etag value does not match the current etag - * value, the DeleteAspectTypeRequest method returns an ABORTED error - * response. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the AspectType: - * `projects/{project_number}/locations/{location_id}/aspectTypes/{aspect_type_id}`. - * - * 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 resource name of the AspectType: - * `projects/{project_number}/locations/{location_id}/aspectTypes/{aspect_type_id}`. - * - * 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. If the client provided etag value does not match the current etag - * value, the DeleteAspectTypeRequest method returns an ABORTED error - * response. - * - * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Optional. If the client provided etag value does not match the current etag - * value, the DeleteAspectTypeRequest method returns an ABORTED error - * response. - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteAssetRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteAssetRequest.php deleted file mode 100644 index 1a4582298460..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteAssetRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.dataplex.v1.DeleteAssetRequest - */ -class DeleteAssetRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the asset: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the asset: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. Please see - * {@see DataplexServiceClient::assetName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\DeleteAssetRequest - * - * @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 resource name of the asset: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the asset: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. - * - * 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 resource name of the asset: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteDataAssetRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteDataAssetRequest.php deleted file mode 100644 index 0b498fdf53ad..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteDataAssetRequest.php +++ /dev/null @@ -1,175 +0,0 @@ -google.cloud.dataplex.v1.DeleteDataAssetRequest - */ -class DeleteDataAssetRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the data asset to delete. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}/dataAssets/{data_asset_id} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. The etag of the data asset. - * If this is provided, it must match the server's etag. - * If the etag is provided and does not match the server-computed etag, - * the request must fail with a ABORTED error code. - * - * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $etag = ''; - /** - * Optional. Validates the request without actually deleting the data asset. - * Defaults to false. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param string $name Required. The name of the data asset to delete. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}/dataAssets/{data_asset_id} - * Please see {@see DataProductServiceClient::dataAssetName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\DeleteDataAssetRequest - * - * @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 data asset to delete. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}/dataAssets/{data_asset_id} - * @type string $etag - * Optional. The etag of the data asset. - * If this is provided, it must match the server's etag. - * If the etag is provided and does not match the server-computed etag, - * the request must fail with a ABORTED error code. - * @type bool $validate_only - * Optional. Validates the request without actually deleting the data asset. - * Defaults to false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataProducts::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the data asset to delete. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}/dataAssets/{data_asset_id} - * - * 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 data asset to delete. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}/dataAssets/{data_asset_id} - * - * 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 etag of the data asset. - * If this is provided, it must match the server's etag. - * If the etag is provided and does not match the server-computed etag, - * the request must fail with a ABORTED error code. - * - * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Optional. The etag of the data asset. - * If this is provided, it must match the server's etag. - * If the etag is provided and does not match the server-computed etag, - * the request must fail with a ABORTED error code. - * - * 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; - } - - /** - * Optional. Validates the request without actually deleting the data asset. - * Defaults to false. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. Validates the request without actually deleting the data asset. - * Defaults to false. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteDataAttributeBindingRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteDataAttributeBindingRequest.php deleted file mode 100644 index 77ddfaaa6166..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteDataAttributeBindingRequest.php +++ /dev/null @@ -1,132 +0,0 @@ -google.cloud.dataplex.v1.DeleteDataAttributeBindingRequest - */ -class DeleteDataAttributeBindingRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the DataAttributeBinding: - * projects/{project_number}/locations/{location_id}/dataAttributeBindings/{data_attribute_binding_id} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Required. If the client provided etag value does not match the current etag - * value, the DeleteDataAttributeBindingRequest method returns an ABORTED - * error response. Etags must be used when calling the - * DeleteDataAttributeBinding. - * - * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $etag = ''; - - /** - * @param string $name Required. The resource name of the DataAttributeBinding: - * projects/{project_number}/locations/{location_id}/dataAttributeBindings/{data_attribute_binding_id} - * Please see {@see DataTaxonomyServiceClient::dataAttributeBindingName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\DeleteDataAttributeBindingRequest - * - * @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 resource name of the DataAttributeBinding: - * projects/{project_number}/locations/{location_id}/dataAttributeBindings/{data_attribute_binding_id} - * @type string $etag - * Required. If the client provided etag value does not match the current etag - * value, the DeleteDataAttributeBindingRequest method returns an ABORTED - * error response. Etags must be used when calling the - * DeleteDataAttributeBinding. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataTaxonomy::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the DataAttributeBinding: - * projects/{project_number}/locations/{location_id}/dataAttributeBindings/{data_attribute_binding_id} - * - * 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 resource name of the DataAttributeBinding: - * projects/{project_number}/locations/{location_id}/dataAttributeBindings/{data_attribute_binding_id} - * - * 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; - } - - /** - * Required. If the client provided etag value does not match the current etag - * value, the DeleteDataAttributeBindingRequest method returns an ABORTED - * error response. Etags must be used when calling the - * DeleteDataAttributeBinding. - * - * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Required. If the client provided etag value does not match the current etag - * value, the DeleteDataAttributeBindingRequest method returns an ABORTED - * error response. Etags must be used when calling the - * DeleteDataAttributeBinding. - * - * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteDataAttributeRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteDataAttributeRequest.php deleted file mode 100644 index cc9f0905dd51..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteDataAttributeRequest.php +++ /dev/null @@ -1,124 +0,0 @@ -google.cloud.dataplex.v1.DeleteDataAttributeRequest - */ -class DeleteDataAttributeRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the DataAttribute: - * projects/{project_number}/locations/{location_id}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. If the client provided etag value does not match the current etag - * value, the DeleteDataAttribute method returns an ABORTED error response. - * - * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $etag = ''; - - /** - * @param string $name Required. The resource name of the DataAttribute: - * projects/{project_number}/locations/{location_id}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id} - * Please see {@see DataTaxonomyServiceClient::dataAttributeName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\DeleteDataAttributeRequest - * - * @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 resource name of the DataAttribute: - * projects/{project_number}/locations/{location_id}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id} - * @type string $etag - * Optional. If the client provided etag value does not match the current etag - * value, the DeleteDataAttribute method returns an ABORTED error response. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataTaxonomy::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the DataAttribute: - * projects/{project_number}/locations/{location_id}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id} - * - * 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 resource name of the DataAttribute: - * projects/{project_number}/locations/{location_id}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id} - * - * 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. If the client provided etag value does not match the current etag - * value, the DeleteDataAttribute method returns an ABORTED error response. - * - * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Optional. If the client provided etag value does not match the current etag - * value, the DeleteDataAttribute method returns an ABORTED error response. - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteDataProductRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteDataProductRequest.php deleted file mode 100644 index dfa5e5a9cd0e..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteDataProductRequest.php +++ /dev/null @@ -1,175 +0,0 @@ -google.cloud.dataplex.v1.DeleteDataProductRequest - */ -class DeleteDataProductRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the data product to delete. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. The etag of the data product. - * If an etag is provided and does not match the current etag of the data - * product, then the deletion will be blocked and an ABORTED error will be - * returned. - * - * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $etag = ''; - /** - * Optional. Validates the request without actually deleting the data product. - * Default: false. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param string $name Required. The name of the data product to delete. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} - * Please see {@see DataProductServiceClient::dataProductName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\DeleteDataProductRequest - * - * @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 data product to delete. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} - * @type string $etag - * Optional. The etag of the data product. - * If an etag is provided and does not match the current etag of the data - * product, then the deletion will be blocked and an ABORTED error will be - * returned. - * @type bool $validate_only - * Optional. Validates the request without actually deleting the data product. - * Default: false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataProducts::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the data product to delete. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} - * - * 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 data product to delete. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} - * - * 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 etag of the data product. - * If an etag is provided and does not match the current etag of the data - * product, then the deletion will be blocked and an ABORTED error will be - * returned. - * - * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Optional. The etag of the data product. - * If an etag is provided and does not match the current etag of the data - * product, then the deletion will be blocked and an ABORTED error will be - * returned. - * - * 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; - } - - /** - * Optional. Validates the request without actually deleting the data product. - * Default: false. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. Validates the request without actually deleting the data product. - * Default: false. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteDataScanRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteDataScanRequest.php deleted file mode 100644 index e6ff95f263ed..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteDataScanRequest.php +++ /dev/null @@ -1,138 +0,0 @@ -google.cloud.dataplex.v1.DeleteDataScanRequest - */ -class DeleteDataScanRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the dataScan: - * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}` - * where `project` refers to a *project_id* or *project_number* and - * `location_id` refers to a Google Cloud region. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. If set to true, any child resources of this data scan will also - * be deleted. (Otherwise, the request will only work if the data scan has no - * child resources.) - * - * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $force = false; - - /** - * @param string $name Required. The resource name of the dataScan: - * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}` - * where `project` refers to a *project_id* or *project_number* and - * `location_id` refers to a Google Cloud region. Please see - * {@see DataScanServiceClient::dataScanName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\DeleteDataScanRequest - * - * @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 resource name of the dataScan: - * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}` - * where `project` refers to a *project_id* or *project_number* and - * `location_id` refers to a Google Cloud region. - * @type bool $force - * Optional. If set to true, any child resources of this data scan will also - * be deleted. (Otherwise, the request will only work if the data scan has no - * child resources.) - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Datascans::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the dataScan: - * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}` - * where `project` refers to a *project_id* or *project_number* and - * `location_id` refers to a Google Cloud region. - * - * 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 resource name of the dataScan: - * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}` - * where `project` refers to a *project_id* or *project_number* and - * `location_id` refers to a Google Cloud region. - * - * 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. If set to true, any child resources of this data scan will also - * be deleted. (Otherwise, the request will only work if the data scan has no - * child resources.) - * - * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getForce() - { - return $this->force; - } - - /** - * Optional. If set to true, any child resources of this data scan will also - * be deleted. (Otherwise, the request will only work if the data scan has no - * child resources.) - * - * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setForce($var) - { - GPBUtil::checkBool($var); - $this->force = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteDataTaxonomyRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteDataTaxonomyRequest.php deleted file mode 100644 index 9c890f303bb7..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteDataTaxonomyRequest.php +++ /dev/null @@ -1,125 +0,0 @@ -google.cloud.dataplex.v1.DeleteDataTaxonomyRequest - */ -class DeleteDataTaxonomyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the DataTaxonomy: - * projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. If the client provided etag value does not match the current etag - * value,the DeleteDataTaxonomy method returns an ABORTED error. - * - * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $etag = ''; - - /** - * @param string $name Required. The resource name of the DataTaxonomy: - * projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id} - * Please see {@see DataTaxonomyServiceClient::dataTaxonomyName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\DeleteDataTaxonomyRequest - * - * @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 resource name of the DataTaxonomy: - * projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id} - * @type string $etag - * Optional. If the client provided etag value does not match the current etag - * value,the DeleteDataTaxonomy method returns an ABORTED error. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataTaxonomy::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the DataTaxonomy: - * projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id} - * - * 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 resource name of the DataTaxonomy: - * projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id} - * - * 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. If the client provided etag value does not match the current etag - * value,the DeleteDataTaxonomy method returns an ABORTED error. - * - * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Optional. If the client provided etag value does not match the current etag - * value,the DeleteDataTaxonomy method returns an ABORTED error. - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteEncryptionConfigRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteEncryptionConfigRequest.php deleted file mode 100644 index 8fc10b83881f..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteEncryptionConfigRequest.php +++ /dev/null @@ -1,115 +0,0 @@ -google.cloud.dataplex.v1.DeleteEncryptionConfigRequest - */ -class DeleteEncryptionConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the EncryptionConfig to delete. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. Etag of the EncryptionConfig. This is a strong etag. - * - * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $etag = ''; - - /** - * @param string $name Required. The name of the EncryptionConfig to delete. Please see - * {@see CmekServiceClient::encryptionConfigName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\DeleteEncryptionConfigRequest - * - * @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 EncryptionConfig to delete. - * @type string $etag - * Optional. Etag of the EncryptionConfig. This is a strong etag. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Cmek::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the EncryptionConfig to delete. - * - * 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 EncryptionConfig to delete. - * - * 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. Etag of the EncryptionConfig. This is a strong etag. - * - * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Optional. Etag of the EncryptionConfig. This is a strong etag. - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteEntityRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteEntityRequest.php deleted file mode 100644 index 0985b1b90c6e..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteEntityRequest.php +++ /dev/null @@ -1,124 +0,0 @@ -google.cloud.dataplex.v1.DeleteEntityRequest - */ -class DeleteEntityRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the entity: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Required. The etag associated with the entity, which can be retrieved with - * a [GetEntity][] request. - * - * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $etag = ''; - - /** - * @param string $name Required. The resource name of the entity: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`. Please see - * {@see MetadataServiceClient::entityName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\DeleteEntityRequest - * - * @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 resource name of the entity: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`. - * @type string $etag - * Required. The etag associated with the entity, which can be retrieved with - * a [GetEntity][] request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Metadata::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the entity: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`. - * - * 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 resource name of the entity: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`. - * - * 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; - } - - /** - * Required. The etag associated with the entity, which can be retrieved with - * a [GetEntity][] request. - * - * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Required. The etag associated with the entity, which can be retrieved with - * a [GetEntity][] request. - * - * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteEntryGroupRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteEntryGroupRequest.php deleted file mode 100644 index e45a2380e094..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteEntryGroupRequest.php +++ /dev/null @@ -1,128 +0,0 @@ -google.cloud.dataplex.v1.DeleteEntryGroupRequest - */ -class DeleteEntryGroupRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the EntryGroup: - * `projects/{project_number}/locations/{location_id}/entryGroups/{entry_group_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. If the client provided etag value does not match the current etag - * value, the DeleteEntryGroupRequest method returns an ABORTED error - * response. - * - * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $etag = ''; - - /** - * @param string $name Required. The resource name of the EntryGroup: - * `projects/{project_number}/locations/{location_id}/entryGroups/{entry_group_id}`. Please see - * {@see CatalogServiceClient::entryGroupName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\DeleteEntryGroupRequest - * - * @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 resource name of the EntryGroup: - * `projects/{project_number}/locations/{location_id}/entryGroups/{entry_group_id}`. - * @type string $etag - * Optional. If the client provided etag value does not match the current etag - * value, the DeleteEntryGroupRequest method returns an ABORTED error - * response. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the EntryGroup: - * `projects/{project_number}/locations/{location_id}/entryGroups/{entry_group_id}`. - * - * 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 resource name of the EntryGroup: - * `projects/{project_number}/locations/{location_id}/entryGroups/{entry_group_id}`. - * - * 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. If the client provided etag value does not match the current etag - * value, the DeleteEntryGroupRequest method returns an ABORTED error - * response. - * - * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Optional. If the client provided etag value does not match the current etag - * value, the DeleteEntryGroupRequest method returns an ABORTED error - * response. - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteEntryLinkRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteEntryLinkRequest.php deleted file mode 100644 index a7a1ef512896..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteEntryLinkRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.dataplex.v1.DeleteEntryLinkRequest - */ -class DeleteEntryLinkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the Entry Link: - * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entryLinks/{entry_link_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the Entry Link: - * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entryLinks/{entry_link_id}`. Please see - * {@see CatalogServiceClient::entryLinkName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\DeleteEntryLinkRequest - * - * @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 resource name of the Entry Link: - * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entryLinks/{entry_link_id}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the Entry Link: - * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entryLinks/{entry_link_id}`. - * - * 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 resource name of the Entry Link: - * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entryLinks/{entry_link_id}`. - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteEntryRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteEntryRequest.php deleted file mode 100644 index 84df38f380db..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteEntryRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.dataplex.v1.DeleteEntryRequest - */ -class DeleteEntryRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the Entry: - * `projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the Entry: - * `projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}`. Please see - * {@see CatalogServiceClient::entryName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\DeleteEntryRequest - * - * @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 resource name of the Entry: - * `projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the Entry: - * `projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}`. - * - * 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 resource name of the Entry: - * `projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}`. - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteEntryTypeRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteEntryTypeRequest.php deleted file mode 100644 index 4498ad877b24..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteEntryTypeRequest.php +++ /dev/null @@ -1,124 +0,0 @@ -google.cloud.dataplex.v1.DeleteEntryTypeRequest - */ -class DeleteEntryTypeRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the EntryType: - * `projects/{project_number}/locations/{location_id}/entryTypes/{entry_type_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. If the client provided etag value does not match the current etag - * value, the DeleteEntryTypeRequest method returns an ABORTED error response. - * - * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $etag = ''; - - /** - * @param string $name Required. The resource name of the EntryType: - * `projects/{project_number}/locations/{location_id}/entryTypes/{entry_type_id}`. Please see - * {@see CatalogServiceClient::entryTypeName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\DeleteEntryTypeRequest - * - * @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 resource name of the EntryType: - * `projects/{project_number}/locations/{location_id}/entryTypes/{entry_type_id}`. - * @type string $etag - * Optional. If the client provided etag value does not match the current etag - * value, the DeleteEntryTypeRequest method returns an ABORTED error response. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the EntryType: - * `projects/{project_number}/locations/{location_id}/entryTypes/{entry_type_id}`. - * - * 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 resource name of the EntryType: - * `projects/{project_number}/locations/{location_id}/entryTypes/{entry_type_id}`. - * - * 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. If the client provided etag value does not match the current etag - * value, the DeleteEntryTypeRequest method returns an ABORTED error response. - * - * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Optional. If the client provided etag value does not match the current etag - * value, the DeleteEntryTypeRequest method returns an ABORTED error response. - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteGlossaryCategoryRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteGlossaryCategoryRequest.php deleted file mode 100644 index 2ba5196cb90b..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteGlossaryCategoryRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.dataplex.v1.DeleteGlossaryCategoryRequest - */ -class DeleteGlossaryCategoryRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the GlossaryCategory to delete. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id} - * - * 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 GlossaryCategory to delete. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id} - * Please see {@see BusinessGlossaryServiceClient::glossaryCategoryName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\DeleteGlossaryCategoryRequest - * - * @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 GlossaryCategory to delete. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\BusinessGlossary::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the GlossaryCategory to delete. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id} - * - * 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 GlossaryCategory to delete. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id} - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteGlossaryRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteGlossaryRequest.php deleted file mode 100644 index 57239e24f900..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteGlossaryRequest.php +++ /dev/null @@ -1,137 +0,0 @@ -google.cloud.dataplex.v1.DeleteGlossaryRequest - */ -class DeleteGlossaryRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the Glossary to delete. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. The etag of the Glossary. - * If this is provided, it must match the server's etag. - * If the etag is provided and does not match the server-computed etag, - * the request must fail with a ABORTED error code. - * - * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $etag = ''; - - /** - * @param string $name Required. The name of the Glossary to delete. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} - * Please see {@see BusinessGlossaryServiceClient::glossaryName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\DeleteGlossaryRequest - * - * @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 Glossary to delete. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} - * @type string $etag - * Optional. The etag of the Glossary. - * If this is provided, it must match the server's etag. - * If the etag is provided and does not match the server-computed etag, - * the request must fail with a ABORTED error code. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\BusinessGlossary::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the Glossary to delete. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} - * - * 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 Glossary to delete. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} - * - * 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 etag of the Glossary. - * If this is provided, it must match the server's etag. - * If the etag is provided and does not match the server-computed etag, - * the request must fail with a ABORTED error code. - * - * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Optional. The etag of the Glossary. - * If this is provided, it must match the server's etag. - * If the etag is provided and does not match the server-computed etag, - * the request must fail with a ABORTED error code. - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteGlossaryTermRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteGlossaryTermRequest.php deleted file mode 100644 index ca20386fe848..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteGlossaryTermRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.dataplex.v1.DeleteGlossaryTermRequest - */ -class DeleteGlossaryTermRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the GlossaryTerm to delete. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/terms/{term_id} - * - * 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 GlossaryTerm to delete. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/terms/{term_id} - * Please see {@see BusinessGlossaryServiceClient::glossaryTermName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\DeleteGlossaryTermRequest - * - * @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 GlossaryTerm to delete. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/terms/{term_id} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\BusinessGlossary::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the GlossaryTerm to delete. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/terms/{term_id} - * - * 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 GlossaryTerm to delete. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/terms/{term_id} - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteLakeRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteLakeRequest.php deleted file mode 100644 index e916132725cc..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteLakeRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.dataplex.v1.DeleteLakeRequest - */ -class DeleteLakeRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the lake: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the lake: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. Please see - * {@see DataplexServiceClient::lakeName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\DeleteLakeRequest - * - * @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 resource name of the lake: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the lake: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. - * - * 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 resource name of the lake: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteMetadataFeedRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteMetadataFeedRequest.php deleted file mode 100644 index 0ffed2b7b5c5..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteMetadataFeedRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.dataplex.v1.DeleteMetadataFeedRequest - */ -class DeleteMetadataFeedRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the metadata feed, in the format - * `projects/{project_id_or_number}/locations/{location_id}/MetadataFeeds/{metadata_feed_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the metadata feed, in the format - * `projects/{project_id_or_number}/locations/{location_id}/MetadataFeeds/{metadata_feed_id}`. Please see - * {@see CatalogServiceClient::metadataFeedName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\DeleteMetadataFeedRequest - * - * @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 resource name of the metadata feed, in the format - * `projects/{project_id_or_number}/locations/{location_id}/MetadataFeeds/{metadata_feed_id}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the metadata feed, in the format - * `projects/{project_id_or_number}/locations/{location_id}/MetadataFeeds/{metadata_feed_id}`. - * - * 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 resource name of the metadata feed, in the format - * `projects/{project_id_or_number}/locations/{location_id}/MetadataFeeds/{metadata_feed_id}`. - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeletePartitionRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeletePartitionRequest.php deleted file mode 100644 index c809a750bb9d..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeletePartitionRequest.php +++ /dev/null @@ -1,142 +0,0 @@ -google.cloud.dataplex.v1.DeletePartitionRequest - */ -class DeletePartitionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the partition. - * format: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}/partitions/{partition_value_path}`. - * The {partition_value_path} segment consists of an ordered sequence of - * partition values separated by "/". All values must be provided. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. The etag associated with the partition. - * - * Generated from protobuf field string etag = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @deprecated - */ - protected $etag = ''; - - /** - * @param string $name Required. The resource name of the partition. - * format: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}/partitions/{partition_value_path}`. - * The {partition_value_path} segment consists of an ordered sequence of - * partition values separated by "/". All values must be provided. Please see - * {@see MetadataServiceClient::partitionName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\DeletePartitionRequest - * - * @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 resource name of the partition. - * format: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}/partitions/{partition_value_path}`. - * The {partition_value_path} segment consists of an ordered sequence of - * partition values separated by "/". All values must be provided. - * @type string $etag - * Optional. The etag associated with the partition. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Metadata::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the partition. - * format: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}/partitions/{partition_value_path}`. - * The {partition_value_path} segment consists of an ordered sequence of - * partition values separated by "/". All values must be provided. - * - * 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 resource name of the partition. - * format: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}/partitions/{partition_value_path}`. - * The {partition_value_path} segment consists of an ordered sequence of - * partition values separated by "/". All values must be provided. - * - * 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 etag associated with the partition. - * - * Generated from protobuf field string etag = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @return string - * @deprecated - */ - public function getEtag() - { - if ($this->etag !== '') { - @trigger_error('etag is deprecated.', E_USER_DEPRECATED); - } - return $this->etag; - } - - /** - * Optional. The etag associated with the partition. - * - * Generated from protobuf field string etag = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - * @deprecated - */ - public function setEtag($var) - { - @trigger_error('etag is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteTaskRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteTaskRequest.php deleted file mode 100644 index d06ee8e31c0b..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteTaskRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.dataplex.v1.DeleteTaskRequest - */ -class DeleteTaskRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the task: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/task/{task_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the task: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/task/{task_id}`. Please see - * {@see DataplexServiceClient::taskName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\DeleteTaskRequest - * - * @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 resource name of the task: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/task/{task_id}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the task: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/task/{task_id}`. - * - * 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 resource name of the task: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/task/{task_id}`. - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteZoneRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteZoneRequest.php deleted file mode 100644 index 6a3a444a74bb..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DeleteZoneRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.dataplex.v1.DeleteZoneRequest - */ -class DeleteZoneRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the zone: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the zone: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. Please see - * {@see DataplexServiceClient::zoneName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\DeleteZoneRequest - * - * @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 resource name of the zone: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the zone: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. - * - * 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 resource name of the zone: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent.php deleted file mode 100644 index 1a6f25ededa0..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent.php +++ /dev/null @@ -1,445 +0,0 @@ -google.cloud.dataplex.v1.DiscoveryEvent - */ -class DiscoveryEvent extends \Google\Protobuf\Internal\Message -{ - /** - * The log message. - * - * Generated from protobuf field string message = 1; - */ - protected $message = ''; - /** - * The id of the associated lake. - * - * Generated from protobuf field string lake_id = 2; - */ - protected $lake_id = ''; - /** - * The id of the associated zone. - * - * Generated from protobuf field string zone_id = 3; - */ - protected $zone_id = ''; - /** - * The id of the associated asset. - * - * Generated from protobuf field string asset_id = 4; - */ - protected $asset_id = ''; - /** - * The data location associated with the event. - * - * Generated from protobuf field string data_location = 5; - */ - protected $data_location = ''; - /** - * The id of the associated datascan for standalone discovery. - * - * Generated from protobuf field string datascan_id = 6; - */ - protected $datascan_id = ''; - /** - * The type of the event being logged. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DiscoveryEvent.EventType type = 10; - */ - protected $type = 0; - protected $details; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $message - * The log message. - * @type string $lake_id - * The id of the associated lake. - * @type string $zone_id - * The id of the associated zone. - * @type string $asset_id - * The id of the associated asset. - * @type string $data_location - * The data location associated with the event. - * @type string $datascan_id - * The id of the associated datascan for standalone discovery. - * @type int $type - * The type of the event being logged. - * @type \Google\Cloud\Dataplex\V1\DiscoveryEvent\ConfigDetails $config - * Details about discovery configuration in effect. - * @type \Google\Cloud\Dataplex\V1\DiscoveryEvent\EntityDetails $entity - * Details about the entity associated with the event. - * @type \Google\Cloud\Dataplex\V1\DiscoveryEvent\PartitionDetails $partition - * Details about the partition associated with the event. - * @type \Google\Cloud\Dataplex\V1\DiscoveryEvent\ActionDetails $action - * Details about the action associated with the event. - * @type \Google\Cloud\Dataplex\V1\DiscoveryEvent\TableDetails $table - * Details about the BigQuery table publishing associated with the event. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Logs::initOnce(); - parent::__construct($data); - } - - /** - * The log message. - * - * Generated from protobuf field string message = 1; - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * The log message. - * - * Generated from protobuf field string message = 1; - * @param string $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkString($var, True); - $this->message = $var; - - return $this; - } - - /** - * The id of the associated lake. - * - * Generated from protobuf field string lake_id = 2; - * @return string - */ - public function getLakeId() - { - return $this->lake_id; - } - - /** - * The id of the associated lake. - * - * Generated from protobuf field string lake_id = 2; - * @param string $var - * @return $this - */ - public function setLakeId($var) - { - GPBUtil::checkString($var, True); - $this->lake_id = $var; - - return $this; - } - - /** - * The id of the associated zone. - * - * Generated from protobuf field string zone_id = 3; - * @return string - */ - public function getZoneId() - { - return $this->zone_id; - } - - /** - * The id of the associated zone. - * - * Generated from protobuf field string zone_id = 3; - * @param string $var - * @return $this - */ - public function setZoneId($var) - { - GPBUtil::checkString($var, True); - $this->zone_id = $var; - - return $this; - } - - /** - * The id of the associated asset. - * - * Generated from protobuf field string asset_id = 4; - * @return string - */ - public function getAssetId() - { - return $this->asset_id; - } - - /** - * The id of the associated asset. - * - * Generated from protobuf field string asset_id = 4; - * @param string $var - * @return $this - */ - public function setAssetId($var) - { - GPBUtil::checkString($var, True); - $this->asset_id = $var; - - return $this; - } - - /** - * The data location associated with the event. - * - * Generated from protobuf field string data_location = 5; - * @return string - */ - public function getDataLocation() - { - return $this->data_location; - } - - /** - * The data location associated with the event. - * - * Generated from protobuf field string data_location = 5; - * @param string $var - * @return $this - */ - public function setDataLocation($var) - { - GPBUtil::checkString($var, True); - $this->data_location = $var; - - return $this; - } - - /** - * The id of the associated datascan for standalone discovery. - * - * Generated from protobuf field string datascan_id = 6; - * @return string - */ - public function getDatascanId() - { - return $this->datascan_id; - } - - /** - * The id of the associated datascan for standalone discovery. - * - * Generated from protobuf field string datascan_id = 6; - * @param string $var - * @return $this - */ - public function setDatascanId($var) - { - GPBUtil::checkString($var, True); - $this->datascan_id = $var; - - return $this; - } - - /** - * The type of the event being logged. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DiscoveryEvent.EventType type = 10; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * The type of the event being logged. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DiscoveryEvent.EventType type = 10; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\DiscoveryEvent\EventType::class); - $this->type = $var; - - return $this; - } - - /** - * Details about discovery configuration in effect. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails config = 20; - * @return \Google\Cloud\Dataplex\V1\DiscoveryEvent\ConfigDetails|null - */ - public function getConfig() - { - return $this->readOneof(20); - } - - public function hasConfig() - { - return $this->hasOneof(20); - } - - /** - * Details about discovery configuration in effect. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails config = 20; - * @param \Google\Cloud\Dataplex\V1\DiscoveryEvent\ConfigDetails $var - * @return $this - */ - public function setConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DiscoveryEvent\ConfigDetails::class); - $this->writeOneof(20, $var); - - return $this; - } - - /** - * Details about the entity associated with the event. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails entity = 21; - * @return \Google\Cloud\Dataplex\V1\DiscoveryEvent\EntityDetails|null - */ - public function getEntity() - { - return $this->readOneof(21); - } - - public function hasEntity() - { - return $this->hasOneof(21); - } - - /** - * Details about the entity associated with the event. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails entity = 21; - * @param \Google\Cloud\Dataplex\V1\DiscoveryEvent\EntityDetails $var - * @return $this - */ - public function setEntity($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DiscoveryEvent\EntityDetails::class); - $this->writeOneof(21, $var); - - return $this; - } - - /** - * Details about the partition associated with the event. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails partition = 22; - * @return \Google\Cloud\Dataplex\V1\DiscoveryEvent\PartitionDetails|null - */ - public function getPartition() - { - return $this->readOneof(22); - } - - public function hasPartition() - { - return $this->hasOneof(22); - } - - /** - * Details about the partition associated with the event. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails partition = 22; - * @param \Google\Cloud\Dataplex\V1\DiscoveryEvent\PartitionDetails $var - * @return $this - */ - public function setPartition($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DiscoveryEvent\PartitionDetails::class); - $this->writeOneof(22, $var); - - return $this; - } - - /** - * Details about the action associated with the event. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails action = 23; - * @return \Google\Cloud\Dataplex\V1\DiscoveryEvent\ActionDetails|null - */ - public function getAction() - { - return $this->readOneof(23); - } - - public function hasAction() - { - return $this->hasOneof(23); - } - - /** - * Details about the action associated with the event. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails action = 23; - * @param \Google\Cloud\Dataplex\V1\DiscoveryEvent\ActionDetails $var - * @return $this - */ - public function setAction($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DiscoveryEvent\ActionDetails::class); - $this->writeOneof(23, $var); - - return $this; - } - - /** - * Details about the BigQuery table publishing associated with the event. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DiscoveryEvent.TableDetails table = 24; - * @return \Google\Cloud\Dataplex\V1\DiscoveryEvent\TableDetails|null - */ - public function getTable() - { - return $this->readOneof(24); - } - - public function hasTable() - { - return $this->hasOneof(24); - } - - /** - * Details about the BigQuery table publishing associated with the event. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DiscoveryEvent.TableDetails table = 24; - * @param \Google\Cloud\Dataplex\V1\DiscoveryEvent\TableDetails $var - * @return $this - */ - public function setTable($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DiscoveryEvent\TableDetails::class); - $this->writeOneof(24, $var); - - return $this; - } - - /** - * @return string - */ - public function getDetails() - { - return $this->whichOneof("details"); - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/ActionDetails.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/ActionDetails.php deleted file mode 100644 index e76f31845228..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/ActionDetails.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails - */ -class ActionDetails extends \Google\Protobuf\Internal\Message -{ - /** - * The type of action. - * Eg. IncompatibleDataSchema, InvalidDataFormat - * - * Generated from protobuf field string type = 1; - */ - protected $type = ''; - /** - * The human readable issue associated with the action. - * - * Generated from protobuf field string issue = 2; - */ - protected $issue = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $type - * The type of action. - * Eg. IncompatibleDataSchema, InvalidDataFormat - * @type string $issue - * The human readable issue associated with the action. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Logs::initOnce(); - parent::__construct($data); - } - - /** - * The type of action. - * Eg. IncompatibleDataSchema, InvalidDataFormat - * - * Generated from protobuf field string type = 1; - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * The type of action. - * Eg. IncompatibleDataSchema, InvalidDataFormat - * - * Generated from protobuf field string type = 1; - * @param string $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkString($var, True); - $this->type = $var; - - return $this; - } - - /** - * The human readable issue associated with the action. - * - * Generated from protobuf field string issue = 2; - * @return string - */ - public function getIssue() - { - return $this->issue; - } - - /** - * The human readable issue associated with the action. - * - * Generated from protobuf field string issue = 2; - * @param string $var - * @return $this - */ - public function setIssue($var) - { - GPBUtil::checkString($var, True); - $this->issue = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/ConfigDetails.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/ConfigDetails.php deleted file mode 100644 index 08162707f962..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/ConfigDetails.php +++ /dev/null @@ -1,79 +0,0 @@ -google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails - */ -class ConfigDetails extends \Google\Protobuf\Internal\Message -{ - /** - * A list of discovery configuration parameters in effect. - * The keys are the field paths within DiscoverySpec. - * Eg. includePatterns, excludePatterns, csvOptions.disableTypeInference, - * etc. - * - * Generated from protobuf field map parameters = 1; - */ - private $parameters; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\MapField $parameters - * A list of discovery configuration parameters in effect. - * The keys are the field paths within DiscoverySpec. - * Eg. includePatterns, excludePatterns, csvOptions.disableTypeInference, - * etc. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Logs::initOnce(); - parent::__construct($data); - } - - /** - * A list of discovery configuration parameters in effect. - * The keys are the field paths within DiscoverySpec. - * Eg. includePatterns, excludePatterns, csvOptions.disableTypeInference, - * etc. - * - * Generated from protobuf field map parameters = 1; - * @return \Google\Protobuf\Internal\MapField - */ - public function getParameters() - { - return $this->parameters; - } - - /** - * A list of discovery configuration parameters in effect. - * The keys are the field paths within DiscoverySpec. - * Eg. includePatterns, excludePatterns, csvOptions.disableTypeInference, - * etc. - * - * Generated from protobuf field map parameters = 1; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setParameters($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->parameters = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/EntityDetails.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/EntityDetails.php deleted file mode 100644 index d9ef2d1b0b93..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/EntityDetails.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails - */ -class EntityDetails extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the entity resource. - * The name is the fully-qualified resource name. - * - * Generated from protobuf field string entity = 1; - */ - protected $entity = ''; - /** - * The type of the entity resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DiscoveryEvent.EntityType type = 2; - */ - protected $type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $entity - * The name of the entity resource. - * The name is the fully-qualified resource name. - * @type int $type - * The type of the entity resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Logs::initOnce(); - parent::__construct($data); - } - - /** - * The name of the entity resource. - * The name is the fully-qualified resource name. - * - * Generated from protobuf field string entity = 1; - * @return string - */ - public function getEntity() - { - return $this->entity; - } - - /** - * The name of the entity resource. - * The name is the fully-qualified resource name. - * - * Generated from protobuf field string entity = 1; - * @param string $var - * @return $this - */ - public function setEntity($var) - { - GPBUtil::checkString($var, True); - $this->entity = $var; - - return $this; - } - - /** - * The type of the entity resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DiscoveryEvent.EntityType type = 2; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * The type of the entity resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DiscoveryEvent.EntityType type = 2; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\DiscoveryEvent\EntityType::class); - $this->type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/EntityType.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/EntityType.php deleted file mode 100644 index 5e25b56d0361..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/EntityType.php +++ /dev/null @@ -1,61 +0,0 @@ -google.cloud.dataplex.v1.DiscoveryEvent.EntityType - */ -class EntityType -{ - /** - * An unspecified event type. - * - * Generated from protobuf enum ENTITY_TYPE_UNSPECIFIED = 0; - */ - const ENTITY_TYPE_UNSPECIFIED = 0; - /** - * Entities representing structured data. - * - * Generated from protobuf enum TABLE = 1; - */ - const TABLE = 1; - /** - * Entities representing unstructured data. - * - * Generated from protobuf enum FILESET = 2; - */ - const FILESET = 2; - - private static $valueToName = [ - self::ENTITY_TYPE_UNSPECIFIED => 'ENTITY_TYPE_UNSPECIFIED', - self::TABLE => 'TABLE', - self::FILESET => 'FILESET', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/EventType.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/EventType.php deleted file mode 100644 index c12eeaed685f..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/EventType.php +++ /dev/null @@ -1,124 +0,0 @@ -google.cloud.dataplex.v1.DiscoveryEvent.EventType - */ -class EventType -{ - /** - * An unspecified event type. - * - * Generated from protobuf enum EVENT_TYPE_UNSPECIFIED = 0; - */ - const EVENT_TYPE_UNSPECIFIED = 0; - /** - * An event representing discovery configuration in effect. - * - * Generated from protobuf enum CONFIG = 1; - */ - const CONFIG = 1; - /** - * An event representing a metadata entity being created. - * - * Generated from protobuf enum ENTITY_CREATED = 2; - */ - const ENTITY_CREATED = 2; - /** - * An event representing a metadata entity being updated. - * - * Generated from protobuf enum ENTITY_UPDATED = 3; - */ - const ENTITY_UPDATED = 3; - /** - * An event representing a metadata entity being deleted. - * - * Generated from protobuf enum ENTITY_DELETED = 4; - */ - const ENTITY_DELETED = 4; - /** - * An event representing a partition being created. - * - * Generated from protobuf enum PARTITION_CREATED = 5; - */ - const PARTITION_CREATED = 5; - /** - * An event representing a partition being updated. - * - * Generated from protobuf enum PARTITION_UPDATED = 6; - */ - const PARTITION_UPDATED = 6; - /** - * An event representing a partition being deleted. - * - * Generated from protobuf enum PARTITION_DELETED = 7; - */ - const PARTITION_DELETED = 7; - /** - * An event representing a table being published. - * - * Generated from protobuf enum TABLE_PUBLISHED = 10; - */ - const TABLE_PUBLISHED = 10; - /** - * An event representing a table being updated. - * - * Generated from protobuf enum TABLE_UPDATED = 11; - */ - const TABLE_UPDATED = 11; - /** - * An event representing a table being skipped in publishing. - * - * Generated from protobuf enum TABLE_IGNORED = 12; - */ - const TABLE_IGNORED = 12; - /** - * An event representing a table being deleted. - * - * Generated from protobuf enum TABLE_DELETED = 13; - */ - const TABLE_DELETED = 13; - - private static $valueToName = [ - self::EVENT_TYPE_UNSPECIFIED => 'EVENT_TYPE_UNSPECIFIED', - self::CONFIG => 'CONFIG', - self::ENTITY_CREATED => 'ENTITY_CREATED', - self::ENTITY_UPDATED => 'ENTITY_UPDATED', - self::ENTITY_DELETED => 'ENTITY_DELETED', - self::PARTITION_CREATED => 'PARTITION_CREATED', - self::PARTITION_UPDATED => 'PARTITION_UPDATED', - self::PARTITION_DELETED => 'PARTITION_DELETED', - self::TABLE_PUBLISHED => 'TABLE_PUBLISHED', - self::TABLE_UPDATED => 'TABLE_UPDATED', - self::TABLE_IGNORED => 'TABLE_IGNORED', - self::TABLE_DELETED => 'TABLE_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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/PartitionDetails.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/PartitionDetails.php deleted file mode 100644 index cc178f56d9f1..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/PartitionDetails.php +++ /dev/null @@ -1,181 +0,0 @@ -google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails - */ -class PartitionDetails extends \Google\Protobuf\Internal\Message -{ - /** - * The name to the partition resource. - * The name is the fully-qualified resource name. - * - * Generated from protobuf field string partition = 1; - */ - protected $partition = ''; - /** - * The name to the containing entity resource. - * The name is the fully-qualified resource name. - * - * Generated from protobuf field string entity = 2; - */ - protected $entity = ''; - /** - * The type of the containing entity resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DiscoveryEvent.EntityType type = 3; - */ - protected $type = 0; - /** - * The locations of the data items (e.g., a Cloud Storage objects) sampled - * for metadata inference. - * - * Generated from protobuf field repeated string sampled_data_locations = 4; - */ - private $sampled_data_locations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $partition - * The name to the partition resource. - * The name is the fully-qualified resource name. - * @type string $entity - * The name to the containing entity resource. - * The name is the fully-qualified resource name. - * @type int $type - * The type of the containing entity resource. - * @type string[] $sampled_data_locations - * The locations of the data items (e.g., a Cloud Storage objects) sampled - * for metadata inference. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Logs::initOnce(); - parent::__construct($data); - } - - /** - * The name to the partition resource. - * The name is the fully-qualified resource name. - * - * Generated from protobuf field string partition = 1; - * @return string - */ - public function getPartition() - { - return $this->partition; - } - - /** - * The name to the partition resource. - * The name is the fully-qualified resource name. - * - * Generated from protobuf field string partition = 1; - * @param string $var - * @return $this - */ - public function setPartition($var) - { - GPBUtil::checkString($var, True); - $this->partition = $var; - - return $this; - } - - /** - * The name to the containing entity resource. - * The name is the fully-qualified resource name. - * - * Generated from protobuf field string entity = 2; - * @return string - */ - public function getEntity() - { - return $this->entity; - } - - /** - * The name to the containing entity resource. - * The name is the fully-qualified resource name. - * - * Generated from protobuf field string entity = 2; - * @param string $var - * @return $this - */ - public function setEntity($var) - { - GPBUtil::checkString($var, True); - $this->entity = $var; - - return $this; - } - - /** - * The type of the containing entity resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DiscoveryEvent.EntityType type = 3; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * The type of the containing entity resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DiscoveryEvent.EntityType type = 3; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\DiscoveryEvent\EntityType::class); - $this->type = $var; - - return $this; - } - - /** - * The locations of the data items (e.g., a Cloud Storage objects) sampled - * for metadata inference. - * - * Generated from protobuf field repeated string sampled_data_locations = 4; - * @return RepeatedField - */ - public function getSampledDataLocations() - { - return $this->sampled_data_locations; - } - - /** - * The locations of the data items (e.g., a Cloud Storage objects) sampled - * for metadata inference. - * - * Generated from protobuf field repeated string sampled_data_locations = 4; - * @param string[] $var - * @return $this - */ - public function setSampledDataLocations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->sampled_data_locations = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/TableDetails.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/TableDetails.php deleted file mode 100644 index 5373d89ed802..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/TableDetails.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.dataplex.v1.DiscoveryEvent.TableDetails - */ -class TableDetails extends \Google\Protobuf\Internal\Message -{ - /** - * The fully-qualified resource name of the table resource. - * - * Generated from protobuf field string table = 1; - */ - protected $table = ''; - /** - * The type of the table resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DiscoveryEvent.TableType type = 2; - */ - protected $type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $table - * The fully-qualified resource name of the table resource. - * @type int $type - * The type of the table resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Logs::initOnce(); - parent::__construct($data); - } - - /** - * The fully-qualified resource name of the table resource. - * - * Generated from protobuf field string table = 1; - * @return string - */ - public function getTable() - { - return $this->table; - } - - /** - * The fully-qualified resource name of the table resource. - * - * Generated from protobuf field string table = 1; - * @param string $var - * @return $this - */ - public function setTable($var) - { - GPBUtil::checkString($var, True); - $this->table = $var; - - return $this; - } - - /** - * The type of the table resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DiscoveryEvent.TableType type = 2; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * The type of the table resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DiscoveryEvent.TableType type = 2; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\DiscoveryEvent\TableType::class); - $this->type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/TableType.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/TableType.php deleted file mode 100644 index 5c4382d5c357..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/DiscoveryEvent/TableType.php +++ /dev/null @@ -1,68 +0,0 @@ -google.cloud.dataplex.v1.DiscoveryEvent.TableType - */ -class TableType -{ - /** - * An unspecified table type. - * - * Generated from protobuf enum TABLE_TYPE_UNSPECIFIED = 0; - */ - const TABLE_TYPE_UNSPECIFIED = 0; - /** - * External table type. - * - * Generated from protobuf enum EXTERNAL_TABLE = 1; - */ - const EXTERNAL_TABLE = 1; - /** - * BigLake table type. - * - * Generated from protobuf enum BIGLAKE_TABLE = 2; - */ - const BIGLAKE_TABLE = 2; - /** - * Object table type for unstructured data. - * - * Generated from protobuf enum OBJECT_TABLE = 3; - */ - const OBJECT_TABLE = 3; - - private static $valueToName = [ - self::TABLE_TYPE_UNSPECIFIED => 'TABLE_TYPE_UNSPECIFIED', - self::EXTERNAL_TABLE => 'EXTERNAL_TABLE', - self::BIGLAKE_TABLE => 'BIGLAKE_TABLE', - self::OBJECT_TABLE => 'OBJECT_TABLE', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EncryptionConfig.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EncryptionConfig.php deleted file mode 100644 index 1566c937feef..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EncryptionConfig.php +++ /dev/null @@ -1,356 +0,0 @@ -google.cloud.dataplex.v1.EncryptionConfig - */ -class EncryptionConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the EncryptionConfig. - * Format: - * organizations/{organization}/locations/{location}/encryptionConfigs/{encryption_config} - * Global location is not supported. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. If a key is chosen, it means that the customer is using CMEK. - * If a key is not chosen, it means that the customer is using Google managed - * encryption. - * - * Generated from protobuf field string key = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $key = ''; - /** - * Output only. The time when the Encryption configuration was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time when the Encryption configuration was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Output only. The state of encryption of the databases. - * - * Generated from protobuf field .google.cloud.dataplex.v1.EncryptionConfig.EncryptionState encryption_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $encryption_state = 0; - /** - * Etag of the EncryptionConfig. This is a strong etag. - * - * Generated from protobuf field string etag = 6; - */ - protected $etag = ''; - /** - * Output only. Details of the failure if anything related to Cmek db fails. - * - * Generated from protobuf field .google.cloud.dataplex.v1.EncryptionConfig.FailureDetails failure_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $failure_details = null; - /** - * Optional. Represent the state of CMEK opt-in for metastore. - * - * Generated from protobuf field bool enable_metastore_encryption = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $enable_metastore_encryption = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the EncryptionConfig. - * Format: - * organizations/{organization}/locations/{location}/encryptionConfigs/{encryption_config} - * Global location is not supported. - * @type string $key - * Optional. If a key is chosen, it means that the customer is using CMEK. - * If a key is not chosen, it means that the customer is using Google managed - * encryption. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time when the Encryption configuration was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time when the Encryption configuration was last updated. - * @type int $encryption_state - * Output only. The state of encryption of the databases. - * @type string $etag - * Etag of the EncryptionConfig. This is a strong etag. - * @type \Google\Cloud\Dataplex\V1\EncryptionConfig\FailureDetails $failure_details - * Output only. Details of the failure if anything related to Cmek db fails. - * @type bool $enable_metastore_encryption - * Optional. Represent the state of CMEK opt-in for metastore. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Cmek::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the EncryptionConfig. - * Format: - * organizations/{organization}/locations/{location}/encryptionConfigs/{encryption_config} - * Global location is not supported. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the EncryptionConfig. - * Format: - * organizations/{organization}/locations/{location}/encryptionConfigs/{encryption_config} - * Global location is not supported. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. If a key is chosen, it means that the customer is using CMEK. - * If a key is not chosen, it means that the customer is using Google managed - * encryption. - * - * Generated from protobuf field string key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getKey() - { - return $this->key; - } - - /** - * Optional. If a key is chosen, it means that the customer is using CMEK. - * If a key is not chosen, it means that the customer is using Google managed - * encryption. - * - * Generated from protobuf field string key = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setKey($var) - { - GPBUtil::checkString($var, True); - $this->key = $var; - - return $this; - } - - /** - * Output only. The time when the Encryption configuration was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The time when the Encryption configuration was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The time when the Encryption configuration was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The time when the Encryption configuration was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Output only. The state of encryption of the databases. - * - * Generated from protobuf field .google.cloud.dataplex.v1.EncryptionConfig.EncryptionState encryption_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getEncryptionState() - { - return $this->encryption_state; - } - - /** - * Output only. The state of encryption of the databases. - * - * Generated from protobuf field .google.cloud.dataplex.v1.EncryptionConfig.EncryptionState encryption_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setEncryptionState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\EncryptionConfig\EncryptionState::class); - $this->encryption_state = $var; - - return $this; - } - - /** - * Etag of the EncryptionConfig. This is a strong etag. - * - * Generated from protobuf field string etag = 6; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Etag of the EncryptionConfig. This is a strong etag. - * - * Generated from protobuf field string etag = 6; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Output only. Details of the failure if anything related to Cmek db fails. - * - * Generated from protobuf field .google.cloud.dataplex.v1.EncryptionConfig.FailureDetails failure_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataplex\V1\EncryptionConfig\FailureDetails|null - */ - public function getFailureDetails() - { - return $this->failure_details; - } - - public function hasFailureDetails() - { - return isset($this->failure_details); - } - - public function clearFailureDetails() - { - unset($this->failure_details); - } - - /** - * Output only. Details of the failure if anything related to Cmek db fails. - * - * Generated from protobuf field .google.cloud.dataplex.v1.EncryptionConfig.FailureDetails failure_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\EncryptionConfig\FailureDetails $var - * @return $this - */ - public function setFailureDetails($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\EncryptionConfig\FailureDetails::class); - $this->failure_details = $var; - - return $this; - } - - /** - * Optional. Represent the state of CMEK opt-in for metastore. - * - * Generated from protobuf field bool enable_metastore_encryption = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getEnableMetastoreEncryption() - { - return $this->enable_metastore_encryption; - } - - /** - * Optional. Represent the state of CMEK opt-in for metastore. - * - * Generated from protobuf field bool enable_metastore_encryption = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setEnableMetastoreEncryption($var) - { - GPBUtil::checkBool($var); - $this->enable_metastore_encryption = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EncryptionConfig/EncryptionState.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EncryptionConfig/EncryptionState.php deleted file mode 100644 index 2d99b42e1546..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EncryptionConfig/EncryptionState.php +++ /dev/null @@ -1,73 +0,0 @@ -google.cloud.dataplex.v1.EncryptionConfig.EncryptionState - */ -class EncryptionState -{ - /** - * State is not specified. - * - * Generated from protobuf enum ENCRYPTION_STATE_UNSPECIFIED = 0; - */ - const ENCRYPTION_STATE_UNSPECIFIED = 0; - /** - * The encryption state of the database when the EncryptionConfig is created - * or updated. If the encryption fails, it is retried indefinitely and the - * state is shown as ENCRYPTING. - * - * Generated from protobuf enum ENCRYPTING = 1; - */ - const ENCRYPTING = 1; - /** - * The encryption of data has completed successfully. - * - * Generated from protobuf enum COMPLETED = 2; - */ - const COMPLETED = 2; - /** - * The encryption of data has failed. - * The state is set to FAILED when the encryption fails due to reasons like - * permission issues, invalid key etc. - * - * Generated from protobuf enum FAILED = 3; - */ - const FAILED = 3; - - private static $valueToName = [ - self::ENCRYPTION_STATE_UNSPECIFIED => 'ENCRYPTION_STATE_UNSPECIFIED', - self::ENCRYPTING => 'ENCRYPTING', - self::COMPLETED => 'COMPLETED', - self::FAILED => 'FAILED', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EncryptionConfig/FailureDetails.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EncryptionConfig/FailureDetails.php deleted file mode 100644 index 09a9987e4d3c..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EncryptionConfig/FailureDetails.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.dataplex.v1.EncryptionConfig.FailureDetails - */ -class FailureDetails extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The error code for the failure. - * - * Generated from protobuf field .google.cloud.dataplex.v1.EncryptionConfig.FailureDetails.ErrorCode error_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $error_code = 0; - /** - * Output only. The error message will be shown to the user. Set only if the - * error code is REQUIRE_USER_ACTION. - * - * Generated from protobuf field string error_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $error_message = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $error_code - * Output only. The error code for the failure. - * @type string $error_message - * Output only. The error message will be shown to the user. Set only if the - * error code is REQUIRE_USER_ACTION. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Cmek::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The error code for the failure. - * - * Generated from protobuf field .google.cloud.dataplex.v1.EncryptionConfig.FailureDetails.ErrorCode error_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getErrorCode() - { - return $this->error_code; - } - - /** - * Output only. The error code for the failure. - * - * Generated from protobuf field .google.cloud.dataplex.v1.EncryptionConfig.FailureDetails.ErrorCode error_code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setErrorCode($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\EncryptionConfig\FailureDetails\ErrorCode::class); - $this->error_code = $var; - - return $this; - } - - /** - * Output only. The error message will be shown to the user. Set only if the - * error code is REQUIRE_USER_ACTION. - * - * Generated from protobuf field string error_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getErrorMessage() - { - return $this->error_message; - } - - /** - * Output only. The error message will be shown to the user. Set only if the - * error code is REQUIRE_USER_ACTION. - * - * Generated from protobuf field string error_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setErrorMessage($var) - { - GPBUtil::checkString($var, True); - $this->error_message = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EncryptionConfig/FailureDetails/ErrorCode.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EncryptionConfig/FailureDetails/ErrorCode.php deleted file mode 100644 index 0b6e138b55ce..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EncryptionConfig/FailureDetails/ErrorCode.php +++ /dev/null @@ -1,61 +0,0 @@ -google.cloud.dataplex.v1.EncryptionConfig.FailureDetails.ErrorCode - */ -class ErrorCode -{ - /** - * The error code is not specified - * - * Generated from protobuf enum UNKNOWN = 0; - */ - const UNKNOWN = 0; - /** - * Error because of internal server error, will be retried automatically. - * - * Generated from protobuf enum INTERNAL_ERROR = 1; - */ - const INTERNAL_ERROR = 1; - /** - * User action is required to resolve the error. - * - * Generated from protobuf enum REQUIRE_USER_ACTION = 2; - */ - const REQUIRE_USER_ACTION = 2; - - private static $valueToName = [ - self::UNKNOWN => 'UNKNOWN', - self::INTERNAL_ERROR => 'INTERNAL_ERROR', - self::REQUIRE_USER_ACTION => 'REQUIRE_USER_ACTION', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Entity.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Entity.php deleted file mode 100644 index b0effa886b78..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Entity.php +++ /dev/null @@ -1,785 +0,0 @@ -google.cloud.dataplex.v1.Entity - */ -class Entity extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The resource name of the entity, of the form: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. Display name must be shorter than or equal to 256 characters. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $display_name = ''; - /** - * Optional. User friendly longer description text. Must be shorter than or - * equal to 1024 characters. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Output only. The time when the entity was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time when the entity was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Required. A user-provided entity ID. It is mutable, and will be used as the - * published table name. Specifying a new ID in an update entity - * request will override the existing value. - * The ID must contain only letters (a-z, A-Z), numbers (0-9), and - * underscores, and consist of 256 or fewer characters. - * - * Generated from protobuf field string id = 7 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $id = ''; - /** - * Optional. The etag associated with the entity, which can be retrieved with - * a [GetEntity][] request. Required for update and delete requests. - * - * Generated from protobuf field string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $etag = ''; - /** - * Required. Immutable. The type of entity. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Entity.Type type = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $type = 0; - /** - * Required. Immutable. The ID of the asset associated with the storage - * location containing the entity data. The entity must be with in the same - * zone with the asset. - * - * Generated from protobuf field string asset = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $asset = ''; - /** - * Required. Immutable. The storage path of the entity data. - * For Cloud Storage data, this is the fully-qualified path to the entity, - * such as `gs://bucket/path/to/data`. For BigQuery data, this is the name of - * the table resource, such as - * `projects/project_id/datasets/dataset_id/tables/table_id`. - * - * Generated from protobuf field string data_path = 12 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $data_path = ''; - /** - * Optional. The set of items within the data path constituting the data in - * the entity, represented as a glob path. Example: - * `gs://bucket/path/to/data/*{@*}*.csv`. - * - * Generated from protobuf field string data_path_pattern = 13 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $data_path_pattern = ''; - /** - * Output only. The name of the associated Data Catalog entry. - * - * Generated from protobuf field string catalog_entry = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $catalog_entry = ''; - /** - * Required. Immutable. Identifies the storage system of the entity data. - * - * Generated from protobuf field .google.cloud.dataplex.v1.StorageSystem system = 15 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $system = 0; - /** - * Required. Identifies the storage format of the entity data. - * It does not apply to entities with data stored in BigQuery. - * - * Generated from protobuf field .google.cloud.dataplex.v1.StorageFormat format = 16 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $format = null; - /** - * Output only. Metadata stores that the entity is compatible with. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Entity.CompatibilityStatus compatibility = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $compatibility = null; - /** - * Output only. Identifies the access mechanism to the entity. Not user - * settable. - * - * Generated from protobuf field .google.cloud.dataplex.v1.StorageAccess access = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $access = null; - /** - * Output only. System generated unique ID for the Entity. This ID will be - * different if the Entity is deleted and re-created with the same name. - * - * Generated from protobuf field string uid = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $uid = ''; - /** - * Required. The description of the data structure and layout. - * The schema is not included in list responses. It is only included in - * `SCHEMA` and `FULL` entity views of a `GetEntity` response. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Schema schema = 50 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $schema = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. The resource name of the entity, of the form: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{id}`. - * @type string $display_name - * Optional. Display name must be shorter than or equal to 256 characters. - * @type string $description - * Optional. User friendly longer description text. Must be shorter than or - * equal to 1024 characters. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time when the entity was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time when the entity was last updated. - * @type string $id - * Required. A user-provided entity ID. It is mutable, and will be used as the - * published table name. Specifying a new ID in an update entity - * request will override the existing value. - * The ID must contain only letters (a-z, A-Z), numbers (0-9), and - * underscores, and consist of 256 or fewer characters. - * @type string $etag - * Optional. The etag associated with the entity, which can be retrieved with - * a [GetEntity][] request. Required for update and delete requests. - * @type int $type - * Required. Immutable. The type of entity. - * @type string $asset - * Required. Immutable. The ID of the asset associated with the storage - * location containing the entity data. The entity must be with in the same - * zone with the asset. - * @type string $data_path - * Required. Immutable. The storage path of the entity data. - * For Cloud Storage data, this is the fully-qualified path to the entity, - * such as `gs://bucket/path/to/data`. For BigQuery data, this is the name of - * the table resource, such as - * `projects/project_id/datasets/dataset_id/tables/table_id`. - * @type string $data_path_pattern - * Optional. The set of items within the data path constituting the data in - * the entity, represented as a glob path. Example: - * `gs://bucket/path/to/data/*{@*}*.csv`. - * @type string $catalog_entry - * Output only. The name of the associated Data Catalog entry. - * @type int $system - * Required. Immutable. Identifies the storage system of the entity data. - * @type \Google\Cloud\Dataplex\V1\StorageFormat $format - * Required. Identifies the storage format of the entity data. - * It does not apply to entities with data stored in BigQuery. - * @type \Google\Cloud\Dataplex\V1\Entity\CompatibilityStatus $compatibility - * Output only. Metadata stores that the entity is compatible with. - * @type \Google\Cloud\Dataplex\V1\StorageAccess $access - * Output only. Identifies the access mechanism to the entity. Not user - * settable. - * @type string $uid - * Output only. System generated unique ID for the Entity. This ID will be - * different if the Entity is deleted and re-created with the same name. - * @type \Google\Cloud\Dataplex\V1\Schema $schema - * Required. The description of the data structure and layout. - * The schema is not included in list responses. It is only included in - * `SCHEMA` and `FULL` entity views of a `GetEntity` response. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Metadata::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The resource name of the entity, of the form: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The resource name of the entity, of the form: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. Display name must be shorter than or equal to 256 characters. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Optional. Display name must be shorter than or equal to 256 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. User friendly longer description text. Must be shorter than or - * equal to 1024 characters. - * - * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. User friendly longer description text. Must be shorter than or - * equal to 1024 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; - } - - /** - * Output only. The time when the entity was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.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 entity was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.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 entity was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.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 entity was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.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; - } - - /** - * Required. A user-provided entity ID. It is mutable, and will be used as the - * published table name. Specifying a new ID in an update entity - * request will override the existing value. - * The ID must contain only letters (a-z, A-Z), numbers (0-9), and - * underscores, and consist of 256 or fewer characters. - * - * Generated from protobuf field string id = 7 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Required. A user-provided entity ID. It is mutable, and will be used as the - * published table name. Specifying a new ID in an update entity - * request will override the existing value. - * The ID must contain only letters (a-z, A-Z), numbers (0-9), and - * underscores, and consist of 256 or fewer characters. - * - * Generated from protobuf field string id = 7 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * Optional. The etag associated with the entity, which can be retrieved with - * a [GetEntity][] request. Required for update and delete requests. - * - * Generated from protobuf field string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Optional. The etag associated with the entity, which can be retrieved with - * a [GetEntity][] request. Required for update and delete requests. - * - * Generated from protobuf field string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Required. Immutable. The type of entity. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Entity.Type type = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Required. Immutable. The type of entity. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Entity.Type type = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\Entity\Type::class); - $this->type = $var; - - return $this; - } - - /** - * Required. Immutable. The ID of the asset associated with the storage - * location containing the entity data. The entity must be with in the same - * zone with the asset. - * - * Generated from protobuf field string asset = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getAsset() - { - return $this->asset; - } - - /** - * Required. Immutable. The ID of the asset associated with the storage - * location containing the entity data. The entity must be with in the same - * zone with the asset. - * - * Generated from protobuf field string asset = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setAsset($var) - { - GPBUtil::checkString($var, True); - $this->asset = $var; - - return $this; - } - - /** - * Required. Immutable. The storage path of the entity data. - * For Cloud Storage data, this is the fully-qualified path to the entity, - * such as `gs://bucket/path/to/data`. For BigQuery data, this is the name of - * the table resource, such as - * `projects/project_id/datasets/dataset_id/tables/table_id`. - * - * Generated from protobuf field string data_path = 12 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getDataPath() - { - return $this->data_path; - } - - /** - * Required. Immutable. The storage path of the entity data. - * For Cloud Storage data, this is the fully-qualified path to the entity, - * such as `gs://bucket/path/to/data`. For BigQuery data, this is the name of - * the table resource, such as - * `projects/project_id/datasets/dataset_id/tables/table_id`. - * - * Generated from protobuf field string data_path = 12 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setDataPath($var) - { - GPBUtil::checkString($var, True); - $this->data_path = $var; - - return $this; - } - - /** - * Optional. The set of items within the data path constituting the data in - * the entity, represented as a glob path. Example: - * `gs://bucket/path/to/data/*{@*}*.csv`. - * - * Generated from protobuf field string data_path_pattern = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDataPathPattern() - { - return $this->data_path_pattern; - } - - /** - * Optional. The set of items within the data path constituting the data in - * the entity, represented as a glob path. Example: - * `gs://bucket/path/to/data/*{@*}*.csv`. - * - * Generated from protobuf field string data_path_pattern = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDataPathPattern($var) - { - GPBUtil::checkString($var, True); - $this->data_path_pattern = $var; - - return $this; - } - - /** - * Output only. The name of the associated Data Catalog entry. - * - * Generated from protobuf field string catalog_entry = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getCatalogEntry() - { - return $this->catalog_entry; - } - - /** - * Output only. The name of the associated Data Catalog entry. - * - * Generated from protobuf field string catalog_entry = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setCatalogEntry($var) - { - GPBUtil::checkString($var, True); - $this->catalog_entry = $var; - - return $this; - } - - /** - * Required. Immutable. Identifies the storage system of the entity data. - * - * Generated from protobuf field .google.cloud.dataplex.v1.StorageSystem system = 15 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return int - */ - public function getSystem() - { - return $this->system; - } - - /** - * Required. Immutable. Identifies the storage system of the entity data. - * - * Generated from protobuf field .google.cloud.dataplex.v1.StorageSystem system = 15 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param int $var - * @return $this - */ - public function setSystem($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\StorageSystem::class); - $this->system = $var; - - return $this; - } - - /** - * Required. Identifies the storage format of the entity data. - * It does not apply to entities with data stored in BigQuery. - * - * Generated from protobuf field .google.cloud.dataplex.v1.StorageFormat format = 16 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataplex\V1\StorageFormat|null - */ - public function getFormat() - { - return $this->format; - } - - public function hasFormat() - { - return isset($this->format); - } - - public function clearFormat() - { - unset($this->format); - } - - /** - * Required. Identifies the storage format of the entity data. - * It does not apply to entities with data stored in BigQuery. - * - * Generated from protobuf field .google.cloud.dataplex.v1.StorageFormat format = 16 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\StorageFormat $var - * @return $this - */ - public function setFormat($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\StorageFormat::class); - $this->format = $var; - - return $this; - } - - /** - * Output only. Metadata stores that the entity is compatible with. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Entity.CompatibilityStatus compatibility = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataplex\V1\Entity\CompatibilityStatus|null - */ - public function getCompatibility() - { - return $this->compatibility; - } - - public function hasCompatibility() - { - return isset($this->compatibility); - } - - public function clearCompatibility() - { - unset($this->compatibility); - } - - /** - * Output only. Metadata stores that the entity is compatible with. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Entity.CompatibilityStatus compatibility = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\Entity\CompatibilityStatus $var - * @return $this - */ - public function setCompatibility($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Entity\CompatibilityStatus::class); - $this->compatibility = $var; - - return $this; - } - - /** - * Output only. Identifies the access mechanism to the entity. Not user - * settable. - * - * Generated from protobuf field .google.cloud.dataplex.v1.StorageAccess access = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataplex\V1\StorageAccess|null - */ - public function getAccess() - { - return $this->access; - } - - public function hasAccess() - { - return isset($this->access); - } - - public function clearAccess() - { - unset($this->access); - } - - /** - * Output only. Identifies the access mechanism to the entity. Not user - * settable. - * - * Generated from protobuf field .google.cloud.dataplex.v1.StorageAccess access = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\StorageAccess $var - * @return $this - */ - public function setAccess($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\StorageAccess::class); - $this->access = $var; - - return $this; - } - - /** - * Output only. System generated unique ID for the Entity. This ID will be - * different if the Entity is deleted and re-created with the same name. - * - * Generated from protobuf field string uid = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. System generated unique ID for the Entity. This ID will be - * different if the Entity is deleted and re-created with the same name. - * - * Generated from protobuf field string uid = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Required. The description of the data structure and layout. - * The schema is not included in list responses. It is only included in - * `SCHEMA` and `FULL` entity views of a `GetEntity` response. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Schema schema = 50 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataplex\V1\Schema|null - */ - public function getSchema() - { - return $this->schema; - } - - public function hasSchema() - { - return isset($this->schema); - } - - public function clearSchema() - { - unset($this->schema); - } - - /** - * Required. The description of the data structure and layout. - * The schema is not included in list responses. It is only included in - * `SCHEMA` and `FULL` entity views of a `GetEntity` response. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Schema schema = 50 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\Schema $var - * @return $this - */ - public function setSchema($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Schema::class); - $this->schema = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Entity/CompatibilityStatus.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Entity/CompatibilityStatus.php deleted file mode 100644 index f8c4097333a6..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Entity/CompatibilityStatus.php +++ /dev/null @@ -1,121 +0,0 @@ -google.cloud.dataplex.v1.Entity.CompatibilityStatus - */ -class CompatibilityStatus extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Whether this entity is compatible with Hive Metastore. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility hive_metastore = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $hive_metastore = null; - /** - * Output only. Whether this entity is compatible with BigQuery. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility bigquery = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $bigquery = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\Entity\CompatibilityStatus\Compatibility $hive_metastore - * Output only. Whether this entity is compatible with Hive Metastore. - * @type \Google\Cloud\Dataplex\V1\Entity\CompatibilityStatus\Compatibility $bigquery - * Output only. Whether this entity is compatible with BigQuery. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Metadata::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Whether this entity is compatible with Hive Metastore. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility hive_metastore = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataplex\V1\Entity\CompatibilityStatus\Compatibility|null - */ - public function getHiveMetastore() - { - return $this->hive_metastore; - } - - public function hasHiveMetastore() - { - return isset($this->hive_metastore); - } - - public function clearHiveMetastore() - { - unset($this->hive_metastore); - } - - /** - * Output only. Whether this entity is compatible with Hive Metastore. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility hive_metastore = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\Entity\CompatibilityStatus\Compatibility $var - * @return $this - */ - public function setHiveMetastore($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Entity\CompatibilityStatus\Compatibility::class); - $this->hive_metastore = $var; - - return $this; - } - - /** - * Output only. Whether this entity is compatible with BigQuery. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility bigquery = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataplex\V1\Entity\CompatibilityStatus\Compatibility|null - */ - public function getBigquery() - { - return $this->bigquery; - } - - public function hasBigquery() - { - return isset($this->bigquery); - } - - public function clearBigquery() - { - unset($this->bigquery); - } - - /** - * Output only. Whether this entity is compatible with BigQuery. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility bigquery = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\Entity\CompatibilityStatus\Compatibility $var - * @return $this - */ - public function setBigquery($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Entity\CompatibilityStatus\Compatibility::class); - $this->bigquery = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Entity/CompatibilityStatus/Compatibility.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Entity/CompatibilityStatus/Compatibility.php deleted file mode 100644 index 33ac94ba7571..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Entity/CompatibilityStatus/Compatibility.php +++ /dev/null @@ -1,109 +0,0 @@ -google.cloud.dataplex.v1.Entity.CompatibilityStatus.Compatibility - */ -class Compatibility extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Whether the entity is compatible and can be represented in - * the metadata store. - * - * Generated from protobuf field bool compatible = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $compatible = false; - /** - * Output only. Provides additional detail if the entity is incompatible - * with the metadata store. - * - * Generated from protobuf field string reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $reason = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $compatible - * Output only. Whether the entity is compatible and can be represented in - * the metadata store. - * @type string $reason - * Output only. Provides additional detail if the entity is incompatible - * with the metadata store. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Metadata::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Whether the entity is compatible and can be represented in - * the metadata store. - * - * Generated from protobuf field bool compatible = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getCompatible() - { - return $this->compatible; - } - - /** - * Output only. Whether the entity is compatible and can be represented in - * the metadata store. - * - * Generated from protobuf field bool compatible = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setCompatible($var) - { - GPBUtil::checkBool($var); - $this->compatible = $var; - - return $this; - } - - /** - * Output only. Provides additional detail if the entity is incompatible - * with the metadata store. - * - * Generated from protobuf field string reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getReason() - { - return $this->reason; - } - - /** - * Output only. Provides additional detail if the entity is incompatible - * with the metadata store. - * - * Generated from protobuf field string reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setReason($var) - { - GPBUtil::checkString($var, True); - $this->reason = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Entity/Type.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Entity/Type.php deleted file mode 100644 index f361551e7a22..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Entity/Type.php +++ /dev/null @@ -1,61 +0,0 @@ -google.cloud.dataplex.v1.Entity.Type - */ -class Type -{ - /** - * Type unspecified. - * - * Generated from protobuf enum TYPE_UNSPECIFIED = 0; - */ - const TYPE_UNSPECIFIED = 0; - /** - * Structured and semi-structured data. - * - * Generated from protobuf enum TABLE = 1; - */ - const TABLE = 1; - /** - * Unstructured data. - * - * Generated from protobuf enum FILESET = 2; - */ - const FILESET = 2; - - private static $valueToName = [ - self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', - self::TABLE => 'TABLE', - self::FILESET => 'FILESET', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Entry.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Entry.php deleted file mode 100644 index cf1d224ecd1f..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Entry.php +++ /dev/null @@ -1,400 +0,0 @@ -google.cloud.dataplex.v1.Entry - */ -class Entry extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The relative resource name of the entry, in the format - * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Required. Immutable. The relative resource name of the entry type that was - * used to create this entry, in the format - * `projects/{project_id_or_number}/locations/{location_id}/entryTypes/{entry_type_id}`. - * - * Generated from protobuf field string entry_type = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $entry_type = ''; - /** - * Output only. The time when the entry was created in Dataplex Universal - * Catalog. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time when the entry was last updated in Dataplex Universal - * Catalog. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Optional. The aspects that are attached to the entry. Depending on how the - * aspect is attached to the entry, the format of the aspect key can be one of - * the following: - * * If the aspect is attached directly to the entry: - * `{project_id_or_number}.{location_id}.{aspect_type_id}` - * * If the aspect is attached to an entry's path: - * `{project_id_or_number}.{location_id}.{aspect_type_id}\@{path}` - * - * Generated from protobuf field map aspects = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $aspects; - /** - * Optional. Immutable. The resource name of the parent entry, in the format - * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}`. - * - * Generated from protobuf field string parent_entry = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $parent_entry = ''; - /** - * Optional. A name for the entry that can be referenced by an external - * system. For more information, see [Fully qualified - * names](https://cloud.google.com/data-catalog/docs/fully-qualified-names). - * The maximum size of the field is 4000 characters. - * - * Generated from protobuf field string fully_qualified_name = 12 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $fully_qualified_name = ''; - /** - * Optional. Information related to the source system of the data resource - * that is represented by the entry. - * - * Generated from protobuf field .google.cloud.dataplex.v1.EntrySource entry_source = 15 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $entry_source = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The relative resource name of the entry, in the format - * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}`. - * @type string $entry_type - * Required. Immutable. The relative resource name of the entry type that was - * used to create this entry, in the format - * `projects/{project_id_or_number}/locations/{location_id}/entryTypes/{entry_type_id}`. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time when the entry was created in Dataplex Universal - * Catalog. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time when the entry was last updated in Dataplex Universal - * Catalog. - * @type array|\Google\Protobuf\Internal\MapField $aspects - * Optional. The aspects that are attached to the entry. Depending on how the - * aspect is attached to the entry, the format of the aspect key can be one of - * the following: - * * If the aspect is attached directly to the entry: - * `{project_id_or_number}.{location_id}.{aspect_type_id}` - * * If the aspect is attached to an entry's path: - * `{project_id_or_number}.{location_id}.{aspect_type_id}\@{path}` - * @type string $parent_entry - * Optional. Immutable. The resource name of the parent entry, in the format - * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}`. - * @type string $fully_qualified_name - * Optional. A name for the entry that can be referenced by an external - * system. For more information, see [Fully qualified - * names](https://cloud.google.com/data-catalog/docs/fully-qualified-names). - * The maximum size of the field is 4000 characters. - * @type \Google\Cloud\Dataplex\V1\EntrySource $entry_source - * Optional. Information related to the source system of the data resource - * that is represented by the entry. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The relative resource name of the entry, in the format - * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The relative resource name of the entry, in the format - * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}`. - * - * 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. Immutable. The relative resource name of the entry type that was - * used to create this entry, in the format - * `projects/{project_id_or_number}/locations/{location_id}/entryTypes/{entry_type_id}`. - * - * Generated from protobuf field string entry_type = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getEntryType() - { - return $this->entry_type; - } - - /** - * Required. Immutable. The relative resource name of the entry type that was - * used to create this entry, in the format - * `projects/{project_id_or_number}/locations/{location_id}/entryTypes/{entry_type_id}`. - * - * Generated from protobuf field string entry_type = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setEntryType($var) - { - GPBUtil::checkString($var, True); - $this->entry_type = $var; - - return $this; - } - - /** - * Output only. The time when the entry was created in Dataplex Universal - * Catalog. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.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 entry was created in Dataplex Universal - * Catalog. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.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 entry was last updated in Dataplex Universal - * Catalog. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.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 entry was last updated in Dataplex Universal - * Catalog. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.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 aspects that are attached to the entry. Depending on how the - * aspect is attached to the entry, the format of the aspect key can be one of - * the following: - * * If the aspect is attached directly to the entry: - * `{project_id_or_number}.{location_id}.{aspect_type_id}` - * * If the aspect is attached to an entry's path: - * `{project_id_or_number}.{location_id}.{aspect_type_id}\@{path}` - * - * Generated from protobuf field map aspects = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAspects() - { - return $this->aspects; - } - - /** - * Optional. The aspects that are attached to the entry. Depending on how the - * aspect is attached to the entry, the format of the aspect key can be one of - * the following: - * * If the aspect is attached directly to the entry: - * `{project_id_or_number}.{location_id}.{aspect_type_id}` - * * If the aspect is attached to an entry's path: - * `{project_id_or_number}.{location_id}.{aspect_type_id}\@{path}` - * - * Generated from protobuf field map aspects = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAspects($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\Aspect::class); - $this->aspects = $arr; - - return $this; - } - - /** - * Optional. Immutable. The resource name of the parent entry, in the format - * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}`. - * - * Generated from protobuf field string parent_entry = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getParentEntry() - { - return $this->parent_entry; - } - - /** - * Optional. Immutable. The resource name of the parent entry, in the format - * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}`. - * - * Generated from protobuf field string parent_entry = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setParentEntry($var) - { - GPBUtil::checkString($var, True); - $this->parent_entry = $var; - - return $this; - } - - /** - * Optional. A name for the entry that can be referenced by an external - * system. For more information, see [Fully qualified - * names](https://cloud.google.com/data-catalog/docs/fully-qualified-names). - * The maximum size of the field is 4000 characters. - * - * Generated from protobuf field string fully_qualified_name = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFullyQualifiedName() - { - return $this->fully_qualified_name; - } - - /** - * Optional. A name for the entry that can be referenced by an external - * system. For more information, see [Fully qualified - * names](https://cloud.google.com/data-catalog/docs/fully-qualified-names). - * The maximum size of the field is 4000 characters. - * - * Generated from protobuf field string fully_qualified_name = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFullyQualifiedName($var) - { - GPBUtil::checkString($var, True); - $this->fully_qualified_name = $var; - - return $this; - } - - /** - * Optional. Information related to the source system of the data resource - * that is represented by the entry. - * - * Generated from protobuf field .google.cloud.dataplex.v1.EntrySource entry_source = 15 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dataplex\V1\EntrySource|null - */ - public function getEntrySource() - { - return $this->entry_source; - } - - public function hasEntrySource() - { - return isset($this->entry_source); - } - - public function clearEntrySource() - { - unset($this->entry_source); - } - - /** - * Optional. Information related to the source system of the data resource - * that is represented by the entry. - * - * Generated from protobuf field .google.cloud.dataplex.v1.EntrySource entry_source = 15 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataplex\V1\EntrySource $var - * @return $this - */ - public function setEntrySource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\EntrySource::class); - $this->entry_source = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryGroup.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryGroup.php deleted file mode 100644 index 2e3fad9f1e00..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryGroup.php +++ /dev/null @@ -1,383 +0,0 @@ -google.cloud.dataplex.v1.EntryGroup - */ -class EntryGroup extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The relative resource name of the EntryGroup, in the format - * projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Output only. System generated globally unique ID for the EntryGroup. If you - * delete and recreate the EntryGroup with the same name, this ID will be - * different. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $uid = ''; - /** - * Output only. The time when the EntryGroup was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time when the EntryGroup was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Optional. Description of the EntryGroup. - * - * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Optional. User friendly display name. - * - * Generated from protobuf field string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $display_name = ''; - /** - * Optional. User-defined labels for the EntryGroup. - * - * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $labels; - /** - * This checksum is computed by the service, and might be sent on update and - * delete requests to ensure the client has an up-to-date value before - * proceeding. - * - * Generated from protobuf field string etag = 8; - */ - protected $etag = ''; - /** - * Output only. Denotes the transfer status of the Entry Group. It is - * unspecified for Entry Group created from Dataplex API. - * - * Generated from protobuf field .google.cloud.dataplex.v1.TransferStatus transfer_status = 202 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $transfer_status = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. The relative resource name of the EntryGroup, in the format - * projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}. - * @type string $uid - * Output only. System generated globally unique ID for the EntryGroup. If you - * delete and recreate the EntryGroup with the same name, this ID will be - * different. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time when the EntryGroup was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time when the EntryGroup was last updated. - * @type string $description - * Optional. Description of the EntryGroup. - * @type string $display_name - * Optional. User friendly display name. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Optional. User-defined labels for the EntryGroup. - * @type string $etag - * This checksum is computed by the service, and might be sent on update and - * delete requests to ensure the client has an up-to-date value before - * proceeding. - * @type int $transfer_status - * Output only. Denotes the transfer status of the Entry Group. It is - * unspecified for Entry Group created from Dataplex API. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The relative resource name of the EntryGroup, in the format - * projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The relative resource name of the EntryGroup, in the format - * projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. System generated globally unique ID for the EntryGroup. If you - * delete and recreate the EntryGroup with the same name, this ID will be - * different. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. System generated globally unique ID for the EntryGroup. If you - * delete and recreate the EntryGroup with the same name, this ID will be - * different. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Output only. The time when the EntryGroup was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The time when the EntryGroup was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The time when the EntryGroup was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The time when the EntryGroup was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Optional. Description of the EntryGroup. - * - * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. Description of the EntryGroup. - * - * 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; - } - - /** - * Optional. User friendly display name. - * - * Generated from protobuf field string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Optional. User friendly display name. - * - * Generated from protobuf field string display_name = 6 [(.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. User-defined labels for the EntryGroup. - * - * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Optional. User-defined labels for the EntryGroup. - * - * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * This checksum is computed by the service, and might be sent on update and - * delete requests to ensure the client has an up-to-date value before - * proceeding. - * - * Generated from protobuf field string etag = 8; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * This checksum is computed by the service, and might be sent on update and - * delete requests to ensure the client has an up-to-date value before - * proceeding. - * - * Generated from protobuf field string etag = 8; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Output only. Denotes the transfer status of the Entry Group. It is - * unspecified for Entry Group created from Dataplex API. - * - * Generated from protobuf field .google.cloud.dataplex.v1.TransferStatus transfer_status = 202 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getTransferStatus() - { - return $this->transfer_status; - } - - /** - * Output only. Denotes the transfer status of the Entry Group. It is - * unspecified for Entry Group created from Dataplex API. - * - * Generated from protobuf field .google.cloud.dataplex.v1.TransferStatus transfer_status = 202 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setTransferStatus($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\TransferStatus::class); - $this->transfer_status = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryLink.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryLink.php deleted file mode 100644 index 0baba86f32a1..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryLink.php +++ /dev/null @@ -1,309 +0,0 @@ -google.cloud.dataplex.v1.EntryLink - */ -class EntryLink extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Immutable. Identifier. The relative resource name of the Entry - * Link, of the form: - * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entryLinks/{entry_link_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Required. Immutable. Relative resource name of the Entry Link Type used to - * create this Entry Link. For example: - * - Entry link between synonym terms in a glossary: - * `projects/dataplex-types/locations/global/entryLinkTypes/synonym` - * - Entry link between related terms in a glossary: - * `projects/dataplex-types/locations/global/entryLinkTypes/related` - * - Entry link between glossary terms and data assets: - * `projects/dataplex-types/locations/global/entryLinkTypes/definition` - * - * Generated from protobuf field string entry_link_type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $entry_link_type = ''; - /** - * Output only. The time when the Entry Link was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time when the Entry Link was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Optional. The aspects that are attached to the entry link. - * The format of the aspect key has to be the following: - * `{project_id_or_number}.{location_id}.{aspect_type_id}` - * Currently, only a single aspect of a Dataplex-owned Aspect Type is allowed. - * - * Generated from protobuf field map aspects = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $aspects; - /** - * Required. Immutable. Specifies the Entries referenced in the Entry Link. - * There should be exactly two entry references. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.EntryLink.EntryReference entry_references = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - private $entry_references; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Immutable. Identifier. The relative resource name of the Entry - * Link, of the form: - * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entryLinks/{entry_link_id}` - * @type string $entry_link_type - * Required. Immutable. Relative resource name of the Entry Link Type used to - * create this Entry Link. For example: - * - Entry link between synonym terms in a glossary: - * `projects/dataplex-types/locations/global/entryLinkTypes/synonym` - * - Entry link between related terms in a glossary: - * `projects/dataplex-types/locations/global/entryLinkTypes/related` - * - Entry link between glossary terms and data assets: - * `projects/dataplex-types/locations/global/entryLinkTypes/definition` - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time when the Entry Link was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time when the Entry Link was last updated. - * @type array|\Google\Protobuf\Internal\MapField $aspects - * Optional. The aspects that are attached to the entry link. - * The format of the aspect key has to be the following: - * `{project_id_or_number}.{location_id}.{aspect_type_id}` - * Currently, only a single aspect of a Dataplex-owned Aspect Type is allowed. - * @type \Google\Cloud\Dataplex\V1\EntryLink\EntryReference[] $entry_references - * Required. Immutable. Specifies the Entries referenced in the Entry Link. - * There should be exactly two entry references. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Immutable. Identifier. The relative resource name of the Entry - * Link, of the form: - * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entryLinks/{entry_link_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Immutable. Identifier. The relative resource name of the Entry - * Link, of the form: - * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entryLinks/{entry_link_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. Immutable. Relative resource name of the Entry Link Type used to - * create this Entry Link. For example: - * - Entry link between synonym terms in a glossary: - * `projects/dataplex-types/locations/global/entryLinkTypes/synonym` - * - Entry link between related terms in a glossary: - * `projects/dataplex-types/locations/global/entryLinkTypes/related` - * - Entry link between glossary terms and data assets: - * `projects/dataplex-types/locations/global/entryLinkTypes/definition` - * - * Generated from protobuf field string entry_link_type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getEntryLinkType() - { - return $this->entry_link_type; - } - - /** - * Required. Immutable. Relative resource name of the Entry Link Type used to - * create this Entry Link. For example: - * - Entry link between synonym terms in a glossary: - * `projects/dataplex-types/locations/global/entryLinkTypes/synonym` - * - Entry link between related terms in a glossary: - * `projects/dataplex-types/locations/global/entryLinkTypes/related` - * - Entry link between glossary terms and data assets: - * `projects/dataplex-types/locations/global/entryLinkTypes/definition` - * - * Generated from protobuf field string entry_link_type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setEntryLinkType($var) - { - GPBUtil::checkString($var, True); - $this->entry_link_type = $var; - - return $this; - } - - /** - * Output only. The time when the Entry Link was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The time when the Entry Link was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The time when the Entry Link was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The time when the Entry Link was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Optional. The aspects that are attached to the entry link. - * The format of the aspect key has to be the following: - * `{project_id_or_number}.{location_id}.{aspect_type_id}` - * Currently, only a single aspect of a Dataplex-owned Aspect Type is allowed. - * - * Generated from protobuf field map aspects = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAspects() - { - return $this->aspects; - } - - /** - * Optional. The aspects that are attached to the entry link. - * The format of the aspect key has to be the following: - * `{project_id_or_number}.{location_id}.{aspect_type_id}` - * Currently, only a single aspect of a Dataplex-owned Aspect Type is allowed. - * - * Generated from protobuf field map aspects = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAspects($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\Aspect::class); - $this->aspects = $arr; - - return $this; - } - - /** - * Required. Immutable. Specifies the Entries referenced in the Entry Link. - * There should be exactly two entry references. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.EntryLink.EntryReference entry_references = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return RepeatedField<\Google\Cloud\Dataplex\V1\EntryLink\EntryReference> - */ - public function getEntryReferences() - { - return $this->entry_references; - } - - /** - * Required. Immutable. Specifies the Entries referenced in the Entry Link. - * There should be exactly two entry references. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.EntryLink.EntryReference entry_references = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param \Google\Cloud\Dataplex\V1\EntryLink\EntryReference[] $var - * @return $this - */ - public function setEntryReferences($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\EntryLink\EntryReference::class); - $this->entry_references = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryLink/EntryReference.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryLink/EntryReference.php deleted file mode 100644 index adf2e3adbb4f..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryLink/EntryReference.php +++ /dev/null @@ -1,151 +0,0 @@ -google.cloud.dataplex.v1.EntryLink.EntryReference - */ -class EntryReference extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Immutable. The relative resource name of the referenced Entry, - * of the form: - * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $name = ''; - /** - * Immutable. The path in the Entry that is referenced in the Entry Link. - * Empty path denotes that the Entry itself is referenced in the Entry - * Link. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $path = ''; - /** - * Required. Immutable. The reference type of the Entry. - * - * Generated from protobuf field .google.cloud.dataplex.v1.EntryLink.EntryReference.Type type = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Immutable. The relative resource name of the referenced Entry, - * of the form: - * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}` - * @type string $path - * Immutable. The path in the Entry that is referenced in the Entry Link. - * Empty path denotes that the Entry itself is referenced in the Entry - * Link. - * @type int $type - * Required. Immutable. The reference type of the Entry. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Required. Immutable. The relative resource name of the referenced Entry, - * of the form: - * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Immutable. The relative resource name of the referenced Entry, - * of the form: - * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Immutable. The path in the Entry that is referenced in the Entry Link. - * Empty path denotes that the Entry itself is referenced in the Entry - * Link. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * Immutable. The path in the Entry that is referenced in the Entry Link. - * Empty path denotes that the Entry itself is referenced in the Entry - * Link. - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - - /** - * Required. Immutable. The reference type of the Entry. - * - * Generated from protobuf field .google.cloud.dataplex.v1.EntryLink.EntryReference.Type type = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Required. Immutable. The reference type of the Entry. - * - * Generated from protobuf field .google.cloud.dataplex.v1.EntryLink.EntryReference.Type type = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\EntryLink\EntryReference\Type::class); - $this->type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryLink/EntryReference/Type.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryLink/EntryReference/Type.php deleted file mode 100644 index ed0eb9c50bb5..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryLink/EntryReference/Type.php +++ /dev/null @@ -1,62 +0,0 @@ -google.cloud.dataplex.v1.EntryLink.EntryReference.Type - */ -class Type -{ - /** - * Unspecified reference type. Implies that the Entry is referenced - * in a non-directional Entry Link. - * - * Generated from protobuf enum UNSPECIFIED = 0; - */ - const UNSPECIFIED = 0; - /** - * The Entry is referenced as the source of the directional Entry Link. - * - * Generated from protobuf enum SOURCE = 2; - */ - const SOURCE = 2; - /** - * The Entry is referenced as the target of the directional Entry Link. - * - * Generated from protobuf enum TARGET = 3; - */ - const TARGET = 3; - - private static $valueToName = [ - self::UNSPECIFIED => 'UNSPECIFIED', - self::SOURCE => 'SOURCE', - self::TARGET => 'TARGET', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryLinkEvent.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryLinkEvent.php deleted file mode 100644 index 17daca559de7..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryLinkEvent.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.dataplex.v1.EntryLinkEvent - */ -class EntryLinkEvent extends \Google\Protobuf\Internal\Message -{ - /** - * The log message. - * - * Generated from protobuf field string message = 1; - */ - protected $message = ''; - /** - * The type of the event. - * - * Generated from protobuf field .google.cloud.dataplex.v1.EntryLinkEvent.EventType event_type = 2; - */ - protected $event_type = 0; - /** - * Name of the resource. - * - * Generated from protobuf field string resource = 3; - */ - protected $resource = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $message - * The log message. - * @type int $event_type - * The type of the event. - * @type string $resource - * Name of the resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Logs::initOnce(); - parent::__construct($data); - } - - /** - * The log message. - * - * Generated from protobuf field string message = 1; - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * The log message. - * - * Generated from protobuf field string message = 1; - * @param string $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkString($var, True); - $this->message = $var; - - return $this; - } - - /** - * The type of the event. - * - * Generated from protobuf field .google.cloud.dataplex.v1.EntryLinkEvent.EventType event_type = 2; - * @return int - */ - public function getEventType() - { - return $this->event_type; - } - - /** - * The type of the event. - * - * Generated from protobuf field .google.cloud.dataplex.v1.EntryLinkEvent.EventType event_type = 2; - * @param int $var - * @return $this - */ - public function setEventType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\EntryLinkEvent\EventType::class); - $this->event_type = $var; - - return $this; - } - - /** - * Name of the resource. - * - * Generated from protobuf field string resource = 3; - * @return string - */ - public function getResource() - { - return $this->resource; - } - - /** - * Name of the resource. - * - * Generated from protobuf field string resource = 3; - * @param string $var - * @return $this - */ - public function setResource($var) - { - GPBUtil::checkString($var, True); - $this->resource = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryLinkEvent/EventType.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryLinkEvent/EventType.php deleted file mode 100644 index 176622c58042..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryLinkEvent/EventType.php +++ /dev/null @@ -1,61 +0,0 @@ -google.cloud.dataplex.v1.EntryLinkEvent.EventType - */ -class EventType -{ - /** - * An unspecified event type. - * - * Generated from protobuf enum EVENT_TYPE_UNSPECIFIED = 0; - */ - const EVENT_TYPE_UNSPECIFIED = 0; - /** - * EntryLink create event. - * - * Generated from protobuf enum ENTRY_LINK_CREATE = 1; - */ - const ENTRY_LINK_CREATE = 1; - /** - * EntryLink delete event. - * - * Generated from protobuf enum ENTRY_LINK_DELETE = 2; - */ - const ENTRY_LINK_DELETE = 2; - - private static $valueToName = [ - self::EVENT_TYPE_UNSPECIFIED => 'EVENT_TYPE_UNSPECIFIED', - self::ENTRY_LINK_CREATE => 'ENTRY_LINK_CREATE', - self::ENTRY_LINK_DELETE => 'ENTRY_LINK_DELETE', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntrySource.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntrySource.php deleted file mode 100644 index 7209036837ad..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntrySource.php +++ /dev/null @@ -1,446 +0,0 @@ -google.cloud.dataplex.v1.EntrySource - */ -class EntrySource extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the resource in the source system. - * Maximum length is 4,000 characters. - * - * Generated from protobuf field string resource = 1; - */ - protected $resource = ''; - /** - * The name of the source system. - * Maximum length is 64 characters. - * - * Generated from protobuf field string system = 2; - */ - protected $system = ''; - /** - * The platform containing the source system. - * Maximum length is 64 characters. - * - * Generated from protobuf field string platform = 3; - */ - protected $platform = ''; - /** - * A user-friendly display name. - * Maximum length is 500 characters. - * - * Generated from protobuf field string display_name = 5; - */ - protected $display_name = ''; - /** - * A description of the data resource. - * Maximum length is 2,000 characters. - * - * Generated from protobuf field string description = 6; - */ - protected $description = ''; - /** - * User-defined labels. - * The maximum size of keys and values is 128 characters each. - * - * Generated from protobuf field map labels = 7; - */ - private $labels; - /** - * Immutable. The entries representing the ancestors of the data resource in - * the source system. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.EntrySource.Ancestor ancestors = 9 [(.google.api.field_behavior) = IMMUTABLE]; - */ - private $ancestors; - /** - * The time when the resource was created in the source system. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 10; - */ - protected $create_time = null; - /** - * The time when the resource was last updated in the source system. If the - * entry exists in the system and its `EntrySource` has `update_time` - * populated, further updates to the `EntrySource` of the entry must provide - * incremental updates to its `update_time`. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 11; - */ - protected $update_time = null; - /** - * Output only. Location of the resource in the source system. You can search - * the entry by this location. By default, this should match the location of - * the entry group containing this entry. A different value allows capturing - * the source location for data external to Google Cloud. - * - * Generated from protobuf field string location = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $location = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $resource - * The name of the resource in the source system. - * Maximum length is 4,000 characters. - * @type string $system - * The name of the source system. - * Maximum length is 64 characters. - * @type string $platform - * The platform containing the source system. - * Maximum length is 64 characters. - * @type string $display_name - * A user-friendly display name. - * Maximum length is 500 characters. - * @type string $description - * A description of the data resource. - * Maximum length is 2,000 characters. - * @type array|\Google\Protobuf\Internal\MapField $labels - * User-defined labels. - * The maximum size of keys and values is 128 characters each. - * @type \Google\Cloud\Dataplex\V1\EntrySource\Ancestor[] $ancestors - * Immutable. The entries representing the ancestors of the data resource in - * the source system. - * @type \Google\Protobuf\Timestamp $create_time - * The time when the resource was created in the source system. - * @type \Google\Protobuf\Timestamp $update_time - * The time when the resource was last updated in the source system. If the - * entry exists in the system and its `EntrySource` has `update_time` - * populated, further updates to the `EntrySource` of the entry must provide - * incremental updates to its `update_time`. - * @type string $location - * Output only. Location of the resource in the source system. You can search - * the entry by this location. By default, this should match the location of - * the entry group containing this entry. A different value allows capturing - * the source location for data external to Google Cloud. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * The name of the resource in the source system. - * Maximum length is 4,000 characters. - * - * Generated from protobuf field string resource = 1; - * @return string - */ - public function getResource() - { - return $this->resource; - } - - /** - * The name of the resource in the source system. - * Maximum length is 4,000 characters. - * - * Generated from protobuf field string resource = 1; - * @param string $var - * @return $this - */ - public function setResource($var) - { - GPBUtil::checkString($var, True); - $this->resource = $var; - - return $this; - } - - /** - * The name of the source system. - * Maximum length is 64 characters. - * - * Generated from protobuf field string system = 2; - * @return string - */ - public function getSystem() - { - return $this->system; - } - - /** - * The name of the source system. - * Maximum length is 64 characters. - * - * Generated from protobuf field string system = 2; - * @param string $var - * @return $this - */ - public function setSystem($var) - { - GPBUtil::checkString($var, True); - $this->system = $var; - - return $this; - } - - /** - * The platform containing the source system. - * Maximum length is 64 characters. - * - * Generated from protobuf field string platform = 3; - * @return string - */ - public function getPlatform() - { - return $this->platform; - } - - /** - * The platform containing the source system. - * Maximum length is 64 characters. - * - * Generated from protobuf field string platform = 3; - * @param string $var - * @return $this - */ - public function setPlatform($var) - { - GPBUtil::checkString($var, True); - $this->platform = $var; - - return $this; - } - - /** - * A user-friendly display name. - * Maximum length is 500 characters. - * - * Generated from protobuf field string display_name = 5; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * A user-friendly display name. - * Maximum length is 500 characters. - * - * Generated from protobuf field string display_name = 5; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * A description of the data resource. - * Maximum length is 2,000 characters. - * - * Generated from protobuf field string description = 6; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * A description of the data resource. - * Maximum length is 2,000 characters. - * - * Generated from protobuf field string description = 6; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * User-defined labels. - * The maximum size of keys and values is 128 characters each. - * - * Generated from protobuf field map labels = 7; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * User-defined labels. - * The maximum size of keys and values is 128 characters each. - * - * Generated from protobuf field map labels = 7; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Immutable. The entries representing the ancestors of the data resource in - * the source system. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.EntrySource.Ancestor ancestors = 9 [(.google.api.field_behavior) = IMMUTABLE]; - * @return RepeatedField<\Google\Cloud\Dataplex\V1\EntrySource\Ancestor> - */ - public function getAncestors() - { - return $this->ancestors; - } - - /** - * Immutable. The entries representing the ancestors of the data resource in - * the source system. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.EntrySource.Ancestor ancestors = 9 [(.google.api.field_behavior) = IMMUTABLE]; - * @param \Google\Cloud\Dataplex\V1\EntrySource\Ancestor[] $var - * @return $this - */ - public function setAncestors($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\EntrySource\Ancestor::class); - $this->ancestors = $arr; - - return $this; - } - - /** - * The time when the resource was created in the source system. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 10; - * @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 time when the resource was created in the source system. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 10; - * @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 time when the resource was last updated in the source system. If the - * entry exists in the system and its `EntrySource` has `update_time` - * populated, further updates to the `EntrySource` of the entry must provide - * incremental updates to its `update_time`. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 11; - * @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 time when the resource was last updated in the source system. If the - * entry exists in the system and its `EntrySource` has `update_time` - * populated, further updates to the `EntrySource` of the entry must provide - * incremental updates to its `update_time`. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 11; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Output only. Location of the resource in the source system. You can search - * the entry by this location. By default, this should match the location of - * the entry group containing this entry. A different value allows capturing - * the source location for data external to Google Cloud. - * - * Generated from protobuf field string location = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * Output only. Location of the resource in the source system. You can search - * the entry by this location. By default, this should match the location of - * the entry group containing this entry. A different value allows capturing - * the source location for data external to Google Cloud. - * - * Generated from protobuf field string location = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntrySource/Ancestor.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntrySource/Ancestor.php deleted file mode 100644 index 23799acc1eb5..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntrySource/Ancestor.php +++ /dev/null @@ -1,102 +0,0 @@ -google.cloud.dataplex.v1.EntrySource.Ancestor - */ -class Ancestor extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The name of the ancestor resource. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $name = ''; - /** - * Optional. The type of the ancestor resource. - * - * Generated from protobuf field string type = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $type = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Optional. The name of the ancestor resource. - * @type string $type - * Optional. The type of the ancestor resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The name of the ancestor resource. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Optional. The name of the ancestor resource. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. The type of the ancestor resource. - * - * Generated from protobuf field string type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * Optional. The type of the ancestor resource. - * - * Generated from protobuf field string type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkString($var, True); - $this->type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryType.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryType.php deleted file mode 100644 index a3b4423ec8b3..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryType.php +++ /dev/null @@ -1,533 +0,0 @@ -google.cloud.dataplex.v1.EntryType - */ -class EntryType extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The relative resource name of the EntryType, of the form: - * projects/{project_number}/locations/{location_id}/entryTypes/{entry_type_id}. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Output only. System generated globally unique ID for the EntryType. This ID - * will be different if the EntryType is deleted and re-created with the same - * name. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $uid = ''; - /** - * Output only. The time when the EntryType was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time when the EntryType was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Optional. Description of the EntryType. - * - * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Optional. User friendly display name. - * - * Generated from protobuf field string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $display_name = ''; - /** - * Optional. User-defined labels for the EntryType. - * - * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $labels; - /** - * Optional. This checksum is computed by the service, and might be sent on - * update and delete requests to ensure the client has an up-to-date value - * before proceeding. - * - * Generated from protobuf field string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $etag = ''; - /** - * Optional. Indicates the classes this Entry Type belongs to, for example, - * TABLE, DATABASE, MODEL. - * - * Generated from protobuf field repeated string type_aliases = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $type_aliases; - /** - * Optional. The platform that Entries of this type belongs to. - * - * Generated from protobuf field string platform = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $platform = ''; - /** - * Optional. The system that Entries of this type belongs to. Examples include - * CloudSQL, MariaDB etc - * - * Generated from protobuf field string system = 11 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $system = ''; - /** - * AspectInfo for the entry type. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.EntryType.AspectInfo required_aspects = 50; - */ - private $required_aspects; - /** - * Immutable. Authorization defined for this type. - * - * Generated from protobuf field .google.cloud.dataplex.v1.EntryType.Authorization authorization = 51 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $authorization = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. The relative resource name of the EntryType, of the form: - * projects/{project_number}/locations/{location_id}/entryTypes/{entry_type_id}. - * @type string $uid - * Output only. System generated globally unique ID for the EntryType. This ID - * will be different if the EntryType is deleted and re-created with the same - * name. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time when the EntryType was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time when the EntryType was last updated. - * @type string $description - * Optional. Description of the EntryType. - * @type string $display_name - * Optional. User friendly display name. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Optional. User-defined labels for the EntryType. - * @type string $etag - * Optional. This checksum is computed by the service, and might be sent on - * update and delete requests to ensure the client has an up-to-date value - * before proceeding. - * @type string[] $type_aliases - * Optional. Indicates the classes this Entry Type belongs to, for example, - * TABLE, DATABASE, MODEL. - * @type string $platform - * Optional. The platform that Entries of this type belongs to. - * @type string $system - * Optional. The system that Entries of this type belongs to. Examples include - * CloudSQL, MariaDB etc - * @type \Google\Cloud\Dataplex\V1\EntryType\AspectInfo[] $required_aspects - * AspectInfo for the entry type. - * @type \Google\Cloud\Dataplex\V1\EntryType\Authorization $authorization - * Immutable. Authorization defined for this type. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The relative resource name of the EntryType, of the form: - * projects/{project_number}/locations/{location_id}/entryTypes/{entry_type_id}. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The relative resource name of the EntryType, of the form: - * projects/{project_number}/locations/{location_id}/entryTypes/{entry_type_id}. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. System generated globally unique ID for the EntryType. This ID - * will be different if the EntryType is deleted and re-created with the same - * name. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. System generated globally unique ID for the EntryType. This ID - * will be different if the EntryType is deleted and re-created with the same - * name. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Output only. The time when the EntryType was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The time when the EntryType was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The time when the EntryType was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The time when the EntryType was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Optional. Description of the EntryType. - * - * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. Description of the EntryType. - * - * 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; - } - - /** - * Optional. User friendly display name. - * - * Generated from protobuf field string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Optional. User friendly display name. - * - * Generated from protobuf field string display_name = 6 [(.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. User-defined labels for the EntryType. - * - * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Optional. User-defined labels for the EntryType. - * - * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Optional. This checksum is computed by the service, and might be sent on - * update and delete requests to ensure the client has an up-to-date value - * before proceeding. - * - * Generated from protobuf field string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Optional. This checksum is computed by the service, and might be sent on - * update and delete requests to ensure the client has an up-to-date value - * before proceeding. - * - * Generated from protobuf field string etag = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Optional. Indicates the classes this Entry Type belongs to, for example, - * TABLE, DATABASE, MODEL. - * - * Generated from protobuf field repeated string type_aliases = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getTypeAliases() - { - return $this->type_aliases; - } - - /** - * Optional. Indicates the classes this Entry Type belongs to, for example, - * TABLE, DATABASE, MODEL. - * - * Generated from protobuf field repeated string type_aliases = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setTypeAliases($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->type_aliases = $arr; - - return $this; - } - - /** - * Optional. The platform that Entries of this type belongs to. - * - * Generated from protobuf field string platform = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPlatform() - { - return $this->platform; - } - - /** - * Optional. The platform that Entries of this type belongs to. - * - * Generated from protobuf field string platform = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPlatform($var) - { - GPBUtil::checkString($var, True); - $this->platform = $var; - - return $this; - } - - /** - * Optional. The system that Entries of this type belongs to. Examples include - * CloudSQL, MariaDB etc - * - * Generated from protobuf field string system = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getSystem() - { - return $this->system; - } - - /** - * Optional. The system that Entries of this type belongs to. Examples include - * CloudSQL, MariaDB etc - * - * Generated from protobuf field string system = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setSystem($var) - { - GPBUtil::checkString($var, True); - $this->system = $var; - - return $this; - } - - /** - * AspectInfo for the entry type. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.EntryType.AspectInfo required_aspects = 50; - * @return RepeatedField<\Google\Cloud\Dataplex\V1\EntryType\AspectInfo> - */ - public function getRequiredAspects() - { - return $this->required_aspects; - } - - /** - * AspectInfo for the entry type. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.EntryType.AspectInfo required_aspects = 50; - * @param \Google\Cloud\Dataplex\V1\EntryType\AspectInfo[] $var - * @return $this - */ - public function setRequiredAspects($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\EntryType\AspectInfo::class); - $this->required_aspects = $arr; - - return $this; - } - - /** - * Immutable. Authorization defined for this type. - * - * Generated from protobuf field .google.cloud.dataplex.v1.EntryType.Authorization authorization = 51 [(.google.api.field_behavior) = IMMUTABLE]; - * @return \Google\Cloud\Dataplex\V1\EntryType\Authorization|null - */ - public function getAuthorization() - { - return $this->authorization; - } - - public function hasAuthorization() - { - return isset($this->authorization); - } - - public function clearAuthorization() - { - unset($this->authorization); - } - - /** - * Immutable. Authorization defined for this type. - * - * Generated from protobuf field .google.cloud.dataplex.v1.EntryType.Authorization authorization = 51 [(.google.api.field_behavior) = IMMUTABLE]; - * @param \Google\Cloud\Dataplex\V1\EntryType\Authorization $var - * @return $this - */ - public function setAuthorization($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\EntryType\Authorization::class); - $this->authorization = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryType/AspectInfo.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryType/AspectInfo.php deleted file mode 100644 index e848732582d0..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryType/AspectInfo.php +++ /dev/null @@ -1,65 +0,0 @@ -google.cloud.dataplex.v1.EntryType.AspectInfo - */ -class AspectInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Required aspect type for the entry type. - * - * Generated from protobuf field string type = 1 [(.google.api.resource_reference) = { - */ - protected $type = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $type - * Required aspect type for the entry type. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Required aspect type for the entry type. - * - * Generated from protobuf field string type = 1 [(.google.api.resource_reference) = { - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * Required aspect type for the entry type. - * - * Generated from protobuf field string type = 1 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkString($var, True); - $this->type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryType/Authorization.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryType/Authorization.php deleted file mode 100644 index 67511cde1b9c..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryType/Authorization.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.dataplex.v1.EntryType.Authorization - */ -class Authorization extends \Google\Protobuf\Internal\Message -{ - /** - * Immutable. The IAM permission grantable on the Entry Group to allow - * access to instantiate Entries of Dataplex Universal Catalog owned Entry - * Types, only settable for Dataplex Universal Catalog owned Types. - * - * Generated from protobuf field string alternate_use_permission = 1 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $alternate_use_permission = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $alternate_use_permission - * Immutable. The IAM permission grantable on the Entry Group to allow - * access to instantiate Entries of Dataplex Universal Catalog owned Entry - * Types, only settable for Dataplex Universal Catalog owned Types. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Immutable. The IAM permission grantable on the Entry Group to allow - * access to instantiate Entries of Dataplex Universal Catalog owned Entry - * Types, only settable for Dataplex Universal Catalog owned Types. - * - * Generated from protobuf field string alternate_use_permission = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getAlternateUsePermission() - { - return $this->alternate_use_permission; - } - - /** - * Immutable. The IAM permission grantable on the Entry Group to allow - * access to instantiate Entries of Dataplex Universal Catalog owned Entry - * Types, only settable for Dataplex Universal Catalog owned Types. - * - * Generated from protobuf field string alternate_use_permission = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setAlternateUsePermission($var) - { - GPBUtil::checkString($var, True); - $this->alternate_use_permission = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryView.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryView.php deleted file mode 100644 index b3cb7b133f2f..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/EntryView.php +++ /dev/null @@ -1,78 +0,0 @@ -google.cloud.dataplex.v1.EntryView - */ -class EntryView -{ - /** - * Unspecified EntryView. Defaults to FULL. - * - * Generated from protobuf enum ENTRY_VIEW_UNSPECIFIED = 0; - */ - const ENTRY_VIEW_UNSPECIFIED = 0; - /** - * Returns entry only, without aspects. - * - * Generated from protobuf enum BASIC = 1; - */ - const BASIC = 1; - /** - * Returns all required aspects as well as the keys of all non-required - * aspects. - * - * Generated from protobuf enum FULL = 2; - */ - const FULL = 2; - /** - * Returns aspects matching custom fields in GetEntryRequest. If the number of - * aspects exceeds 100, the first 100 will be returned. - * - * Generated from protobuf enum CUSTOM = 3; - */ - const CUSTOM = 3; - /** - * Returns all aspects. If the number of aspects exceeds 100, the first - * 100 will be returned. - * - * Generated from protobuf enum ALL = 4; - */ - const ALL = 4; - - private static $valueToName = [ - self::ENTRY_VIEW_UNSPECIFIED => 'ENTRY_VIEW_UNSPECIFIED', - self::BASIC => 'BASIC', - self::FULL => 'FULL', - self::CUSTOM => 'CUSTOM', - self::ALL => 'ALL', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment.php deleted file mode 100644 index d022d8c6b308..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment.php +++ /dev/null @@ -1,518 +0,0 @@ -google.cloud.dataplex.v1.Environment - */ -class Environment extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The relative resource name of the environment, of the form: - * projects/{project_id}/locations/{location_id}/lakes/{lake_id}/environment/{environment_id} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. User friendly display name. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $display_name = ''; - /** - * Output only. System generated globally unique ID for the environment. This - * ID will be different if the environment is deleted and re-created with the - * same name. - * - * Generated from protobuf field string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $uid = ''; - /** - * Output only. Environment creation time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time when the environment was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Optional. User defined labels for the environment. - * - * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $labels; - /** - * Optional. Description of the environment. - * - * Generated from protobuf field string description = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Output only. Current state of the environment. - * - * Generated from protobuf field .google.cloud.dataplex.v1.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Required. Infrastructure specification for the Environment. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Environment.InfrastructureSpec infrastructure_spec = 100 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $infrastructure_spec = null; - /** - * Optional. Configuration for sessions created for this environment. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Environment.SessionSpec session_spec = 101 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $session_spec = null; - /** - * Output only. Status of sessions created for this environment. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Environment.SessionStatus session_status = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $session_status = null; - /** - * Output only. URI Endpoints to access sessions associated with the - * Environment. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Environment.Endpoints endpoints = 200 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $endpoints = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. The relative resource name of the environment, of the form: - * projects/{project_id}/locations/{location_id}/lakes/{lake_id}/environment/{environment_id} - * @type string $display_name - * Optional. User friendly display name. - * @type string $uid - * Output only. System generated globally unique ID for the environment. This - * ID will be different if the environment is deleted and re-created with the - * same name. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Environment creation time. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time when the environment was last updated. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Optional. User defined labels for the environment. - * @type string $description - * Optional. Description of the environment. - * @type int $state - * Output only. Current state of the environment. - * @type \Google\Cloud\Dataplex\V1\Environment\InfrastructureSpec $infrastructure_spec - * Required. Infrastructure specification for the Environment. - * @type \Google\Cloud\Dataplex\V1\Environment\SessionSpec $session_spec - * Optional. Configuration for sessions created for this environment. - * @type \Google\Cloud\Dataplex\V1\Environment\SessionStatus $session_status - * Output only. Status of sessions created for this environment. - * @type \Google\Cloud\Dataplex\V1\Environment\Endpoints $endpoints - * Output only. URI Endpoints to access sessions associated with the - * Environment. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Analyze::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The relative resource name of the environment, of the form: - * projects/{project_id}/locations/{location_id}/lakes/{lake_id}/environment/{environment_id} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The relative resource name of the environment, of the form: - * projects/{project_id}/locations/{location_id}/lakes/{lake_id}/environment/{environment_id} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. User friendly display name. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Optional. User friendly display name. - * - * 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; - } - - /** - * Output only. System generated globally unique ID for the environment. This - * ID will be different if the environment is deleted and re-created with the - * same name. - * - * Generated from protobuf field string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. System generated globally unique ID for the environment. This - * ID will be different if the environment is deleted and re-created with the - * same name. - * - * Generated from protobuf field string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Output only. Environment creation time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.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. Environment creation time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.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 environment was last updated. - * - * 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 time when the environment was last updated. - * - * 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. User defined labels for the environment. - * - * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Optional. User defined labels for the environment. - * - * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Optional. Description of the environment. - * - * Generated from protobuf field string description = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. Description of the environment. - * - * Generated from protobuf field string description = 7 [(.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. Current state of the environment. - * - * Generated from protobuf field .google.cloud.dataplex.v1.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. Current state of the environment. - * - * Generated from protobuf field .google.cloud.dataplex.v1.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\State::class); - $this->state = $var; - - return $this; - } - - /** - * Required. Infrastructure specification for the Environment. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Environment.InfrastructureSpec infrastructure_spec = 100 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataplex\V1\Environment\InfrastructureSpec|null - */ - public function getInfrastructureSpec() - { - return $this->infrastructure_spec; - } - - public function hasInfrastructureSpec() - { - return isset($this->infrastructure_spec); - } - - public function clearInfrastructureSpec() - { - unset($this->infrastructure_spec); - } - - /** - * Required. Infrastructure specification for the Environment. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Environment.InfrastructureSpec infrastructure_spec = 100 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\Environment\InfrastructureSpec $var - * @return $this - */ - public function setInfrastructureSpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Environment\InfrastructureSpec::class); - $this->infrastructure_spec = $var; - - return $this; - } - - /** - * Optional. Configuration for sessions created for this environment. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Environment.SessionSpec session_spec = 101 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dataplex\V1\Environment\SessionSpec|null - */ - public function getSessionSpec() - { - return $this->session_spec; - } - - public function hasSessionSpec() - { - return isset($this->session_spec); - } - - public function clearSessionSpec() - { - unset($this->session_spec); - } - - /** - * Optional. Configuration for sessions created for this environment. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Environment.SessionSpec session_spec = 101 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataplex\V1\Environment\SessionSpec $var - * @return $this - */ - public function setSessionSpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Environment\SessionSpec::class); - $this->session_spec = $var; - - return $this; - } - - /** - * Output only. Status of sessions created for this environment. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Environment.SessionStatus session_status = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataplex\V1\Environment\SessionStatus|null - */ - public function getSessionStatus() - { - return $this->session_status; - } - - public function hasSessionStatus() - { - return isset($this->session_status); - } - - public function clearSessionStatus() - { - unset($this->session_status); - } - - /** - * Output only. Status of sessions created for this environment. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Environment.SessionStatus session_status = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\Environment\SessionStatus $var - * @return $this - */ - public function setSessionStatus($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Environment\SessionStatus::class); - $this->session_status = $var; - - return $this; - } - - /** - * Output only. URI Endpoints to access sessions associated with the - * Environment. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Environment.Endpoints endpoints = 200 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataplex\V1\Environment\Endpoints|null - */ - public function getEndpoints() - { - return $this->endpoints; - } - - public function hasEndpoints() - { - return isset($this->endpoints); - } - - public function clearEndpoints() - { - unset($this->endpoints); - } - - /** - * Output only. URI Endpoints to access sessions associated with the - * Environment. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Environment.Endpoints endpoints = 200 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\Environment\Endpoints $var - * @return $this - */ - public function setEndpoints($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Environment\Endpoints::class); - $this->endpoints = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment/Endpoints.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment/Endpoints.php deleted file mode 100644 index 0223c47e35ac..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment/Endpoints.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.dataplex.v1.Environment.Endpoints - */ -class Endpoints extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. URI to serve notebook APIs - * - * Generated from protobuf field string notebooks = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $notebooks = ''; - /** - * Output only. URI to serve SQL APIs - * - * Generated from protobuf field string sql = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $sql = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $notebooks - * Output only. URI to serve notebook APIs - * @type string $sql - * Output only. URI to serve SQL APIs - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Analyze::initOnce(); - parent::__construct($data); - } - - /** - * Output only. URI to serve notebook APIs - * - * Generated from protobuf field string notebooks = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getNotebooks() - { - return $this->notebooks; - } - - /** - * Output only. URI to serve notebook APIs - * - * Generated from protobuf field string notebooks = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setNotebooks($var) - { - GPBUtil::checkString($var, True); - $this->notebooks = $var; - - return $this; - } - - /** - * Output only. URI to serve SQL APIs - * - * Generated from protobuf field string sql = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getSql() - { - return $this->sql; - } - - /** - * Output only. URI to serve SQL APIs - * - * Generated from protobuf field string sql = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setSql($var) - { - GPBUtil::checkString($var, True); - $this->sql = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment/InfrastructureSpec.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment/InfrastructureSpec.php deleted file mode 100644 index f5418db3a776..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment/InfrastructureSpec.php +++ /dev/null @@ -1,120 +0,0 @@ -google.cloud.dataplex.v1.Environment.InfrastructureSpec - */ -class InfrastructureSpec extends \Google\Protobuf\Internal\Message -{ - protected $resources; - protected $runtime; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\Environment\InfrastructureSpec\ComputeResources $compute - * Optional. Compute resources needed for analyze interactive workloads. - * @type \Google\Cloud\Dataplex\V1\Environment\InfrastructureSpec\OsImageRuntime $os_image - * Required. Software Runtime Configuration for analyze interactive - * workloads. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Analyze::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Compute resources needed for analyze interactive workloads. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources compute = 50 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dataplex\V1\Environment\InfrastructureSpec\ComputeResources|null - */ - public function getCompute() - { - return $this->readOneof(50); - } - - public function hasCompute() - { - return $this->hasOneof(50); - } - - /** - * Optional. Compute resources needed for analyze interactive workloads. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources compute = 50 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataplex\V1\Environment\InfrastructureSpec\ComputeResources $var - * @return $this - */ - public function setCompute($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Environment\InfrastructureSpec\ComputeResources::class); - $this->writeOneof(50, $var); - - return $this; - } - - /** - * Required. Software Runtime Configuration for analyze interactive - * workloads. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime os_image = 100 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataplex\V1\Environment\InfrastructureSpec\OsImageRuntime|null - */ - public function getOsImage() - { - return $this->readOneof(100); - } - - public function hasOsImage() - { - return $this->hasOneof(100); - } - - /** - * Required. Software Runtime Configuration for analyze interactive - * workloads. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime os_image = 100 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\Environment\InfrastructureSpec\OsImageRuntime $var - * @return $this - */ - public function setOsImage($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Environment\InfrastructureSpec\OsImageRuntime::class); - $this->writeOneof(100, $var); - - return $this; - } - - /** - * @return string - */ - public function getResources() - { - return $this->whichOneof("resources"); - } - - /** - * @return string - */ - public function getRuntime() - { - return $this->whichOneof("runtime"); - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment/InfrastructureSpec/ComputeResources.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment/InfrastructureSpec/ComputeResources.php deleted file mode 100644 index d76cd1a01fec..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment/InfrastructureSpec/ComputeResources.php +++ /dev/null @@ -1,143 +0,0 @@ -google.cloud.dataplex.v1.Environment.InfrastructureSpec.ComputeResources - */ -class ComputeResources extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Size in GB of the disk. Default is 100 GB. - * - * Generated from protobuf field int32 disk_size_gb = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $disk_size_gb = 0; - /** - * Optional. Total number of nodes in the sessions created for this - * environment. - * - * Generated from protobuf field int32 node_count = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $node_count = 0; - /** - * Optional. Max configurable nodes. - * If max_node_count > node_count, then auto-scaling is enabled. - * - * Generated from protobuf field int32 max_node_count = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $max_node_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $disk_size_gb - * Optional. Size in GB of the disk. Default is 100 GB. - * @type int $node_count - * Optional. Total number of nodes in the sessions created for this - * environment. - * @type int $max_node_count - * Optional. Max configurable nodes. - * If max_node_count > node_count, then auto-scaling is enabled. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Analyze::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Size in GB of the disk. Default is 100 GB. - * - * Generated from protobuf field int32 disk_size_gb = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getDiskSizeGb() - { - return $this->disk_size_gb; - } - - /** - * Optional. Size in GB of the disk. Default is 100 GB. - * - * Generated from protobuf field int32 disk_size_gb = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setDiskSizeGb($var) - { - GPBUtil::checkInt32($var); - $this->disk_size_gb = $var; - - return $this; - } - - /** - * Optional. Total number of nodes in the sessions created for this - * environment. - * - * Generated from protobuf field int32 node_count = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getNodeCount() - { - return $this->node_count; - } - - /** - * Optional. Total number of nodes in the sessions created for this - * environment. - * - * Generated from protobuf field int32 node_count = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setNodeCount($var) - { - GPBUtil::checkInt32($var); - $this->node_count = $var; - - return $this; - } - - /** - * Optional. Max configurable nodes. - * If max_node_count > node_count, then auto-scaling is enabled. - * - * Generated from protobuf field int32 max_node_count = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getMaxNodeCount() - { - return $this->max_node_count; - } - - /** - * Optional. Max configurable nodes. - * If max_node_count > node_count, then auto-scaling is enabled. - * - * Generated from protobuf field int32 max_node_count = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setMaxNodeCount($var) - { - GPBUtil::checkInt32($var); - $this->max_node_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment/InfrastructureSpec/OsImageRuntime.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment/InfrastructureSpec/OsImageRuntime.php deleted file mode 100644 index 6dcd3d32cb4a..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment/InfrastructureSpec/OsImageRuntime.php +++ /dev/null @@ -1,197 +0,0 @@ -google.cloud.dataplex.v1.Environment.InfrastructureSpec.OsImageRuntime - */ -class OsImageRuntime extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Dataplex Universal Catalog Image version. - * - * Generated from protobuf field string image_version = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $image_version = ''; - /** - * Optional. List of Java jars to be included in the runtime environment. - * Valid input includes Cloud Storage URIs to Jar binaries. - * For example, gs://bucket-name/my/path/to/file.jar - * - * Generated from protobuf field repeated string java_libraries = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $java_libraries; - /** - * Optional. A list of python packages to be installed. - * Valid formats include Cloud Storage URI to a PIP installable library. - * For example, gs://bucket-name/my/path/to/lib.tar.gz - * - * Generated from protobuf field repeated string python_packages = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $python_packages; - /** - * Optional. Spark properties to provide configuration for use in sessions - * created for this environment. The properties to set on daemon config - * files. Property keys are specified in `prefix:property` format. The - * prefix must be "spark". - * - * Generated from protobuf field map properties = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $properties; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $image_version - * Required. Dataplex Universal Catalog Image version. - * @type string[] $java_libraries - * Optional. List of Java jars to be included in the runtime environment. - * Valid input includes Cloud Storage URIs to Jar binaries. - * For example, gs://bucket-name/my/path/to/file.jar - * @type string[] $python_packages - * Optional. A list of python packages to be installed. - * Valid formats include Cloud Storage URI to a PIP installable library. - * For example, gs://bucket-name/my/path/to/lib.tar.gz - * @type array|\Google\Protobuf\Internal\MapField $properties - * Optional. Spark properties to provide configuration for use in sessions - * created for this environment. The properties to set on daemon config - * files. Property keys are specified in `prefix:property` format. The - * prefix must be "spark". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Analyze::initOnce(); - parent::__construct($data); - } - - /** - * Required. Dataplex Universal Catalog Image version. - * - * Generated from protobuf field string image_version = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getImageVersion() - { - return $this->image_version; - } - - /** - * Required. Dataplex Universal Catalog Image version. - * - * Generated from protobuf field string image_version = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setImageVersion($var) - { - GPBUtil::checkString($var, True); - $this->image_version = $var; - - return $this; - } - - /** - * Optional. List of Java jars to be included in the runtime environment. - * Valid input includes Cloud Storage URIs to Jar binaries. - * For example, gs://bucket-name/my/path/to/file.jar - * - * Generated from protobuf field repeated string java_libraries = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getJavaLibraries() - { - return $this->java_libraries; - } - - /** - * Optional. List of Java jars to be included in the runtime environment. - * Valid input includes Cloud Storage URIs to Jar binaries. - * For example, gs://bucket-name/my/path/to/file.jar - * - * Generated from protobuf field repeated string java_libraries = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setJavaLibraries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->java_libraries = $arr; - - return $this; - } - - /** - * Optional. A list of python packages to be installed. - * Valid formats include Cloud Storage URI to a PIP installable library. - * For example, gs://bucket-name/my/path/to/lib.tar.gz - * - * Generated from protobuf field repeated string python_packages = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getPythonPackages() - { - return $this->python_packages; - } - - /** - * Optional. A list of python packages to be installed. - * Valid formats include Cloud Storage URI to a PIP installable library. - * For example, gs://bucket-name/my/path/to/lib.tar.gz - * - * Generated from protobuf field repeated string python_packages = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setPythonPackages($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->python_packages = $arr; - - return $this; - } - - /** - * Optional. Spark properties to provide configuration for use in sessions - * created for this environment. The properties to set on daemon config - * files. Property keys are specified in `prefix:property` format. The - * prefix must be "spark". - * - * Generated from protobuf field map properties = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getProperties() - { - return $this->properties; - } - - /** - * Optional. Spark properties to provide configuration for use in sessions - * created for this environment. The properties to set on daemon config - * files. Property keys are specified in `prefix:property` format. The - * prefix must be "spark". - * - * Generated from protobuf field map properties = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setProperties($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->properties = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment/SessionSpec.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment/SessionSpec.php deleted file mode 100644 index 288498530d75..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment/SessionSpec.php +++ /dev/null @@ -1,131 +0,0 @@ -google.cloud.dataplex.v1.Environment.SessionSpec - */ -class SessionSpec extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The idle time configuration of the session. The session will be - * auto-terminated at the end of this period. - * - * Generated from protobuf field .google.protobuf.Duration max_idle_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $max_idle_duration = null; - /** - * Optional. If True, this causes sessions to be pre-created and available - * for faster startup to enable interactive exploration use-cases. This - * defaults to False to avoid additional billed charges. These can only be - * set to True for the environment with name set to "default", and with - * default configuration. - * - * Generated from protobuf field bool enable_fast_startup = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $enable_fast_startup = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Duration $max_idle_duration - * Optional. The idle time configuration of the session. The session will be - * auto-terminated at the end of this period. - * @type bool $enable_fast_startup - * Optional. If True, this causes sessions to be pre-created and available - * for faster startup to enable interactive exploration use-cases. This - * defaults to False to avoid additional billed charges. These can only be - * set to True for the environment with name set to "default", and with - * default configuration. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Analyze::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The idle time configuration of the session. The session will be - * auto-terminated at the end of this period. - * - * Generated from protobuf field .google.protobuf.Duration max_idle_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Duration|null - */ - public function getMaxIdleDuration() - { - return $this->max_idle_duration; - } - - public function hasMaxIdleDuration() - { - return isset($this->max_idle_duration); - } - - public function clearMaxIdleDuration() - { - unset($this->max_idle_duration); - } - - /** - * Optional. The idle time configuration of the session. The session will be - * auto-terminated at the end of this period. - * - * Generated from protobuf field .google.protobuf.Duration max_idle_duration = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setMaxIdleDuration($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->max_idle_duration = $var; - - return $this; - } - - /** - * Optional. If True, this causes sessions to be pre-created and available - * for faster startup to enable interactive exploration use-cases. This - * defaults to False to avoid additional billed charges. These can only be - * set to True for the environment with name set to "default", and with - * default configuration. - * - * Generated from protobuf field bool enable_fast_startup = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getEnableFastStartup() - { - return $this->enable_fast_startup; - } - - /** - * Optional. If True, this causes sessions to be pre-created and available - * for faster startup to enable interactive exploration use-cases. This - * defaults to False to avoid additional billed charges. These can only be - * set to True for the environment with name set to "default", and with - * default configuration. - * - * Generated from protobuf field bool enable_fast_startup = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setEnableFastStartup($var) - { - GPBUtil::checkBool($var); - $this->enable_fast_startup = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment/SessionStatus.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment/SessionStatus.php deleted file mode 100644 index 067299e6ebb6..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Environment/SessionStatus.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.dataplex.v1.Environment.SessionStatus - */ -class SessionStatus extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Queries over sessions to mark whether the environment is - * currently active or not - * - * Generated from protobuf field bool active = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $active = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $active - * Output only. Queries over sessions to mark whether the environment is - * currently active or not - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Analyze::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Queries over sessions to mark whether the environment is - * currently active or not - * - * Generated from protobuf field bool active = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getActive() - { - return $this->active; - } - - /** - * Output only. Queries over sessions to mark whether the environment is - * currently active or not - * - * Generated from protobuf field bool active = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setActive($var) - { - GPBUtil::checkBool($var); - $this->active = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GenerateDataQualityRulesRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GenerateDataQualityRulesRequest.php deleted file mode 100644 index ee94cc9fab3f..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GenerateDataQualityRulesRequest.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.dataplex.v1.GenerateDataQualityRulesRequest - */ -class GenerateDataQualityRulesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name must be one of the following: - * * The name of a data scan with at least one successful, completed data - * profiling job - * * The name of a successful, completed data profiling job (a data scan job - * where the job type is data profiling) - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - - /** - * @param string $name Required. The name must be one of the following: - * - * * The name of a data scan with at least one successful, completed data - * profiling job - * * The name of a successful, completed data profiling job (a data scan job - * where the job type is data profiling) - * - * @return \Google\Cloud\Dataplex\V1\GenerateDataQualityRulesRequest - * - * @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 must be one of the following: - * * The name of a data scan with at least one successful, completed data - * profiling job - * * The name of a successful, completed data profiling job (a data scan job - * where the job type is data profiling) - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Datascans::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name must be one of the following: - * * The name of a data scan with at least one successful, completed data - * profiling job - * * The name of a successful, completed data profiling job (a data scan job - * where the job type is data profiling) - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name must be one of the following: - * * The name of a data scan with at least one successful, completed data - * profiling job - * * The name of a successful, completed data profiling job (a data scan job - * where the job type is data profiling) - * - * 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; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GenerateDataQualityRulesResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GenerateDataQualityRulesResponse.php deleted file mode 100644 index af00a06a5900..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GenerateDataQualityRulesResponse.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.dataplex.v1.GenerateDataQualityRulesResponse - */ -class GenerateDataQualityRulesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The data quality rules that Dataplex Universal Catalog generates based on - * the results of a data profiling scan. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityRule rule = 1; - */ - private $rule; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\DataQualityRule[] $rule - * The data quality rules that Dataplex Universal Catalog generates based on - * the results of a data profiling scan. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Datascans::initOnce(); - parent::__construct($data); - } - - /** - * The data quality rules that Dataplex Universal Catalog generates based on - * the results of a data profiling scan. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityRule rule = 1; - * @return RepeatedField<\Google\Cloud\Dataplex\V1\DataQualityRule> - */ - public function getRule() - { - return $this->rule; - } - - /** - * The data quality rules that Dataplex Universal Catalog generates based on - * the results of a data profiling scan. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityRule rule = 1; - * @param \Google\Cloud\Dataplex\V1\DataQualityRule[] $var - * @return $this - */ - public function setRule($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\DataQualityRule::class); - $this->rule = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetAspectTypeRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetAspectTypeRequest.php deleted file mode 100644 index a4d6c099e4b5..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetAspectTypeRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.dataplex.v1.GetAspectTypeRequest - */ -class GetAspectTypeRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the AspectType: - * `projects/{project_number}/locations/{location_id}/aspectTypes/{aspect_type_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the AspectType: - * `projects/{project_number}/locations/{location_id}/aspectTypes/{aspect_type_id}`. Please see - * {@see CatalogServiceClient::aspectTypeName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\GetAspectTypeRequest - * - * @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 resource name of the AspectType: - * `projects/{project_number}/locations/{location_id}/aspectTypes/{aspect_type_id}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the AspectType: - * `projects/{project_number}/locations/{location_id}/aspectTypes/{aspect_type_id}`. - * - * 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 resource name of the AspectType: - * `projects/{project_number}/locations/{location_id}/aspectTypes/{aspect_type_id}`. - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetAssetRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetAssetRequest.php deleted file mode 100644 index 147242c0aa58..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetAssetRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.dataplex.v1.GetAssetRequest - */ -class GetAssetRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the asset: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the asset: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. Please see - * {@see DataplexServiceClient::assetName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\GetAssetRequest - * - * @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 resource name of the asset: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the asset: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. - * - * 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 resource name of the asset: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataAssetRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataAssetRequest.php deleted file mode 100644 index 212d6df9eb18..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataAssetRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.dataplex.v1.GetDataAssetRequest - */ -class GetDataAssetRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the data asset to retrieve. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}/dataAssets/{data_asset_id} - * - * 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 data asset to retrieve. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}/dataAssets/{data_asset_id} - * Please see {@see DataProductServiceClient::dataAssetName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\GetDataAssetRequest - * - * @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 data asset to retrieve. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}/dataAssets/{data_asset_id} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataProducts::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the data asset to retrieve. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}/dataAssets/{data_asset_id} - * - * 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 data asset to retrieve. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id}/dataAssets/{data_asset_id} - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataAttributeBindingRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataAttributeBindingRequest.php deleted file mode 100644 index 659f6ce1cce0..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataAttributeBindingRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.dataplex.v1.GetDataAttributeBindingRequest - */ -class GetDataAttributeBindingRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the DataAttributeBinding: - * projects/{project_number}/locations/{location_id}/dataAttributeBindings/{data_attribute_binding_id} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the DataAttributeBinding: - * projects/{project_number}/locations/{location_id}/dataAttributeBindings/{data_attribute_binding_id} - * Please see {@see DataTaxonomyServiceClient::dataAttributeBindingName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\GetDataAttributeBindingRequest - * - * @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 resource name of the DataAttributeBinding: - * projects/{project_number}/locations/{location_id}/dataAttributeBindings/{data_attribute_binding_id} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataTaxonomy::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the DataAttributeBinding: - * projects/{project_number}/locations/{location_id}/dataAttributeBindings/{data_attribute_binding_id} - * - * 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 resource name of the DataAttributeBinding: - * projects/{project_number}/locations/{location_id}/dataAttributeBindings/{data_attribute_binding_id} - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataAttributeRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataAttributeRequest.php deleted file mode 100644 index 460e54add09c..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataAttributeRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.dataplex.v1.GetDataAttributeRequest - */ -class GetDataAttributeRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the dataAttribute: - * projects/{project_number}/locations/{location_id}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the dataAttribute: - * projects/{project_number}/locations/{location_id}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id} - * Please see {@see DataTaxonomyServiceClient::dataAttributeName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\GetDataAttributeRequest - * - * @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 resource name of the dataAttribute: - * projects/{project_number}/locations/{location_id}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataTaxonomy::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the dataAttribute: - * projects/{project_number}/locations/{location_id}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id} - * - * 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 resource name of the dataAttribute: - * projects/{project_number}/locations/{location_id}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id} - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataProductRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataProductRequest.php deleted file mode 100644 index 5d9708d4feef..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataProductRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.dataplex.v1.GetDataProductRequest - */ -class GetDataProductRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the data product to retrieve. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} - * - * 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 data product to retrieve. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} - * Please see {@see DataProductServiceClient::dataProductName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\GetDataProductRequest - * - * @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 data product to retrieve. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataProducts::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the data product to retrieve. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} - * - * 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 data product to retrieve. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataScanJobRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataScanJobRequest.php deleted file mode 100644 index 098b4b5a7cb0..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataScanJobRequest.php +++ /dev/null @@ -1,130 +0,0 @@ -google.cloud.dataplex.v1.GetDataScanJobRequest - */ -class GetDataScanJobRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the DataScanJob: - * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}/jobs/{data_scan_job_id}` - * where `project` refers to a *project_id* or *project_number* and - * `location_id` refers to a Google Cloud region. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. Select the DataScanJob view to return. Defaults to `BASIC`. - * - * Generated from protobuf field .google.cloud.dataplex.v1.GetDataScanJobRequest.DataScanJobView view = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $view = 0; - - /** - * @param string $name Required. The resource name of the DataScanJob: - * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}/jobs/{data_scan_job_id}` - * where `project` refers to a *project_id* or *project_number* and - * `location_id` refers to a Google Cloud region. Please see - * {@see DataScanServiceClient::dataScanJobName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\GetDataScanJobRequest - * - * @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 resource name of the DataScanJob: - * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}/jobs/{data_scan_job_id}` - * where `project` refers to a *project_id* or *project_number* and - * `location_id` refers to a Google Cloud region. - * @type int $view - * Optional. Select the DataScanJob view to return. Defaults to `BASIC`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Datascans::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the DataScanJob: - * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}/jobs/{data_scan_job_id}` - * where `project` refers to a *project_id* or *project_number* and - * `location_id` refers to a Google Cloud region. - * - * 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 resource name of the DataScanJob: - * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}/jobs/{data_scan_job_id}` - * where `project` refers to a *project_id* or *project_number* and - * `location_id` refers to a Google Cloud region. - * - * 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. Select the DataScanJob view to return. Defaults to `BASIC`. - * - * Generated from protobuf field .google.cloud.dataplex.v1.GetDataScanJobRequest.DataScanJobView view = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getView() - { - return $this->view; - } - - /** - * Optional. Select the DataScanJob view to return. Defaults to `BASIC`. - * - * Generated from protobuf field .google.cloud.dataplex.v1.GetDataScanJobRequest.DataScanJobView view = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setView($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\GetDataScanJobRequest\DataScanJobView::class); - $this->view = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataScanJobRequest/DataScanJobView.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataScanJobRequest/DataScanJobView.php deleted file mode 100644 index 8aabb5ea909b..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataScanJobRequest/DataScanJobView.php +++ /dev/null @@ -1,61 +0,0 @@ -google.cloud.dataplex.v1.GetDataScanJobRequest.DataScanJobView - */ -class DataScanJobView -{ - /** - * The API will default to the `BASIC` view. - * - * Generated from protobuf enum DATA_SCAN_JOB_VIEW_UNSPECIFIED = 0; - */ - const DATA_SCAN_JOB_VIEW_UNSPECIFIED = 0; - /** - * Basic view that does not include *spec* and *result*. - * - * Generated from protobuf enum BASIC = 1; - */ - const BASIC = 1; - /** - * Include everything. - * - * Generated from protobuf enum FULL = 10; - */ - const FULL = 10; - - private static $valueToName = [ - self::DATA_SCAN_JOB_VIEW_UNSPECIFIED => 'DATA_SCAN_JOB_VIEW_UNSPECIFIED', - self::BASIC => 'BASIC', - self::FULL => '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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataScanRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataScanRequest.php deleted file mode 100644 index 3a05eba9e3b7..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataScanRequest.php +++ /dev/null @@ -1,130 +0,0 @@ -google.cloud.dataplex.v1.GetDataScanRequest - */ -class GetDataScanRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the dataScan: - * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}` - * where `project` refers to a *project_id* or *project_number* and - * `location_id` refers to a Google Cloud region. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. Select the DataScan view to return. Defaults to `BASIC`. - * - * Generated from protobuf field .google.cloud.dataplex.v1.GetDataScanRequest.DataScanView view = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $view = 0; - - /** - * @param string $name Required. The resource name of the dataScan: - * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}` - * where `project` refers to a *project_id* or *project_number* and - * `location_id` refers to a Google Cloud region. Please see - * {@see DataScanServiceClient::dataScanName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\GetDataScanRequest - * - * @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 resource name of the dataScan: - * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}` - * where `project` refers to a *project_id* or *project_number* and - * `location_id` refers to a Google Cloud region. - * @type int $view - * Optional. Select the DataScan view to return. Defaults to `BASIC`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Datascans::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the dataScan: - * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}` - * where `project` refers to a *project_id* or *project_number* and - * `location_id` refers to a Google Cloud region. - * - * 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 resource name of the dataScan: - * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}` - * where `project` refers to a *project_id* or *project_number* and - * `location_id` refers to a Google Cloud region. - * - * 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. Select the DataScan view to return. Defaults to `BASIC`. - * - * Generated from protobuf field .google.cloud.dataplex.v1.GetDataScanRequest.DataScanView view = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getView() - { - return $this->view; - } - - /** - * Optional. Select the DataScan view to return. Defaults to `BASIC`. - * - * Generated from protobuf field .google.cloud.dataplex.v1.GetDataScanRequest.DataScanView view = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setView($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\GetDataScanRequest\DataScanView::class); - $this->view = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataScanRequest/DataScanView.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataScanRequest/DataScanView.php deleted file mode 100644 index 9575438b667f..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataScanRequest/DataScanView.php +++ /dev/null @@ -1,61 +0,0 @@ -google.cloud.dataplex.v1.GetDataScanRequest.DataScanView - */ -class DataScanView -{ - /** - * The API will default to the `BASIC` view. - * - * Generated from protobuf enum DATA_SCAN_VIEW_UNSPECIFIED = 0; - */ - const DATA_SCAN_VIEW_UNSPECIFIED = 0; - /** - * Basic view that does not include *spec* and *result*. - * - * Generated from protobuf enum BASIC = 1; - */ - const BASIC = 1; - /** - * Include everything. - * - * Generated from protobuf enum FULL = 10; - */ - const FULL = 10; - - private static $valueToName = [ - self::DATA_SCAN_VIEW_UNSPECIFIED => 'DATA_SCAN_VIEW_UNSPECIFIED', - self::BASIC => 'BASIC', - self::FULL => '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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataTaxonomyRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataTaxonomyRequest.php deleted file mode 100644 index edd1bb48a65a..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetDataTaxonomyRequest.php +++ /dev/null @@ -1,74 +0,0 @@ -google.cloud.dataplex.v1.GetDataTaxonomyRequest - */ -class GetDataTaxonomyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Please see {@see DataTaxonomyServiceClient::dataTaxonomyName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\GetDataTaxonomyRequest - * - * @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 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataTaxonomy::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEncryptionConfigRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEncryptionConfigRequest.php deleted file mode 100644 index 4f14141d006a..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEncryptionConfigRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.dataplex.v1.GetEncryptionConfigRequest - */ -class GetEncryptionConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the EncryptionConfig to fetch. - * - * 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 EncryptionConfig to fetch. Please see - * {@see CmekServiceClient::encryptionConfigName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\GetEncryptionConfigRequest - * - * @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 EncryptionConfig to fetch. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Cmek::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the EncryptionConfig to fetch. - * - * 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 EncryptionConfig to fetch. - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEntityRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEntityRequest.php deleted file mode 100644 index bc586da3eb95..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEntityRequest.php +++ /dev/null @@ -1,124 +0,0 @@ -google.cloud.dataplex.v1.GetEntityRequest - */ -class GetEntityRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the entity: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}.` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. Used to select the subset of entity information to return. - * Defaults to `BASIC`. - * - * Generated from protobuf field .google.cloud.dataplex.v1.GetEntityRequest.EntityView view = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $view = 0; - - /** - * @param string $name Required. The resource name of the entity: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}.` - * Please see {@see MetadataServiceClient::entityName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\GetEntityRequest - * - * @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 resource name of the entity: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}.` - * @type int $view - * Optional. Used to select the subset of entity information to return. - * Defaults to `BASIC`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Metadata::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the entity: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}.` - * - * 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 resource name of the entity: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}.` - * - * 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. Used to select the subset of entity information to return. - * Defaults to `BASIC`. - * - * Generated from protobuf field .google.cloud.dataplex.v1.GetEntityRequest.EntityView view = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getView() - { - return $this->view; - } - - /** - * Optional. Used to select the subset of entity information to return. - * Defaults to `BASIC`. - * - * Generated from protobuf field .google.cloud.dataplex.v1.GetEntityRequest.EntityView view = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setView($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\GetEntityRequest\EntityView::class); - $this->view = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEntityRequest/EntityView.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEntityRequest/EntityView.php deleted file mode 100644 index ded47cbb64d7..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEntityRequest/EntityView.php +++ /dev/null @@ -1,68 +0,0 @@ -google.cloud.dataplex.v1.GetEntityRequest.EntityView - */ -class EntityView -{ - /** - * The API will default to the `BASIC` view. - * - * Generated from protobuf enum ENTITY_VIEW_UNSPECIFIED = 0; - */ - const ENTITY_VIEW_UNSPECIFIED = 0; - /** - * Minimal view that does not include the schema. - * - * Generated from protobuf enum BASIC = 1; - */ - const BASIC = 1; - /** - * Include basic information and schema. - * - * Generated from protobuf enum SCHEMA = 2; - */ - const SCHEMA = 2; - /** - * Include everything. Currently, this is the same as the SCHEMA view. - * - * Generated from protobuf enum FULL = 4; - */ - const FULL = 4; - - private static $valueToName = [ - self::ENTITY_VIEW_UNSPECIFIED => 'ENTITY_VIEW_UNSPECIFIED', - self::BASIC => 'BASIC', - self::SCHEMA => 'SCHEMA', - self::FULL => '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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEntryGroupRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEntryGroupRequest.php deleted file mode 100644 index 3fb667fcf54e..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEntryGroupRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.dataplex.v1.GetEntryGroupRequest - */ -class GetEntryGroupRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the EntryGroup: - * `projects/{project_number}/locations/{location_id}/entryGroups/{entry_group_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the EntryGroup: - * `projects/{project_number}/locations/{location_id}/entryGroups/{entry_group_id}`. Please see - * {@see CatalogServiceClient::entryGroupName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\GetEntryGroupRequest - * - * @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 resource name of the EntryGroup: - * `projects/{project_number}/locations/{location_id}/entryGroups/{entry_group_id}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the EntryGroup: - * `projects/{project_number}/locations/{location_id}/entryGroups/{entry_group_id}`. - * - * 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 resource name of the EntryGroup: - * `projects/{project_number}/locations/{location_id}/entryGroups/{entry_group_id}`. - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEntryLinkRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEntryLinkRequest.php deleted file mode 100644 index 5bc0c0da16a0..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEntryLinkRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.dataplex.v1.GetEntryLinkRequest - */ -class GetEntryLinkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the Entry Link: - * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entryLinks/{entry_link_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the Entry Link: - * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entryLinks/{entry_link_id}`. Please see - * {@see CatalogServiceClient::entryLinkName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\GetEntryLinkRequest - * - * @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 resource name of the Entry Link: - * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entryLinks/{entry_link_id}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the Entry Link: - * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entryLinks/{entry_link_id}`. - * - * 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 resource name of the Entry Link: - * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entryLinks/{entry_link_id}`. - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEntryRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEntryRequest.php deleted file mode 100644 index 425cfc062f0b..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEntryRequest.php +++ /dev/null @@ -1,212 +0,0 @@ -google.cloud.dataplex.v1.GetEntryRequest - */ -class GetEntryRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the Entry: - * `projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. View to control which parts of an entry the service should - * return. - * **Please check the limitations on returned aspects in the Entry view - * documentation. Amount of returned aspects depends on the selected Entry - * View.** - * - * Generated from protobuf field .google.cloud.dataplex.v1.EntryView view = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $view = 0; - /** - * Optional. Limits the aspects returned to the provided aspect types. - * It only works for CUSTOM view. - * - * Generated from protobuf field repeated string aspect_types = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $aspect_types; - /** - * Optional. Limits the aspects returned to those associated with the provided - * paths within the Entry. It only works for CUSTOM view. - * - * Generated from protobuf field repeated string paths = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $paths; - - /** - * @param string $name Required. The resource name of the Entry: - * `projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}`. Please see - * {@see CatalogServiceClient::entryName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\GetEntryRequest - * - * @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 resource name of the Entry: - * `projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}`. - * @type int $view - * Optional. View to control which parts of an entry the service should - * return. - * **Please check the limitations on returned aspects in the Entry view - * documentation. Amount of returned aspects depends on the selected Entry - * View.** - * @type string[] $aspect_types - * Optional. Limits the aspects returned to the provided aspect types. - * It only works for CUSTOM view. - * @type string[] $paths - * Optional. Limits the aspects returned to those associated with the provided - * paths within the Entry. It only works for CUSTOM view. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the Entry: - * `projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}`. - * - * 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 resource name of the Entry: - * `projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}`. - * - * 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. View to control which parts of an entry the service should - * return. - * **Please check the limitations on returned aspects in the Entry view - * documentation. Amount of returned aspects depends on the selected Entry - * View.** - * - * Generated from protobuf field .google.cloud.dataplex.v1.EntryView view = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getView() - { - return $this->view; - } - - /** - * Optional. View to control which parts of an entry the service should - * return. - * **Please check the limitations on returned aspects in the Entry view - * documentation. Amount of returned aspects depends on the selected Entry - * View.** - * - * Generated from protobuf field .google.cloud.dataplex.v1.EntryView view = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setView($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\EntryView::class); - $this->view = $var; - - return $this; - } - - /** - * Optional. Limits the aspects returned to the provided aspect types. - * It only works for CUSTOM view. - * - * Generated from protobuf field repeated string aspect_types = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getAspectTypes() - { - return $this->aspect_types; - } - - /** - * Optional. Limits the aspects returned to the provided aspect types. - * It only works for CUSTOM view. - * - * Generated from protobuf field repeated string aspect_types = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setAspectTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->aspect_types = $arr; - - return $this; - } - - /** - * Optional. Limits the aspects returned to those associated with the provided - * paths within the Entry. It only works for CUSTOM view. - * - * Generated from protobuf field repeated string paths = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getPaths() - { - return $this->paths; - } - - /** - * Optional. Limits the aspects returned to those associated with the provided - * paths within the Entry. It only works for CUSTOM view. - * - * Generated from protobuf field repeated string paths = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setPaths($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->paths = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEntryTypeRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEntryTypeRequest.php deleted file mode 100644 index 8b44476e954b..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetEntryTypeRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.dataplex.v1.GetEntryTypeRequest - */ -class GetEntryTypeRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the EntryType: - * `projects/{project_number}/locations/{location_id}/entryTypes/{entry_type_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the EntryType: - * `projects/{project_number}/locations/{location_id}/entryTypes/{entry_type_id}`. Please see - * {@see CatalogServiceClient::entryTypeName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\GetEntryTypeRequest - * - * @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 resource name of the EntryType: - * `projects/{project_number}/locations/{location_id}/entryTypes/{entry_type_id}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the EntryType: - * `projects/{project_number}/locations/{location_id}/entryTypes/{entry_type_id}`. - * - * 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 resource name of the EntryType: - * `projects/{project_number}/locations/{location_id}/entryTypes/{entry_type_id}`. - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetGlossaryCategoryRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetGlossaryCategoryRequest.php deleted file mode 100644 index 2365273dfe74..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetGlossaryCategoryRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.dataplex.v1.GetGlossaryCategoryRequest - */ -class GetGlossaryCategoryRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the GlossaryCategory to retrieve. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id} - * - * 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 GlossaryCategory to retrieve. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id} - * Please see {@see BusinessGlossaryServiceClient::glossaryCategoryName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\GetGlossaryCategoryRequest - * - * @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 GlossaryCategory to retrieve. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\BusinessGlossary::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the GlossaryCategory to retrieve. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id} - * - * 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 GlossaryCategory to retrieve. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id} - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetGlossaryRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetGlossaryRequest.php deleted file mode 100644 index dbcb2179a495..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetGlossaryRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.dataplex.v1.GetGlossaryRequest - */ -class GetGlossaryRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the Glossary to retrieve. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} - * - * 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 Glossary to retrieve. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} - * Please see {@see BusinessGlossaryServiceClient::glossaryName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\GetGlossaryRequest - * - * @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 Glossary to retrieve. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\BusinessGlossary::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the Glossary to retrieve. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} - * - * 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 Glossary to retrieve. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetGlossaryTermRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetGlossaryTermRequest.php deleted file mode 100644 index 9a79380c0954..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetGlossaryTermRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.dataplex.v1.GetGlossaryTermRequest - */ -class GetGlossaryTermRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the GlossaryTerm to retrieve. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/terms/{term_id} - * - * 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 GlossaryTerm to retrieve. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/terms/{term_id} - * Please see {@see BusinessGlossaryServiceClient::glossaryTermName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\GetGlossaryTermRequest - * - * @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 GlossaryTerm to retrieve. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/terms/{term_id} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\BusinessGlossary::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the GlossaryTerm to retrieve. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/terms/{term_id} - * - * 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 GlossaryTerm to retrieve. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/terms/{term_id} - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetJobRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetJobRequest.php deleted file mode 100644 index ac0be8636aa3..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetJobRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.dataplex.v1.GetJobRequest - */ -class GetJobRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the job: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}/jobs/{job_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the job: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}/jobs/{job_id}`. Please see - * {@see DataplexServiceClient::jobName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\GetJobRequest - * - * @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 resource name of the job: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}/jobs/{job_id}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the job: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}/jobs/{job_id}`. - * - * 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 resource name of the job: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}/jobs/{job_id}`. - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetLakeRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetLakeRequest.php deleted file mode 100644 index 245bcc5e833f..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetLakeRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.dataplex.v1.GetLakeRequest - */ -class GetLakeRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the lake: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the lake: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. Please see - * {@see DataplexServiceClient::lakeName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\GetLakeRequest - * - * @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 resource name of the lake: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the lake: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. - * - * 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 resource name of the lake: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetMetadataFeedRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetMetadataFeedRequest.php deleted file mode 100644 index e0e10eba8085..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetMetadataFeedRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.dataplex.v1.GetMetadataFeedRequest - */ -class GetMetadataFeedRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the metadata feed, in the format - * `projects/{project_id_or_number}/locations/{location_id}/MetadataFeeds/{metadata_feed_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the metadata feed, in the format - * `projects/{project_id_or_number}/locations/{location_id}/MetadataFeeds/{metadata_feed_id}`. Please see - * {@see CatalogServiceClient::metadataFeedName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\GetMetadataFeedRequest - * - * @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 resource name of the metadata feed, in the format - * `projects/{project_id_or_number}/locations/{location_id}/MetadataFeeds/{metadata_feed_id}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the metadata feed, in the format - * `projects/{project_id_or_number}/locations/{location_id}/MetadataFeeds/{metadata_feed_id}`. - * - * 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 resource name of the metadata feed, in the format - * `projects/{project_id_or_number}/locations/{location_id}/MetadataFeeds/{metadata_feed_id}`. - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetMetadataJobRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetMetadataJobRequest.php deleted file mode 100644 index 16f4fbe8c486..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetMetadataJobRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.dataplex.v1.GetMetadataJobRequest - */ -class GetMetadataJobRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the metadata job, in the format - * `projects/{project_id_or_number}/locations/{location_id}/metadataJobs/{metadata_job_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the metadata job, in the format - * `projects/{project_id_or_number}/locations/{location_id}/metadataJobs/{metadata_job_id}`. Please see - * {@see CatalogServiceClient::metadataJobName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\GetMetadataJobRequest - * - * @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 resource name of the metadata job, in the format - * `projects/{project_id_or_number}/locations/{location_id}/metadataJobs/{metadata_job_id}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the metadata job, in the format - * `projects/{project_id_or_number}/locations/{location_id}/metadataJobs/{metadata_job_id}`. - * - * 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 resource name of the metadata job, in the format - * `projects/{project_id_or_number}/locations/{location_id}/metadataJobs/{metadata_job_id}`. - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetPartitionRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetPartitionRequest.php deleted file mode 100644 index 0a489b5ddf3a..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetPartitionRequest.php +++ /dev/null @@ -1,96 +0,0 @@ -google.cloud.dataplex.v1.GetPartitionRequest - */ -class GetPartitionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the partition: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}/partitions/{partition_value_path}`. - * The {partition_value_path} segment consists of an ordered sequence of - * partition values separated by "/". All values must be provided. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the partition: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}/partitions/{partition_value_path}`. - * The {partition_value_path} segment consists of an ordered sequence of - * partition values separated by "/". All values must be provided. Please see - * {@see MetadataServiceClient::partitionName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\GetPartitionRequest - * - * @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 resource name of the partition: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}/partitions/{partition_value_path}`. - * The {partition_value_path} segment consists of an ordered sequence of - * partition values separated by "/". All values must be provided. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Metadata::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the partition: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}/partitions/{partition_value_path}`. - * The {partition_value_path} segment consists of an ordered sequence of - * partition values separated by "/". All values must be provided. - * - * 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 resource name of the partition: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}/partitions/{partition_value_path}`. - * The {partition_value_path} segment consists of an ordered sequence of - * partition values separated by "/". All values must be provided. - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetTaskRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetTaskRequest.php deleted file mode 100644 index 787c4b059860..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetTaskRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.dataplex.v1.GetTaskRequest - */ -class GetTaskRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the task: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{tasks_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the task: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{tasks_id}`. Please see - * {@see DataplexServiceClient::taskName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\GetTaskRequest - * - * @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 resource name of the task: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{tasks_id}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the task: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{tasks_id}`. - * - * 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 resource name of the task: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{tasks_id}`. - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetZoneRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetZoneRequest.php deleted file mode 100644 index 91601083b194..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GetZoneRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.dataplex.v1.GetZoneRequest - */ -class GetZoneRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the zone: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the zone: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. Please see - * {@see DataplexServiceClient::zoneName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\GetZoneRequest - * - * @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 resource name of the zone: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the zone: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. - * - * 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 resource name of the zone: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Glossary.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Glossary.php deleted file mode 100644 index bd71da1af5a4..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Glossary.php +++ /dev/null @@ -1,427 +0,0 @@ -google.cloud.dataplex.v1.Glossary - */ -class Glossary extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Identifier. The resource name of the Glossary. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. System generated unique id for the Glossary. This ID will be - * different if the Glossary is deleted and re-created with the - * same name. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - */ - protected $uid = ''; - /** - * Optional. User friendly display name of the Glossary. This is user-mutable. - * This will be same as the GlossaryId, if not specified. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $display_name = ''; - /** - * Optional. The user-mutable description of the Glossary. - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Output only. The time at which the Glossary was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time at which the Glossary was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Optional. User-defined labels for the Glossary. - * - * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $labels; - /** - * Output only. The number of GlossaryTerms in the Glossary. - * - * Generated from protobuf field int32 term_count = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $term_count = 0; - /** - * Output only. The number of GlossaryCategories in the Glossary. - * - * Generated from protobuf field int32 category_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $category_count = 0; - /** - * Optional. Needed for resource freshness validation. - * This checksum is computed by the server based on the value of other - * fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $etag = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Identifier. The resource name of the Glossary. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} - * @type string $uid - * Output only. System generated unique id for the Glossary. This ID will be - * different if the Glossary is deleted and re-created with the - * same name. - * @type string $display_name - * Optional. User friendly display name of the Glossary. This is user-mutable. - * This will be same as the GlossaryId, if not specified. - * @type string $description - * Optional. The user-mutable description of the Glossary. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time at which the Glossary was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time at which the Glossary was last updated. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Optional. User-defined labels for the Glossary. - * @type int $term_count - * Output only. The number of GlossaryTerms in the Glossary. - * @type int $category_count - * Output only. The number of GlossaryCategories in the Glossary. - * @type string $etag - * Optional. Needed for resource freshness validation. - * This checksum is computed by the server based on the value of other - * fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\BusinessGlossary::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Identifier. The resource name of the Glossary. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Identifier. The resource name of the Glossary. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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. System generated unique id for the Glossary. This ID will be - * different if the Glossary is deleted and re-created with the - * same name. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. System generated unique id for the Glossary. This ID will be - * different if the Glossary is deleted and re-created with the - * same name. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Optional. User friendly display name of the Glossary. This is user-mutable. - * This will be same as the GlossaryId, if not specified. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Optional. User friendly display name of the Glossary. This is user-mutable. - * This will be same as the GlossaryId, if not specified. - * - * Generated from protobuf field string display_name = 3 [(.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 user-mutable description of the Glossary. - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. The user-mutable description of the Glossary. - * - * 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; - } - - /** - * Output only. The time at which the Glossary was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.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 Glossary was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.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 Glossary was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.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 Glossary was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.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. User-defined labels for the Glossary. - * - * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Optional. User-defined labels for the Glossary. - * - * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Output only. The number of GlossaryTerms in the Glossary. - * - * Generated from protobuf field int32 term_count = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getTermCount() - { - return $this->term_count; - } - - /** - * Output only. The number of GlossaryTerms in the Glossary. - * - * Generated from protobuf field int32 term_count = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setTermCount($var) - { - GPBUtil::checkInt32($var); - $this->term_count = $var; - - return $this; - } - - /** - * Output only. The number of GlossaryCategories in the Glossary. - * - * Generated from protobuf field int32 category_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getCategoryCount() - { - return $this->category_count; - } - - /** - * Output only. The number of GlossaryCategories in the Glossary. - * - * Generated from protobuf field int32 category_count = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setCategoryCount($var) - { - GPBUtil::checkInt32($var); - $this->category_count = $var; - - return $this; - } - - /** - * Optional. Needed for resource freshness validation. - * This checksum is computed by the server based on the value of other - * fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Optional. Needed for resource freshness validation. - * This checksum is computed by the server based on the value of other - * fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 10 [(.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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GlossaryCategory.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GlossaryCategory.php deleted file mode 100644 index dcc70bf8adda..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GlossaryCategory.php +++ /dev/null @@ -1,370 +0,0 @@ -google.cloud.dataplex.v1.GlossaryCategory - */ -class GlossaryCategory extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Identifier. The resource name of the GlossaryCategory. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. System generated unique id for the GlossaryCategory. This ID - * will be different if the GlossaryCategory is deleted and re-created with - * the same name. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - */ - protected $uid = ''; - /** - * Optional. User friendly display name of the GlossaryCategory. This is - * user-mutable. This will be same as the GlossaryCategoryId, if not - * specified. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $display_name = ''; - /** - * Optional. The user-mutable description of the GlossaryCategory. - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Output only. The time at which the GlossaryCategory was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time at which the GlossaryCategory was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Optional. User-defined labels for the GlossaryCategory. - * - * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $labels; - /** - * Required. The immediate parent of the GlossaryCategory in the - * resource-hierarchy. It can either be a Glossary or a GlossaryCategory. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} - * OR - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id} - * - * Generated from protobuf field string parent = 8 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $parent = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Identifier. The resource name of the GlossaryCategory. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id} - * @type string $uid - * Output only. System generated unique id for the GlossaryCategory. This ID - * will be different if the GlossaryCategory is deleted and re-created with - * the same name. - * @type string $display_name - * Optional. User friendly display name of the GlossaryCategory. This is - * user-mutable. This will be same as the GlossaryCategoryId, if not - * specified. - * @type string $description - * Optional. The user-mutable description of the GlossaryCategory. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time at which the GlossaryCategory was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time at which the GlossaryCategory was last updated. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Optional. User-defined labels for the GlossaryCategory. - * @type string $parent - * Required. The immediate parent of the GlossaryCategory in the - * resource-hierarchy. It can either be a Glossary or a GlossaryCategory. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} - * OR - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\BusinessGlossary::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Identifier. The resource name of the GlossaryCategory. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Identifier. The resource name of the GlossaryCategory. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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. System generated unique id for the GlossaryCategory. This ID - * will be different if the GlossaryCategory is deleted and re-created with - * the same name. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. System generated unique id for the GlossaryCategory. This ID - * will be different if the GlossaryCategory is deleted and re-created with - * the same name. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Optional. User friendly display name of the GlossaryCategory. This is - * user-mutable. This will be same as the GlossaryCategoryId, if not - * specified. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Optional. User friendly display name of the GlossaryCategory. This is - * user-mutable. This will be same as the GlossaryCategoryId, if not - * specified. - * - * Generated from protobuf field string display_name = 3 [(.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 user-mutable description of the GlossaryCategory. - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. The user-mutable description of the GlossaryCategory. - * - * 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; - } - - /** - * Output only. The time at which the GlossaryCategory was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.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 GlossaryCategory was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.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 GlossaryCategory was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.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 GlossaryCategory was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.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. User-defined labels for the GlossaryCategory. - * - * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Optional. User-defined labels for the GlossaryCategory. - * - * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Required. The immediate parent of the GlossaryCategory in the - * resource-hierarchy. It can either be a Glossary or a GlossaryCategory. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} - * OR - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id} - * - * Generated from protobuf field string parent = 8 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The immediate parent of the GlossaryCategory in the - * resource-hierarchy. It can either be a Glossary or a GlossaryCategory. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} - * OR - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id} - * - * Generated from protobuf field string parent = 8 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GlossaryTerm.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GlossaryTerm.php deleted file mode 100644 index fe99add30223..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GlossaryTerm.php +++ /dev/null @@ -1,367 +0,0 @@ -google.cloud.dataplex.v1.GlossaryTerm - */ -class GlossaryTerm extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Identifier. The resource name of the GlossaryTerm. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/terms/{term_id} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. System generated unique id for the GlossaryTerm. This ID will - * be different if the GlossaryTerm is deleted and re-created with the same - * name. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - */ - protected $uid = ''; - /** - * Optional. User friendly display name of the GlossaryTerm. This is - * user-mutable. This will be same as the GlossaryTermId, if not specified. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $display_name = ''; - /** - * Optional. The user-mutable description of the GlossaryTerm. - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Output only. The time at which the GlossaryTerm was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time at which the GlossaryTerm was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Optional. User-defined labels for the GlossaryTerm. - * - * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $labels; - /** - * Required. The immediate parent of the GlossaryTerm in the - * resource-hierarchy. It can either be a Glossary or a GlossaryCategory. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} - * OR - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id} - * - * Generated from protobuf field string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Identifier. The resource name of the GlossaryTerm. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/terms/{term_id} - * @type string $uid - * Output only. System generated unique id for the GlossaryTerm. This ID will - * be different if the GlossaryTerm is deleted and re-created with the same - * name. - * @type string $display_name - * Optional. User friendly display name of the GlossaryTerm. This is - * user-mutable. This will be same as the GlossaryTermId, if not specified. - * @type string $description - * Optional. The user-mutable description of the GlossaryTerm. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time at which the GlossaryTerm was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time at which the GlossaryTerm was last updated. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Optional. User-defined labels for the GlossaryTerm. - * @type string $parent - * Required. The immediate parent of the GlossaryTerm in the - * resource-hierarchy. It can either be a Glossary or a GlossaryCategory. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} - * OR - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\BusinessGlossary::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Identifier. The resource name of the GlossaryTerm. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/terms/{term_id} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Identifier. The resource name of the GlossaryTerm. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/terms/{term_id} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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. System generated unique id for the GlossaryTerm. This ID will - * be different if the GlossaryTerm is deleted and re-created with the same - * name. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. System generated unique id for the GlossaryTerm. This ID will - * be different if the GlossaryTerm is deleted and re-created with the same - * name. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Optional. User friendly display name of the GlossaryTerm. This is - * user-mutable. This will be same as the GlossaryTermId, if not specified. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Optional. User friendly display name of the GlossaryTerm. This is - * user-mutable. This will be same as the GlossaryTermId, if not specified. - * - * Generated from protobuf field string display_name = 3 [(.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 user-mutable description of the GlossaryTerm. - * - * Generated from protobuf field string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. The user-mutable description of the GlossaryTerm. - * - * 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; - } - - /** - * Output only. The time at which the GlossaryTerm was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.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 GlossaryTerm was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.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 GlossaryTerm was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.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 GlossaryTerm was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.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. User-defined labels for the GlossaryTerm. - * - * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Optional. User-defined labels for the GlossaryTerm. - * - * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Required. The immediate parent of the GlossaryTerm in the - * resource-hierarchy. It can either be a Glossary or a GlossaryCategory. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} - * OR - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id} - * - * Generated from protobuf field string parent = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The immediate parent of the GlossaryTerm in the - * resource-hierarchy. It can either be a Glossary or a GlossaryCategory. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} - * OR - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id} - * - * Generated from protobuf field string parent = 8 [(.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; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GovernanceEvent.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GovernanceEvent.php deleted file mode 100644 index 1b178e4ae45d..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GovernanceEvent.php +++ /dev/null @@ -1,149 +0,0 @@ -google.cloud.dataplex.v1.GovernanceEvent - */ -class GovernanceEvent extends \Google\Protobuf\Internal\Message -{ - /** - * The log message. - * - * Generated from protobuf field string message = 1; - */ - protected $message = ''; - /** - * The type of the event. - * - * Generated from protobuf field .google.cloud.dataplex.v1.GovernanceEvent.EventType event_type = 2; - */ - protected $event_type = 0; - /** - * Entity resource information if the log event is associated with a - * specific entity. - * - * Generated from protobuf field optional .google.cloud.dataplex.v1.GovernanceEvent.Entity entity = 3; - */ - protected $entity = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $message - * The log message. - * @type int $event_type - * The type of the event. - * @type \Google\Cloud\Dataplex\V1\GovernanceEvent\Entity $entity - * Entity resource information if the log event is associated with a - * specific entity. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Logs::initOnce(); - parent::__construct($data); - } - - /** - * The log message. - * - * Generated from protobuf field string message = 1; - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * The log message. - * - * Generated from protobuf field string message = 1; - * @param string $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkString($var, True); - $this->message = $var; - - return $this; - } - - /** - * The type of the event. - * - * Generated from protobuf field .google.cloud.dataplex.v1.GovernanceEvent.EventType event_type = 2; - * @return int - */ - public function getEventType() - { - return $this->event_type; - } - - /** - * The type of the event. - * - * Generated from protobuf field .google.cloud.dataplex.v1.GovernanceEvent.EventType event_type = 2; - * @param int $var - * @return $this - */ - public function setEventType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\GovernanceEvent\EventType::class); - $this->event_type = $var; - - return $this; - } - - /** - * Entity resource information if the log event is associated with a - * specific entity. - * - * Generated from protobuf field optional .google.cloud.dataplex.v1.GovernanceEvent.Entity entity = 3; - * @return \Google\Cloud\Dataplex\V1\GovernanceEvent\Entity|null - */ - public function getEntity() - { - return $this->entity; - } - - public function hasEntity() - { - return isset($this->entity); - } - - public function clearEntity() - { - unset($this->entity); - } - - /** - * Entity resource information if the log event is associated with a - * specific entity. - * - * Generated from protobuf field optional .google.cloud.dataplex.v1.GovernanceEvent.Entity entity = 3; - * @param \Google\Cloud\Dataplex\V1\GovernanceEvent\Entity $var - * @return $this - */ - public function setEntity($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\GovernanceEvent\Entity::class); - $this->entity = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GovernanceEvent/Entity.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GovernanceEvent/Entity.php deleted file mode 100644 index c8bdbe16d13d..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GovernanceEvent/Entity.php +++ /dev/null @@ -1,109 +0,0 @@ -google.cloud.dataplex.v1.GovernanceEvent.Entity - */ -class Entity extends \Google\Protobuf\Internal\Message -{ - /** - * The Entity resource the log event is associated with. - * Format: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}` - * - * Generated from protobuf field string entity = 1 [(.google.api.resource_reference) = { - */ - protected $entity = ''; - /** - * Type of entity. - * - * Generated from protobuf field .google.cloud.dataplex.v1.GovernanceEvent.Entity.EntityType entity_type = 2; - */ - protected $entity_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $entity - * The Entity resource the log event is associated with. - * Format: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}` - * @type int $entity_type - * Type of entity. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Logs::initOnce(); - parent::__construct($data); - } - - /** - * The Entity resource the log event is associated with. - * Format: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}` - * - * Generated from protobuf field string entity = 1 [(.google.api.resource_reference) = { - * @return string - */ - public function getEntity() - { - return $this->entity; - } - - /** - * The Entity resource the log event is associated with. - * Format: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}` - * - * Generated from protobuf field string entity = 1 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setEntity($var) - { - GPBUtil::checkString($var, True); - $this->entity = $var; - - return $this; - } - - /** - * Type of entity. - * - * Generated from protobuf field .google.cloud.dataplex.v1.GovernanceEvent.Entity.EntityType entity_type = 2; - * @return int - */ - public function getEntityType() - { - return $this->entity_type; - } - - /** - * Type of entity. - * - * Generated from protobuf field .google.cloud.dataplex.v1.GovernanceEvent.Entity.EntityType entity_type = 2; - * @param int $var - * @return $this - */ - public function setEntityType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\GovernanceEvent\Entity\EntityType::class); - $this->entity_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GovernanceEvent/Entity/EntityType.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GovernanceEvent/Entity/EntityType.php deleted file mode 100644 index 9010d27cc00e..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GovernanceEvent/Entity/EntityType.php +++ /dev/null @@ -1,61 +0,0 @@ -google.cloud.dataplex.v1.GovernanceEvent.Entity.EntityType - */ -class EntityType -{ - /** - * An unspecified Entity type. - * - * Generated from protobuf enum ENTITY_TYPE_UNSPECIFIED = 0; - */ - const ENTITY_TYPE_UNSPECIFIED = 0; - /** - * Table entity type. - * - * Generated from protobuf enum TABLE = 1; - */ - const TABLE = 1; - /** - * Fileset entity type. - * - * Generated from protobuf enum FILESET = 2; - */ - const FILESET = 2; - - private static $valueToName = [ - self::ENTITY_TYPE_UNSPECIFIED => 'ENTITY_TYPE_UNSPECIFIED', - self::TABLE => 'TABLE', - self::FILESET => 'FILESET', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GovernanceEvent/EventType.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GovernanceEvent/EventType.php deleted file mode 100644 index 73aaa03e675d..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/GovernanceEvent/EventType.php +++ /dev/null @@ -1,159 +0,0 @@ -google.cloud.dataplex.v1.GovernanceEvent.EventType - */ -class EventType -{ - /** - * An unspecified event type. - * - * Generated from protobuf enum EVENT_TYPE_UNSPECIFIED = 0; - */ - const EVENT_TYPE_UNSPECIFIED = 0; - /** - * Resource IAM policy update event. - * - * Generated from protobuf enum RESOURCE_IAM_POLICY_UPDATE = 1; - */ - const RESOURCE_IAM_POLICY_UPDATE = 1; - /** - * BigQuery table create event. - * - * Generated from protobuf enum BIGQUERY_TABLE_CREATE = 2; - */ - const BIGQUERY_TABLE_CREATE = 2; - /** - * BigQuery table update event. - * - * Generated from protobuf enum BIGQUERY_TABLE_UPDATE = 3; - */ - const BIGQUERY_TABLE_UPDATE = 3; - /** - * BigQuery table delete event. - * - * Generated from protobuf enum BIGQUERY_TABLE_DELETE = 4; - */ - const BIGQUERY_TABLE_DELETE = 4; - /** - * BigQuery connection create event. - * - * Generated from protobuf enum BIGQUERY_CONNECTION_CREATE = 5; - */ - const BIGQUERY_CONNECTION_CREATE = 5; - /** - * BigQuery connection update event. - * - * Generated from protobuf enum BIGQUERY_CONNECTION_UPDATE = 6; - */ - const BIGQUERY_CONNECTION_UPDATE = 6; - /** - * BigQuery connection delete event. - * - * Generated from protobuf enum BIGQUERY_CONNECTION_DELETE = 7; - */ - const BIGQUERY_CONNECTION_DELETE = 7; - /** - * BigQuery taxonomy created. - * - * Generated from protobuf enum BIGQUERY_TAXONOMY_CREATE = 10; - */ - const BIGQUERY_TAXONOMY_CREATE = 10; - /** - * BigQuery policy tag created. - * - * Generated from protobuf enum BIGQUERY_POLICY_TAG_CREATE = 11; - */ - const BIGQUERY_POLICY_TAG_CREATE = 11; - /** - * BigQuery policy tag deleted. - * - * Generated from protobuf enum BIGQUERY_POLICY_TAG_DELETE = 12; - */ - const BIGQUERY_POLICY_TAG_DELETE = 12; - /** - * BigQuery set iam policy for policy tag. - * - * Generated from protobuf enum BIGQUERY_POLICY_TAG_SET_IAM_POLICY = 13; - */ - const BIGQUERY_POLICY_TAG_SET_IAM_POLICY = 13; - /** - * Access policy update event. - * - * Generated from protobuf enum ACCESS_POLICY_UPDATE = 14; - */ - const ACCESS_POLICY_UPDATE = 14; - /** - * Number of resources matched with particular Query. - * - * Generated from protobuf enum GOVERNANCE_RULE_MATCHED_RESOURCES = 15; - */ - const GOVERNANCE_RULE_MATCHED_RESOURCES = 15; - /** - * Rule processing exceeds the allowed limit. - * - * Generated from protobuf enum GOVERNANCE_RULE_SEARCH_LIMIT_EXCEEDS = 16; - */ - const GOVERNANCE_RULE_SEARCH_LIMIT_EXCEEDS = 16; - /** - * Rule processing errors. - * - * Generated from protobuf enum GOVERNANCE_RULE_ERRORS = 17; - */ - const GOVERNANCE_RULE_ERRORS = 17; - /** - * Governance rule processing Event. - * - * Generated from protobuf enum GOVERNANCE_RULE_PROCESSING = 18; - */ - const GOVERNANCE_RULE_PROCESSING = 18; - - private static $valueToName = [ - self::EVENT_TYPE_UNSPECIFIED => 'EVENT_TYPE_UNSPECIFIED', - self::RESOURCE_IAM_POLICY_UPDATE => 'RESOURCE_IAM_POLICY_UPDATE', - self::BIGQUERY_TABLE_CREATE => 'BIGQUERY_TABLE_CREATE', - self::BIGQUERY_TABLE_UPDATE => 'BIGQUERY_TABLE_UPDATE', - self::BIGQUERY_TABLE_DELETE => 'BIGQUERY_TABLE_DELETE', - self::BIGQUERY_CONNECTION_CREATE => 'BIGQUERY_CONNECTION_CREATE', - self::BIGQUERY_CONNECTION_UPDATE => 'BIGQUERY_CONNECTION_UPDATE', - self::BIGQUERY_CONNECTION_DELETE => 'BIGQUERY_CONNECTION_DELETE', - self::BIGQUERY_TAXONOMY_CREATE => 'BIGQUERY_TAXONOMY_CREATE', - self::BIGQUERY_POLICY_TAG_CREATE => 'BIGQUERY_POLICY_TAG_CREATE', - self::BIGQUERY_POLICY_TAG_DELETE => 'BIGQUERY_POLICY_TAG_DELETE', - self::BIGQUERY_POLICY_TAG_SET_IAM_POLICY => 'BIGQUERY_POLICY_TAG_SET_IAM_POLICY', - self::ACCESS_POLICY_UPDATE => 'ACCESS_POLICY_UPDATE', - self::GOVERNANCE_RULE_MATCHED_RESOURCES => 'GOVERNANCE_RULE_MATCHED_RESOURCES', - self::GOVERNANCE_RULE_SEARCH_LIMIT_EXCEEDS => 'GOVERNANCE_RULE_SEARCH_LIMIT_EXCEEDS', - self::GOVERNANCE_RULE_ERRORS => 'GOVERNANCE_RULE_ERRORS', - self::GOVERNANCE_RULE_PROCESSING => 'GOVERNANCE_RULE_PROCESSING', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ImportItem.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ImportItem.php deleted file mode 100644 index 000eb8b72585..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ImportItem.php +++ /dev/null @@ -1,329 +0,0 @@ -google.cloud.dataplex.v1.ImportItem - */ -class ImportItem extends \Google\Protobuf\Internal\Message -{ - /** - * Information about an entry and its attached aspects. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Entry entry = 1; - */ - protected $entry = null; - /** - * Information about the entry link. User should provide either one of the - * entry or entry_link. While providing entry_link, user should not - * provide update_mask and aspect_keys. - * - * Generated from protobuf field .google.cloud.dataplex.v1.EntryLink entry_link = 4; - */ - protected $entry_link = null; - /** - * The fields to update, in paths that are relative to the `Entry` resource. - * Separate each field with a comma. - * In `FULL` entry sync mode, Dataplex Universal Catalog includes the paths of - * all of the fields for an entry that can be modified, including aspects. - * This means that Dataplex Universal Catalog replaces the existing entry with - * the entry in the metadata import file. All modifiable fields are updated, - * regardless of the fields that are listed in the update mask, and regardless - * of whether a field is present in the `entry` object. - * The `update_mask` field is ignored when an entry is created or re-created. - * In an aspect-only metadata job (when entry sync mode is `NONE`), set this - * value to `aspects`. - * Dataplex Universal Catalog also determines which entries and aspects to - * modify by comparing the values and timestamps that you provide in the - * metadata import file with the values and timestamps that exist in your - * project. For more information, see [Comparison - * logic](https://cloud.google.com/dataplex/docs/import-metadata#data-modification-logic). - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - */ - protected $update_mask = null; - /** - * The aspects to modify. Supports the following syntaxes: - * * `{aspect_type_reference}`: matches aspects that belong to the specified - * aspect type and are attached directly to the entry. - * * `{aspect_type_reference}\@{path}`: matches aspects that belong to the - * specified aspect type and path. - * * `{aspect_type_reference}\@*` : matches aspects of the given type for all - * paths. - * * `*\@path` : matches aspects of all types on the given path. - * Replace `{aspect_type_reference}` with a reference to the aspect type, in - * the format - * `{project_id_or_number}.{location_id}.{aspect_type_id}`. - * In `FULL` entry sync mode, if you leave this field empty, it is treated as - * specifying exactly those aspects that are present within the specified - * entry. Dataplex Universal Catalog implicitly adds the keys for all of the - * required aspects of an entry. - * - * Generated from protobuf field repeated string aspect_keys = 3; - */ - private $aspect_keys; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\Entry $entry - * Information about an entry and its attached aspects. - * @type \Google\Cloud\Dataplex\V1\EntryLink $entry_link - * Information about the entry link. User should provide either one of the - * entry or entry_link. While providing entry_link, user should not - * provide update_mask and aspect_keys. - * @type \Google\Protobuf\FieldMask $update_mask - * The fields to update, in paths that are relative to the `Entry` resource. - * Separate each field with a comma. - * In `FULL` entry sync mode, Dataplex Universal Catalog includes the paths of - * all of the fields for an entry that can be modified, including aspects. - * This means that Dataplex Universal Catalog replaces the existing entry with - * the entry in the metadata import file. All modifiable fields are updated, - * regardless of the fields that are listed in the update mask, and regardless - * of whether a field is present in the `entry` object. - * The `update_mask` field is ignored when an entry is created or re-created. - * In an aspect-only metadata job (when entry sync mode is `NONE`), set this - * value to `aspects`. - * Dataplex Universal Catalog also determines which entries and aspects to - * modify by comparing the values and timestamps that you provide in the - * metadata import file with the values and timestamps that exist in your - * project. For more information, see [Comparison - * logic](https://cloud.google.com/dataplex/docs/import-metadata#data-modification-logic). - * @type string[] $aspect_keys - * The aspects to modify. Supports the following syntaxes: - * * `{aspect_type_reference}`: matches aspects that belong to the specified - * aspect type and are attached directly to the entry. - * * `{aspect_type_reference}\@{path}`: matches aspects that belong to the - * specified aspect type and path. - * * `{aspect_type_reference}\@*` : matches aspects of the given type for all - * paths. - * * `*\@path` : matches aspects of all types on the given path. - * Replace `{aspect_type_reference}` with a reference to the aspect type, in - * the format - * `{project_id_or_number}.{location_id}.{aspect_type_id}`. - * In `FULL` entry sync mode, if you leave this field empty, it is treated as - * specifying exactly those aspects that are present within the specified - * entry. Dataplex Universal Catalog implicitly adds the keys for all of the - * required aspects of an entry. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Information about an entry and its attached aspects. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Entry entry = 1; - * @return \Google\Cloud\Dataplex\V1\Entry|null - */ - public function getEntry() - { - return $this->entry; - } - - public function hasEntry() - { - return isset($this->entry); - } - - public function clearEntry() - { - unset($this->entry); - } - - /** - * Information about an entry and its attached aspects. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Entry entry = 1; - * @param \Google\Cloud\Dataplex\V1\Entry $var - * @return $this - */ - public function setEntry($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Entry::class); - $this->entry = $var; - - return $this; - } - - /** - * Information about the entry link. User should provide either one of the - * entry or entry_link. While providing entry_link, user should not - * provide update_mask and aspect_keys. - * - * Generated from protobuf field .google.cloud.dataplex.v1.EntryLink entry_link = 4; - * @return \Google\Cloud\Dataplex\V1\EntryLink|null - */ - public function getEntryLink() - { - return $this->entry_link; - } - - public function hasEntryLink() - { - return isset($this->entry_link); - } - - public function clearEntryLink() - { - unset($this->entry_link); - } - - /** - * Information about the entry link. User should provide either one of the - * entry or entry_link. While providing entry_link, user should not - * provide update_mask and aspect_keys. - * - * Generated from protobuf field .google.cloud.dataplex.v1.EntryLink entry_link = 4; - * @param \Google\Cloud\Dataplex\V1\EntryLink $var - * @return $this - */ - public function setEntryLink($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\EntryLink::class); - $this->entry_link = $var; - - return $this; - } - - /** - * The fields to update, in paths that are relative to the `Entry` resource. - * Separate each field with a comma. - * In `FULL` entry sync mode, Dataplex Universal Catalog includes the paths of - * all of the fields for an entry that can be modified, including aspects. - * This means that Dataplex Universal Catalog replaces the existing entry with - * the entry in the metadata import file. All modifiable fields are updated, - * regardless of the fields that are listed in the update mask, and regardless - * of whether a field is present in the `entry` object. - * The `update_mask` field is ignored when an entry is created or re-created. - * In an aspect-only metadata job (when entry sync mode is `NONE`), set this - * value to `aspects`. - * Dataplex Universal Catalog also determines which entries and aspects to - * modify by comparing the values and timestamps that you provide in the - * metadata import file with the values and timestamps that exist in your - * project. For more information, see [Comparison - * logic](https://cloud.google.com/dataplex/docs/import-metadata#data-modification-logic). - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - * @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); - } - - /** - * The fields to update, in paths that are relative to the `Entry` resource. - * Separate each field with a comma. - * In `FULL` entry sync mode, Dataplex Universal Catalog includes the paths of - * all of the fields for an entry that can be modified, including aspects. - * This means that Dataplex Universal Catalog replaces the existing entry with - * the entry in the metadata import file. All modifiable fields are updated, - * regardless of the fields that are listed in the update mask, and regardless - * of whether a field is present in the `entry` object. - * The `update_mask` field is ignored when an entry is created or re-created. - * In an aspect-only metadata job (when entry sync mode is `NONE`), set this - * value to `aspects`. - * Dataplex Universal Catalog also determines which entries and aspects to - * modify by comparing the values and timestamps that you provide in the - * metadata import file with the values and timestamps that exist in your - * project. For more information, see [Comparison - * logic](https://cloud.google.com/dataplex/docs/import-metadata#data-modification-logic). - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * The aspects to modify. Supports the following syntaxes: - * * `{aspect_type_reference}`: matches aspects that belong to the specified - * aspect type and are attached directly to the entry. - * * `{aspect_type_reference}\@{path}`: matches aspects that belong to the - * specified aspect type and path. - * * `{aspect_type_reference}\@*` : matches aspects of the given type for all - * paths. - * * `*\@path` : matches aspects of all types on the given path. - * Replace `{aspect_type_reference}` with a reference to the aspect type, in - * the format - * `{project_id_or_number}.{location_id}.{aspect_type_id}`. - * In `FULL` entry sync mode, if you leave this field empty, it is treated as - * specifying exactly those aspects that are present within the specified - * entry. Dataplex Universal Catalog implicitly adds the keys for all of the - * required aspects of an entry. - * - * Generated from protobuf field repeated string aspect_keys = 3; - * @return RepeatedField - */ - public function getAspectKeys() - { - return $this->aspect_keys; - } - - /** - * The aspects to modify. Supports the following syntaxes: - * * `{aspect_type_reference}`: matches aspects that belong to the specified - * aspect type and are attached directly to the entry. - * * `{aspect_type_reference}\@{path}`: matches aspects that belong to the - * specified aspect type and path. - * * `{aspect_type_reference}\@*` : matches aspects of the given type for all - * paths. - * * `*\@path` : matches aspects of all types on the given path. - * Replace `{aspect_type_reference}` with a reference to the aspect type, in - * the format - * `{project_id_or_number}.{location_id}.{aspect_type_id}`. - * In `FULL` entry sync mode, if you leave this field empty, it is treated as - * specifying exactly those aspects that are present within the specified - * entry. Dataplex Universal Catalog implicitly adds the keys for all of the - * required aspects of an entry. - * - * Generated from protobuf field repeated string aspect_keys = 3; - * @param string[] $var - * @return $this - */ - public function setAspectKeys($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->aspect_keys = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Job.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Job.php deleted file mode 100644 index 6d7e4768d7a5..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Job.php +++ /dev/null @@ -1,483 +0,0 @@ -google.cloud.dataplex.v1.Job - */ -class Job extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The relative resource name of the job, of the form: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}/jobs/{job_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Output only. System generated globally unique ID for the job. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $uid = ''; - /** - * Output only. The time when the job was started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $start_time = null; - /** - * Output only. The time when the job ended. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $end_time = null; - /** - * Output only. Execution state for the job. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Job.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. The number of times the job has been retried (excluding the - * initial attempt). - * - * Generated from protobuf field uint32 retry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $retry_count = 0; - /** - * Output only. The underlying service running a job. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Job.Service service = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $service = 0; - /** - * Output only. The full resource name for the job run under a particular - * service. - * - * Generated from protobuf field string service_job = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $service_job = ''; - /** - * Output only. Additional information about the current state. - * - * Generated from protobuf field string message = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $message = ''; - /** - * Output only. User-defined labels for the task. - * - * Generated from protobuf field map labels = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $labels; - /** - * Output only. Job execution trigger. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Job.Trigger trigger = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $trigger = 0; - /** - * Output only. Spec related to how a task is executed. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Task.ExecutionSpec execution_spec = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $execution_spec = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. The relative resource name of the job, of the form: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}/jobs/{job_id}`. - * @type string $uid - * Output only. System generated globally unique ID for the job. - * @type \Google\Protobuf\Timestamp $start_time - * Output only. The time when the job was started. - * @type \Google\Protobuf\Timestamp $end_time - * Output only. The time when the job ended. - * @type int $state - * Output only. Execution state for the job. - * @type int $retry_count - * Output only. The number of times the job has been retried (excluding the - * initial attempt). - * @type int $service - * Output only. The underlying service running a job. - * @type string $service_job - * Output only. The full resource name for the job run under a particular - * service. - * @type string $message - * Output only. Additional information about the current state. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Output only. User-defined labels for the task. - * @type int $trigger - * Output only. Job execution trigger. - * @type \Google\Cloud\Dataplex\V1\Task\ExecutionSpec $execution_spec - * Output only. Spec related to how a task is executed. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Tasks::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The relative resource name of the job, of the form: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}/jobs/{job_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The relative resource name of the job, of the form: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}/jobs/{job_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. System generated globally unique ID for the job. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. System generated globally unique ID for the job. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Output only. The time when the job was started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 3 [(.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 when the job was started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 3 [(.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 when the job ended. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 4 [(.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 when the job ended. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 4 [(.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. Execution state for the job. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Job.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. Execution state for the job. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Job.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\Job\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. The number of times the job has been retried (excluding the - * initial attempt). - * - * Generated from protobuf field uint32 retry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getRetryCount() - { - return $this->retry_count; - } - - /** - * Output only. The number of times the job has been retried (excluding the - * initial attempt). - * - * Generated from protobuf field uint32 retry_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setRetryCount($var) - { - GPBUtil::checkUint32($var); - $this->retry_count = $var; - - return $this; - } - - /** - * Output only. The underlying service running a job. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Job.Service service = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getService() - { - return $this->service; - } - - /** - * Output only. The underlying service running a job. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Job.Service service = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setService($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\Job\Service::class); - $this->service = $var; - - return $this; - } - - /** - * Output only. The full resource name for the job run under a particular - * service. - * - * Generated from protobuf field string service_job = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getServiceJob() - { - return $this->service_job; - } - - /** - * Output only. The full resource name for the job run under a particular - * service. - * - * Generated from protobuf field string service_job = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setServiceJob($var) - { - GPBUtil::checkString($var, True); - $this->service_job = $var; - - return $this; - } - - /** - * Output only. Additional information about the current state. - * - * Generated from protobuf field string message = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * Output only. Additional information about the current state. - * - * Generated from protobuf field string message = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkString($var, True); - $this->message = $var; - - return $this; - } - - /** - * Output only. User-defined labels for the task. - * - * Generated from protobuf field map labels = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Output only. User-defined labels for the task. - * - * Generated from protobuf field map labels = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Output only. Job execution trigger. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Job.Trigger trigger = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getTrigger() - { - return $this->trigger; - } - - /** - * Output only. Job execution trigger. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Job.Trigger trigger = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setTrigger($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\Job\Trigger::class); - $this->trigger = $var; - - return $this; - } - - /** - * Output only. Spec related to how a task is executed. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Task.ExecutionSpec execution_spec = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataplex\V1\Task\ExecutionSpec|null - */ - public function getExecutionSpec() - { - return $this->execution_spec; - } - - public function hasExecutionSpec() - { - return isset($this->execution_spec); - } - - public function clearExecutionSpec() - { - unset($this->execution_spec); - } - - /** - * Output only. Spec related to how a task is executed. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Task.ExecutionSpec execution_spec = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\Task\ExecutionSpec $var - * @return $this - */ - public function setExecutionSpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Task\ExecutionSpec::class); - $this->execution_spec = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Job/Service.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Job/Service.php deleted file mode 100644 index 96943f043b4f..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Job/Service.php +++ /dev/null @@ -1,52 +0,0 @@ -google.cloud.dataplex.v1.Job.Service - */ -class Service -{ - /** - * Service used to run the job is unspecified. - * - * Generated from protobuf enum SERVICE_UNSPECIFIED = 0; - */ - const SERVICE_UNSPECIFIED = 0; - /** - * Dataproc service is used to run this job. - * - * Generated from protobuf enum DATAPROC = 1; - */ - const DATAPROC = 1; - - private static $valueToName = [ - self::SERVICE_UNSPECIFIED => 'SERVICE_UNSPECIFIED', - self::DATAPROC => 'DATAPROC', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Job/State.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Job/State.php deleted file mode 100644 index f7c9880d69f0..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Job/State.php +++ /dev/null @@ -1,87 +0,0 @@ -google.cloud.dataplex.v1.Job.State - */ -class State -{ - /** - * The job state is unknown. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The job is running. - * - * Generated from protobuf enum RUNNING = 1; - */ - const RUNNING = 1; - /** - * The job is cancelling. - * - * Generated from protobuf enum CANCELLING = 2; - */ - const CANCELLING = 2; - /** - * The job cancellation was successful. - * - * Generated from protobuf enum CANCELLED = 3; - */ - const CANCELLED = 3; - /** - * The job completed successfully. - * - * Generated from protobuf enum SUCCEEDED = 4; - */ - const SUCCEEDED = 4; - /** - * The job is no longer running due to an error. - * - * Generated from protobuf enum FAILED = 5; - */ - const FAILED = 5; - /** - * The job was cancelled outside of Dataplex Universal Catalog. - * - * Generated from protobuf enum ABORTED = 6; - */ - const ABORTED = 6; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::RUNNING => 'RUNNING', - self::CANCELLING => 'CANCELLING', - self::CANCELLED => 'CANCELLED', - self::SUCCEEDED => 'SUCCEEDED', - self::FAILED => 'FAILED', - self::ABORTED => 'ABORTED', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Job/Trigger.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Job/Trigger.php deleted file mode 100644 index b5fce57187c6..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Job/Trigger.php +++ /dev/null @@ -1,62 +0,0 @@ -google.cloud.dataplex.v1.Job.Trigger - */ -class Trigger -{ - /** - * The trigger is unspecified. - * - * Generated from protobuf enum TRIGGER_UNSPECIFIED = 0; - */ - const TRIGGER_UNSPECIFIED = 0; - /** - * The job was triggered by Dataplex Universal Catalog based on trigger spec - * from task definition. - * - * Generated from protobuf enum TASK_CONFIG = 1; - */ - const TASK_CONFIG = 1; - /** - * The job was triggered by the explicit call of Task API. - * - * Generated from protobuf enum RUN_REQUEST = 2; - */ - const RUN_REQUEST = 2; - - private static $valueToName = [ - self::TRIGGER_UNSPECIFIED => 'TRIGGER_UNSPECIFIED', - self::TASK_CONFIG => 'TASK_CONFIG', - self::RUN_REQUEST => 'RUN_REQUEST', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/JobEvent.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/JobEvent.php deleted file mode 100644 index 4dfe549484ae..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/JobEvent.php +++ /dev/null @@ -1,394 +0,0 @@ -google.cloud.dataplex.v1.JobEvent - */ -class JobEvent extends \Google\Protobuf\Internal\Message -{ - /** - * The log message. - * - * Generated from protobuf field string message = 1; - */ - protected $message = ''; - /** - * The unique id identifying the job. - * - * Generated from protobuf field string job_id = 2; - */ - protected $job_id = ''; - /** - * The time when the job started running. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 3; - */ - protected $start_time = null; - /** - * The time when the job ended running. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 4; - */ - protected $end_time = null; - /** - * The job state on completion. - * - * Generated from protobuf field .google.cloud.dataplex.v1.JobEvent.State state = 5; - */ - protected $state = 0; - /** - * The number of retries. - * - * Generated from protobuf field int32 retries = 6; - */ - protected $retries = 0; - /** - * The type of the job. - * - * Generated from protobuf field .google.cloud.dataplex.v1.JobEvent.Type type = 7; - */ - protected $type = 0; - /** - * The service used to execute the job. - * - * Generated from protobuf field .google.cloud.dataplex.v1.JobEvent.Service service = 8; - */ - protected $service = 0; - /** - * The reference to the job within the service. - * - * Generated from protobuf field string service_job = 9; - */ - protected $service_job = ''; - /** - * Job execution trigger. - * - * Generated from protobuf field .google.cloud.dataplex.v1.JobEvent.ExecutionTrigger execution_trigger = 11; - */ - protected $execution_trigger = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $message - * The log message. - * @type string $job_id - * The unique id identifying the job. - * @type \Google\Protobuf\Timestamp $start_time - * The time when the job started running. - * @type \Google\Protobuf\Timestamp $end_time - * The time when the job ended running. - * @type int $state - * The job state on completion. - * @type int $retries - * The number of retries. - * @type int $type - * The type of the job. - * @type int $service - * The service used to execute the job. - * @type string $service_job - * The reference to the job within the service. - * @type int $execution_trigger - * Job execution trigger. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Logs::initOnce(); - parent::__construct($data); - } - - /** - * The log message. - * - * Generated from protobuf field string message = 1; - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * The log message. - * - * Generated from protobuf field string message = 1; - * @param string $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkString($var, True); - $this->message = $var; - - return $this; - } - - /** - * The unique id identifying the job. - * - * Generated from protobuf field string job_id = 2; - * @return string - */ - public function getJobId() - { - return $this->job_id; - } - - /** - * The unique id identifying the job. - * - * Generated from protobuf field string job_id = 2; - * @param string $var - * @return $this - */ - public function setJobId($var) - { - GPBUtil::checkString($var, True); - $this->job_id = $var; - - return $this; - } - - /** - * The time when the job started running. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getStartTime() - { - return $this->start_time; - } - - public function hasStartTime() - { - return isset($this->start_time); - } - - public function clearStartTime() - { - unset($this->start_time); - } - - /** - * The time when the job started running. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->start_time = $var; - - return $this; - } - - /** - * The time when the job ended running. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 4; - * @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); - } - - /** - * The time when the job ended running. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 4; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - - /** - * The job state on completion. - * - * Generated from protobuf field .google.cloud.dataplex.v1.JobEvent.State state = 5; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * The job state on completion. - * - * Generated from protobuf field .google.cloud.dataplex.v1.JobEvent.State state = 5; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\JobEvent\State::class); - $this->state = $var; - - return $this; - } - - /** - * The number of retries. - * - * Generated from protobuf field int32 retries = 6; - * @return int - */ - public function getRetries() - { - return $this->retries; - } - - /** - * The number of retries. - * - * Generated from protobuf field int32 retries = 6; - * @param int $var - * @return $this - */ - public function setRetries($var) - { - GPBUtil::checkInt32($var); - $this->retries = $var; - - return $this; - } - - /** - * The type of the job. - * - * Generated from protobuf field .google.cloud.dataplex.v1.JobEvent.Type type = 7; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * The type of the job. - * - * Generated from protobuf field .google.cloud.dataplex.v1.JobEvent.Type type = 7; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\JobEvent\Type::class); - $this->type = $var; - - return $this; - } - - /** - * The service used to execute the job. - * - * Generated from protobuf field .google.cloud.dataplex.v1.JobEvent.Service service = 8; - * @return int - */ - public function getService() - { - return $this->service; - } - - /** - * The service used to execute the job. - * - * Generated from protobuf field .google.cloud.dataplex.v1.JobEvent.Service service = 8; - * @param int $var - * @return $this - */ - public function setService($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\JobEvent\Service::class); - $this->service = $var; - - return $this; - } - - /** - * The reference to the job within the service. - * - * Generated from protobuf field string service_job = 9; - * @return string - */ - public function getServiceJob() - { - return $this->service_job; - } - - /** - * The reference to the job within the service. - * - * Generated from protobuf field string service_job = 9; - * @param string $var - * @return $this - */ - public function setServiceJob($var) - { - GPBUtil::checkString($var, True); - $this->service_job = $var; - - return $this; - } - - /** - * Job execution trigger. - * - * Generated from protobuf field .google.cloud.dataplex.v1.JobEvent.ExecutionTrigger execution_trigger = 11; - * @return int - */ - public function getExecutionTrigger() - { - return $this->execution_trigger; - } - - /** - * Job execution trigger. - * - * Generated from protobuf field .google.cloud.dataplex.v1.JobEvent.ExecutionTrigger execution_trigger = 11; - * @param int $var - * @return $this - */ - public function setExecutionTrigger($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\JobEvent\ExecutionTrigger::class); - $this->execution_trigger = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/JobEvent/ExecutionTrigger.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/JobEvent/ExecutionTrigger.php deleted file mode 100644 index 3405712d4be9..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/JobEvent/ExecutionTrigger.php +++ /dev/null @@ -1,62 +0,0 @@ -google.cloud.dataplex.v1.JobEvent.ExecutionTrigger - */ -class ExecutionTrigger -{ - /** - * The job execution trigger is unspecified. - * - * Generated from protobuf enum EXECUTION_TRIGGER_UNSPECIFIED = 0; - */ - const EXECUTION_TRIGGER_UNSPECIFIED = 0; - /** - * The job was triggered by Dataplex Universal Catalog based on trigger spec - * from task definition. - * - * Generated from protobuf enum TASK_CONFIG = 1; - */ - const TASK_CONFIG = 1; - /** - * The job was triggered by the explicit call of Task API. - * - * Generated from protobuf enum RUN_REQUEST = 2; - */ - const RUN_REQUEST = 2; - - private static $valueToName = [ - self::EXECUTION_TRIGGER_UNSPECIFIED => 'EXECUTION_TRIGGER_UNSPECIFIED', - self::TASK_CONFIG => 'TASK_CONFIG', - self::RUN_REQUEST => 'RUN_REQUEST', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/JobEvent/Service.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/JobEvent/Service.php deleted file mode 100644 index f844b336f18b..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/JobEvent/Service.php +++ /dev/null @@ -1,54 +0,0 @@ -google.cloud.dataplex.v1.JobEvent.Service - */ -class Service -{ - /** - * Unspecified service. - * - * Generated from protobuf enum SERVICE_UNSPECIFIED = 0; - */ - const SERVICE_UNSPECIFIED = 0; - /** - * Cloud Dataproc. - * - * Generated from protobuf enum DATAPROC = 1; - */ - const DATAPROC = 1; - - private static $valueToName = [ - self::SERVICE_UNSPECIFIED => 'SERVICE_UNSPECIFIED', - self::DATAPROC => 'DATAPROC', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/JobEvent/State.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/JobEvent/State.php deleted file mode 100644 index 36f252852734..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/JobEvent/State.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.dataplex.v1.JobEvent.State - */ -class State -{ - /** - * Unspecified job state. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * Job successfully completed. - * - * Generated from protobuf enum SUCCEEDED = 1; - */ - const SUCCEEDED = 1; - /** - * Job was unsuccessful. - * - * Generated from protobuf enum FAILED = 2; - */ - const FAILED = 2; - /** - * Job was cancelled by the user. - * - * Generated from protobuf enum CANCELLED = 3; - */ - const CANCELLED = 3; - /** - * Job was cancelled or aborted via the service executing the job. - * - * Generated from protobuf enum ABORTED = 4; - */ - const ABORTED = 4; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::SUCCEEDED => 'SUCCEEDED', - self::FAILED => 'FAILED', - self::CANCELLED => 'CANCELLED', - self::ABORTED => 'ABORTED', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/JobEvent/Type.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/JobEvent/Type.php deleted file mode 100644 index 5e713ba16814..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/JobEvent/Type.php +++ /dev/null @@ -1,61 +0,0 @@ -google.cloud.dataplex.v1.JobEvent.Type - */ -class Type -{ - /** - * Unspecified job type. - * - * Generated from protobuf enum TYPE_UNSPECIFIED = 0; - */ - const TYPE_UNSPECIFIED = 0; - /** - * Spark jobs. - * - * Generated from protobuf enum SPARK = 1; - */ - const SPARK = 1; - /** - * Notebook jobs. - * - * Generated from protobuf enum NOTEBOOK = 2; - */ - const NOTEBOOK = 2; - - private static $valueToName = [ - self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', - self::SPARK => 'SPARK', - self::NOTEBOOK => 'NOTEBOOK', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Lake.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Lake.php deleted file mode 100644 index e17180689ec1..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Lake.php +++ /dev/null @@ -1,518 +0,0 @@ -google.cloud.dataplex.v1.Lake - */ -class Lake extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The relative resource name of the lake, of the form: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. User friendly display name. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $display_name = ''; - /** - * Output only. System generated globally unique ID for the lake. This ID will - * be different if the lake is deleted and re-created with the same name. - * - * Generated from protobuf field string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $uid = ''; - /** - * Output only. The time when the lake was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time when the lake was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Optional. User-defined labels for the lake. - * - * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $labels; - /** - * Optional. Description of the lake. - * - * Generated from protobuf field string description = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Output only. Current state of the lake. - * - * Generated from protobuf field .google.cloud.dataplex.v1.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. Service account associated with this lake. This service - * account must be authorized to access or operate on resources managed by the - * lake. - * - * Generated from protobuf field string service_account = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $service_account = ''; - /** - * Optional. Settings to manage lake and Dataproc Metastore service instance - * association. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Lake.Metastore metastore = 102 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $metastore = null; - /** - * Output only. Aggregated status of the underlying assets of the lake. - * - * Generated from protobuf field .google.cloud.dataplex.v1.AssetStatus asset_status = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $asset_status = null; - /** - * Output only. Metastore status of the lake. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Lake.MetastoreStatus metastore_status = 104 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $metastore_status = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. The relative resource name of the lake, of the form: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. - * @type string $display_name - * Optional. User friendly display name. - * @type string $uid - * Output only. System generated globally unique ID for the lake. This ID will - * be different if the lake is deleted and re-created with the same name. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time when the lake was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time when the lake was last updated. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Optional. User-defined labels for the lake. - * @type string $description - * Optional. Description of the lake. - * @type int $state - * Output only. Current state of the lake. - * @type string $service_account - * Output only. Service account associated with this lake. This service - * account must be authorized to access or operate on resources managed by the - * lake. - * @type \Google\Cloud\Dataplex\V1\Lake\Metastore $metastore - * Optional. Settings to manage lake and Dataproc Metastore service instance - * association. - * @type \Google\Cloud\Dataplex\V1\AssetStatus $asset_status - * Output only. Aggregated status of the underlying assets of the lake. - * @type \Google\Cloud\Dataplex\V1\Lake\MetastoreStatus $metastore_status - * Output only. Metastore status of the lake. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The relative resource name of the lake, of the form: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The relative resource name of the lake, of the form: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. User friendly display name. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Optional. User friendly display name. - * - * 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; - } - - /** - * Output only. System generated globally unique ID for the lake. This ID will - * be different if the lake is deleted and re-created with the same name. - * - * Generated from protobuf field string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. System generated globally unique ID for the lake. This ID will - * be different if the lake is deleted and re-created with the same name. - * - * Generated from protobuf field string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Output only. The time when the lake was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.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 lake was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.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 lake was last updated. - * - * 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 time when the lake was last updated. - * - * 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. User-defined labels for the lake. - * - * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Optional. User-defined labels for the lake. - * - * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Optional. Description of the lake. - * - * Generated from protobuf field string description = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. Description of the lake. - * - * Generated from protobuf field string description = 7 [(.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. Current state of the lake. - * - * Generated from protobuf field .google.cloud.dataplex.v1.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. Current state of the lake. - * - * Generated from protobuf field .google.cloud.dataplex.v1.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. Service account associated with this lake. This service - * account must be authorized to access or operate on resources managed by the - * lake. - * - * Generated from protobuf field string service_account = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getServiceAccount() - { - return $this->service_account; - } - - /** - * Output only. Service account associated with this lake. This service - * account must be authorized to access or operate on resources managed by the - * lake. - * - * Generated from protobuf field string service_account = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setServiceAccount($var) - { - GPBUtil::checkString($var, True); - $this->service_account = $var; - - return $this; - } - - /** - * Optional. Settings to manage lake and Dataproc Metastore service instance - * association. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Lake.Metastore metastore = 102 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dataplex\V1\Lake\Metastore|null - */ - public function getMetastore() - { - return $this->metastore; - } - - public function hasMetastore() - { - return isset($this->metastore); - } - - public function clearMetastore() - { - unset($this->metastore); - } - - /** - * Optional. Settings to manage lake and Dataproc Metastore service instance - * association. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Lake.Metastore metastore = 102 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataplex\V1\Lake\Metastore $var - * @return $this - */ - public function setMetastore($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Lake\Metastore::class); - $this->metastore = $var; - - return $this; - } - - /** - * Output only. Aggregated status of the underlying assets of the lake. - * - * Generated from protobuf field .google.cloud.dataplex.v1.AssetStatus asset_status = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataplex\V1\AssetStatus|null - */ - public function getAssetStatus() - { - return $this->asset_status; - } - - public function hasAssetStatus() - { - return isset($this->asset_status); - } - - public function clearAssetStatus() - { - unset($this->asset_status); - } - - /** - * Output only. Aggregated status of the underlying assets of the lake. - * - * Generated from protobuf field .google.cloud.dataplex.v1.AssetStatus asset_status = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\AssetStatus $var - * @return $this - */ - public function setAssetStatus($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\AssetStatus::class); - $this->asset_status = $var; - - return $this; - } - - /** - * Output only. Metastore status of the lake. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Lake.MetastoreStatus metastore_status = 104 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataplex\V1\Lake\MetastoreStatus|null - */ - public function getMetastoreStatus() - { - return $this->metastore_status; - } - - public function hasMetastoreStatus() - { - return isset($this->metastore_status); - } - - public function clearMetastoreStatus() - { - unset($this->metastore_status); - } - - /** - * Output only. Metastore status of the lake. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Lake.MetastoreStatus metastore_status = 104 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\Lake\MetastoreStatus $var - * @return $this - */ - public function setMetastoreStatus($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Lake\MetastoreStatus::class); - $this->metastore_status = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Lake/Metastore.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Lake/Metastore.php deleted file mode 100644 index 85ed438a4520..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Lake/Metastore.php +++ /dev/null @@ -1,79 +0,0 @@ -google.cloud.dataplex.v1.Lake.Metastore - */ -class Metastore extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. A relative reference to the Dataproc Metastore - * (https://cloud.google.com/dataproc-metastore/docs) service associated - * with the lake: - * `projects/{project_id}/locations/{location_id}/services/{service_id}` - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $service = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $service - * Optional. A relative reference to the Dataproc Metastore - * (https://cloud.google.com/dataproc-metastore/docs) service associated - * with the lake: - * `projects/{project_id}/locations/{location_id}/services/{service_id}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Optional. A relative reference to the Dataproc Metastore - * (https://cloud.google.com/dataproc-metastore/docs) service associated - * with the lake: - * `projects/{project_id}/locations/{location_id}/services/{service_id}` - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getService() - { - return $this->service; - } - - /** - * Optional. A relative reference to the Dataproc Metastore - * (https://cloud.google.com/dataproc-metastore/docs) service associated - * with the lake: - * `projects/{project_id}/locations/{location_id}/services/{service_id}` - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setService($var) - { - GPBUtil::checkString($var, True); - $this->service = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Lake/MetastoreStatus.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Lake/MetastoreStatus.php deleted file mode 100644 index 68ff03ab9278..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Lake/MetastoreStatus.php +++ /dev/null @@ -1,179 +0,0 @@ -google.cloud.dataplex.v1.Lake.MetastoreStatus - */ -class MetastoreStatus extends \Google\Protobuf\Internal\Message -{ - /** - * Current state of association. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Lake.MetastoreStatus.State state = 1; - */ - protected $state = 0; - /** - * Additional information about the current status. - * - * Generated from protobuf field string message = 2; - */ - protected $message = ''; - /** - * Last update time of the metastore status of the lake. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 3; - */ - protected $update_time = null; - /** - * The URI of the endpoint used to access the Metastore service. - * - * Generated from protobuf field string endpoint = 4; - */ - protected $endpoint = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $state - * Current state of association. - * @type string $message - * Additional information about the current status. - * @type \Google\Protobuf\Timestamp $update_time - * Last update time of the metastore status of the lake. - * @type string $endpoint - * The URI of the endpoint used to access the Metastore service. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Current state of association. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Lake.MetastoreStatus.State state = 1; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Current state of association. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Lake.MetastoreStatus.State state = 1; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\Lake\MetastoreStatus\State::class); - $this->state = $var; - - return $this; - } - - /** - * Additional information about the current status. - * - * Generated from protobuf field string message = 2; - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * Additional information about the current status. - * - * Generated from protobuf field string message = 2; - * @param string $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkString($var, True); - $this->message = $var; - - return $this; - } - - /** - * Last update time of the metastore status of the lake. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 3; - * @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); - } - - /** - * Last update time of the metastore status of the lake. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 3; - * @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 URI of the endpoint used to access the Metastore service. - * - * Generated from protobuf field string endpoint = 4; - * @return string - */ - public function getEndpoint() - { - return $this->endpoint; - } - - /** - * The URI of the endpoint used to access the Metastore service. - * - * Generated from protobuf field string endpoint = 4; - * @param string $var - * @return $this - */ - public function setEndpoint($var) - { - GPBUtil::checkString($var, True); - $this->endpoint = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Lake/MetastoreStatus/State.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Lake/MetastoreStatus/State.php deleted file mode 100644 index a2761863c8b5..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Lake/MetastoreStatus/State.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.dataplex.v1.Lake.MetastoreStatus.State - */ -class State -{ - /** - * Unspecified. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * A Metastore service instance is not associated with the lake. - * - * Generated from protobuf enum NONE = 1; - */ - const NONE = 1; - /** - * A Metastore service instance is attached to the lake. - * - * Generated from protobuf enum READY = 2; - */ - const READY = 2; - /** - * Attach/detach is in progress. - * - * Generated from protobuf enum UPDATING = 3; - */ - const UPDATING = 3; - /** - * Attach/detach could not be done due to errors. - * - * Generated from protobuf enum ERROR = 4; - */ - const ERROR = 4; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::NONE => 'NONE', - self::READY => 'READY', - self::UPDATING => 'UPDATING', - self::ERROR => 'ERROR', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListActionsResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListActionsResponse.php deleted file mode 100644 index 6319285e369b..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListActionsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.dataplex.v1.ListActionsResponse - */ -class ListActionsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Actions under the given parent lake/zone/asset. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.Action actions = 1; - */ - private $actions; - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * 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\Dataplex\V1\Action[] $actions - * Actions under the given parent lake/zone/asset. - * @type string $next_page_token - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Actions under the given parent lake/zone/asset. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.Action actions = 1; - * @return RepeatedField<\Google\Cloud\Dataplex\V1\Action> - */ - public function getActions() - { - return $this->actions; - } - - /** - * Actions under the given parent lake/zone/asset. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.Action actions = 1; - * @param \Google\Cloud\Dataplex\V1\Action[] $var - * @return $this - */ - public function setActions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\Action::class); - $this->actions = $arr; - - return $this; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListAspectTypesRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListAspectTypesRequest.php deleted file mode 100644 index eba3e1d453a0..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListAspectTypesRequest.php +++ /dev/null @@ -1,275 +0,0 @@ -google.cloud.dataplex.v1.ListAspectTypesRequest - */ -class ListAspectTypesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the AspectType location, of the form: - * `projects/{project_number}/locations/{location_id}` - * where `location_id` refers to a Google Cloud region. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Maximum number of AspectTypes to return. The service may return - * fewer than this value. If unspecified, the service returns at most 10 - * AspectTypes. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. Page token received from a previous `ListAspectTypes` call. - * Provide this to retrieve the subsequent page. When paginating, all other - * parameters you provide to `ListAspectTypes` 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 = ''; - /** - * Optional. Filter request. Filters are case-sensitive. - * The service supports the following formats: - * * labels.key1 = "value1" - * * labels:key1 - * * name = "value" - * These restrictions can be conjoined with AND, OR, and NOT conjunctions. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Orders the result by `name` or `create_time` fields. - * If not specified, the ordering is undefined. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The resource name of the AspectType location, of the form: - * `projects/{project_number}/locations/{location_id}` - * where `location_id` refers to a Google Cloud region. Please see - * {@see CatalogServiceClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\ListAspectTypesRequest - * - * @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 resource name of the AspectType location, of the form: - * `projects/{project_number}/locations/{location_id}` - * where `location_id` refers to a Google Cloud region. - * @type int $page_size - * Optional. Maximum number of AspectTypes to return. The service may return - * fewer than this value. If unspecified, the service returns at most 10 - * AspectTypes. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * @type string $page_token - * Optional. Page token received from a previous `ListAspectTypes` call. - * Provide this to retrieve the subsequent page. When paginating, all other - * parameters you provide to `ListAspectTypes` must match the call that - * provided the page token. - * @type string $filter - * Optional. Filter request. Filters are case-sensitive. - * The service supports the following formats: - * * labels.key1 = "value1" - * * labels:key1 - * * name = "value" - * These restrictions can be conjoined with AND, OR, and NOT conjunctions. - * @type string $order_by - * Optional. Orders the result by `name` or `create_time` fields. - * If not specified, the ordering is undefined. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the AspectType location, of the form: - * `projects/{project_number}/locations/{location_id}` - * where `location_id` refers to a Google Cloud region. - * - * 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 resource name of the AspectType location, of the form: - * `projects/{project_number}/locations/{location_id}` - * where `location_id` refers to a Google Cloud region. - * - * 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. Maximum number of AspectTypes to return. The service may return - * fewer than this value. If unspecified, the service returns at most 10 - * AspectTypes. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Maximum number of AspectTypes to return. The service may return - * fewer than this value. If unspecified, the service returns at most 10 - * AspectTypes. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * - * 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. Page token received from a previous `ListAspectTypes` call. - * Provide this to retrieve the subsequent page. When paginating, all other - * parameters you provide to `ListAspectTypes` 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. Page token received from a previous `ListAspectTypes` call. - * Provide this to retrieve the subsequent page. When paginating, all other - * parameters you provide to `ListAspectTypes` 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; - } - - /** - * Optional. Filter request. Filters are case-sensitive. - * The service supports the following formats: - * * labels.key1 = "value1" - * * labels:key1 - * * name = "value" - * These restrictions can be conjoined with AND, OR, and NOT conjunctions. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filter request. Filters are case-sensitive. - * The service supports the following formats: - * * labels.key1 = "value1" - * * labels:key1 - * * name = "value" - * These restrictions can be conjoined with AND, OR, and NOT conjunctions. - * - * 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. Orders the result by `name` or `create_time` fields. - * If not specified, the ordering is undefined. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Orders the result by `name` or `create_time` fields. - * If not specified, the ordering is undefined. - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListAspectTypesResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListAspectTypesResponse.php deleted file mode 100644 index e1c7e8a1ba9a..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListAspectTypesResponse.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.dataplex.v1.ListAspectTypesResponse - */ -class ListAspectTypesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * AspectTypes under the given parent location. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.AspectType aspect_types = 1; - */ - private $aspect_types; - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations that the service couldn't reach. - * - * Generated from protobuf field repeated string unreachable_locations = 3; - */ - private $unreachable_locations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\AspectType[] $aspect_types - * AspectTypes under the given parent location. - * @type string $next_page_token - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * @type string[] $unreachable_locations - * Locations that the service couldn't reach. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * AspectTypes under the given parent location. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.AspectType aspect_types = 1; - * @return RepeatedField<\Google\Cloud\Dataplex\V1\AspectType> - */ - public function getAspectTypes() - { - return $this->aspect_types; - } - - /** - * AspectTypes under the given parent location. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.AspectType aspect_types = 1; - * @param \Google\Cloud\Dataplex\V1\AspectType[] $var - * @return $this - */ - public function setAspectTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\AspectType::class); - $this->aspect_types = $arr; - - return $this; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Locations that the service couldn't reach. - * - * Generated from protobuf field repeated string unreachable_locations = 3; - * @return RepeatedField - */ - public function getUnreachableLocations() - { - return $this->unreachable_locations; - } - - /** - * Locations that the service couldn't reach. - * - * Generated from protobuf field repeated string unreachable_locations = 3; - * @param string[] $var - * @return $this - */ - public function setUnreachableLocations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable_locations = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListAssetActionsRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListAssetActionsRequest.php deleted file mode 100644 index 50f49a478867..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListAssetActionsRequest.php +++ /dev/null @@ -1,174 +0,0 @@ -google.cloud.dataplex.v1.ListAssetActionsRequest - */ -class ListAssetActionsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the parent asset: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Maximum number of actions to return. The service may return fewer - * than this value. If unspecified, at most 10 actions will be returned. The - * maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. Page token received from a previous `ListAssetActions` call. - * Provide this to retrieve the subsequent page. When paginating, all other - * parameters provided to `ListAssetActions` 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 resource name of the parent asset: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. Please see - * {@see DataplexServiceClient::assetName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\ListAssetActionsRequest - * - * @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 resource name of the parent asset: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. - * @type int $page_size - * Optional. Maximum number of actions to return. The service may return fewer - * than this value. If unspecified, at most 10 actions will be returned. The - * maximum value is 1000; values above 1000 will be coerced to 1000. - * @type string $page_token - * Optional. Page token received from a previous `ListAssetActions` call. - * Provide this to retrieve the subsequent page. When paginating, all other - * parameters provided to `ListAssetActions` must match the call that provided - * the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the parent asset: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. - * - * 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 resource name of the parent asset: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/assets/{asset_id}`. - * - * 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. Maximum number of actions to return. The service may return fewer - * than this value. If unspecified, at most 10 actions will be returned. The - * maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Maximum number of actions to return. The service may return fewer - * than this value. If unspecified, at most 10 actions will be returned. The - * maximum value is 1000; values above 1000 will be coerced to 1000. - * - * 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. Page token received from a previous `ListAssetActions` call. - * Provide this to retrieve the subsequent page. When paginating, all other - * parameters provided to `ListAssetActions` 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. Page token received from a previous `ListAssetActions` call. - * Provide this to retrieve the subsequent page. When paginating, all other - * parameters provided to `ListAssetActions` 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListAssetsRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListAssetsRequest.php deleted file mode 100644 index 57181e20ba5c..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListAssetsRequest.php +++ /dev/null @@ -1,242 +0,0 @@ -google.cloud.dataplex.v1.ListAssetsRequest - */ -class ListAssetsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the parent zone: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Maximum number of asset to return. The service may return fewer - * than this value. If unspecified, at most 10 assets will be returned. The - * maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. Page token received from a previous `ListAssets` call. Provide - * this to retrieve the subsequent page. When paginating, all other parameters - * provided to `ListAssets` 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 = ''; - /** - * Optional. Filter request. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Order by fields for the result. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The resource name of the parent zone: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. Please see - * {@see DataplexServiceClient::zoneName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\ListAssetsRequest - * - * @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 resource name of the parent zone: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. - * @type int $page_size - * Optional. Maximum number of asset to return. The service may return fewer - * than this value. If unspecified, at most 10 assets will be returned. The - * maximum value is 1000; values above 1000 will be coerced to 1000. - * @type string $page_token - * Optional. Page token received from a previous `ListAssets` call. Provide - * this to retrieve the subsequent page. When paginating, all other parameters - * provided to `ListAssets` must match the call that provided the page - * token. - * @type string $filter - * Optional. Filter request. - * @type string $order_by - * Optional. Order by fields for the result. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the parent zone: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. - * - * 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 resource name of the parent zone: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. - * - * 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. Maximum number of asset to return. The service may return fewer - * than this value. If unspecified, at most 10 assets will be returned. The - * maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Maximum number of asset to return. The service may return fewer - * than this value. If unspecified, at most 10 assets will be returned. The - * maximum value is 1000; values above 1000 will be coerced to 1000. - * - * 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. Page token received from a previous `ListAssets` call. Provide - * this to retrieve the subsequent page. When paginating, all other parameters - * provided to `ListAssets` 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. Page token received from a previous `ListAssets` call. Provide - * this to retrieve the subsequent page. When paginating, all other parameters - * provided to `ListAssets` 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; - } - - /** - * Optional. Filter request. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filter request. - * - * 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. Order by fields for the result. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Order by fields for the result. - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListAssetsResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListAssetsResponse.php deleted file mode 100644 index fe96e264e2b6..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListAssetsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.dataplex.v1.ListAssetsResponse - */ -class ListAssetsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Asset under the given parent zone. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.Asset assets = 1; - */ - private $assets; - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * 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\Dataplex\V1\Asset[] $assets - * Asset under the given parent zone. - * @type string $next_page_token - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Asset under the given parent zone. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.Asset assets = 1; - * @return RepeatedField<\Google\Cloud\Dataplex\V1\Asset> - */ - public function getAssets() - { - return $this->assets; - } - - /** - * Asset under the given parent zone. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.Asset assets = 1; - * @param \Google\Cloud\Dataplex\V1\Asset[] $var - * @return $this - */ - public function setAssets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\Asset::class); - $this->assets = $arr; - - return $this; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataAssetsRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataAssetsRequest.php deleted file mode 100644 index f073b9e49930..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataAssetsRequest.php +++ /dev/null @@ -1,267 +0,0 @@ -google.cloud.dataplex.v1.ListDataAssetsRequest - */ -class ListDataAssetsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which has this collection of data assets. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Filter expression that filters data assets listed in the - * response. - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Order by expression that orders data assets listed in the - * response. - * Supported `order_by` fields are: `name` or `create_time`. - * If not specified, the ordering is undefined. - * - * Generated from protobuf field string order_by = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. The maximum number of data assets to return. The service may - * return fewer than this value. If unspecified, at most 50 data assets will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * - * Generated from protobuf field int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListDataAssets` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListDataAssets` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The parent, which has this collection of data assets. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} - * Please see {@see DataProductServiceClient::dataProductName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\ListDataAssetsRequest - * - * @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, which has this collection of data assets. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} - * @type string $filter - * Optional. Filter expression that filters data assets listed in the - * response. - * @type string $order_by - * Optional. Order by expression that orders data assets listed in the - * response. - * Supported `order_by` fields are: `name` or `create_time`. - * If not specified, the ordering is undefined. - * @type int $page_size - * Optional. The maximum number of data assets to return. The service may - * return fewer than this value. If unspecified, at most 50 data assets will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * @type string $page_token - * Optional. A page token, received from a previous `ListDataAssets` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListDataAssets` must - * match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataProducts::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which has this collection of data assets. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} - * - * 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, which has this collection of data assets. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/dataProducts/{data_product_id} - * - * 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. Filter expression that filters data assets listed in the - * response. - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filter expression that filters data assets listed in the - * response. - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Optional. Order by expression that orders data assets listed in the - * response. - * Supported `order_by` fields are: `name` or `create_time`. - * If not specified, the ordering is undefined. - * - * Generated from protobuf field string order_by = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Order by expression that orders data assets listed in the - * response. - * Supported `order_by` fields are: `name` or `create_time`. - * If not specified, the ordering is undefined. - * - * Generated from protobuf field string order_by = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Optional. The maximum number of data assets to return. The service may - * return fewer than this value. If unspecified, at most 50 data assets will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * - * Generated from protobuf field int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of data assets to return. The service may - * return fewer than this value. If unspecified, at most 50 data assets will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * - * Generated from protobuf field int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `ListDataAssets` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListDataAssets` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListDataAssets` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListDataAssets` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 5 [(.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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataAssetsResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataAssetsResponse.php deleted file mode 100644 index b8a6ac4beb0c..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataAssetsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.dataplex.v1.ListDataAssetsResponse - */ -class ListDataAssetsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The data assets for the requested filter criteria. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataAsset data_assets = 1; - */ - private $data_assets; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is empty, then 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\Dataplex\V1\DataAsset[] $data_assets - * The data assets for the requested filter criteria. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is empty, then there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataProducts::initOnce(); - parent::__construct($data); - } - - /** - * The data assets for the requested filter criteria. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataAsset data_assets = 1; - * @return RepeatedField<\Google\Cloud\Dataplex\V1\DataAsset> - */ - public function getDataAssets() - { - return $this->data_assets; - } - - /** - * The data assets for the requested filter criteria. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataAsset data_assets = 1; - * @param \Google\Cloud\Dataplex\V1\DataAsset[] $var - * @return $this - */ - public function setDataAssets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\DataAsset::class); - $this->data_assets = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is empty, then 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 can be sent as `page_token` to retrieve the next page. - * If this field is empty, then 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataAttributeBindingsRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataAttributeBindingsRequest.php deleted file mode 100644 index 1007e6037b38..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataAttributeBindingsRequest.php +++ /dev/null @@ -1,262 +0,0 @@ -google.cloud.dataplex.v1.ListDataAttributeBindingsRequest - */ -class ListDataAttributeBindingsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the Location: - * projects/{project_number}/locations/{location_id} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Maximum number of DataAttributeBindings to return. The service - * may return fewer than this value. If unspecified, at most 10 - * DataAttributeBindings will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. Page token received from a previous `ListDataAttributeBindings` - * call. Provide this to retrieve the subsequent page. When paginating, all - * other parameters provided to `ListDataAttributeBindings` 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 = ''; - /** - * Optional. Filter request. - * Filter using resource: filter=resource:"resource-name" - * Filter using attribute: filter=attributes:"attribute-name" - * Filter using attribute in paths list: - * filter=paths.attributes:"attribute-name" - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Order by fields for the result. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The resource name of the Location: - * projects/{project_number}/locations/{location_id} - * Please see {@see DataTaxonomyServiceClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\ListDataAttributeBindingsRequest - * - * @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 resource name of the Location: - * projects/{project_number}/locations/{location_id} - * @type int $page_size - * Optional. Maximum number of DataAttributeBindings to return. The service - * may return fewer than this value. If unspecified, at most 10 - * DataAttributeBindings will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. - * @type string $page_token - * Optional. Page token received from a previous `ListDataAttributeBindings` - * call. Provide this to retrieve the subsequent page. When paginating, all - * other parameters provided to `ListDataAttributeBindings` must match the - * call that provided the page token. - * @type string $filter - * Optional. Filter request. - * Filter using resource: filter=resource:"resource-name" - * Filter using attribute: filter=attributes:"attribute-name" - * Filter using attribute in paths list: - * filter=paths.attributes:"attribute-name" - * @type string $order_by - * Optional. Order by fields for the result. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataTaxonomy::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the Location: - * projects/{project_number}/locations/{location_id} - * - * 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 resource name of the Location: - * projects/{project_number}/locations/{location_id} - * - * 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. Maximum number of DataAttributeBindings to return. The service - * may return fewer than this value. If unspecified, at most 10 - * DataAttributeBindings will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Maximum number of DataAttributeBindings to return. The service - * may return fewer than this value. If unspecified, at most 10 - * DataAttributeBindings will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. - * - * 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. Page token received from a previous `ListDataAttributeBindings` - * call. Provide this to retrieve the subsequent page. When paginating, all - * other parameters provided to `ListDataAttributeBindings` 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. Page token received from a previous `ListDataAttributeBindings` - * call. Provide this to retrieve the subsequent page. When paginating, all - * other parameters provided to `ListDataAttributeBindings` 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; - } - - /** - * Optional. Filter request. - * Filter using resource: filter=resource:"resource-name" - * Filter using attribute: filter=attributes:"attribute-name" - * Filter using attribute in paths list: - * filter=paths.attributes:"attribute-name" - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filter request. - * Filter using resource: filter=resource:"resource-name" - * Filter using attribute: filter=attributes:"attribute-name" - * Filter using attribute in paths list: - * filter=paths.attributes:"attribute-name" - * - * 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. Order by fields for the result. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Order by fields for the result. - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataAttributeBindingsResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataAttributeBindingsResponse.php deleted file mode 100644 index cbc2cb30fb2b..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataAttributeBindingsResponse.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.dataplex.v1.ListDataAttributeBindingsResponse - */ -class ListDataAttributeBindingsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * DataAttributeBindings under the given parent Location. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataAttributeBinding data_attribute_bindings = 1; - */ - private $data_attribute_bindings; - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable_locations = 3; - */ - private $unreachable_locations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\DataAttributeBinding[] $data_attribute_bindings - * DataAttributeBindings under the given parent Location. - * @type string $next_page_token - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * @type string[] $unreachable_locations - * Locations that could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataTaxonomy::initOnce(); - parent::__construct($data); - } - - /** - * DataAttributeBindings under the given parent Location. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataAttributeBinding data_attribute_bindings = 1; - * @return RepeatedField<\Google\Cloud\Dataplex\V1\DataAttributeBinding> - */ - public function getDataAttributeBindings() - { - return $this->data_attribute_bindings; - } - - /** - * DataAttributeBindings under the given parent Location. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataAttributeBinding data_attribute_bindings = 1; - * @param \Google\Cloud\Dataplex\V1\DataAttributeBinding[] $var - * @return $this - */ - public function setDataAttributeBindings($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\DataAttributeBinding::class); - $this->data_attribute_bindings = $arr; - - return $this; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable_locations = 3; - * @return RepeatedField - */ - public function getUnreachableLocations() - { - return $this->unreachable_locations; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable_locations = 3; - * @param string[] $var - * @return $this - */ - public function setUnreachableLocations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable_locations = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataAttributesRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataAttributesRequest.php deleted file mode 100644 index 15a9f5fc64e0..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataAttributesRequest.php +++ /dev/null @@ -1,246 +0,0 @@ -google.cloud.dataplex.v1.ListDataAttributesRequest - */ -class ListDataAttributesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the DataTaxonomy: - * projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Maximum number of DataAttributes to return. The service may - * return fewer than this value. If unspecified, at most 10 dataAttributes - * will be returned. The maximum value is 1000; values above 1000 will be - * coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. Page token received from a previous `ListDataAttributes` call. - * Provide this to retrieve the subsequent page. When paginating, all other - * parameters provided to `ListDataAttributes` 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 = ''; - /** - * Optional. Filter request. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Order by fields for the result. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The resource name of the DataTaxonomy: - * projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id} - * Please see {@see DataTaxonomyServiceClient::dataTaxonomyName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\ListDataAttributesRequest - * - * @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 resource name of the DataTaxonomy: - * projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id} - * @type int $page_size - * Optional. Maximum number of DataAttributes to return. The service may - * return fewer than this value. If unspecified, at most 10 dataAttributes - * will be returned. The maximum value is 1000; values above 1000 will be - * coerced to 1000. - * @type string $page_token - * Optional. Page token received from a previous `ListDataAttributes` call. - * Provide this to retrieve the subsequent page. When paginating, all other - * parameters provided to `ListDataAttributes` must match the call that - * provided the page token. - * @type string $filter - * Optional. Filter request. - * @type string $order_by - * Optional. Order by fields for the result. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataTaxonomy::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the DataTaxonomy: - * projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id} - * - * 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 resource name of the DataTaxonomy: - * projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id} - * - * 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. Maximum number of DataAttributes to return. The service may - * return fewer than this value. If unspecified, at most 10 dataAttributes - * will be returned. The maximum value is 1000; values above 1000 will be - * coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Maximum number of DataAttributes to return. The service may - * return fewer than this value. If unspecified, at most 10 dataAttributes - * will be returned. The maximum value is 1000; values above 1000 will be - * coerced to 1000. - * - * 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. Page token received from a previous `ListDataAttributes` call. - * Provide this to retrieve the subsequent page. When paginating, all other - * parameters provided to `ListDataAttributes` 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. Page token received from a previous `ListDataAttributes` call. - * Provide this to retrieve the subsequent page. When paginating, all other - * parameters provided to `ListDataAttributes` 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; - } - - /** - * Optional. Filter request. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filter request. - * - * 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. Order by fields for the result. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Order by fields for the result. - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataAttributesResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataAttributesResponse.php deleted file mode 100644 index 70c3655a575a..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataAttributesResponse.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.dataplex.v1.ListDataAttributesResponse - */ -class ListDataAttributesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * DataAttributes under the given parent DataTaxonomy. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataAttribute data_attributes = 1; - */ - private $data_attributes; - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable_locations = 3; - */ - private $unreachable_locations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\DataAttribute[] $data_attributes - * DataAttributes under the given parent DataTaxonomy. - * @type string $next_page_token - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * @type string[] $unreachable_locations - * Locations that could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataTaxonomy::initOnce(); - parent::__construct($data); - } - - /** - * DataAttributes under the given parent DataTaxonomy. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataAttribute data_attributes = 1; - * @return RepeatedField<\Google\Cloud\Dataplex\V1\DataAttribute> - */ - public function getDataAttributes() - { - return $this->data_attributes; - } - - /** - * DataAttributes under the given parent DataTaxonomy. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataAttribute data_attributes = 1; - * @param \Google\Cloud\Dataplex\V1\DataAttribute[] $var - * @return $this - */ - public function setDataAttributes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\DataAttribute::class); - $this->data_attributes = $arr; - - return $this; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable_locations = 3; - * @return RepeatedField - */ - public function getUnreachableLocations() - { - return $this->unreachable_locations; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable_locations = 3; - * @param string[] $var - * @return $this - */ - public function setUnreachableLocations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable_locations = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataProductsRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataProductsRequest.php deleted file mode 100644 index 942839cdea11..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataProductsRequest.php +++ /dev/null @@ -1,286 +0,0 @@ -google.cloud.dataplex.v1.ListDataProductsRequest - */ -class ListDataProductsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which has this collection of data products. - * Format: `projects/{project_id_or_number}/locations/{location_id}`. - * Supports listing across all locations with the wildcard `-` (hyphen) - * character. Example: `projects/{project_id_or_number}/locations/-` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Filter expression that filters data products listed in the - * response. - * Example of using this filter is: `display_name="my-data-product"` - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. The maximum number of data products to return. The service may - * return fewer than this value. If unspecified, at most 50 data products will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * - * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListDataProducts` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListDataProducts` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Order by expression that orders data products listed in the - * response. - * Supported Order by fields are: `name` or `create_time`. - * If not specified, the ordering is undefined. - * Ordering by `create_time` is not supported when listing resources across - * locations (i.e. when request contains `/locations/-`). - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The parent, which has this collection of data products. - * - * Format: `projects/{project_id_or_number}/locations/{location_id}`. - * - * Supports listing across all locations with the wildcard `-` (hyphen) - * character. Example: `projects/{project_id_or_number}/locations/-` - * Please see {@see DataProductServiceClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\ListDataProductsRequest - * - * @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, which has this collection of data products. - * Format: `projects/{project_id_or_number}/locations/{location_id}`. - * Supports listing across all locations with the wildcard `-` (hyphen) - * character. Example: `projects/{project_id_or_number}/locations/-` - * @type string $filter - * Optional. Filter expression that filters data products listed in the - * response. - * Example of using this filter is: `display_name="my-data-product"` - * @type int $page_size - * Optional. The maximum number of data products to return. The service may - * return fewer than this value. If unspecified, at most 50 data products will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * @type string $page_token - * Optional. A page token, received from a previous `ListDataProducts` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListDataProducts` must - * match the call that provided the page token. - * @type string $order_by - * Optional. Order by expression that orders data products listed in the - * response. - * Supported Order by fields are: `name` or `create_time`. - * If not specified, the ordering is undefined. - * Ordering by `create_time` is not supported when listing resources across - * locations (i.e. when request contains `/locations/-`). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataProducts::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which has this collection of data products. - * Format: `projects/{project_id_or_number}/locations/{location_id}`. - * Supports listing across all locations with the wildcard `-` (hyphen) - * character. Example: `projects/{project_id_or_number}/locations/-` - * - * 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, which has this collection of data products. - * Format: `projects/{project_id_or_number}/locations/{location_id}`. - * Supports listing across all locations with the wildcard `-` (hyphen) - * character. Example: `projects/{project_id_or_number}/locations/-` - * - * 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. Filter expression that filters data products listed in the - * response. - * Example of using this filter is: `display_name="my-data-product"` - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filter expression that filters data products listed in the - * response. - * Example of using this filter is: `display_name="my-data-product"` - * - * Generated from protobuf field string filter = 2 [(.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 maximum number of data products to return. The service may - * return fewer than this value. If unspecified, at most 50 data products will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * - * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of data products to return. The service may - * return fewer than this value. If unspecified, at most 50 data products will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * - * 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 page token, received from a previous `ListDataProducts` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListDataProducts` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListDataProducts` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListDataProducts` must - * match the call that provided the page token. - * - * 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. Order by expression that orders data products listed in the - * response. - * Supported Order by fields are: `name` or `create_time`. - * If not specified, the ordering is undefined. - * Ordering by `create_time` is not supported when listing resources across - * locations (i.e. when request contains `/locations/-`). - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Order by expression that orders data products listed in the - * response. - * Supported Order by fields are: `name` or `create_time`. - * If not specified, the ordering is undefined. - * Ordering by `create_time` is not supported when listing resources across - * locations (i.e. when request contains `/locations/-`). - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataProductsResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataProductsResponse.php deleted file mode 100644 index ffa39cd40fe0..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataProductsResponse.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.dataplex.v1.ListDataProductsResponse - */ -class ListDataProductsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The data products for the requested filter criteria. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataProduct data_products = 1; - */ - private $data_products; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is empty, then there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Unordered list. Locations that the service couldn't reach. - * - * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\DataProduct[] $data_products - * The data products for the requested filter criteria. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is empty, then there are no subsequent pages. - * @type string[] $unreachable - * Unordered list. Locations that the service couldn't reach. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataProducts::initOnce(); - parent::__construct($data); - } - - /** - * The data products for the requested filter criteria. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataProduct data_products = 1; - * @return RepeatedField<\Google\Cloud\Dataplex\V1\DataProduct> - */ - public function getDataProducts() - { - return $this->data_products; - } - - /** - * The data products for the requested filter criteria. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataProduct data_products = 1; - * @param \Google\Cloud\Dataplex\V1\DataProduct[] $var - * @return $this - */ - public function setDataProducts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\DataProduct::class); - $this->data_products = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is empty, then 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 can be sent as `page_token` to retrieve the next page. - * If this field is empty, then 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; - } - - /** - * Unordered list. Locations that the service couldn't reach. - * - * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; - * @return RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Unordered list. Locations that the service couldn't reach. - * - * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; - * @param string[] $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataScanJobsRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataScanJobsRequest.php deleted file mode 100644 index db38ce7a7696..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataScanJobsRequest.php +++ /dev/null @@ -1,266 +0,0 @@ -google.cloud.dataplex.v1.ListDataScanJobsRequest - */ -class ListDataScanJobsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the parent environment: - * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}` - * where `project` refers to a *project_id* or *project_number* and - * `location_id` refers to a Google Cloud region. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Maximum number of DataScanJobs to return. The service may return - * fewer than this value. If unspecified, at most 10 DataScanJobs will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. Page token received from a previous `ListDataScanJobs` call. - * Provide this to retrieve the subsequent page. When paginating, all other - * parameters provided to `ListDataScanJobs` 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 = ''; - /** - * Optional. An expression for filtering the results of the ListDataScanJobs - * request. - * If unspecified, all datascan jobs will be returned. Multiple filters can be - * applied (with `AND`, `OR` logical operators). Filters are case-sensitive. - * Allowed fields are: - * - `start_time` - * - `end_time` - * `start_time` and `end_time` expect RFC-3339 formatted strings (e.g. - * 2018-10-08T18:30:00-07:00). - * For instance, 'start_time > 2018-10-08T00:00:00.123456789Z AND end_time < - * 2018-10-09T00:00:00.123456789Z' limits results to DataScanJobs between - * specified start and end times. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * @param string $parent Required. The resource name of the parent environment: - * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}` - * where `project` refers to a *project_id* or *project_number* and - * `location_id` refers to a Google Cloud region. Please see - * {@see DataScanServiceClient::dataScanName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\ListDataScanJobsRequest - * - * @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 resource name of the parent environment: - * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}` - * where `project` refers to a *project_id* or *project_number* and - * `location_id` refers to a Google Cloud region. - * @type int $page_size - * Optional. Maximum number of DataScanJobs to return. The service may return - * fewer than this value. If unspecified, at most 10 DataScanJobs will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * @type string $page_token - * Optional. Page token received from a previous `ListDataScanJobs` call. - * Provide this to retrieve the subsequent page. When paginating, all other - * parameters provided to `ListDataScanJobs` must match the call that provided - * the page token. - * @type string $filter - * Optional. An expression for filtering the results of the ListDataScanJobs - * request. - * If unspecified, all datascan jobs will be returned. Multiple filters can be - * applied (with `AND`, `OR` logical operators). Filters are case-sensitive. - * Allowed fields are: - * - `start_time` - * - `end_time` - * `start_time` and `end_time` expect RFC-3339 formatted strings (e.g. - * 2018-10-08T18:30:00-07:00). - * For instance, 'start_time > 2018-10-08T00:00:00.123456789Z AND end_time < - * 2018-10-09T00:00:00.123456789Z' limits results to DataScanJobs between - * specified start and end times. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Datascans::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the parent environment: - * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}` - * where `project` refers to a *project_id* or *project_number* and - * `location_id` refers to a Google Cloud region. - * - * 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 resource name of the parent environment: - * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}` - * where `project` refers to a *project_id* or *project_number* and - * `location_id` refers to a Google Cloud region. - * - * 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. Maximum number of DataScanJobs to return. The service may return - * fewer than this value. If unspecified, at most 10 DataScanJobs will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Maximum number of DataScanJobs to return. The service may return - * fewer than this value. If unspecified, at most 10 DataScanJobs will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * - * 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. Page token received from a previous `ListDataScanJobs` call. - * Provide this to retrieve the subsequent page. When paginating, all other - * parameters provided to `ListDataScanJobs` 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. Page token received from a previous `ListDataScanJobs` call. - * Provide this to retrieve the subsequent page. When paginating, all other - * parameters provided to `ListDataScanJobs` 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; - } - - /** - * Optional. An expression for filtering the results of the ListDataScanJobs - * request. - * If unspecified, all datascan jobs will be returned. Multiple filters can be - * applied (with `AND`, `OR` logical operators). Filters are case-sensitive. - * Allowed fields are: - * - `start_time` - * - `end_time` - * `start_time` and `end_time` expect RFC-3339 formatted strings (e.g. - * 2018-10-08T18:30:00-07:00). - * For instance, 'start_time > 2018-10-08T00:00:00.123456789Z AND end_time < - * 2018-10-09T00:00:00.123456789Z' limits results to DataScanJobs between - * specified start and end times. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. An expression for filtering the results of the ListDataScanJobs - * request. - * If unspecified, all datascan jobs will be returned. Multiple filters can be - * applied (with `AND`, `OR` logical operators). Filters are case-sensitive. - * Allowed fields are: - * - `start_time` - * - `end_time` - * `start_time` and `end_time` expect RFC-3339 formatted strings (e.g. - * 2018-10-08T18:30:00-07:00). - * For instance, 'start_time > 2018-10-08T00:00:00.123456789Z AND end_time < - * 2018-10-09T00:00:00.123456789Z' limits results to DataScanJobs between - * specified start and end times. - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataScanJobsResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataScanJobsResponse.php deleted file mode 100644 index 8ec00a239bec..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataScanJobsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.dataplex.v1.ListDataScanJobsResponse - */ -class ListDataScanJobsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * DataScanJobs (`BASIC` view only) under a given dataScan. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataScanJob data_scan_jobs = 1; - */ - private $data_scan_jobs; - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * 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\Dataplex\V1\DataScanJob[] $data_scan_jobs - * DataScanJobs (`BASIC` view only) under a given dataScan. - * @type string $next_page_token - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Datascans::initOnce(); - parent::__construct($data); - } - - /** - * DataScanJobs (`BASIC` view only) under a given dataScan. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataScanJob data_scan_jobs = 1; - * @return RepeatedField<\Google\Cloud\Dataplex\V1\DataScanJob> - */ - public function getDataScanJobs() - { - return $this->data_scan_jobs; - } - - /** - * DataScanJobs (`BASIC` view only) under a given dataScan. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataScanJob data_scan_jobs = 1; - * @param \Google\Cloud\Dataplex\V1\DataScanJob[] $var - * @return $this - */ - public function setDataScanJobs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\DataScanJob::class); - $this->data_scan_jobs = $arr; - - return $this; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataScansRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataScansRequest.php deleted file mode 100644 index 3643e95afce9..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataScansRequest.php +++ /dev/null @@ -1,256 +0,0 @@ -google.cloud.dataplex.v1.ListDataScansRequest - */ -class ListDataScansRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the parent location: - * `projects/{project}/locations/{location_id}` - * where `project` refers to a *project_id* or *project_number* and - * `location_id` refers to a Google Cloud region. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Maximum number of dataScans to return. The service may return - * fewer than this value. If unspecified, at most 500 scans will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. Page token received from a previous `ListDataScans` call. Provide - * this to retrieve the subsequent page. When paginating, all other parameters - * provided to `ListDataScans` 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 = ''; - /** - * Optional. Filter request. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Order by fields (`name` or `create_time`) for the result. - * If not specified, the ordering is undefined. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The resource name of the parent location: - * `projects/{project}/locations/{location_id}` - * where `project` refers to a *project_id* or *project_number* and - * `location_id` refers to a Google Cloud region. Please see - * {@see DataScanServiceClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\ListDataScansRequest - * - * @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 resource name of the parent location: - * `projects/{project}/locations/{location_id}` - * where `project` refers to a *project_id* or *project_number* and - * `location_id` refers to a Google Cloud region. - * @type int $page_size - * Optional. Maximum number of dataScans to return. The service may return - * fewer than this value. If unspecified, at most 500 scans will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. - * @type string $page_token - * Optional. Page token received from a previous `ListDataScans` call. Provide - * this to retrieve the subsequent page. When paginating, all other parameters - * provided to `ListDataScans` must match the call that provided the - * page token. - * @type string $filter - * Optional. Filter request. - * @type string $order_by - * Optional. Order by fields (`name` or `create_time`) for the result. - * If not specified, the ordering is undefined. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Datascans::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the parent location: - * `projects/{project}/locations/{location_id}` - * where `project` refers to a *project_id* or *project_number* and - * `location_id` refers to a Google Cloud region. - * - * 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 resource name of the parent location: - * `projects/{project}/locations/{location_id}` - * where `project` refers to a *project_id* or *project_number* and - * `location_id` refers to a Google Cloud region. - * - * 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. Maximum number of dataScans to return. The service may return - * fewer than this value. If unspecified, at most 500 scans will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Maximum number of dataScans to return. The service may return - * fewer than this value. If unspecified, at most 500 scans will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. - * - * 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. Page token received from a previous `ListDataScans` call. Provide - * this to retrieve the subsequent page. When paginating, all other parameters - * provided to `ListDataScans` 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. Page token received from a previous `ListDataScans` call. Provide - * this to retrieve the subsequent page. When paginating, all other parameters - * provided to `ListDataScans` 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; - } - - /** - * Optional. Filter request. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filter request. - * - * 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. Order by fields (`name` or `create_time`) for the result. - * If not specified, the ordering is undefined. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Order by fields (`name` or `create_time`) for the result. - * If not specified, the ordering is undefined. - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataScansResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataScansResponse.php deleted file mode 100644 index 2038026be5de..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataScansResponse.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.dataplex.v1.ListDataScansResponse - */ -class ListDataScansResponse extends \Google\Protobuf\Internal\Message -{ - /** - * DataScans (`BASIC` view only) under the given parent location. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataScan data_scans = 1; - */ - private $data_scans; - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\DataScan[] $data_scans - * DataScans (`BASIC` view only) under the given parent location. - * @type string $next_page_token - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * @type string[] $unreachable - * Locations that could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Datascans::initOnce(); - parent::__construct($data); - } - - /** - * DataScans (`BASIC` view only) under the given parent location. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataScan data_scans = 1; - * @return RepeatedField<\Google\Cloud\Dataplex\V1\DataScan> - */ - public function getDataScans() - { - return $this->data_scans; - } - - /** - * DataScans (`BASIC` view only) under the given parent location. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataScan data_scans = 1; - * @param \Google\Cloud\Dataplex\V1\DataScan[] $var - * @return $this - */ - public function setDataScans($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\DataScan::class); - $this->data_scans = $arr; - - return $this; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @return RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @param string[] $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataTaxonomiesRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataTaxonomiesRequest.php deleted file mode 100644 index 11dc8914c625..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataTaxonomiesRequest.php +++ /dev/null @@ -1,251 +0,0 @@ -google.cloud.dataplex.v1.ListDataTaxonomiesRequest - */ -class ListDataTaxonomiesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the DataTaxonomy location, of the form: - * projects/{project_number}/locations/{location_id} - * where `location_id` refers to a Google Cloud region. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Maximum number of DataTaxonomies to return. The service may - * return fewer than this value. If unspecified, at most 10 DataTaxonomies - * will be returned. The maximum value is 1000; values above 1000 will be - * coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. Page token received from a previous ` ListDataTaxonomies` call. - * Provide this to retrieve the subsequent page. When paginating, all other - * parameters provided to ` ListDataTaxonomies` 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 = ''; - /** - * Optional. Filter request. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Order by fields for the result. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The resource name of the DataTaxonomy location, of the form: - * projects/{project_number}/locations/{location_id} - * where `location_id` refers to a Google Cloud region. Please see - * {@see DataTaxonomyServiceClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\ListDataTaxonomiesRequest - * - * @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 resource name of the DataTaxonomy location, of the form: - * projects/{project_number}/locations/{location_id} - * where `location_id` refers to a Google Cloud region. - * @type int $page_size - * Optional. Maximum number of DataTaxonomies to return. The service may - * return fewer than this value. If unspecified, at most 10 DataTaxonomies - * will be returned. The maximum value is 1000; values above 1000 will be - * coerced to 1000. - * @type string $page_token - * Optional. Page token received from a previous ` ListDataTaxonomies` call. - * Provide this to retrieve the subsequent page. When paginating, all other - * parameters provided to ` ListDataTaxonomies` must match the call that - * provided the page token. - * @type string $filter - * Optional. Filter request. - * @type string $order_by - * Optional. Order by fields for the result. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataTaxonomy::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the DataTaxonomy location, of the form: - * projects/{project_number}/locations/{location_id} - * where `location_id` refers to a Google Cloud region. - * - * 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 resource name of the DataTaxonomy location, of the form: - * projects/{project_number}/locations/{location_id} - * where `location_id` refers to a Google Cloud region. - * - * 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. Maximum number of DataTaxonomies to return. The service may - * return fewer than this value. If unspecified, at most 10 DataTaxonomies - * will be returned. The maximum value is 1000; values above 1000 will be - * coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Maximum number of DataTaxonomies to return. The service may - * return fewer than this value. If unspecified, at most 10 DataTaxonomies - * will be returned. The maximum value is 1000; values above 1000 will be - * coerced to 1000. - * - * 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. Page token received from a previous ` ListDataTaxonomies` call. - * Provide this to retrieve the subsequent page. When paginating, all other - * parameters provided to ` ListDataTaxonomies` 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. Page token received from a previous ` ListDataTaxonomies` call. - * Provide this to retrieve the subsequent page. When paginating, all other - * parameters provided to ` ListDataTaxonomies` 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; - } - - /** - * Optional. Filter request. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filter request. - * - * 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. Order by fields for the result. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Order by fields for the result. - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataTaxonomiesResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataTaxonomiesResponse.php deleted file mode 100644 index b014118a717b..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListDataTaxonomiesResponse.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.dataplex.v1.ListDataTaxonomiesResponse - */ -class ListDataTaxonomiesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * DataTaxonomies under the given parent location. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataTaxonomy data_taxonomies = 1; - */ - private $data_taxonomies; - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable_locations = 3; - */ - private $unreachable_locations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\DataTaxonomy[] $data_taxonomies - * DataTaxonomies under the given parent location. - * @type string $next_page_token - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * @type string[] $unreachable_locations - * Locations that could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataTaxonomy::initOnce(); - parent::__construct($data); - } - - /** - * DataTaxonomies under the given parent location. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataTaxonomy data_taxonomies = 1; - * @return RepeatedField<\Google\Cloud\Dataplex\V1\DataTaxonomy> - */ - public function getDataTaxonomies() - { - return $this->data_taxonomies; - } - - /** - * DataTaxonomies under the given parent location. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataTaxonomy data_taxonomies = 1; - * @param \Google\Cloud\Dataplex\V1\DataTaxonomy[] $var - * @return $this - */ - public function setDataTaxonomies($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\DataTaxonomy::class); - $this->data_taxonomies = $arr; - - return $this; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable_locations = 3; - * @return RepeatedField - */ - public function getUnreachableLocations() - { - return $this->unreachable_locations; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable_locations = 3; - * @param string[] $var - * @return $this - */ - public function setUnreachableLocations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable_locations = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEncryptionConfigsRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEncryptionConfigsRequest.php deleted file mode 100644 index 578d218aa887..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEncryptionConfigsRequest.php +++ /dev/null @@ -1,297 +0,0 @@ -google.cloud.dataplex.v1.ListEncryptionConfigsRequest - */ -class ListEncryptionConfigsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The location for which the EncryptionConfig is to be listed. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Maximum number of EncryptionConfigs to return. The service may - * return fewer than this value. If unspecified, at most 10 EncryptionConfigs - * will be returned. The maximum value is 1000; values above 1000 will be - * coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. Page token received from a previous `ListEncryptionConfigs` call. - * Provide this to retrieve the subsequent page. When paginating, the - * parameters - filter and order_by provided to `ListEncryptionConfigs` 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 = ''; - /** - * Optional. Filter the EncryptionConfigs to be returned. - * Using bare literals: (These values will be matched anywhere it may appear - * in the object's field values) - * * filter=some_value - * Using fields: (These values will be matched only in the specified field) - * * filter=some_field=some_value - * Supported fields: - * * name, key, create_time, update_time, encryption_state - * Example: - * * filter=name=organizations/123/locations/us-central1/encryptionConfigs/test-config - * conjunctions: (AND, OR, NOT) - * * filter=name=organizations/123/locations/us-central1/encryptionConfigs/test-config - * AND mode=CMEK - * logical operators: (>, <, >=, <=, !=, =, :), - * * filter=create_time>2024-05-01T00:00:00.000Z - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Order by fields for the result. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The location for which the EncryptionConfig is to be listed. Please see - * {@see CmekServiceClient::organizationLocationName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\ListEncryptionConfigsRequest - * - * @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 location for which the EncryptionConfig is to be listed. - * @type int $page_size - * Optional. Maximum number of EncryptionConfigs to return. The service may - * return fewer than this value. If unspecified, at most 10 EncryptionConfigs - * will be returned. The maximum value is 1000; values above 1000 will be - * coerced to 1000. - * @type string $page_token - * Optional. Page token received from a previous `ListEncryptionConfigs` call. - * Provide this to retrieve the subsequent page. When paginating, the - * parameters - filter and order_by provided to `ListEncryptionConfigs` must - * match the call that provided the page token. - * @type string $filter - * Optional. Filter the EncryptionConfigs to be returned. - * Using bare literals: (These values will be matched anywhere it may appear - * in the object's field values) - * * filter=some_value - * Using fields: (These values will be matched only in the specified field) - * * filter=some_field=some_value - * Supported fields: - * * name, key, create_time, update_time, encryption_state - * Example: - * * filter=name=organizations/123/locations/us-central1/encryptionConfigs/test-config - * conjunctions: (AND, OR, NOT) - * * filter=name=organizations/123/locations/us-central1/encryptionConfigs/test-config - * AND mode=CMEK - * logical operators: (>, <, >=, <=, !=, =, :), - * * filter=create_time>2024-05-01T00:00:00.000Z - * @type string $order_by - * Optional. Order by fields for the result. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Cmek::initOnce(); - parent::__construct($data); - } - - /** - * Required. The location for which the EncryptionConfig is to be listed. - * - * 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 location for which the EncryptionConfig is to be listed. - * - * 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. Maximum number of EncryptionConfigs to return. The service may - * return fewer than this value. If unspecified, at most 10 EncryptionConfigs - * will be returned. The maximum value is 1000; values above 1000 will be - * coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Maximum number of EncryptionConfigs to return. The service may - * return fewer than this value. If unspecified, at most 10 EncryptionConfigs - * will be returned. The maximum value is 1000; values above 1000 will be - * coerced to 1000. - * - * 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. Page token received from a previous `ListEncryptionConfigs` call. - * Provide this to retrieve the subsequent page. When paginating, the - * parameters - filter and order_by provided to `ListEncryptionConfigs` 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. Page token received from a previous `ListEncryptionConfigs` call. - * Provide this to retrieve the subsequent page. When paginating, the - * parameters - filter and order_by provided to `ListEncryptionConfigs` 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; - } - - /** - * Optional. Filter the EncryptionConfigs to be returned. - * Using bare literals: (These values will be matched anywhere it may appear - * in the object's field values) - * * filter=some_value - * Using fields: (These values will be matched only in the specified field) - * * filter=some_field=some_value - * Supported fields: - * * name, key, create_time, update_time, encryption_state - * Example: - * * filter=name=organizations/123/locations/us-central1/encryptionConfigs/test-config - * conjunctions: (AND, OR, NOT) - * * filter=name=organizations/123/locations/us-central1/encryptionConfigs/test-config - * AND mode=CMEK - * logical operators: (>, <, >=, <=, !=, =, :), - * * filter=create_time>2024-05-01T00:00:00.000Z - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filter the EncryptionConfigs to be returned. - * Using bare literals: (These values will be matched anywhere it may appear - * in the object's field values) - * * filter=some_value - * Using fields: (These values will be matched only in the specified field) - * * filter=some_field=some_value - * Supported fields: - * * name, key, create_time, update_time, encryption_state - * Example: - * * filter=name=organizations/123/locations/us-central1/encryptionConfigs/test-config - * conjunctions: (AND, OR, NOT) - * * filter=name=organizations/123/locations/us-central1/encryptionConfigs/test-config - * AND mode=CMEK - * logical operators: (>, <, >=, <=, !=, =, :), - * * filter=create_time>2024-05-01T00:00:00.000Z - * - * 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. Order by fields for the result. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Order by fields for the result. - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEncryptionConfigsResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEncryptionConfigsResponse.php deleted file mode 100644 index 04cdb97afff2..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEncryptionConfigsResponse.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.dataplex.v1.ListEncryptionConfigsResponse - */ -class ListEncryptionConfigsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of EncryptionConfigs under the given parent location. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.EncryptionConfig encryption_configs = 1; - */ - private $encryption_configs; - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable_locations = 3 [(.google.api.resource_reference) = { - */ - private $unreachable_locations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\EncryptionConfig[] $encryption_configs - * The list of EncryptionConfigs under the given parent location. - * @type string $next_page_token - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * @type string[] $unreachable_locations - * Locations that could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Cmek::initOnce(); - parent::__construct($data); - } - - /** - * The list of EncryptionConfigs under the given parent location. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.EncryptionConfig encryption_configs = 1; - * @return RepeatedField<\Google\Cloud\Dataplex\V1\EncryptionConfig> - */ - public function getEncryptionConfigs() - { - return $this->encryption_configs; - } - - /** - * The list of EncryptionConfigs under the given parent location. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.EncryptionConfig encryption_configs = 1; - * @param \Google\Cloud\Dataplex\V1\EncryptionConfig[] $var - * @return $this - */ - public function setEncryptionConfigs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\EncryptionConfig::class); - $this->encryption_configs = $arr; - - return $this; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable_locations = 3 [(.google.api.resource_reference) = { - * @return RepeatedField - */ - public function getUnreachableLocations() - { - return $this->unreachable_locations; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable_locations = 3 [(.google.api.resource_reference) = { - * @param string[] $var - * @return $this - */ - public function setUnreachableLocations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable_locations = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntitiesRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntitiesRequest.php deleted file mode 100644 index ca616d8417f6..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntitiesRequest.php +++ /dev/null @@ -1,270 +0,0 @@ -google.cloud.dataplex.v1.ListEntitiesRequest - */ -class ListEntitiesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the parent zone: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. Specify the entity view to make a partial list request. - * - * Generated from protobuf field .google.cloud.dataplex.v1.ListEntitiesRequest.EntityView view = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $view = 0; - /** - * Optional. Maximum number of entities to return. The service may return - * fewer than this value. If unspecified, 100 entities will be returned by - * default. The maximum value is 500; larger values will will be truncated to - * 500. - * - * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. Page token received from a previous `ListEntities` call. Provide - * this to retrieve the subsequent page. When paginating, all other parameters - * provided to `ListEntities` must match the call that provided the - * page token. - * - * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. The following filter parameters can be added to the URL to limit - * the entities returned by the API: - * - Entity ID: ?filter="id=entityID" - * - Asset ID: ?filter="asset=assetID" - * - Data path ?filter="data_path=gs://my-bucket" - * - Is HIVE compatible: ?filter="hive_compatible=true" - * - Is BigQuery compatible: ?filter="bigquery_compatible=true" - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * @param string $parent Required. The resource name of the parent zone: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. Please see - * {@see MetadataServiceClient::zoneName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\ListEntitiesRequest - * - * @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 resource name of the parent zone: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. - * @type int $view - * Required. Specify the entity view to make a partial list request. - * @type int $page_size - * Optional. Maximum number of entities to return. The service may return - * fewer than this value. If unspecified, 100 entities will be returned by - * default. The maximum value is 500; larger values will will be truncated to - * 500. - * @type string $page_token - * Optional. Page token received from a previous `ListEntities` call. Provide - * this to retrieve the subsequent page. When paginating, all other parameters - * provided to `ListEntities` must match the call that provided the - * page token. - * @type string $filter - * Optional. The following filter parameters can be added to the URL to limit - * the entities returned by the API: - * - Entity ID: ?filter="id=entityID" - * - Asset ID: ?filter="asset=assetID" - * - Data path ?filter="data_path=gs://my-bucket" - * - Is HIVE compatible: ?filter="hive_compatible=true" - * - Is BigQuery compatible: ?filter="bigquery_compatible=true" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Metadata::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the parent zone: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. - * - * 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 resource name of the parent zone: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. - * - * 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. Specify the entity view to make a partial list request. - * - * Generated from protobuf field .google.cloud.dataplex.v1.ListEntitiesRequest.EntityView view = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getView() - { - return $this->view; - } - - /** - * Required. Specify the entity view to make a partial list request. - * - * Generated from protobuf field .google.cloud.dataplex.v1.ListEntitiesRequest.EntityView view = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setView($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\ListEntitiesRequest\EntityView::class); - $this->view = $var; - - return $this; - } - - /** - * Optional. Maximum number of entities to return. The service may return - * fewer than this value. If unspecified, 100 entities will be returned by - * default. The maximum value is 500; larger values will will be truncated to - * 500. - * - * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Maximum number of entities to return. The service may return - * fewer than this value. If unspecified, 100 entities will be returned by - * default. The maximum value is 500; larger values will will be truncated to - * 500. - * - * 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. Page token received from a previous `ListEntities` call. Provide - * this to retrieve the subsequent page. When paginating, all other parameters - * provided to `ListEntities` must match the call that provided the - * page token. - * - * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. Page token received from a previous `ListEntities` call. Provide - * this to retrieve the subsequent page. When paginating, all other parameters - * provided to `ListEntities` must match the call that provided the - * page token. - * - * 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 following filter parameters can be added to the URL to limit - * the entities returned by the API: - * - Entity ID: ?filter="id=entityID" - * - Asset ID: ?filter="asset=assetID" - * - Data path ?filter="data_path=gs://my-bucket" - * - Is HIVE compatible: ?filter="hive_compatible=true" - * - Is BigQuery compatible: ?filter="bigquery_compatible=true" - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. The following filter parameters can be added to the URL to limit - * the entities returned by the API: - * - Entity ID: ?filter="id=entityID" - * - Asset ID: ?filter="asset=assetID" - * - Data path ?filter="data_path=gs://my-bucket" - * - Is HIVE compatible: ?filter="hive_compatible=true" - * - Is BigQuery compatible: ?filter="bigquery_compatible=true" - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntitiesRequest/EntityView.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntitiesRequest/EntityView.php deleted file mode 100644 index 6c5ed2eb6cae..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntitiesRequest/EntityView.php +++ /dev/null @@ -1,62 +0,0 @@ -google.cloud.dataplex.v1.ListEntitiesRequest.EntityView - */ -class EntityView -{ - /** - * The default unset value. Return both table and fileset entities - * if unspecified. - * - * Generated from protobuf enum ENTITY_VIEW_UNSPECIFIED = 0; - */ - const ENTITY_VIEW_UNSPECIFIED = 0; - /** - * Only list table entities. - * - * Generated from protobuf enum TABLES = 1; - */ - const TABLES = 1; - /** - * Only list fileset entities. - * - * Generated from protobuf enum FILESETS = 2; - */ - const FILESETS = 2; - - private static $valueToName = [ - self::ENTITY_VIEW_UNSPECIFIED => 'ENTITY_VIEW_UNSPECIFIED', - self::TABLES => 'TABLES', - self::FILESETS => 'FILESETS', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntitiesResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntitiesResponse.php deleted file mode 100644 index d73b46a8b79e..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntitiesResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.dataplex.v1.ListEntitiesResponse - */ -class ListEntitiesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Entities in the specified parent zone. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.Entity entities = 1; - */ - private $entities; - /** - * Token to retrieve the next page of results, or empty if there are no - * remaining results in the list. - * - * 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\Dataplex\V1\Entity[] $entities - * Entities in the specified parent zone. - * @type string $next_page_token - * Token to retrieve the next page of results, or empty if there are no - * remaining results in the list. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Metadata::initOnce(); - parent::__construct($data); - } - - /** - * Entities in the specified parent zone. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.Entity entities = 1; - * @return RepeatedField<\Google\Cloud\Dataplex\V1\Entity> - */ - public function getEntities() - { - return $this->entities; - } - - /** - * Entities in the specified parent zone. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.Entity entities = 1; - * @param \Google\Cloud\Dataplex\V1\Entity[] $var - * @return $this - */ - public function setEntities($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\Entity::class); - $this->entities = $arr; - - return $this; - } - - /** - * Token to retrieve the next page of results, or empty if there are no - * remaining results in the list. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Token to retrieve the next page of results, or empty if there are no - * remaining results in the list. - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntriesRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntriesRequest.php deleted file mode 100644 index ce501048eda1..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntriesRequest.php +++ /dev/null @@ -1,272 +0,0 @@ -google.cloud.dataplex.v1.ListEntriesRequest - */ -class ListEntriesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the parent Entry Group: - * `projects/{project}/locations/{location}/entryGroups/{entry_group}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Number of items to return per page. If there are remaining - * results, the service returns a next_page_token. If unspecified, the service - * returns at most 10 Entries. The maximum value is 100; values above 100 will - * be coerced to 100. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. Page token received from a previous `ListEntries` call. Provide - * this to retrieve the subsequent page. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. A filter on the entries to return. Filters are case-sensitive. - * You can filter the request by the following fields: - * * entry_type - * * entry_source.display_name - * * parent_entry - * The comparison operators are =, !=, <, >, <=, >=. The service compares - * strings according to lexical order. - * You can use the logical operators AND, OR, NOT in the filter. - * You can use Wildcard "*", but for entry_type and parent_entry you need to - * provide the full project id or number. - * You cannot use parent_entry in conjunction with other fields. - * Example filter expressions: - * * "entry_source.display_name=AnExampleDisplayName" - * * "entry_type=projects/example-project/locations/global/entryTypes/example-entry_type" - * * "entry_type=projects/example-project/locations/us/entryTypes/a* OR - * entry_type=projects/another-project/locations/*" - * * "NOT entry_source.display_name=AnotherExampleDisplayName" - * * "parent_entry=projects/example-project/locations/us/entryGroups/example-entry-group/entries/example-entry" - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * @param string $parent Required. The resource name of the parent Entry Group: - * `projects/{project}/locations/{location}/entryGroups/{entry_group}`. Please see - * {@see CatalogServiceClient::entryGroupName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\ListEntriesRequest - * - * @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 resource name of the parent Entry Group: - * `projects/{project}/locations/{location}/entryGroups/{entry_group}`. - * @type int $page_size - * Optional. Number of items to return per page. If there are remaining - * results, the service returns a next_page_token. If unspecified, the service - * returns at most 10 Entries. The maximum value is 100; values above 100 will - * be coerced to 100. - * @type string $page_token - * Optional. Page token received from a previous `ListEntries` call. Provide - * this to retrieve the subsequent page. - * @type string $filter - * Optional. A filter on the entries to return. Filters are case-sensitive. - * You can filter the request by the following fields: - * * entry_type - * * entry_source.display_name - * * parent_entry - * The comparison operators are =, !=, <, >, <=, >=. The service compares - * strings according to lexical order. - * You can use the logical operators AND, OR, NOT in the filter. - * You can use Wildcard "*", but for entry_type and parent_entry you need to - * provide the full project id or number. - * You cannot use parent_entry in conjunction with other fields. - * Example filter expressions: - * * "entry_source.display_name=AnExampleDisplayName" - * * "entry_type=projects/example-project/locations/global/entryTypes/example-entry_type" - * * "entry_type=projects/example-project/locations/us/entryTypes/a* OR - * entry_type=projects/another-project/locations/*" - * * "NOT entry_source.display_name=AnotherExampleDisplayName" - * * "parent_entry=projects/example-project/locations/us/entryGroups/example-entry-group/entries/example-entry" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the parent Entry Group: - * `projects/{project}/locations/{location}/entryGroups/{entry_group}`. - * - * 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 resource name of the parent Entry Group: - * `projects/{project}/locations/{location}/entryGroups/{entry_group}`. - * - * 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. Number of items to return per page. If there are remaining - * results, the service returns a next_page_token. If unspecified, the service - * returns at most 10 Entries. The maximum value is 100; values above 100 will - * be coerced to 100. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Number of items to return per page. If there are remaining - * results, the service returns a next_page_token. If unspecified, the service - * returns at most 10 Entries. The maximum value is 100; values above 100 will - * be coerced to 100. - * - * 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. Page token received from a previous `ListEntries` call. Provide - * this to retrieve the subsequent page. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. Page token received from a previous `ListEntries` call. Provide - * this to retrieve the subsequent page. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. A filter on the entries to return. Filters are case-sensitive. - * You can filter the request by the following fields: - * * entry_type - * * entry_source.display_name - * * parent_entry - * The comparison operators are =, !=, <, >, <=, >=. The service compares - * strings according to lexical order. - * You can use the logical operators AND, OR, NOT in the filter. - * You can use Wildcard "*", but for entry_type and parent_entry you need to - * provide the full project id or number. - * You cannot use parent_entry in conjunction with other fields. - * Example filter expressions: - * * "entry_source.display_name=AnExampleDisplayName" - * * "entry_type=projects/example-project/locations/global/entryTypes/example-entry_type" - * * "entry_type=projects/example-project/locations/us/entryTypes/a* OR - * entry_type=projects/another-project/locations/*" - * * "NOT entry_source.display_name=AnotherExampleDisplayName" - * * "parent_entry=projects/example-project/locations/us/entryGroups/example-entry-group/entries/example-entry" - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. A filter on the entries to return. Filters are case-sensitive. - * You can filter the request by the following fields: - * * entry_type - * * entry_source.display_name - * * parent_entry - * The comparison operators are =, !=, <, >, <=, >=. The service compares - * strings according to lexical order. - * You can use the logical operators AND, OR, NOT in the filter. - * You can use Wildcard "*", but for entry_type and parent_entry you need to - * provide the full project id or number. - * You cannot use parent_entry in conjunction with other fields. - * Example filter expressions: - * * "entry_source.display_name=AnExampleDisplayName" - * * "entry_type=projects/example-project/locations/global/entryTypes/example-entry_type" - * * "entry_type=projects/example-project/locations/us/entryTypes/a* OR - * entry_type=projects/another-project/locations/*" - * * "NOT entry_source.display_name=AnotherExampleDisplayName" - * * "parent_entry=projects/example-project/locations/us/entryGroups/example-entry-group/entries/example-entry" - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntriesResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntriesResponse.php deleted file mode 100644 index 2a665ae0b631..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntriesResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.dataplex.v1.ListEntriesResponse - */ -class ListEntriesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of entries under the given parent location. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.Entry entries = 1; - */ - private $entries; - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * 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\Dataplex\V1\Entry[] $entries - * The list of entries under the given parent location. - * @type string $next_page_token - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * The list of entries under the given parent location. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.Entry entries = 1; - * @return RepeatedField<\Google\Cloud\Dataplex\V1\Entry> - */ - public function getEntries() - { - return $this->entries; - } - - /** - * The list of entries under the given parent location. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.Entry entries = 1; - * @param \Google\Cloud\Dataplex\V1\Entry[] $var - * @return $this - */ - public function setEntries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\Entry::class); - $this->entries = $arr; - - return $this; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntryGroupsRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntryGroupsRequest.php deleted file mode 100644 index fb6c5c85cbd5..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntryGroupsRequest.php +++ /dev/null @@ -1,251 +0,0 @@ -google.cloud.dataplex.v1.ListEntryGroupsRequest - */ -class ListEntryGroupsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the entryGroup location, of the form: - * `projects/{project_number}/locations/{location_id}` - * where `location_id` refers to a Google Cloud region. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Maximum number of EntryGroups to return. The service may return - * fewer than this value. If unspecified, the service returns at most 10 - * EntryGroups. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. Page token received from a previous `ListEntryGroups` call. - * Provide this to retrieve the subsequent page. When paginating, all other - * parameters you provide to `ListEntryGroups` 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 = ''; - /** - * Optional. Filter request. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Order by fields for the result. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The resource name of the entryGroup location, of the form: - * `projects/{project_number}/locations/{location_id}` - * where `location_id` refers to a Google Cloud region. Please see - * {@see CatalogServiceClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\ListEntryGroupsRequest - * - * @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 resource name of the entryGroup location, of the form: - * `projects/{project_number}/locations/{location_id}` - * where `location_id` refers to a Google Cloud region. - * @type int $page_size - * Optional. Maximum number of EntryGroups to return. The service may return - * fewer than this value. If unspecified, the service returns at most 10 - * EntryGroups. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * @type string $page_token - * Optional. Page token received from a previous `ListEntryGroups` call. - * Provide this to retrieve the subsequent page. When paginating, all other - * parameters you provide to `ListEntryGroups` must match the call that - * provided the page token. - * @type string $filter - * Optional. Filter request. - * @type string $order_by - * Optional. Order by fields for the result. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the entryGroup location, of the form: - * `projects/{project_number}/locations/{location_id}` - * where `location_id` refers to a Google Cloud region. - * - * 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 resource name of the entryGroup location, of the form: - * `projects/{project_number}/locations/{location_id}` - * where `location_id` refers to a Google Cloud region. - * - * 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. Maximum number of EntryGroups to return. The service may return - * fewer than this value. If unspecified, the service returns at most 10 - * EntryGroups. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Maximum number of EntryGroups to return. The service may return - * fewer than this value. If unspecified, the service returns at most 10 - * EntryGroups. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * - * 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. Page token received from a previous `ListEntryGroups` call. - * Provide this to retrieve the subsequent page. When paginating, all other - * parameters you provide to `ListEntryGroups` 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. Page token received from a previous `ListEntryGroups` call. - * Provide this to retrieve the subsequent page. When paginating, all other - * parameters you provide to `ListEntryGroups` 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; - } - - /** - * Optional. Filter request. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filter request. - * - * 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. Order by fields for the result. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Order by fields for the result. - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntryGroupsResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntryGroupsResponse.php deleted file mode 100644 index 2a91bbc5b618..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntryGroupsResponse.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.dataplex.v1.ListEntryGroupsResponse - */ -class ListEntryGroupsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Entry groups under the given parent location. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.EntryGroup entry_groups = 1; - */ - private $entry_groups; - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations that the service couldn't reach. - * - * Generated from protobuf field repeated string unreachable_locations = 3; - */ - private $unreachable_locations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\EntryGroup[] $entry_groups - * Entry groups under the given parent location. - * @type string $next_page_token - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * @type string[] $unreachable_locations - * Locations that the service couldn't reach. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Entry groups under the given parent location. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.EntryGroup entry_groups = 1; - * @return RepeatedField<\Google\Cloud\Dataplex\V1\EntryGroup> - */ - public function getEntryGroups() - { - return $this->entry_groups; - } - - /** - * Entry groups under the given parent location. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.EntryGroup entry_groups = 1; - * @param \Google\Cloud\Dataplex\V1\EntryGroup[] $var - * @return $this - */ - public function setEntryGroups($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\EntryGroup::class); - $this->entry_groups = $arr; - - return $this; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Locations that the service couldn't reach. - * - * Generated from protobuf field repeated string unreachable_locations = 3; - * @return RepeatedField - */ - public function getUnreachableLocations() - { - return $this->unreachable_locations; - } - - /** - * Locations that the service couldn't reach. - * - * Generated from protobuf field repeated string unreachable_locations = 3; - * @param string[] $var - * @return $this - */ - public function setUnreachableLocations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable_locations = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntryTypesRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntryTypesRequest.php deleted file mode 100644 index 15e13aca2b6a..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntryTypesRequest.php +++ /dev/null @@ -1,275 +0,0 @@ -google.cloud.dataplex.v1.ListEntryTypesRequest - */ -class ListEntryTypesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the EntryType location, of the form: - * `projects/{project_number}/locations/{location_id}` - * where `location_id` refers to a Google Cloud region. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Maximum number of EntryTypes to return. The service may return - * fewer than this value. If unspecified, the service returns at most 10 - * EntryTypes. The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. Page token received from a previous `ListEntryTypes` call. - * Provide this to retrieve the subsequent page. When paginating, all other - * parameters you provided to `ListEntryTypes` 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 = ''; - /** - * Optional. Filter request. Filters are case-sensitive. - * The service supports the following formats: - * * labels.key1 = "value1" - * * labels:key1 - * * name = "value" - * These restrictions can be conjoined with AND, OR, and NOT conjunctions. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Orders the result by `name` or `create_time` fields. - * If not specified, the ordering is undefined. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The resource name of the EntryType location, of the form: - * `projects/{project_number}/locations/{location_id}` - * where `location_id` refers to a Google Cloud region. Please see - * {@see CatalogServiceClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\ListEntryTypesRequest - * - * @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 resource name of the EntryType location, of the form: - * `projects/{project_number}/locations/{location_id}` - * where `location_id` refers to a Google Cloud region. - * @type int $page_size - * Optional. Maximum number of EntryTypes to return. The service may return - * fewer than this value. If unspecified, the service returns at most 10 - * EntryTypes. The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * @type string $page_token - * Optional. Page token received from a previous `ListEntryTypes` call. - * Provide this to retrieve the subsequent page. When paginating, all other - * parameters you provided to `ListEntryTypes` must match the call that - * provided the page token. - * @type string $filter - * Optional. Filter request. Filters are case-sensitive. - * The service supports the following formats: - * * labels.key1 = "value1" - * * labels:key1 - * * name = "value" - * These restrictions can be conjoined with AND, OR, and NOT conjunctions. - * @type string $order_by - * Optional. Orders the result by `name` or `create_time` fields. - * If not specified, the ordering is undefined. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the EntryType location, of the form: - * `projects/{project_number}/locations/{location_id}` - * where `location_id` refers to a Google Cloud region. - * - * 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 resource name of the EntryType location, of the form: - * `projects/{project_number}/locations/{location_id}` - * where `location_id` refers to a Google Cloud region. - * - * 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. Maximum number of EntryTypes to return. The service may return - * fewer than this value. If unspecified, the service returns at most 10 - * EntryTypes. The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Maximum number of EntryTypes to return. The service may return - * fewer than this value. If unspecified, the service returns at most 10 - * EntryTypes. The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * - * 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. Page token received from a previous `ListEntryTypes` call. - * Provide this to retrieve the subsequent page. When paginating, all other - * parameters you provided to `ListEntryTypes` 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. Page token received from a previous `ListEntryTypes` call. - * Provide this to retrieve the subsequent page. When paginating, all other - * parameters you provided to `ListEntryTypes` 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; - } - - /** - * Optional. Filter request. Filters are case-sensitive. - * The service supports the following formats: - * * labels.key1 = "value1" - * * labels:key1 - * * name = "value" - * These restrictions can be conjoined with AND, OR, and NOT conjunctions. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filter request. Filters are case-sensitive. - * The service supports the following formats: - * * labels.key1 = "value1" - * * labels:key1 - * * name = "value" - * These restrictions can be conjoined with AND, OR, and NOT conjunctions. - * - * 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. Orders the result by `name` or `create_time` fields. - * If not specified, the ordering is undefined. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Orders the result by `name` or `create_time` fields. - * If not specified, the ordering is undefined. - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntryTypesResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntryTypesResponse.php deleted file mode 100644 index 0410050f3e86..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListEntryTypesResponse.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.dataplex.v1.ListEntryTypesResponse - */ -class ListEntryTypesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * EntryTypes under the given parent location. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.EntryType entry_types = 1; - */ - private $entry_types; - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations that the service couldn't reach. - * - * Generated from protobuf field repeated string unreachable_locations = 3; - */ - private $unreachable_locations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\EntryType[] $entry_types - * EntryTypes under the given parent location. - * @type string $next_page_token - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * @type string[] $unreachable_locations - * Locations that the service couldn't reach. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * EntryTypes under the given parent location. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.EntryType entry_types = 1; - * @return RepeatedField<\Google\Cloud\Dataplex\V1\EntryType> - */ - public function getEntryTypes() - { - return $this->entry_types; - } - - /** - * EntryTypes under the given parent location. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.EntryType entry_types = 1; - * @param \Google\Cloud\Dataplex\V1\EntryType[] $var - * @return $this - */ - public function setEntryTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\EntryType::class); - $this->entry_types = $arr; - - return $this; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Locations that the service couldn't reach. - * - * Generated from protobuf field repeated string unreachable_locations = 3; - * @return RepeatedField - */ - public function getUnreachableLocations() - { - return $this->unreachable_locations; - } - - /** - * Locations that the service couldn't reach. - * - * Generated from protobuf field repeated string unreachable_locations = 3; - * @param string[] $var - * @return $this - */ - public function setUnreachableLocations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable_locations = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListGlossariesRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListGlossariesRequest.php deleted file mode 100644 index aaee2e953664..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListGlossariesRequest.php +++ /dev/null @@ -1,279 +0,0 @@ -google.cloud.dataplex.v1.ListGlossariesRequest - */ -class ListGlossariesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which has this collection of Glossaries. - * Format: projects/{project_id_or_number}/locations/{location_id} - * where `location_id` refers to a Google Cloud region. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of Glossaries to return. The service may - * return fewer than this value. If unspecified, at most 50 Glossaries will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListGlossaries` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListGlossaries` 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 = ''; - /** - * Optional. Filter expression that filters Glossaries listed in the response. - * Filters on proto fields of Glossary are supported. - * Examples of using a filter are: - * - `display_name="my-glossary"` - * - `categoryCount=1` - * - `termCount=0` - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Order by expression that orders Glossaries listed in the - * response. Order by fields are: `name` or `create_time` for the result. If - * not specified, the ordering is undefined. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The parent, which has this collection of Glossaries. - * Format: projects/{project_id_or_number}/locations/{location_id} - * where `location_id` refers to a Google Cloud region. Please see - * {@see BusinessGlossaryServiceClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\ListGlossariesRequest - * - * @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, which has this collection of Glossaries. - * Format: projects/{project_id_or_number}/locations/{location_id} - * where `location_id` refers to a Google Cloud region. - * @type int $page_size - * Optional. The maximum number of Glossaries to return. The service may - * return fewer than this value. If unspecified, at most 50 Glossaries will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * @type string $page_token - * Optional. A page token, received from a previous `ListGlossaries` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListGlossaries` must - * match the call that provided the page token. - * @type string $filter - * Optional. Filter expression that filters Glossaries listed in the response. - * Filters on proto fields of Glossary are supported. - * Examples of using a filter are: - * - `display_name="my-glossary"` - * - `categoryCount=1` - * - `termCount=0` - * @type string $order_by - * Optional. Order by expression that orders Glossaries listed in the - * response. Order by fields are: `name` or `create_time` for the result. If - * not specified, the ordering is undefined. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\BusinessGlossary::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which has this collection of Glossaries. - * Format: projects/{project_id_or_number}/locations/{location_id} - * where `location_id` refers to a Google Cloud region. - * - * 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, which has this collection of Glossaries. - * Format: projects/{project_id_or_number}/locations/{location_id} - * where `location_id` refers to a Google Cloud region. - * - * 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 Glossaries to return. The service may - * return fewer than this value. If unspecified, at most 50 Glossaries will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * - * 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 Glossaries to return. The service may - * return fewer than this value. If unspecified, at most 50 Glossaries will be - * returned. The maximum value is 1000; values above 1000 will be coerced to - * 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `ListGlossaries` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListGlossaries` 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 page token, received from a previous `ListGlossaries` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListGlossaries` 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; - } - - /** - * Optional. Filter expression that filters Glossaries listed in the response. - * Filters on proto fields of Glossary are supported. - * Examples of using a filter are: - * - `display_name="my-glossary"` - * - `categoryCount=1` - * - `termCount=0` - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filter expression that filters Glossaries listed in the response. - * Filters on proto fields of Glossary are supported. - * Examples of using a filter are: - * - `display_name="my-glossary"` - * - `categoryCount=1` - * - `termCount=0` - * - * 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. Order by expression that orders Glossaries listed in the - * response. Order by fields are: `name` or `create_time` for the result. If - * not specified, the ordering is undefined. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Order by expression that orders Glossaries listed in the - * response. Order by fields are: `name` or `create_time` for the result. If - * not specified, the ordering is undefined. - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListGlossariesResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListGlossariesResponse.php deleted file mode 100644 index 7d13943ca5a6..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListGlossariesResponse.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.dataplex.v1.ListGlossariesResponse - */ -class ListGlossariesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Lists the Glossaries in the specified parent. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.Glossary glossaries = 1; - */ - private $glossaries; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations that the service couldn't reach. - * - * Generated from protobuf field repeated string unreachable_locations = 3; - */ - private $unreachable_locations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\Glossary[] $glossaries - * Lists the Glossaries in the specified parent. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * @type string[] $unreachable_locations - * Locations that the service couldn't reach. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\BusinessGlossary::initOnce(); - parent::__construct($data); - } - - /** - * Lists the Glossaries in the specified parent. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.Glossary glossaries = 1; - * @return RepeatedField<\Google\Cloud\Dataplex\V1\Glossary> - */ - public function getGlossaries() - { - return $this->glossaries; - } - - /** - * Lists the Glossaries in the specified parent. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.Glossary glossaries = 1; - * @param \Google\Cloud\Dataplex\V1\Glossary[] $var - * @return $this - */ - public function setGlossaries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\Glossary::class); - $this->glossaries = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Locations that the service couldn't reach. - * - * Generated from protobuf field repeated string unreachable_locations = 3; - * @return RepeatedField - */ - public function getUnreachableLocations() - { - return $this->unreachable_locations; - } - - /** - * Locations that the service couldn't reach. - * - * Generated from protobuf field repeated string unreachable_locations = 3; - * @param string[] $var - * @return $this - */ - public function setUnreachableLocations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable_locations = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListGlossaryCategoriesRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListGlossaryCategoriesRequest.php deleted file mode 100644 index 2e6b993c0151..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListGlossaryCategoriesRequest.php +++ /dev/null @@ -1,300 +0,0 @@ -google.cloud.dataplex.v1.ListGlossaryCategoriesRequest - */ -class ListGlossaryCategoriesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which has this collection of GlossaryCategories. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} - * Location is the Google Cloud region. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of GlossaryCategories to return. The service - * may return fewer than this value. If unspecified, at most 50 - * GlossaryCategories will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListGlossaryCategories` - * call. Provide this to retrieve the subsequent page. When paginating, all - * other parameters provided to `ListGlossaryCategories` 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 = ''; - /** - * Optional. Filter expression that filters GlossaryCategories listed in the - * response. Filters are supported on the following fields: - * - immediate_parent - * Examples of using a filter are: - * - - * `immediate_parent="projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}"` - * - - * `immediate_parent="projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id}"` - * This will only return the GlossaryCategories that are directly nested - * under the specified parent. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Order by expression that orders GlossaryCategories listed in the - * response. Order by fields are: `name` or `create_time` for the result. If - * not specified, the ordering is undefined. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The parent, which has this collection of GlossaryCategories. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} - * Location is the Google Cloud region. Please see - * {@see BusinessGlossaryServiceClient::glossaryName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\ListGlossaryCategoriesRequest - * - * @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, which has this collection of GlossaryCategories. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} - * Location is the Google Cloud region. - * @type int $page_size - * Optional. The maximum number of GlossaryCategories to return. The service - * may return fewer than this value. If unspecified, at most 50 - * GlossaryCategories will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. - * @type string $page_token - * Optional. A page token, received from a previous `ListGlossaryCategories` - * call. Provide this to retrieve the subsequent page. When paginating, all - * other parameters provided to `ListGlossaryCategories` must match the call - * that provided the page token. - * @type string $filter - * Optional. Filter expression that filters GlossaryCategories listed in the - * response. Filters are supported on the following fields: - * - immediate_parent - * Examples of using a filter are: - * - - * `immediate_parent="projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}"` - * - - * `immediate_parent="projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id}"` - * This will only return the GlossaryCategories that are directly nested - * under the specified parent. - * @type string $order_by - * Optional. Order by expression that orders GlossaryCategories listed in the - * response. Order by fields are: `name` or `create_time` for the result. If - * not specified, the ordering is undefined. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\BusinessGlossary::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which has this collection of GlossaryCategories. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} - * Location is the Google Cloud region. - * - * 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, which has this collection of GlossaryCategories. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} - * Location is the Google Cloud region. - * - * 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 GlossaryCategories to return. The service - * may return fewer than this value. If unspecified, at most 50 - * GlossaryCategories will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. - * - * 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 GlossaryCategories to return. The service - * may return fewer than this value. If unspecified, at most 50 - * GlossaryCategories will be returned. The maximum value is 1000; values - * above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `ListGlossaryCategories` - * call. Provide this to retrieve the subsequent page. When paginating, all - * other parameters provided to `ListGlossaryCategories` 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 page token, received from a previous `ListGlossaryCategories` - * call. Provide this to retrieve the subsequent page. When paginating, all - * other parameters provided to `ListGlossaryCategories` 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; - } - - /** - * Optional. Filter expression that filters GlossaryCategories listed in the - * response. Filters are supported on the following fields: - * - immediate_parent - * Examples of using a filter are: - * - - * `immediate_parent="projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}"` - * - - * `immediate_parent="projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id}"` - * This will only return the GlossaryCategories that are directly nested - * under the specified parent. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filter expression that filters GlossaryCategories listed in the - * response. Filters are supported on the following fields: - * - immediate_parent - * Examples of using a filter are: - * - - * `immediate_parent="projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}"` - * - - * `immediate_parent="projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id}"` - * This will only return the GlossaryCategories that are directly nested - * under the specified parent. - * - * 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. Order by expression that orders GlossaryCategories listed in the - * response. Order by fields are: `name` or `create_time` for the result. If - * not specified, the ordering is undefined. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Order by expression that orders GlossaryCategories listed in the - * response. Order by fields are: `name` or `create_time` for the result. If - * not specified, the ordering is undefined. - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListGlossaryCategoriesResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListGlossaryCategoriesResponse.php deleted file mode 100644 index 5645bb6e76c1..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListGlossaryCategoriesResponse.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.dataplex.v1.ListGlossaryCategoriesResponse - */ -class ListGlossaryCategoriesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Lists the GlossaryCategories in the specified parent. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.GlossaryCategory categories = 1; - */ - private $categories; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations that the service couldn't reach. - * - * Generated from protobuf field repeated string unreachable_locations = 3; - */ - private $unreachable_locations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\GlossaryCategory[] $categories - * Lists the GlossaryCategories in the specified parent. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * @type string[] $unreachable_locations - * Locations that the service couldn't reach. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\BusinessGlossary::initOnce(); - parent::__construct($data); - } - - /** - * Lists the GlossaryCategories in the specified parent. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.GlossaryCategory categories = 1; - * @return RepeatedField<\Google\Cloud\Dataplex\V1\GlossaryCategory> - */ - public function getCategories() - { - return $this->categories; - } - - /** - * Lists the GlossaryCategories in the specified parent. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.GlossaryCategory categories = 1; - * @param \Google\Cloud\Dataplex\V1\GlossaryCategory[] $var - * @return $this - */ - public function setCategories($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\GlossaryCategory::class); - $this->categories = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Locations that the service couldn't reach. - * - * Generated from protobuf field repeated string unreachable_locations = 3; - * @return RepeatedField - */ - public function getUnreachableLocations() - { - return $this->unreachable_locations; - } - - /** - * Locations that the service couldn't reach. - * - * Generated from protobuf field repeated string unreachable_locations = 3; - * @param string[] $var - * @return $this - */ - public function setUnreachableLocations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable_locations = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListGlossaryTermsRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListGlossaryTermsRequest.php deleted file mode 100644 index 86f9499a7dbd..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListGlossaryTermsRequest.php +++ /dev/null @@ -1,300 +0,0 @@ -google.cloud.dataplex.v1.ListGlossaryTermsRequest - */ -class ListGlossaryTermsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which has this collection of GlossaryTerms. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} - * where `location_id` refers to a Google Cloud region. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of GlossaryTerms to return. The service may - * return fewer than this value. If unspecified, at most 50 GlossaryTerms will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListGlossaryTerms` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListGlossaryTerms` 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 = ''; - /** - * Optional. Filter expression that filters GlossaryTerms listed in the - * response. Filters are supported on the following fields: - * - immediate_parent - * Examples of using a filter are: - * - - * `immediate_parent="projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}"` - * - - * `immediate_parent="projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id}"` - * This will only return the GlossaryTerms that are directly nested under the - * specified parent. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Order by expression that orders GlossaryTerms listed in the - * response. Order by fields are: `name` or `create_time` for the result. If - * not specified, the ordering is undefined. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The parent, which has this collection of GlossaryTerms. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} - * where `location_id` refers to a Google Cloud region. Please see - * {@see BusinessGlossaryServiceClient::glossaryName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\ListGlossaryTermsRequest - * - * @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, which has this collection of GlossaryTerms. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} - * where `location_id` refers to a Google Cloud region. - * @type int $page_size - * Optional. The maximum number of GlossaryTerms to return. The service may - * return fewer than this value. If unspecified, at most 50 GlossaryTerms will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * @type string $page_token - * Optional. A page token, received from a previous `ListGlossaryTerms` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListGlossaryTerms` must - * match the call that provided the page token. - * @type string $filter - * Optional. Filter expression that filters GlossaryTerms listed in the - * response. Filters are supported on the following fields: - * - immediate_parent - * Examples of using a filter are: - * - - * `immediate_parent="projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}"` - * - - * `immediate_parent="projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id}"` - * This will only return the GlossaryTerms that are directly nested under the - * specified parent. - * @type string $order_by - * Optional. Order by expression that orders GlossaryTerms listed in the - * response. Order by fields are: `name` or `create_time` for the result. If - * not specified, the ordering is undefined. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\BusinessGlossary::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which has this collection of GlossaryTerms. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} - * where `location_id` refers to a Google Cloud region. - * - * 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, which has this collection of GlossaryTerms. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} - * where `location_id` refers to a Google Cloud region. - * - * 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 GlossaryTerms to return. The service may - * return fewer than this value. If unspecified, at most 50 GlossaryTerms will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * - * 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 GlossaryTerms to return. The service may - * return fewer than this value. If unspecified, at most 50 GlossaryTerms will - * be returned. The maximum value is 1000; values above 1000 will be coerced - * to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `ListGlossaryTerms` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListGlossaryTerms` 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 page token, received from a previous `ListGlossaryTerms` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListGlossaryTerms` 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; - } - - /** - * Optional. Filter expression that filters GlossaryTerms listed in the - * response. Filters are supported on the following fields: - * - immediate_parent - * Examples of using a filter are: - * - - * `immediate_parent="projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}"` - * - - * `immediate_parent="projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id}"` - * This will only return the GlossaryTerms that are directly nested under the - * specified parent. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filter expression that filters GlossaryTerms listed in the - * response. Filters are supported on the following fields: - * - immediate_parent - * Examples of using a filter are: - * - - * `immediate_parent="projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}"` - * - - * `immediate_parent="projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id}"` - * This will only return the GlossaryTerms that are directly nested under the - * specified parent. - * - * 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. Order by expression that orders GlossaryTerms listed in the - * response. Order by fields are: `name` or `create_time` for the result. If - * not specified, the ordering is undefined. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Order by expression that orders GlossaryTerms listed in the - * response. Order by fields are: `name` or `create_time` for the result. If - * not specified, the ordering is undefined. - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListGlossaryTermsResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListGlossaryTermsResponse.php deleted file mode 100644 index 84d267266b3f..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListGlossaryTermsResponse.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.dataplex.v1.ListGlossaryTermsResponse - */ -class ListGlossaryTermsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Lists the GlossaryTerms in the specified parent. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.GlossaryTerm terms = 1; - */ - private $terms; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations that the service couldn't reach. - * - * Generated from protobuf field repeated string unreachable_locations = 3; - */ - private $unreachable_locations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\GlossaryTerm[] $terms - * Lists the GlossaryTerms in the specified parent. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * @type string[] $unreachable_locations - * Locations that the service couldn't reach. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\BusinessGlossary::initOnce(); - parent::__construct($data); - } - - /** - * Lists the GlossaryTerms in the specified parent. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.GlossaryTerm terms = 1; - * @return RepeatedField<\Google\Cloud\Dataplex\V1\GlossaryTerm> - */ - public function getTerms() - { - return $this->terms; - } - - /** - * Lists the GlossaryTerms in the specified parent. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.GlossaryTerm terms = 1; - * @param \Google\Cloud\Dataplex\V1\GlossaryTerm[] $var - * @return $this - */ - public function setTerms($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\GlossaryTerm::class); - $this->terms = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Locations that the service couldn't reach. - * - * Generated from protobuf field repeated string unreachable_locations = 3; - * @return RepeatedField - */ - public function getUnreachableLocations() - { - return $this->unreachable_locations; - } - - /** - * Locations that the service couldn't reach. - * - * Generated from protobuf field repeated string unreachable_locations = 3; - * @param string[] $var - * @return $this - */ - public function setUnreachableLocations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable_locations = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListJobsRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListJobsRequest.php deleted file mode 100644 index 89a4a70f54bb..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListJobsRequest.php +++ /dev/null @@ -1,174 +0,0 @@ -google.cloud.dataplex.v1.ListJobsRequest - */ -class ListJobsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the parent environment: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Maximum number of jobs to return. The service may return fewer - * than this value. If unspecified, at most 10 jobs will be returned. The - * maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. Page token received from a previous `ListJobs` call. Provide this - * to retrieve the subsequent page. When paginating, all other parameters - * provided to `ListJobs` 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 resource name of the parent environment: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}`. Please see - * {@see DataplexServiceClient::taskName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\ListJobsRequest - * - * @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 resource name of the parent environment: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}`. - * @type int $page_size - * Optional. Maximum number of jobs to return. The service may return fewer - * than this value. If unspecified, at most 10 jobs will be returned. The - * maximum value is 1000; values above 1000 will be coerced to 1000. - * @type string $page_token - * Optional. Page token received from a previous `ListJobs` call. Provide this - * to retrieve the subsequent page. When paginating, all other parameters - * provided to `ListJobs` must match the call that provided the page - * token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the parent environment: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}`. - * - * 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 resource name of the parent environment: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}`. - * - * 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. Maximum number of jobs to return. The service may return fewer - * than this value. If unspecified, at most 10 jobs will be returned. The - * maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Maximum number of jobs to return. The service may return fewer - * than this value. If unspecified, at most 10 jobs will be returned. The - * maximum value is 1000; values above 1000 will be coerced to 1000. - * - * 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. Page token received from a previous `ListJobs` call. Provide this - * to retrieve the subsequent page. When paginating, all other parameters - * provided to `ListJobs` 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. Page token received from a previous `ListJobs` call. Provide this - * to retrieve the subsequent page. When paginating, all other parameters - * provided to `ListJobs` 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListJobsResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListJobsResponse.php deleted file mode 100644 index b2ef827a6180..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListJobsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.dataplex.v1.ListJobsResponse - */ -class ListJobsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Jobs under a given task. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.Job jobs = 1; - */ - private $jobs; - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * 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\Dataplex\V1\Job[] $jobs - * Jobs under a given task. - * @type string $next_page_token - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Jobs under a given task. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.Job jobs = 1; - * @return RepeatedField<\Google\Cloud\Dataplex\V1\Job> - */ - public function getJobs() - { - return $this->jobs; - } - - /** - * Jobs under a given task. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.Job jobs = 1; - * @param \Google\Cloud\Dataplex\V1\Job[] $var - * @return $this - */ - public function setJobs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\Job::class); - $this->jobs = $arr; - - return $this; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListLakeActionsRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListLakeActionsRequest.php deleted file mode 100644 index f9298aaeb0e9..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListLakeActionsRequest.php +++ /dev/null @@ -1,174 +0,0 @@ -google.cloud.dataplex.v1.ListLakeActionsRequest - */ -class ListLakeActionsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the parent lake: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Maximum number of actions to return. The service may return fewer - * than this value. If unspecified, at most 10 actions will be returned. The - * maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. Page token received from a previous `ListLakeActions` call. - * Provide this to retrieve the subsequent page. When paginating, all other - * parameters provided to `ListLakeActions` 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 resource name of the parent lake: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. Please see - * {@see DataplexServiceClient::lakeName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\ListLakeActionsRequest - * - * @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 resource name of the parent lake: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. - * @type int $page_size - * Optional. Maximum number of actions to return. The service may return fewer - * than this value. If unspecified, at most 10 actions will be returned. The - * maximum value is 1000; values above 1000 will be coerced to 1000. - * @type string $page_token - * Optional. Page token received from a previous `ListLakeActions` call. - * Provide this to retrieve the subsequent page. When paginating, all other - * parameters provided to `ListLakeActions` must match the call that provided - * the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the parent lake: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. - * - * 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 resource name of the parent lake: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. - * - * 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. Maximum number of actions to return. The service may return fewer - * than this value. If unspecified, at most 10 actions will be returned. The - * maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Maximum number of actions to return. The service may return fewer - * than this value. If unspecified, at most 10 actions will be returned. The - * maximum value is 1000; values above 1000 will be coerced to 1000. - * - * 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. Page token received from a previous `ListLakeActions` call. - * Provide this to retrieve the subsequent page. When paginating, all other - * parameters provided to `ListLakeActions` 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. Page token received from a previous `ListLakeActions` call. - * Provide this to retrieve the subsequent page. When paginating, all other - * parameters provided to `ListLakeActions` 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListLakesRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListLakesRequest.php deleted file mode 100644 index f5322cedbc14..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListLakesRequest.php +++ /dev/null @@ -1,243 +0,0 @@ -google.cloud.dataplex.v1.ListLakesRequest - */ -class ListLakesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the lake location, of the form: - * `projects/{project_number}/locations/{location_id}` - * where `location_id` refers to a Google Cloud region. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Maximum number of Lakes to return. The service may return fewer - * than this value. If unspecified, at most 10 lakes will be returned. The - * maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. Page token received from a previous `ListLakes` call. Provide - * this to retrieve the subsequent page. When paginating, all other parameters - * provided to `ListLakes` 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 = ''; - /** - * Optional. Filter request. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Order by fields for the result. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The resource name of the lake location, of the form: - * `projects/{project_number}/locations/{location_id}` - * where `location_id` refers to a Google Cloud region. Please see - * {@see DataplexServiceClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\ListLakesRequest - * - * @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 resource name of the lake location, of the form: - * `projects/{project_number}/locations/{location_id}` - * where `location_id` refers to a Google Cloud region. - * @type int $page_size - * Optional. Maximum number of Lakes to return. The service may return fewer - * than this value. If unspecified, at most 10 lakes will be returned. The - * maximum value is 1000; values above 1000 will be coerced to 1000. - * @type string $page_token - * Optional. Page token received from a previous `ListLakes` call. Provide - * this to retrieve the subsequent page. When paginating, all other parameters - * provided to `ListLakes` must match the call that provided the page token. - * @type string $filter - * Optional. Filter request. - * @type string $order_by - * Optional. Order by fields for the result. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the lake location, of the form: - * `projects/{project_number}/locations/{location_id}` - * where `location_id` refers to a Google Cloud region. - * - * 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 resource name of the lake location, of the form: - * `projects/{project_number}/locations/{location_id}` - * where `location_id` refers to a Google Cloud region. - * - * 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. Maximum number of Lakes to return. The service may return fewer - * than this value. If unspecified, at most 10 lakes will be returned. The - * maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Maximum number of Lakes to return. The service may return fewer - * than this value. If unspecified, at most 10 lakes will be returned. The - * maximum value is 1000; values above 1000 will be coerced to 1000. - * - * 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. Page token received from a previous `ListLakes` call. Provide - * this to retrieve the subsequent page. When paginating, all other parameters - * provided to `ListLakes` 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. Page token received from a previous `ListLakes` call. Provide - * this to retrieve the subsequent page. When paginating, all other parameters - * provided to `ListLakes` 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; - } - - /** - * Optional. Filter request. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filter request. - * - * 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. Order by fields for the result. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Order by fields for the result. - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListLakesResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListLakesResponse.php deleted file mode 100644 index 22a5c8db3d0e..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListLakesResponse.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.dataplex.v1.ListLakesResponse - */ -class ListLakesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Lakes under the given parent location. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.Lake lakes = 1; - */ - private $lakes; - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable_locations = 3; - */ - private $unreachable_locations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\Lake[] $lakes - * Lakes under the given parent location. - * @type string $next_page_token - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * @type string[] $unreachable_locations - * Locations that could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Lakes under the given parent location. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.Lake lakes = 1; - * @return RepeatedField<\Google\Cloud\Dataplex\V1\Lake> - */ - public function getLakes() - { - return $this->lakes; - } - - /** - * Lakes under the given parent location. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.Lake lakes = 1; - * @param \Google\Cloud\Dataplex\V1\Lake[] $var - * @return $this - */ - public function setLakes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\Lake::class); - $this->lakes = $arr; - - return $this; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable_locations = 3; - * @return RepeatedField - */ - public function getUnreachableLocations() - { - return $this->unreachable_locations; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable_locations = 3; - * @param string[] $var - * @return $this - */ - public function setUnreachableLocations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable_locations = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListMetadataFeedsRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListMetadataFeedsRequest.php deleted file mode 100644 index 0763a3bb13cd..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListMetadataFeedsRequest.php +++ /dev/null @@ -1,270 +0,0 @@ -google.cloud.dataplex.v1.ListMetadataFeedsRequest - */ -class ListMetadataFeedsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the parent location, in the format - * `projects/{project_id_or_number}/locations/{location_id}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of metadata feeds to return. The service - * might return fewer feeds than this value. If unspecified, at most 10 feeds - * are returned. The maximum value is 1,000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. The page token received from a previous `ListMetadataFeeds` call. - * Provide this token to retrieve the subsequent page of results. When - * paginating, all other parameters that are provided to the - * `ListMetadataFeeds` 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 = ''; - /** - * Optional. Filter request. Filters are case-sensitive. - * The service supports the following formats: - * * `labels.key1 = "value1"` - * * `labels:key1` - * * `name = "value"` - * You can combine filters with `AND`, `OR`, and `NOT` operators. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. The field to sort the results by, either `name` or `create_time`. - * If not specified, the ordering is undefined. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The resource name of the parent location, in the format - * `projects/{project_id_or_number}/locations/{location_id}` - * Please see {@see CatalogServiceClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\ListMetadataFeedsRequest - * - * @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 resource name of the parent location, in the format - * `projects/{project_id_or_number}/locations/{location_id}` - * @type int $page_size - * Optional. The maximum number of metadata feeds to return. The service - * might return fewer feeds than this value. If unspecified, at most 10 feeds - * are returned. The maximum value is 1,000. - * @type string $page_token - * Optional. The page token received from a previous `ListMetadataFeeds` call. - * Provide this token to retrieve the subsequent page of results. When - * paginating, all other parameters that are provided to the - * `ListMetadataFeeds` request must match the call that provided the - * page token. - * @type string $filter - * Optional. Filter request. Filters are case-sensitive. - * The service supports the following formats: - * * `labels.key1 = "value1"` - * * `labels:key1` - * * `name = "value"` - * You can combine filters with `AND`, `OR`, and `NOT` operators. - * @type string $order_by - * Optional. The field to sort the results by, either `name` or `create_time`. - * If not specified, the ordering is undefined. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the parent location, in the format - * `projects/{project_id_or_number}/locations/{location_id}` - * - * 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 resource name of the parent location, in the format - * `projects/{project_id_or_number}/locations/{location_id}` - * - * 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 metadata feeds to return. The service - * might return fewer feeds than this value. If unspecified, at most 10 feeds - * are returned. The maximum value is 1,000. - * - * 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 metadata feeds to return. The service - * might return fewer feeds than this value. If unspecified, at most 10 feeds - * are returned. The maximum value is 1,000. - * - * 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 page token received from a previous `ListMetadataFeeds` call. - * Provide this token to retrieve the subsequent page of results. When - * paginating, all other parameters that are provided to the - * `ListMetadataFeeds` 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. The page token received from a previous `ListMetadataFeeds` call. - * Provide this token to retrieve the subsequent page of results. When - * paginating, all other parameters that are provided to the - * `ListMetadataFeeds` 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; - } - - /** - * Optional. Filter request. Filters are case-sensitive. - * The service supports the following formats: - * * `labels.key1 = "value1"` - * * `labels:key1` - * * `name = "value"` - * You can combine filters with `AND`, `OR`, and `NOT` operators. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filter request. Filters are case-sensitive. - * The service supports the following formats: - * * `labels.key1 = "value1"` - * * `labels:key1` - * * `name = "value"` - * You can combine filters with `AND`, `OR`, and `NOT` operators. - * - * 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 field to sort the results by, either `name` or `create_time`. - * If not specified, the ordering is undefined. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. The field to sort the results by, either `name` or `create_time`. - * If not specified, the ordering is undefined. - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListMetadataFeedsResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListMetadataFeedsResponse.php deleted file mode 100644 index a8794174c182..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListMetadataFeedsResponse.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.dataplex.v1.ListMetadataFeedsResponse - */ -class ListMetadataFeedsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of metadata feeds under the specified parent location. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.MetadataFeed metadata_feeds = 1; - */ - private $metadata_feeds; - /** - * A token to retrieve the next page of results. If there are no more results - * in the list, the value is empty. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Unordered list. Locations that the service couldn't reach. - * - * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\MetadataFeed[] $metadata_feeds - * List of metadata feeds under the specified parent location. - * @type string $next_page_token - * A token to retrieve the next page of results. If there are no more results - * in the list, the value is empty. - * @type string[] $unreachable - * Unordered list. Locations that the service couldn't reach. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * List of metadata feeds under the specified parent location. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.MetadataFeed metadata_feeds = 1; - * @return RepeatedField<\Google\Cloud\Dataplex\V1\MetadataFeed> - */ - public function getMetadataFeeds() - { - return $this->metadata_feeds; - } - - /** - * List of metadata feeds under the specified parent location. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.MetadataFeed metadata_feeds = 1; - * @param \Google\Cloud\Dataplex\V1\MetadataFeed[] $var - * @return $this - */ - public function setMetadataFeeds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\MetadataFeed::class); - $this->metadata_feeds = $arr; - - return $this; - } - - /** - * A token to retrieve the next page of results. If there are no more results - * in the list, the value is empty. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token to retrieve the next page of results. If there are no more results - * in the list, the value is empty. - * - * 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; - } - - /** - * Unordered list. Locations that the service couldn't reach. - * - * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; - * @return RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Unordered list. Locations that the service couldn't reach. - * - * Generated from protobuf field repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; - * @param string[] $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListMetadataJobsRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListMetadataJobsRequest.php deleted file mode 100644 index caa163823c62..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListMetadataJobsRequest.php +++ /dev/null @@ -1,270 +0,0 @@ -google.cloud.dataplex.v1.ListMetadataJobsRequest - */ -class ListMetadataJobsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the parent location, in the format - * `projects/{project_id_or_number}/locations/{location_id}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of metadata jobs to return. The service might - * return fewer jobs than this value. If unspecified, at most 10 jobs are - * returned. The maximum value is 1,000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. The page token received from a previous `ListMetadataJobs` call. - * Provide this token to retrieve the subsequent page of results. When - * paginating, all other parameters that are provided to the - * `ListMetadataJobs` 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 = ''; - /** - * Optional. Filter request. Filters are case-sensitive. - * The service supports the following formats: - * * `labels.key1 = "value1"` - * * `labels:key1` - * * `name = "value"` - * You can combine filters with `AND`, `OR`, and `NOT` operators. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. The field to sort the results by, either `name` or `create_time`. - * If not specified, the ordering is undefined. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The resource name of the parent location, in the format - * `projects/{project_id_or_number}/locations/{location_id}` - * Please see {@see CatalogServiceClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\ListMetadataJobsRequest - * - * @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 resource name of the parent location, in the format - * `projects/{project_id_or_number}/locations/{location_id}` - * @type int $page_size - * Optional. The maximum number of metadata jobs to return. The service might - * return fewer jobs than this value. If unspecified, at most 10 jobs are - * returned. The maximum value is 1,000. - * @type string $page_token - * Optional. The page token received from a previous `ListMetadataJobs` call. - * Provide this token to retrieve the subsequent page of results. When - * paginating, all other parameters that are provided to the - * `ListMetadataJobs` request must match the call that provided the page - * token. - * @type string $filter - * Optional. Filter request. Filters are case-sensitive. - * The service supports the following formats: - * * `labels.key1 = "value1"` - * * `labels:key1` - * * `name = "value"` - * You can combine filters with `AND`, `OR`, and `NOT` operators. - * @type string $order_by - * Optional. The field to sort the results by, either `name` or `create_time`. - * If not specified, the ordering is undefined. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the parent location, in the format - * `projects/{project_id_or_number}/locations/{location_id}` - * - * 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 resource name of the parent location, in the format - * `projects/{project_id_or_number}/locations/{location_id}` - * - * 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 metadata jobs to return. The service might - * return fewer jobs than this value. If unspecified, at most 10 jobs are - * returned. The maximum value is 1,000. - * - * 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 metadata jobs to return. The service might - * return fewer jobs than this value. If unspecified, at most 10 jobs are - * returned. The maximum value is 1,000. - * - * 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 page token received from a previous `ListMetadataJobs` call. - * Provide this token to retrieve the subsequent page of results. When - * paginating, all other parameters that are provided to the - * `ListMetadataJobs` 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. The page token received from a previous `ListMetadataJobs` call. - * Provide this token to retrieve the subsequent page of results. When - * paginating, all other parameters that are provided to the - * `ListMetadataJobs` 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; - } - - /** - * Optional. Filter request. Filters are case-sensitive. - * The service supports the following formats: - * * `labels.key1 = "value1"` - * * `labels:key1` - * * `name = "value"` - * You can combine filters with `AND`, `OR`, and `NOT` operators. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filter request. Filters are case-sensitive. - * The service supports the following formats: - * * `labels.key1 = "value1"` - * * `labels:key1` - * * `name = "value"` - * You can combine filters with `AND`, `OR`, and `NOT` operators. - * - * 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 field to sort the results by, either `name` or `create_time`. - * If not specified, the ordering is undefined. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. The field to sort the results by, either `name` or `create_time`. - * If not specified, the ordering is undefined. - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListMetadataJobsResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListMetadataJobsResponse.php deleted file mode 100644 index 729750f0caa2..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListMetadataJobsResponse.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.dataplex.v1.ListMetadataJobsResponse - */ -class ListMetadataJobsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Metadata jobs under the specified parent location. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.MetadataJob metadata_jobs = 1; - */ - private $metadata_jobs; - /** - * A token to retrieve the next page of results. If there are no more results - * in the list, the value is empty. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations that the service couldn't reach. - * - * Generated from protobuf field repeated string unreachable_locations = 3; - */ - private $unreachable_locations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\MetadataJob[] $metadata_jobs - * Metadata jobs under the specified parent location. - * @type string $next_page_token - * A token to retrieve the next page of results. If there are no more results - * in the list, the value is empty. - * @type string[] $unreachable_locations - * Locations that the service couldn't reach. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Metadata jobs under the specified parent location. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.MetadataJob metadata_jobs = 1; - * @return RepeatedField<\Google\Cloud\Dataplex\V1\MetadataJob> - */ - public function getMetadataJobs() - { - return $this->metadata_jobs; - } - - /** - * Metadata jobs under the specified parent location. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.MetadataJob metadata_jobs = 1; - * @param \Google\Cloud\Dataplex\V1\MetadataJob[] $var - * @return $this - */ - public function setMetadataJobs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\MetadataJob::class); - $this->metadata_jobs = $arr; - - return $this; - } - - /** - * A token to retrieve the next page of results. If there are no more results - * in the list, the value is empty. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token to retrieve the next page of results. If there are no more results - * in the list, the value is empty. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Locations that the service couldn't reach. - * - * Generated from protobuf field repeated string unreachable_locations = 3; - * @return RepeatedField - */ - public function getUnreachableLocations() - { - return $this->unreachable_locations; - } - - /** - * Locations that the service couldn't reach. - * - * Generated from protobuf field repeated string unreachable_locations = 3; - * @param string[] $var - * @return $this - */ - public function setUnreachableLocations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable_locations = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListPartitionsRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListPartitionsRequest.php deleted file mode 100644 index 7c16f2dfbb49..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListPartitionsRequest.php +++ /dev/null @@ -1,268 +0,0 @@ -google.cloud.dataplex.v1.ListPartitionsRequest - */ -class ListPartitionsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the parent entity: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Maximum number of partitions to return. The service may return - * fewer than this value. If unspecified, 100 partitions will be returned by - * default. The maximum page size is 500; larger values will will be truncated - * to 500. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. Page token received from a previous `ListPartitions` call. - * Provide this to retrieve the subsequent page. When paginating, all other - * parameters provided to `ListPartitions` 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 = ''; - /** - * Optional. Filter the partitions returned to the caller using a key value - * pair expression. Supported operators and syntax: - * - logic operators: AND, OR - * - comparison operators: <, >, >=, <= ,=, != - * - LIKE operators: - * - The right hand of a LIKE operator supports "." and - * "*" for wildcard searches, for example "value1 LIKE ".*oo.*" - * - parenthetical grouping: ( ) - * Sample filter expression: `?filter="key1 < value1 OR key2 > value2" - * **Notes:** - * - Keys to the left of operators are case insensitive. - * - Partition results are sorted first by creation time, then by - * lexicographic order. - * - Up to 20 key value filter pairs are allowed, but due to performance - * considerations, only the first 10 will be used as a filter. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * @param string $parent Required. The resource name of the parent entity: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`. Please see - * {@see MetadataServiceClient::entityName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\ListPartitionsRequest - * - * @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 resource name of the parent entity: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`. - * @type int $page_size - * Optional. Maximum number of partitions to return. The service may return - * fewer than this value. If unspecified, 100 partitions will be returned by - * default. The maximum page size is 500; larger values will will be truncated - * to 500. - * @type string $page_token - * Optional. Page token received from a previous `ListPartitions` call. - * Provide this to retrieve the subsequent page. When paginating, all other - * parameters provided to `ListPartitions` must match the call that provided - * the page token. - * @type string $filter - * Optional. Filter the partitions returned to the caller using a key value - * pair expression. Supported operators and syntax: - * - logic operators: AND, OR - * - comparison operators: <, >, >=, <= ,=, != - * - LIKE operators: - * - The right hand of a LIKE operator supports "." and - * "*" for wildcard searches, for example "value1 LIKE ".*oo.*" - * - parenthetical grouping: ( ) - * Sample filter expression: `?filter="key1 < value1 OR key2 > value2" - * **Notes:** - * - Keys to the left of operators are case insensitive. - * - Partition results are sorted first by creation time, then by - * lexicographic order. - * - Up to 20 key value filter pairs are allowed, but due to performance - * considerations, only the first 10 will be used as a filter. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Metadata::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the parent entity: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`. - * - * 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 resource name of the parent entity: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`. - * - * 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. Maximum number of partitions to return. The service may return - * fewer than this value. If unspecified, 100 partitions will be returned by - * default. The maximum page size is 500; larger values will will be truncated - * to 500. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Maximum number of partitions to return. The service may return - * fewer than this value. If unspecified, 100 partitions will be returned by - * default. The maximum page size is 500; larger values will will be truncated - * to 500. - * - * 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. Page token received from a previous `ListPartitions` call. - * Provide this to retrieve the subsequent page. When paginating, all other - * parameters provided to `ListPartitions` 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. Page token received from a previous `ListPartitions` call. - * Provide this to retrieve the subsequent page. When paginating, all other - * parameters provided to `ListPartitions` 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; - } - - /** - * Optional. Filter the partitions returned to the caller using a key value - * pair expression. Supported operators and syntax: - * - logic operators: AND, OR - * - comparison operators: <, >, >=, <= ,=, != - * - LIKE operators: - * - The right hand of a LIKE operator supports "." and - * "*" for wildcard searches, for example "value1 LIKE ".*oo.*" - * - parenthetical grouping: ( ) - * Sample filter expression: `?filter="key1 < value1 OR key2 > value2" - * **Notes:** - * - Keys to the left of operators are case insensitive. - * - Partition results are sorted first by creation time, then by - * lexicographic order. - * - Up to 20 key value filter pairs are allowed, but due to performance - * considerations, only the first 10 will be used as a filter. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filter the partitions returned to the caller using a key value - * pair expression. Supported operators and syntax: - * - logic operators: AND, OR - * - comparison operators: <, >, >=, <= ,=, != - * - LIKE operators: - * - The right hand of a LIKE operator supports "." and - * "*" for wildcard searches, for example "value1 LIKE ".*oo.*" - * - parenthetical grouping: ( ) - * Sample filter expression: `?filter="key1 < value1 OR key2 > value2" - * **Notes:** - * - Keys to the left of operators are case insensitive. - * - Partition results are sorted first by creation time, then by - * lexicographic order. - * - Up to 20 key value filter pairs are allowed, but due to performance - * considerations, only the first 10 will be used as a filter. - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListPartitionsResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListPartitionsResponse.php deleted file mode 100644 index f247f20455e6..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListPartitionsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.dataplex.v1.ListPartitionsResponse - */ -class ListPartitionsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Partitions under the specified parent entity. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.Partition partitions = 1; - */ - private $partitions; - /** - * Token to retrieve the next page of results, or empty if there are no - * remaining results in the list. - * - * 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\Dataplex\V1\Partition[] $partitions - * Partitions under the specified parent entity. - * @type string $next_page_token - * Token to retrieve the next page of results, or empty if there are no - * remaining results in the list. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Metadata::initOnce(); - parent::__construct($data); - } - - /** - * Partitions under the specified parent entity. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.Partition partitions = 1; - * @return RepeatedField<\Google\Cloud\Dataplex\V1\Partition> - */ - public function getPartitions() - { - return $this->partitions; - } - - /** - * Partitions under the specified parent entity. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.Partition partitions = 1; - * @param \Google\Cloud\Dataplex\V1\Partition[] $var - * @return $this - */ - public function setPartitions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\Partition::class); - $this->partitions = $arr; - - return $this; - } - - /** - * Token to retrieve the next page of results, or empty if there are no - * remaining results in the list. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Token to retrieve the next page of results, or empty if there are no - * remaining results in the list. - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListTasksRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListTasksRequest.php deleted file mode 100644 index 30f8ba23e79e..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListTasksRequest.php +++ /dev/null @@ -1,238 +0,0 @@ -google.cloud.dataplex.v1.ListTasksRequest - */ -class ListTasksRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the parent lake: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Maximum number of tasks to return. The service may return fewer - * than this value. If unspecified, at most 10 tasks will be returned. The - * maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. Page token received from a previous `ListZones` call. Provide - * this to retrieve the subsequent page. When paginating, all other parameters - * provided to `ListZones` 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 = ''; - /** - * Optional. Filter request. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Order by fields for the result. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The resource name of the parent lake: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. Please see - * {@see DataplexServiceClient::lakeName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\ListTasksRequest - * - * @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 resource name of the parent lake: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. - * @type int $page_size - * Optional. Maximum number of tasks to return. The service may return fewer - * than this value. If unspecified, at most 10 tasks will be returned. The - * maximum value is 1000; values above 1000 will be coerced to 1000. - * @type string $page_token - * Optional. Page token received from a previous `ListZones` call. Provide - * this to retrieve the subsequent page. When paginating, all other parameters - * provided to `ListZones` must match the call that provided the page token. - * @type string $filter - * Optional. Filter request. - * @type string $order_by - * Optional. Order by fields for the result. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the parent lake: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. - * - * 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 resource name of the parent lake: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. - * - * 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. Maximum number of tasks to return. The service may return fewer - * than this value. If unspecified, at most 10 tasks will be returned. The - * maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Maximum number of tasks to return. The service may return fewer - * than this value. If unspecified, at most 10 tasks will be returned. The - * maximum value is 1000; values above 1000 will be coerced to 1000. - * - * 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. Page token received from a previous `ListZones` call. Provide - * this to retrieve the subsequent page. When paginating, all other parameters - * provided to `ListZones` 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. Page token received from a previous `ListZones` call. Provide - * this to retrieve the subsequent page. When paginating, all other parameters - * provided to `ListZones` 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; - } - - /** - * Optional. Filter request. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filter request. - * - * 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. Order by fields for the result. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Order by fields for the result. - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListTasksResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListTasksResponse.php deleted file mode 100644 index 54cce8924b70..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListTasksResponse.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.dataplex.v1.ListTasksResponse - */ -class ListTasksResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Tasks under the given parent lake. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.Task tasks = 1; - */ - private $tasks; - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable_locations = 3; - */ - private $unreachable_locations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\Task[] $tasks - * Tasks under the given parent lake. - * @type string $next_page_token - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * @type string[] $unreachable_locations - * Locations that could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Tasks under the given parent lake. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.Task tasks = 1; - * @return RepeatedField<\Google\Cloud\Dataplex\V1\Task> - */ - public function getTasks() - { - return $this->tasks; - } - - /** - * Tasks under the given parent lake. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.Task tasks = 1; - * @param \Google\Cloud\Dataplex\V1\Task[] $var - * @return $this - */ - public function setTasks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\Task::class); - $this->tasks = $arr; - - return $this; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable_locations = 3; - * @return RepeatedField - */ - public function getUnreachableLocations() - { - return $this->unreachable_locations; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable_locations = 3; - * @param string[] $var - * @return $this - */ - public function setUnreachableLocations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable_locations = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListZoneActionsRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListZoneActionsRequest.php deleted file mode 100644 index e50944e42070..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListZoneActionsRequest.php +++ /dev/null @@ -1,174 +0,0 @@ -google.cloud.dataplex.v1.ListZoneActionsRequest - */ -class ListZoneActionsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the parent zone: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Maximum number of actions to return. The service may return fewer - * than this value. If unspecified, at most 10 actions will be returned. The - * maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. Page token received from a previous `ListZoneActions` call. - * Provide this to retrieve the subsequent page. When paginating, all other - * parameters provided to `ListZoneActions` 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 resource name of the parent zone: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. Please see - * {@see DataplexServiceClient::zoneName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\ListZoneActionsRequest - * - * @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 resource name of the parent zone: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. - * @type int $page_size - * Optional. Maximum number of actions to return. The service may return fewer - * than this value. If unspecified, at most 10 actions will be returned. The - * maximum value is 1000; values above 1000 will be coerced to 1000. - * @type string $page_token - * Optional. Page token received from a previous `ListZoneActions` call. - * Provide this to retrieve the subsequent page. When paginating, all other - * parameters provided to `ListZoneActions` must match the call that provided - * the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the parent zone: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. - * - * 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 resource name of the parent zone: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. - * - * 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. Maximum number of actions to return. The service may return fewer - * than this value. If unspecified, at most 10 actions will be returned. The - * maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Maximum number of actions to return. The service may return fewer - * than this value. If unspecified, at most 10 actions will be returned. The - * maximum value is 1000; values above 1000 will be coerced to 1000. - * - * 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. Page token received from a previous `ListZoneActions` call. - * Provide this to retrieve the subsequent page. When paginating, all other - * parameters provided to `ListZoneActions` 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. Page token received from a previous `ListZoneActions` call. - * Provide this to retrieve the subsequent page. When paginating, all other - * parameters provided to `ListZoneActions` 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListZonesRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListZonesRequest.php deleted file mode 100644 index 28578b10985a..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListZonesRequest.php +++ /dev/null @@ -1,238 +0,0 @@ -google.cloud.dataplex.v1.ListZonesRequest - */ -class ListZonesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the parent lake: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Maximum number of zones to return. The service may return fewer - * than this value. If unspecified, at most 10 zones will be returned. The - * maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. Page token received from a previous `ListZones` call. Provide - * this to retrieve the subsequent page. When paginating, all other parameters - * provided to `ListZones` 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 = ''; - /** - * Optional. Filter request. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Order by fields for the result. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The resource name of the parent lake: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. Please see - * {@see DataplexServiceClient::lakeName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\ListZonesRequest - * - * @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 resource name of the parent lake: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. - * @type int $page_size - * Optional. Maximum number of zones to return. The service may return fewer - * than this value. If unspecified, at most 10 zones will be returned. The - * maximum value is 1000; values above 1000 will be coerced to 1000. - * @type string $page_token - * Optional. Page token received from a previous `ListZones` call. Provide - * this to retrieve the subsequent page. When paginating, all other parameters - * provided to `ListZones` must match the call that provided the page token. - * @type string $filter - * Optional. Filter request. - * @type string $order_by - * Optional. Order by fields for the result. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the parent lake: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. - * - * 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 resource name of the parent lake: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. - * - * 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. Maximum number of zones to return. The service may return fewer - * than this value. If unspecified, at most 10 zones will be returned. The - * maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Maximum number of zones to return. The service may return fewer - * than this value. If unspecified, at most 10 zones will be returned. The - * maximum value is 1000; values above 1000 will be coerced to 1000. - * - * 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. Page token received from a previous `ListZones` call. Provide - * this to retrieve the subsequent page. When paginating, all other parameters - * provided to `ListZones` 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. Page token received from a previous `ListZones` call. Provide - * this to retrieve the subsequent page. When paginating, all other parameters - * provided to `ListZones` 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; - } - - /** - * Optional. Filter request. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filter request. - * - * 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. Order by fields for the result. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Order by fields for the result. - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListZonesResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListZonesResponse.php deleted file mode 100644 index 8b3a095f6f3e..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ListZonesResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.dataplex.v1.ListZonesResponse - */ -class ListZonesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Zones under the given parent lake. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.Zone zones = 1; - */ - private $zones; - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * 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\Dataplex\V1\Zone[] $zones - * Zones under the given parent lake. - * @type string $next_page_token - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Zones under the given parent lake. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.Zone zones = 1; - * @return RepeatedField<\Google\Cloud\Dataplex\V1\Zone> - */ - public function getZones() - { - return $this->zones; - } - - /** - * Zones under the given parent lake. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.Zone zones = 1; - * @param \Google\Cloud\Dataplex\V1\Zone[] $var - * @return $this - */ - public function setZones($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\Zone::class); - $this->zones = $arr; - - return $this; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/LookupContextRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/LookupContextRequest.php deleted file mode 100644 index aad7968a1d54..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/LookupContextRequest.php +++ /dev/null @@ -1,213 +0,0 @@ -google.cloud.dataplex.v1.LookupContextRequest - */ -class LookupContextRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The project to which the request should be attributed in the - * following form: `projects/{project}/locations/{location}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - /** - * Required. The entry names to look up the context for. The maximum number of - * resources for a request is limited to 10. - * ## Examples: - * `projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}` - * - * Generated from protobuf field repeated string resources = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - private $resources; - /** - * Optional. The text representing contextual information for which metadata - * context is being requested. - * - * Generated from protobuf field string context = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $context = ''; - /** - * Optional. Allows to configure the context. - * Supported options: - * - `format` - The format of the context (one of `yaml`, - * `xml`, `json`, default is `yaml`). - * - `context_budget` - If provided, the output will be intelligently - * truncated on a best-effort basis to contain approximately the desired - * amount of characters. There is no guarantee to achieve the specific amount. - * - * Generated from protobuf field map options = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $options; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The project to which the request should be attributed in the - * following form: `projects/{project}/locations/{location}`. - * @type string[] $resources - * Required. The entry names to look up the context for. The maximum number of - * resources for a request is limited to 10. - * ## Examples: - * `projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}` - * @type string $context - * Optional. The text representing contextual information for which metadata - * context is being requested. - * @type array|\Google\Protobuf\Internal\MapField $options - * Optional. Allows to configure the context. - * Supported options: - * - `format` - The format of the context (one of `yaml`, - * `xml`, `json`, default is `yaml`). - * - `context_budget` - If provided, the output will be intelligently - * truncated on a best-effort basis to contain approximately the desired - * amount of characters. There is no guarantee to achieve the specific amount. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Required. The project to which the request should be attributed in the - * following form: `projects/{project}/locations/{location}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The project to which the request should be attributed in the - * following form: `projects/{project}/locations/{location}`. - * - * 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 entry names to look up the context for. The maximum number of - * resources for a request is limited to 10. - * ## Examples: - * `projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}` - * - * Generated from protobuf field repeated string resources = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return RepeatedField - */ - public function getResources() - { - return $this->resources; - } - - /** - * Required. The entry names to look up the context for. The maximum number of - * resources for a request is limited to 10. - * ## Examples: - * `projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}` - * - * Generated from protobuf field repeated string resources = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string[] $var - * @return $this - */ - public function setResources($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->resources = $arr; - - return $this; - } - - /** - * Optional. The text representing contextual information for which metadata - * context is being requested. - * - * Generated from protobuf field string context = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getContext() - { - return $this->context; - } - - /** - * Optional. The text representing contextual information for which metadata - * context is being requested. - * - * Generated from protobuf field string context = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setContext($var) - { - GPBUtil::checkString($var, True); - $this->context = $var; - - return $this; - } - - /** - * Optional. Allows to configure the context. - * Supported options: - * - `format` - The format of the context (one of `yaml`, - * `xml`, `json`, default is `yaml`). - * - `context_budget` - If provided, the output will be intelligently - * truncated on a best-effort basis to contain approximately the desired - * amount of characters. There is no guarantee to achieve the specific amount. - * - * Generated from protobuf field map options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getOptions() - { - return $this->options; - } - - /** - * Optional. Allows to configure the context. - * Supported options: - * - `format` - The format of the context (one of `yaml`, - * `xml`, `json`, default is `yaml`). - * - `context_budget` - If provided, the output will be intelligently - * truncated on a best-effort basis to contain approximately the desired - * amount of characters. There is no guarantee to achieve the specific amount. - * - * Generated from protobuf field map options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setOptions($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->options = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/LookupContextResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/LookupContextResponse.php deleted file mode 100644 index 8d292fb2d3b6..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/LookupContextResponse.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.dataplex.v1.LookupContextResponse - */ -class LookupContextResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Pre-formatted block of text containing the context for the requested - * resources. - * - * Generated from protobuf field string context = 1; - */ - protected $context = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $context - * Pre-formatted block of text containing the context for the requested - * resources. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Pre-formatted block of text containing the context for the requested - * resources. - * - * Generated from protobuf field string context = 1; - * @return string - */ - public function getContext() - { - return $this->context; - } - - /** - * Pre-formatted block of text containing the context for the requested - * resources. - * - * Generated from protobuf field string context = 1; - * @param string $var - * @return $this - */ - public function setContext($var) - { - GPBUtil::checkString($var, True); - $this->context = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/LookupEntryLinksRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/LookupEntryLinksRequest.php deleted file mode 100644 index efe9268554b5..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/LookupEntryLinksRequest.php +++ /dev/null @@ -1,277 +0,0 @@ -google.cloud.dataplex.v1.LookupEntryLinksRequest - */ -class LookupEntryLinksRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The project to which the request should be attributed to - * Format: `projects/{project_id_or_number}/locations/{location_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - /** - * Required. The resource name of the referred Entry. - * Format: - * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}`. - * Entry Links which references this entry will be returned in the response. - * - * Generated from protobuf field string entry = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $entry = ''; - /** - * Mode of entry reference. - * - * Generated from protobuf field .google.cloud.dataplex.v1.LookupEntryLinksRequest.EntryMode entry_mode = 3; - */ - protected $entry_mode = 0; - /** - * Entry link types to filter the response by. If empty, all entry link types - * will be returned. At most 10 entry link types can be specified. - * - * Generated from protobuf field repeated string entry_link_types = 4; - */ - private $entry_link_types; - /** - * Maximum number of EntryLinks to return. The service may return fewer - * than this value. If unspecified, at most 10 EntryLinks will be returned. - * The maximum value is 10; values above 10 will be coerced to 10. - * - * Generated from protobuf field int32 page_size = 5; - */ - protected $page_size = 0; - /** - * Page token received from a previous `LookupEntryLinks` call. Provide this - * to retrieve the subsequent page. When paginating, all other parameters that - * are provided to the `LookupEntryLinks` request must match the call that - * provided the page token. - * - * Generated from protobuf field string page_token = 6; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The project to which the request should be attributed to - * Format: `projects/{project_id_or_number}/locations/{location_id}`. - * @type string $entry - * Required. The resource name of the referred Entry. - * Format: - * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}`. - * Entry Links which references this entry will be returned in the response. - * @type int $entry_mode - * Mode of entry reference. - * @type string[] $entry_link_types - * Entry link types to filter the response by. If empty, all entry link types - * will be returned. At most 10 entry link types can be specified. - * @type int $page_size - * Maximum number of EntryLinks to return. The service may return fewer - * than this value. If unspecified, at most 10 EntryLinks will be returned. - * The maximum value is 10; values above 10 will be coerced to 10. - * @type string $page_token - * Page token received from a previous `LookupEntryLinks` call. Provide this - * to retrieve the subsequent page. When paginating, all other parameters that - * are provided to the `LookupEntryLinks` request must match the call that - * provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Required. The project to which the request should be attributed to - * Format: `projects/{project_id_or_number}/locations/{location_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The project to which the request should be attributed to - * Format: `projects/{project_id_or_number}/locations/{location_id}`. - * - * 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 resource name of the referred Entry. - * Format: - * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}`. - * Entry Links which references this entry will be returned in the response. - * - * Generated from protobuf field string entry = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getEntry() - { - return $this->entry; - } - - /** - * Required. The resource name of the referred Entry. - * Format: - * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}`. - * Entry Links which references this entry will be returned in the response. - * - * Generated from protobuf field string entry = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setEntry($var) - { - GPBUtil::checkString($var, True); - $this->entry = $var; - - return $this; - } - - /** - * Mode of entry reference. - * - * Generated from protobuf field .google.cloud.dataplex.v1.LookupEntryLinksRequest.EntryMode entry_mode = 3; - * @return int - */ - public function getEntryMode() - { - return $this->entry_mode; - } - - /** - * Mode of entry reference. - * - * Generated from protobuf field .google.cloud.dataplex.v1.LookupEntryLinksRequest.EntryMode entry_mode = 3; - * @param int $var - * @return $this - */ - public function setEntryMode($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\LookupEntryLinksRequest\EntryMode::class); - $this->entry_mode = $var; - - return $this; - } - - /** - * Entry link types to filter the response by. If empty, all entry link types - * will be returned. At most 10 entry link types can be specified. - * - * Generated from protobuf field repeated string entry_link_types = 4; - * @return RepeatedField - */ - public function getEntryLinkTypes() - { - return $this->entry_link_types; - } - - /** - * Entry link types to filter the response by. If empty, all entry link types - * will be returned. At most 10 entry link types can be specified. - * - * Generated from protobuf field repeated string entry_link_types = 4; - * @param string[] $var - * @return $this - */ - public function setEntryLinkTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->entry_link_types = $arr; - - return $this; - } - - /** - * Maximum number of EntryLinks to return. The service may return fewer - * than this value. If unspecified, at most 10 EntryLinks will be returned. - * The maximum value is 10; values above 10 will be coerced to 10. - * - * Generated from protobuf field int32 page_size = 5; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Maximum number of EntryLinks to return. The service may return fewer - * than this value. If unspecified, at most 10 EntryLinks will be returned. - * The maximum value is 10; values above 10 will be coerced to 10. - * - * Generated from protobuf field int32 page_size = 5; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Page token received from a previous `LookupEntryLinks` call. Provide this - * to retrieve the subsequent page. When paginating, all other parameters that - * are provided to the `LookupEntryLinks` request must match the call that - * provided the page token. - * - * Generated from protobuf field string page_token = 6; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Page token received from a previous `LookupEntryLinks` call. Provide this - * to retrieve the subsequent page. When paginating, all other parameters that - * are provided to the `LookupEntryLinks` request must match the call that - * provided the page token. - * - * Generated from protobuf field string page_token = 6; - * @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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/LookupEntryLinksRequest/EntryMode.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/LookupEntryLinksRequest/EntryMode.php deleted file mode 100644 index 15716d25d3a2..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/LookupEntryLinksRequest/EntryMode.php +++ /dev/null @@ -1,62 +0,0 @@ -google.cloud.dataplex.v1.LookupEntryLinksRequest.EntryMode - */ -class EntryMode -{ - /** - * Unspecified entry mode. Returns both directional and non-directional - * entry links which references the entry. - * - * Generated from protobuf enum ENTRY_MODE_UNSPECIFIED = 0; - */ - const ENTRY_MODE_UNSPECIFIED = 0; - /** - * Returns all directed entry links which references the entry as source. - * - * Generated from protobuf enum SOURCE = 1; - */ - const SOURCE = 1; - /** - * Return all directed entry links which references the entry as target. - * - * Generated from protobuf enum TARGET = 2; - */ - const TARGET = 2; - - private static $valueToName = [ - self::ENTRY_MODE_UNSPECIFIED => 'ENTRY_MODE_UNSPECIFIED', - self::SOURCE => 'SOURCE', - self::TARGET => 'TARGET', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/LookupEntryLinksResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/LookupEntryLinksResponse.php deleted file mode 100644 index abbb41e3ad83..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/LookupEntryLinksResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.dataplex.v1.LookupEntryLinksResponse - */ -class LookupEntryLinksResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of entry links that reference the specified entry. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.EntryLink entry_links = 1; - */ - private $entry_links; - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * 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\Dataplex\V1\EntryLink[] $entry_links - * List of entry links that reference the specified entry. - * @type string $next_page_token - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * List of entry links that reference the specified entry. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.EntryLink entry_links = 1; - * @return RepeatedField<\Google\Cloud\Dataplex\V1\EntryLink> - */ - public function getEntryLinks() - { - return $this->entry_links; - } - - /** - * List of entry links that reference the specified entry. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.EntryLink entry_links = 1; - * @param \Google\Cloud\Dataplex\V1\EntryLink[] $var - * @return $this - */ - public function setEntryLinks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\EntryLink::class); - $this->entry_links = $arr; - - return $this; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/LookupEntryRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/LookupEntryRequest.php deleted file mode 100644 index 34e44e82a6c1..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/LookupEntryRequest.php +++ /dev/null @@ -1,235 +0,0 @@ -google.cloud.dataplex.v1.LookupEntryRequest - */ -class LookupEntryRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The project to which the request should be attributed in the - * following form: `projects/{project}/locations/{location}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - /** - * Optional. View to control which parts of an entry the service should - * return. - * **Please check the limitations on returned aspects in the Entry view - * documentation. Amount of returned aspects depends on the selected Entry - * View.** - * - * Generated from protobuf field .google.cloud.dataplex.v1.EntryView view = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $view = 0; - /** - * Optional. Limits the aspects returned to the provided aspect types. - * It only works for CUSTOM view. - * - * Generated from protobuf field repeated string aspect_types = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $aspect_types; - /** - * Optional. Limits the aspects returned to those associated with the provided - * paths within the Entry. It only works for CUSTOM view. - * - * Generated from protobuf field repeated string paths = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $paths; - /** - * Required. The resource name of the Entry: - * `projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}`. - * - * Generated from protobuf field string entry = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $entry = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The project to which the request should be attributed in the - * following form: `projects/{project}/locations/{location}`. - * @type int $view - * Optional. View to control which parts of an entry the service should - * return. - * **Please check the limitations on returned aspects in the Entry view - * documentation. Amount of returned aspects depends on the selected Entry - * View.** - * @type string[] $aspect_types - * Optional. Limits the aspects returned to the provided aspect types. - * It only works for CUSTOM view. - * @type string[] $paths - * Optional. Limits the aspects returned to those associated with the provided - * paths within the Entry. It only works for CUSTOM view. - * @type string $entry - * Required. The resource name of the Entry: - * `projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Required. The project to which the request should be attributed in the - * following form: `projects/{project}/locations/{location}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The project to which the request should be attributed in the - * following form: `projects/{project}/locations/{location}`. - * - * 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. View to control which parts of an entry the service should - * return. - * **Please check the limitations on returned aspects in the Entry view - * documentation. Amount of returned aspects depends on the selected Entry - * View.** - * - * Generated from protobuf field .google.cloud.dataplex.v1.EntryView view = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getView() - { - return $this->view; - } - - /** - * Optional. View to control which parts of an entry the service should - * return. - * **Please check the limitations on returned aspects in the Entry view - * documentation. Amount of returned aspects depends on the selected Entry - * View.** - * - * Generated from protobuf field .google.cloud.dataplex.v1.EntryView view = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setView($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\EntryView::class); - $this->view = $var; - - return $this; - } - - /** - * Optional. Limits the aspects returned to the provided aspect types. - * It only works for CUSTOM view. - * - * Generated from protobuf field repeated string aspect_types = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getAspectTypes() - { - return $this->aspect_types; - } - - /** - * Optional. Limits the aspects returned to the provided aspect types. - * It only works for CUSTOM view. - * - * Generated from protobuf field repeated string aspect_types = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setAspectTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->aspect_types = $arr; - - return $this; - } - - /** - * Optional. Limits the aspects returned to those associated with the provided - * paths within the Entry. It only works for CUSTOM view. - * - * Generated from protobuf field repeated string paths = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getPaths() - { - return $this->paths; - } - - /** - * Optional. Limits the aspects returned to those associated with the provided - * paths within the Entry. It only works for CUSTOM view. - * - * Generated from protobuf field repeated string paths = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setPaths($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->paths = $arr; - - return $this; - } - - /** - * Required. The resource name of the Entry: - * `projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}`. - * - * Generated from protobuf field string entry = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getEntry() - { - return $this->entry; - } - - /** - * Required. The resource name of the Entry: - * `projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}`. - * - * Generated from protobuf field string entry = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setEntry($var) - { - GPBUtil::checkString($var, True); - $this->entry = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataFeed.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataFeed.php deleted file mode 100644 index a5d5c82cf63b..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataFeed.php +++ /dev/null @@ -1,382 +0,0 @@ -google.cloud.dataplex.v1.MetadataFeed - */ -class MetadataFeed extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the metadata feed, in the format - * `projects/{project_id_or_number}/locations/{location_id}/metadataFeeds/{metadata_feed_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. A system-generated, globally unique ID for the metadata job. - * If the metadata job is deleted and then re-created with the same name, this - * ID is different. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - */ - protected $uid = ''; - /** - * Required. The scope of the metadata feed. - * Only the in scope changes are published. - * - * Generated from protobuf field .google.cloud.dataplex.v1.MetadataFeed.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $scope = null; - /** - * Optional. The filters of the metadata feed. - * Only the changes that match the filters are published. - * - * Generated from protobuf field .google.cloud.dataplex.v1.MetadataFeed.Filters filters = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filters = null; - /** - * Output only. The time when the feed was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time when the feed was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Optional. User-defined labels. - * - * Generated from protobuf field map labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $labels; - protected $endpoint; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the metadata feed, in the format - * `projects/{project_id_or_number}/locations/{location_id}/metadataFeeds/{metadata_feed_id}`. - * @type string $uid - * Output only. A system-generated, globally unique ID for the metadata job. - * If the metadata job is deleted and then re-created with the same name, this - * ID is different. - * @type \Google\Cloud\Dataplex\V1\MetadataFeed\Scope $scope - * Required. The scope of the metadata feed. - * Only the in scope changes are published. - * @type \Google\Cloud\Dataplex\V1\MetadataFeed\Filters $filters - * Optional. The filters of the metadata feed. - * Only the changes that match the filters are published. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time when the feed was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time when the feed was updated. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Optional. User-defined labels. - * @type string $pubsub_topic - * Optional. The pubsub topic that you want the metadata feed messages to - * publish to. Please grant Dataplex service account the permission to - * publish messages to the topic. The service account is: - * service-{PROJECT_NUMBER}\@gcp-sa-dataplex.iam.gserviceaccount.com. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the metadata feed, in the format - * `projects/{project_id_or_number}/locations/{location_id}/metadataFeeds/{metadata_feed_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the metadata feed, in the format - * `projects/{project_id_or_number}/locations/{location_id}/metadataFeeds/{metadata_feed_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. A system-generated, globally unique ID for the metadata job. - * If the metadata job is deleted and then re-created with the same name, this - * ID is different. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. A system-generated, globally unique ID for the metadata job. - * If the metadata job is deleted and then re-created with the same name, this - * ID is different. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Required. The scope of the metadata feed. - * Only the in scope changes are published. - * - * Generated from protobuf field .google.cloud.dataplex.v1.MetadataFeed.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataplex\V1\MetadataFeed\Scope|null - */ - public function getScope() - { - return $this->scope; - } - - public function hasScope() - { - return isset($this->scope); - } - - public function clearScope() - { - unset($this->scope); - } - - /** - * Required. The scope of the metadata feed. - * Only the in scope changes are published. - * - * Generated from protobuf field .google.cloud.dataplex.v1.MetadataFeed.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\MetadataFeed\Scope $var - * @return $this - */ - public function setScope($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\MetadataFeed\Scope::class); - $this->scope = $var; - - return $this; - } - - /** - * Optional. The filters of the metadata feed. - * Only the changes that match the filters are published. - * - * Generated from protobuf field .google.cloud.dataplex.v1.MetadataFeed.Filters filters = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dataplex\V1\MetadataFeed\Filters|null - */ - public function getFilters() - { - return $this->filters; - } - - public function hasFilters() - { - return isset($this->filters); - } - - public function clearFilters() - { - unset($this->filters); - } - - /** - * Optional. The filters of the metadata feed. - * Only the changes that match the filters are published. - * - * Generated from protobuf field .google.cloud.dataplex.v1.MetadataFeed.Filters filters = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataplex\V1\MetadataFeed\Filters $var - * @return $this - */ - public function setFilters($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\MetadataFeed\Filters::class); - $this->filters = $var; - - return $this; - } - - /** - * Output only. The time when the feed was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.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 feed was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.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 feed was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.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 feed was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.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. User-defined labels. - * - * Generated from protobuf field map labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Optional. User-defined labels. - * - * Generated from protobuf field map labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Optional. The pubsub topic that you want the metadata feed messages to - * publish to. Please grant Dataplex service account the permission to - * publish messages to the topic. The service account is: - * service-{PROJECT_NUMBER}\@gcp-sa-dataplex.iam.gserviceaccount.com. - * - * Generated from protobuf field string pubsub_topic = 100 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPubsubTopic() - { - return $this->readOneof(100); - } - - public function hasPubsubTopic() - { - return $this->hasOneof(100); - } - - /** - * Optional. The pubsub topic that you want the metadata feed messages to - * publish to. Please grant Dataplex service account the permission to - * publish messages to the topic. The service account is: - * service-{PROJECT_NUMBER}\@gcp-sa-dataplex.iam.gserviceaccount.com. - * - * Generated from protobuf field string pubsub_topic = 100 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPubsubTopic($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(100, $var); - - return $this; - } - - /** - * @return string - */ - public function getEndpoint() - { - return $this->whichOneof("endpoint"); - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataFeed/Filters.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataFeed/Filters.php deleted file mode 100644 index 3d13aaa206a3..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataFeed/Filters.php +++ /dev/null @@ -1,163 +0,0 @@ -google.cloud.dataplex.v1.MetadataFeed.Filters - */ -class Filters extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The entry types that you want to listen to, specified as - * relative resource names in the format - * `projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}`. - * Only entries that belong to the specified entry types are published. - * - * Generated from protobuf field repeated string entry_types = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - private $entry_types; - /** - * Optional. The aspect types that you want to listen to. Depending on how - * the aspect is attached to the entry, in the format: - * `projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}`. - * - * Generated from protobuf field repeated string aspect_types = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - private $aspect_types; - /** - * Optional. The type of change that you want to listen to. - * If not specified, all changes are published. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.MetadataFeed.Filters.ChangeType change_types = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $change_types; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string[] $entry_types - * Optional. The entry types that you want to listen to, specified as - * relative resource names in the format - * `projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}`. - * Only entries that belong to the specified entry types are published. - * @type string[] $aspect_types - * Optional. The aspect types that you want to listen to. Depending on how - * the aspect is attached to the entry, in the format: - * `projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}`. - * @type int[] $change_types - * Optional. The type of change that you want to listen to. - * If not specified, all changes are published. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The entry types that you want to listen to, specified as - * relative resource names in the format - * `projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}`. - * Only entries that belong to the specified entry types are published. - * - * Generated from protobuf field repeated string entry_types = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return RepeatedField - */ - public function getEntryTypes() - { - return $this->entry_types; - } - - /** - * Optional. The entry types that you want to listen to, specified as - * relative resource names in the format - * `projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}`. - * Only entries that belong to the specified entry types are published. - * - * Generated from protobuf field repeated string entry_types = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string[] $var - * @return $this - */ - public function setEntryTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->entry_types = $arr; - - return $this; - } - - /** - * Optional. The aspect types that you want to listen to. Depending on how - * the aspect is attached to the entry, in the format: - * `projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}`. - * - * Generated from protobuf field repeated string aspect_types = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return RepeatedField - */ - public function getAspectTypes() - { - return $this->aspect_types; - } - - /** - * Optional. The aspect types that you want to listen to. Depending on how - * the aspect is attached to the entry, in the format: - * `projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}`. - * - * Generated from protobuf field repeated string aspect_types = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string[] $var - * @return $this - */ - public function setAspectTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->aspect_types = $arr; - - return $this; - } - - /** - * Optional. The type of change that you want to listen to. - * If not specified, all changes are published. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.MetadataFeed.Filters.ChangeType change_types = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getChangeTypes() - { - return $this->change_types; - } - - /** - * Optional. The type of change that you want to listen to. - * If not specified, all changes are published. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.MetadataFeed.Filters.ChangeType change_types = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param int[] $var - * @return $this - */ - public function setChangeTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Dataplex\V1\MetadataFeed\Filters\ChangeType::class); - $this->change_types = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataFeed/Filters/ChangeType.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataFeed/Filters/ChangeType.php deleted file mode 100644 index 2946567d4d8b..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataFeed/Filters/ChangeType.php +++ /dev/null @@ -1,68 +0,0 @@ -google.cloud.dataplex.v1.MetadataFeed.Filters.ChangeType - */ -class ChangeType -{ - /** - * Unspecified change type. Defaults to UNSPECIFIED. - * - * Generated from protobuf enum CHANGE_TYPE_UNSPECIFIED = 0; - */ - const CHANGE_TYPE_UNSPECIFIED = 0; - /** - * The change is a create event. - * - * Generated from protobuf enum CREATE = 1; - */ - const CREATE = 1; - /** - * The change is an update event. - * - * Generated from protobuf enum UPDATE = 2; - */ - const UPDATE = 2; - /** - * The change is a delete event. - * - * Generated from protobuf enum DELETE = 3; - */ - const DELETE = 3; - - private static $valueToName = [ - self::CHANGE_TYPE_UNSPECIFIED => 'CHANGE_TYPE_UNSPECIFIED', - self::CREATE => 'CREATE', - self::UPDATE => 'UPDATE', - self::DELETE => 'DELETE', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataFeed/Scope.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataFeed/Scope.php deleted file mode 100644 index 4fb47441685a..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataFeed/Scope.php +++ /dev/null @@ -1,172 +0,0 @@ -google.cloud.dataplex.v1.MetadataFeed.Scope - */ -class Scope extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Whether the metadata feed is at the organization-level. - * - If `true`, all changes happened to the entries in the same - * organization as the feed are published. - * - If `false`, you must specify a list of projects or a list of entry - * groups whose entries you want to listen to. - * The default is `false`. - * - * Generated from protobuf field bool organization_level = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $organization_level = false; - /** - * Optional. The projects whose entries you want to listen to. - * Must be in the same organization as the feed. - * Must be in the format: `projects/{project_id_or_number}`. - * - * Generated from protobuf field repeated string projects = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - private $projects; - /** - * Optional. The entry groups whose entries you want to listen to. - * Must be in the format: - * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`. - * - * Generated from protobuf field repeated string entry_groups = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - private $entry_groups; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $organization_level - * Optional. Whether the metadata feed is at the organization-level. - * - If `true`, all changes happened to the entries in the same - * organization as the feed are published. - * - If `false`, you must specify a list of projects or a list of entry - * groups whose entries you want to listen to. - * The default is `false`. - * @type string[] $projects - * Optional. The projects whose entries you want to listen to. - * Must be in the same organization as the feed. - * Must be in the format: `projects/{project_id_or_number}`. - * @type string[] $entry_groups - * Optional. The entry groups whose entries you want to listen to. - * Must be in the format: - * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Whether the metadata feed is at the organization-level. - * - If `true`, all changes happened to the entries in the same - * organization as the feed are published. - * - If `false`, you must specify a list of projects or a list of entry - * groups whose entries you want to listen to. - * The default is `false`. - * - * Generated from protobuf field bool organization_level = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getOrganizationLevel() - { - return $this->organization_level; - } - - /** - * Optional. Whether the metadata feed is at the organization-level. - * - If `true`, all changes happened to the entries in the same - * organization as the feed are published. - * - If `false`, you must specify a list of projects or a list of entry - * groups whose entries you want to listen to. - * The default is `false`. - * - * Generated from protobuf field bool organization_level = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setOrganizationLevel($var) - { - GPBUtil::checkBool($var); - $this->organization_level = $var; - - return $this; - } - - /** - * Optional. The projects whose entries you want to listen to. - * Must be in the same organization as the feed. - * Must be in the format: `projects/{project_id_or_number}`. - * - * Generated from protobuf field repeated string projects = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return RepeatedField - */ - public function getProjects() - { - return $this->projects; - } - - /** - * Optional. The projects whose entries you want to listen to. - * Must be in the same organization as the feed. - * Must be in the format: `projects/{project_id_or_number}`. - * - * Generated from protobuf field repeated string projects = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string[] $var - * @return $this - */ - public function setProjects($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->projects = $arr; - - return $this; - } - - /** - * Optional. The entry groups whose entries you want to listen to. - * Must be in the format: - * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`. - * - * Generated from protobuf field repeated string entry_groups = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return RepeatedField - */ - public function getEntryGroups() - { - return $this->entry_groups; - } - - /** - * Optional. The entry groups whose entries you want to listen to. - * Must be in the format: - * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`. - * - * Generated from protobuf field repeated string entry_groups = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string[] $var - * @return $this - */ - public function setEntryGroups($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->entry_groups = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob.php deleted file mode 100644 index 23b571952f4e..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob.php +++ /dev/null @@ -1,467 +0,0 @@ -google.cloud.dataplex.v1.MetadataJob - */ -class MetadataJob extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Identifier. The name of the resource that the configuration is - * applied to, in the format - * `projects/{project_number}/locations/{location_id}/metadataJobs/{metadata_job_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. A system-generated, globally unique ID for the metadata job. - * If the metadata job is deleted and then re-created with the same name, this - * ID is different. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - */ - protected $uid = ''; - /** - * Output only. The time when the metadata job was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time when the metadata job was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Optional. User-defined labels. - * - * Generated from protobuf field map labels = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $labels; - /** - * Required. Metadata job type. - * - * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.Type type = 6 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $type = 0; - /** - * Output only. Metadata job status. - * - * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.Status status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $status = null; - protected $spec; - protected $result; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Identifier. The name of the resource that the configuration is - * applied to, in the format - * `projects/{project_number}/locations/{location_id}/metadataJobs/{metadata_job_id}`. - * @type string $uid - * Output only. A system-generated, globally unique ID for the metadata job. - * If the metadata job is deleted and then re-created with the same name, this - * ID is different. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time when the metadata job was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time when the metadata job was updated. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Optional. User-defined labels. - * @type int $type - * Required. Metadata job type. - * @type \Google\Cloud\Dataplex\V1\MetadataJob\ImportJobSpec $import_spec - * Import job specification. - * @type \Google\Cloud\Dataplex\V1\MetadataJob\ExportJobSpec $export_spec - * Export job specification. - * @type \Google\Cloud\Dataplex\V1\MetadataJob\ImportJobResult $import_result - * Output only. Import job result. - * @type \Google\Cloud\Dataplex\V1\MetadataJob\ExportJobResult $export_result - * Output only. Export job result. - * @type \Google\Cloud\Dataplex\V1\MetadataJob\Status $status - * Output only. Metadata job status. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Identifier. The name of the resource that the configuration is - * applied to, in the format - * `projects/{project_number}/locations/{location_id}/metadataJobs/{metadata_job_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Identifier. The name of the resource that the configuration is - * applied to, in the format - * `projects/{project_number}/locations/{location_id}/metadataJobs/{metadata_job_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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. A system-generated, globally unique ID for the metadata job. - * If the metadata job is deleted and then re-created with the same name, this - * ID is different. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. A system-generated, globally unique ID for the metadata job. - * If the metadata job is deleted and then re-created with the same name, this - * ID is different. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Output only. The time when the metadata job was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The time when the metadata job was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The time when the metadata job was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The time when the metadata job was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Optional. User-defined labels. - * - * Generated from protobuf field map labels = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Optional. User-defined labels. - * - * Generated from protobuf field map labels = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Required. Metadata job type. - * - * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.Type type = 6 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Required. Metadata job type. - * - * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.Type type = 6 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\MetadataJob\Type::class); - $this->type = $var; - - return $this; - } - - /** - * Import job specification. - * - * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.ImportJobSpec import_spec = 100; - * @return \Google\Cloud\Dataplex\V1\MetadataJob\ImportJobSpec|null - */ - public function getImportSpec() - { - return $this->readOneof(100); - } - - public function hasImportSpec() - { - return $this->hasOneof(100); - } - - /** - * Import job specification. - * - * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.ImportJobSpec import_spec = 100; - * @param \Google\Cloud\Dataplex\V1\MetadataJob\ImportJobSpec $var - * @return $this - */ - public function setImportSpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\MetadataJob\ImportJobSpec::class); - $this->writeOneof(100, $var); - - return $this; - } - - /** - * Export job specification. - * - * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.ExportJobSpec export_spec = 101; - * @return \Google\Cloud\Dataplex\V1\MetadataJob\ExportJobSpec|null - */ - public function getExportSpec() - { - return $this->readOneof(101); - } - - public function hasExportSpec() - { - return $this->hasOneof(101); - } - - /** - * Export job specification. - * - * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.ExportJobSpec export_spec = 101; - * @param \Google\Cloud\Dataplex\V1\MetadataJob\ExportJobSpec $var - * @return $this - */ - public function setExportSpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\MetadataJob\ExportJobSpec::class); - $this->writeOneof(101, $var); - - return $this; - } - - /** - * Output only. Import job result. - * - * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.ImportJobResult import_result = 200 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataplex\V1\MetadataJob\ImportJobResult|null - */ - public function getImportResult() - { - return $this->readOneof(200); - } - - public function hasImportResult() - { - return $this->hasOneof(200); - } - - /** - * Output only. Import job result. - * - * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.ImportJobResult import_result = 200 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\MetadataJob\ImportJobResult $var - * @return $this - */ - public function setImportResult($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\MetadataJob\ImportJobResult::class); - $this->writeOneof(200, $var); - - return $this; - } - - /** - * Output only. Export job result. - * - * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.ExportJobResult export_result = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataplex\V1\MetadataJob\ExportJobResult|null - */ - public function getExportResult() - { - return $this->readOneof(201); - } - - public function hasExportResult() - { - return $this->hasOneof(201); - } - - /** - * Output only. Export job result. - * - * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.ExportJobResult export_result = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\MetadataJob\ExportJobResult $var - * @return $this - */ - public function setExportResult($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\MetadataJob\ExportJobResult::class); - $this->writeOneof(201, $var); - - return $this; - } - - /** - * Output only. Metadata job status. - * - * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.Status status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataplex\V1\MetadataJob\Status|null - */ - public function getStatus() - { - return $this->status; - } - - public function hasStatus() - { - return isset($this->status); - } - - public function clearStatus() - { - unset($this->status); - } - - /** - * Output only. Metadata job status. - * - * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.Status status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\MetadataJob\Status $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\MetadataJob\Status::class); - $this->status = $var; - - return $this; - } - - /** - * @return string - */ - public function getSpec() - { - return $this->whichOneof("spec"); - } - - /** - * @return string - */ - public function getResult() - { - return $this->whichOneof("result"); - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ExportJobResult.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ExportJobResult.php deleted file mode 100644 index fcbe368ce23d..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ExportJobResult.php +++ /dev/null @@ -1,103 +0,0 @@ -google.cloud.dataplex.v1.MetadataJob.ExportJobResult - */ -class ExportJobResult extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The number of entries that were exported. - * - * Generated from protobuf field int64 exported_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $exported_entries = 0; - /** - * Output only. The error message if the metadata export job failed. - * - * Generated from protobuf field string error_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $error_message = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $exported_entries - * Output only. The number of entries that were exported. - * @type string $error_message - * Output only. The error message if the metadata export job failed. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The number of entries that were exported. - * - * Generated from protobuf field int64 exported_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getExportedEntries() - { - return $this->exported_entries; - } - - /** - * Output only. The number of entries that were exported. - * - * Generated from protobuf field int64 exported_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setExportedEntries($var) - { - GPBUtil::checkInt64($var); - $this->exported_entries = $var; - - return $this; - } - - /** - * Output only. The error message if the metadata export job failed. - * - * Generated from protobuf field string error_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getErrorMessage() - { - return $this->error_message; - } - - /** - * Output only. The error message if the metadata export job failed. - * - * Generated from protobuf field string error_message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setErrorMessage($var) - { - GPBUtil::checkString($var, True); - $this->error_message = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ExportJobSpec.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ExportJobSpec.php deleted file mode 100644 index e33f319c362b..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ExportJobSpec.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.dataplex.v1.MetadataJob.ExportJobSpec - */ -class ExportJobSpec extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The scope of the export job. - * - * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.ExportJobSpec.ExportJobScope scope = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $scope = null; - /** - * Required. The root path of the Cloud Storage bucket to export the - * metadata to, in the format `gs://{bucket}/`. You can optionally specify a - * custom prefix after the bucket name, in the format - * `gs://{bucket}/{prefix}/`. The maximum length of the custom prefix is 128 - * characters. Dataplex Universal Catalog constructs the object path for the - * exported files by using the bucket name and prefix that you provide, - * followed by a system-generated path. - * The bucket must be in the same VPC Service Controls perimeter as the job. - * - * Generated from protobuf field string output_path = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $output_path = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\MetadataJob\ExportJobSpec\ExportJobScope $scope - * Required. The scope of the export job. - * @type string $output_path - * Required. The root path of the Cloud Storage bucket to export the - * metadata to, in the format `gs://{bucket}/`. You can optionally specify a - * custom prefix after the bucket name, in the format - * `gs://{bucket}/{prefix}/`. The maximum length of the custom prefix is 128 - * characters. Dataplex Universal Catalog constructs the object path for the - * exported files by using the bucket name and prefix that you provide, - * followed by a system-generated path. - * The bucket must be in the same VPC Service Controls perimeter as the job. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Required. The scope of the export job. - * - * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.ExportJobSpec.ExportJobScope scope = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataplex\V1\MetadataJob\ExportJobSpec\ExportJobScope|null - */ - public function getScope() - { - return $this->scope; - } - - public function hasScope() - { - return isset($this->scope); - } - - public function clearScope() - { - unset($this->scope); - } - - /** - * Required. The scope of the export job. - * - * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.ExportJobSpec.ExportJobScope scope = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\MetadataJob\ExportJobSpec\ExportJobScope $var - * @return $this - */ - public function setScope($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\MetadataJob\ExportJobSpec\ExportJobScope::class); - $this->scope = $var; - - return $this; - } - - /** - * Required. The root path of the Cloud Storage bucket to export the - * metadata to, in the format `gs://{bucket}/`. You can optionally specify a - * custom prefix after the bucket name, in the format - * `gs://{bucket}/{prefix}/`. The maximum length of the custom prefix is 128 - * characters. Dataplex Universal Catalog constructs the object path for the - * exported files by using the bucket name and prefix that you provide, - * followed by a system-generated path. - * The bucket must be in the same VPC Service Controls perimeter as the job. - * - * Generated from protobuf field string output_path = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getOutputPath() - { - return $this->output_path; - } - - /** - * Required. The root path of the Cloud Storage bucket to export the - * metadata to, in the format `gs://{bucket}/`. You can optionally specify a - * custom prefix after the bucket name, in the format - * `gs://{bucket}/{prefix}/`. The maximum length of the custom prefix is 128 - * characters. Dataplex Universal Catalog constructs the object path for the - * exported files by using the bucket name and prefix that you provide, - * followed by a system-generated path. - * The bucket must be in the same VPC Service Controls perimeter as the job. - * - * Generated from protobuf field string output_path = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setOutputPath($var) - { - GPBUtil::checkString($var, True); - $this->output_path = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ExportJobSpec/ExportJobScope.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ExportJobSpec/ExportJobScope.php deleted file mode 100644 index 4cfffa6d7fca..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ExportJobSpec/ExportJobScope.php +++ /dev/null @@ -1,323 +0,0 @@ -google.cloud.dataplex.v1.MetadataJob.ExportJobSpec.ExportJobScope - */ -class ExportJobScope extends \Google\Protobuf\Internal\Message -{ - /** - * Whether the metadata export job is an organization-level export job. - * - If `true`, the job exports the entries from the same organization and - * VPC Service Controls perimeter as the job. The project that the job - * belongs to determines the VPC Service Controls perimeter. If you set - * the job scope to be at the organization level, then don't provide a - * list of projects or entry groups. - * - If `false`, you must specify a list of projects or a list of entry - * groups whose entries you want to export. - * The default is `false`. - * - * Generated from protobuf field bool organization_level = 1; - */ - protected $organization_level = false; - /** - * The projects whose metadata you want to export, in the format - * `projects/{project_id_or_number}`. Only the entries from - * the specified projects are exported. - * The projects must be in the same organization and VPC Service Controls - * perimeter as the job. - * If you set the job scope to be a list of projects, then set the - * organization-level export flag to false and don't provide a list of - * entry groups. - * - * Generated from protobuf field repeated string projects = 2 [(.google.api.resource_reference) = { - */ - private $projects; - /** - * The entry groups whose metadata you want to export, in the format - * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`. - * Only the entries in the specified entry groups are exported. - * The entry groups must be in the same location and the same VPC Service - * Controls perimeter as the job. - * If you set the job scope to be a list of entry groups, then set the - * organization-level export flag to false and don't provide a list of - * projects. - * - * Generated from protobuf field repeated string entry_groups = 3 [(.google.api.resource_reference) = { - */ - private $entry_groups; - /** - * The entry types that are in scope for the export job, specified as - * relative resource names in the format - * `projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}`. - * Only entries that belong to the specified entry types are affected by - * the job. - * - * Generated from protobuf field repeated string entry_types = 4 [(.google.api.resource_reference) = { - */ - private $entry_types; - /** - * The aspect types that are in scope for the export job, specified as - * relative resource names in the format - * `projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}`. - * Only aspects that belong to the specified aspect types are affected by - * the job. - * - * Generated from protobuf field repeated string aspect_types = 5 [(.google.api.resource_reference) = { - */ - private $aspect_types; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $organization_level - * Whether the metadata export job is an organization-level export job. - * - If `true`, the job exports the entries from the same organization and - * VPC Service Controls perimeter as the job. The project that the job - * belongs to determines the VPC Service Controls perimeter. If you set - * the job scope to be at the organization level, then don't provide a - * list of projects or entry groups. - * - If `false`, you must specify a list of projects or a list of entry - * groups whose entries you want to export. - * The default is `false`. - * @type string[] $projects - * The projects whose metadata you want to export, in the format - * `projects/{project_id_or_number}`. Only the entries from - * the specified projects are exported. - * The projects must be in the same organization and VPC Service Controls - * perimeter as the job. - * If you set the job scope to be a list of projects, then set the - * organization-level export flag to false and don't provide a list of - * entry groups. - * @type string[] $entry_groups - * The entry groups whose metadata you want to export, in the format - * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`. - * Only the entries in the specified entry groups are exported. - * The entry groups must be in the same location and the same VPC Service - * Controls perimeter as the job. - * If you set the job scope to be a list of entry groups, then set the - * organization-level export flag to false and don't provide a list of - * projects. - * @type string[] $entry_types - * The entry types that are in scope for the export job, specified as - * relative resource names in the format - * `projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}`. - * Only entries that belong to the specified entry types are affected by - * the job. - * @type string[] $aspect_types - * The aspect types that are in scope for the export job, specified as - * relative resource names in the format - * `projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}`. - * Only aspects that belong to the specified aspect types are affected by - * the job. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Whether the metadata export job is an organization-level export job. - * - If `true`, the job exports the entries from the same organization and - * VPC Service Controls perimeter as the job. The project that the job - * belongs to determines the VPC Service Controls perimeter. If you set - * the job scope to be at the organization level, then don't provide a - * list of projects or entry groups. - * - If `false`, you must specify a list of projects or a list of entry - * groups whose entries you want to export. - * The default is `false`. - * - * Generated from protobuf field bool organization_level = 1; - * @return bool - */ - public function getOrganizationLevel() - { - return $this->organization_level; - } - - /** - * Whether the metadata export job is an organization-level export job. - * - If `true`, the job exports the entries from the same organization and - * VPC Service Controls perimeter as the job. The project that the job - * belongs to determines the VPC Service Controls perimeter. If you set - * the job scope to be at the organization level, then don't provide a - * list of projects or entry groups. - * - If `false`, you must specify a list of projects or a list of entry - * groups whose entries you want to export. - * The default is `false`. - * - * Generated from protobuf field bool organization_level = 1; - * @param bool $var - * @return $this - */ - public function setOrganizationLevel($var) - { - GPBUtil::checkBool($var); - $this->organization_level = $var; - - return $this; - } - - /** - * The projects whose metadata you want to export, in the format - * `projects/{project_id_or_number}`. Only the entries from - * the specified projects are exported. - * The projects must be in the same organization and VPC Service Controls - * perimeter as the job. - * If you set the job scope to be a list of projects, then set the - * organization-level export flag to false and don't provide a list of - * entry groups. - * - * Generated from protobuf field repeated string projects = 2 [(.google.api.resource_reference) = { - * @return RepeatedField - */ - public function getProjects() - { - return $this->projects; - } - - /** - * The projects whose metadata you want to export, in the format - * `projects/{project_id_or_number}`. Only the entries from - * the specified projects are exported. - * The projects must be in the same organization and VPC Service Controls - * perimeter as the job. - * If you set the job scope to be a list of projects, then set the - * organization-level export flag to false and don't provide a list of - * entry groups. - * - * Generated from protobuf field repeated string projects = 2 [(.google.api.resource_reference) = { - * @param string[] $var - * @return $this - */ - public function setProjects($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->projects = $arr; - - return $this; - } - - /** - * The entry groups whose metadata you want to export, in the format - * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`. - * Only the entries in the specified entry groups are exported. - * The entry groups must be in the same location and the same VPC Service - * Controls perimeter as the job. - * If you set the job scope to be a list of entry groups, then set the - * organization-level export flag to false and don't provide a list of - * projects. - * - * Generated from protobuf field repeated string entry_groups = 3 [(.google.api.resource_reference) = { - * @return RepeatedField - */ - public function getEntryGroups() - { - return $this->entry_groups; - } - - /** - * The entry groups whose metadata you want to export, in the format - * `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`. - * Only the entries in the specified entry groups are exported. - * The entry groups must be in the same location and the same VPC Service - * Controls perimeter as the job. - * If you set the job scope to be a list of entry groups, then set the - * organization-level export flag to false and don't provide a list of - * projects. - * - * Generated from protobuf field repeated string entry_groups = 3 [(.google.api.resource_reference) = { - * @param string[] $var - * @return $this - */ - public function setEntryGroups($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->entry_groups = $arr; - - return $this; - } - - /** - * The entry types that are in scope for the export job, specified as - * relative resource names in the format - * `projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}`. - * Only entries that belong to the specified entry types are affected by - * the job. - * - * Generated from protobuf field repeated string entry_types = 4 [(.google.api.resource_reference) = { - * @return RepeatedField - */ - public function getEntryTypes() - { - return $this->entry_types; - } - - /** - * The entry types that are in scope for the export job, specified as - * relative resource names in the format - * `projects/{project_id_or_number}/locations/{location}/entryTypes/{entry_type_id}`. - * Only entries that belong to the specified entry types are affected by - * the job. - * - * Generated from protobuf field repeated string entry_types = 4 [(.google.api.resource_reference) = { - * @param string[] $var - * @return $this - */ - public function setEntryTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->entry_types = $arr; - - return $this; - } - - /** - * The aspect types that are in scope for the export job, specified as - * relative resource names in the format - * `projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}`. - * Only aspects that belong to the specified aspect types are affected by - * the job. - * - * Generated from protobuf field repeated string aspect_types = 5 [(.google.api.resource_reference) = { - * @return RepeatedField - */ - public function getAspectTypes() - { - return $this->aspect_types; - } - - /** - * The aspect types that are in scope for the export job, specified as - * relative resource names in the format - * `projects/{project_id_or_number}/locations/{location}/aspectTypes/{aspect_type_id}`. - * Only aspects that belong to the specified aspect types are affected by - * the job. - * - * Generated from protobuf field repeated string aspect_types = 5 [(.google.api.resource_reference) = { - * @param string[] $var - * @return $this - */ - public function setAspectTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->aspect_types = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ImportJobResult.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ImportJobResult.php deleted file mode 100644 index 1b0b9fdcc35d..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ImportJobResult.php +++ /dev/null @@ -1,357 +0,0 @@ -google.cloud.dataplex.v1.MetadataJob.ImportJobResult - */ -class ImportJobResult extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The total number of entries that were deleted. - * - * Generated from protobuf field int64 deleted_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $deleted_entries = 0; - /** - * Output only. The total number of entries that were updated. - * - * Generated from protobuf field int64 updated_entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $updated_entries = 0; - /** - * Output only. The total number of entries that were created. - * - * Generated from protobuf field int64 created_entries = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $created_entries = 0; - /** - * Output only. The total number of entries that were unchanged. - * - * Generated from protobuf field int64 unchanged_entries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $unchanged_entries = 0; - /** - * Output only. The total number of entries that were recreated. - * - * Generated from protobuf field int64 recreated_entries = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $recreated_entries = 0; - /** - * Output only. The time when the status was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Output only. The total number of entry links that were successfully - * deleted. - * - * Generated from protobuf field int64 deleted_entry_links = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $deleted_entry_links = 0; - /** - * Output only. The total number of entry links that were successfully - * created. - * - * Generated from protobuf field int64 created_entry_links = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $created_entry_links = 0; - /** - * Output only. The total number of entry links that were left unchanged. - * - * Generated from protobuf field int64 unchanged_entry_links = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $unchanged_entry_links = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $deleted_entries - * Output only. The total number of entries that were deleted. - * @type int|string $updated_entries - * Output only. The total number of entries that were updated. - * @type int|string $created_entries - * Output only. The total number of entries that were created. - * @type int|string $unchanged_entries - * Output only. The total number of entries that were unchanged. - * @type int|string $recreated_entries - * Output only. The total number of entries that were recreated. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time when the status was updated. - * @type int|string $deleted_entry_links - * Output only. The total number of entry links that were successfully - * deleted. - * @type int|string $created_entry_links - * Output only. The total number of entry links that were successfully - * created. - * @type int|string $unchanged_entry_links - * Output only. The total number of entry links that were left unchanged. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The total number of entries that were deleted. - * - * Generated from protobuf field int64 deleted_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getDeletedEntries() - { - return $this->deleted_entries; - } - - /** - * Output only. The total number of entries that were deleted. - * - * Generated from protobuf field int64 deleted_entries = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setDeletedEntries($var) - { - GPBUtil::checkInt64($var); - $this->deleted_entries = $var; - - return $this; - } - - /** - * Output only. The total number of entries that were updated. - * - * Generated from protobuf field int64 updated_entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getUpdatedEntries() - { - return $this->updated_entries; - } - - /** - * Output only. The total number of entries that were updated. - * - * Generated from protobuf field int64 updated_entries = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setUpdatedEntries($var) - { - GPBUtil::checkInt64($var); - $this->updated_entries = $var; - - return $this; - } - - /** - * Output only. The total number of entries that were created. - * - * Generated from protobuf field int64 created_entries = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getCreatedEntries() - { - return $this->created_entries; - } - - /** - * Output only. The total number of entries that were created. - * - * Generated from protobuf field int64 created_entries = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setCreatedEntries($var) - { - GPBUtil::checkInt64($var); - $this->created_entries = $var; - - return $this; - } - - /** - * Output only. The total number of entries that were unchanged. - * - * Generated from protobuf field int64 unchanged_entries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getUnchangedEntries() - { - return $this->unchanged_entries; - } - - /** - * Output only. The total number of entries that were unchanged. - * - * Generated from protobuf field int64 unchanged_entries = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setUnchangedEntries($var) - { - GPBUtil::checkInt64($var); - $this->unchanged_entries = $var; - - return $this; - } - - /** - * Output only. The total number of entries that were recreated. - * - * Generated from protobuf field int64 recreated_entries = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getRecreatedEntries() - { - return $this->recreated_entries; - } - - /** - * Output only. The total number of entries that were recreated. - * - * Generated from protobuf field int64 recreated_entries = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setRecreatedEntries($var) - { - GPBUtil::checkInt64($var); - $this->recreated_entries = $var; - - return $this; - } - - /** - * Output only. The time when the status was updated. - * - * 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 time when the status was updated. - * - * 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; - } - - /** - * Output only. The total number of entry links that were successfully - * deleted. - * - * Generated from protobuf field int64 deleted_entry_links = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getDeletedEntryLinks() - { - return $this->deleted_entry_links; - } - - /** - * Output only. The total number of entry links that were successfully - * deleted. - * - * Generated from protobuf field int64 deleted_entry_links = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setDeletedEntryLinks($var) - { - GPBUtil::checkInt64($var); - $this->deleted_entry_links = $var; - - return $this; - } - - /** - * Output only. The total number of entry links that were successfully - * created. - * - * Generated from protobuf field int64 created_entry_links = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getCreatedEntryLinks() - { - return $this->created_entry_links; - } - - /** - * Output only. The total number of entry links that were successfully - * created. - * - * Generated from protobuf field int64 created_entry_links = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setCreatedEntryLinks($var) - { - GPBUtil::checkInt64($var); - $this->created_entry_links = $var; - - return $this; - } - - /** - * Output only. The total number of entry links that were left unchanged. - * - * Generated from protobuf field int64 unchanged_entry_links = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getUnchangedEntryLinks() - { - return $this->unchanged_entry_links; - } - - /** - * Output only. The total number of entry links that were left unchanged. - * - * Generated from protobuf field int64 unchanged_entry_links = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setUnchangedEntryLinks($var) - { - GPBUtil::checkInt64($var); - $this->unchanged_entry_links = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ImportJobSpec.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ImportJobSpec.php deleted file mode 100644 index 73826c21e7e8..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ImportJobSpec.php +++ /dev/null @@ -1,348 +0,0 @@ -google.cloud.dataplex.v1.MetadataJob.ImportJobSpec - */ -class ImportJobSpec extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The URI of a Cloud Storage bucket or folder (beginning with - * `gs://` and ending with `/`) that contains the metadata import files for - * this job. - * A metadata import file defines the values to set for each of the entries - * and aspects in a metadata import job. For more information about how to - * create a metadata import file and the file requirements, see [Metadata - * import - * file](https://cloud.google.com/dataplex/docs/import-metadata#metadata-import-file). - * You can provide multiple metadata import files in the same metadata job. - * The bucket or folder must contain at least one metadata import file, in - * JSON Lines format (either `.json` or `.jsonl` file extension). - * In `FULL` entry sync mode, don't save the metadata import file in a - * folder named `SOURCE_STORAGE_URI/deletions/`. - * **Caution**: If the metadata import file contains no data, all entries - * and aspects that belong to the job's scope are deleted. - * - * Generated from protobuf field string source_storage_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $source_storage_uri = ''; - /** - * Optional. The time when the process that created the metadata import - * files began. - * - * Generated from protobuf field .google.protobuf.Timestamp source_create_time = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $source_create_time = null; - /** - * Required. A boundary on the scope of impact that the metadata import job - * can have. - * - * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.ImportJobScope scope = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $scope = null; - /** - * Required. The sync mode for entries. - * - * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.SyncMode entry_sync_mode = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $entry_sync_mode = 0; - /** - * Required. The sync mode for aspects. - * - * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.SyncMode aspect_sync_mode = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $aspect_sync_mode = 0; - /** - * Optional. The level of logs to write to Cloud Logging for this job. - * Debug-level logs provide highly-detailed information for - * troubleshooting, but their increased verbosity could incur [additional - * costs](https://cloud.google.com/stackdriver/pricing) that might not be - * merited for all jobs. - * If unspecified, defaults to `INFO`. - * - * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.LogLevel log_level = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $log_level = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $source_storage_uri - * Optional. The URI of a Cloud Storage bucket or folder (beginning with - * `gs://` and ending with `/`) that contains the metadata import files for - * this job. - * A metadata import file defines the values to set for each of the entries - * and aspects in a metadata import job. For more information about how to - * create a metadata import file and the file requirements, see [Metadata - * import - * file](https://cloud.google.com/dataplex/docs/import-metadata#metadata-import-file). - * You can provide multiple metadata import files in the same metadata job. - * The bucket or folder must contain at least one metadata import file, in - * JSON Lines format (either `.json` or `.jsonl` file extension). - * In `FULL` entry sync mode, don't save the metadata import file in a - * folder named `SOURCE_STORAGE_URI/deletions/`. - * **Caution**: If the metadata import file contains no data, all entries - * and aspects that belong to the job's scope are deleted. - * @type \Google\Protobuf\Timestamp $source_create_time - * Optional. The time when the process that created the metadata import - * files began. - * @type \Google\Cloud\Dataplex\V1\MetadataJob\ImportJobSpec\ImportJobScope $scope - * Required. A boundary on the scope of impact that the metadata import job - * can have. - * @type int $entry_sync_mode - * Required. The sync mode for entries. - * @type int $aspect_sync_mode - * Required. The sync mode for aspects. - * @type int $log_level - * Optional. The level of logs to write to Cloud Logging for this job. - * Debug-level logs provide highly-detailed information for - * troubleshooting, but their increased verbosity could incur [additional - * costs](https://cloud.google.com/stackdriver/pricing) that might not be - * merited for all jobs. - * If unspecified, defaults to `INFO`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The URI of a Cloud Storage bucket or folder (beginning with - * `gs://` and ending with `/`) that contains the metadata import files for - * this job. - * A metadata import file defines the values to set for each of the entries - * and aspects in a metadata import job. For more information about how to - * create a metadata import file and the file requirements, see [Metadata - * import - * file](https://cloud.google.com/dataplex/docs/import-metadata#metadata-import-file). - * You can provide multiple metadata import files in the same metadata job. - * The bucket or folder must contain at least one metadata import file, in - * JSON Lines format (either `.json` or `.jsonl` file extension). - * In `FULL` entry sync mode, don't save the metadata import file in a - * folder named `SOURCE_STORAGE_URI/deletions/`. - * **Caution**: If the metadata import file contains no data, all entries - * and aspects that belong to the job's scope are deleted. - * - * Generated from protobuf field string source_storage_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getSourceStorageUri() - { - return $this->source_storage_uri; - } - - /** - * Optional. The URI of a Cloud Storage bucket or folder (beginning with - * `gs://` and ending with `/`) that contains the metadata import files for - * this job. - * A metadata import file defines the values to set for each of the entries - * and aspects in a metadata import job. For more information about how to - * create a metadata import file and the file requirements, see [Metadata - * import - * file](https://cloud.google.com/dataplex/docs/import-metadata#metadata-import-file). - * You can provide multiple metadata import files in the same metadata job. - * The bucket or folder must contain at least one metadata import file, in - * JSON Lines format (either `.json` or `.jsonl` file extension). - * In `FULL` entry sync mode, don't save the metadata import file in a - * folder named `SOURCE_STORAGE_URI/deletions/`. - * **Caution**: If the metadata import file contains no data, all entries - * and aspects that belong to the job's scope are deleted. - * - * Generated from protobuf field string source_storage_uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setSourceStorageUri($var) - { - GPBUtil::checkString($var, True); - $this->source_storage_uri = $var; - - return $this; - } - - /** - * Optional. The time when the process that created the metadata import - * files began. - * - * Generated from protobuf field .google.protobuf.Timestamp source_create_time = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getSourceCreateTime() - { - return $this->source_create_time; - } - - public function hasSourceCreateTime() - { - return isset($this->source_create_time); - } - - public function clearSourceCreateTime() - { - unset($this->source_create_time); - } - - /** - * Optional. The time when the process that created the metadata import - * files began. - * - * Generated from protobuf field .google.protobuf.Timestamp source_create_time = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setSourceCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->source_create_time = $var; - - return $this; - } - - /** - * Required. A boundary on the scope of impact that the metadata import job - * can have. - * - * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.ImportJobScope scope = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataplex\V1\MetadataJob\ImportJobSpec\ImportJobScope|null - */ - public function getScope() - { - return $this->scope; - } - - public function hasScope() - { - return isset($this->scope); - } - - public function clearScope() - { - unset($this->scope); - } - - /** - * Required. A boundary on the scope of impact that the metadata import job - * can have. - * - * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.ImportJobScope scope = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\MetadataJob\ImportJobSpec\ImportJobScope $var - * @return $this - */ - public function setScope($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\MetadataJob\ImportJobSpec\ImportJobScope::class); - $this->scope = $var; - - return $this; - } - - /** - * Required. The sync mode for entries. - * - * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.SyncMode entry_sync_mode = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getEntrySyncMode() - { - return $this->entry_sync_mode; - } - - /** - * Required. The sync mode for entries. - * - * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.SyncMode entry_sync_mode = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setEntrySyncMode($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\MetadataJob\ImportJobSpec\SyncMode::class); - $this->entry_sync_mode = $var; - - return $this; - } - - /** - * Required. The sync mode for aspects. - * - * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.SyncMode aspect_sync_mode = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getAspectSyncMode() - { - return $this->aspect_sync_mode; - } - - /** - * Required. The sync mode for aspects. - * - * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.SyncMode aspect_sync_mode = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setAspectSyncMode($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\MetadataJob\ImportJobSpec\SyncMode::class); - $this->aspect_sync_mode = $var; - - return $this; - } - - /** - * Optional. The level of logs to write to Cloud Logging for this job. - * Debug-level logs provide highly-detailed information for - * troubleshooting, but their increased verbosity could incur [additional - * costs](https://cloud.google.com/stackdriver/pricing) that might not be - * merited for all jobs. - * If unspecified, defaults to `INFO`. - * - * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.LogLevel log_level = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getLogLevel() - { - return $this->log_level; - } - - /** - * Optional. The level of logs to write to Cloud Logging for this job. - * Debug-level logs provide highly-detailed information for - * troubleshooting, but their increased verbosity could incur [additional - * costs](https://cloud.google.com/stackdriver/pricing) that might not be - * merited for all jobs. - * If unspecified, defaults to `INFO`. - * - * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.LogLevel log_level = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setLogLevel($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\MetadataJob\ImportJobSpec\LogLevel::class); - $this->log_level = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ImportJobSpec/ImportJobScope.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ImportJobSpec/ImportJobScope.php deleted file mode 100644 index 9a5c74a6414c..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ImportJobSpec/ImportJobScope.php +++ /dev/null @@ -1,417 +0,0 @@ -google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.ImportJobScope - */ -class ImportJobScope extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The entry groups that are in scope for the import job, - * specified as relative resource names in the format - * `projects/{project_number_or_id}/locations/{location_id}/entryGroups/{entry_group_id}`. - * Only entries and aspects that belong to the specified entry groups are - * affected by the job. - * The entry groups and the job must be in the same location. - * - * Generated from protobuf field repeated string entry_groups = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - private $entry_groups; - /** - * Required. The entry types that are in scope for the import job, - * specified as relative resource names in the format - * `projects/{project_number_or_id}/locations/{location_id}/entryTypes/{entry_type_id}`. - * The job modifies only the entries and aspects that belong to these - * entry types. - * If the metadata import file attempts to modify an entry whose type - * isn't included in this list, the import job is halted before modifying - * any entries or aspects. - * The location of an entry type must either match the location of the - * job, or the entry type must be global. - * - * Generated from protobuf field repeated string entry_types = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - private $entry_types; - /** - * Optional. The aspect types that are in scope for the import job, - * specified as relative resource names in the format - * `projects/{project_number_or_id}/locations/{location_id}/aspectTypes/{aspect_type_id}`. - * The job modifies only the aspects that belong to these aspect types. - * This field is required when creating an aspect-only import job. - * If the metadata import file attempts to modify an aspect whose type - * isn't included in this list, the import job is halted before modifying - * any entries or aspects. - * The location of an aspect type must either match the location of the - * job, or the aspect type must be global. - * - * Generated from protobuf field repeated string aspect_types = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - private $aspect_types; - /** - * Optional. The glossaries that are in scope for the import job, - * specified as relative resource names in the format - * `projects/{project_number_or_id}/locations/{location_id}/glossaries/{glossary_id}`. - * While importing Business Glossary entries, the user must - * provide glossaries. While importing entries, the user does not have to - * provide glossaries. If the metadata import file attempts to modify - * Business Glossary entries whose glossary isn't included in this list, - * the import job will skip those entries. - * The location of a glossary must either match the location of the - * job, or the glossary must be global. - * - * Generated from protobuf field repeated string glossaries = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - private $glossaries; - /** - * Optional. The entry link types that are in scope for the import job, - * specified as relative resource names in the format - * `projects/{project_number_or_id}/locations/{location_id}/entryLinkTypes/{entry_link_type_id}`. - * The job modifies only the entryLinks that belong to these entry link - * types. - * If the metadata import file attempts to create or delete an entry link - * whose entry link type isn't included in this list, the import job will - * skip those entry links. - * - * Generated from protobuf field repeated string entry_link_types = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $entry_link_types; - /** - * Optional. Defines the scope of entries that can be referenced in the - * entry links. - * Currently, projects are supported as valid scopes. - * Format: `projects/{project_number_or_id}` - * If the metadata import file attempts to create an entry link - * which references an entry that is not in the scope, the import job will - * skip that entry link. - * - * Generated from protobuf field repeated string referenced_entry_scopes = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $referenced_entry_scopes; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string[] $entry_groups - * Required. The entry groups that are in scope for the import job, - * specified as relative resource names in the format - * `projects/{project_number_or_id}/locations/{location_id}/entryGroups/{entry_group_id}`. - * Only entries and aspects that belong to the specified entry groups are - * affected by the job. - * The entry groups and the job must be in the same location. - * @type string[] $entry_types - * Required. The entry types that are in scope for the import job, - * specified as relative resource names in the format - * `projects/{project_number_or_id}/locations/{location_id}/entryTypes/{entry_type_id}`. - * The job modifies only the entries and aspects that belong to these - * entry types. - * If the metadata import file attempts to modify an entry whose type - * isn't included in this list, the import job is halted before modifying - * any entries or aspects. - * The location of an entry type must either match the location of the - * job, or the entry type must be global. - * @type string[] $aspect_types - * Optional. The aspect types that are in scope for the import job, - * specified as relative resource names in the format - * `projects/{project_number_or_id}/locations/{location_id}/aspectTypes/{aspect_type_id}`. - * The job modifies only the aspects that belong to these aspect types. - * This field is required when creating an aspect-only import job. - * If the metadata import file attempts to modify an aspect whose type - * isn't included in this list, the import job is halted before modifying - * any entries or aspects. - * The location of an aspect type must either match the location of the - * job, or the aspect type must be global. - * @type string[] $glossaries - * Optional. The glossaries that are in scope for the import job, - * specified as relative resource names in the format - * `projects/{project_number_or_id}/locations/{location_id}/glossaries/{glossary_id}`. - * While importing Business Glossary entries, the user must - * provide glossaries. While importing entries, the user does not have to - * provide glossaries. If the metadata import file attempts to modify - * Business Glossary entries whose glossary isn't included in this list, - * the import job will skip those entries. - * The location of a glossary must either match the location of the - * job, or the glossary must be global. - * @type string[] $entry_link_types - * Optional. The entry link types that are in scope for the import job, - * specified as relative resource names in the format - * `projects/{project_number_or_id}/locations/{location_id}/entryLinkTypes/{entry_link_type_id}`. - * The job modifies only the entryLinks that belong to these entry link - * types. - * If the metadata import file attempts to create or delete an entry link - * whose entry link type isn't included in this list, the import job will - * skip those entry links. - * @type string[] $referenced_entry_scopes - * Optional. Defines the scope of entries that can be referenced in the - * entry links. - * Currently, projects are supported as valid scopes. - * Format: `projects/{project_number_or_id}` - * If the metadata import file attempts to create an entry link - * which references an entry that is not in the scope, the import job will - * skip that entry link. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Required. The entry groups that are in scope for the import job, - * specified as relative resource names in the format - * `projects/{project_number_or_id}/locations/{location_id}/entryGroups/{entry_group_id}`. - * Only entries and aspects that belong to the specified entry groups are - * affected by the job. - * The entry groups and the job must be in the same location. - * - * Generated from protobuf field repeated string entry_groups = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return RepeatedField - */ - public function getEntryGroups() - { - return $this->entry_groups; - } - - /** - * Required. The entry groups that are in scope for the import job, - * specified as relative resource names in the format - * `projects/{project_number_or_id}/locations/{location_id}/entryGroups/{entry_group_id}`. - * Only entries and aspects that belong to the specified entry groups are - * affected by the job. - * The entry groups and the job must be in the same location. - * - * Generated from protobuf field repeated string entry_groups = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string[] $var - * @return $this - */ - public function setEntryGroups($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->entry_groups = $arr; - - return $this; - } - - /** - * Required. The entry types that are in scope for the import job, - * specified as relative resource names in the format - * `projects/{project_number_or_id}/locations/{location_id}/entryTypes/{entry_type_id}`. - * The job modifies only the entries and aspects that belong to these - * entry types. - * If the metadata import file attempts to modify an entry whose type - * isn't included in this list, the import job is halted before modifying - * any entries or aspects. - * The location of an entry type must either match the location of the - * job, or the entry type must be global. - * - * Generated from protobuf field repeated string entry_types = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return RepeatedField - */ - public function getEntryTypes() - { - return $this->entry_types; - } - - /** - * Required. The entry types that are in scope for the import job, - * specified as relative resource names in the format - * `projects/{project_number_or_id}/locations/{location_id}/entryTypes/{entry_type_id}`. - * The job modifies only the entries and aspects that belong to these - * entry types. - * If the metadata import file attempts to modify an entry whose type - * isn't included in this list, the import job is halted before modifying - * any entries or aspects. - * The location of an entry type must either match the location of the - * job, or the entry type must be global. - * - * Generated from protobuf field repeated string entry_types = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string[] $var - * @return $this - */ - public function setEntryTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->entry_types = $arr; - - return $this; - } - - /** - * Optional. The aspect types that are in scope for the import job, - * specified as relative resource names in the format - * `projects/{project_number_or_id}/locations/{location_id}/aspectTypes/{aspect_type_id}`. - * The job modifies only the aspects that belong to these aspect types. - * This field is required when creating an aspect-only import job. - * If the metadata import file attempts to modify an aspect whose type - * isn't included in this list, the import job is halted before modifying - * any entries or aspects. - * The location of an aspect type must either match the location of the - * job, or the aspect type must be global. - * - * Generated from protobuf field repeated string aspect_types = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return RepeatedField - */ - public function getAspectTypes() - { - return $this->aspect_types; - } - - /** - * Optional. The aspect types that are in scope for the import job, - * specified as relative resource names in the format - * `projects/{project_number_or_id}/locations/{location_id}/aspectTypes/{aspect_type_id}`. - * The job modifies only the aspects that belong to these aspect types. - * This field is required when creating an aspect-only import job. - * If the metadata import file attempts to modify an aspect whose type - * isn't included in this list, the import job is halted before modifying - * any entries or aspects. - * The location of an aspect type must either match the location of the - * job, or the aspect type must be global. - * - * Generated from protobuf field repeated string aspect_types = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string[] $var - * @return $this - */ - public function setAspectTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->aspect_types = $arr; - - return $this; - } - - /** - * Optional. The glossaries that are in scope for the import job, - * specified as relative resource names in the format - * `projects/{project_number_or_id}/locations/{location_id}/glossaries/{glossary_id}`. - * While importing Business Glossary entries, the user must - * provide glossaries. While importing entries, the user does not have to - * provide glossaries. If the metadata import file attempts to modify - * Business Glossary entries whose glossary isn't included in this list, - * the import job will skip those entries. - * The location of a glossary must either match the location of the - * job, or the glossary must be global. - * - * Generated from protobuf field repeated string glossaries = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return RepeatedField - */ - public function getGlossaries() - { - return $this->glossaries; - } - - /** - * Optional. The glossaries that are in scope for the import job, - * specified as relative resource names in the format - * `projects/{project_number_or_id}/locations/{location_id}/glossaries/{glossary_id}`. - * While importing Business Glossary entries, the user must - * provide glossaries. While importing entries, the user does not have to - * provide glossaries. If the metadata import file attempts to modify - * Business Glossary entries whose glossary isn't included in this list, - * the import job will skip those entries. - * The location of a glossary must either match the location of the - * job, or the glossary must be global. - * - * Generated from protobuf field repeated string glossaries = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string[] $var - * @return $this - */ - public function setGlossaries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->glossaries = $arr; - - return $this; - } - - /** - * Optional. The entry link types that are in scope for the import job, - * specified as relative resource names in the format - * `projects/{project_number_or_id}/locations/{location_id}/entryLinkTypes/{entry_link_type_id}`. - * The job modifies only the entryLinks that belong to these entry link - * types. - * If the metadata import file attempts to create or delete an entry link - * whose entry link type isn't included in this list, the import job will - * skip those entry links. - * - * Generated from protobuf field repeated string entry_link_types = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getEntryLinkTypes() - { - return $this->entry_link_types; - } - - /** - * Optional. The entry link types that are in scope for the import job, - * specified as relative resource names in the format - * `projects/{project_number_or_id}/locations/{location_id}/entryLinkTypes/{entry_link_type_id}`. - * The job modifies only the entryLinks that belong to these entry link - * types. - * If the metadata import file attempts to create or delete an entry link - * whose entry link type isn't included in this list, the import job will - * skip those entry links. - * - * Generated from protobuf field repeated string entry_link_types = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setEntryLinkTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->entry_link_types = $arr; - - return $this; - } - - /** - * Optional. Defines the scope of entries that can be referenced in the - * entry links. - * Currently, projects are supported as valid scopes. - * Format: `projects/{project_number_or_id}` - * If the metadata import file attempts to create an entry link - * which references an entry that is not in the scope, the import job will - * skip that entry link. - * - * Generated from protobuf field repeated string referenced_entry_scopes = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getReferencedEntryScopes() - { - return $this->referenced_entry_scopes; - } - - /** - * Optional. Defines the scope of entries that can be referenced in the - * entry links. - * Currently, projects are supported as valid scopes. - * Format: `projects/{project_number_or_id}` - * If the metadata import file attempts to create an entry link - * which references an entry that is not in the scope, the import job will - * skip that entry link. - * - * Generated from protobuf field repeated string referenced_entry_scopes = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setReferencedEntryScopes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->referenced_entry_scopes = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ImportJobSpec/LogLevel.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ImportJobSpec/LogLevel.php deleted file mode 100644 index 162485d3dec2..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ImportJobSpec/LogLevel.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.LogLevel - */ -class LogLevel -{ - /** - * Log level unspecified. - * - * Generated from protobuf enum LOG_LEVEL_UNSPECIFIED = 0; - */ - const LOG_LEVEL_UNSPECIFIED = 0; - /** - * Debug-level logging. Captures detailed logs for each import item. Use - * debug-level logging to troubleshoot issues with specific import items. - * For example, use debug-level logging to identify resources that are - * missing from the job scope, entries or aspects that don't conform to - * the associated entry type or aspect type, or other misconfigurations - * with the metadata import file. - * Depending on the size of your metadata job and the number of logs that - * are generated, debug-level logging might incur - * [additional costs](https://cloud.google.com/stackdriver/pricing). - * - * Generated from protobuf enum DEBUG = 1; - */ - const DEBUG = 1; - /** - * Info-level logging. Captures logs at the overall job level. Includes - * aggregate logs about import items, but doesn't specify which import - * item has an error. - * - * Generated from protobuf enum INFO = 2; - */ - const INFO = 2; - - private static $valueToName = [ - self::LOG_LEVEL_UNSPECIFIED => 'LOG_LEVEL_UNSPECIFIED', - self::DEBUG => 'DEBUG', - self::INFO => 'INFO', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ImportJobSpec/SyncMode.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ImportJobSpec/SyncMode.php deleted file mode 100644 index e123213441ac..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/ImportJobSpec/SyncMode.php +++ /dev/null @@ -1,80 +0,0 @@ -google.cloud.dataplex.v1.MetadataJob.ImportJobSpec.SyncMode - */ -class SyncMode -{ - /** - * Sync mode unspecified. - * - * Generated from protobuf enum SYNC_MODE_UNSPECIFIED = 0; - */ - const SYNC_MODE_UNSPECIFIED = 0; - /** - * All resources in the job's scope are modified. If a resource exists in - * Dataplex Universal Catalog but isn't included in the metadata import - * file, the resource is deleted when you run the metadata job. Use this - * mode to perform a full sync of the set of entries in the job scope. - * This sync mode is supported for entries. - * - * Generated from protobuf enum FULL = 1; - */ - const FULL = 1; - /** - * Only the resources that are explicitly included in the - * metadata import file are modified. Use this mode to modify a subset of - * resources while leaving unreferenced resources unchanged. - * This sync mode is supported for aspects. - * - * Generated from protobuf enum INCREMENTAL = 2; - */ - const INCREMENTAL = 2; - /** - * If entry sync mode is `NONE`, then aspects are modified according - * to the aspect sync mode. Other metadata that belongs to entries in the - * job's scope isn't modified. - * This sync mode is supported for entries. - * - * Generated from protobuf enum NONE = 3; - */ - const NONE = 3; - - private static $valueToName = [ - self::SYNC_MODE_UNSPECIFIED => 'SYNC_MODE_UNSPECIFIED', - self::FULL => 'FULL', - self::INCREMENTAL => 'INCREMENTAL', - self::NONE => 'NONE', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/Status.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/Status.php deleted file mode 100644 index 8897363a6746..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/Status.php +++ /dev/null @@ -1,179 +0,0 @@ -google.cloud.dataplex.v1.MetadataJob.Status - */ -class Status extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. State of the metadata job. - * - * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.Status.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. Message relating to the progression of a metadata job. - * - * Generated from protobuf field string message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $message = ''; - /** - * Output only. Progress tracking. - * - * Generated from protobuf field int32 completion_percent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $completion_percent = 0; - /** - * Output only. The time when the status was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $state - * Output only. State of the metadata job. - * @type string $message - * Output only. Message relating to the progression of a metadata job. - * @type int $completion_percent - * Output only. Progress tracking. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time when the status was updated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Output only. State of the metadata job. - * - * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.Status.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. State of the metadata job. - * - * Generated from protobuf field .google.cloud.dataplex.v1.MetadataJob.Status.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\MetadataJob\Status\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. Message relating to the progression of a metadata job. - * - * Generated from protobuf field string message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * Output only. Message relating to the progression of a metadata job. - * - * Generated from protobuf field string message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkString($var, True); - $this->message = $var; - - return $this; - } - - /** - * Output only. Progress tracking. - * - * Generated from protobuf field int32 completion_percent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getCompletionPercent() - { - return $this->completion_percent; - } - - /** - * Output only. Progress tracking. - * - * Generated from protobuf field int32 completion_percent = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setCompletionPercent($var) - { - GPBUtil::checkInt32($var); - $this->completion_percent = $var; - - return $this; - } - - /** - * Output only. The time when the status was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The time when the status was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/Status/State.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/Status/State.php deleted file mode 100644 index ba6cf330b1d0..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/Status/State.php +++ /dev/null @@ -1,96 +0,0 @@ -google.cloud.dataplex.v1.MetadataJob.Status.State - */ -class State -{ - /** - * State unspecified. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The job is queued. - * - * Generated from protobuf enum QUEUED = 1; - */ - const QUEUED = 1; - /** - * The job is running. - * - * Generated from protobuf enum RUNNING = 2; - */ - const RUNNING = 2; - /** - * The job is being canceled. - * - * Generated from protobuf enum CANCELING = 3; - */ - const CANCELING = 3; - /** - * The job is canceled. - * - * Generated from protobuf enum CANCELED = 4; - */ - const CANCELED = 4; - /** - * The job succeeded. - * - * Generated from protobuf enum SUCCEEDED = 5; - */ - const SUCCEEDED = 5; - /** - * The job failed. - * - * Generated from protobuf enum FAILED = 6; - */ - const FAILED = 6; - /** - * The job completed with some errors. - * - * Generated from protobuf enum SUCCEEDED_WITH_ERRORS = 7; - */ - const SUCCEEDED_WITH_ERRORS = 7; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::QUEUED => 'QUEUED', - self::RUNNING => 'RUNNING', - self::CANCELING => 'CANCELING', - self::CANCELED => 'CANCELED', - self::SUCCEEDED => 'SUCCEEDED', - self::FAILED => 'FAILED', - self::SUCCEEDED_WITH_ERRORS => 'SUCCEEDED_WITH_ERRORS', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/Type.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/Type.php deleted file mode 100644 index f0aac989ac09..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/MetadataJob/Type.php +++ /dev/null @@ -1,61 +0,0 @@ -google.cloud.dataplex.v1.MetadataJob.Type - */ -class Type -{ - /** - * Unspecified. - * - * Generated from protobuf enum TYPE_UNSPECIFIED = 0; - */ - const TYPE_UNSPECIFIED = 0; - /** - * Import job. - * - * Generated from protobuf enum IMPORT = 1; - */ - const IMPORT = 1; - /** - * Export job. - * - * Generated from protobuf enum EXPORT = 2; - */ - const EXPORT = 2; - - private static $valueToName = [ - self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', - self::IMPORT => 'IMPORT', - self::EXPORT => 'EXPORT', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/OperationMetadata.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/OperationMetadata.php deleted file mode 100644 index 4ced29ea115e..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/OperationMetadata.php +++ /dev/null @@ -1,307 +0,0 @@ -google.cloud.dataplex.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. Server-defined resource path for the target of the operation. - * - * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $target = ''; - /** - * Output only. Name of the verb executed by the operation. - * - * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $verb = ''; - /** - * Output only. Human-readable status of the operation, if any. - * - * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $status_message = ''; - /** - * Output only. Identifies whether the user has requested cancellation - * of the operation. Operations that have successfully been cancelled - * have [Operation.error][] value with a - * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - * `Code.CANCELLED`. - * - * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $requested_cancellation = false; - /** - * Output only. API version used to start the operation. - * - * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $api_version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time the operation was created. - * @type \Google\Protobuf\Timestamp $end_time - * Output only. The time the operation finished running. - * @type string $target - * Output only. Server-defined resource path for the target of the operation. - * @type string $verb - * Output only. Name of the verb executed by the operation. - * @type string $status_message - * Output only. Human-readable status of the operation, if any. - * @type bool $requested_cancellation - * Output only. Identifies whether the user has requested cancellation - * of the operation. Operations that have successfully been cancelled - * have [Operation.error][] value with a - * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - * `Code.CANCELLED`. - * @type string $api_version - * Output only. API version used to start the operation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The time the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The time the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The time the operation finished running. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEndTime() - { - return $this->end_time; - } - - public function hasEndTime() - { - return isset($this->end_time); - } - - public function clearEndTime() - { - unset($this->end_time); - } - - /** - * Output only. The time the operation finished running. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - - /** - * Output only. Server-defined resource path for the target of the operation. - * - * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getTarget() - { - return $this->target; - } - - /** - * Output only. Server-defined resource path for the target of the operation. - * - * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setTarget($var) - { - GPBUtil::checkString($var, True); - $this->target = $var; - - return $this; - } - - /** - * Output only. Name of the verb executed by the operation. - * - * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getVerb() - { - return $this->verb; - } - - /** - * Output only. Name of the verb executed by the operation. - * - * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setVerb($var) - { - GPBUtil::checkString($var, True); - $this->verb = $var; - - return $this; - } - - /** - * Output only. Human-readable status of the operation, if any. - * - * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getStatusMessage() - { - return $this->status_message; - } - - /** - * Output only. Human-readable status of the operation, if any. - * - * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setStatusMessage($var) - { - GPBUtil::checkString($var, True); - $this->status_message = $var; - - return $this; - } - - /** - * Output only. Identifies whether the user has requested cancellation - * of the operation. Operations that have successfully been cancelled - * have [Operation.error][] value with a - * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - * `Code.CANCELLED`. - * - * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getRequestedCancellation() - { - return $this->requested_cancellation; - } - - /** - * Output only. Identifies whether the user has requested cancellation - * of the operation. Operations that have successfully been cancelled - * have [Operation.error][] value with a - * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - * `Code.CANCELLED`. - * - * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setRequestedCancellation($var) - { - GPBUtil::checkBool($var); - $this->requested_cancellation = $var; - - return $this; - } - - /** - * Output only. API version used to start the operation. - * - * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getApiVersion() - { - return $this->api_version; - } - - /** - * Output only. API version used to start the operation. - * - * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setApiVersion($var) - { - GPBUtil::checkString($var, True); - $this->api_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Partition.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Partition.php deleted file mode 100644 index 58cde53fa4c1..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Partition.php +++ /dev/null @@ -1,204 +0,0 @@ -google.cloud.dataplex.v1.Partition - */ -class Partition extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Partition values used in the HTTP URL must be - * double encoded. For example, `url_encode(url_encode(value))` can be used - * to encode "US:CA/CA#Sunnyvale so that the request URL ends - * with "/partitions/US%253ACA/CA%2523Sunnyvale". - * The name field in the response retains the encoded format. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Required. Immutable. The set of values representing the partition, which - * correspond to the partition schema defined in the parent entity. - * - * Generated from protobuf field repeated string values = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - private $values; - /** - * Required. Immutable. The location of the entity data within the partition, - * for example, `gs://bucket/path/to/entity/key1=value1/key2=value2`. Or - * `projects//datasets//tables/` - * - * Generated from protobuf field string location = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $location = ''; - /** - * Optional. The etag for this partition. - * - * Generated from protobuf field string etag = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @deprecated - */ - protected $etag = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Partition values used in the HTTP URL must be - * double encoded. For example, `url_encode(url_encode(value))` can be used - * to encode "US:CA/CA#Sunnyvale so that the request URL ends - * with "/partitions/US%253ACA/CA%2523Sunnyvale". - * The name field in the response retains the encoded format. - * @type string[] $values - * Required. Immutable. The set of values representing the partition, which - * correspond to the partition schema defined in the parent entity. - * @type string $location - * Required. Immutable. The location of the entity data within the partition, - * for example, `gs://bucket/path/to/entity/key1=value1/key2=value2`. Or - * `projects//datasets//tables/` - * @type string $etag - * Optional. The etag for this partition. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Metadata::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Partition values used in the HTTP URL must be - * double encoded. For example, `url_encode(url_encode(value))` can be used - * to encode "US:CA/CA#Sunnyvale so that the request URL ends - * with "/partitions/US%253ACA/CA%2523Sunnyvale". - * The name field in the response retains the encoded format. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Partition values used in the HTTP URL must be - * double encoded. For example, `url_encode(url_encode(value))` can be used - * to encode "US:CA/CA#Sunnyvale so that the request URL ends - * with "/partitions/US%253ACA/CA%2523Sunnyvale". - * The name field in the response retains the encoded format. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. Immutable. The set of values representing the partition, which - * correspond to the partition schema defined in the parent entity. - * - * Generated from protobuf field repeated string values = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return RepeatedField - */ - public function getValues() - { - return $this->values; - } - - /** - * Required. Immutable. The set of values representing the partition, which - * correspond to the partition schema defined in the parent entity. - * - * Generated from protobuf field repeated string values = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param string[] $var - * @return $this - */ - public function setValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->values = $arr; - - return $this; - } - - /** - * Required. Immutable. The location of the entity data within the partition, - * for example, `gs://bucket/path/to/entity/key1=value1/key2=value2`. Or - * `projects//datasets//tables/` - * - * Generated from protobuf field string location = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * Required. Immutable. The location of the entity data within the partition, - * for example, `gs://bucket/path/to/entity/key1=value1/key2=value2`. Or - * `projects//datasets//tables/` - * - * Generated from protobuf field string location = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - - /** - * Optional. The etag for this partition. - * - * Generated from protobuf field string etag = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @return string - * @deprecated - */ - public function getEtag() - { - if ($this->etag !== '') { - @trigger_error('etag is deprecated.', E_USER_DEPRECATED); - } - return $this->etag; - } - - /** - * Optional. The etag for this partition. - * - * Generated from protobuf field string etag = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - * @deprecated - */ - public function setEtag($var) - { - @trigger_error('etag is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ResourceAccessSpec.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ResourceAccessSpec.php deleted file mode 100644 index 780435d3f889..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ResourceAccessSpec.php +++ /dev/null @@ -1,145 +0,0 @@ -google.cloud.dataplex.v1.ResourceAccessSpec - */ -class ResourceAccessSpec extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The format of strings follows the pattern followed by IAM in the - * bindings. user:{email}, serviceAccount:{email} group:{email}. - * The set of principals to be granted reader role on the resource. - * - * Generated from protobuf field repeated string readers = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $readers; - /** - * Optional. The set of principals to be granted writer role on the resource. - * - * Generated from protobuf field repeated string writers = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $writers; - /** - * Optional. The set of principals to be granted owner role on the resource. - * - * Generated from protobuf field repeated string owners = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $owners; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string[] $readers - * Optional. The format of strings follows the pattern followed by IAM in the - * bindings. user:{email}, serviceAccount:{email} group:{email}. - * The set of principals to be granted reader role on the resource. - * @type string[] $writers - * Optional. The set of principals to be granted writer role on the resource. - * @type string[] $owners - * Optional. The set of principals to be granted owner role on the resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Security::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The format of strings follows the pattern followed by IAM in the - * bindings. user:{email}, serviceAccount:{email} group:{email}. - * The set of principals to be granted reader role on the resource. - * - * Generated from protobuf field repeated string readers = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getReaders() - { - return $this->readers; - } - - /** - * Optional. The format of strings follows the pattern followed by IAM in the - * bindings. user:{email}, serviceAccount:{email} group:{email}. - * The set of principals to be granted reader role on the resource. - * - * Generated from protobuf field repeated string readers = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setReaders($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->readers = $arr; - - return $this; - } - - /** - * Optional. The set of principals to be granted writer role on the resource. - * - * Generated from protobuf field repeated string writers = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getWriters() - { - return $this->writers; - } - - /** - * Optional. The set of principals to be granted writer role on the resource. - * - * Generated from protobuf field repeated string writers = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setWriters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->writers = $arr; - - return $this; - } - - /** - * Optional. The set of principals to be granted owner role on the resource. - * - * Generated from protobuf field repeated string owners = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getOwners() - { - return $this->owners; - } - - /** - * Optional. The set of principals to be granted owner role on the resource. - * - * Generated from protobuf field repeated string owners = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setOwners($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->owners = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/RunDataScanRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/RunDataScanRequest.php deleted file mode 100644 index daac50f844c1..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/RunDataScanRequest.php +++ /dev/null @@ -1,102 +0,0 @@ -google.cloud.dataplex.v1.RunDataScanRequest - */ -class RunDataScanRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the DataScan: - * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}`. - * where `project` refers to a *project_id* or *project_number* and - * `location_id` refers to a Google Cloud region. - * Only **OnDemand** data scans are allowed. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the DataScan: - * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}`. - * where `project` refers to a *project_id* or *project_number* and - * `location_id` refers to a Google Cloud region. - * - * Only **OnDemand** data scans are allowed. Please see - * {@see DataScanServiceClient::dataScanName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\RunDataScanRequest - * - * @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 resource name of the DataScan: - * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}`. - * where `project` refers to a *project_id* or *project_number* and - * `location_id` refers to a Google Cloud region. - * Only **OnDemand** data scans are allowed. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Datascans::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the DataScan: - * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}`. - * where `project` refers to a *project_id* or *project_number* and - * `location_id` refers to a Google Cloud region. - * Only **OnDemand** data scans are allowed. - * - * 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 resource name of the DataScan: - * `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}`. - * where `project` refers to a *project_id* or *project_number* and - * `location_id` refers to a Google Cloud region. - * Only **OnDemand** data scans are allowed. - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/RunDataScanResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/RunDataScanResponse.php deleted file mode 100644 index b3d45e135ea8..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/RunDataScanResponse.php +++ /dev/null @@ -1,77 +0,0 @@ -google.cloud.dataplex.v1.RunDataScanResponse - */ -class RunDataScanResponse extends \Google\Protobuf\Internal\Message -{ - /** - * DataScanJob created by RunDataScan request. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScanJob job = 1; - */ - protected $job = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\DataScanJob $job - * DataScanJob created by RunDataScan request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Datascans::initOnce(); - parent::__construct($data); - } - - /** - * DataScanJob created by RunDataScan request. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScanJob job = 1; - * @return \Google\Cloud\Dataplex\V1\DataScanJob|null - */ - public function getJob() - { - return $this->job; - } - - public function hasJob() - { - return isset($this->job); - } - - public function clearJob() - { - unset($this->job); - } - - /** - * DataScanJob created by RunDataScan request. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScanJob job = 1; - * @param \Google\Cloud\Dataplex\V1\DataScanJob $var - * @return $this - */ - public function setJob($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataScanJob::class); - $this->job = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/RunTaskRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/RunTaskRequest.php deleted file mode 100644 index 6188f19cfdf4..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/RunTaskRequest.php +++ /dev/null @@ -1,200 +0,0 @@ -google.cloud.dataplex.v1.RunTaskRequest - */ -class RunTaskRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the task: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. User-defined labels for the task. If the map is left empty, the - * task will run with existing labels from task definition. If the map - * contains an entry with a new key, the same will be added to existing set of - * labels. If the map contains an entry with an existing label key in task - * definition, the task will run with new label value for that entry. Clearing - * an existing label will require label value to be explicitly set to a hyphen - * "-". The label value cannot be empty. - * - * Generated from protobuf field map labels = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $labels; - /** - * Optional. Execution spec arguments. If the map is left empty, the task will - * run with existing execution spec args from task definition. If the map - * contains an entry with a new key, the same will be added to existing set of - * args. If the map contains an entry with an existing arg key in task - * definition, the task will run with new arg value for that entry. Clearing - * an existing arg will require arg value to be explicitly set to a hyphen - * "-". The arg value cannot be empty. - * - * Generated from protobuf field map args = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $args; - - /** - * @param string $name Required. The resource name of the task: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}`. Please see - * {@see DataplexServiceClient::taskName()} for help formatting this field. - * - * @return \Google\Cloud\Dataplex\V1\RunTaskRequest - * - * @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 resource name of the task: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}`. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Optional. User-defined labels for the task. If the map is left empty, the - * task will run with existing labels from task definition. If the map - * contains an entry with a new key, the same will be added to existing set of - * labels. If the map contains an entry with an existing label key in task - * definition, the task will run with new label value for that entry. Clearing - * an existing label will require label value to be explicitly set to a hyphen - * "-". The label value cannot be empty. - * @type array|\Google\Protobuf\Internal\MapField $args - * Optional. Execution spec arguments. If the map is left empty, the task will - * run with existing execution spec args from task definition. If the map - * contains an entry with a new key, the same will be added to existing set of - * args. If the map contains an entry with an existing arg key in task - * definition, the task will run with new arg value for that entry. Clearing - * an existing arg will require arg value to be explicitly set to a hyphen - * "-". The arg value cannot be empty. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the task: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}`. - * - * 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 resource name of the task: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/tasks/{task_id}`. - * - * 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. User-defined labels for the task. If the map is left empty, the - * task will run with existing labels from task definition. If the map - * contains an entry with a new key, the same will be added to existing set of - * labels. If the map contains an entry with an existing label key in task - * definition, the task will run with new label value for that entry. Clearing - * an existing label will require label value to be explicitly set to a hyphen - * "-". The label value cannot be empty. - * - * Generated from protobuf field map labels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Optional. User-defined labels for the task. If the map is left empty, the - * task will run with existing labels from task definition. If the map - * contains an entry with a new key, the same will be added to existing set of - * labels. If the map contains an entry with an existing label key in task - * definition, the task will run with new label value for that entry. Clearing - * an existing label will require label value to be explicitly set to a hyphen - * "-". The label value cannot be empty. - * - * Generated from protobuf field map labels = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Optional. Execution spec arguments. If the map is left empty, the task will - * run with existing execution spec args from task definition. If the map - * contains an entry with a new key, the same will be added to existing set of - * args. If the map contains an entry with an existing arg key in task - * definition, the task will run with new arg value for that entry. Clearing - * an existing arg will require arg value to be explicitly set to a hyphen - * "-". The arg value cannot be empty. - * - * Generated from protobuf field map args = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getArgs() - { - return $this->args; - } - - /** - * Optional. Execution spec arguments. If the map is left empty, the task will - * run with existing execution spec args from task definition. If the map - * contains an entry with a new key, the same will be added to existing set of - * args. If the map contains an entry with an existing arg key in task - * definition, the task will run with new arg value for that entry. Clearing - * an existing arg will require arg value to be explicitly set to a hyphen - * "-". The arg value cannot be empty. - * - * Generated from protobuf field map args = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setArgs($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->args = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/RunTaskResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/RunTaskResponse.php deleted file mode 100644 index d692a310b0b3..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/RunTaskResponse.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.dataplex.v1.RunTaskResponse - */ -class RunTaskResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Jobs created by RunTask API. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Job job = 1; - */ - protected $job = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\Job $job - * Jobs created by RunTask API. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Jobs created by RunTask API. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Job job = 1; - * @return \Google\Cloud\Dataplex\V1\Job|null - */ - public function getJob() - { - return $this->job; - } - - public function hasJob() - { - return isset($this->job); - } - - public function clearJob() - { - unset($this->job); - } - - /** - * Jobs created by RunTask API. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Job job = 1; - * @param \Google\Cloud\Dataplex\V1\Job $var - * @return $this - */ - public function setJob($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Job::class); - $this->job = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ScannedData.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ScannedData.php deleted file mode 100644 index 8b1f291a382f..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ScannedData.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.dataplex.v1.ScannedData - */ -class ScannedData extends \Google\Protobuf\Internal\Message -{ - protected $data_range; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\ScannedData\IncrementalField $incremental_field - * The range denoted by values of an incremental field - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Processing::initOnce(); - parent::__construct($data); - } - - /** - * The range denoted by values of an incremental field - * - * Generated from protobuf field .google.cloud.dataplex.v1.ScannedData.IncrementalField incremental_field = 1; - * @return \Google\Cloud\Dataplex\V1\ScannedData\IncrementalField|null - */ - public function getIncrementalField() - { - return $this->readOneof(1); - } - - public function hasIncrementalField() - { - return $this->hasOneof(1); - } - - /** - * The range denoted by values of an incremental field - * - * Generated from protobuf field .google.cloud.dataplex.v1.ScannedData.IncrementalField incremental_field = 1; - * @param \Google\Cloud\Dataplex\V1\ScannedData\IncrementalField $var - * @return $this - */ - public function setIncrementalField($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\ScannedData\IncrementalField::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getDataRange() - { - return $this->whichOneof("data_range"); - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ScannedData/IncrementalField.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ScannedData/IncrementalField.php deleted file mode 100644 index 17fc6b65bdd6..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/ScannedData/IncrementalField.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.dataplex.v1.ScannedData.IncrementalField - */ -class IncrementalField extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The field that contains values which monotonically increases - * over time (e.g. a timestamp column). - * - * Generated from protobuf field string field = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $field = ''; - /** - * Output only. Value that marks the start of the range. - * - * Generated from protobuf field string start = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $start = ''; - /** - * Output only. Value that marks the end of the range. - * - * Generated from protobuf field string end = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $end = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $field - * Output only. The field that contains values which monotonically increases - * over time (e.g. a timestamp column). - * @type string $start - * Output only. Value that marks the start of the range. - * @type string $end - * Output only. Value that marks the end of the range. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Processing::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The field that contains values which monotonically increases - * over time (e.g. a timestamp column). - * - * Generated from protobuf field string field = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getField() - { - return $this->field; - } - - /** - * Output only. The field that contains values which monotonically increases - * over time (e.g. a timestamp column). - * - * Generated from protobuf field string field = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setField($var) - { - GPBUtil::checkString($var, True); - $this->field = $var; - - return $this; - } - - /** - * Output only. Value that marks the start of the range. - * - * Generated from protobuf field string start = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getStart() - { - return $this->start; - } - - /** - * Output only. Value that marks the start of the range. - * - * Generated from protobuf field string start = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setStart($var) - { - GPBUtil::checkString($var, True); - $this->start = $var; - - return $this; - } - - /** - * Output only. Value that marks the end of the range. - * - * Generated from protobuf field string end = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getEnd() - { - return $this->end; - } - - /** - * Output only. Value that marks the end of the range. - * - * Generated from protobuf field string end = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setEnd($var) - { - GPBUtil::checkString($var, True); - $this->end = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Schema.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Schema.php deleted file mode 100644 index 15f8ef1f8397..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Schema.php +++ /dev/null @@ -1,229 +0,0 @@ -google.cloud.dataplex.v1.Schema - */ -class Schema extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Set to `true` if user-managed or `false` if managed by Dataplex - * Universal Catalog. The default is `false` (managed by Dataplex Universal - * Catalog). - * - Set to `false`to enable Dataplex Universal Catalog discovery to update - * the schema. - * including new data discovery, schema inference, and schema evolution. - * Users retain the ability to input and edit the schema. Dataplex Universal - * Catalog treats schema input by the user as though produced by a previous - * Dataplex Universal Catalog discovery operation, and it will evolve the - * schema and take action based on that treatment. - * - Set to `true` to fully manage the entity - * schema. This setting guarantees that Dataplex Universal Catalog will not - * change schema fields. - * - * Generated from protobuf field bool user_managed = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $user_managed = false; - /** - * Optional. The sequence of fields describing data in table entities. - * **Note:** BigQuery SchemaFields are immutable. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.Schema.SchemaField fields = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $fields; - /** - * Optional. The sequence of fields describing the partition structure in - * entities. If this field is empty, there are no partitions within the data. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.Schema.PartitionField partition_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $partition_fields; - /** - * Optional. The structure of paths containing partition data within the - * entity. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Schema.PartitionStyle partition_style = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $partition_style = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $user_managed - * Required. Set to `true` if user-managed or `false` if managed by Dataplex - * Universal Catalog. The default is `false` (managed by Dataplex Universal - * Catalog). - * - Set to `false`to enable Dataplex Universal Catalog discovery to update - * the schema. - * including new data discovery, schema inference, and schema evolution. - * Users retain the ability to input and edit the schema. Dataplex Universal - * Catalog treats schema input by the user as though produced by a previous - * Dataplex Universal Catalog discovery operation, and it will evolve the - * schema and take action based on that treatment. - * - Set to `true` to fully manage the entity - * schema. This setting guarantees that Dataplex Universal Catalog will not - * change schema fields. - * @type \Google\Cloud\Dataplex\V1\Schema\SchemaField[] $fields - * Optional. The sequence of fields describing data in table entities. - * **Note:** BigQuery SchemaFields are immutable. - * @type \Google\Cloud\Dataplex\V1\Schema\PartitionField[] $partition_fields - * Optional. The sequence of fields describing the partition structure in - * entities. If this field is empty, there are no partitions within the data. - * @type int $partition_style - * Optional. The structure of paths containing partition data within the - * entity. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Metadata::initOnce(); - parent::__construct($data); - } - - /** - * Required. Set to `true` if user-managed or `false` if managed by Dataplex - * Universal Catalog. The default is `false` (managed by Dataplex Universal - * Catalog). - * - Set to `false`to enable Dataplex Universal Catalog discovery to update - * the schema. - * including new data discovery, schema inference, and schema evolution. - * Users retain the ability to input and edit the schema. Dataplex Universal - * Catalog treats schema input by the user as though produced by a previous - * Dataplex Universal Catalog discovery operation, and it will evolve the - * schema and take action based on that treatment. - * - Set to `true` to fully manage the entity - * schema. This setting guarantees that Dataplex Universal Catalog will not - * change schema fields. - * - * Generated from protobuf field bool user_managed = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return bool - */ - public function getUserManaged() - { - return $this->user_managed; - } - - /** - * Required. Set to `true` if user-managed or `false` if managed by Dataplex - * Universal Catalog. The default is `false` (managed by Dataplex Universal - * Catalog). - * - Set to `false`to enable Dataplex Universal Catalog discovery to update - * the schema. - * including new data discovery, schema inference, and schema evolution. - * Users retain the ability to input and edit the schema. Dataplex Universal - * Catalog treats schema input by the user as though produced by a previous - * Dataplex Universal Catalog discovery operation, and it will evolve the - * schema and take action based on that treatment. - * - Set to `true` to fully manage the entity - * schema. This setting guarantees that Dataplex Universal Catalog will not - * change schema fields. - * - * Generated from protobuf field bool user_managed = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param bool $var - * @return $this - */ - public function setUserManaged($var) - { - GPBUtil::checkBool($var); - $this->user_managed = $var; - - return $this; - } - - /** - * Optional. The sequence of fields describing data in table entities. - * **Note:** BigQuery SchemaFields are immutable. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.Schema.SchemaField fields = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\Dataplex\V1\Schema\SchemaField> - */ - public function getFields() - { - return $this->fields; - } - - /** - * Optional. The sequence of fields describing data in table entities. - * **Note:** BigQuery SchemaFields are immutable. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.Schema.SchemaField fields = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataplex\V1\Schema\SchemaField[] $var - * @return $this - */ - public function setFields($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\Schema\SchemaField::class); - $this->fields = $arr; - - return $this; - } - - /** - * Optional. The sequence of fields describing the partition structure in - * entities. If this field is empty, there are no partitions within the data. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.Schema.PartitionField partition_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\Dataplex\V1\Schema\PartitionField> - */ - public function getPartitionFields() - { - return $this->partition_fields; - } - - /** - * Optional. The sequence of fields describing the partition structure in - * entities. If this field is empty, there are no partitions within the data. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.Schema.PartitionField partition_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataplex\V1\Schema\PartitionField[] $var - * @return $this - */ - public function setPartitionFields($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\Schema\PartitionField::class); - $this->partition_fields = $arr; - - return $this; - } - - /** - * Optional. The structure of paths containing partition data within the - * entity. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Schema.PartitionStyle partition_style = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPartitionStyle() - { - return $this->partition_style; - } - - /** - * Optional. The structure of paths containing partition data within the - * entity. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Schema.PartitionStyle partition_style = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPartitionStyle($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\Schema\PartitionStyle::class); - $this->partition_style = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Schema/Mode.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Schema/Mode.php deleted file mode 100644 index 49fa0ba5bfb2..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Schema/Mode.php +++ /dev/null @@ -1,68 +0,0 @@ -google.cloud.dataplex.v1.Schema.Mode - */ -class Mode -{ - /** - * Mode unspecified. - * - * Generated from protobuf enum MODE_UNSPECIFIED = 0; - */ - const MODE_UNSPECIFIED = 0; - /** - * The field has required semantics. - * - * Generated from protobuf enum REQUIRED = 1; - */ - const REQUIRED = 1; - /** - * The field has optional semantics, and may be null. - * - * Generated from protobuf enum NULLABLE = 2; - */ - const NULLABLE = 2; - /** - * The field has repeated (0 or more) semantics, and is a list of values. - * - * Generated from protobuf enum REPEATED = 3; - */ - const REPEATED = 3; - - private static $valueToName = [ - self::MODE_UNSPECIFIED => 'MODE_UNSPECIFIED', - self::REQUIRED => 'REQUIRED', - self::NULLABLE => 'NULLABLE', - self::REPEATED => 'REPEATED', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Schema/PartitionField.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Schema/PartitionField.php deleted file mode 100644 index 6b19171b56a0..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Schema/PartitionField.php +++ /dev/null @@ -1,112 +0,0 @@ -google.cloud.dataplex.v1.Schema.PartitionField - */ -class PartitionField extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Partition field name must consist of letters, numbers, and - * underscores only, with a maximum of length of 256 characters, and must - * begin with a letter or underscore.. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - /** - * Required. Immutable. The type of field. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Schema.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Partition field name must consist of letters, numbers, and - * underscores only, with a maximum of length of 256 characters, and must - * begin with a letter or underscore.. - * @type int $type - * Required. Immutable. The type of field. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Metadata::initOnce(); - parent::__construct($data); - } - - /** - * Required. Partition field name must consist of letters, numbers, and - * underscores only, with a maximum of length of 256 characters, and must - * begin with a letter or underscore.. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Partition field name must consist of letters, numbers, and - * underscores only, with a maximum of length of 256 characters, and must - * begin with a letter or underscore.. - * - * 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. Immutable. The type of field. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Schema.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Required. Immutable. The type of field. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Schema.Type type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\Schema\Type::class); - $this->type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Schema/PartitionStyle.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Schema/PartitionStyle.php deleted file mode 100644 index c79cc68f3208..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Schema/PartitionStyle.php +++ /dev/null @@ -1,56 +0,0 @@ -google.cloud.dataplex.v1.Schema.PartitionStyle - */ -class PartitionStyle -{ - /** - * PartitionStyle unspecified - * - * Generated from protobuf enum PARTITION_STYLE_UNSPECIFIED = 0; - */ - const PARTITION_STYLE_UNSPECIFIED = 0; - /** - * Partitions are hive-compatible. - * Examples: `gs://bucket/path/to/table/dt=2019-10-31/lang=en`, - * `gs://bucket/path/to/table/dt=2019-10-31/lang=en/late`. - * - * Generated from protobuf enum HIVE_COMPATIBLE = 1; - */ - const HIVE_COMPATIBLE = 1; - - private static $valueToName = [ - self::PARTITION_STYLE_UNSPECIFIED => 'PARTITION_STYLE_UNSPECIFIED', - self::HIVE_COMPATIBLE => 'HIVE_COMPATIBLE', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Schema/SchemaField.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Schema/SchemaField.php deleted file mode 100644 index 7700b8ee3727..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Schema/SchemaField.php +++ /dev/null @@ -1,215 +0,0 @@ -google.cloud.dataplex.v1.Schema.SchemaField - */ -class SchemaField extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the field. Must contain only letters, numbers and - * underscores, with a maximum length of 767 characters, - * and must begin with a letter or underscore. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - /** - * Optional. User friendly field description. Must be less than or equal to - * 1024 characters. - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Required. The type of field. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Schema.Type type = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $type = 0; - /** - * Required. Additional field semantics. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Schema.Mode mode = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $mode = 0; - /** - * Optional. Any nested field for complex types. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.Schema.SchemaField fields = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $fields; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the field. Must contain only letters, numbers and - * underscores, with a maximum length of 767 characters, - * and must begin with a letter or underscore. - * @type string $description - * Optional. User friendly field description. Must be less than or equal to - * 1024 characters. - * @type int $type - * Required. The type of field. - * @type int $mode - * Required. Additional field semantics. - * @type \Google\Cloud\Dataplex\V1\Schema\SchemaField[] $fields - * Optional. Any nested field for complex types. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Metadata::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the field. Must contain only letters, numbers and - * underscores, with a maximum length of 767 characters, - * and must begin with a letter or underscore. - * - * 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 field. Must contain only letters, numbers and - * underscores, with a maximum length of 767 characters, - * and must begin with a letter or underscore. - * - * 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. User friendly field description. Must be less than or equal to - * 1024 characters. - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. User friendly field description. Must be less than or equal to - * 1024 characters. - * - * Generated from protobuf field string description = 2 [(.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 type of field. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Schema.Type type = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Required. The type of field. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Schema.Type type = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\Schema\Type::class); - $this->type = $var; - - return $this; - } - - /** - * Required. Additional field semantics. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Schema.Mode mode = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getMode() - { - return $this->mode; - } - - /** - * Required. Additional field semantics. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Schema.Mode mode = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setMode($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\Schema\Mode::class); - $this->mode = $var; - - return $this; - } - - /** - * Optional. Any nested field for complex types. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.Schema.SchemaField fields = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField<\Google\Cloud\Dataplex\V1\Schema\SchemaField> - */ - public function getFields() - { - return $this->fields; - } - - /** - * Optional. Any nested field for complex types. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.Schema.SchemaField fields = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataplex\V1\Schema\SchemaField[] $var - * @return $this - */ - public function setFields($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\Schema\SchemaField::class); - $this->fields = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Schema/Type.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Schema/Type.php deleted file mode 100644 index 695253a17ef4..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Schema/Type.php +++ /dev/null @@ -1,153 +0,0 @@ -google.cloud.dataplex.v1.Schema.Type - */ -class Type -{ - /** - * SchemaType unspecified. - * - * Generated from protobuf enum TYPE_UNSPECIFIED = 0; - */ - const TYPE_UNSPECIFIED = 0; - /** - * Boolean field. - * - * Generated from protobuf enum BOOLEAN = 1; - */ - const BOOLEAN = 1; - /** - * Single byte numeric field. - * - * Generated from protobuf enum BYTE = 2; - */ - const BYTE = 2; - /** - * 16-bit numeric field. - * - * Generated from protobuf enum INT16 = 3; - */ - const INT16 = 3; - /** - * 32-bit numeric field. - * - * Generated from protobuf enum INT32 = 4; - */ - const INT32 = 4; - /** - * 64-bit numeric field. - * - * Generated from protobuf enum INT64 = 5; - */ - const INT64 = 5; - /** - * Floating point numeric field. - * - * Generated from protobuf enum FLOAT = 6; - */ - const FLOAT = 6; - /** - * Double precision numeric field. - * - * Generated from protobuf enum DOUBLE = 7; - */ - const DOUBLE = 7; - /** - * Real value numeric field. - * - * Generated from protobuf enum DECIMAL = 8; - */ - const DECIMAL = 8; - /** - * Sequence of characters field. - * - * Generated from protobuf enum STRING = 9; - */ - const STRING = 9; - /** - * Sequence of bytes field. - * - * Generated from protobuf enum BINARY = 10; - */ - const BINARY = 10; - /** - * Date and time field. - * - * Generated from protobuf enum TIMESTAMP = 11; - */ - const TIMESTAMP = 11; - /** - * Date field. - * - * Generated from protobuf enum DATE = 12; - */ - const DATE = 12; - /** - * Time field. - * - * Generated from protobuf enum TIME = 13; - */ - const TIME = 13; - /** - * Structured field. Nested fields that define the structure of the map. - * If all nested fields are nullable, this field represents a union. - * - * Generated from protobuf enum RECORD = 14; - */ - const RECORD = 14; - /** - * Null field that does not have values. - * - * Generated from protobuf enum NULL = 100; - */ - const NULL = 100; - - private static $valueToName = [ - self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', - self::BOOLEAN => 'BOOLEAN', - self::BYTE => 'BYTE', - self::INT16 => 'INT16', - self::INT32 => 'INT32', - self::INT64 => 'INT64', - self::FLOAT => 'FLOAT', - self::DOUBLE => 'DOUBLE', - self::DECIMAL => 'DECIMAL', - self::STRING => 'STRING', - self::BINARY => 'BINARY', - self::TIMESTAMP => 'TIMESTAMP', - self::DATE => 'DATE', - self::TIME => 'TIME', - self::RECORD => 'RECORD', - self::NULL => 'NULL', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SearchEntriesRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SearchEntriesRequest.php deleted file mode 100644 index 20587ecc1063..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SearchEntriesRequest.php +++ /dev/null @@ -1,344 +0,0 @@ -google.cloud.dataplex.v1.SearchEntriesRequest - */ -class SearchEntriesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The project to which the request should be attributed in the - * following form: `projects/{project}/locations/global`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Required. The query against which entries in scope should be matched. - * The query syntax is defined in [Search syntax for Dataplex Universal - * Catalog](https://cloud.google.com/dataplex/docs/search-syntax). - * - * Generated from protobuf field string query = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $query = ''; - /** - * Optional. Number of results in the search page. If <=0, then defaults - * to 10. Max limit for page_size is 1000. Throws an invalid argument for - * page_size > 1000. - * - * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. Page token received from a previous `SearchEntries` call. Provide - * this to retrieve the subsequent page. - * - * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Specifies the ordering of results. - * Supported values are: - * * `relevance` - * * `last_modified_timestamp` - * * `last_modified_timestamp asc` - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. The scope under which the search should be operating. It must - * either be `organizations/` or `projects/`. If it is - * unspecified, it defaults to the organization where the project provided in - * `name` is located. - * - * Generated from protobuf field string scope = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $scope = ''; - /** - * Optional. Specifies whether the search should understand the meaning and - * intent behind the query, rather than just matching keywords. - * - * Generated from protobuf field bool semantic_search = 11 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $semantic_search = false; - - /** - * @param string $name Required. The project to which the request should be attributed in the - * following form: `projects/{project}/locations/global`. Please see - * {@see CatalogServiceClient::locationName()} for help formatting this field. - * @param string $query Required. The query against which entries in scope should be matched. - * The query syntax is defined in [Search syntax for Dataplex Universal - * Catalog](https://cloud.google.com/dataplex/docs/search-syntax). - * - * @return \Google\Cloud\Dataplex\V1\SearchEntriesRequest - * - * @experimental - */ - public static function build(string $name, string $query): self - { - return (new self()) - ->setName($name) - ->setQuery($query); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The project to which the request should be attributed in the - * following form: `projects/{project}/locations/global`. - * @type string $query - * Required. The query against which entries in scope should be matched. - * The query syntax is defined in [Search syntax for Dataplex Universal - * Catalog](https://cloud.google.com/dataplex/docs/search-syntax). - * @type int $page_size - * Optional. Number of results in the search page. If <=0, then defaults - * to 10. Max limit for page_size is 1000. Throws an invalid argument for - * page_size > 1000. - * @type string $page_token - * Optional. Page token received from a previous `SearchEntries` call. Provide - * this to retrieve the subsequent page. - * @type string $order_by - * Optional. Specifies the ordering of results. - * Supported values are: - * * `relevance` - * * `last_modified_timestamp` - * * `last_modified_timestamp asc` - * @type string $scope - * Optional. The scope under which the search should be operating. It must - * either be `organizations/` or `projects/`. If it is - * unspecified, it defaults to the organization where the project provided in - * `name` is located. - * @type bool $semantic_search - * Optional. Specifies whether the search should understand the meaning and - * intent behind the query, rather than just matching keywords. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Required. The project to which the request should be attributed in the - * following form: `projects/{project}/locations/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 project to which the request should be attributed in the - * following form: `projects/{project}/locations/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; - } - - /** - * Required. The query against which entries in scope should be matched. - * The query syntax is defined in [Search syntax for Dataplex Universal - * Catalog](https://cloud.google.com/dataplex/docs/search-syntax). - * - * Generated from protobuf field string query = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getQuery() - { - return $this->query; - } - - /** - * Required. The query against which entries in scope should be matched. - * The query syntax is defined in [Search syntax for Dataplex Universal - * Catalog](https://cloud.google.com/dataplex/docs/search-syntax). - * - * Generated from protobuf field string query = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setQuery($var) - { - GPBUtil::checkString($var, True); - $this->query = $var; - - return $this; - } - - /** - * Optional. Number of results in the search page. If <=0, then defaults - * to 10. Max limit for page_size is 1000. Throws an invalid argument for - * page_size > 1000. - * - * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Number of results in the search page. If <=0, then defaults - * to 10. Max limit for page_size is 1000. Throws an invalid argument for - * page_size > 1000. - * - * 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. Page token received from a previous `SearchEntries` call. Provide - * this to retrieve the subsequent page. - * - * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. Page token received from a previous `SearchEntries` call. Provide - * this to retrieve the subsequent page. - * - * 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. Specifies the ordering of results. - * Supported values are: - * * `relevance` - * * `last_modified_timestamp` - * * `last_modified_timestamp asc` - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Specifies the ordering of results. - * Supported values are: - * * `relevance` - * * `last_modified_timestamp` - * * `last_modified_timestamp asc` - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Optional. The scope under which the search should be operating. It must - * either be `organizations/` or `projects/`. If it is - * unspecified, it defaults to the organization where the project provided in - * `name` is located. - * - * Generated from protobuf field string scope = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getScope() - { - return $this->scope; - } - - /** - * Optional. The scope under which the search should be operating. It must - * either be `organizations/` or `projects/`. If it is - * unspecified, it defaults to the organization where the project provided in - * `name` is located. - * - * Generated from protobuf field string scope = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setScope($var) - { - GPBUtil::checkString($var, True); - $this->scope = $var; - - return $this; - } - - /** - * Optional. Specifies whether the search should understand the meaning and - * intent behind the query, rather than just matching keywords. - * - * Generated from protobuf field bool semantic_search = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getSemanticSearch() - { - return $this->semantic_search; - } - - /** - * Optional. Specifies whether the search should understand the meaning and - * intent behind the query, rather than just matching keywords. - * - * Generated from protobuf field bool semantic_search = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setSemanticSearch($var) - { - GPBUtil::checkBool($var); - $this->semantic_search = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SearchEntriesResponse.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SearchEntriesResponse.php deleted file mode 100644 index 685bb33416f0..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SearchEntriesResponse.php +++ /dev/null @@ -1,179 +0,0 @@ -google.cloud.dataplex.v1.SearchEntriesResponse - */ -class SearchEntriesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The results matching the search query. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.SearchEntriesResult results = 1; - */ - private $results; - /** - * The estimated total number of matching entries. This number isn't - * guaranteed to be accurate. - * - * Generated from protobuf field int32 total_size = 2; - */ - protected $total_size = 0; - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 3; - */ - protected $next_page_token = ''; - /** - * Locations that the service couldn't reach. Search results don't include - * data from these locations. - * - * Generated from protobuf field repeated string unreachable = 4; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\SearchEntriesResult[] $results - * The results matching the search query. - * @type int $total_size - * The estimated total number of matching entries. This number isn't - * guaranteed to be accurate. - * @type string $next_page_token - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * @type string[] $unreachable - * Locations that the service couldn't reach. Search results don't include - * data from these locations. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * The results matching the search query. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.SearchEntriesResult results = 1; - * @return RepeatedField<\Google\Cloud\Dataplex\V1\SearchEntriesResult> - */ - public function getResults() - { - return $this->results; - } - - /** - * The results matching the search query. - * - * Generated from protobuf field repeated .google.cloud.dataplex.v1.SearchEntriesResult results = 1; - * @param \Google\Cloud\Dataplex\V1\SearchEntriesResult[] $var - * @return $this - */ - public function setResults($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\SearchEntriesResult::class); - $this->results = $arr; - - return $this; - } - - /** - * The estimated total number of matching entries. This number isn't - * guaranteed to be accurate. - * - * Generated from protobuf field int32 total_size = 2; - * @return int - */ - public function getTotalSize() - { - return $this->total_size; - } - - /** - * The estimated total number of matching entries. This number isn't - * guaranteed to be accurate. - * - * Generated from protobuf field int32 total_size = 2; - * @param int $var - * @return $this - */ - public function setTotalSize($var) - { - GPBUtil::checkInt32($var); - $this->total_size = $var; - - return $this; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 3; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Token to retrieve the next page of results, or empty if there are no more - * results in the list. - * - * Generated from protobuf field string next_page_token = 3; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Locations that the service couldn't reach. Search results don't include - * data from these locations. - * - * Generated from protobuf field repeated string unreachable = 4; - * @return RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations that the service couldn't reach. Search results don't include - * data from these locations. - * - * Generated from protobuf field repeated string unreachable = 4; - * @param string[] $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SearchEntriesResult.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SearchEntriesResult.php deleted file mode 100644 index ba2453995145..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SearchEntriesResult.php +++ /dev/null @@ -1,166 +0,0 @@ -google.cloud.dataplex.v1.SearchEntriesResult - */ -class SearchEntriesResult extends \Google\Protobuf\Internal\Message -{ - /** - * Linked resource name. - * - * Generated from protobuf field string linked_resource = 8 [deprecated = true]; - * @deprecated - */ - protected $linked_resource = ''; - /** - * Generated from protobuf field .google.cloud.dataplex.v1.Entry dataplex_entry = 9; - */ - protected $dataplex_entry = null; - /** - * Snippets. - * - * Generated from protobuf field .google.cloud.dataplex.v1.SearchEntriesResult.Snippets snippets = 12 [deprecated = true]; - * @deprecated - */ - protected $snippets = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $linked_resource - * Linked resource name. - * @type \Google\Cloud\Dataplex\V1\Entry $dataplex_entry - * @type \Google\Cloud\Dataplex\V1\SearchEntriesResult\Snippets $snippets - * Snippets. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Linked resource name. - * - * Generated from protobuf field string linked_resource = 8 [deprecated = true]; - * @return string - * @deprecated - */ - public function getLinkedResource() - { - if ($this->linked_resource !== '') { - @trigger_error('linked_resource is deprecated.', E_USER_DEPRECATED); - } - return $this->linked_resource; - } - - /** - * Linked resource name. - * - * Generated from protobuf field string linked_resource = 8 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setLinkedResource($var) - { - @trigger_error('linked_resource is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->linked_resource = $var; - - return $this; - } - - /** - * Generated from protobuf field .google.cloud.dataplex.v1.Entry dataplex_entry = 9; - * @return \Google\Cloud\Dataplex\V1\Entry|null - */ - public function getDataplexEntry() - { - return $this->dataplex_entry; - } - - public function hasDataplexEntry() - { - return isset($this->dataplex_entry); - } - - public function clearDataplexEntry() - { - unset($this->dataplex_entry); - } - - /** - * Generated from protobuf field .google.cloud.dataplex.v1.Entry dataplex_entry = 9; - * @param \Google\Cloud\Dataplex\V1\Entry $var - * @return $this - */ - public function setDataplexEntry($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Entry::class); - $this->dataplex_entry = $var; - - return $this; - } - - /** - * Snippets. - * - * Generated from protobuf field .google.cloud.dataplex.v1.SearchEntriesResult.Snippets snippets = 12 [deprecated = true]; - * @return \Google\Cloud\Dataplex\V1\SearchEntriesResult\Snippets|null - * @deprecated - */ - public function getSnippets() - { - if (isset($this->snippets)) { - @trigger_error('snippets is deprecated.', E_USER_DEPRECATED); - } - return $this->snippets; - } - - public function hasSnippets() - { - if (isset($this->snippets)) { - @trigger_error('snippets is deprecated.', E_USER_DEPRECATED); - } - return isset($this->snippets); - } - - public function clearSnippets() - { - @trigger_error('snippets is deprecated.', E_USER_DEPRECATED); - unset($this->snippets); - } - - /** - * Snippets. - * - * Generated from protobuf field .google.cloud.dataplex.v1.SearchEntriesResult.Snippets snippets = 12 [deprecated = true]; - * @param \Google\Cloud\Dataplex\V1\SearchEntriesResult\Snippets $var - * @return $this - * @deprecated - */ - public function setSnippets($var) - { - @trigger_error('snippets is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\SearchEntriesResult\Snippets::class); - $this->snippets = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SearchEntriesResult/Snippets.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SearchEntriesResult/Snippets.php deleted file mode 100644 index 9ce8e6e57efd..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SearchEntriesResult/Snippets.php +++ /dev/null @@ -1,90 +0,0 @@ -google.cloud.dataplex.v1.SearchEntriesResult.Snippets - */ -class Snippets extends \Google\Protobuf\Internal\Message -{ - /** - * Entry - * - * Generated from protobuf field .google.cloud.dataplex.v1.Entry dataplex_entry = 1 [deprecated = true]; - * @deprecated - */ - protected $dataplex_entry = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\Entry $dataplex_entry - * Entry - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Entry - * - * Generated from protobuf field .google.cloud.dataplex.v1.Entry dataplex_entry = 1 [deprecated = true]; - * @return \Google\Cloud\Dataplex\V1\Entry|null - * @deprecated - */ - public function getDataplexEntry() - { - if (isset($this->dataplex_entry)) { - @trigger_error('dataplex_entry is deprecated.', E_USER_DEPRECATED); - } - return $this->dataplex_entry; - } - - public function hasDataplexEntry() - { - if (isset($this->dataplex_entry)) { - @trigger_error('dataplex_entry is deprecated.', E_USER_DEPRECATED); - } - return isset($this->dataplex_entry); - } - - public function clearDataplexEntry() - { - @trigger_error('dataplex_entry is deprecated.', E_USER_DEPRECATED); - unset($this->dataplex_entry); - } - - /** - * Entry - * - * Generated from protobuf field .google.cloud.dataplex.v1.Entry dataplex_entry = 1 [deprecated = true]; - * @param \Google\Cloud\Dataplex\V1\Entry $var - * @return $this - * @deprecated - */ - public function setDataplexEntry($var) - { - @trigger_error('dataplex_entry is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Entry::class); - $this->dataplex_entry = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Session.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Session.php deleted file mode 100644 index 33982d9128b8..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Session.php +++ /dev/null @@ -1,183 +0,0 @@ -google.cloud.dataplex.v1.Session - */ -class Session extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The relative resource name of the content, of the form: - * projects/{project_id}/locations/{location_id}/lakes/{lake_id}/environment/{environment_id}/sessions/{session_id} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Output only. Email of user running the session. - * - * Generated from protobuf field string user_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $user_id = ''; - /** - * Output only. Session start time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. State of Session - * - * Generated from protobuf field .google.cloud.dataplex.v1.State state = 4 [(.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. The relative resource name of the content, of the form: - * projects/{project_id}/locations/{location_id}/lakes/{lake_id}/environment/{environment_id}/sessions/{session_id} - * @type string $user_id - * Output only. Email of user running the session. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Session start time. - * @type int $state - * Output only. State of Session - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Analyze::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The relative resource name of the content, of the form: - * projects/{project_id}/locations/{location_id}/lakes/{lake_id}/environment/{environment_id}/sessions/{session_id} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The relative resource name of the content, of the form: - * projects/{project_id}/locations/{location_id}/lakes/{lake_id}/environment/{environment_id}/sessions/{session_id} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. Email of user running the session. - * - * Generated from protobuf field string user_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUserId() - { - return $this->user_id; - } - - /** - * Output only. Email of user running the session. - * - * Generated from protobuf field string user_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUserId($var) - { - GPBUtil::checkString($var, True); - $this->user_id = $var; - - return $this; - } - - /** - * Output only. Session start time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. Session start time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. State of Session - * - * Generated from protobuf field .google.cloud.dataplex.v1.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. State of Session - * - * Generated from protobuf field .google.cloud.dataplex.v1.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\State::class); - $this->state = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SessionEvent.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SessionEvent.php deleted file mode 100644 index 44ae01d973a6..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SessionEvent.php +++ /dev/null @@ -1,332 +0,0 @@ -google.cloud.dataplex.v1.SessionEvent - */ -class SessionEvent extends \Google\Protobuf\Internal\Message -{ - /** - * The log message. - * - * Generated from protobuf field string message = 1; - */ - protected $message = ''; - /** - * The information about the user that created the session. It will be the - * email address of the user. - * - * Generated from protobuf field string user_id = 2; - */ - protected $user_id = ''; - /** - * Unique identifier for the session. - * - * Generated from protobuf field string session_id = 3; - */ - protected $session_id = ''; - /** - * The type of the event. - * - * Generated from protobuf field .google.cloud.dataplex.v1.SessionEvent.EventType type = 4; - */ - protected $type = 0; - /** - * The status of the event. - * - * Generated from protobuf field bool event_succeeded = 6; - */ - protected $event_succeeded = false; - /** - * If the session is associated with an environment with fast startup enabled, - * and was created before being assigned to a user. - * - * Generated from protobuf field bool fast_startup_enabled = 7; - */ - protected $fast_startup_enabled = false; - /** - * The idle duration of a warm pooled session before it is assigned to user. - * - * Generated from protobuf field .google.protobuf.Duration unassigned_duration = 8; - */ - protected $unassigned_duration = null; - protected $detail; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $message - * The log message. - * @type string $user_id - * The information about the user that created the session. It will be the - * email address of the user. - * @type string $session_id - * Unique identifier for the session. - * @type int $type - * The type of the event. - * @type \Google\Cloud\Dataplex\V1\SessionEvent\QueryDetail $query - * The execution details of the query. - * @type bool $event_succeeded - * The status of the event. - * @type bool $fast_startup_enabled - * If the session is associated with an environment with fast startup enabled, - * and was created before being assigned to a user. - * @type \Google\Protobuf\Duration $unassigned_duration - * The idle duration of a warm pooled session before it is assigned to user. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Logs::initOnce(); - parent::__construct($data); - } - - /** - * The log message. - * - * Generated from protobuf field string message = 1; - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * The log message. - * - * Generated from protobuf field string message = 1; - * @param string $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkString($var, True); - $this->message = $var; - - return $this; - } - - /** - * The information about the user that created the session. It will be the - * email address of the user. - * - * Generated from protobuf field string user_id = 2; - * @return string - */ - public function getUserId() - { - return $this->user_id; - } - - /** - * The information about the user that created the session. It will be the - * email address of the user. - * - * Generated from protobuf field string user_id = 2; - * @param string $var - * @return $this - */ - public function setUserId($var) - { - GPBUtil::checkString($var, True); - $this->user_id = $var; - - return $this; - } - - /** - * Unique identifier for the session. - * - * Generated from protobuf field string session_id = 3; - * @return string - */ - public function getSessionId() - { - return $this->session_id; - } - - /** - * Unique identifier for the session. - * - * Generated from protobuf field string session_id = 3; - * @param string $var - * @return $this - */ - public function setSessionId($var) - { - GPBUtil::checkString($var, True); - $this->session_id = $var; - - return $this; - } - - /** - * The type of the event. - * - * Generated from protobuf field .google.cloud.dataplex.v1.SessionEvent.EventType type = 4; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * The type of the event. - * - * Generated from protobuf field .google.cloud.dataplex.v1.SessionEvent.EventType type = 4; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\SessionEvent\EventType::class); - $this->type = $var; - - return $this; - } - - /** - * The execution details of the query. - * - * Generated from protobuf field .google.cloud.dataplex.v1.SessionEvent.QueryDetail query = 5; - * @return \Google\Cloud\Dataplex\V1\SessionEvent\QueryDetail|null - */ - public function getQuery() - { - return $this->readOneof(5); - } - - public function hasQuery() - { - return $this->hasOneof(5); - } - - /** - * The execution details of the query. - * - * Generated from protobuf field .google.cloud.dataplex.v1.SessionEvent.QueryDetail query = 5; - * @param \Google\Cloud\Dataplex\V1\SessionEvent\QueryDetail $var - * @return $this - */ - public function setQuery($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\SessionEvent\QueryDetail::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * The status of the event. - * - * Generated from protobuf field bool event_succeeded = 6; - * @return bool - */ - public function getEventSucceeded() - { - return $this->event_succeeded; - } - - /** - * The status of the event. - * - * Generated from protobuf field bool event_succeeded = 6; - * @param bool $var - * @return $this - */ - public function setEventSucceeded($var) - { - GPBUtil::checkBool($var); - $this->event_succeeded = $var; - - return $this; - } - - /** - * If the session is associated with an environment with fast startup enabled, - * and was created before being assigned to a user. - * - * Generated from protobuf field bool fast_startup_enabled = 7; - * @return bool - */ - public function getFastStartupEnabled() - { - return $this->fast_startup_enabled; - } - - /** - * If the session is associated with an environment with fast startup enabled, - * and was created before being assigned to a user. - * - * Generated from protobuf field bool fast_startup_enabled = 7; - * @param bool $var - * @return $this - */ - public function setFastStartupEnabled($var) - { - GPBUtil::checkBool($var); - $this->fast_startup_enabled = $var; - - return $this; - } - - /** - * The idle duration of a warm pooled session before it is assigned to user. - * - * Generated from protobuf field .google.protobuf.Duration unassigned_duration = 8; - * @return \Google\Protobuf\Duration|null - */ - public function getUnassignedDuration() - { - return $this->unassigned_duration; - } - - public function hasUnassignedDuration() - { - return isset($this->unassigned_duration); - } - - public function clearUnassignedDuration() - { - unset($this->unassigned_duration); - } - - /** - * The idle duration of a warm pooled session before it is assigned to user. - * - * Generated from protobuf field .google.protobuf.Duration unassigned_duration = 8; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setUnassignedDuration($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->unassigned_duration = $var; - - return $this; - } - - /** - * @return string - */ - public function getDetail() - { - return $this->whichOneof("detail"); - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SessionEvent/EventType.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SessionEvent/EventType.php deleted file mode 100644 index f95d0d8a4abf..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SessionEvent/EventType.php +++ /dev/null @@ -1,76 +0,0 @@ -google.cloud.dataplex.v1.SessionEvent.EventType - */ -class EventType -{ - /** - * An unspecified event type. - * - * Generated from protobuf enum EVENT_TYPE_UNSPECIFIED = 0; - */ - const EVENT_TYPE_UNSPECIFIED = 0; - /** - * Event when the session is assigned to a user. - * - * Generated from protobuf enum START = 1; - */ - const START = 1; - /** - * Event for stop of a session. - * - * Generated from protobuf enum STOP = 2; - */ - const STOP = 2; - /** - * Query events in the session. - * - * Generated from protobuf enum QUERY = 3; - */ - const QUERY = 3; - /** - * Event for creation of a cluster. It is not yet assigned to a user. - * This comes before START in the sequence - * - * Generated from protobuf enum CREATE = 4; - */ - const CREATE = 4; - - private static $valueToName = [ - self::EVENT_TYPE_UNSPECIFIED => 'EVENT_TYPE_UNSPECIFIED', - self::START => 'START', - self::STOP => 'STOP', - self::QUERY => 'QUERY', - self::CREATE => 'CREATE', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SessionEvent/QueryDetail.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SessionEvent/QueryDetail.php deleted file mode 100644 index 8e2b8f1359ee..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SessionEvent/QueryDetail.php +++ /dev/null @@ -1,247 +0,0 @@ -google.cloud.dataplex.v1.SessionEvent.QueryDetail - */ -class QueryDetail extends \Google\Protobuf\Internal\Message -{ - /** - * The unique Query id identifying the query. - * - * Generated from protobuf field string query_id = 1; - */ - protected $query_id = ''; - /** - * The query text executed. - * - * Generated from protobuf field string query_text = 2; - */ - protected $query_text = ''; - /** - * Query Execution engine. - * - * Generated from protobuf field .google.cloud.dataplex.v1.SessionEvent.QueryDetail.Engine engine = 3; - */ - protected $engine = 0; - /** - * Time taken for execution of the query. - * - * Generated from protobuf field .google.protobuf.Duration duration = 4; - */ - protected $duration = null; - /** - * The size of results the query produced. - * - * Generated from protobuf field int64 result_size_bytes = 5; - */ - protected $result_size_bytes = 0; - /** - * The data processed by the query. - * - * Generated from protobuf field int64 data_processed_bytes = 6; - */ - protected $data_processed_bytes = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $query_id - * The unique Query id identifying the query. - * @type string $query_text - * The query text executed. - * @type int $engine - * Query Execution engine. - * @type \Google\Protobuf\Duration $duration - * Time taken for execution of the query. - * @type int|string $result_size_bytes - * The size of results the query produced. - * @type int|string $data_processed_bytes - * The data processed by the query. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Logs::initOnce(); - parent::__construct($data); - } - - /** - * The unique Query id identifying the query. - * - * Generated from protobuf field string query_id = 1; - * @return string - */ - public function getQueryId() - { - return $this->query_id; - } - - /** - * The unique Query id identifying the query. - * - * Generated from protobuf field string query_id = 1; - * @param string $var - * @return $this - */ - public function setQueryId($var) - { - GPBUtil::checkString($var, True); - $this->query_id = $var; - - return $this; - } - - /** - * The query text executed. - * - * Generated from protobuf field string query_text = 2; - * @return string - */ - public function getQueryText() - { - return $this->query_text; - } - - /** - * The query text executed. - * - * Generated from protobuf field string query_text = 2; - * @param string $var - * @return $this - */ - public function setQueryText($var) - { - GPBUtil::checkString($var, True); - $this->query_text = $var; - - return $this; - } - - /** - * Query Execution engine. - * - * Generated from protobuf field .google.cloud.dataplex.v1.SessionEvent.QueryDetail.Engine engine = 3; - * @return int - */ - public function getEngine() - { - return $this->engine; - } - - /** - * Query Execution engine. - * - * Generated from protobuf field .google.cloud.dataplex.v1.SessionEvent.QueryDetail.Engine engine = 3; - * @param int $var - * @return $this - */ - public function setEngine($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\SessionEvent\QueryDetail\Engine::class); - $this->engine = $var; - - return $this; - } - - /** - * Time taken for execution of the query. - * - * Generated from protobuf field .google.protobuf.Duration duration = 4; - * @return \Google\Protobuf\Duration|null - */ - public function getDuration() - { - return $this->duration; - } - - public function hasDuration() - { - return isset($this->duration); - } - - public function clearDuration() - { - unset($this->duration); - } - - /** - * Time taken for execution of the query. - * - * Generated from protobuf field .google.protobuf.Duration duration = 4; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setDuration($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->duration = $var; - - return $this; - } - - /** - * The size of results the query produced. - * - * Generated from protobuf field int64 result_size_bytes = 5; - * @return int|string - */ - public function getResultSizeBytes() - { - return $this->result_size_bytes; - } - - /** - * The size of results the query produced. - * - * Generated from protobuf field int64 result_size_bytes = 5; - * @param int|string $var - * @return $this - */ - public function setResultSizeBytes($var) - { - GPBUtil::checkInt64($var); - $this->result_size_bytes = $var; - - return $this; - } - - /** - * The data processed by the query. - * - * Generated from protobuf field int64 data_processed_bytes = 6; - * @return int|string - */ - public function getDataProcessedBytes() - { - return $this->data_processed_bytes; - } - - /** - * The data processed by the query. - * - * Generated from protobuf field int64 data_processed_bytes = 6; - * @param int|string $var - * @return $this - */ - public function setDataProcessedBytes($var) - { - GPBUtil::checkInt64($var); - $this->data_processed_bytes = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SessionEvent/QueryDetail/Engine.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SessionEvent/QueryDetail/Engine.php deleted file mode 100644 index 2182e0760efb..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/SessionEvent/QueryDetail/Engine.php +++ /dev/null @@ -1,61 +0,0 @@ -google.cloud.dataplex.v1.SessionEvent.QueryDetail.Engine - */ -class Engine -{ - /** - * An unspecified Engine type. - * - * Generated from protobuf enum ENGINE_UNSPECIFIED = 0; - */ - const ENGINE_UNSPECIFIED = 0; - /** - * Spark-sql engine is specified in Query. - * - * Generated from protobuf enum SPARK_SQL = 1; - */ - const SPARK_SQL = 1; - /** - * BigQuery engine is specified in Query. - * - * Generated from protobuf enum BIGQUERY = 2; - */ - const BIGQUERY = 2; - - private static $valueToName = [ - self::ENGINE_UNSPECIFIED => 'ENGINE_UNSPECIFIED', - self::SPARK_SQL => 'SPARK_SQL', - self::BIGQUERY => 'BIGQUERY', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/State.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/State.php deleted file mode 100644 index 1bd046ff27a4..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/State.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.dataplex.v1.State - */ -class State -{ - /** - * State is not specified. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * Resource is active, i.e., ready to use. - * - * Generated from protobuf enum ACTIVE = 1; - */ - const ACTIVE = 1; - /** - * Resource is under creation. - * - * Generated from protobuf enum CREATING = 2; - */ - const CREATING = 2; - /** - * Resource is under deletion. - * - * Generated from protobuf enum DELETING = 3; - */ - const DELETING = 3; - /** - * Resource is active but has unresolved actions. - * - * Generated from protobuf enum ACTION_REQUIRED = 4; - */ - const ACTION_REQUIRED = 4; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::ACTIVE => 'ACTIVE', - self::CREATING => 'CREATING', - self::DELETING => 'DELETING', - self::ACTION_REQUIRED => 'ACTION_REQUIRED', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageAccess.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageAccess.php deleted file mode 100644 index a859ae31d2ff..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageAccess.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.dataplex.v1.StorageAccess - */ -class StorageAccess extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Describes the read access mechanism of the data. Not user - * settable. - * - * Generated from protobuf field .google.cloud.dataplex.v1.StorageAccess.AccessMode read = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $read = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $read - * Output only. Describes the read access mechanism of the data. Not user - * settable. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Metadata::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Describes the read access mechanism of the data. Not user - * settable. - * - * Generated from protobuf field .google.cloud.dataplex.v1.StorageAccess.AccessMode read = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getRead() - { - return $this->read; - } - - /** - * Output only. Describes the read access mechanism of the data. Not user - * settable. - * - * Generated from protobuf field .google.cloud.dataplex.v1.StorageAccess.AccessMode read = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setRead($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\StorageAccess\AccessMode::class); - $this->read = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageAccess/AccessMode.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageAccess/AccessMode.php deleted file mode 100644 index a8ef48d2ac3b..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageAccess/AccessMode.php +++ /dev/null @@ -1,61 +0,0 @@ -google.cloud.dataplex.v1.StorageAccess.AccessMode - */ -class AccessMode -{ - /** - * Access mode unspecified. - * - * Generated from protobuf enum ACCESS_MODE_UNSPECIFIED = 0; - */ - const ACCESS_MODE_UNSPECIFIED = 0; - /** - * Default. Data is accessed directly using storage APIs. - * - * Generated from protobuf enum DIRECT = 1; - */ - const DIRECT = 1; - /** - * Data is accessed through a managed interface using BigQuery APIs. - * - * Generated from protobuf enum MANAGED = 2; - */ - const MANAGED = 2; - - private static $valueToName = [ - self::ACCESS_MODE_UNSPECIFIED => 'ACCESS_MODE_UNSPECIFIED', - self::DIRECT => 'DIRECT', - self::MANAGED => 'MANAGED', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageFormat.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageFormat.php deleted file mode 100644 index 8fb07a2b7405..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageFormat.php +++ /dev/null @@ -1,311 +0,0 @@ -google.cloud.dataplex.v1.StorageFormat - */ -class StorageFormat extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The data format associated with the stored data, which - * represents content type values. The value is inferred from mime type. - * - * Generated from protobuf field .google.cloud.dataplex.v1.StorageFormat.Format format = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $format = 0; - /** - * Optional. The compression type associated with the stored data. - * If unspecified, the data is uncompressed. - * - * Generated from protobuf field .google.cloud.dataplex.v1.StorageFormat.CompressionFormat compression_format = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $compression_format = 0; - /** - * Required. The mime type descriptor for the data. Must match the pattern - * {type}/{subtype}. Supported values: - * - application/x-parquet - * - application/x-avro - * - application/x-orc - * - application/x-tfrecord - * - application/x-parquet+iceberg - * - application/x-avro+iceberg - * - application/x-orc+iceberg - * - application/json - * - application/{subtypes} - * - text/csv - * - text/ - * - image/{image subtype} - * - video/{video subtype} - * - audio/{audio subtype} - * - * Generated from protobuf field string mime_type = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $mime_type = ''; - protected $options; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $format - * Output only. The data format associated with the stored data, which - * represents content type values. The value is inferred from mime type. - * @type int $compression_format - * Optional. The compression type associated with the stored data. - * If unspecified, the data is uncompressed. - * @type string $mime_type - * Required. The mime type descriptor for the data. Must match the pattern - * {type}/{subtype}. Supported values: - * - application/x-parquet - * - application/x-avro - * - application/x-orc - * - application/x-tfrecord - * - application/x-parquet+iceberg - * - application/x-avro+iceberg - * - application/x-orc+iceberg - * - application/json - * - application/{subtypes} - * - text/csv - * - text/ - * - image/{image subtype} - * - video/{video subtype} - * - audio/{audio subtype} - * @type \Google\Cloud\Dataplex\V1\StorageFormat\CsvOptions $csv - * Optional. Additional information about CSV formatted data. - * @type \Google\Cloud\Dataplex\V1\StorageFormat\JsonOptions $json - * Optional. Additional information about CSV formatted data. - * @type \Google\Cloud\Dataplex\V1\StorageFormat\IcebergOptions $iceberg - * Optional. Additional information about iceberg tables. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Metadata::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The data format associated with the stored data, which - * represents content type values. The value is inferred from mime type. - * - * Generated from protobuf field .google.cloud.dataplex.v1.StorageFormat.Format format = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getFormat() - { - return $this->format; - } - - /** - * Output only. The data format associated with the stored data, which - * represents content type values. The value is inferred from mime type. - * - * Generated from protobuf field .google.cloud.dataplex.v1.StorageFormat.Format format = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setFormat($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\StorageFormat\Format::class); - $this->format = $var; - - return $this; - } - - /** - * Optional. The compression type associated with the stored data. - * If unspecified, the data is uncompressed. - * - * Generated from protobuf field .google.cloud.dataplex.v1.StorageFormat.CompressionFormat compression_format = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getCompressionFormat() - { - return $this->compression_format; - } - - /** - * Optional. The compression type associated with the stored data. - * If unspecified, the data is uncompressed. - * - * Generated from protobuf field .google.cloud.dataplex.v1.StorageFormat.CompressionFormat compression_format = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setCompressionFormat($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\StorageFormat\CompressionFormat::class); - $this->compression_format = $var; - - return $this; - } - - /** - * Required. The mime type descriptor for the data. Must match the pattern - * {type}/{subtype}. Supported values: - * - application/x-parquet - * - application/x-avro - * - application/x-orc - * - application/x-tfrecord - * - application/x-parquet+iceberg - * - application/x-avro+iceberg - * - application/x-orc+iceberg - * - application/json - * - application/{subtypes} - * - text/csv - * - text/ - * - image/{image subtype} - * - video/{video subtype} - * - audio/{audio subtype} - * - * Generated from protobuf field string mime_type = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getMimeType() - { - return $this->mime_type; - } - - /** - * Required. The mime type descriptor for the data. Must match the pattern - * {type}/{subtype}. Supported values: - * - application/x-parquet - * - application/x-avro - * - application/x-orc - * - application/x-tfrecord - * - application/x-parquet+iceberg - * - application/x-avro+iceberg - * - application/x-orc+iceberg - * - application/json - * - application/{subtypes} - * - text/csv - * - text/ - * - image/{image subtype} - * - video/{video subtype} - * - audio/{audio subtype} - * - * Generated from protobuf field string mime_type = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setMimeType($var) - { - GPBUtil::checkString($var, True); - $this->mime_type = $var; - - return $this; - } - - /** - * Optional. Additional information about CSV formatted data. - * - * Generated from protobuf field .google.cloud.dataplex.v1.StorageFormat.CsvOptions csv = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dataplex\V1\StorageFormat\CsvOptions|null - */ - public function getCsv() - { - return $this->readOneof(10); - } - - public function hasCsv() - { - return $this->hasOneof(10); - } - - /** - * Optional. Additional information about CSV formatted data. - * - * Generated from protobuf field .google.cloud.dataplex.v1.StorageFormat.CsvOptions csv = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataplex\V1\StorageFormat\CsvOptions $var - * @return $this - */ - public function setCsv($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\StorageFormat\CsvOptions::class); - $this->writeOneof(10, $var); - - return $this; - } - - /** - * Optional. Additional information about CSV formatted data. - * - * Generated from protobuf field .google.cloud.dataplex.v1.StorageFormat.JsonOptions json = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dataplex\V1\StorageFormat\JsonOptions|null - */ - public function getJson() - { - return $this->readOneof(11); - } - - public function hasJson() - { - return $this->hasOneof(11); - } - - /** - * Optional. Additional information about CSV formatted data. - * - * Generated from protobuf field .google.cloud.dataplex.v1.StorageFormat.JsonOptions json = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataplex\V1\StorageFormat\JsonOptions $var - * @return $this - */ - public function setJson($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\StorageFormat\JsonOptions::class); - $this->writeOneof(11, $var); - - return $this; - } - - /** - * Optional. Additional information about iceberg tables. - * - * Generated from protobuf field .google.cloud.dataplex.v1.StorageFormat.IcebergOptions iceberg = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dataplex\V1\StorageFormat\IcebergOptions|null - */ - public function getIceberg() - { - return $this->readOneof(12); - } - - public function hasIceberg() - { - return $this->hasOneof(12); - } - - /** - * Optional. Additional information about iceberg tables. - * - * Generated from protobuf field .google.cloud.dataplex.v1.StorageFormat.IcebergOptions iceberg = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataplex\V1\StorageFormat\IcebergOptions $var - * @return $this - */ - public function setIceberg($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\StorageFormat\IcebergOptions::class); - $this->writeOneof(12, $var); - - return $this; - } - - /** - * @return string - */ - public function getOptions() - { - return $this->whichOneof("options"); - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageFormat/CompressionFormat.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageFormat/CompressionFormat.php deleted file mode 100644 index 437aa2881b71..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageFormat/CompressionFormat.php +++ /dev/null @@ -1,61 +0,0 @@ -google.cloud.dataplex.v1.StorageFormat.CompressionFormat - */ -class CompressionFormat -{ - /** - * CompressionFormat unspecified. Implies uncompressed data. - * - * Generated from protobuf enum COMPRESSION_FORMAT_UNSPECIFIED = 0; - */ - const COMPRESSION_FORMAT_UNSPECIFIED = 0; - /** - * GZip compressed set of files. - * - * Generated from protobuf enum GZIP = 2; - */ - const GZIP = 2; - /** - * BZip2 compressed set of files. - * - * Generated from protobuf enum BZIP2 = 3; - */ - const BZIP2 = 3; - - private static $valueToName = [ - self::COMPRESSION_FORMAT_UNSPECIFIED => 'COMPRESSION_FORMAT_UNSPECIFIED', - self::GZIP => 'GZIP', - self::BZIP2 => 'BZIP2', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageFormat/CsvOptions.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageFormat/CsvOptions.php deleted file mode 100644 index 0d0faf8b26b6..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageFormat/CsvOptions.php +++ /dev/null @@ -1,185 +0,0 @@ -google.cloud.dataplex.v1.StorageFormat.CsvOptions - */ -class CsvOptions extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The character encoding of the data. Accepts "US-ASCII", - * "UTF-8", and "ISO-8859-1". Defaults to UTF-8 if unspecified. - * - * Generated from protobuf field string encoding = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $encoding = ''; - /** - * Optional. The number of rows to interpret as header rows that should be - * skipped when reading data rows. Defaults to 0. - * - * Generated from protobuf field int32 header_rows = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $header_rows = 0; - /** - * Optional. The delimiter used to separate values. Defaults to ','. - * - * Generated from protobuf field string delimiter = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $delimiter = ''; - /** - * Optional. The character used to quote column values. Accepts '"' - * (double quotation mark) or ''' (single quotation mark). Defaults to - * '"' (double quotation mark) if unspecified. - * - * Generated from protobuf field string quote = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $quote = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $encoding - * Optional. The character encoding of the data. Accepts "US-ASCII", - * "UTF-8", and "ISO-8859-1". Defaults to UTF-8 if unspecified. - * @type int $header_rows - * Optional. The number of rows to interpret as header rows that should be - * skipped when reading data rows. Defaults to 0. - * @type string $delimiter - * Optional. The delimiter used to separate values. Defaults to ','. - * @type string $quote - * Optional. The character used to quote column values. Accepts '"' - * (double quotation mark) or ''' (single quotation mark). Defaults to - * '"' (double quotation mark) if unspecified. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Metadata::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The character encoding of the data. Accepts "US-ASCII", - * "UTF-8", and "ISO-8859-1". Defaults to UTF-8 if unspecified. - * - * Generated from protobuf field string encoding = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEncoding() - { - return $this->encoding; - } - - /** - * Optional. The character encoding of the data. Accepts "US-ASCII", - * "UTF-8", and "ISO-8859-1". Defaults to UTF-8 if unspecified. - * - * Generated from protobuf field string encoding = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setEncoding($var) - { - GPBUtil::checkString($var, True); - $this->encoding = $var; - - return $this; - } - - /** - * Optional. The number of rows to interpret as header rows that should be - * skipped when reading data rows. Defaults to 0. - * - * Generated from protobuf field int32 header_rows = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getHeaderRows() - { - return $this->header_rows; - } - - /** - * Optional. The number of rows to interpret as header rows that should be - * skipped when reading data rows. Defaults to 0. - * - * Generated from protobuf field int32 header_rows = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setHeaderRows($var) - { - GPBUtil::checkInt32($var); - $this->header_rows = $var; - - return $this; - } - - /** - * Optional. The delimiter used to separate values. Defaults to ','. - * - * Generated from protobuf field string delimiter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDelimiter() - { - return $this->delimiter; - } - - /** - * Optional. The delimiter used to separate values. Defaults to ','. - * - * Generated from protobuf field string delimiter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDelimiter($var) - { - GPBUtil::checkString($var, True); - $this->delimiter = $var; - - return $this; - } - - /** - * Optional. The character used to quote column values. Accepts '"' - * (double quotation mark) or ''' (single quotation mark). Defaults to - * '"' (double quotation mark) if unspecified. - * - * Generated from protobuf field string quote = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getQuote() - { - return $this->quote; - } - - /** - * Optional. The character used to quote column values. Accepts '"' - * (double quotation mark) or ''' (single quotation mark). Defaults to - * '"' (double quotation mark) if unspecified. - * - * Generated from protobuf field string quote = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setQuote($var) - { - GPBUtil::checkString($var, True); - $this->quote = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageFormat/Format.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageFormat/Format.php deleted file mode 100644 index 034df0c2839c..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageFormat/Format.php +++ /dev/null @@ -1,131 +0,0 @@ -google.cloud.dataplex.v1.StorageFormat.Format - */ -class Format -{ - /** - * Format unspecified. - * - * Generated from protobuf enum FORMAT_UNSPECIFIED = 0; - */ - const FORMAT_UNSPECIFIED = 0; - /** - * Parquet-formatted structured data. - * - * Generated from protobuf enum PARQUET = 1; - */ - const PARQUET = 1; - /** - * Avro-formatted structured data. - * - * Generated from protobuf enum AVRO = 2; - */ - const AVRO = 2; - /** - * Orc-formatted structured data. - * - * Generated from protobuf enum ORC = 3; - */ - const ORC = 3; - /** - * Csv-formatted semi-structured data. - * - * Generated from protobuf enum CSV = 100; - */ - const CSV = 100; - /** - * Json-formatted semi-structured data. - * - * Generated from protobuf enum JSON = 101; - */ - const JSON = 101; - /** - * Image data formats (such as jpg and png). - * - * Generated from protobuf enum IMAGE = 200; - */ - const IMAGE = 200; - /** - * Audio data formats (such as mp3, and wav). - * - * Generated from protobuf enum AUDIO = 201; - */ - const AUDIO = 201; - /** - * Video data formats (such as mp4 and mpg). - * - * Generated from protobuf enum VIDEO = 202; - */ - const VIDEO = 202; - /** - * Textual data formats (such as txt and xml). - * - * Generated from protobuf enum TEXT = 203; - */ - const TEXT = 203; - /** - * TensorFlow record format. - * - * Generated from protobuf enum TFRECORD = 204; - */ - const TFRECORD = 204; - /** - * Data that doesn't match a specific format. - * - * Generated from protobuf enum OTHER = 1000; - */ - const OTHER = 1000; - /** - * Data of an unknown format. - * - * Generated from protobuf enum UNKNOWN = 1001; - */ - const UNKNOWN = 1001; - - private static $valueToName = [ - self::FORMAT_UNSPECIFIED => 'FORMAT_UNSPECIFIED', - self::PARQUET => 'PARQUET', - self::AVRO => 'AVRO', - self::ORC => 'ORC', - self::CSV => 'CSV', - self::JSON => 'JSON', - self::IMAGE => 'IMAGE', - self::AUDIO => 'AUDIO', - self::VIDEO => 'VIDEO', - self::TEXT => 'TEXT', - self::TFRECORD => 'TFRECORD', - self::OTHER => 'OTHER', - self::UNKNOWN => 'UNKNOWN', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageFormat/IcebergOptions.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageFormat/IcebergOptions.php deleted file mode 100644 index 6e53301b0a4b..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageFormat/IcebergOptions.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.dataplex.v1.StorageFormat.IcebergOptions - */ -class IcebergOptions extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The location of where the iceberg metadata is present, must be - * within the table path - * - * Generated from protobuf field string metadata_location = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $metadata_location = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $metadata_location - * Optional. The location of where the iceberg metadata is present, must be - * within the table path - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Metadata::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The location of where the iceberg metadata is present, must be - * within the table path - * - * Generated from protobuf field string metadata_location = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getMetadataLocation() - { - return $this->metadata_location; - } - - /** - * Optional. The location of where the iceberg metadata is present, must be - * within the table path - * - * Generated from protobuf field string metadata_location = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setMetadataLocation($var) - { - GPBUtil::checkString($var, True); - $this->metadata_location = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageFormat/JsonOptions.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageFormat/JsonOptions.php deleted file mode 100644 index 2bdd613a3a08..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageFormat/JsonOptions.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.dataplex.v1.StorageFormat.JsonOptions - */ -class JsonOptions extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The character encoding of the data. Accepts "US-ASCII", "UTF-8" - * and "ISO-8859-1". Defaults to UTF-8 if not specified. - * - * Generated from protobuf field string encoding = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $encoding = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $encoding - * Optional. The character encoding of the data. Accepts "US-ASCII", "UTF-8" - * and "ISO-8859-1". Defaults to UTF-8 if not specified. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Metadata::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The character encoding of the data. Accepts "US-ASCII", "UTF-8" - * and "ISO-8859-1". Defaults to UTF-8 if not specified. - * - * Generated from protobuf field string encoding = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEncoding() - { - return $this->encoding; - } - - /** - * Optional. The character encoding of the data. Accepts "US-ASCII", "UTF-8" - * and "ISO-8859-1". Defaults to UTF-8 if not specified. - * - * Generated from protobuf field string encoding = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setEncoding($var) - { - GPBUtil::checkString($var, True); - $this->encoding = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageSystem.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageSystem.php deleted file mode 100644 index e5483839dc93..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/StorageSystem.php +++ /dev/null @@ -1,61 +0,0 @@ -google.cloud.dataplex.v1.StorageSystem - */ -class StorageSystem -{ - /** - * Storage system unspecified. - * - * Generated from protobuf enum STORAGE_SYSTEM_UNSPECIFIED = 0; - */ - const STORAGE_SYSTEM_UNSPECIFIED = 0; - /** - * The entity data is contained within a Cloud Storage bucket. - * - * Generated from protobuf enum CLOUD_STORAGE = 1; - */ - const CLOUD_STORAGE = 1; - /** - * The entity data is contained within a BigQuery dataset. - * - * Generated from protobuf enum BIGQUERY = 2; - */ - const BIGQUERY = 2; - - private static $valueToName = [ - self::STORAGE_SYSTEM_UNSPECIFIED => 'STORAGE_SYSTEM_UNSPECIFIED', - self::CLOUD_STORAGE => 'CLOUD_STORAGE', - self::BIGQUERY => 'BIGQUERY', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task.php deleted file mode 100644 index f9c058456276..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task.php +++ /dev/null @@ -1,544 +0,0 @@ -google.cloud.dataplex.v1.Task - */ -class Task extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The relative resource name of the task, of the form: - * projects/{project_number}/locations/{location_id}/lakes/{lake_id}/ - * tasks/{task_id}. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Output only. System generated globally unique ID for the task. This ID will - * be different if the task is deleted and re-created with the same name. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $uid = ''; - /** - * Output only. The time when the task was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time when the task was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Optional. Description of the task. - * - * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Optional. User friendly display name. - * - * Generated from protobuf field string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $display_name = ''; - /** - * Output only. Current state of the task. - * - * Generated from protobuf field .google.cloud.dataplex.v1.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Optional. User-defined labels for the task. - * - * Generated from protobuf field map labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $labels; - /** - * Required. Spec related to how often and when a task should be triggered. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Task.TriggerSpec trigger_spec = 100 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $trigger_spec = null; - /** - * Required. Spec related to how a task is executed. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Task.ExecutionSpec execution_spec = 101 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $execution_spec = null; - /** - * Output only. Status of the latest task executions. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Task.ExecutionStatus execution_status = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $execution_status = null; - protected $config; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. The relative resource name of the task, of the form: - * projects/{project_number}/locations/{location_id}/lakes/{lake_id}/ - * tasks/{task_id}. - * @type string $uid - * Output only. System generated globally unique ID for the task. This ID will - * be different if the task is deleted and re-created with the same name. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time when the task was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time when the task was last updated. - * @type string $description - * Optional. Description of the task. - * @type string $display_name - * Optional. User friendly display name. - * @type int $state - * Output only. Current state of the task. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Optional. User-defined labels for the task. - * @type \Google\Cloud\Dataplex\V1\Task\TriggerSpec $trigger_spec - * Required. Spec related to how often and when a task should be triggered. - * @type \Google\Cloud\Dataplex\V1\Task\ExecutionSpec $execution_spec - * Required. Spec related to how a task is executed. - * @type \Google\Cloud\Dataplex\V1\Task\ExecutionStatus $execution_status - * Output only. Status of the latest task executions. - * @type \Google\Cloud\Dataplex\V1\Task\SparkTaskConfig $spark - * Config related to running custom Spark tasks. - * @type \Google\Cloud\Dataplex\V1\Task\NotebookTaskConfig $notebook - * Config related to running scheduled Notebooks. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Tasks::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The relative resource name of the task, of the form: - * projects/{project_number}/locations/{location_id}/lakes/{lake_id}/ - * tasks/{task_id}. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The relative resource name of the task, of the form: - * projects/{project_number}/locations/{location_id}/lakes/{lake_id}/ - * tasks/{task_id}. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Output only. System generated globally unique ID for the task. This ID will - * be different if the task is deleted and re-created with the same name. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. System generated globally unique ID for the task. This ID will - * be different if the task is deleted and re-created with the same name. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Output only. The time when the task was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The time when the task was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The time when the task was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The time when the task was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Optional. Description of the task. - * - * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. Description of the task. - * - * 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; - } - - /** - * Optional. User friendly display name. - * - * Generated from protobuf field string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Optional. User friendly display name. - * - * Generated from protobuf field string display_name = 6 [(.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. Current state of the task. - * - * Generated from protobuf field .google.cloud.dataplex.v1.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. Current state of the task. - * - * Generated from protobuf field .google.cloud.dataplex.v1.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\State::class); - $this->state = $var; - - return $this; - } - - /** - * Optional. User-defined labels for the task. - * - * Generated from protobuf field map labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Optional. User-defined labels for the task. - * - * Generated from protobuf field map labels = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Required. Spec related to how often and when a task should be triggered. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Task.TriggerSpec trigger_spec = 100 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataplex\V1\Task\TriggerSpec|null - */ - public function getTriggerSpec() - { - return $this->trigger_spec; - } - - public function hasTriggerSpec() - { - return isset($this->trigger_spec); - } - - public function clearTriggerSpec() - { - unset($this->trigger_spec); - } - - /** - * Required. Spec related to how often and when a task should be triggered. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Task.TriggerSpec trigger_spec = 100 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\Task\TriggerSpec $var - * @return $this - */ - public function setTriggerSpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Task\TriggerSpec::class); - $this->trigger_spec = $var; - - return $this; - } - - /** - * Required. Spec related to how a task is executed. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Task.ExecutionSpec execution_spec = 101 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataplex\V1\Task\ExecutionSpec|null - */ - public function getExecutionSpec() - { - return $this->execution_spec; - } - - public function hasExecutionSpec() - { - return isset($this->execution_spec); - } - - public function clearExecutionSpec() - { - unset($this->execution_spec); - } - - /** - * Required. Spec related to how a task is executed. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Task.ExecutionSpec execution_spec = 101 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\Task\ExecutionSpec $var - * @return $this - */ - public function setExecutionSpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Task\ExecutionSpec::class); - $this->execution_spec = $var; - - return $this; - } - - /** - * Output only. Status of the latest task executions. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Task.ExecutionStatus execution_status = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataplex\V1\Task\ExecutionStatus|null - */ - public function getExecutionStatus() - { - return $this->execution_status; - } - - public function hasExecutionStatus() - { - return isset($this->execution_status); - } - - public function clearExecutionStatus() - { - unset($this->execution_status); - } - - /** - * Output only. Status of the latest task executions. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Task.ExecutionStatus execution_status = 201 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\Task\ExecutionStatus $var - * @return $this - */ - public function setExecutionStatus($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Task\ExecutionStatus::class); - $this->execution_status = $var; - - return $this; - } - - /** - * Config related to running custom Spark tasks. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Task.SparkTaskConfig spark = 300; - * @return \Google\Cloud\Dataplex\V1\Task\SparkTaskConfig|null - */ - public function getSpark() - { - return $this->readOneof(300); - } - - public function hasSpark() - { - return $this->hasOneof(300); - } - - /** - * Config related to running custom Spark tasks. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Task.SparkTaskConfig spark = 300; - * @param \Google\Cloud\Dataplex\V1\Task\SparkTaskConfig $var - * @return $this - */ - public function setSpark($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Task\SparkTaskConfig::class); - $this->writeOneof(300, $var); - - return $this; - } - - /** - * Config related to running scheduled Notebooks. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Task.NotebookTaskConfig notebook = 302; - * @return \Google\Cloud\Dataplex\V1\Task\NotebookTaskConfig|null - */ - public function getNotebook() - { - return $this->readOneof(302); - } - - public function hasNotebook() - { - return $this->hasOneof(302); - } - - /** - * Config related to running scheduled Notebooks. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Task.NotebookTaskConfig notebook = 302; - * @param \Google\Cloud\Dataplex\V1\Task\NotebookTaskConfig $var - * @return $this - */ - public function setNotebook($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Task\NotebookTaskConfig::class); - $this->writeOneof(302, $var); - - return $this; - } - - /** - * @return string - */ - public function getConfig() - { - return $this->whichOneof("config"); - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/ExecutionSpec.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/ExecutionSpec.php deleted file mode 100644 index 3544a4865762..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/ExecutionSpec.php +++ /dev/null @@ -1,281 +0,0 @@ -google.cloud.dataplex.v1.Task.ExecutionSpec - */ -class ExecutionSpec extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The arguments to pass to the task. - * The args can use placeholders of the format ${placeholder} as - * part of key/value string. These will be interpolated before passing the - * args to the driver. Currently supported placeholders: - * - ${task_id} - * - ${job_time} - * To pass positional args, set the key as TASK_ARGS. The value should be a - * comma-separated string of all the positional arguments. To use a - * delimiter other than comma, refer to - * https://cloud.google.com/sdk/gcloud/reference/topic/escaping. In case of - * other keys being present in the args, then TASK_ARGS will be passed as - * the last argument. - * - * Generated from protobuf field map args = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $args; - /** - * Required. Service account to use to execute a task. - * If not provided, the default Compute service account for the project is - * used. - * - * Generated from protobuf field string service_account = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $service_account = ''; - /** - * Optional. The project in which jobs are run. By default, the project - * containing the Lake is used. If a project is provided, the - * [ExecutionSpec.service_account][google.cloud.dataplex.v1.Task.ExecutionSpec.service_account] - * must belong to this project. - * - * Generated from protobuf field string project = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $project = ''; - /** - * Optional. The maximum duration after which the job execution is expired. - * - * Generated from protobuf field .google.protobuf.Duration max_job_execution_lifetime = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $max_job_execution_lifetime = null; - /** - * Optional. The Cloud KMS key to use for encryption, of the form: - * `projects/{project_number}/locations/{location_id}/keyRings/{key-ring-name}/cryptoKeys/{key-name}`. - * - * Generated from protobuf field string kms_key = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $kms_key = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\MapField $args - * Optional. The arguments to pass to the task. - * The args can use placeholders of the format ${placeholder} as - * part of key/value string. These will be interpolated before passing the - * args to the driver. Currently supported placeholders: - * - ${task_id} - * - ${job_time} - * To pass positional args, set the key as TASK_ARGS. The value should be a - * comma-separated string of all the positional arguments. To use a - * delimiter other than comma, refer to - * https://cloud.google.com/sdk/gcloud/reference/topic/escaping. In case of - * other keys being present in the args, then TASK_ARGS will be passed as - * the last argument. - * @type string $service_account - * Required. Service account to use to execute a task. - * If not provided, the default Compute service account for the project is - * used. - * @type string $project - * Optional. The project in which jobs are run. By default, the project - * containing the Lake is used. If a project is provided, the - * [ExecutionSpec.service_account][google.cloud.dataplex.v1.Task.ExecutionSpec.service_account] - * must belong to this project. - * @type \Google\Protobuf\Duration $max_job_execution_lifetime - * Optional. The maximum duration after which the job execution is expired. - * @type string $kms_key - * Optional. The Cloud KMS key to use for encryption, of the form: - * `projects/{project_number}/locations/{location_id}/keyRings/{key-ring-name}/cryptoKeys/{key-name}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Tasks::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The arguments to pass to the task. - * The args can use placeholders of the format ${placeholder} as - * part of key/value string. These will be interpolated before passing the - * args to the driver. Currently supported placeholders: - * - ${task_id} - * - ${job_time} - * To pass positional args, set the key as TASK_ARGS. The value should be a - * comma-separated string of all the positional arguments. To use a - * delimiter other than comma, refer to - * https://cloud.google.com/sdk/gcloud/reference/topic/escaping. In case of - * other keys being present in the args, then TASK_ARGS will be passed as - * the last argument. - * - * Generated from protobuf field map args = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getArgs() - { - return $this->args; - } - - /** - * Optional. The arguments to pass to the task. - * The args can use placeholders of the format ${placeholder} as - * part of key/value string. These will be interpolated before passing the - * args to the driver. Currently supported placeholders: - * - ${task_id} - * - ${job_time} - * To pass positional args, set the key as TASK_ARGS. The value should be a - * comma-separated string of all the positional arguments. To use a - * delimiter other than comma, refer to - * https://cloud.google.com/sdk/gcloud/reference/topic/escaping. In case of - * other keys being present in the args, then TASK_ARGS will be passed as - * the last argument. - * - * Generated from protobuf field map args = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setArgs($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->args = $arr; - - return $this; - } - - /** - * Required. Service account to use to execute a task. - * If not provided, the default Compute service account for the project is - * used. - * - * Generated from protobuf field string service_account = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getServiceAccount() - { - return $this->service_account; - } - - /** - * Required. Service account to use to execute a task. - * If not provided, the default Compute service account for the project is - * used. - * - * Generated from protobuf field string service_account = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setServiceAccount($var) - { - GPBUtil::checkString($var, True); - $this->service_account = $var; - - return $this; - } - - /** - * Optional. The project in which jobs are run. By default, the project - * containing the Lake is used. If a project is provided, the - * [ExecutionSpec.service_account][google.cloud.dataplex.v1.Task.ExecutionSpec.service_account] - * must belong to this project. - * - * Generated from protobuf field string project = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getProject() - { - return $this->project; - } - - /** - * Optional. The project in which jobs are run. By default, the project - * containing the Lake is used. If a project is provided, the - * [ExecutionSpec.service_account][google.cloud.dataplex.v1.Task.ExecutionSpec.service_account] - * must belong to this project. - * - * Generated from protobuf field string project = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setProject($var) - { - GPBUtil::checkString($var, True); - $this->project = $var; - - return $this; - } - - /** - * Optional. The maximum duration after which the job execution is expired. - * - * Generated from protobuf field .google.protobuf.Duration max_job_execution_lifetime = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Duration|null - */ - public function getMaxJobExecutionLifetime() - { - return $this->max_job_execution_lifetime; - } - - public function hasMaxJobExecutionLifetime() - { - return isset($this->max_job_execution_lifetime); - } - - public function clearMaxJobExecutionLifetime() - { - unset($this->max_job_execution_lifetime); - } - - /** - * Optional. The maximum duration after which the job execution is expired. - * - * Generated from protobuf field .google.protobuf.Duration max_job_execution_lifetime = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setMaxJobExecutionLifetime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->max_job_execution_lifetime = $var; - - return $this; - } - - /** - * Optional. The Cloud KMS key to use for encryption, of the form: - * `projects/{project_number}/locations/{location_id}/keyRings/{key-ring-name}/cryptoKeys/{key-name}`. - * - * Generated from protobuf field string kms_key = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getKmsKey() - { - return $this->kms_key; - } - - /** - * Optional. The Cloud KMS key to use for encryption, of the form: - * `projects/{project_number}/locations/{location_id}/keyRings/{key-ring-name}/cryptoKeys/{key-name}`. - * - * Generated from protobuf field string kms_key = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setKmsKey($var) - { - GPBUtil::checkString($var, True); - $this->kms_key = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/ExecutionStatus.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/ExecutionStatus.php deleted file mode 100644 index 371153e54f52..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/ExecutionStatus.php +++ /dev/null @@ -1,121 +0,0 @@ -google.cloud.dataplex.v1.Task.ExecutionStatus - */ -class ExecutionStatus extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Last update time of the status. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Output only. latest job execution - * - * Generated from protobuf field .google.cloud.dataplex.v1.Job latest_job = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $latest_job = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $update_time - * Output only. Last update time of the status. - * @type \Google\Cloud\Dataplex\V1\Job $latest_job - * Output only. latest job execution - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Tasks::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Last update time of the status. - * - * 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. Last update time of the status. - * - * 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; - } - - /** - * Output only. latest job execution - * - * Generated from protobuf field .google.cloud.dataplex.v1.Job latest_job = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataplex\V1\Job|null - */ - public function getLatestJob() - { - return $this->latest_job; - } - - public function hasLatestJob() - { - return isset($this->latest_job); - } - - public function clearLatestJob() - { - unset($this->latest_job); - } - - /** - * Output only. latest job execution - * - * Generated from protobuf field .google.cloud.dataplex.v1.Job latest_job = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\Job $var - * @return $this - */ - public function setLatestJob($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Job::class); - $this->latest_job = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/InfrastructureSpec.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/InfrastructureSpec.php deleted file mode 100644 index cad5d10012b4..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/InfrastructureSpec.php +++ /dev/null @@ -1,159 +0,0 @@ -google.cloud.dataplex.v1.Task.InfrastructureSpec - */ -class InfrastructureSpec extends \Google\Protobuf\Internal\Message -{ - protected $resources; - protected $runtime; - protected $network; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\Task\InfrastructureSpec\BatchComputeResources $batch - * Compute resources needed for a Task when using Dataproc Serverless. - * @type \Google\Cloud\Dataplex\V1\Task\InfrastructureSpec\ContainerImageRuntime $container_image - * Container Image Runtime Configuration. - * @type \Google\Cloud\Dataplex\V1\Task\InfrastructureSpec\VpcNetwork $vpc_network - * Vpc network. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Tasks::initOnce(); - parent::__construct($data); - } - - /** - * Compute resources needed for a Task when using Dataproc Serverless. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources batch = 52; - * @return \Google\Cloud\Dataplex\V1\Task\InfrastructureSpec\BatchComputeResources|null - */ - public function getBatch() - { - return $this->readOneof(52); - } - - public function hasBatch() - { - return $this->hasOneof(52); - } - - /** - * Compute resources needed for a Task when using Dataproc Serverless. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources batch = 52; - * @param \Google\Cloud\Dataplex\V1\Task\InfrastructureSpec\BatchComputeResources $var - * @return $this - */ - public function setBatch($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Task\InfrastructureSpec\BatchComputeResources::class); - $this->writeOneof(52, $var); - - return $this; - } - - /** - * Container Image Runtime Configuration. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime container_image = 101; - * @return \Google\Cloud\Dataplex\V1\Task\InfrastructureSpec\ContainerImageRuntime|null - */ - public function getContainerImage() - { - return $this->readOneof(101); - } - - public function hasContainerImage() - { - return $this->hasOneof(101); - } - - /** - * Container Image Runtime Configuration. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime container_image = 101; - * @param \Google\Cloud\Dataplex\V1\Task\InfrastructureSpec\ContainerImageRuntime $var - * @return $this - */ - public function setContainerImage($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Task\InfrastructureSpec\ContainerImageRuntime::class); - $this->writeOneof(101, $var); - - return $this; - } - - /** - * Vpc network. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork vpc_network = 150; - * @return \Google\Cloud\Dataplex\V1\Task\InfrastructureSpec\VpcNetwork|null - */ - public function getVpcNetwork() - { - return $this->readOneof(150); - } - - public function hasVpcNetwork() - { - return $this->hasOneof(150); - } - - /** - * Vpc network. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork vpc_network = 150; - * @param \Google\Cloud\Dataplex\V1\Task\InfrastructureSpec\VpcNetwork $var - * @return $this - */ - public function setVpcNetwork($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Task\InfrastructureSpec\VpcNetwork::class); - $this->writeOneof(150, $var); - - return $this; - } - - /** - * @return string - */ - public function getResources() - { - return $this->whichOneof("resources"); - } - - /** - * @return string - */ - public function getRuntime() - { - return $this->whichOneof("runtime"); - } - - /** - * @return string - */ - public function getNetwork() - { - return $this->whichOneof("network"); - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/InfrastructureSpec/BatchComputeResources.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/InfrastructureSpec/BatchComputeResources.php deleted file mode 100644 index c1e9b4fa0ab1..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/InfrastructureSpec/BatchComputeResources.php +++ /dev/null @@ -1,113 +0,0 @@ -google.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResources - */ -class BatchComputeResources extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Total number of job executors. - * Executor Count should be between 2 and 100. [Default=2] - * - * Generated from protobuf field int32 executors_count = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $executors_count = 0; - /** - * Optional. Max configurable executors. - * If max_executors_count > executors_count, then auto-scaling is enabled. - * Max Executor Count should be between 2 and 1000. [Default=1000] - * - * Generated from protobuf field int32 max_executors_count = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $max_executors_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $executors_count - * Optional. Total number of job executors. - * Executor Count should be between 2 and 100. [Default=2] - * @type int $max_executors_count - * Optional. Max configurable executors. - * If max_executors_count > executors_count, then auto-scaling is enabled. - * Max Executor Count should be between 2 and 1000. [Default=1000] - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Tasks::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Total number of job executors. - * Executor Count should be between 2 and 100. [Default=2] - * - * Generated from protobuf field int32 executors_count = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getExecutorsCount() - { - return $this->executors_count; - } - - /** - * Optional. Total number of job executors. - * Executor Count should be between 2 and 100. [Default=2] - * - * Generated from protobuf field int32 executors_count = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setExecutorsCount($var) - { - GPBUtil::checkInt32($var); - $this->executors_count = $var; - - return $this; - } - - /** - * Optional. Max configurable executors. - * If max_executors_count > executors_count, then auto-scaling is enabled. - * Max Executor Count should be between 2 and 1000. [Default=1000] - * - * Generated from protobuf field int32 max_executors_count = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getMaxExecutorsCount() - { - return $this->max_executors_count; - } - - /** - * Optional. Max configurable executors. - * If max_executors_count > executors_count, then auto-scaling is enabled. - * Max Executor Count should be between 2 and 1000. [Default=1000] - * - * Generated from protobuf field int32 max_executors_count = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setMaxExecutorsCount($var) - { - GPBUtil::checkInt32($var); - $this->max_executors_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/InfrastructureSpec/ContainerImageRuntime.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/InfrastructureSpec/ContainerImageRuntime.php deleted file mode 100644 index b457f1423cd0..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/InfrastructureSpec/ContainerImageRuntime.php +++ /dev/null @@ -1,201 +0,0 @@ -google.cloud.dataplex.v1.Task.InfrastructureSpec.ContainerImageRuntime - */ -class ContainerImageRuntime extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Container image to use. - * - * Generated from protobuf field string image = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $image = ''; - /** - * Optional. A list of Java JARS to add to the classpath. - * Valid input includes Cloud Storage URIs to Jar binaries. - * For example, gs://bucket-name/my/path/to/file.jar - * - * Generated from protobuf field repeated string java_jars = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $java_jars; - /** - * Optional. A list of python packages to be installed. - * Valid formats include Cloud Storage URI to a PIP installable library. - * For example, gs://bucket-name/my/path/to/lib.tar.gz - * - * Generated from protobuf field repeated string python_packages = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $python_packages; - /** - * Optional. Override to common configuration of open source components - * installed on the Dataproc cluster. The properties to set on daemon - * config files. Property keys are specified in `prefix:property` format, - * for example `core:hadoop.tmp.dir`. For more information, see [Cluster - * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties). - * - * Generated from protobuf field map properties = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $properties; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $image - * Optional. Container image to use. - * @type string[] $java_jars - * Optional. A list of Java JARS to add to the classpath. - * Valid input includes Cloud Storage URIs to Jar binaries. - * For example, gs://bucket-name/my/path/to/file.jar - * @type string[] $python_packages - * Optional. A list of python packages to be installed. - * Valid formats include Cloud Storage URI to a PIP installable library. - * For example, gs://bucket-name/my/path/to/lib.tar.gz - * @type array|\Google\Protobuf\Internal\MapField $properties - * Optional. Override to common configuration of open source components - * installed on the Dataproc cluster. The properties to set on daemon - * config files. Property keys are specified in `prefix:property` format, - * for example `core:hadoop.tmp.dir`. For more information, see [Cluster - * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Tasks::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Container image to use. - * - * Generated from protobuf field string image = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getImage() - { - return $this->image; - } - - /** - * Optional. Container image to use. - * - * Generated from protobuf field string image = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setImage($var) - { - GPBUtil::checkString($var, True); - $this->image = $var; - - return $this; - } - - /** - * Optional. A list of Java JARS to add to the classpath. - * Valid input includes Cloud Storage URIs to Jar binaries. - * For example, gs://bucket-name/my/path/to/file.jar - * - * Generated from protobuf field repeated string java_jars = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getJavaJars() - { - return $this->java_jars; - } - - /** - * Optional. A list of Java JARS to add to the classpath. - * Valid input includes Cloud Storage URIs to Jar binaries. - * For example, gs://bucket-name/my/path/to/file.jar - * - * Generated from protobuf field repeated string java_jars = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setJavaJars($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->java_jars = $arr; - - return $this; - } - - /** - * Optional. A list of python packages to be installed. - * Valid formats include Cloud Storage URI to a PIP installable library. - * For example, gs://bucket-name/my/path/to/lib.tar.gz - * - * Generated from protobuf field repeated string python_packages = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getPythonPackages() - { - return $this->python_packages; - } - - /** - * Optional. A list of python packages to be installed. - * Valid formats include Cloud Storage URI to a PIP installable library. - * For example, gs://bucket-name/my/path/to/lib.tar.gz - * - * Generated from protobuf field repeated string python_packages = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setPythonPackages($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->python_packages = $arr; - - return $this; - } - - /** - * Optional. Override to common configuration of open source components - * installed on the Dataproc cluster. The properties to set on daemon - * config files. Property keys are specified in `prefix:property` format, - * for example `core:hadoop.tmp.dir`. For more information, see [Cluster - * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties). - * - * Generated from protobuf field map properties = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getProperties() - { - return $this->properties; - } - - /** - * Optional. Override to common configuration of open source components - * installed on the Dataproc cluster. The properties to set on daemon - * config files. Property keys are specified in `prefix:property` format, - * for example `core:hadoop.tmp.dir`. For more information, see [Cluster - * properties](https://cloud.google.com/dataproc/docs/concepts/cluster-properties). - * - * Generated from protobuf field map properties = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setProperties($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->properties = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/InfrastructureSpec/VpcNetwork.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/InfrastructureSpec/VpcNetwork.php deleted file mode 100644 index 8df7ca7c85a6..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/InfrastructureSpec/VpcNetwork.php +++ /dev/null @@ -1,145 +0,0 @@ -google.cloud.dataplex.v1.Task.InfrastructureSpec.VpcNetwork - */ -class VpcNetwork extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. List of network tags to apply to the job. - * - * Generated from protobuf field repeated string network_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $network_tags; - protected $network_name; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $network - * Optional. The Cloud VPC network in which the job is run. By default, - * the Cloud VPC network named Default within the project is used. - * @type string $sub_network - * Optional. The Cloud VPC sub-network in which the job is run. - * @type string[] $network_tags - * Optional. List of network tags to apply to the job. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Tasks::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The Cloud VPC network in which the job is run. By default, - * the Cloud VPC network named Default within the project is used. - * - * Generated from protobuf field string network = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getNetwork() - { - return $this->readOneof(1); - } - - public function hasNetwork() - { - return $this->hasOneof(1); - } - - /** - * Optional. The Cloud VPC network in which the job is run. By default, - * the Cloud VPC network named Default within the project is used. - * - * Generated from protobuf field string network = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setNetwork($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Optional. The Cloud VPC sub-network in which the job is run. - * - * Generated from protobuf field string sub_network = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getSubNetwork() - { - return $this->readOneof(2); - } - - public function hasSubNetwork() - { - return $this->hasOneof(2); - } - - /** - * Optional. The Cloud VPC sub-network in which the job is run. - * - * Generated from protobuf field string sub_network = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setSubNetwork($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Optional. List of network tags to apply to the job. - * - * Generated from protobuf field repeated string network_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getNetworkTags() - { - return $this->network_tags; - } - - /** - * Optional. List of network tags to apply to the job. - * - * Generated from protobuf field repeated string network_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setNetworkTags($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->network_tags = $arr; - - return $this; - } - - /** - * @return string - */ - public function getNetworkName() - { - return $this->whichOneof("network_name"); - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/NotebookTaskConfig.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/NotebookTaskConfig.php deleted file mode 100644 index 00ffd9dfcfff..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/NotebookTaskConfig.php +++ /dev/null @@ -1,203 +0,0 @@ -google.cloud.dataplex.v1.Task.NotebookTaskConfig - */ -class NotebookTaskConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Path to input notebook. This can be the Cloud Storage URI of - * the notebook file or the path to a Notebook Content. The execution args - * are accessible as environment variables - * (`TASK_key=value`). - * - * Generated from protobuf field string notebook = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $notebook = ''; - /** - * Optional. Infrastructure specification for the execution. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Task.InfrastructureSpec infrastructure_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $infrastructure_spec = null; - /** - * Optional. Cloud Storage URIs of files to be placed in the working - * directory of each executor. - * - * Generated from protobuf field repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $file_uris; - /** - * Optional. Cloud Storage URIs of archives to be extracted into the working - * directory of each executor. Supported file types: .jar, .tar, .tar.gz, - * .tgz, and .zip. - * - * Generated from protobuf field repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $archive_uris; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $notebook - * Required. Path to input notebook. This can be the Cloud Storage URI of - * the notebook file or the path to a Notebook Content. The execution args - * are accessible as environment variables - * (`TASK_key=value`). - * @type \Google\Cloud\Dataplex\V1\Task\InfrastructureSpec $infrastructure_spec - * Optional. Infrastructure specification for the execution. - * @type string[] $file_uris - * Optional. Cloud Storage URIs of files to be placed in the working - * directory of each executor. - * @type string[] $archive_uris - * Optional. Cloud Storage URIs of archives to be extracted into the working - * directory of each executor. Supported file types: .jar, .tar, .tar.gz, - * .tgz, and .zip. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Tasks::initOnce(); - parent::__construct($data); - } - - /** - * Required. Path to input notebook. This can be the Cloud Storage URI of - * the notebook file or the path to a Notebook Content. The execution args - * are accessible as environment variables - * (`TASK_key=value`). - * - * Generated from protobuf field string notebook = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getNotebook() - { - return $this->notebook; - } - - /** - * Required. Path to input notebook. This can be the Cloud Storage URI of - * the notebook file or the path to a Notebook Content. The execution args - * are accessible as environment variables - * (`TASK_key=value`). - * - * Generated from protobuf field string notebook = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setNotebook($var) - { - GPBUtil::checkString($var, True); - $this->notebook = $var; - - return $this; - } - - /** - * Optional. Infrastructure specification for the execution. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Task.InfrastructureSpec infrastructure_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dataplex\V1\Task\InfrastructureSpec|null - */ - public function getInfrastructureSpec() - { - return $this->infrastructure_spec; - } - - public function hasInfrastructureSpec() - { - return isset($this->infrastructure_spec); - } - - public function clearInfrastructureSpec() - { - unset($this->infrastructure_spec); - } - - /** - * Optional. Infrastructure specification for the execution. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Task.InfrastructureSpec infrastructure_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataplex\V1\Task\InfrastructureSpec $var - * @return $this - */ - public function setInfrastructureSpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Task\InfrastructureSpec::class); - $this->infrastructure_spec = $var; - - return $this; - } - - /** - * Optional. Cloud Storage URIs of files to be placed in the working - * directory of each executor. - * - * Generated from protobuf field repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getFileUris() - { - return $this->file_uris; - } - - /** - * Optional. Cloud Storage URIs of files to be placed in the working - * directory of each executor. - * - * Generated from protobuf field repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setFileUris($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->file_uris = $arr; - - return $this; - } - - /** - * Optional. Cloud Storage URIs of archives to be extracted into the working - * directory of each executor. Supported file types: .jar, .tar, .tar.gz, - * .tgz, and .zip. - * - * Generated from protobuf field repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getArchiveUris() - { - return $this->archive_uris; - } - - /** - * Optional. Cloud Storage URIs of archives to be extracted into the working - * directory of each executor. Supported file types: .jar, .tar, .tar.gz, - * .tgz, and .zip. - * - * Generated from protobuf field repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setArchiveUris($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->archive_uris = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/SparkTaskConfig.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/SparkTaskConfig.php deleted file mode 100644 index 3c921c90ddba..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/SparkTaskConfig.php +++ /dev/null @@ -1,367 +0,0 @@ -google.cloud.dataplex.v1.Task.SparkTaskConfig - */ -class SparkTaskConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Cloud Storage URIs of files to be placed in the working - * directory of each executor. - * - * Generated from protobuf field repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $file_uris; - /** - * Optional. Cloud Storage URIs of archives to be extracted into the working - * directory of each executor. Supported file types: .jar, .tar, .tar.gz, - * .tgz, and .zip. - * - * Generated from protobuf field repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $archive_uris; - /** - * Optional. Infrastructure specification for the execution. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Task.InfrastructureSpec infrastructure_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $infrastructure_spec = null; - protected $driver; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $main_jar_file_uri - * The Cloud Storage URI of the jar file that contains the main class. - * The execution args are passed in as a sequence of named process - * arguments (`--key=value`). - * @type string $main_class - * The name of the driver's main class. The jar file that contains the - * class must be in the default CLASSPATH or specified in - * `jar_file_uris`. - * The execution args are passed in as a sequence of named process - * arguments (`--key=value`). - * @type string $python_script_file - * The Gcloud Storage URI of the main Python file to use as the driver. - * Must be a .py file. The execution args are passed in as a sequence of - * named process arguments (`--key=value`). - * @type string $sql_script_file - * A reference to a query file. This should be the Cloud Storage URI of - * the query file. The execution args are used to declare a set of script - * variables (`set key="value";`). - * @type string $sql_script - * The query text. - * The execution args are used to declare a set of script variables - * (`set key="value";`). - * @type string[] $file_uris - * Optional. Cloud Storage URIs of files to be placed in the working - * directory of each executor. - * @type string[] $archive_uris - * Optional. Cloud Storage URIs of archives to be extracted into the working - * directory of each executor. Supported file types: .jar, .tar, .tar.gz, - * .tgz, and .zip. - * @type \Google\Cloud\Dataplex\V1\Task\InfrastructureSpec $infrastructure_spec - * Optional. Infrastructure specification for the execution. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Tasks::initOnce(); - parent::__construct($data); - } - - /** - * The Cloud Storage URI of the jar file that contains the main class. - * The execution args are passed in as a sequence of named process - * arguments (`--key=value`). - * - * Generated from protobuf field string main_jar_file_uri = 100; - * @return string - */ - public function getMainJarFileUri() - { - return $this->readOneof(100); - } - - public function hasMainJarFileUri() - { - return $this->hasOneof(100); - } - - /** - * The Cloud Storage URI of the jar file that contains the main class. - * The execution args are passed in as a sequence of named process - * arguments (`--key=value`). - * - * Generated from protobuf field string main_jar_file_uri = 100; - * @param string $var - * @return $this - */ - public function setMainJarFileUri($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(100, $var); - - return $this; - } - - /** - * The name of the driver's main class. The jar file that contains the - * class must be in the default CLASSPATH or specified in - * `jar_file_uris`. - * The execution args are passed in as a sequence of named process - * arguments (`--key=value`). - * - * Generated from protobuf field string main_class = 101; - * @return string - */ - public function getMainClass() - { - return $this->readOneof(101); - } - - public function hasMainClass() - { - return $this->hasOneof(101); - } - - /** - * The name of the driver's main class. The jar file that contains the - * class must be in the default CLASSPATH or specified in - * `jar_file_uris`. - * The execution args are passed in as a sequence of named process - * arguments (`--key=value`). - * - * Generated from protobuf field string main_class = 101; - * @param string $var - * @return $this - */ - public function setMainClass($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(101, $var); - - return $this; - } - - /** - * The Gcloud Storage URI of the main Python file to use as the driver. - * Must be a .py file. The execution args are passed in as a sequence of - * named process arguments (`--key=value`). - * - * Generated from protobuf field string python_script_file = 102; - * @return string - */ - public function getPythonScriptFile() - { - return $this->readOneof(102); - } - - public function hasPythonScriptFile() - { - return $this->hasOneof(102); - } - - /** - * The Gcloud Storage URI of the main Python file to use as the driver. - * Must be a .py file. The execution args are passed in as a sequence of - * named process arguments (`--key=value`). - * - * Generated from protobuf field string python_script_file = 102; - * @param string $var - * @return $this - */ - public function setPythonScriptFile($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(102, $var); - - return $this; - } - - /** - * A reference to a query file. This should be the Cloud Storage URI of - * the query file. The execution args are used to declare a set of script - * variables (`set key="value";`). - * - * Generated from protobuf field string sql_script_file = 104; - * @return string - */ - public function getSqlScriptFile() - { - return $this->readOneof(104); - } - - public function hasSqlScriptFile() - { - return $this->hasOneof(104); - } - - /** - * A reference to a query file. This should be the Cloud Storage URI of - * the query file. The execution args are used to declare a set of script - * variables (`set key="value";`). - * - * Generated from protobuf field string sql_script_file = 104; - * @param string $var - * @return $this - */ - public function setSqlScriptFile($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(104, $var); - - return $this; - } - - /** - * The query text. - * The execution args are used to declare a set of script variables - * (`set key="value";`). - * - * Generated from protobuf field string sql_script = 105; - * @return string - */ - public function getSqlScript() - { - return $this->readOneof(105); - } - - public function hasSqlScript() - { - return $this->hasOneof(105); - } - - /** - * The query text. - * The execution args are used to declare a set of script variables - * (`set key="value";`). - * - * Generated from protobuf field string sql_script = 105; - * @param string $var - * @return $this - */ - public function setSqlScript($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(105, $var); - - return $this; - } - - /** - * Optional. Cloud Storage URIs of files to be placed in the working - * directory of each executor. - * - * Generated from protobuf field repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getFileUris() - { - return $this->file_uris; - } - - /** - * Optional. Cloud Storage URIs of files to be placed in the working - * directory of each executor. - * - * Generated from protobuf field repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setFileUris($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->file_uris = $arr; - - return $this; - } - - /** - * Optional. Cloud Storage URIs of archives to be extracted into the working - * directory of each executor. Supported file types: .jar, .tar, .tar.gz, - * .tgz, and .zip. - * - * Generated from protobuf field repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getArchiveUris() - { - return $this->archive_uris; - } - - /** - * Optional. Cloud Storage URIs of archives to be extracted into the working - * directory of each executor. Supported file types: .jar, .tar, .tar.gz, - * .tgz, and .zip. - * - * Generated from protobuf field repeated string archive_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setArchiveUris($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->archive_uris = $arr; - - return $this; - } - - /** - * Optional. Infrastructure specification for the execution. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Task.InfrastructureSpec infrastructure_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dataplex\V1\Task\InfrastructureSpec|null - */ - public function getInfrastructureSpec() - { - return $this->infrastructure_spec; - } - - public function hasInfrastructureSpec() - { - return isset($this->infrastructure_spec); - } - - public function clearInfrastructureSpec() - { - unset($this->infrastructure_spec); - } - - /** - * Optional. Infrastructure specification for the execution. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Task.InfrastructureSpec infrastructure_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataplex\V1\Task\InfrastructureSpec $var - * @return $this - */ - public function setInfrastructureSpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Task\InfrastructureSpec::class); - $this->infrastructure_spec = $var; - - return $this; - } - - /** - * @return string - */ - public function getDriver() - { - return $this->whichOneof("driver"); - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/TriggerSpec.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/TriggerSpec.php deleted file mode 100644 index 31dd15ebe752..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/TriggerSpec.php +++ /dev/null @@ -1,259 +0,0 @@ -google.cloud.dataplex.v1.Task.TriggerSpec - */ -class TriggerSpec extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Immutable. Trigger type of the user-specified Task. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Task.TriggerSpec.Type type = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $type = 0; - /** - * Optional. The first run of the task will be after this time. - * If not specified, the task will run shortly after being submitted if - * ON_DEMAND and based on the schedule if RECURRING. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $start_time = null; - /** - * Optional. Prevent the task from executing. - * This does not cancel already running tasks. It is intended to temporarily - * disable RECURRING tasks. - * - * Generated from protobuf field bool disabled = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $disabled = false; - /** - * Optional. Number of retry attempts before aborting. - * Set to zero to never attempt to retry a failed task. - * - * Generated from protobuf field int32 max_retries = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $max_retries = 0; - protected $trigger; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $type - * Required. Immutable. Trigger type of the user-specified Task. - * @type \Google\Protobuf\Timestamp $start_time - * Optional. The first run of the task will be after this time. - * If not specified, the task will run shortly after being submitted if - * ON_DEMAND and based on the schedule if RECURRING. - * @type bool $disabled - * Optional. Prevent the task from executing. - * This does not cancel already running tasks. It is intended to temporarily - * disable RECURRING tasks. - * @type int $max_retries - * Optional. Number of retry attempts before aborting. - * Set to zero to never attempt to retry a failed task. - * @type string $schedule - * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for - * running tasks periodically. To explicitly set a timezone to the cron - * tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or - * "TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid - * string from IANA time zone database. For example, - * `CRON_TZ=America/New_York 1 * * * *`, or `TZ=America/New_York 1 * * * - * *`. This field is required for RECURRING tasks. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Tasks::initOnce(); - parent::__construct($data); - } - - /** - * Required. Immutable. Trigger type of the user-specified Task. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Task.TriggerSpec.Type type = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Required. Immutable. Trigger type of the user-specified Task. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Task.TriggerSpec.Type type = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\Task\TriggerSpec\Type::class); - $this->type = $var; - - return $this; - } - - /** - * Optional. The first run of the task will be after this time. - * If not specified, the task will run shortly after being submitted if - * ON_DEMAND and based on the schedule if RECURRING. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @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); - } - - /** - * Optional. The first run of the task will be after this time. - * If not specified, the task will run shortly after being submitted if - * ON_DEMAND and based on the schedule if RECURRING. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->start_time = $var; - - return $this; - } - - /** - * Optional. Prevent the task from executing. - * This does not cancel already running tasks. It is intended to temporarily - * disable RECURRING tasks. - * - * Generated from protobuf field bool disabled = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getDisabled() - { - return $this->disabled; - } - - /** - * Optional. Prevent the task from executing. - * This does not cancel already running tasks. It is intended to temporarily - * disable RECURRING tasks. - * - * Generated from protobuf field bool disabled = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setDisabled($var) - { - GPBUtil::checkBool($var); - $this->disabled = $var; - - return $this; - } - - /** - * Optional. Number of retry attempts before aborting. - * Set to zero to never attempt to retry a failed task. - * - * Generated from protobuf field int32 max_retries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getMaxRetries() - { - return $this->max_retries; - } - - /** - * Optional. Number of retry attempts before aborting. - * Set to zero to never attempt to retry a failed task. - * - * Generated from protobuf field int32 max_retries = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setMaxRetries($var) - { - GPBUtil::checkInt32($var); - $this->max_retries = $var; - - return $this; - } - - /** - * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for - * running tasks periodically. To explicitly set a timezone to the cron - * tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or - * "TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid - * string from IANA time zone database. For example, - * `CRON_TZ=America/New_York 1 * * * *`, or `TZ=America/New_York 1 * * * - * *`. This field is required for RECURRING tasks. - * - * Generated from protobuf field string schedule = 100 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getSchedule() - { - return $this->readOneof(100); - } - - public function hasSchedule() - { - return $this->hasOneof(100); - } - - /** - * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for - * running tasks periodically. To explicitly set a timezone to the cron - * tab, apply a prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or - * "TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid - * string from IANA time zone database. For example, - * `CRON_TZ=America/New_York 1 * * * *`, or `TZ=America/New_York 1 * * * - * *`. This field is required for RECURRING tasks. - * - * Generated from protobuf field string schedule = 100 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setSchedule($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(100, $var); - - return $this; - } - - /** - * @return string - */ - public function getTrigger() - { - return $this->whichOneof("trigger"); - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/TriggerSpec/Type.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/TriggerSpec/Type.php deleted file mode 100644 index 6121c0448a1b..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Task/TriggerSpec/Type.php +++ /dev/null @@ -1,61 +0,0 @@ -google.cloud.dataplex.v1.Task.TriggerSpec.Type - */ -class Type -{ - /** - * Unspecified trigger type. - * - * Generated from protobuf enum TYPE_UNSPECIFIED = 0; - */ - const TYPE_UNSPECIFIED = 0; - /** - * The task runs one-time shortly after Task Creation. - * - * Generated from protobuf enum ON_DEMAND = 1; - */ - const ON_DEMAND = 1; - /** - * The task is scheduled to run periodically. - * - * Generated from protobuf enum RECURRING = 2; - */ - const RECURRING = 2; - - private static $valueToName = [ - self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', - self::ON_DEMAND => 'ON_DEMAND', - self::RECURRING => 'RECURRING', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/TransferStatus.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/TransferStatus.php deleted file mode 100644 index f9c50188075b..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/TransferStatus.php +++ /dev/null @@ -1,66 +0,0 @@ -google.cloud.dataplex.v1.TransferStatus - */ -class TransferStatus -{ - /** - * The default value. It is set for resources that were not subject for - * migration from Data Catalog service. - * - * Generated from protobuf enum TRANSFER_STATUS_UNSPECIFIED = 0; - */ - const TRANSFER_STATUS_UNSPECIFIED = 0; - /** - * Indicates that a resource was migrated from Data Catalog service but it - * hasn't been transferred yet. In particular the resource cannot be updated - * from Dataplex API. - * - * Generated from protobuf enum TRANSFER_STATUS_MIGRATED = 1; - */ - const TRANSFER_STATUS_MIGRATED = 1; - /** - * Indicates that a resource was transferred from Data Catalog service. The - * resource can only be updated from Dataplex API. - * - * Generated from protobuf enum TRANSFER_STATUS_TRANSFERRED = 2; - */ - const TRANSFER_STATUS_TRANSFERRED = 2; - - private static $valueToName = [ - self::TRANSFER_STATUS_UNSPECIFIED => 'TRANSFER_STATUS_UNSPECIFIED', - self::TRANSFER_STATUS_MIGRATED => 'TRANSFER_STATUS_MIGRATED', - self::TRANSFER_STATUS_TRANSFERRED => 'TRANSFER_STATUS_TRANSFERRED', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Trigger.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Trigger.php deleted file mode 100644 index 1b7f8f7b7fbd..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Trigger.php +++ /dev/null @@ -1,144 +0,0 @@ -google.cloud.dataplex.v1.Trigger - */ -class Trigger extends \Google\Protobuf\Internal\Message -{ - protected $mode; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\Trigger\OnDemand $on_demand - * The scan runs once via `RunDataScan` API. - * @type \Google\Cloud\Dataplex\V1\Trigger\Schedule $schedule - * The scan is scheduled to run periodically. - * @type \Google\Cloud\Dataplex\V1\Trigger\OneTime $one_time - * The scan runs once, and does not create an associated ScanJob child - * resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Processing::initOnce(); - parent::__construct($data); - } - - /** - * The scan runs once via `RunDataScan` API. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Trigger.OnDemand on_demand = 100; - * @return \Google\Cloud\Dataplex\V1\Trigger\OnDemand|null - */ - public function getOnDemand() - { - return $this->readOneof(100); - } - - public function hasOnDemand() - { - return $this->hasOneof(100); - } - - /** - * The scan runs once via `RunDataScan` API. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Trigger.OnDemand on_demand = 100; - * @param \Google\Cloud\Dataplex\V1\Trigger\OnDemand $var - * @return $this - */ - public function setOnDemand($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Trigger\OnDemand::class); - $this->writeOneof(100, $var); - - return $this; - } - - /** - * The scan is scheduled to run periodically. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Trigger.Schedule schedule = 101; - * @return \Google\Cloud\Dataplex\V1\Trigger\Schedule|null - */ - public function getSchedule() - { - return $this->readOneof(101); - } - - public function hasSchedule() - { - return $this->hasOneof(101); - } - - /** - * The scan is scheduled to run periodically. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Trigger.Schedule schedule = 101; - * @param \Google\Cloud\Dataplex\V1\Trigger\Schedule $var - * @return $this - */ - public function setSchedule($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Trigger\Schedule::class); - $this->writeOneof(101, $var); - - return $this; - } - - /** - * The scan runs once, and does not create an associated ScanJob child - * resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Trigger.OneTime one_time = 102; - * @return \Google\Cloud\Dataplex\V1\Trigger\OneTime|null - */ - public function getOneTime() - { - return $this->readOneof(102); - } - - public function hasOneTime() - { - return $this->hasOneof(102); - } - - /** - * The scan runs once, and does not create an associated ScanJob child - * resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Trigger.OneTime one_time = 102; - * @param \Google\Cloud\Dataplex\V1\Trigger\OneTime $var - * @return $this - */ - public function setOneTime($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Trigger\OneTime::class); - $this->writeOneof(102, $var); - - return $this; - } - - /** - * @return string - */ - public function getMode() - { - return $this->whichOneof("mode"); - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Trigger/OnDemand.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Trigger/OnDemand.php deleted file mode 100644 index 4b7ad4570bb9..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Trigger/OnDemand.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.dataplex.v1.Trigger.OnDemand - */ -class OnDemand extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Processing::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Trigger/OneTime.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Trigger/OneTime.php deleted file mode 100644 index a98dc2bf488d..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Trigger/OneTime.php +++ /dev/null @@ -1,93 +0,0 @@ -google.cloud.dataplex.v1.Trigger.OneTime - */ -class OneTime extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Time to live for OneTime scans. - * default value is 24 hours, minimum value is 0 seconds, and maximum value - * is 365 days. The time is calculated from the data scan job completion - * time. If value is set as 0 seconds, the scan will be immediately deleted - * upon job completion, regardless of whether the job succeeded or failed. - * - * Generated from protobuf field .google.protobuf.Duration ttl_after_scan_completion = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $ttl_after_scan_completion = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Duration $ttl_after_scan_completion - * Optional. Time to live for OneTime scans. - * default value is 24 hours, minimum value is 0 seconds, and maximum value - * is 365 days. The time is calculated from the data scan job completion - * time. If value is set as 0 seconds, the scan will be immediately deleted - * upon job completion, regardless of whether the job succeeded or failed. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Processing::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Time to live for OneTime scans. - * default value is 24 hours, minimum value is 0 seconds, and maximum value - * is 365 days. The time is calculated from the data scan job completion - * time. If value is set as 0 seconds, the scan will be immediately deleted - * upon job completion, regardless of whether the job succeeded or failed. - * - * Generated from protobuf field .google.protobuf.Duration ttl_after_scan_completion = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Duration|null - */ - public function getTtlAfterScanCompletion() - { - return $this->ttl_after_scan_completion; - } - - public function hasTtlAfterScanCompletion() - { - return isset($this->ttl_after_scan_completion); - } - - public function clearTtlAfterScanCompletion() - { - unset($this->ttl_after_scan_completion); - } - - /** - * Optional. Time to live for OneTime scans. - * default value is 24 hours, minimum value is 0 seconds, and maximum value - * is 365 days. The time is calculated from the data scan job completion - * time. If value is set as 0 seconds, the scan will be immediately deleted - * upon job completion, regardless of whether the job succeeded or failed. - * - * Generated from protobuf field .google.protobuf.Duration ttl_after_scan_completion = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setTtlAfterScanCompletion($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->ttl_after_scan_completion = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Trigger/Schedule.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Trigger/Schedule.php deleted file mode 100644 index ebd33ba0d353..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Trigger/Schedule.php +++ /dev/null @@ -1,103 +0,0 @@ -google.cloud.dataplex.v1.Trigger.Schedule - */ -class Schedule extends \Google\Protobuf\Internal\Message -{ - /** - * Required. [Cron](https://en.wikipedia.org/wiki/Cron) schedule for running - * scans periodically. - * To explicitly set a timezone in the cron tab, apply a prefix in the - * cron tab: **"CRON_TZ=${IANA_TIME_ZONE}"** or **"TZ=${IANA_TIME_ZONE}"**. - * The **${IANA_TIME_ZONE}** may only be a valid string from IANA time zone - * database - * ([wikipedia](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List)). - * For example, `CRON_TZ=America/New_York 1 * * * *`, or - * `TZ=America/New_York 1 * * * *`. - * This field is required for Schedule scans. - * - * Generated from protobuf field string cron = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $cron = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $cron - * Required. [Cron](https://en.wikipedia.org/wiki/Cron) schedule for running - * scans periodically. - * To explicitly set a timezone in the cron tab, apply a prefix in the - * cron tab: **"CRON_TZ=${IANA_TIME_ZONE}"** or **"TZ=${IANA_TIME_ZONE}"**. - * The **${IANA_TIME_ZONE}** may only be a valid string from IANA time zone - * database - * ([wikipedia](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List)). - * For example, `CRON_TZ=America/New_York 1 * * * *`, or - * `TZ=America/New_York 1 * * * *`. - * This field is required for Schedule scans. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Processing::initOnce(); - parent::__construct($data); - } - - /** - * Required. [Cron](https://en.wikipedia.org/wiki/Cron) schedule for running - * scans periodically. - * To explicitly set a timezone in the cron tab, apply a prefix in the - * cron tab: **"CRON_TZ=${IANA_TIME_ZONE}"** or **"TZ=${IANA_TIME_ZONE}"**. - * The **${IANA_TIME_ZONE}** may only be a valid string from IANA time zone - * database - * ([wikipedia](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List)). - * For example, `CRON_TZ=America/New_York 1 * * * *`, or - * `TZ=America/New_York 1 * * * *`. - * This field is required for Schedule scans. - * - * Generated from protobuf field string cron = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getCron() - { - return $this->cron; - } - - /** - * Required. [Cron](https://en.wikipedia.org/wiki/Cron) schedule for running - * scans periodically. - * To explicitly set a timezone in the cron tab, apply a prefix in the - * cron tab: **"CRON_TZ=${IANA_TIME_ZONE}"** or **"TZ=${IANA_TIME_ZONE}"**. - * The **${IANA_TIME_ZONE}** may only be a valid string from IANA time zone - * database - * ([wikipedia](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List)). - * For example, `CRON_TZ=America/New_York 1 * * * *`, or - * `TZ=America/New_York 1 * * * *`. - * This field is required for Schedule scans. - * - * Generated from protobuf field string cron = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setCron($var) - { - GPBUtil::checkString($var, True); - $this->cron = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateAspectTypeRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateAspectTypeRequest.php deleted file mode 100644 index c8024f33ed5f..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateAspectTypeRequest.php +++ /dev/null @@ -1,174 +0,0 @@ -google.cloud.dataplex.v1.UpdateAspectTypeRequest - */ -class UpdateAspectTypeRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. AspectType Resource - * - * Generated from protobuf field .google.cloud.dataplex.v1.AspectType aspect_type = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $aspect_type = null; - /** - * Required. Mask of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param \Google\Cloud\Dataplex\V1\AspectType $aspectType Required. AspectType Resource - * @param \Google\Protobuf\FieldMask $updateMask Required. Mask of fields to update. - * - * @return \Google\Cloud\Dataplex\V1\UpdateAspectTypeRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Dataplex\V1\AspectType $aspectType, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setAspectType($aspectType) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\AspectType $aspect_type - * Required. AspectType Resource - * @type \Google\Protobuf\FieldMask $update_mask - * Required. Mask of fields to update. - * @type bool $validate_only - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Required. AspectType Resource - * - * Generated from protobuf field .google.cloud.dataplex.v1.AspectType aspect_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataplex\V1\AspectType|null - */ - public function getAspectType() - { - return $this->aspect_type; - } - - public function hasAspectType() - { - return isset($this->aspect_type); - } - - public function clearAspectType() - { - unset($this->aspect_type); - } - - /** - * Required. AspectType Resource - * - * Generated from protobuf field .google.cloud.dataplex.v1.AspectType aspect_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\AspectType $var - * @return $this - */ - public function setAspectType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\AspectType::class); - $this->aspect_type = $var; - - return $this; - } - - /** - * Required. Mask of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @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); - } - - /** - * Required. Mask of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateAssetRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateAssetRequest.php deleted file mode 100644 index 1ad5f2151d8e..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateAssetRequest.php +++ /dev/null @@ -1,179 +0,0 @@ -google.cloud.dataplex.v1.UpdateAssetRequest - */ -class UpdateAssetRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Mask of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - /** - * Required. Update description. - * Only fields specified in `update_mask` are updated. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Asset asset = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $asset = null; - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param \Google\Cloud\Dataplex\V1\Asset $asset Required. Update description. - * Only fields specified in `update_mask` are updated. - * @param \Google\Protobuf\FieldMask $updateMask Required. Mask of fields to update. - * - * @return \Google\Cloud\Dataplex\V1\UpdateAssetRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Dataplex\V1\Asset $asset, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setAsset($asset) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\FieldMask $update_mask - * Required. Mask of fields to update. - * @type \Google\Cloud\Dataplex\V1\Asset $asset - * Required. Update description. - * Only fields specified in `update_mask` are updated. - * @type bool $validate_only - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Mask of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * @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); - } - - /** - * Required. Mask of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * @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. Update description. - * Only fields specified in `update_mask` are updated. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Asset asset = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataplex\V1\Asset|null - */ - public function getAsset() - { - return $this->asset; - } - - public function hasAsset() - { - return isset($this->asset); - } - - public function clearAsset() - { - unset($this->asset); - } - - /** - * Required. Update description. - * Only fields specified in `update_mask` are updated. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Asset asset = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\Asset $var - * @return $this - */ - public function setAsset($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Asset::class); - $this->asset = $var; - - return $this; - } - - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateDataAssetRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateDataAssetRequest.php deleted file mode 100644 index a31d7fe91e05..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateDataAssetRequest.php +++ /dev/null @@ -1,184 +0,0 @@ -google.cloud.dataplex.v1.UpdateDataAssetRequest - */ -class UpdateDataAssetRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The data asset to update. - * The data asset's `name` field is used to identify the data asset to update. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataAsset data_asset = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_asset = null; - /** - * Optional. The list of fields to update. - * If this is empty or not set, then all the fields will be updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $update_mask = null; - /** - * Optional. Validates the request without actually updating the data asset. - * Defaults to false. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param \Google\Cloud\Dataplex\V1\DataAsset $dataAsset Required. The data asset to update. - * The data asset's `name` field is used to identify the data asset to update. - * @param \Google\Protobuf\FieldMask $updateMask Optional. The list of fields to update. - * If this is empty or not set, then all the fields will be updated. - * - * @return \Google\Cloud\Dataplex\V1\UpdateDataAssetRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Dataplex\V1\DataAsset $dataAsset, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setDataAsset($dataAsset) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\DataAsset $data_asset - * Required. The data asset to update. - * The data asset's `name` field is used to identify the data asset to update. - * @type \Google\Protobuf\FieldMask $update_mask - * Optional. The list of fields to update. - * If this is empty or not set, then all the fields will be updated. - * @type bool $validate_only - * Optional. Validates the request without actually updating the data asset. - * Defaults to false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataProducts::initOnce(); - parent::__construct($data); - } - - /** - * Required. The data asset to update. - * The data asset's `name` field is used to identify the data asset to update. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataAsset data_asset = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataplex\V1\DataAsset|null - */ - public function getDataAsset() - { - return $this->data_asset; - } - - public function hasDataAsset() - { - return isset($this->data_asset); - } - - public function clearDataAsset() - { - unset($this->data_asset); - } - - /** - * Required. The data asset to update. - * The data asset's `name` field is used to identify the data asset to update. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataAsset data_asset = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\DataAsset $var - * @return $this - */ - public function setDataAsset($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataAsset::class); - $this->data_asset = $var; - - return $this; - } - - /** - * Optional. The list of fields to update. - * If this is empty or not set, then all the fields will be updated. - * - * 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 to update. - * If this is empty or not set, then all the fields will be updated. - * - * 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; - } - - /** - * Optional. Validates the request without actually updating the data asset. - * Defaults to false. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. Validates the request without actually updating the data asset. - * Defaults to false. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateDataAttributeBindingRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateDataAttributeBindingRequest.php deleted file mode 100644 index 1202c5cc9f1f..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateDataAttributeBindingRequest.php +++ /dev/null @@ -1,174 +0,0 @@ -google.cloud.dataplex.v1.UpdateDataAttributeBindingRequest - */ -class UpdateDataAttributeBindingRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Mask of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - /** - * Required. Only fields specified in `update_mask` are updated. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataAttributeBinding data_attribute_binding = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_attribute_binding = null; - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param \Google\Cloud\Dataplex\V1\DataAttributeBinding $dataAttributeBinding Required. Only fields specified in `update_mask` are updated. - * @param \Google\Protobuf\FieldMask $updateMask Required. Mask of fields to update. - * - * @return \Google\Cloud\Dataplex\V1\UpdateDataAttributeBindingRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Dataplex\V1\DataAttributeBinding $dataAttributeBinding, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setDataAttributeBinding($dataAttributeBinding) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\FieldMask $update_mask - * Required. Mask of fields to update. - * @type \Google\Cloud\Dataplex\V1\DataAttributeBinding $data_attribute_binding - * Required. Only fields specified in `update_mask` are updated. - * @type bool $validate_only - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataTaxonomy::initOnce(); - parent::__construct($data); - } - - /** - * Required. Mask of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * @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); - } - - /** - * Required. Mask of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * @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. Only fields specified in `update_mask` are updated. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataAttributeBinding data_attribute_binding = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataplex\V1\DataAttributeBinding|null - */ - public function getDataAttributeBinding() - { - return $this->data_attribute_binding; - } - - public function hasDataAttributeBinding() - { - return isset($this->data_attribute_binding); - } - - public function clearDataAttributeBinding() - { - unset($this->data_attribute_binding); - } - - /** - * Required. Only fields specified in `update_mask` are updated. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataAttributeBinding data_attribute_binding = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\DataAttributeBinding $var - * @return $this - */ - public function setDataAttributeBinding($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataAttributeBinding::class); - $this->data_attribute_binding = $var; - - return $this; - } - - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateDataAttributeRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateDataAttributeRequest.php deleted file mode 100644 index 7fd9a579b0ea..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateDataAttributeRequest.php +++ /dev/null @@ -1,174 +0,0 @@ -google.cloud.dataplex.v1.UpdateDataAttributeRequest - */ -class UpdateDataAttributeRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Mask of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - /** - * Required. Only fields specified in `update_mask` are updated. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataAttribute data_attribute = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_attribute = null; - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param \Google\Cloud\Dataplex\V1\DataAttribute $dataAttribute Required. Only fields specified in `update_mask` are updated. - * @param \Google\Protobuf\FieldMask $updateMask Required. Mask of fields to update. - * - * @return \Google\Cloud\Dataplex\V1\UpdateDataAttributeRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Dataplex\V1\DataAttribute $dataAttribute, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setDataAttribute($dataAttribute) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\FieldMask $update_mask - * Required. Mask of fields to update. - * @type \Google\Cloud\Dataplex\V1\DataAttribute $data_attribute - * Required. Only fields specified in `update_mask` are updated. - * @type bool $validate_only - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataTaxonomy::initOnce(); - parent::__construct($data); - } - - /** - * Required. Mask of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * @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); - } - - /** - * Required. Mask of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * @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. Only fields specified in `update_mask` are updated. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataAttribute data_attribute = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataplex\V1\DataAttribute|null - */ - public function getDataAttribute() - { - return $this->data_attribute; - } - - public function hasDataAttribute() - { - return isset($this->data_attribute); - } - - public function clearDataAttribute() - { - unset($this->data_attribute); - } - - /** - * Required. Only fields specified in `update_mask` are updated. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataAttribute data_attribute = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\DataAttribute $var - * @return $this - */ - public function setDataAttribute($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataAttribute::class); - $this->data_attribute = $var; - - return $this; - } - - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateDataProductRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateDataProductRequest.php deleted file mode 100644 index 3bd5730f3a15..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateDataProductRequest.php +++ /dev/null @@ -1,189 +0,0 @@ -google.cloud.dataplex.v1.UpdateDataProductRequest - */ -class UpdateDataProductRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The data product to update. - * The data product's `name` field is used to identify the data product to - * update. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataProduct data_product = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_product = null; - /** - * Optional. The list of fields to update. - * If this is empty or not set, then all the fields will be updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $update_mask = null; - /** - * Optional. Validates the request without actually updating the data product. - * Default: false. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param \Google\Cloud\Dataplex\V1\DataProduct $dataProduct Required. The data product to update. - * The data product's `name` field is used to identify the data product to - * update. - * @param \Google\Protobuf\FieldMask $updateMask Optional. The list of fields to update. - * If this is empty or not set, then all the fields will be updated. - * - * @return \Google\Cloud\Dataplex\V1\UpdateDataProductRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Dataplex\V1\DataProduct $dataProduct, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setDataProduct($dataProduct) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\DataProduct $data_product - * Required. The data product to update. - * The data product's `name` field is used to identify the data product to - * update. - * @type \Google\Protobuf\FieldMask $update_mask - * Optional. The list of fields to update. - * If this is empty or not set, then all the fields will be updated. - * @type bool $validate_only - * Optional. Validates the request without actually updating the data product. - * Default: false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataProducts::initOnce(); - parent::__construct($data); - } - - /** - * Required. The data product to update. - * The data product's `name` field is used to identify the data product to - * update. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataProduct data_product = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataplex\V1\DataProduct|null - */ - public function getDataProduct() - { - return $this->data_product; - } - - public function hasDataProduct() - { - return isset($this->data_product); - } - - public function clearDataProduct() - { - unset($this->data_product); - } - - /** - * Required. The data product to update. - * The data product's `name` field is used to identify the data product to - * update. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataProduct data_product = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\DataProduct $var - * @return $this - */ - public function setDataProduct($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataProduct::class); - $this->data_product = $var; - - return $this; - } - - /** - * Optional. The list of fields to update. - * If this is empty or not set, then all the fields will be updated. - * - * 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 to update. - * If this is empty or not set, then all the fields will be updated. - * - * 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; - } - - /** - * Optional. Validates the request without actually updating the data product. - * Default: false. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. Validates the request without actually updating the data product. - * Default: false. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateDataScanRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateDataScanRequest.php deleted file mode 100644 index e3515e81d3dd..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateDataScanRequest.php +++ /dev/null @@ -1,180 +0,0 @@ -google.cloud.dataplex.v1.UpdateDataScanRequest - */ -class UpdateDataScanRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. DataScan resource to be updated. - * Only fields specified in `update_mask` are updated. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScan data_scan = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_scan = null; - /** - * Optional. Mask of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $update_mask = null; - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is `false`. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param \Google\Cloud\Dataplex\V1\DataScan $dataScan Required. DataScan resource to be updated. - * - * Only fields specified in `update_mask` are updated. - * @param \Google\Protobuf\FieldMask $updateMask Optional. Mask of fields to update. - * - * @return \Google\Cloud\Dataplex\V1\UpdateDataScanRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Dataplex\V1\DataScan $dataScan, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setDataScan($dataScan) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\DataScan $data_scan - * Required. DataScan resource to be updated. - * Only fields specified in `update_mask` are updated. - * @type \Google\Protobuf\FieldMask $update_mask - * Optional. Mask of fields to update. - * @type bool $validate_only - * Optional. Only validate the request, but do not perform mutations. - * The default is `false`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Datascans::initOnce(); - parent::__construct($data); - } - - /** - * Required. DataScan resource to be updated. - * Only fields specified in `update_mask` are updated. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScan data_scan = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataplex\V1\DataScan|null - */ - public function getDataScan() - { - return $this->data_scan; - } - - public function hasDataScan() - { - return isset($this->data_scan); - } - - public function clearDataScan() - { - unset($this->data_scan); - } - - /** - * Required. DataScan resource to be updated. - * Only fields specified in `update_mask` are updated. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataScan data_scan = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\DataScan $var - * @return $this - */ - public function setDataScan($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataScan::class); - $this->data_scan = $var; - - return $this; - } - - /** - * Optional. Mask of fields 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. Mask of fields 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; - } - - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is `false`. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is `false`. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateDataTaxonomyRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateDataTaxonomyRequest.php deleted file mode 100644 index 4351810e4aba..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateDataTaxonomyRequest.php +++ /dev/null @@ -1,175 +0,0 @@ -google.cloud.dataplex.v1.UpdateDataTaxonomyRequest - */ -class UpdateDataTaxonomyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Mask of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - /** - * Required. Only fields specified in `update_mask` are updated. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataTaxonomy data_taxonomy = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_taxonomy = null; - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param \Google\Cloud\Dataplex\V1\DataTaxonomy $dataTaxonomy Required. Only fields specified in `update_mask` are updated. - * @param \Google\Protobuf\FieldMask $updateMask Required. Mask of fields to update. - * - * @return \Google\Cloud\Dataplex\V1\UpdateDataTaxonomyRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Dataplex\V1\DataTaxonomy $dataTaxonomy, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setDataTaxonomy($dataTaxonomy) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\FieldMask $update_mask - * Required. Mask of fields to update. - * @type \Google\Cloud\Dataplex\V1\DataTaxonomy $data_taxonomy - * Required. Only fields specified in `update_mask` are updated. - * @type bool $validate_only - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\DataTaxonomy::initOnce(); - parent::__construct($data); - } - - /** - * Required. Mask of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * @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); - } - - /** - * Required. Mask of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * @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. Only fields specified in `update_mask` are updated. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataTaxonomy data_taxonomy = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataplex\V1\DataTaxonomy|null - */ - public function getDataTaxonomy() - { - return $this->data_taxonomy; - } - - public function hasDataTaxonomy() - { - return isset($this->data_taxonomy); - } - - public function clearDataTaxonomy() - { - unset($this->data_taxonomy); - } - - /** - * Required. Only fields specified in `update_mask` are updated. - * - * Generated from protobuf field .google.cloud.dataplex.v1.DataTaxonomy data_taxonomy = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\DataTaxonomy $var - * @return $this - */ - public function setDataTaxonomy($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataTaxonomy::class); - $this->data_taxonomy = $var; - - return $this; - } - - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateEncryptionConfigRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateEncryptionConfigRequest.php deleted file mode 100644 index e2b1b7b49c6e..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateEncryptionConfigRequest.php +++ /dev/null @@ -1,146 +0,0 @@ -google.cloud.dataplex.v1.UpdateEncryptionConfigRequest - */ -class UpdateEncryptionConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The EncryptionConfig to update. - * - * Generated from protobuf field .google.cloud.dataplex.v1.EncryptionConfig encryption_config = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $encryption_config = null; - /** - * Optional. Mask of fields to update. - * The service treats an omitted field mask as an implied field mask - * equivalent to all fields that are populated (have a non-empty value). - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $update_mask = null; - - /** - * @param \Google\Cloud\Dataplex\V1\EncryptionConfig $encryptionConfig Required. The EncryptionConfig to update. - * @param \Google\Protobuf\FieldMask $updateMask Optional. Mask of fields to update. - * The service treats an omitted field mask as an implied field mask - * equivalent to all fields that are populated (have a non-empty value). - * - * @return \Google\Cloud\Dataplex\V1\UpdateEncryptionConfigRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Dataplex\V1\EncryptionConfig $encryptionConfig, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setEncryptionConfig($encryptionConfig) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\EncryptionConfig $encryption_config - * Required. The EncryptionConfig to update. - * @type \Google\Protobuf\FieldMask $update_mask - * Optional. Mask of fields to update. - * The service treats an omitted field mask as an implied field mask - * equivalent to all fields that are populated (have a non-empty value). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Cmek::initOnce(); - parent::__construct($data); - } - - /** - * Required. The EncryptionConfig to update. - * - * Generated from protobuf field .google.cloud.dataplex.v1.EncryptionConfig encryption_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataplex\V1\EncryptionConfig|null - */ - public function getEncryptionConfig() - { - return $this->encryption_config; - } - - public function hasEncryptionConfig() - { - return isset($this->encryption_config); - } - - public function clearEncryptionConfig() - { - unset($this->encryption_config); - } - - /** - * Required. The EncryptionConfig to update. - * - * Generated from protobuf field .google.cloud.dataplex.v1.EncryptionConfig encryption_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\EncryptionConfig $var - * @return $this - */ - public function setEncryptionConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\EncryptionConfig::class); - $this->encryption_config = $var; - - return $this; - } - - /** - * Optional. Mask of fields to update. - * The service treats an omitted field mask as an implied field mask - * equivalent to all fields that are populated (have a non-empty value). - * - * 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. Mask of fields to update. - * The service treats an omitted field mask as an implied field mask - * equivalent to all fields that are populated (have a non-empty value). - * - * 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateEntityRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateEntityRequest.php deleted file mode 100644 index bb23770318fc..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateEntityRequest.php +++ /dev/null @@ -1,118 +0,0 @@ -google.cloud.dataplex.v1.UpdateEntityRequest - */ -class UpdateEntityRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Update description. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Entity entity = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $entity = null; - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\Entity $entity - * Required. Update description. - * @type bool $validate_only - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Metadata::initOnce(); - parent::__construct($data); - } - - /** - * Required. Update description. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Entity entity = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataplex\V1\Entity|null - */ - public function getEntity() - { - return $this->entity; - } - - public function hasEntity() - { - return isset($this->entity); - } - - public function clearEntity() - { - unset($this->entity); - } - - /** - * Required. Update description. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Entity entity = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\Entity $var - * @return $this - */ - public function setEntity($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Entity::class); - $this->entity = $var; - - return $this; - } - - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateEntryGroupRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateEntryGroupRequest.php deleted file mode 100644 index abd73bd98cb5..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateEntryGroupRequest.php +++ /dev/null @@ -1,174 +0,0 @@ -google.cloud.dataplex.v1.UpdateEntryGroupRequest - */ -class UpdateEntryGroupRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. EntryGroup Resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.EntryGroup entry_group = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $entry_group = null; - /** - * Required. Mask of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - /** - * Optional. The service validates the request, without performing any - * mutations. The default is false. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param \Google\Cloud\Dataplex\V1\EntryGroup $entryGroup Required. EntryGroup Resource. - * @param \Google\Protobuf\FieldMask $updateMask Required. Mask of fields to update. - * - * @return \Google\Cloud\Dataplex\V1\UpdateEntryGroupRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Dataplex\V1\EntryGroup $entryGroup, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setEntryGroup($entryGroup) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\EntryGroup $entry_group - * Required. EntryGroup Resource. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. Mask of fields to update. - * @type bool $validate_only - * Optional. The service validates the request, without performing any - * mutations. The default is false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Required. EntryGroup Resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.EntryGroup entry_group = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataplex\V1\EntryGroup|null - */ - public function getEntryGroup() - { - return $this->entry_group; - } - - public function hasEntryGroup() - { - return isset($this->entry_group); - } - - public function clearEntryGroup() - { - unset($this->entry_group); - } - - /** - * Required. EntryGroup Resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.EntryGroup entry_group = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\EntryGroup $var - * @return $this - */ - public function setEntryGroup($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\EntryGroup::class); - $this->entry_group = $var; - - return $this; - } - - /** - * Required. Mask of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @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); - } - - /** - * Required. Mask of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * Optional. The service validates the request, without performing any - * mutations. The default is false. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. The service validates the request, without performing any - * mutations. The default is false. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateEntryLinkRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateEntryLinkRequest.php deleted file mode 100644 index 3618e2b20abf..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateEntryLinkRequest.php +++ /dev/null @@ -1,178 +0,0 @@ -google.cloud.dataplex.v1.UpdateEntryLinkRequest - */ -class UpdateEntryLinkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Entry Link resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.EntryLink entry_link = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $entry_link = null; - /** - * Optional. If set to true and the entry link doesn't exist, the service will - * create it. - * - * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $allow_missing = false; - /** - * Optional. The map keys of the Aspects which the service should modify. - * It should be the aspect type reference in the format - * `{project_id_or_number}.{location_id}.{aspect_type_id}`. - * If this field is left empty, the service treats it as specifying - * exactly those Aspects present in the request. - * - * Generated from protobuf field repeated string aspect_keys = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $aspect_keys; - - /** - * @param \Google\Cloud\Dataplex\V1\EntryLink $entryLink Required. Entry Link resource. - * - * @return \Google\Cloud\Dataplex\V1\UpdateEntryLinkRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Dataplex\V1\EntryLink $entryLink): self - { - return (new self()) - ->setEntryLink($entryLink); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\EntryLink $entry_link - * Required. Entry Link resource. - * @type bool $allow_missing - * Optional. If set to true and the entry link doesn't exist, the service will - * create it. - * @type string[] $aspect_keys - * Optional. The map keys of the Aspects which the service should modify. - * It should be the aspect type reference in the format - * `{project_id_or_number}.{location_id}.{aspect_type_id}`. - * If this field is left empty, the service treats it as specifying - * exactly those Aspects present in the request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Required. Entry Link resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.EntryLink entry_link = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataplex\V1\EntryLink|null - */ - public function getEntryLink() - { - return $this->entry_link; - } - - public function hasEntryLink() - { - return isset($this->entry_link); - } - - public function clearEntryLink() - { - unset($this->entry_link); - } - - /** - * Required. Entry Link resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.EntryLink entry_link = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\EntryLink $var - * @return $this - */ - public function setEntryLink($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\EntryLink::class); - $this->entry_link = $var; - - return $this; - } - - /** - * Optional. If set to true and the entry link doesn't exist, the service will - * create it. - * - * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getAllowMissing() - { - return $this->allow_missing; - } - - /** - * Optional. If set to true and the entry link doesn't exist, the service will - * create it. - * - * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setAllowMissing($var) - { - GPBUtil::checkBool($var); - $this->allow_missing = $var; - - return $this; - } - - /** - * Optional. The map keys of the Aspects which the service should modify. - * It should be the aspect type reference in the format - * `{project_id_or_number}.{location_id}.{aspect_type_id}`. - * If this field is left empty, the service treats it as specifying - * exactly those Aspects present in the request. - * - * Generated from protobuf field repeated string aspect_keys = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getAspectKeys() - { - return $this->aspect_keys; - } - - /** - * Optional. The map keys of the Aspects which the service should modify. - * It should be the aspect type reference in the format - * `{project_id_or_number}.{location_id}.{aspect_type_id}`. - * If this field is left empty, the service treats it as specifying - * exactly those Aspects present in the request. - * - * Generated from protobuf field repeated string aspect_keys = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setAspectKeys($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->aspect_keys = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateEntryRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateEntryRequest.php deleted file mode 100644 index 6670a0e01dd1..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateEntryRequest.php +++ /dev/null @@ -1,322 +0,0 @@ -google.cloud.dataplex.v1.UpdateEntryRequest - */ -class UpdateEntryRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Entry resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Entry entry = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $entry = null; - /** - * Optional. Mask of fields to update. To update Aspects, the update_mask must - * contain the value "aspects". - * If the update_mask is empty, the service will update all modifiable fields - * present in the request. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $update_mask = null; - /** - * Optional. If set to true and the entry doesn't exist, the service will - * create it. - * - * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $allow_missing = false; - /** - * Optional. If set to true and the aspect_keys specify aspect ranges, the - * service deletes any existing aspects from that range that weren't provided - * in the request. - * - * Generated from protobuf field bool delete_missing_aspects = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $delete_missing_aspects = false; - /** - * Optional. The map keys of the Aspects which the service should modify. It - * supports the following syntaxes: - * * `` - matches an aspect of the given type and empty - * path. - * * `\@path` - matches an aspect of the given type and - * specified path. For example, to attach an aspect to a field that is - * specified by the `schema` aspect, the path should have the format - * `Schema.`. - * * `\@*` - matches aspects of the given type for all - * paths. - * * `*\@path` - matches aspects of all types on the given path. - * The service will not remove existing aspects matching the syntax unless - * `delete_missing_aspects` is set to true. - * If this field is left empty, the service treats it as specifying - * exactly those Aspects present in the request. - * - * Generated from protobuf field repeated string aspect_keys = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $aspect_keys; - - /** - * @param \Google\Cloud\Dataplex\V1\Entry $entry Required. Entry resource. - * @param \Google\Protobuf\FieldMask $updateMask Optional. Mask of fields to update. To update Aspects, the update_mask must - * contain the value "aspects". - * - * If the update_mask is empty, the service will update all modifiable fields - * present in the request. - * - * @return \Google\Cloud\Dataplex\V1\UpdateEntryRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Dataplex\V1\Entry $entry, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setEntry($entry) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\Entry $entry - * Required. Entry resource. - * @type \Google\Protobuf\FieldMask $update_mask - * Optional. Mask of fields to update. To update Aspects, the update_mask must - * contain the value "aspects". - * If the update_mask is empty, the service will update all modifiable fields - * present in the request. - * @type bool $allow_missing - * Optional. If set to true and the entry doesn't exist, the service will - * create it. - * @type bool $delete_missing_aspects - * Optional. If set to true and the aspect_keys specify aspect ranges, the - * service deletes any existing aspects from that range that weren't provided - * in the request. - * @type string[] $aspect_keys - * Optional. The map keys of the Aspects which the service should modify. It - * supports the following syntaxes: - * * `` - matches an aspect of the given type and empty - * path. - * * `\@path` - matches an aspect of the given type and - * specified path. For example, to attach an aspect to a field that is - * specified by the `schema` aspect, the path should have the format - * `Schema.`. - * * `\@*` - matches aspects of the given type for all - * paths. - * * `*\@path` - matches aspects of all types on the given path. - * The service will not remove existing aspects matching the syntax unless - * `delete_missing_aspects` is set to true. - * If this field is left empty, the service treats it as specifying - * exactly those Aspects present in the request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Required. Entry resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Entry entry = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataplex\V1\Entry|null - */ - public function getEntry() - { - return $this->entry; - } - - public function hasEntry() - { - return isset($this->entry); - } - - public function clearEntry() - { - unset($this->entry); - } - - /** - * Required. Entry resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Entry entry = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\Entry $var - * @return $this - */ - public function setEntry($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Entry::class); - $this->entry = $var; - - return $this; - } - - /** - * Optional. Mask of fields to update. To update Aspects, the update_mask must - * contain the value "aspects". - * If the update_mask is empty, the service will update all modifiable fields - * present in the request. - * - * 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. Mask of fields to update. To update Aspects, the update_mask must - * contain the value "aspects". - * If the update_mask is empty, the service will update all modifiable fields - * present in the request. - * - * 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; - } - - /** - * Optional. If set to true and the entry doesn't exist, the service will - * create it. - * - * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getAllowMissing() - { - return $this->allow_missing; - } - - /** - * Optional. If set to true and the entry doesn't exist, the service will - * create it. - * - * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setAllowMissing($var) - { - GPBUtil::checkBool($var); - $this->allow_missing = $var; - - return $this; - } - - /** - * Optional. If set to true and the aspect_keys specify aspect ranges, the - * service deletes any existing aspects from that range that weren't provided - * in the request. - * - * Generated from protobuf field bool delete_missing_aspects = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getDeleteMissingAspects() - { - return $this->delete_missing_aspects; - } - - /** - * Optional. If set to true and the aspect_keys specify aspect ranges, the - * service deletes any existing aspects from that range that weren't provided - * in the request. - * - * Generated from protobuf field bool delete_missing_aspects = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setDeleteMissingAspects($var) - { - GPBUtil::checkBool($var); - $this->delete_missing_aspects = $var; - - return $this; - } - - /** - * Optional. The map keys of the Aspects which the service should modify. It - * supports the following syntaxes: - * * `` - matches an aspect of the given type and empty - * path. - * * `\@path` - matches an aspect of the given type and - * specified path. For example, to attach an aspect to a field that is - * specified by the `schema` aspect, the path should have the format - * `Schema.`. - * * `\@*` - matches aspects of the given type for all - * paths. - * * `*\@path` - matches aspects of all types on the given path. - * The service will not remove existing aspects matching the syntax unless - * `delete_missing_aspects` is set to true. - * If this field is left empty, the service treats it as specifying - * exactly those Aspects present in the request. - * - * Generated from protobuf field repeated string aspect_keys = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getAspectKeys() - { - return $this->aspect_keys; - } - - /** - * Optional. The map keys of the Aspects which the service should modify. It - * supports the following syntaxes: - * * `` - matches an aspect of the given type and empty - * path. - * * `\@path` - matches an aspect of the given type and - * specified path. For example, to attach an aspect to a field that is - * specified by the `schema` aspect, the path should have the format - * `Schema.`. - * * `\@*` - matches aspects of the given type for all - * paths. - * * `*\@path` - matches aspects of all types on the given path. - * The service will not remove existing aspects matching the syntax unless - * `delete_missing_aspects` is set to true. - * If this field is left empty, the service treats it as specifying - * exactly those Aspects present in the request. - * - * Generated from protobuf field repeated string aspect_keys = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setAspectKeys($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->aspect_keys = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateEntryTypeRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateEntryTypeRequest.php deleted file mode 100644 index 48a9a9a12e0f..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateEntryTypeRequest.php +++ /dev/null @@ -1,174 +0,0 @@ -google.cloud.dataplex.v1.UpdateEntryTypeRequest - */ -class UpdateEntryTypeRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. EntryType Resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.EntryType entry_type = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $entry_type = null; - /** - * Required. Mask of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - /** - * Optional. The service validates the request without performing any - * mutations. The default is false. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param \Google\Cloud\Dataplex\V1\EntryType $entryType Required. EntryType Resource. - * @param \Google\Protobuf\FieldMask $updateMask Required. Mask of fields to update. - * - * @return \Google\Cloud\Dataplex\V1\UpdateEntryTypeRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Dataplex\V1\EntryType $entryType, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setEntryType($entryType) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\EntryType $entry_type - * Required. EntryType Resource. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. Mask of fields to update. - * @type bool $validate_only - * Optional. The service validates the request without performing any - * mutations. The default is false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Required. EntryType Resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.EntryType entry_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataplex\V1\EntryType|null - */ - public function getEntryType() - { - return $this->entry_type; - } - - public function hasEntryType() - { - return isset($this->entry_type); - } - - public function clearEntryType() - { - unset($this->entry_type); - } - - /** - * Required. EntryType Resource. - * - * Generated from protobuf field .google.cloud.dataplex.v1.EntryType entry_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\EntryType $var - * @return $this - */ - public function setEntryType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\EntryType::class); - $this->entry_type = $var; - - return $this; - } - - /** - * Required. Mask of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @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); - } - - /** - * Required. Mask of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * Optional. The service validates the request without performing any - * mutations. The default is false. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. The service validates the request without performing any - * mutations. The default is false. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateGlossaryCategoryRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateGlossaryCategoryRequest.php deleted file mode 100644 index 9be8d0f5d3c4..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateGlossaryCategoryRequest.php +++ /dev/null @@ -1,151 +0,0 @@ -google.cloud.dataplex.v1.UpdateGlossaryCategoryRequest - */ -class UpdateGlossaryCategoryRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The GlossaryCategory to update. - * The GlossaryCategory's `name` field is used to identify the - * GlossaryCategory to update. Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id} - * - * Generated from protobuf field .google.cloud.dataplex.v1.GlossaryCategory category = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $category = null; - /** - * Required. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Cloud\Dataplex\V1\GlossaryCategory $category Required. The GlossaryCategory to update. - * The GlossaryCategory's `name` field is used to identify the - * GlossaryCategory to update. Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id} - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to update. - * - * @return \Google\Cloud\Dataplex\V1\UpdateGlossaryCategoryRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Dataplex\V1\GlossaryCategory $category, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setCategory($category) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\GlossaryCategory $category - * Required. The GlossaryCategory to update. - * The GlossaryCategory's `name` field is used to identify the - * GlossaryCategory to update. Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id} - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\BusinessGlossary::initOnce(); - parent::__construct($data); - } - - /** - * Required. The GlossaryCategory to update. - * The GlossaryCategory's `name` field is used to identify the - * GlossaryCategory to update. Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id} - * - * Generated from protobuf field .google.cloud.dataplex.v1.GlossaryCategory category = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataplex\V1\GlossaryCategory|null - */ - public function getCategory() - { - return $this->category; - } - - public function hasCategory() - { - return isset($this->category); - } - - public function clearCategory() - { - unset($this->category); - } - - /** - * Required. The GlossaryCategory to update. - * The GlossaryCategory's `name` field is used to identify the - * GlossaryCategory to update. Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id} - * - * Generated from protobuf field .google.cloud.dataplex.v1.GlossaryCategory category = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\GlossaryCategory $var - * @return $this - */ - public function setCategory($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\GlossaryCategory::class); - $this->category = $var; - - return $this; - } - - /** - * Required. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @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); - } - - /** - * Required. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateGlossaryRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateGlossaryRequest.php deleted file mode 100644 index 56e39f0fe6e8..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateGlossaryRequest.php +++ /dev/null @@ -1,189 +0,0 @@ -google.cloud.dataplex.v1.UpdateGlossaryRequest - */ -class UpdateGlossaryRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The Glossary to update. - * The Glossary's `name` field is used to identify the Glossary to update. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} - * - * Generated from protobuf field .google.cloud.dataplex.v1.Glossary glossary = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $glossary = null; - /** - * Required. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - /** - * Optional. Validates the request without actually updating the Glossary. - * Default: false. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param \Google\Cloud\Dataplex\V1\Glossary $glossary Required. The Glossary to update. - * The Glossary's `name` field is used to identify the Glossary to update. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to update. - * - * @return \Google\Cloud\Dataplex\V1\UpdateGlossaryRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Dataplex\V1\Glossary $glossary, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setGlossary($glossary) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\Glossary $glossary - * Required. The Glossary to update. - * The Glossary's `name` field is used to identify the Glossary to update. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to update. - * @type bool $validate_only - * Optional. Validates the request without actually updating the Glossary. - * Default: false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\BusinessGlossary::initOnce(); - parent::__construct($data); - } - - /** - * Required. The Glossary to update. - * The Glossary's `name` field is used to identify the Glossary to update. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} - * - * Generated from protobuf field .google.cloud.dataplex.v1.Glossary glossary = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataplex\V1\Glossary|null - */ - public function getGlossary() - { - return $this->glossary; - } - - public function hasGlossary() - { - return isset($this->glossary); - } - - public function clearGlossary() - { - unset($this->glossary); - } - - /** - * Required. The Glossary to update. - * The Glossary's `name` field is used to identify the Glossary to update. - * Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id} - * - * Generated from protobuf field .google.cloud.dataplex.v1.Glossary glossary = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\Glossary $var - * @return $this - */ - public function setGlossary($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Glossary::class); - $this->glossary = $var; - - return $this; - } - - /** - * Required. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @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); - } - - /** - * Required. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * Optional. Validates the request without actually updating the Glossary. - * Default: false. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. Validates the request without actually updating the Glossary. - * Default: false. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateGlossaryTermRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateGlossaryTermRequest.php deleted file mode 100644 index 4261ded19d40..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateGlossaryTermRequest.php +++ /dev/null @@ -1,151 +0,0 @@ -google.cloud.dataplex.v1.UpdateGlossaryTermRequest - */ -class UpdateGlossaryTermRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The GlossaryTerm to update. - * The GlossaryTerm's `name` field is used to identify the GlossaryTerm to - * update. Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/terms/{term_id} - * - * Generated from protobuf field .google.cloud.dataplex.v1.GlossaryTerm term = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $term = null; - /** - * Required. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Cloud\Dataplex\V1\GlossaryTerm $term Required. The GlossaryTerm to update. - * The GlossaryTerm's `name` field is used to identify the GlossaryTerm to - * update. Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/terms/{term_id} - * @param \Google\Protobuf\FieldMask $updateMask Required. The list of fields to update. - * - * @return \Google\Cloud\Dataplex\V1\UpdateGlossaryTermRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Dataplex\V1\GlossaryTerm $term, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setTerm($term) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\GlossaryTerm $term - * Required. The GlossaryTerm to update. - * The GlossaryTerm's `name` field is used to identify the GlossaryTerm to - * update. Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/terms/{term_id} - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The list of fields to update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\BusinessGlossary::initOnce(); - parent::__construct($data); - } - - /** - * Required. The GlossaryTerm to update. - * The GlossaryTerm's `name` field is used to identify the GlossaryTerm to - * update. Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/terms/{term_id} - * - * Generated from protobuf field .google.cloud.dataplex.v1.GlossaryTerm term = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataplex\V1\GlossaryTerm|null - */ - public function getTerm() - { - return $this->term; - } - - public function hasTerm() - { - return isset($this->term); - } - - public function clearTerm() - { - unset($this->term); - } - - /** - * Required. The GlossaryTerm to update. - * The GlossaryTerm's `name` field is used to identify the GlossaryTerm to - * update. Format: - * projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/terms/{term_id} - * - * Generated from protobuf field .google.cloud.dataplex.v1.GlossaryTerm term = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\GlossaryTerm $var - * @return $this - */ - public function setTerm($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\GlossaryTerm::class); - $this->term = $var; - - return $this; - } - - /** - * Required. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @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); - } - - /** - * Required. The list of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateLakeRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateLakeRequest.php deleted file mode 100644 index e21e86b7b00c..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateLakeRequest.php +++ /dev/null @@ -1,179 +0,0 @@ -google.cloud.dataplex.v1.UpdateLakeRequest - */ -class UpdateLakeRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Mask of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - /** - * Required. Update description. - * Only fields specified in `update_mask` are updated. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Lake lake = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $lake = null; - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param \Google\Cloud\Dataplex\V1\Lake $lake Required. Update description. - * Only fields specified in `update_mask` are updated. - * @param \Google\Protobuf\FieldMask $updateMask Required. Mask of fields to update. - * - * @return \Google\Cloud\Dataplex\V1\UpdateLakeRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Dataplex\V1\Lake $lake, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setLake($lake) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\FieldMask $update_mask - * Required. Mask of fields to update. - * @type \Google\Cloud\Dataplex\V1\Lake $lake - * Required. Update description. - * Only fields specified in `update_mask` are updated. - * @type bool $validate_only - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Mask of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * @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); - } - - /** - * Required. Mask of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * @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. Update description. - * Only fields specified in `update_mask` are updated. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Lake lake = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataplex\V1\Lake|null - */ - public function getLake() - { - return $this->lake; - } - - public function hasLake() - { - return isset($this->lake); - } - - public function clearLake() - { - unset($this->lake); - } - - /** - * Required. Update description. - * Only fields specified in `update_mask` are updated. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Lake lake = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\Lake $var - * @return $this - */ - public function setLake($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Lake::class); - $this->lake = $var; - - return $this; - } - - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateMetadataFeedRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateMetadataFeedRequest.php deleted file mode 100644 index dc3332af29e8..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateMetadataFeedRequest.php +++ /dev/null @@ -1,179 +0,0 @@ -google.cloud.dataplex.v1.UpdateMetadataFeedRequest - */ -class UpdateMetadataFeedRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Update description. - * Only fields specified in `update_mask` are updated. - * - * Generated from protobuf field .google.cloud.dataplex.v1.MetadataFeed metadata_feed = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $metadata_feed = null; - /** - * Optional. Mask of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $update_mask = null; - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param \Google\Cloud\Dataplex\V1\MetadataFeed $metadataFeed Required. Update description. - * Only fields specified in `update_mask` are updated. - * @param \Google\Protobuf\FieldMask $updateMask Optional. Mask of fields to update. - * - * @return \Google\Cloud\Dataplex\V1\UpdateMetadataFeedRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Dataplex\V1\MetadataFeed $metadataFeed, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setMetadataFeed($metadataFeed) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataplex\V1\MetadataFeed $metadata_feed - * Required. Update description. - * Only fields specified in `update_mask` are updated. - * @type \Google\Protobuf\FieldMask $update_mask - * Optional. Mask of fields to update. - * @type bool $validate_only - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Catalog::initOnce(); - parent::__construct($data); - } - - /** - * Required. Update description. - * Only fields specified in `update_mask` are updated. - * - * Generated from protobuf field .google.cloud.dataplex.v1.MetadataFeed metadata_feed = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataplex\V1\MetadataFeed|null - */ - public function getMetadataFeed() - { - return $this->metadata_feed; - } - - public function hasMetadataFeed() - { - return isset($this->metadata_feed); - } - - public function clearMetadataFeed() - { - unset($this->metadata_feed); - } - - /** - * Required. Update description. - * Only fields specified in `update_mask` are updated. - * - * Generated from protobuf field .google.cloud.dataplex.v1.MetadataFeed metadata_feed = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\MetadataFeed $var - * @return $this - */ - public function setMetadataFeed($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\MetadataFeed::class); - $this->metadata_feed = $var; - - return $this; - } - - /** - * Optional. Mask of fields 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. Mask of fields 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; - } - - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateTaskRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateTaskRequest.php deleted file mode 100644 index 7eef583a841b..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateTaskRequest.php +++ /dev/null @@ -1,179 +0,0 @@ -google.cloud.dataplex.v1.UpdateTaskRequest - */ -class UpdateTaskRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Mask of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - /** - * Required. Update description. - * Only fields specified in `update_mask` are updated. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Task task = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $task = null; - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param \Google\Cloud\Dataplex\V1\Task $task Required. Update description. - * Only fields specified in `update_mask` are updated. - * @param \Google\Protobuf\FieldMask $updateMask Required. Mask of fields to update. - * - * @return \Google\Cloud\Dataplex\V1\UpdateTaskRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Dataplex\V1\Task $task, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setTask($task) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\FieldMask $update_mask - * Required. Mask of fields to update. - * @type \Google\Cloud\Dataplex\V1\Task $task - * Required. Update description. - * Only fields specified in `update_mask` are updated. - * @type bool $validate_only - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Mask of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * @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); - } - - /** - * Required. Mask of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * @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. Update description. - * Only fields specified in `update_mask` are updated. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Task task = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataplex\V1\Task|null - */ - public function getTask() - { - return $this->task; - } - - public function hasTask() - { - return isset($this->task); - } - - public function clearTask() - { - unset($this->task); - } - - /** - * Required. Update description. - * Only fields specified in `update_mask` are updated. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Task task = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\Task $var - * @return $this - */ - public function setTask($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Task::class); - $this->task = $var; - - return $this; - } - - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateZoneRequest.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateZoneRequest.php deleted file mode 100644 index 71d7f6baa5c1..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/UpdateZoneRequest.php +++ /dev/null @@ -1,179 +0,0 @@ -google.cloud.dataplex.v1.UpdateZoneRequest - */ -class UpdateZoneRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Mask of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - /** - * Required. Update description. - * Only fields specified in `update_mask` are updated. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Zone zone = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $zone = null; - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param \Google\Cloud\Dataplex\V1\Zone $zone Required. Update description. - * Only fields specified in `update_mask` are updated. - * @param \Google\Protobuf\FieldMask $updateMask Required. Mask of fields to update. - * - * @return \Google\Cloud\Dataplex\V1\UpdateZoneRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Dataplex\V1\Zone $zone, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setZone($zone) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\FieldMask $update_mask - * Required. Mask of fields to update. - * @type \Google\Cloud\Dataplex\V1\Zone $zone - * Required. Update description. - * Only fields specified in `update_mask` are updated. - * @type bool $validate_only - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Mask of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * @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); - } - - /** - * Required. Mask of fields to update. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * @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. Update description. - * Only fields specified in `update_mask` are updated. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Zone zone = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataplex\V1\Zone|null - */ - public function getZone() - { - return $this->zone; - } - - public function hasZone() - { - return isset($this->zone); - } - - public function clearZone() - { - unset($this->zone); - } - - /** - * Required. Update description. - * Only fields specified in `update_mask` are updated. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Zone zone = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\Zone $var - * @return $this - */ - public function setZone($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Zone::class); - $this->zone = $var; - - return $this; - } - - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. Only validate the request, but do not perform mutations. - * The default is false. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone.php deleted file mode 100644 index 2b1a8e2ce387..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone.php +++ /dev/null @@ -1,510 +0,0 @@ -google.cloud.dataplex.v1.Zone - */ -class Zone extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The relative resource name of the zone, of the form: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. User friendly display name. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $display_name = ''; - /** - * Output only. System generated globally unique ID for the zone. This ID will - * be different if the zone is deleted and re-created with the same name. - * - * Generated from protobuf field string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $uid = ''; - /** - * Output only. The time when the zone was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time when the zone was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Optional. User defined labels for the zone. - * - * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $labels; - /** - * Optional. Description of the zone. - * - * Generated from protobuf field string description = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Output only. Current state of the zone. - * - * Generated from protobuf field .google.cloud.dataplex.v1.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Required. Immutable. The type of the zone. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Zone.Type type = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $type = 0; - /** - * Optional. Specification of the discovery feature applied to data in this - * zone. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Zone.DiscoverySpec discovery_spec = 103 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $discovery_spec = null; - /** - * Required. Specification of the resources that are referenced by the assets - * within this zone. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Zone.ResourceSpec resource_spec = 104 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $resource_spec = null; - /** - * Output only. Aggregated status of the underlying assets of the zone. - * - * Generated from protobuf field .google.cloud.dataplex.v1.AssetStatus asset_status = 105 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $asset_status = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. The relative resource name of the zone, of the form: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. - * @type string $display_name - * Optional. User friendly display name. - * @type string $uid - * Output only. System generated globally unique ID for the zone. This ID will - * be different if the zone is deleted and re-created with the same name. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time when the zone was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time when the zone was last updated. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Optional. User defined labels for the zone. - * @type string $description - * Optional. Description of the zone. - * @type int $state - * Output only. Current state of the zone. - * @type int $type - * Required. Immutable. The type of the zone. - * @type \Google\Cloud\Dataplex\V1\Zone\DiscoverySpec $discovery_spec - * Optional. Specification of the discovery feature applied to data in this - * zone. - * @type \Google\Cloud\Dataplex\V1\Zone\ResourceSpec $resource_spec - * Required. Specification of the resources that are referenced by the assets - * within this zone. - * @type \Google\Cloud\Dataplex\V1\AssetStatus $asset_status - * Output only. Aggregated status of the underlying assets of the zone. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The relative resource name of the zone, of the form: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The relative resource name of the zone, of the form: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. User friendly display name. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Optional. User friendly display name. - * - * 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; - } - - /** - * Output only. System generated globally unique ID for the zone. This ID will - * be different if the zone is deleted and re-created with the same name. - * - * Generated from protobuf field string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. System generated globally unique ID for the zone. This ID will - * be different if the zone is deleted and re-created with the same name. - * - * Generated from protobuf field string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Output only. The time when the zone was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.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 zone was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.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 zone was last updated. - * - * 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 time when the zone was last updated. - * - * 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. User defined labels for the zone. - * - * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Optional. User defined labels for the zone. - * - * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Optional. Description of the zone. - * - * Generated from protobuf field string description = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. Description of the zone. - * - * Generated from protobuf field string description = 7 [(.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. Current state of the zone. - * - * Generated from protobuf field .google.cloud.dataplex.v1.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. Current state of the zone. - * - * Generated from protobuf field .google.cloud.dataplex.v1.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\State::class); - $this->state = $var; - - return $this; - } - - /** - * Required. Immutable. The type of the zone. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Zone.Type type = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Required. Immutable. The type of the zone. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Zone.Type type = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\Zone\Type::class); - $this->type = $var; - - return $this; - } - - /** - * Optional. Specification of the discovery feature applied to data in this - * zone. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Zone.DiscoverySpec discovery_spec = 103 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dataplex\V1\Zone\DiscoverySpec|null - */ - public function getDiscoverySpec() - { - return $this->discovery_spec; - } - - public function hasDiscoverySpec() - { - return isset($this->discovery_spec); - } - - public function clearDiscoverySpec() - { - unset($this->discovery_spec); - } - - /** - * Optional. Specification of the discovery feature applied to data in this - * zone. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Zone.DiscoverySpec discovery_spec = 103 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataplex\V1\Zone\DiscoverySpec $var - * @return $this - */ - public function setDiscoverySpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Zone\DiscoverySpec::class); - $this->discovery_spec = $var; - - return $this; - } - - /** - * Required. Specification of the resources that are referenced by the assets - * within this zone. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Zone.ResourceSpec resource_spec = 104 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dataplex\V1\Zone\ResourceSpec|null - */ - public function getResourceSpec() - { - return $this->resource_spec; - } - - public function hasResourceSpec() - { - return isset($this->resource_spec); - } - - public function clearResourceSpec() - { - unset($this->resource_spec); - } - - /** - * Required. Specification of the resources that are referenced by the assets - * within this zone. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Zone.ResourceSpec resource_spec = 104 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dataplex\V1\Zone\ResourceSpec $var - * @return $this - */ - public function setResourceSpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Zone\ResourceSpec::class); - $this->resource_spec = $var; - - return $this; - } - - /** - * Output only. Aggregated status of the underlying assets of the zone. - * - * Generated from protobuf field .google.cloud.dataplex.v1.AssetStatus asset_status = 105 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Dataplex\V1\AssetStatus|null - */ - public function getAssetStatus() - { - return $this->asset_status; - } - - public function hasAssetStatus() - { - return isset($this->asset_status); - } - - public function clearAssetStatus() - { - unset($this->asset_status); - } - - /** - * Output only. Aggregated status of the underlying assets of the zone. - * - * Generated from protobuf field .google.cloud.dataplex.v1.AssetStatus asset_status = 105 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Dataplex\V1\AssetStatus $var - * @return $this - */ - public function setAssetStatus($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\AssetStatus::class); - $this->asset_status = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone/DiscoverySpec.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone/DiscoverySpec.php deleted file mode 100644 index 03221a6c1553..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone/DiscoverySpec.php +++ /dev/null @@ -1,317 +0,0 @@ -google.cloud.dataplex.v1.Zone.DiscoverySpec - */ -class DiscoverySpec extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Whether discovery is enabled. - * - * Generated from protobuf field bool enabled = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $enabled = false; - /** - * Optional. The list of patterns to apply for selecting data to include - * during discovery if only a subset of the data should considered. For - * Cloud Storage bucket assets, these are interpreted as glob patterns used - * to match object names. For BigQuery dataset assets, these are interpreted - * as patterns to match table names. - * - * Generated from protobuf field repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $include_patterns; - /** - * Optional. The list of patterns to apply for selecting data to exclude - * during discovery. For Cloud Storage bucket assets, these are interpreted - * as glob patterns used to match object names. For BigQuery dataset assets, - * these are interpreted as patterns to match table names. - * - * Generated from protobuf field repeated string exclude_patterns = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $exclude_patterns; - /** - * Optional. Configuration for CSV data. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions csv_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $csv_options = null; - /** - * Optional. Configuration for Json data. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions json_options = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $json_options = null; - protected $trigger; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Required. Whether discovery is enabled. - * @type string[] $include_patterns - * Optional. The list of patterns to apply for selecting data to include - * during discovery if only a subset of the data should considered. For - * Cloud Storage bucket assets, these are interpreted as glob patterns used - * to match object names. For BigQuery dataset assets, these are interpreted - * as patterns to match table names. - * @type string[] $exclude_patterns - * Optional. The list of patterns to apply for selecting data to exclude - * during discovery. For Cloud Storage bucket assets, these are interpreted - * as glob patterns used to match object names. For BigQuery dataset assets, - * these are interpreted as patterns to match table names. - * @type \Google\Cloud\Dataplex\V1\Zone\DiscoverySpec\CsvOptions $csv_options - * Optional. Configuration for CSV data. - * @type \Google\Cloud\Dataplex\V1\Zone\DiscoverySpec\JsonOptions $json_options - * Optional. Configuration for Json data. - * @type string $schedule - * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for - * running discovery periodically. Successive discovery runs must be - * scheduled at least 60 minutes apart. The default value is to run - * discovery every 60 minutes. - * To explicitly set a timezone to the cron tab, apply a prefix in the - * cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}". - * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone - * database. For example, `CRON_TZ=America/New_York 1 * * * *`, or - * `TZ=America/New_York 1 * * * *`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Required. Whether discovery is enabled. - * - * Generated from protobuf field bool enabled = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Required. Whether discovery is enabled. - * - * Generated from protobuf field bool enabled = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - - /** - * Optional. The list of patterns to apply for selecting data to include - * during discovery if only a subset of the data should considered. For - * Cloud Storage bucket assets, these are interpreted as glob patterns used - * to match object names. For BigQuery dataset assets, these are interpreted - * as patterns to match table names. - * - * Generated from protobuf field repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getIncludePatterns() - { - return $this->include_patterns; - } - - /** - * Optional. The list of patterns to apply for selecting data to include - * during discovery if only a subset of the data should considered. For - * Cloud Storage bucket assets, these are interpreted as glob patterns used - * to match object names. For BigQuery dataset assets, these are interpreted - * as patterns to match table names. - * - * Generated from protobuf field repeated string include_patterns = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setIncludePatterns($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->include_patterns = $arr; - - return $this; - } - - /** - * Optional. The list of patterns to apply for selecting data to exclude - * during discovery. For Cloud Storage bucket assets, these are interpreted - * as glob patterns used to match object names. For BigQuery dataset assets, - * these are interpreted as patterns to match table names. - * - * Generated from protobuf field repeated string exclude_patterns = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return RepeatedField - */ - public function getExcludePatterns() - { - return $this->exclude_patterns; - } - - /** - * Optional. The list of patterns to apply for selecting data to exclude - * during discovery. For Cloud Storage bucket assets, these are interpreted - * as glob patterns used to match object names. For BigQuery dataset assets, - * these are interpreted as patterns to match table names. - * - * Generated from protobuf field repeated string exclude_patterns = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string[] $var - * @return $this - */ - public function setExcludePatterns($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->exclude_patterns = $arr; - - return $this; - } - - /** - * Optional. Configuration for CSV data. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions csv_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dataplex\V1\Zone\DiscoverySpec\CsvOptions|null - */ - public function getCsvOptions() - { - return $this->csv_options; - } - - public function hasCsvOptions() - { - return isset($this->csv_options); - } - - public function clearCsvOptions() - { - unset($this->csv_options); - } - - /** - * Optional. Configuration for CSV data. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions csv_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataplex\V1\Zone\DiscoverySpec\CsvOptions $var - * @return $this - */ - public function setCsvOptions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Zone\DiscoverySpec\CsvOptions::class); - $this->csv_options = $var; - - return $this; - } - - /** - * Optional. Configuration for Json data. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions json_options = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dataplex\V1\Zone\DiscoverySpec\JsonOptions|null - */ - public function getJsonOptions() - { - return $this->json_options; - } - - public function hasJsonOptions() - { - return isset($this->json_options); - } - - public function clearJsonOptions() - { - unset($this->json_options); - } - - /** - * Optional. Configuration for Json data. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions json_options = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dataplex\V1\Zone\DiscoverySpec\JsonOptions $var - * @return $this - */ - public function setJsonOptions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\Zone\DiscoverySpec\JsonOptions::class); - $this->json_options = $var; - - return $this; - } - - /** - * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for - * running discovery periodically. Successive discovery runs must be - * scheduled at least 60 minutes apart. The default value is to run - * discovery every 60 minutes. - * To explicitly set a timezone to the cron tab, apply a prefix in the - * cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}". - * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone - * database. For example, `CRON_TZ=America/New_York 1 * * * *`, or - * `TZ=America/New_York 1 * * * *`. - * - * Generated from protobuf field string schedule = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getSchedule() - { - return $this->readOneof(10); - } - - public function hasSchedule() - { - return $this->hasOneof(10); - } - - /** - * Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for - * running discovery periodically. Successive discovery runs must be - * scheduled at least 60 minutes apart. The default value is to run - * discovery every 60 minutes. - * To explicitly set a timezone to the cron tab, apply a prefix in the - * cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or TZ=${IANA_TIME_ZONE}". - * The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone - * database. For example, `CRON_TZ=America/New_York 1 * * * *`, or - * `TZ=America/New_York 1 * * * *`. - * - * Generated from protobuf field string schedule = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setSchedule($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(10, $var); - - return $this; - } - - /** - * @return string - */ - public function getTrigger() - { - return $this->whichOneof("trigger"); - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone/DiscoverySpec/CsvOptions.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone/DiscoverySpec/CsvOptions.php deleted file mode 100644 index c90b85d95883..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone/DiscoverySpec/CsvOptions.php +++ /dev/null @@ -1,181 +0,0 @@ -google.cloud.dataplex.v1.Zone.DiscoverySpec.CsvOptions - */ -class CsvOptions extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The number of rows to interpret as header rows that should be - * skipped when reading data rows. - * - * Generated from protobuf field int32 header_rows = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $header_rows = 0; - /** - * Optional. The delimiter being used to separate values. This defaults to - * ','. - * - * Generated from protobuf field string delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $delimiter = ''; - /** - * Optional. The character encoding of the data. The default is UTF-8. - * - * Generated from protobuf field string encoding = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $encoding = ''; - /** - * Optional. Whether to disable the inference of data type for CSV data. - * If true, all columns will be registered as strings. - * - * Generated from protobuf field bool disable_type_inference = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $disable_type_inference = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $header_rows - * Optional. The number of rows to interpret as header rows that should be - * skipped when reading data rows. - * @type string $delimiter - * Optional. The delimiter being used to separate values. This defaults to - * ','. - * @type string $encoding - * Optional. The character encoding of the data. The default is UTF-8. - * @type bool $disable_type_inference - * Optional. Whether to disable the inference of data type for CSV data. - * If true, all columns will be registered as strings. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The number of rows to interpret as header rows that should be - * skipped when reading data rows. - * - * Generated from protobuf field int32 header_rows = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getHeaderRows() - { - return $this->header_rows; - } - - /** - * Optional. The number of rows to interpret as header rows that should be - * skipped when reading data rows. - * - * Generated from protobuf field int32 header_rows = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setHeaderRows($var) - { - GPBUtil::checkInt32($var); - $this->header_rows = $var; - - return $this; - } - - /** - * Optional. The delimiter being used to separate values. This defaults to - * ','. - * - * Generated from protobuf field string delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDelimiter() - { - return $this->delimiter; - } - - /** - * Optional. The delimiter being used to separate values. This defaults to - * ','. - * - * Generated from protobuf field string delimiter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDelimiter($var) - { - GPBUtil::checkString($var, True); - $this->delimiter = $var; - - return $this; - } - - /** - * Optional. The character encoding of the data. The default is UTF-8. - * - * Generated from protobuf field string encoding = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEncoding() - { - return $this->encoding; - } - - /** - * Optional. The character encoding of the data. The default is UTF-8. - * - * Generated from protobuf field string encoding = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setEncoding($var) - { - GPBUtil::checkString($var, True); - $this->encoding = $var; - - return $this; - } - - /** - * Optional. Whether to disable the inference of data type for CSV data. - * If true, all columns will be registered as strings. - * - * Generated from protobuf field bool disable_type_inference = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getDisableTypeInference() - { - return $this->disable_type_inference; - } - - /** - * Optional. Whether to disable the inference of data type for CSV data. - * If true, all columns will be registered as strings. - * - * Generated from protobuf field bool disable_type_inference = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setDisableTypeInference($var) - { - GPBUtil::checkBool($var); - $this->disable_type_inference = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone/DiscoverySpec/JsonOptions.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone/DiscoverySpec/JsonOptions.php deleted file mode 100644 index c40217f63999..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone/DiscoverySpec/JsonOptions.php +++ /dev/null @@ -1,109 +0,0 @@ -google.cloud.dataplex.v1.Zone.DiscoverySpec.JsonOptions - */ -class JsonOptions extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The character encoding of the data. The default is UTF-8. - * - * Generated from protobuf field string encoding = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $encoding = ''; - /** - * Optional. Whether to disable the inference of data type for Json data. - * If true, all columns will be registered as their primitive types - * (strings, number or boolean). - * - * Generated from protobuf field bool disable_type_inference = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $disable_type_inference = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $encoding - * Optional. The character encoding of the data. The default is UTF-8. - * @type bool $disable_type_inference - * Optional. Whether to disable the inference of data type for Json data. - * If true, all columns will be registered as their primitive types - * (strings, number or boolean). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The character encoding of the data. The default is UTF-8. - * - * Generated from protobuf field string encoding = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEncoding() - { - return $this->encoding; - } - - /** - * Optional. The character encoding of the data. The default is UTF-8. - * - * Generated from protobuf field string encoding = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setEncoding($var) - { - GPBUtil::checkString($var, True); - $this->encoding = $var; - - return $this; - } - - /** - * Optional. Whether to disable the inference of data type for Json data. - * If true, all columns will be registered as their primitive types - * (strings, number or boolean). - * - * Generated from protobuf field bool disable_type_inference = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getDisableTypeInference() - { - return $this->disable_type_inference; - } - - /** - * Optional. Whether to disable the inference of data type for Json data. - * If true, all columns will be registered as their primitive types - * (strings, number or boolean). - * - * Generated from protobuf field bool disable_type_inference = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setDisableTypeInference($var) - { - GPBUtil::checkBool($var); - $this->disable_type_inference = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone/ResourceSpec.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone/ResourceSpec.php deleted file mode 100644 index bba69ca15ea8..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone/ResourceSpec.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.dataplex.v1.Zone.ResourceSpec - */ -class ResourceSpec extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Immutable. The location type of the resources that are allowed - * to be attached to the assets within this zone. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Zone.ResourceSpec.LocationType location_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $location_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $location_type - * Required. Immutable. The location type of the resources that are allowed - * to be attached to the assets within this zone. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Dataplex\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Required. Immutable. The location type of the resources that are allowed - * to be attached to the assets within this zone. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Zone.ResourceSpec.LocationType location_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return int - */ - public function getLocationType() - { - return $this->location_type; - } - - /** - * Required. Immutable. The location type of the resources that are allowed - * to be attached to the assets within this zone. - * - * Generated from protobuf field .google.cloud.dataplex.v1.Zone.ResourceSpec.LocationType location_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param int $var - * @return $this - */ - public function setLocationType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\Zone\ResourceSpec\LocationType::class); - $this->location_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone/ResourceSpec/LocationType.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone/ResourceSpec/LocationType.php deleted file mode 100644 index 1bad6bcd675a..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone/ResourceSpec/LocationType.php +++ /dev/null @@ -1,61 +0,0 @@ -google.cloud.dataplex.v1.Zone.ResourceSpec.LocationType - */ -class LocationType -{ - /** - * Unspecified location type. - * - * Generated from protobuf enum LOCATION_TYPE_UNSPECIFIED = 0; - */ - const LOCATION_TYPE_UNSPECIFIED = 0; - /** - * Resources that are associated with a single region. - * - * Generated from protobuf enum SINGLE_REGION = 1; - */ - const SINGLE_REGION = 1; - /** - * Resources that are associated with a multi-region location. - * - * Generated from protobuf enum MULTI_REGION = 2; - */ - const MULTI_REGION = 2; - - private static $valueToName = [ - self::LOCATION_TYPE_UNSPECIFIED => 'LOCATION_TYPE_UNSPECIFIED', - self::SINGLE_REGION => 'SINGLE_REGION', - self::MULTI_REGION => 'MULTI_REGION', - ]; - - 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/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone/Type.php b/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone/Type.php deleted file mode 100644 index d48d1bcecc9a..000000000000 --- a/owl-bot-staging/Dataplex/v1/proto/src/Google/Cloud/Dataplex/V1/Zone/Type.php +++ /dev/null @@ -1,65 +0,0 @@ -google.cloud.dataplex.v1.Zone.Type - */ -class Type -{ - /** - * Zone type not specified. - * - * Generated from protobuf enum TYPE_UNSPECIFIED = 0; - */ - const TYPE_UNSPECIFIED = 0; - /** - * A zone that contains data that needs further processing before it is - * considered generally ready for consumption and analytics workloads. - * - * Generated from protobuf enum RAW = 1; - */ - const RAW = 1; - /** - * A zone that contains data that is considered to be ready for broader - * consumption and analytics workloads. Curated structured data stored in - * Cloud Storage must conform to certain file formats (parquet, avro and - * orc) and organized in a hive-compatible directory layout. - * - * Generated from protobuf enum CURATED = 2; - */ - const CURATED = 2; - - private static $valueToName = [ - self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', - self::RAW => 'RAW', - self::CURATED => 'CURATED', - ]; - - 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/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/create_glossary.php b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/create_glossary.php deleted file mode 100644 index f1f26f9c8047..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/create_glossary.php +++ /dev/null @@ -1,90 +0,0 @@ -setParent($formattedParent) - ->setGlossaryId($glossaryId) - ->setGlossary($glossary); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $businessGlossaryServiceClient->createGlossary($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Glossary $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 = BusinessGlossaryServiceClient::locationName('[PROJECT]', '[LOCATION]'); - $glossaryId = '[GLOSSARY_ID]'; - - create_glossary_sample($formattedParent, $glossaryId); -} -// [END dataplex_v1_generated_BusinessGlossaryService_CreateGlossary_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/create_glossary_category.php b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/create_glossary_category.php deleted file mode 100644 index d8858220e2c7..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/create_glossary_category.php +++ /dev/null @@ -1,94 +0,0 @@ -setParent($categoryParent); - $request = (new CreateGlossaryCategoryRequest()) - ->setParent($formattedParent) - ->setCategoryId($categoryId) - ->setCategory($category); - - // Call the API and handle any network failures. - try { - /** @var GlossaryCategory $response */ - $response = $businessGlossaryServiceClient->createGlossaryCategory($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 = BusinessGlossaryServiceClient::glossaryName( - '[PROJECT]', - '[LOCATION]', - '[GLOSSARY]' - ); - $categoryId = '[CATEGORY_ID]'; - $categoryParent = '[PARENT]'; - - create_glossary_category_sample($formattedParent, $categoryId, $categoryParent); -} -// [END dataplex_v1_generated_BusinessGlossaryService_CreateGlossaryCategory_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/create_glossary_term.php b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/create_glossary_term.php deleted file mode 100644 index 54698c70562f..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/create_glossary_term.php +++ /dev/null @@ -1,99 +0,0 @@ -setParent($formattedTermParent); - $request = (new CreateGlossaryTermRequest()) - ->setParent($formattedParent) - ->setTermId($termId) - ->setTerm($term); - - // Call the API and handle any network failures. - try { - /** @var GlossaryTerm $response */ - $response = $businessGlossaryServiceClient->createGlossaryTerm($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 = BusinessGlossaryServiceClient::glossaryName( - '[PROJECT]', - '[LOCATION]', - '[GLOSSARY]' - ); - $termId = '[TERM_ID]'; - $formattedTermParent = BusinessGlossaryServiceClient::glossaryName( - '[PROJECT]', - '[LOCATION]', - '[GLOSSARY]' - ); - - create_glossary_term_sample($formattedParent, $termId, $formattedTermParent); -} -// [END dataplex_v1_generated_BusinessGlossaryService_CreateGlossaryTerm_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/delete_glossary.php b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/delete_glossary.php deleted file mode 100644 index ef1df8bd486c..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/delete_glossary.php +++ /dev/null @@ -1,87 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $businessGlossaryServiceClient->deleteGlossary($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 = BusinessGlossaryServiceClient::glossaryName( - '[PROJECT]', - '[LOCATION]', - '[GLOSSARY]' - ); - - delete_glossary_sample($formattedName); -} -// [END dataplex_v1_generated_BusinessGlossaryService_DeleteGlossary_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/delete_glossary_category.php b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/delete_glossary_category.php deleted file mode 100644 index 97aa89d40803..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/delete_glossary_category.php +++ /dev/null @@ -1,78 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $businessGlossaryServiceClient->deleteGlossaryCategory($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 = BusinessGlossaryServiceClient::glossaryCategoryName( - '[PROJECT]', - '[LOCATION]', - '[GLOSSARY]', - '[GLOSSARY_CATEGORY]' - ); - - delete_glossary_category_sample($formattedName); -} -// [END dataplex_v1_generated_BusinessGlossaryService_DeleteGlossaryCategory_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/delete_glossary_term.php b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/delete_glossary_term.php deleted file mode 100644 index af0efbabeccb..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/delete_glossary_term.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $businessGlossaryServiceClient->deleteGlossaryTerm($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 = BusinessGlossaryServiceClient::glossaryTermName( - '[PROJECT]', - '[LOCATION]', - '[GLOSSARY]', - '[GLOSSARY_TERM]' - ); - - delete_glossary_term_sample($formattedName); -} -// [END dataplex_v1_generated_BusinessGlossaryService_DeleteGlossaryTerm_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/get_glossary.php b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/get_glossary.php deleted file mode 100644 index 5b7f74c5e150..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/get_glossary.php +++ /dev/null @@ -1,77 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Glossary $response */ - $response = $businessGlossaryServiceClient->getGlossary($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 = BusinessGlossaryServiceClient::glossaryName( - '[PROJECT]', - '[LOCATION]', - '[GLOSSARY]' - ); - - get_glossary_sample($formattedName); -} -// [END dataplex_v1_generated_BusinessGlossaryService_GetGlossary_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/get_glossary_category.php b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/get_glossary_category.php deleted file mode 100644 index c9b335355ca2..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/get_glossary_category.php +++ /dev/null @@ -1,78 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var GlossaryCategory $response */ - $response = $businessGlossaryServiceClient->getGlossaryCategory($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 = BusinessGlossaryServiceClient::glossaryCategoryName( - '[PROJECT]', - '[LOCATION]', - '[GLOSSARY]', - '[GLOSSARY_CATEGORY]' - ); - - get_glossary_category_sample($formattedName); -} -// [END dataplex_v1_generated_BusinessGlossaryService_GetGlossaryCategory_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/get_glossary_term.php b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/get_glossary_term.php deleted file mode 100644 index 65dad17f9d08..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/get_glossary_term.php +++ /dev/null @@ -1,78 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var GlossaryTerm $response */ - $response = $businessGlossaryServiceClient->getGlossaryTerm($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 = BusinessGlossaryServiceClient::glossaryTermName( - '[PROJECT]', - '[LOCATION]', - '[GLOSSARY]', - '[GLOSSARY_TERM]' - ); - - get_glossary_term_sample($formattedName); -} -// [END dataplex_v1_generated_BusinessGlossaryService_GetGlossaryTerm_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/get_iam_policy.php b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/get_iam_policy.php deleted file mode 100644 index 0f9965761f3a..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/get_iam_policy.php +++ /dev/null @@ -1,72 +0,0 @@ -setResource($resource); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $businessGlossaryServiceClient->getIamPolicy($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 -{ - $resource = '[RESOURCE]'; - - get_iam_policy_sample($resource); -} -// [END dataplex_v1_generated_BusinessGlossaryService_GetIamPolicy_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/get_location.php b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/get_location.php deleted file mode 100644 index f0cab4f62b57..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/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 dataplex_v1_generated_BusinessGlossaryService_GetLocation_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/list_glossaries.php b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/list_glossaries.php deleted file mode 100644 index fd5e8b6a038e..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/list_glossaries.php +++ /dev/null @@ -1,78 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $businessGlossaryServiceClient->listGlossaries($request); - - /** @var Glossary $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 = BusinessGlossaryServiceClient::locationName('[PROJECT]', '[LOCATION]'); - - list_glossaries_sample($formattedParent); -} -// [END dataplex_v1_generated_BusinessGlossaryService_ListGlossaries_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/list_glossary_categories.php b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/list_glossary_categories.php deleted file mode 100644 index ce9676ac0895..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/list_glossary_categories.php +++ /dev/null @@ -1,83 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $businessGlossaryServiceClient->listGlossaryCategories($request); - - /** @var GlossaryCategory $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 = BusinessGlossaryServiceClient::glossaryName( - '[PROJECT]', - '[LOCATION]', - '[GLOSSARY]' - ); - - list_glossary_categories_sample($formattedParent); -} -// [END dataplex_v1_generated_BusinessGlossaryService_ListGlossaryCategories_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/list_glossary_terms.php b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/list_glossary_terms.php deleted file mode 100644 index 0c3d465ac9bd..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/list_glossary_terms.php +++ /dev/null @@ -1,83 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $businessGlossaryServiceClient->listGlossaryTerms($request); - - /** @var GlossaryTerm $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 = BusinessGlossaryServiceClient::glossaryName( - '[PROJECT]', - '[LOCATION]', - '[GLOSSARY]' - ); - - list_glossary_terms_sample($formattedParent); -} -// [END dataplex_v1_generated_BusinessGlossaryService_ListGlossaryTerms_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/list_locations.php b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/list_locations.php deleted file mode 100644 index d850e7a18c5e..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/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 dataplex_v1_generated_BusinessGlossaryService_ListLocations_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/set_iam_policy.php b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/set_iam_policy.php deleted file mode 100644 index 034a13ba97ba..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/set_iam_policy.php +++ /dev/null @@ -1,77 +0,0 @@ -setResource($resource) - ->setPolicy($policy); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $businessGlossaryServiceClient->setIamPolicy($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 -{ - $resource = '[RESOURCE]'; - - set_iam_policy_sample($resource); -} -// [END dataplex_v1_generated_BusinessGlossaryService_SetIamPolicy_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/test_iam_permissions.php b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/test_iam_permissions.php deleted file mode 100644 index 23905a0fea61..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/test_iam_permissions.php +++ /dev/null @@ -1,84 +0,0 @@ -setResource($resource) - ->setPermissions($permissions); - - // Call the API and handle any network failures. - try { - /** @var TestIamPermissionsResponse $response */ - $response = $businessGlossaryServiceClient->testIamPermissions($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 -{ - $resource = '[RESOURCE]'; - $permissionsElement = '[PERMISSIONS]'; - - test_iam_permissions_sample($resource, $permissionsElement); -} -// [END dataplex_v1_generated_BusinessGlossaryService_TestIamPermissions_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/update_glossary.php b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/update_glossary.php deleted file mode 100644 index cb81ccc6533c..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/update_glossary.php +++ /dev/null @@ -1,74 +0,0 @@ -setGlossary($glossary) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $businessGlossaryServiceClient->updateGlossary($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Glossary $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()); - } -} -// [END dataplex_v1_generated_BusinessGlossaryService_UpdateGlossary_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/update_glossary_category.php b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/update_glossary_category.php deleted file mode 100644 index cb80412dae09..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/update_glossary_category.php +++ /dev/null @@ -1,80 +0,0 @@ -setParent($categoryParent); - $updateMask = new FieldMask(); - $request = (new UpdateGlossaryCategoryRequest()) - ->setCategory($category) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var GlossaryCategory $response */ - $response = $businessGlossaryServiceClient->updateGlossaryCategory($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 -{ - $categoryParent = '[PARENT]'; - - update_glossary_category_sample($categoryParent); -} -// [END dataplex_v1_generated_BusinessGlossaryService_UpdateGlossaryCategory_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/update_glossary_term.php b/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/update_glossary_term.php deleted file mode 100644 index e17d0d7313fc..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/BusinessGlossaryServiceClient/update_glossary_term.php +++ /dev/null @@ -1,85 +0,0 @@ -setParent($formattedTermParent); - $updateMask = new FieldMask(); - $request = (new UpdateGlossaryTermRequest()) - ->setTerm($term) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var GlossaryTerm $response */ - $response = $businessGlossaryServiceClient->updateGlossaryTerm($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 -{ - $formattedTermParent = BusinessGlossaryServiceClient::glossaryName( - '[PROJECT]', - '[LOCATION]', - '[GLOSSARY]' - ); - - update_glossary_term_sample($formattedTermParent); -} -// [END dataplex_v1_generated_BusinessGlossaryService_UpdateGlossaryTerm_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/cancel_metadata_job.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/cancel_metadata_job.php deleted file mode 100644 index 63f04771d2a1..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/cancel_metadata_job.php +++ /dev/null @@ -1,75 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $catalogServiceClient->cancelMetadataJob($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 = CatalogServiceClient::metadataJobName('[PROJECT]', '[LOCATION]', '[METADATAJOB]'); - - cancel_metadata_job_sample($formattedName); -} -// [END dataplex_v1_generated_CatalogService_CancelMetadataJob_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_aspect_type.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_aspect_type.php deleted file mode 100644 index ca413ff6a1ef..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_aspect_type.php +++ /dev/null @@ -1,124 +0,0 @@ -setName($aspectTypeMetadataTemplateName) - ->setType($aspectTypeMetadataTemplateType); - $aspectType = (new AspectType()) - ->setMetadataTemplate($aspectTypeMetadataTemplate); - $request = (new CreateAspectTypeRequest()) - ->setParent($formattedParent) - ->setAspectTypeId($aspectTypeId) - ->setAspectType($aspectType); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $catalogServiceClient->createAspectType($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var AspectType $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 = CatalogServiceClient::locationName('[PROJECT]', '[LOCATION]'); - $aspectTypeId = '[ASPECT_TYPE_ID]'; - $aspectTypeMetadataTemplateName = '[NAME]'; - $aspectTypeMetadataTemplateType = '[TYPE]'; - - create_aspect_type_sample( - $formattedParent, - $aspectTypeId, - $aspectTypeMetadataTemplateName, - $aspectTypeMetadataTemplateType - ); -} -// [END dataplex_v1_generated_CatalogService_CreateAspectType_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_entry.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_entry.php deleted file mode 100644 index 6d22e1a01f10..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_entry.php +++ /dev/null @@ -1,104 +0,0 @@ -setEntryType($entryEntryType); - $request = (new CreateEntryRequest()) - ->setParent($formattedParent) - ->setEntryId($entryId) - ->setEntry($entry); - - // Call the API and handle any network failures. - try { - /** @var Entry $response */ - $response = $catalogServiceClient->createEntry($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 = CatalogServiceClient::entryGroupName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]'); - $entryId = '[ENTRY_ID]'; - $entryEntryType = '[ENTRY_TYPE]'; - - create_entry_sample($formattedParent, $entryId, $entryEntryType); -} -// [END dataplex_v1_generated_CatalogService_CreateEntry_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_entry_group.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_entry_group.php deleted file mode 100644 index 029b77eb7fe6..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_entry_group.php +++ /dev/null @@ -1,90 +0,0 @@ -setParent($formattedParent) - ->setEntryGroupId($entryGroupId) - ->setEntryGroup($entryGroup); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $catalogServiceClient->createEntryGroup($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var EntryGroup $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 = CatalogServiceClient::locationName('[PROJECT]', '[LOCATION]'); - $entryGroupId = '[ENTRY_GROUP_ID]'; - - create_entry_group_sample($formattedParent, $entryGroupId); -} -// [END dataplex_v1_generated_CatalogService_CreateEntryGroup_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_entry_link.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_entry_link.php deleted file mode 100644 index b05d34e96739..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_entry_link.php +++ /dev/null @@ -1,117 +0,0 @@ -setName($entryLinkEntryReferencesName) - ->setType($entryLinkEntryReferencesType); - $entryLinkEntryReferences = [$entryReference,]; - $entryLink = (new EntryLink()) - ->setEntryLinkType($entryLinkEntryLinkType) - ->setEntryReferences($entryLinkEntryReferences); - $request = (new CreateEntryLinkRequest()) - ->setParent($formattedParent) - ->setEntryLinkId($entryLinkId) - ->setEntryLink($entryLink); - - // Call the API and handle any network failures. - try { - /** @var EntryLink $response */ - $response = $catalogServiceClient->createEntryLink($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 = CatalogServiceClient::entryGroupName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]'); - $entryLinkId = '[ENTRY_LINK_ID]'; - $entryLinkEntryLinkType = '[ENTRY_LINK_TYPE]'; - $entryLinkEntryReferencesName = '[NAME]'; - $entryLinkEntryReferencesType = Type::UNSPECIFIED; - - create_entry_link_sample( - $formattedParent, - $entryLinkId, - $entryLinkEntryLinkType, - $entryLinkEntryReferencesName, - $entryLinkEntryReferencesType - ); -} -// [END dataplex_v1_generated_CatalogService_CreateEntryLink_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_entry_type.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_entry_type.php deleted file mode 100644 index c52e70ecc5b7..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_entry_type.php +++ /dev/null @@ -1,90 +0,0 @@ -setParent($formattedParent) - ->setEntryTypeId($entryTypeId) - ->setEntryType($entryType); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $catalogServiceClient->createEntryType($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var EntryType $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 = CatalogServiceClient::locationName('[PROJECT]', '[LOCATION]'); - $entryTypeId = '[ENTRY_TYPE_ID]'; - - create_entry_type_sample($formattedParent, $entryTypeId); -} -// [END dataplex_v1_generated_CatalogService_CreateEntryType_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_metadata_feed.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_metadata_feed.php deleted file mode 100644 index af1e4649c8fd..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_metadata_feed.php +++ /dev/null @@ -1,89 +0,0 @@ -setScope($metadataFeedScope); - $request = (new CreateMetadataFeedRequest()) - ->setParent($formattedParent) - ->setMetadataFeed($metadataFeed); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $catalogServiceClient->createMetadataFeed($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var MetadataFeed $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 = CatalogServiceClient::locationName('[PROJECT]', '[LOCATION]'); - - create_metadata_feed_sample($formattedParent); -} -// [END dataplex_v1_generated_CatalogService_CreateMetadataFeed_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_metadata_job.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_metadata_job.php deleted file mode 100644 index c1a76082def3..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/create_metadata_job.php +++ /dev/null @@ -1,91 +0,0 @@ -setType($metadataJobType); - $request = (new CreateMetadataJobRequest()) - ->setParent($formattedParent) - ->setMetadataJob($metadataJob); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $catalogServiceClient->createMetadataJob($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var MetadataJob $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 = CatalogServiceClient::locationName('[PROJECT]', '[LOCATION]'); - $metadataJobType = Type::TYPE_UNSPECIFIED; - - create_metadata_job_sample($formattedParent, $metadataJobType); -} -// [END dataplex_v1_generated_CatalogService_CreateMetadataJob_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/delete_aspect_type.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/delete_aspect_type.php deleted file mode 100644 index f32f6bd4d47c..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/delete_aspect_type.php +++ /dev/null @@ -1,81 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $catalogServiceClient->deleteAspectType($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 = CatalogServiceClient::aspectTypeName('[PROJECT]', '[LOCATION]', '[ASPECT_TYPE]'); - - delete_aspect_type_sample($formattedName); -} -// [END dataplex_v1_generated_CatalogService_DeleteAspectType_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/delete_entry.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/delete_entry.php deleted file mode 100644 index 439de26cc7d1..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/delete_entry.php +++ /dev/null @@ -1,77 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Entry $response */ - $response = $catalogServiceClient->deleteEntry($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 = CatalogServiceClient::entryName( - '[PROJECT]', - '[LOCATION]', - '[ENTRY_GROUP]', - '[ENTRY]' - ); - - delete_entry_sample($formattedName); -} -// [END dataplex_v1_generated_CatalogService_DeleteEntry_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/delete_entry_group.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/delete_entry_group.php deleted file mode 100644 index 38342fa4a899..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/delete_entry_group.php +++ /dev/null @@ -1,81 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $catalogServiceClient->deleteEntryGroup($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 = CatalogServiceClient::entryGroupName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]'); - - delete_entry_group_sample($formattedName); -} -// [END dataplex_v1_generated_CatalogService_DeleteEntryGroup_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/delete_entry_link.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/delete_entry_link.php deleted file mode 100644 index a2b00a67c7fe..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/delete_entry_link.php +++ /dev/null @@ -1,77 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var EntryLink $response */ - $response = $catalogServiceClient->deleteEntryLink($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 = CatalogServiceClient::entryLinkName( - '[PROJECT]', - '[LOCATION]', - '[ENTRY_GROUP]', - '[ENTRY_LINK]' - ); - - delete_entry_link_sample($formattedName); -} -// [END dataplex_v1_generated_CatalogService_DeleteEntryLink_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/delete_entry_type.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/delete_entry_type.php deleted file mode 100644 index 34155bcdd30e..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/delete_entry_type.php +++ /dev/null @@ -1,81 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $catalogServiceClient->deleteEntryType($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 = CatalogServiceClient::entryTypeName('[PROJECT]', '[LOCATION]', '[ENTRY_TYPE]'); - - delete_entry_type_sample($formattedName); -} -// [END dataplex_v1_generated_CatalogService_DeleteEntryType_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/delete_metadata_feed.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/delete_metadata_feed.php deleted file mode 100644 index 745ef1778e74..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/delete_metadata_feed.php +++ /dev/null @@ -1,85 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $catalogServiceClient->deleteMetadataFeed($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 = CatalogServiceClient::metadataFeedName( - '[PROJECT]', - '[LOCATION]', - '[METADATA_FEED]' - ); - - delete_metadata_feed_sample($formattedName); -} -// [END dataplex_v1_generated_CatalogService_DeleteMetadataFeed_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_aspect_type.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_aspect_type.php deleted file mode 100644 index d3d6273ccc5c..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_aspect_type.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var AspectType $response */ - $response = $catalogServiceClient->getAspectType($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 = CatalogServiceClient::aspectTypeName('[PROJECT]', '[LOCATION]', '[ASPECT_TYPE]'); - - get_aspect_type_sample($formattedName); -} -// [END dataplex_v1_generated_CatalogService_GetAspectType_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_entry.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_entry.php deleted file mode 100644 index 02424c30b918..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_entry.php +++ /dev/null @@ -1,77 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Entry $response */ - $response = $catalogServiceClient->getEntry($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 = CatalogServiceClient::entryName( - '[PROJECT]', - '[LOCATION]', - '[ENTRY_GROUP]', - '[ENTRY]' - ); - - get_entry_sample($formattedName); -} -// [END dataplex_v1_generated_CatalogService_GetEntry_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_entry_group.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_entry_group.php deleted file mode 100644 index 45bde166b19e..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_entry_group.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var EntryGroup $response */ - $response = $catalogServiceClient->getEntryGroup($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 = CatalogServiceClient::entryGroupName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]'); - - get_entry_group_sample($formattedName); -} -// [END dataplex_v1_generated_CatalogService_GetEntryGroup_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_entry_link.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_entry_link.php deleted file mode 100644 index 65b75a1762ec..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_entry_link.php +++ /dev/null @@ -1,77 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var EntryLink $response */ - $response = $catalogServiceClient->getEntryLink($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 = CatalogServiceClient::entryLinkName( - '[PROJECT]', - '[LOCATION]', - '[ENTRY_GROUP]', - '[ENTRY_LINK]' - ); - - get_entry_link_sample($formattedName); -} -// [END dataplex_v1_generated_CatalogService_GetEntryLink_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_entry_type.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_entry_type.php deleted file mode 100644 index 678d3ec6b018..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_entry_type.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var EntryType $response */ - $response = $catalogServiceClient->getEntryType($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 = CatalogServiceClient::entryTypeName('[PROJECT]', '[LOCATION]', '[ENTRY_TYPE]'); - - get_entry_type_sample($formattedName); -} -// [END dataplex_v1_generated_CatalogService_GetEntryType_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_iam_policy.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_iam_policy.php deleted file mode 100644 index 99cc3c21d6f2..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_iam_policy.php +++ /dev/null @@ -1,72 +0,0 @@ -setResource($resource); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $catalogServiceClient->getIamPolicy($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 -{ - $resource = '[RESOURCE]'; - - get_iam_policy_sample($resource); -} -// [END dataplex_v1_generated_CatalogService_GetIamPolicy_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_location.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_location.php deleted file mode 100644 index be077d96b282..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/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 dataplex_v1_generated_CatalogService_GetLocation_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_metadata_feed.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_metadata_feed.php deleted file mode 100644 index 2dfcc3b47290..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_metadata_feed.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var MetadataFeed $response */ - $response = $catalogServiceClient->getMetadataFeed($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 = CatalogServiceClient::metadataFeedName( - '[PROJECT]', - '[LOCATION]', - '[METADATA_FEED]' - ); - - get_metadata_feed_sample($formattedName); -} -// [END dataplex_v1_generated_CatalogService_GetMetadataFeed_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_metadata_job.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_metadata_job.php deleted file mode 100644 index c14a4193b114..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/get_metadata_job.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var MetadataJob $response */ - $response = $catalogServiceClient->getMetadataJob($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 = CatalogServiceClient::metadataJobName('[PROJECT]', '[LOCATION]', '[METADATAJOB]'); - - get_metadata_job_sample($formattedName); -} -// [END dataplex_v1_generated_CatalogService_GetMetadataJob_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/list_aspect_types.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/list_aspect_types.php deleted file mode 100644 index 171c9f666dcf..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/list_aspect_types.php +++ /dev/null @@ -1,78 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $catalogServiceClient->listAspectTypes($request); - - /** @var AspectType $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 = CatalogServiceClient::locationName('[PROJECT]', '[LOCATION]'); - - list_aspect_types_sample($formattedParent); -} -// [END dataplex_v1_generated_CatalogService_ListAspectTypes_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/list_entries.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/list_entries.php deleted file mode 100644 index a73796e8d330..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/list_entries.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $catalogServiceClient->listEntries($request); - - /** @var Entry $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 = CatalogServiceClient::entryGroupName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]'); - - list_entries_sample($formattedParent); -} -// [END dataplex_v1_generated_CatalogService_ListEntries_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/list_entry_groups.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/list_entry_groups.php deleted file mode 100644 index bc9de0e76cb8..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/list_entry_groups.php +++ /dev/null @@ -1,78 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $catalogServiceClient->listEntryGroups($request); - - /** @var EntryGroup $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 = CatalogServiceClient::locationName('[PROJECT]', '[LOCATION]'); - - list_entry_groups_sample($formattedParent); -} -// [END dataplex_v1_generated_CatalogService_ListEntryGroups_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/list_entry_types.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/list_entry_types.php deleted file mode 100644 index dceca685ad25..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/list_entry_types.php +++ /dev/null @@ -1,78 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $catalogServiceClient->listEntryTypes($request); - - /** @var EntryType $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 = CatalogServiceClient::locationName('[PROJECT]', '[LOCATION]'); - - list_entry_types_sample($formattedParent); -} -// [END dataplex_v1_generated_CatalogService_ListEntryTypes_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/list_locations.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/list_locations.php deleted file mode 100644 index aef8cac9a5f1..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/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 dataplex_v1_generated_CatalogService_ListLocations_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/list_metadata_feeds.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/list_metadata_feeds.php deleted file mode 100644 index 94b226f84ea4..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/list_metadata_feeds.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $catalogServiceClient->listMetadataFeeds($request); - - /** @var MetadataFeed $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 = CatalogServiceClient::locationName('[PROJECT]', '[LOCATION]'); - - list_metadata_feeds_sample($formattedParent); -} -// [END dataplex_v1_generated_CatalogService_ListMetadataFeeds_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/list_metadata_jobs.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/list_metadata_jobs.php deleted file mode 100644 index fbdd5c0e44d6..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/list_metadata_jobs.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $catalogServiceClient->listMetadataJobs($request); - - /** @var MetadataJob $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 = CatalogServiceClient::locationName('[PROJECT]', '[LOCATION]'); - - list_metadata_jobs_sample($formattedParent); -} -// [END dataplex_v1_generated_CatalogService_ListMetadataJobs_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/lookup_context.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/lookup_context.php deleted file mode 100644 index 28993447e96e..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/lookup_context.php +++ /dev/null @@ -1,86 +0,0 @@ -setName($name) - ->setResources($formattedResources); - - // Call the API and handle any network failures. - try { - /** @var LookupContextResponse $response */ - $response = $catalogServiceClient->lookupContext($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 -{ - $name = '[NAME]'; - $formattedResourcesElement = CatalogServiceClient::entryName( - '[PROJECT]', - '[LOCATION]', - '[ENTRY_GROUP]', - '[ENTRY]' - ); - - lookup_context_sample($name, $formattedResourcesElement); -} -// [END dataplex_v1_generated_CatalogService_LookupContext_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/lookup_entry.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/lookup_entry.php deleted file mode 100644 index a01598e718e3..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/lookup_entry.php +++ /dev/null @@ -1,81 +0,0 @@ -setName($name) - ->setEntry($formattedEntry); - - // Call the API and handle any network failures. - try { - /** @var Entry $response */ - $response = $catalogServiceClient->lookupEntry($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 -{ - $name = '[NAME]'; - $formattedEntry = CatalogServiceClient::entryName( - '[PROJECT]', - '[LOCATION]', - '[ENTRY_GROUP]', - '[ENTRY]' - ); - - lookup_entry_sample($name, $formattedEntry); -} -// [END dataplex_v1_generated_CatalogService_LookupEntry_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/lookup_entry_links.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/lookup_entry_links.php deleted file mode 100644 index 9e00172514d3..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/lookup_entry_links.php +++ /dev/null @@ -1,88 +0,0 @@ -setName($name) - ->setEntry($formattedEntry); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $catalogServiceClient->lookupEntryLinks($request); - - /** @var EntryLink $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 -{ - $name = '[NAME]'; - $formattedEntry = CatalogServiceClient::entryName( - '[PROJECT]', - '[LOCATION]', - '[ENTRY_GROUP]', - '[ENTRY]' - ); - - lookup_entry_links_sample($name, $formattedEntry); -} -// [END dataplex_v1_generated_CatalogService_LookupEntryLinks_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/search_entries.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/search_entries.php deleted file mode 100644 index 2e89d171694d..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/search_entries.php +++ /dev/null @@ -1,82 +0,0 @@ -setName($formattedName) - ->setQuery($query); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $catalogServiceClient->searchEntries($request); - - /** @var SearchEntriesResult $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 -{ - $formattedName = CatalogServiceClient::locationName('[PROJECT]', '[LOCATION]'); - $query = '[QUERY]'; - - search_entries_sample($formattedName, $query); -} -// [END dataplex_v1_generated_CatalogService_SearchEntries_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/set_iam_policy.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/set_iam_policy.php deleted file mode 100644 index 282c3832e1a6..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/set_iam_policy.php +++ /dev/null @@ -1,77 +0,0 @@ -setResource($resource) - ->setPolicy($policy); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $catalogServiceClient->setIamPolicy($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 -{ - $resource = '[RESOURCE]'; - - set_iam_policy_sample($resource); -} -// [END dataplex_v1_generated_CatalogService_SetIamPolicy_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/test_iam_permissions.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/test_iam_permissions.php deleted file mode 100644 index 74732f35e4ab..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/test_iam_permissions.php +++ /dev/null @@ -1,84 +0,0 @@ -setResource($resource) - ->setPermissions($permissions); - - // Call the API and handle any network failures. - try { - /** @var TestIamPermissionsResponse $response */ - $response = $catalogServiceClient->testIamPermissions($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 -{ - $resource = '[RESOURCE]'; - $permissionsElement = '[PERMISSIONS]'; - - test_iam_permissions_sample($resource, $permissionsElement); -} -// [END dataplex_v1_generated_CatalogService_TestIamPermissions_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/update_aspect_type.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/update_aspect_type.php deleted file mode 100644 index cffe74498021..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/update_aspect_type.php +++ /dev/null @@ -1,111 +0,0 @@ -setName($aspectTypeMetadataTemplateName) - ->setType($aspectTypeMetadataTemplateType); - $aspectType = (new AspectType()) - ->setMetadataTemplate($aspectTypeMetadataTemplate); - $updateMask = new FieldMask(); - $request = (new UpdateAspectTypeRequest()) - ->setAspectType($aspectType) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $catalogServiceClient->updateAspectType($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var AspectType $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 -{ - $aspectTypeMetadataTemplateName = '[NAME]'; - $aspectTypeMetadataTemplateType = '[TYPE]'; - - update_aspect_type_sample($aspectTypeMetadataTemplateName, $aspectTypeMetadataTemplateType); -} -// [END dataplex_v1_generated_CatalogService_UpdateAspectType_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/update_entry.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/update_entry.php deleted file mode 100644 index 895f96056847..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/update_entry.php +++ /dev/null @@ -1,74 +0,0 @@ -setEntryType($entryEntryType); - $request = (new UpdateEntryRequest()) - ->setEntry($entry); - - // Call the API and handle any network failures. - try { - /** @var Entry $response */ - $response = $catalogServiceClient->updateEntry($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 -{ - $entryEntryType = '[ENTRY_TYPE]'; - - update_entry_sample($entryEntryType); -} -// [END dataplex_v1_generated_CatalogService_UpdateEntry_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/update_entry_group.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/update_entry_group.php deleted file mode 100644 index 1f8f92f69c33..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/update_entry_group.php +++ /dev/null @@ -1,74 +0,0 @@ -setEntryGroup($entryGroup) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $catalogServiceClient->updateEntryGroup($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var EntryGroup $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()); - } -} -// [END dataplex_v1_generated_CatalogService_UpdateEntryGroup_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/update_entry_link.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/update_entry_link.php deleted file mode 100644 index 0b6e162165ac..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/update_entry_link.php +++ /dev/null @@ -1,100 +0,0 @@ -setName($entryLinkEntryReferencesName) - ->setType($entryLinkEntryReferencesType); - $entryLinkEntryReferences = [$entryReference,]; - $entryLink = (new EntryLink()) - ->setEntryLinkType($entryLinkEntryLinkType) - ->setEntryReferences($entryLinkEntryReferences); - $request = (new UpdateEntryLinkRequest()) - ->setEntryLink($entryLink); - - // Call the API and handle any network failures. - try { - /** @var EntryLink $response */ - $response = $catalogServiceClient->updateEntryLink($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 -{ - $entryLinkEntryLinkType = '[ENTRY_LINK_TYPE]'; - $entryLinkEntryReferencesName = '[NAME]'; - $entryLinkEntryReferencesType = Type::UNSPECIFIED; - - update_entry_link_sample( - $entryLinkEntryLinkType, - $entryLinkEntryReferencesName, - $entryLinkEntryReferencesType - ); -} -// [END dataplex_v1_generated_CatalogService_UpdateEntryLink_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/update_entry_type.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/update_entry_type.php deleted file mode 100644 index 6cf58eda0e39..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/update_entry_type.php +++ /dev/null @@ -1,74 +0,0 @@ -setEntryType($entryType) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $catalogServiceClient->updateEntryType($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var EntryType $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()); - } -} -// [END dataplex_v1_generated_CatalogService_UpdateEntryType_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/update_metadata_feed.php b/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/update_metadata_feed.php deleted file mode 100644 index d3a92e47151f..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/CatalogServiceClient/update_metadata_feed.php +++ /dev/null @@ -1,74 +0,0 @@ -setScope($metadataFeedScope); - $request = (new UpdateMetadataFeedRequest()) - ->setMetadataFeed($metadataFeed); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $catalogServiceClient->updateMetadataFeed($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var MetadataFeed $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()); - } -} -// [END dataplex_v1_generated_CatalogService_UpdateMetadataFeed_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/create_encryption_config.php b/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/create_encryption_config.php deleted file mode 100644 index 0d8e6f1ccaa9..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/create_encryption_config.php +++ /dev/null @@ -1,92 +0,0 @@ -setParent($formattedParent) - ->setEncryptionConfigId($encryptionConfigId) - ->setEncryptionConfig($encryptionConfig); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $cmekServiceClient->createEncryptionConfig($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var EncryptionConfig $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 = CmekServiceClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $encryptionConfigId = '[ENCRYPTION_CONFIG_ID]'; - - create_encryption_config_sample($formattedParent, $encryptionConfigId); -} -// [END dataplex_v1_generated_CmekService_CreateEncryptionConfig_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/delete_encryption_config.php b/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/delete_encryption_config.php deleted file mode 100644 index 3e2ad99e45cc..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/delete_encryption_config.php +++ /dev/null @@ -1,84 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $cmekServiceClient->deleteEncryptionConfig($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 = CmekServiceClient::encryptionConfigName( - '[ORGANIZATION]', - '[LOCATION]', - '[ENCRYPTION_CONFIG]' - ); - - delete_encryption_config_sample($formattedName); -} -// [END dataplex_v1_generated_CmekService_DeleteEncryptionConfig_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/get_encryption_config.php b/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/get_encryption_config.php deleted file mode 100644 index 1d50eb374567..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/get_encryption_config.php +++ /dev/null @@ -1,75 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var EncryptionConfig $response */ - $response = $cmekServiceClient->getEncryptionConfig($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 = CmekServiceClient::encryptionConfigName( - '[ORGANIZATION]', - '[LOCATION]', - '[ENCRYPTION_CONFIG]' - ); - - get_encryption_config_sample($formattedName); -} -// [END dataplex_v1_generated_CmekService_GetEncryptionConfig_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/get_iam_policy.php b/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/get_iam_policy.php deleted file mode 100644 index 6052e943af21..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/get_iam_policy.php +++ /dev/null @@ -1,72 +0,0 @@ -setResource($resource); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $cmekServiceClient->getIamPolicy($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 -{ - $resource = '[RESOURCE]'; - - get_iam_policy_sample($resource); -} -// [END dataplex_v1_generated_CmekService_GetIamPolicy_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/get_location.php b/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/get_location.php deleted file mode 100644 index 34bbc5bdbc7d..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/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 dataplex_v1_generated_CmekService_GetLocation_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/list_encryption_configs.php b/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/list_encryption_configs.php deleted file mode 100644 index d7d5984d9ed1..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/list_encryption_configs.php +++ /dev/null @@ -1,76 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $cmekServiceClient->listEncryptionConfigs($request); - - /** @var EncryptionConfig $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 = CmekServiceClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - - list_encryption_configs_sample($formattedParent); -} -// [END dataplex_v1_generated_CmekService_ListEncryptionConfigs_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/list_locations.php b/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/list_locations.php deleted file mode 100644 index 6a474e64362b..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/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 dataplex_v1_generated_CmekService_ListLocations_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/set_iam_policy.php b/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/set_iam_policy.php deleted file mode 100644 index b25f2e2fdf56..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/set_iam_policy.php +++ /dev/null @@ -1,77 +0,0 @@ -setResource($resource) - ->setPolicy($policy); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $cmekServiceClient->setIamPolicy($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 -{ - $resource = '[RESOURCE]'; - - set_iam_policy_sample($resource); -} -// [END dataplex_v1_generated_CmekService_SetIamPolicy_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/test_iam_permissions.php b/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/test_iam_permissions.php deleted file mode 100644 index 285ef7ca8dfc..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/test_iam_permissions.php +++ /dev/null @@ -1,84 +0,0 @@ -setResource($resource) - ->setPermissions($permissions); - - // Call the API and handle any network failures. - try { - /** @var TestIamPermissionsResponse $response */ - $response = $cmekServiceClient->testIamPermissions($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 -{ - $resource = '[RESOURCE]'; - $permissionsElement = '[PERMISSIONS]'; - - test_iam_permissions_sample($resource, $permissionsElement); -} -// [END dataplex_v1_generated_CmekService_TestIamPermissions_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/update_encryption_config.php b/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/update_encryption_config.php deleted file mode 100644 index 58fe0307d7a8..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/CmekServiceClient/update_encryption_config.php +++ /dev/null @@ -1,71 +0,0 @@ -setEncryptionConfig($encryptionConfig); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $cmekServiceClient->updateEncryptionConfig($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var EncryptionConfig $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()); - } -} -// [END dataplex_v1_generated_CmekService_UpdateEncryptionConfig_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/ContentServiceClient/get_iam_policy.php b/owl-bot-staging/Dataplex/v1/samples/V1/ContentServiceClient/get_iam_policy.php deleted file mode 100644 index 04800c0c6999..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/ContentServiceClient/get_iam_policy.php +++ /dev/null @@ -1,72 +0,0 @@ -setResource($resource); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $contentServiceClient->getIamPolicy($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 -{ - $resource = '[RESOURCE]'; - - get_iam_policy_sample($resource); -} -// [END dataplex_v1_generated_ContentService_GetIamPolicy_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/ContentServiceClient/get_location.php b/owl-bot-staging/Dataplex/v1/samples/V1/ContentServiceClient/get_location.php deleted file mode 100644 index 73fc10a2c639..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/ContentServiceClient/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 dataplex_v1_generated_ContentService_GetLocation_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/ContentServiceClient/list_locations.php b/owl-bot-staging/Dataplex/v1/samples/V1/ContentServiceClient/list_locations.php deleted file mode 100644 index 9555b373c25c..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/ContentServiceClient/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 dataplex_v1_generated_ContentService_ListLocations_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/ContentServiceClient/set_iam_policy.php b/owl-bot-staging/Dataplex/v1/samples/V1/ContentServiceClient/set_iam_policy.php deleted file mode 100644 index 6add41070d98..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/ContentServiceClient/set_iam_policy.php +++ /dev/null @@ -1,77 +0,0 @@ -setResource($resource) - ->setPolicy($policy); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $contentServiceClient->setIamPolicy($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 -{ - $resource = '[RESOURCE]'; - - set_iam_policy_sample($resource); -} -// [END dataplex_v1_generated_ContentService_SetIamPolicy_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/ContentServiceClient/test_iam_permissions.php b/owl-bot-staging/Dataplex/v1/samples/V1/ContentServiceClient/test_iam_permissions.php deleted file mode 100644 index fc024d0c9c9b..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/ContentServiceClient/test_iam_permissions.php +++ /dev/null @@ -1,84 +0,0 @@ -setResource($resource) - ->setPermissions($permissions); - - // Call the API and handle any network failures. - try { - /** @var TestIamPermissionsResponse $response */ - $response = $contentServiceClient->testIamPermissions($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 -{ - $resource = '[RESOURCE]'; - $permissionsElement = '[PERMISSIONS]'; - - test_iam_permissions_sample($resource, $permissionsElement); -} -// [END dataplex_v1_generated_ContentService_TestIamPermissions_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/create_data_asset.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/create_data_asset.php deleted file mode 100644 index d2a551fe8779..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/create_data_asset.php +++ /dev/null @@ -1,101 +0,0 @@ -setResource($dataAssetResource); - $request = (new CreateDataAssetRequest()) - ->setParent($formattedParent) - ->setDataAsset($dataAsset); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataProductServiceClient->createDataAsset($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var DataAsset $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 = DataProductServiceClient::dataProductName( - '[PROJECT]', - '[LOCATION]', - '[DATA_PRODUCT]' - ); - $dataAssetResource = '[RESOURCE]'; - - create_data_asset_sample($formattedParent, $dataAssetResource); -} -// [END dataplex_v1_generated_DataProductService_CreateDataAsset_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/create_data_product.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/create_data_product.php deleted file mode 100644 index e4a6390d4716..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/create_data_product.php +++ /dev/null @@ -1,100 +0,0 @@ -setDisplayName($dataProductDisplayName) - ->setOwnerEmails($dataProductOwnerEmails); - $request = (new CreateDataProductRequest()) - ->setParent($formattedParent) - ->setDataProduct($dataProduct); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataProductServiceClient->createDataProduct($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var DataProduct $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 = DataProductServiceClient::locationName('[PROJECT]', '[LOCATION]'); - $dataProductDisplayName = '[DISPLAY_NAME]'; - $dataProductOwnerEmailsElement = '[OWNER_EMAILS]'; - - create_data_product_sample( - $formattedParent, - $dataProductDisplayName, - $dataProductOwnerEmailsElement - ); -} -// [END dataplex_v1_generated_DataProductService_CreateDataProduct_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/delete_data_asset.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/delete_data_asset.php deleted file mode 100644 index eb9ddbba90c3..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/delete_data_asset.php +++ /dev/null @@ -1,87 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataProductServiceClient->deleteDataAsset($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 = DataProductServiceClient::dataAssetName( - '[PROJECT]', - '[LOCATION]', - '[DATA_PRODUCT]', - '[DATA_ASSET]' - ); - - delete_data_asset_sample($formattedName); -} -// [END dataplex_v1_generated_DataProductService_DeleteDataAsset_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/delete_data_product.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/delete_data_product.php deleted file mode 100644 index 90c6c6fbe321..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/delete_data_product.php +++ /dev/null @@ -1,87 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataProductServiceClient->deleteDataProduct($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 = DataProductServiceClient::dataProductName( - '[PROJECT]', - '[LOCATION]', - '[DATA_PRODUCT]' - ); - - delete_data_product_sample($formattedName); -} -// [END dataplex_v1_generated_DataProductService_DeleteDataProduct_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/get_data_asset.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/get_data_asset.php deleted file mode 100644 index 14e372d68d55..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/get_data_asset.php +++ /dev/null @@ -1,78 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var DataAsset $response */ - $response = $dataProductServiceClient->getDataAsset($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 = DataProductServiceClient::dataAssetName( - '[PROJECT]', - '[LOCATION]', - '[DATA_PRODUCT]', - '[DATA_ASSET]' - ); - - get_data_asset_sample($formattedName); -} -// [END dataplex_v1_generated_DataProductService_GetDataAsset_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/get_data_product.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/get_data_product.php deleted file mode 100644 index e2590b997013..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/get_data_product.php +++ /dev/null @@ -1,77 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var DataProduct $response */ - $response = $dataProductServiceClient->getDataProduct($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 = DataProductServiceClient::dataProductName( - '[PROJECT]', - '[LOCATION]', - '[DATA_PRODUCT]' - ); - - get_data_product_sample($formattedName); -} -// [END dataplex_v1_generated_DataProductService_GetDataProduct_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/get_iam_policy.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/get_iam_policy.php deleted file mode 100644 index db0ae1426ff9..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/get_iam_policy.php +++ /dev/null @@ -1,72 +0,0 @@ -setResource($resource); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $dataProductServiceClient->getIamPolicy($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 -{ - $resource = '[RESOURCE]'; - - get_iam_policy_sample($resource); -} -// [END dataplex_v1_generated_DataProductService_GetIamPolicy_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/get_location.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/get_location.php deleted file mode 100644 index 6da9797fe1e9..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/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 dataplex_v1_generated_DataProductService_GetLocation_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/list_data_assets.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/list_data_assets.php deleted file mode 100644 index 1037767fc6cf..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/list_data_assets.php +++ /dev/null @@ -1,82 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataProductServiceClient->listDataAssets($request); - - /** @var DataAsset $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 = DataProductServiceClient::dataProductName( - '[PROJECT]', - '[LOCATION]', - '[DATA_PRODUCT]' - ); - - list_data_assets_sample($formattedParent); -} -// [END dataplex_v1_generated_DataProductService_ListDataAssets_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/list_data_products.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/list_data_products.php deleted file mode 100644 index 94a534820eda..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/list_data_products.php +++ /dev/null @@ -1,81 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataProductServiceClient->listDataProducts($request); - - /** @var DataProduct $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 = DataProductServiceClient::locationName('[PROJECT]', '[LOCATION]'); - - list_data_products_sample($formattedParent); -} -// [END dataplex_v1_generated_DataProductService_ListDataProducts_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/list_locations.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/list_locations.php deleted file mode 100644 index 7791ca9b6cda..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/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 dataplex_v1_generated_DataProductService_ListLocations_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/set_iam_policy.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/set_iam_policy.php deleted file mode 100644 index c1beb9d359f1..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/set_iam_policy.php +++ /dev/null @@ -1,77 +0,0 @@ -setResource($resource) - ->setPolicy($policy); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $dataProductServiceClient->setIamPolicy($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 -{ - $resource = '[RESOURCE]'; - - set_iam_policy_sample($resource); -} -// [END dataplex_v1_generated_DataProductService_SetIamPolicy_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/test_iam_permissions.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/test_iam_permissions.php deleted file mode 100644 index 2d6686ec0d76..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/test_iam_permissions.php +++ /dev/null @@ -1,84 +0,0 @@ -setResource($resource) - ->setPermissions($permissions); - - // Call the API and handle any network failures. - try { - /** @var TestIamPermissionsResponse $response */ - $response = $dataProductServiceClient->testIamPermissions($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 -{ - $resource = '[RESOURCE]'; - $permissionsElement = '[PERMISSIONS]'; - - test_iam_permissions_sample($resource, $permissionsElement); -} -// [END dataplex_v1_generated_DataProductService_TestIamPermissions_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/update_data_asset.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/update_data_asset.php deleted file mode 100644 index ad4abcf60ce5..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/update_data_asset.php +++ /dev/null @@ -1,91 +0,0 @@ -setResource($dataAssetResource); - $request = (new UpdateDataAssetRequest()) - ->setDataAsset($dataAsset); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataProductServiceClient->updateDataAsset($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var DataAsset $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 -{ - $dataAssetResource = '[RESOURCE]'; - - update_data_asset_sample($dataAssetResource); -} -// [END dataplex_v1_generated_DataProductService_UpdateDataAsset_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/update_data_product.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/update_data_product.php deleted file mode 100644 index 153eb02848e1..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataProductServiceClient/update_data_product.php +++ /dev/null @@ -1,90 +0,0 @@ -setDisplayName($dataProductDisplayName) - ->setOwnerEmails($dataProductOwnerEmails); - $request = (new UpdateDataProductRequest()) - ->setDataProduct($dataProduct); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataProductServiceClient->updateDataProduct($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var DataProduct $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 -{ - $dataProductDisplayName = '[DISPLAY_NAME]'; - $dataProductOwnerEmailsElement = '[OWNER_EMAILS]'; - - update_data_product_sample($dataProductDisplayName, $dataProductOwnerEmailsElement); -} -// [END dataplex_v1_generated_DataProductService_UpdateDataProduct_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/create_data_scan.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/create_data_scan.php deleted file mode 100644 index 717ecce2a849..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/create_data_scan.php +++ /dev/null @@ -1,91 +0,0 @@ -setData($dataScanData); - $request = (new CreateDataScanRequest()) - ->setParent($formattedParent) - ->setDataScan($dataScan); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataScanServiceClient->createDataScan($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var DataScan $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 = DataScanServiceClient::locationName('[PROJECT]', '[LOCATION]'); - - create_data_scan_sample($formattedParent); -} -// [END dataplex_v1_generated_DataScanService_CreateDataScan_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/delete_data_scan.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/delete_data_scan.php deleted file mode 100644 index 31a054687068..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/delete_data_scan.php +++ /dev/null @@ -1,83 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataScanServiceClient->deleteDataScan($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 = DataScanServiceClient::dataScanName('[PROJECT]', '[LOCATION]', '[DATASCAN]'); - - delete_data_scan_sample($formattedName); -} -// [END dataplex_v1_generated_DataScanService_DeleteDataScan_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/generate_data_quality_rules.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/generate_data_quality_rules.php deleted file mode 100644 index 52fe90ab3c1a..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/generate_data_quality_rules.php +++ /dev/null @@ -1,78 +0,0 @@ -setName($name); - - // Call the API and handle any network failures. - try { - /** @var GenerateDataQualityRulesResponse $response */ - $response = $dataScanServiceClient->generateDataQualityRules($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 -{ - $name = '[NAME]'; - - generate_data_quality_rules_sample($name); -} -// [END dataplex_v1_generated_DataScanService_GenerateDataQualityRules_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/get_data_scan.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/get_data_scan.php deleted file mode 100644 index 37babe2cf48a..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/get_data_scan.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var DataScan $response */ - $response = $dataScanServiceClient->getDataScan($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 = DataScanServiceClient::dataScanName('[PROJECT]', '[LOCATION]', '[DATASCAN]'); - - get_data_scan_sample($formattedName); -} -// [END dataplex_v1_generated_DataScanService_GetDataScan_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/get_data_scan_job.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/get_data_scan_job.php deleted file mode 100644 index 0829c32e5a86..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/get_data_scan_job.php +++ /dev/null @@ -1,79 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var DataScanJob $response */ - $response = $dataScanServiceClient->getDataScanJob($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 = DataScanServiceClient::dataScanJobName( - '[PROJECT]', - '[LOCATION]', - '[DATASCAN]', - '[JOB]' - ); - - get_data_scan_job_sample($formattedName); -} -// [END dataplex_v1_generated_DataScanService_GetDataScanJob_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/get_iam_policy.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/get_iam_policy.php deleted file mode 100644 index cb8bf870306e..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/get_iam_policy.php +++ /dev/null @@ -1,72 +0,0 @@ -setResource($resource); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $dataScanServiceClient->getIamPolicy($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 -{ - $resource = '[RESOURCE]'; - - get_iam_policy_sample($resource); -} -// [END dataplex_v1_generated_DataScanService_GetIamPolicy_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/get_location.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/get_location.php deleted file mode 100644 index ba5d223011b4..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/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 dataplex_v1_generated_DataScanService_GetLocation_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/list_data_scan_jobs.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/list_data_scan_jobs.php deleted file mode 100644 index e744c55ca065..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/list_data_scan_jobs.php +++ /dev/null @@ -1,79 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataScanServiceClient->listDataScanJobs($request); - - /** @var DataScanJob $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 = DataScanServiceClient::dataScanName('[PROJECT]', '[LOCATION]', '[DATASCAN]'); - - list_data_scan_jobs_sample($formattedParent); -} -// [END dataplex_v1_generated_DataScanService_ListDataScanJobs_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/list_data_scans.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/list_data_scans.php deleted file mode 100644 index 81089893f17b..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/list_data_scans.php +++ /dev/null @@ -1,79 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataScanServiceClient->listDataScans($request); - - /** @var DataScan $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 = DataScanServiceClient::locationName('[PROJECT]', '[LOCATION]'); - - list_data_scans_sample($formattedParent); -} -// [END dataplex_v1_generated_DataScanService_ListDataScans_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/list_locations.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/list_locations.php deleted file mode 100644 index 95c4b11544c0..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/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 dataplex_v1_generated_DataScanService_ListLocations_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/run_data_scan.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/run_data_scan.php deleted file mode 100644 index ed79896714a8..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/run_data_scan.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var RunDataScanResponse $response */ - $response = $dataScanServiceClient->runDataScan($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 = DataScanServiceClient::dataScanName('[PROJECT]', '[LOCATION]', '[DATASCAN]'); - - run_data_scan_sample($formattedName); -} -// [END dataplex_v1_generated_DataScanService_RunDataScan_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/set_iam_policy.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/set_iam_policy.php deleted file mode 100644 index e9774f5bd395..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/set_iam_policy.php +++ /dev/null @@ -1,77 +0,0 @@ -setResource($resource) - ->setPolicy($policy); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $dataScanServiceClient->setIamPolicy($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 -{ - $resource = '[RESOURCE]'; - - set_iam_policy_sample($resource); -} -// [END dataplex_v1_generated_DataScanService_SetIamPolicy_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/test_iam_permissions.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/test_iam_permissions.php deleted file mode 100644 index 8918fff363e9..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/test_iam_permissions.php +++ /dev/null @@ -1,84 +0,0 @@ -setResource($resource) - ->setPermissions($permissions); - - // Call the API and handle any network failures. - try { - /** @var TestIamPermissionsResponse $response */ - $response = $dataScanServiceClient->testIamPermissions($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 -{ - $resource = '[RESOURCE]'; - $permissionsElement = '[PERMISSIONS]'; - - test_iam_permissions_sample($resource, $permissionsElement); -} -// [END dataplex_v1_generated_DataScanService_TestIamPermissions_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/update_data_scan.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/update_data_scan.php deleted file mode 100644 index 64c41abf083c..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataScanServiceClient/update_data_scan.php +++ /dev/null @@ -1,74 +0,0 @@ -setData($dataScanData); - $request = (new UpdateDataScanRequest()) - ->setDataScan($dataScan); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataScanServiceClient->updateDataScan($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var DataScan $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()); - } -} -// [END dataplex_v1_generated_DataScanService_UpdateDataScan_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/create_data_attribute.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/create_data_attribute.php deleted file mode 100644 index c5a60820a5e5..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/create_data_attribute.php +++ /dev/null @@ -1,98 +0,0 @@ -setParent($formattedParent) - ->setDataAttributeId($dataAttributeId) - ->setDataAttribute($dataAttribute); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataTaxonomyServiceClient->createDataAttribute($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var DataAttribute $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 = DataTaxonomyServiceClient::dataTaxonomyName( - '[PROJECT]', - '[LOCATION]', - '[DATA_TAXONOMY_ID]' - ); - $dataAttributeId = '[DATA_ATTRIBUTE_ID]'; - - create_data_attribute_sample($formattedParent, $dataAttributeId); -} -// [END dataplex_v1_generated_DataTaxonomyService_CreateDataAttribute_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/create_data_attribute_binding.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/create_data_attribute_binding.php deleted file mode 100644 index 1a15fc434caa..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/create_data_attribute_binding.php +++ /dev/null @@ -1,96 +0,0 @@ -setParent($formattedParent) - ->setDataAttributeBindingId($dataAttributeBindingId) - ->setDataAttributeBinding($dataAttributeBinding); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataTaxonomyServiceClient->createDataAttributeBinding($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var DataAttributeBinding $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 = DataTaxonomyServiceClient::locationName('[PROJECT]', '[LOCATION]'); - $dataAttributeBindingId = '[DATA_ATTRIBUTE_BINDING_ID]'; - - create_data_attribute_binding_sample($formattedParent, $dataAttributeBindingId); -} -// [END dataplex_v1_generated_DataTaxonomyService_CreateDataAttributeBinding_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/create_data_taxonomy.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/create_data_taxonomy.php deleted file mode 100644 index 5b8d564d5156..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/create_data_taxonomy.php +++ /dev/null @@ -1,92 +0,0 @@ -setParent($formattedParent) - ->setDataTaxonomyId($dataTaxonomyId) - ->setDataTaxonomy($dataTaxonomy); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataTaxonomyServiceClient->createDataTaxonomy($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var DataTaxonomy $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 = DataTaxonomyServiceClient::locationName('[PROJECT]', '[LOCATION]'); - $dataTaxonomyId = '[DATA_TAXONOMY_ID]'; - - create_data_taxonomy_sample($formattedParent, $dataTaxonomyId); -} -// [END dataplex_v1_generated_DataTaxonomyService_CreateDataTaxonomy_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/delete_data_attribute.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/delete_data_attribute.php deleted file mode 100644 index 18cfddefbbb9..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/delete_data_attribute.php +++ /dev/null @@ -1,86 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataTaxonomyServiceClient->deleteDataAttribute($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 = DataTaxonomyServiceClient::dataAttributeName( - '[PROJECT]', - '[LOCATION]', - '[DATATAXONOMY]', - '[DATA_ATTRIBUTE_ID]' - ); - - delete_data_attribute_sample($formattedName); -} -// [END dataplex_v1_generated_DataTaxonomyService_DeleteDataAttribute_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/delete_data_attribute_binding.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/delete_data_attribute_binding.php deleted file mode 100644 index bbf37f09783a..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/delete_data_attribute_binding.php +++ /dev/null @@ -1,93 +0,0 @@ -setName($formattedName) - ->setEtag($etag); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataTaxonomyServiceClient->deleteDataAttributeBinding($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 = DataTaxonomyServiceClient::dataAttributeBindingName( - '[PROJECT]', - '[LOCATION]', - '[DATA_ATTRIBUTE_BINDING_ID]' - ); - $etag = '[ETAG]'; - - delete_data_attribute_binding_sample($formattedName, $etag); -} -// [END dataplex_v1_generated_DataTaxonomyService_DeleteDataAttributeBinding_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/delete_data_taxonomy.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/delete_data_taxonomy.php deleted file mode 100644 index 321656c7f7cd..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/delete_data_taxonomy.php +++ /dev/null @@ -1,86 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataTaxonomyServiceClient->deleteDataTaxonomy($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 = DataTaxonomyServiceClient::dataTaxonomyName( - '[PROJECT]', - '[LOCATION]', - '[DATA_TAXONOMY_ID]' - ); - - delete_data_taxonomy_sample($formattedName); -} -// [END dataplex_v1_generated_DataTaxonomyService_DeleteDataTaxonomy_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/get_data_attribute.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/get_data_attribute.php deleted file mode 100644 index 0d669c88006c..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/get_data_attribute.php +++ /dev/null @@ -1,77 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var DataAttribute $response */ - $response = $dataTaxonomyServiceClient->getDataAttribute($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 = DataTaxonomyServiceClient::dataAttributeName( - '[PROJECT]', - '[LOCATION]', - '[DATATAXONOMY]', - '[DATA_ATTRIBUTE_ID]' - ); - - get_data_attribute_sample($formattedName); -} -// [END dataplex_v1_generated_DataTaxonomyService_GetDataAttribute_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/get_data_attribute_binding.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/get_data_attribute_binding.php deleted file mode 100644 index 9c8ced28cfba..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/get_data_attribute_binding.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var DataAttributeBinding $response */ - $response = $dataTaxonomyServiceClient->getDataAttributeBinding($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 = DataTaxonomyServiceClient::dataAttributeBindingName( - '[PROJECT]', - '[LOCATION]', - '[DATA_ATTRIBUTE_BINDING_ID]' - ); - - get_data_attribute_binding_sample($formattedName); -} -// [END dataplex_v1_generated_DataTaxonomyService_GetDataAttributeBinding_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/get_data_taxonomy.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/get_data_taxonomy.php deleted file mode 100644 index c1fc9e7ad15b..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/get_data_taxonomy.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var DataTaxonomy $response */ - $response = $dataTaxonomyServiceClient->getDataTaxonomy($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 = DataTaxonomyServiceClient::dataTaxonomyName( - '[PROJECT]', - '[LOCATION]', - '[DATA_TAXONOMY_ID]' - ); - - get_data_taxonomy_sample($formattedName); -} -// [END dataplex_v1_generated_DataTaxonomyService_GetDataTaxonomy_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/get_iam_policy.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/get_iam_policy.php deleted file mode 100644 index 4ea2443378cc..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/get_iam_policy.php +++ /dev/null @@ -1,72 +0,0 @@ -setResource($resource); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $dataTaxonomyServiceClient->getIamPolicy($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 -{ - $resource = '[RESOURCE]'; - - get_iam_policy_sample($resource); -} -// [END dataplex_v1_generated_DataTaxonomyService_GetIamPolicy_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/get_location.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/get_location.php deleted file mode 100644 index c5b0b321108d..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/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 dataplex_v1_generated_DataTaxonomyService_GetLocation_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/list_data_attribute_bindings.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/list_data_attribute_bindings.php deleted file mode 100644 index 62a65888b13f..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/list_data_attribute_bindings.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataTaxonomyServiceClient->listDataAttributeBindings($request); - - /** @var DataAttributeBinding $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 = DataTaxonomyServiceClient::locationName('[PROJECT]', '[LOCATION]'); - - list_data_attribute_bindings_sample($formattedParent); -} -// [END dataplex_v1_generated_DataTaxonomyService_ListDataAttributeBindings_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/list_data_attributes.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/list_data_attributes.php deleted file mode 100644 index 776851cb30b1..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/list_data_attributes.php +++ /dev/null @@ -1,81 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataTaxonomyServiceClient->listDataAttributes($request); - - /** @var DataAttribute $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 = DataTaxonomyServiceClient::dataTaxonomyName( - '[PROJECT]', - '[LOCATION]', - '[DATA_TAXONOMY_ID]' - ); - - list_data_attributes_sample($formattedParent); -} -// [END dataplex_v1_generated_DataTaxonomyService_ListDataAttributes_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/list_data_taxonomies.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/list_data_taxonomies.php deleted file mode 100644 index 9864fc7d084f..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/list_data_taxonomies.php +++ /dev/null @@ -1,78 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataTaxonomyServiceClient->listDataTaxonomies($request); - - /** @var DataTaxonomy $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 = DataTaxonomyServiceClient::locationName('[PROJECT]', '[LOCATION]'); - - list_data_taxonomies_sample($formattedParent); -} -// [END dataplex_v1_generated_DataTaxonomyService_ListDataTaxonomies_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/list_locations.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/list_locations.php deleted file mode 100644 index 5a1bca4bb18d..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/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 dataplex_v1_generated_DataTaxonomyService_ListLocations_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/set_iam_policy.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/set_iam_policy.php deleted file mode 100644 index f49a7ee80c7d..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/set_iam_policy.php +++ /dev/null @@ -1,77 +0,0 @@ -setResource($resource) - ->setPolicy($policy); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $dataTaxonomyServiceClient->setIamPolicy($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 -{ - $resource = '[RESOURCE]'; - - set_iam_policy_sample($resource); -} -// [END dataplex_v1_generated_DataTaxonomyService_SetIamPolicy_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/test_iam_permissions.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/test_iam_permissions.php deleted file mode 100644 index 8f1961dbf3a3..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/test_iam_permissions.php +++ /dev/null @@ -1,84 +0,0 @@ -setResource($resource) - ->setPermissions($permissions); - - // Call the API and handle any network failures. - try { - /** @var TestIamPermissionsResponse $response */ - $response = $dataTaxonomyServiceClient->testIamPermissions($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 -{ - $resource = '[RESOURCE]'; - $permissionsElement = '[PERMISSIONS]'; - - test_iam_permissions_sample($resource, $permissionsElement); -} -// [END dataplex_v1_generated_DataTaxonomyService_TestIamPermissions_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/update_data_attribute.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/update_data_attribute.php deleted file mode 100644 index 00951a15cd29..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/update_data_attribute.php +++ /dev/null @@ -1,74 +0,0 @@ -setUpdateMask($updateMask) - ->setDataAttribute($dataAttribute); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataTaxonomyServiceClient->updateDataAttribute($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var DataAttribute $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()); - } -} -// [END dataplex_v1_generated_DataTaxonomyService_UpdateDataAttribute_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/update_data_attribute_binding.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/update_data_attribute_binding.php deleted file mode 100644 index a11bf08e4dd7..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/update_data_attribute_binding.php +++ /dev/null @@ -1,74 +0,0 @@ -setUpdateMask($updateMask) - ->setDataAttributeBinding($dataAttributeBinding); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataTaxonomyServiceClient->updateDataAttributeBinding($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var DataAttributeBinding $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()); - } -} -// [END dataplex_v1_generated_DataTaxonomyService_UpdateDataAttributeBinding_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/update_data_taxonomy.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/update_data_taxonomy.php deleted file mode 100644 index 4bd702118082..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataTaxonomyServiceClient/update_data_taxonomy.php +++ /dev/null @@ -1,74 +0,0 @@ -setUpdateMask($updateMask) - ->setDataTaxonomy($dataTaxonomy); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataTaxonomyServiceClient->updateDataTaxonomy($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var DataTaxonomy $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()); - } -} -// [END dataplex_v1_generated_DataTaxonomyService_UpdateDataTaxonomy_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/cancel_job.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/cancel_job.php deleted file mode 100644 index 3add16f012d8..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/cancel_job.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $dataplexServiceClient->cancelJob($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 = DataplexServiceClient::jobName( - '[PROJECT]', - '[LOCATION]', - '[LAKE]', - '[TASK]', - '[JOB]' - ); - - cancel_job_sample($formattedName); -} -// [END dataplex_v1_generated_DataplexService_CancelJob_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/create_asset.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/create_asset.php deleted file mode 100644 index a374a2a522c5..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/create_asset.php +++ /dev/null @@ -1,106 +0,0 @@ -setType($assetResourceSpecType); - $asset = (new Asset()) - ->setResourceSpec($assetResourceSpec); - $request = (new CreateAssetRequest()) - ->setParent($formattedParent) - ->setAssetId($assetId) - ->setAsset($asset); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataplexServiceClient->createAsset($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Asset $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 = DataplexServiceClient::zoneName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]'); - $assetId = '[ASSET_ID]'; - $assetResourceSpecType = Type::TYPE_UNSPECIFIED; - - create_asset_sample($formattedParent, $assetId, $assetResourceSpecType); -} -// [END dataplex_v1_generated_DataplexService_CreateAsset_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/create_lake.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/create_lake.php deleted file mode 100644 index 4dd2a59c6edb..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/create_lake.php +++ /dev/null @@ -1,97 +0,0 @@ -setParent($formattedParent) - ->setLakeId($lakeId) - ->setLake($lake); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataplexServiceClient->createLake($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Lake $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 = DataplexServiceClient::locationName('[PROJECT]', '[LOCATION]'); - $lakeId = '[LAKE_ID]'; - - create_lake_sample($formattedParent, $lakeId); -} -// [END dataplex_v1_generated_DataplexService_CreateLake_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/create_task.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/create_task.php deleted file mode 100644 index a0326e736574..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/create_task.php +++ /dev/null @@ -1,113 +0,0 @@ -setType($taskTriggerSpecType); - $taskExecutionSpec = (new ExecutionSpec()) - ->setServiceAccount($taskExecutionSpecServiceAccount); - $task = (new Task()) - ->setTriggerSpec($taskTriggerSpec) - ->setExecutionSpec($taskExecutionSpec); - $request = (new CreateTaskRequest()) - ->setParent($formattedParent) - ->setTaskId($taskId) - ->setTask($task); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataplexServiceClient->createTask($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Task $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 = DataplexServiceClient::lakeName('[PROJECT]', '[LOCATION]', '[LAKE]'); - $taskId = '[TASK_ID]'; - $taskTriggerSpecType = Type::TYPE_UNSPECIFIED; - $taskExecutionSpecServiceAccount = '[SERVICE_ACCOUNT]'; - - create_task_sample( - $formattedParent, - $taskId, - $taskTriggerSpecType, - $taskExecutionSpecServiceAccount - ); -} -// [END dataplex_v1_generated_DataplexService_CreateTask_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/create_zone.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/create_zone.php deleted file mode 100644 index d8fe12a59fda..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/create_zone.php +++ /dev/null @@ -1,113 +0,0 @@ -setLocationType($zoneResourceSpecLocationType); - $zone = (new Zone()) - ->setType($zoneType) - ->setResourceSpec($zoneResourceSpec); - $request = (new CreateZoneRequest()) - ->setParent($formattedParent) - ->setZoneId($zoneId) - ->setZone($zone); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataplexServiceClient->createZone($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Zone $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 = DataplexServiceClient::lakeName('[PROJECT]', '[LOCATION]', '[LAKE]'); - $zoneId = '[ZONE_ID]'; - $zoneType = Type::TYPE_UNSPECIFIED; - $zoneResourceSpecLocationType = LocationType::LOCATION_TYPE_UNSPECIFIED; - - create_zone_sample($formattedParent, $zoneId, $zoneType, $zoneResourceSpecLocationType); -} -// [END dataplex_v1_generated_DataplexService_CreateZone_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/delete_asset.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/delete_asset.php deleted file mode 100644 index 2636ffec6830..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/delete_asset.php +++ /dev/null @@ -1,88 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataplexServiceClient->deleteAsset($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 = DataplexServiceClient::assetName( - '[PROJECT]', - '[LOCATION]', - '[LAKE]', - '[ZONE]', - '[ASSET]' - ); - - delete_asset_sample($formattedName); -} -// [END dataplex_v1_generated_DataplexService_DeleteAsset_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/delete_lake.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/delete_lake.php deleted file mode 100644 index fc79a7d52742..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/delete_lake.php +++ /dev/null @@ -1,82 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataplexServiceClient->deleteLake($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 = DataplexServiceClient::lakeName('[PROJECT]', '[LOCATION]', '[LAKE]'); - - delete_lake_sample($formattedName); -} -// [END dataplex_v1_generated_DataplexService_DeleteLake_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/delete_task.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/delete_task.php deleted file mode 100644 index 56794c258073..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/delete_task.php +++ /dev/null @@ -1,81 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataplexServiceClient->deleteTask($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 = DataplexServiceClient::taskName('[PROJECT]', '[LOCATION]', '[LAKE]', '[TASK]'); - - delete_task_sample($formattedName); -} -// [END dataplex_v1_generated_DataplexService_DeleteTask_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/delete_zone.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/delete_zone.php deleted file mode 100644 index 808e13c8ad39..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/delete_zone.php +++ /dev/null @@ -1,82 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataplexServiceClient->deleteZone($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 = DataplexServiceClient::zoneName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]'); - - delete_zone_sample($formattedName); -} -// [END dataplex_v1_generated_DataplexService_DeleteZone_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_asset.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_asset.php deleted file mode 100644 index b75db61cf003..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_asset.php +++ /dev/null @@ -1,78 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Asset $response */ - $response = $dataplexServiceClient->getAsset($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 = DataplexServiceClient::assetName( - '[PROJECT]', - '[LOCATION]', - '[LAKE]', - '[ZONE]', - '[ASSET]' - ); - - get_asset_sample($formattedName); -} -// [END dataplex_v1_generated_DataplexService_GetAsset_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_iam_policy.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_iam_policy.php deleted file mode 100644 index 89fbb8d506f4..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_iam_policy.php +++ /dev/null @@ -1,72 +0,0 @@ -setResource($resource); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $dataplexServiceClient->getIamPolicy($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 -{ - $resource = '[RESOURCE]'; - - get_iam_policy_sample($resource); -} -// [END dataplex_v1_generated_DataplexService_GetIamPolicy_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_job.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_job.php deleted file mode 100644 index 5fee49308e80..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_job.php +++ /dev/null @@ -1,78 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Job $response */ - $response = $dataplexServiceClient->getJob($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 = DataplexServiceClient::jobName( - '[PROJECT]', - '[LOCATION]', - '[LAKE]', - '[TASK]', - '[JOB]' - ); - - get_job_sample($formattedName); -} -// [END dataplex_v1_generated_DataplexService_GetJob_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_lake.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_lake.php deleted file mode 100644 index 3e7220810ba6..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_lake.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Lake $response */ - $response = $dataplexServiceClient->getLake($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 = DataplexServiceClient::lakeName('[PROJECT]', '[LOCATION]', '[LAKE]'); - - get_lake_sample($formattedName); -} -// [END dataplex_v1_generated_DataplexService_GetLake_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_location.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_location.php deleted file mode 100644 index 1621b0537f14..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/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 dataplex_v1_generated_DataplexService_GetLocation_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_task.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_task.php deleted file mode 100644 index 40085096202b..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_task.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Task $response */ - $response = $dataplexServiceClient->getTask($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 = DataplexServiceClient::taskName('[PROJECT]', '[LOCATION]', '[LAKE]', '[TASK]'); - - get_task_sample($formattedName); -} -// [END dataplex_v1_generated_DataplexService_GetTask_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_zone.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_zone.php deleted file mode 100644 index 305eea8f32c0..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/get_zone.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Zone $response */ - $response = $dataplexServiceClient->getZone($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 = DataplexServiceClient::zoneName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]'); - - get_zone_sample($formattedName); -} -// [END dataplex_v1_generated_DataplexService_GetZone_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_asset_actions.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_asset_actions.php deleted file mode 100644 index 902d2ccd1f86..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_asset_actions.php +++ /dev/null @@ -1,83 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataplexServiceClient->listAssetActions($request); - - /** @var Action $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 = DataplexServiceClient::assetName( - '[PROJECT]', - '[LOCATION]', - '[LAKE]', - '[ZONE]', - '[ASSET]' - ); - - list_asset_actions_sample($formattedParent); -} -// [END dataplex_v1_generated_DataplexService_ListAssetActions_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_assets.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_assets.php deleted file mode 100644 index 2c1b1c1badfb..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_assets.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataplexServiceClient->listAssets($request); - - /** @var Asset $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 = DataplexServiceClient::zoneName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]'); - - list_assets_sample($formattedParent); -} -// [END dataplex_v1_generated_DataplexService_ListAssets_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_jobs.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_jobs.php deleted file mode 100644 index 4cb3c99b36f7..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_jobs.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataplexServiceClient->listJobs($request); - - /** @var Job $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 = DataplexServiceClient::taskName('[PROJECT]', '[LOCATION]', '[LAKE]', '[TASK]'); - - list_jobs_sample($formattedParent); -} -// [END dataplex_v1_generated_DataplexService_ListJobs_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_lake_actions.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_lake_actions.php deleted file mode 100644 index 3dbf0d33eed1..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_lake_actions.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataplexServiceClient->listLakeActions($request); - - /** @var Action $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 = DataplexServiceClient::lakeName('[PROJECT]', '[LOCATION]', '[LAKE]'); - - list_lake_actions_sample($formattedParent); -} -// [END dataplex_v1_generated_DataplexService_ListLakeActions_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_lakes.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_lakes.php deleted file mode 100644 index 41a0297d6d7a..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_lakes.php +++ /dev/null @@ -1,78 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataplexServiceClient->listLakes($request); - - /** @var Lake $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 = DataplexServiceClient::locationName('[PROJECT]', '[LOCATION]'); - - list_lakes_sample($formattedParent); -} -// [END dataplex_v1_generated_DataplexService_ListLakes_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_locations.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_locations.php deleted file mode 100644 index e058fb802458..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/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 dataplex_v1_generated_DataplexService_ListLocations_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_tasks.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_tasks.php deleted file mode 100644 index a9e9bfebac12..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_tasks.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataplexServiceClient->listTasks($request); - - /** @var Task $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 = DataplexServiceClient::lakeName('[PROJECT]', '[LOCATION]', '[LAKE]'); - - list_tasks_sample($formattedParent); -} -// [END dataplex_v1_generated_DataplexService_ListTasks_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_zone_actions.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_zone_actions.php deleted file mode 100644 index 7ceba4e8e949..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_zone_actions.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataplexServiceClient->listZoneActions($request); - - /** @var Action $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 = DataplexServiceClient::zoneName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]'); - - list_zone_actions_sample($formattedParent); -} -// [END dataplex_v1_generated_DataplexService_ListZoneActions_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_zones.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_zones.php deleted file mode 100644 index e960aafe206f..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/list_zones.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataplexServiceClient->listZones($request); - - /** @var Zone $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 = DataplexServiceClient::lakeName('[PROJECT]', '[LOCATION]', '[LAKE]'); - - list_zones_sample($formattedParent); -} -// [END dataplex_v1_generated_DataplexService_ListZones_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/run_task.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/run_task.php deleted file mode 100644 index 1be06711e84e..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/run_task.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var RunTaskResponse $response */ - $response = $dataplexServiceClient->runTask($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 = DataplexServiceClient::taskName('[PROJECT]', '[LOCATION]', '[LAKE]', '[TASK]'); - - run_task_sample($formattedName); -} -// [END dataplex_v1_generated_DataplexService_RunTask_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/set_iam_policy.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/set_iam_policy.php deleted file mode 100644 index 5385248524e0..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/set_iam_policy.php +++ /dev/null @@ -1,77 +0,0 @@ -setResource($resource) - ->setPolicy($policy); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $dataplexServiceClient->setIamPolicy($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 -{ - $resource = '[RESOURCE]'; - - set_iam_policy_sample($resource); -} -// [END dataplex_v1_generated_DataplexService_SetIamPolicy_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/test_iam_permissions.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/test_iam_permissions.php deleted file mode 100644 index 2633f23ca88e..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/test_iam_permissions.php +++ /dev/null @@ -1,84 +0,0 @@ -setResource($resource) - ->setPermissions($permissions); - - // Call the API and handle any network failures. - try { - /** @var TestIamPermissionsResponse $response */ - $response = $dataplexServiceClient->testIamPermissions($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 -{ - $resource = '[RESOURCE]'; - $permissionsElement = '[PERMISSIONS]'; - - test_iam_permissions_sample($resource, $permissionsElement); -} -// [END dataplex_v1_generated_DataplexService_TestIamPermissions_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/update_asset.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/update_asset.php deleted file mode 100644 index 14194ca0d663..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/update_asset.php +++ /dev/null @@ -1,91 +0,0 @@ -setType($assetResourceSpecType); - $asset = (new Asset()) - ->setResourceSpec($assetResourceSpec); - $request = (new UpdateAssetRequest()) - ->setUpdateMask($updateMask) - ->setAsset($asset); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataplexServiceClient->updateAsset($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Asset $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 -{ - $assetResourceSpecType = Type::TYPE_UNSPECIFIED; - - update_asset_sample($assetResourceSpecType); -} -// [END dataplex_v1_generated_DataplexService_UpdateAsset_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/update_lake.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/update_lake.php deleted file mode 100644 index c7473c151974..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/update_lake.php +++ /dev/null @@ -1,74 +0,0 @@ -setUpdateMask($updateMask) - ->setLake($lake); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataplexServiceClient->updateLake($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Lake $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()); - } -} -// [END dataplex_v1_generated_DataplexService_UpdateLake_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/update_task.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/update_task.php deleted file mode 100644 index 080f231e9377..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/update_task.php +++ /dev/null @@ -1,101 +0,0 @@ -setType($taskTriggerSpecType); - $taskExecutionSpec = (new ExecutionSpec()) - ->setServiceAccount($taskExecutionSpecServiceAccount); - $task = (new Task()) - ->setTriggerSpec($taskTriggerSpec) - ->setExecutionSpec($taskExecutionSpec); - $request = (new UpdateTaskRequest()) - ->setUpdateMask($updateMask) - ->setTask($task); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataplexServiceClient->updateTask($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Task $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 -{ - $taskTriggerSpecType = Type::TYPE_UNSPECIFIED; - $taskExecutionSpecServiceAccount = '[SERVICE_ACCOUNT]'; - - update_task_sample($taskTriggerSpecType, $taskExecutionSpecServiceAccount); -} -// [END dataplex_v1_generated_DataplexService_UpdateTask_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/update_zone.php b/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/update_zone.php deleted file mode 100644 index a74bd355d58d..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/DataplexServiceClient/update_zone.php +++ /dev/null @@ -1,96 +0,0 @@ -setLocationType($zoneResourceSpecLocationType); - $zone = (new Zone()) - ->setType($zoneType) - ->setResourceSpec($zoneResourceSpec); - $request = (new UpdateZoneRequest()) - ->setUpdateMask($updateMask) - ->setZone($zone); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataplexServiceClient->updateZone($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Zone $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 -{ - $zoneType = Type::TYPE_UNSPECIFIED; - $zoneResourceSpecLocationType = LocationType::LOCATION_TYPE_UNSPECIFIED; - - update_zone_sample($zoneType, $zoneResourceSpecLocationType); -} -// [END dataplex_v1_generated_DataplexService_UpdateZone_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/create_entity.php b/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/create_entity.php deleted file mode 100644 index e1f31fdeea49..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/create_entity.php +++ /dev/null @@ -1,160 +0,0 @@ - - * - image/{image subtype} - * - video/{video subtype} - * - audio/{audio subtype} - * @param bool $entitySchemaUserManaged Set to `true` if user-managed or `false` if managed by Dataplex - * Universal Catalog. The default is `false` (managed by Dataplex Universal - * Catalog). - * - * - Set to `false`to enable Dataplex Universal Catalog discovery to update - * the schema. - * including new data discovery, schema inference, and schema evolution. - * Users retain the ability to input and edit the schema. Dataplex Universal - * Catalog treats schema input by the user as though produced by a previous - * Dataplex Universal Catalog discovery operation, and it will evolve the - * schema and take action based on that treatment. - * - * - Set to `true` to fully manage the entity - * schema. This setting guarantees that Dataplex Universal Catalog will not - * change schema fields. - */ -function create_entity_sample( - string $formattedParent, - string $entityId, - int $entityType, - string $entityAsset, - string $entityDataPath, - int $entitySystem, - string $entityFormatMimeType, - bool $entitySchemaUserManaged -): void { - // Create a client. - $metadataServiceClient = new MetadataServiceClient(); - - // Prepare the request message. - $entityFormat = (new StorageFormat()) - ->setMimeType($entityFormatMimeType); - $entitySchema = (new Schema()) - ->setUserManaged($entitySchemaUserManaged); - $entity = (new Entity()) - ->setId($entityId) - ->setType($entityType) - ->setAsset($entityAsset) - ->setDataPath($entityDataPath) - ->setSystem($entitySystem) - ->setFormat($entityFormat) - ->setSchema($entitySchema); - $request = (new CreateEntityRequest()) - ->setParent($formattedParent) - ->setEntity($entity); - - // Call the API and handle any network failures. - try { - /** @var Entity $response */ - $response = $metadataServiceClient->createEntity($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 = MetadataServiceClient::zoneName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]'); - $entityId = '[ID]'; - $entityType = Type::TYPE_UNSPECIFIED; - $entityAsset = '[ASSET]'; - $entityDataPath = '[DATA_PATH]'; - $entitySystem = StorageSystem::STORAGE_SYSTEM_UNSPECIFIED; - $entityFormatMimeType = '[MIME_TYPE]'; - $entitySchemaUserManaged = false; - - create_entity_sample( - $formattedParent, - $entityId, - $entityType, - $entityAsset, - $entityDataPath, - $entitySystem, - $entityFormatMimeType, - $entitySchemaUserManaged - ); -} -// [END dataplex_v1_generated_MetadataService_CreateEntity_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/create_partition.php b/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/create_partition.php deleted file mode 100644 index d23dcafc390c..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/create_partition.php +++ /dev/null @@ -1,93 +0,0 @@ -/datasets//tables/` - */ -function create_partition_sample( - string $formattedParent, - string $partitionValuesElement, - string $partitionLocation -): void { - // Create a client. - $metadataServiceClient = new MetadataServiceClient(); - - // Prepare the request message. - $partitionValues = [$partitionValuesElement,]; - $partition = (new Partition()) - ->setValues($partitionValues) - ->setLocation($partitionLocation); - $request = (new CreatePartitionRequest()) - ->setParent($formattedParent) - ->setPartition($partition); - - // Call the API and handle any network failures. - try { - /** @var Partition $response */ - $response = $metadataServiceClient->createPartition($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 = MetadataServiceClient::entityName( - '[PROJECT]', - '[LOCATION]', - '[LAKE]', - '[ZONE]', - '[ENTITY]' - ); - $partitionValuesElement = '[VALUES]'; - $partitionLocation = '[LOCATION]'; - - create_partition_sample($formattedParent, $partitionValuesElement, $partitionLocation); -} -// [END dataplex_v1_generated_MetadataService_CreatePartition_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/delete_entity.php b/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/delete_entity.php deleted file mode 100644 index 5298343b0da9..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/delete_entity.php +++ /dev/null @@ -1,80 +0,0 @@ -setName($formattedName) - ->setEtag($etag); - - // Call the API and handle any network failures. - try { - $metadataServiceClient->deleteEntity($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 = MetadataServiceClient::entityName( - '[PROJECT]', - '[LOCATION]', - '[LAKE]', - '[ZONE]', - '[ENTITY]' - ); - $etag = '[ETAG]'; - - delete_entity_sample($formattedName, $etag); -} -// [END dataplex_v1_generated_MetadataService_DeleteEntity_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/delete_partition.php b/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/delete_partition.php deleted file mode 100644 index a02a5a7619d1..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/delete_partition.php +++ /dev/null @@ -1,80 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $metadataServiceClient->deletePartition($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 = MetadataServiceClient::partitionName( - '[PROJECT]', - '[LOCATION]', - '[LAKE]', - '[ZONE]', - '[ENTITY]', - '[PARTITION]' - ); - - delete_partition_sample($formattedName); -} -// [END dataplex_v1_generated_MetadataService_DeletePartition_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/get_entity.php b/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/get_entity.php deleted file mode 100644 index acf8419bb45c..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/get_entity.php +++ /dev/null @@ -1,78 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Entity $response */ - $response = $metadataServiceClient->getEntity($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 = MetadataServiceClient::entityName( - '[PROJECT]', - '[LOCATION]', - '[LAKE]', - '[ZONE]', - '[ENTITY]' - ); - - get_entity_sample($formattedName); -} -// [END dataplex_v1_generated_MetadataService_GetEntity_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/get_iam_policy.php b/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/get_iam_policy.php deleted file mode 100644 index ba0a42ab61ba..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/get_iam_policy.php +++ /dev/null @@ -1,72 +0,0 @@ -setResource($resource); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $metadataServiceClient->getIamPolicy($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 -{ - $resource = '[RESOURCE]'; - - get_iam_policy_sample($resource); -} -// [END dataplex_v1_generated_MetadataService_GetIamPolicy_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/get_location.php b/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/get_location.php deleted file mode 100644 index 13e5deb9053d..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/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 dataplex_v1_generated_MetadataService_GetLocation_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/get_partition.php b/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/get_partition.php deleted file mode 100644 index fc381f603f6e..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/get_partition.php +++ /dev/null @@ -1,81 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Partition $response */ - $response = $metadataServiceClient->getPartition($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 = MetadataServiceClient::partitionName( - '[PROJECT]', - '[LOCATION]', - '[LAKE]', - '[ZONE]', - '[ENTITY]', - '[PARTITION]' - ); - - get_partition_sample($formattedName); -} -// [END dataplex_v1_generated_MetadataService_GetPartition_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/list_entities.php b/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/list_entities.php deleted file mode 100644 index ff422bd82050..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/list_entities.php +++ /dev/null @@ -1,81 +0,0 @@ -setParent($formattedParent) - ->setView($view); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $metadataServiceClient->listEntities($request); - - /** @var Entity $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 = MetadataServiceClient::zoneName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]'); - $view = EntityView::ENTITY_VIEW_UNSPECIFIED; - - list_entities_sample($formattedParent, $view); -} -// [END dataplex_v1_generated_MetadataService_ListEntities_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/list_locations.php b/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/list_locations.php deleted file mode 100644 index d7b3597c38e3..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/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 dataplex_v1_generated_MetadataService_ListLocations_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/list_partitions.php b/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/list_partitions.php deleted file mode 100644 index 3f43d58e5021..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/list_partitions.php +++ /dev/null @@ -1,83 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $metadataServiceClient->listPartitions($request); - - /** @var Partition $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 = MetadataServiceClient::entityName( - '[PROJECT]', - '[LOCATION]', - '[LAKE]', - '[ZONE]', - '[ENTITY]' - ); - - list_partitions_sample($formattedParent); -} -// [END dataplex_v1_generated_MetadataService_ListPartitions_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/set_iam_policy.php b/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/set_iam_policy.php deleted file mode 100644 index 86e2d014a2d4..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/set_iam_policy.php +++ /dev/null @@ -1,77 +0,0 @@ -setResource($resource) - ->setPolicy($policy); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $metadataServiceClient->setIamPolicy($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 -{ - $resource = '[RESOURCE]'; - - set_iam_policy_sample($resource); -} -// [END dataplex_v1_generated_MetadataService_SetIamPolicy_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/test_iam_permissions.php b/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/test_iam_permissions.php deleted file mode 100644 index 64666a14846b..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/test_iam_permissions.php +++ /dev/null @@ -1,84 +0,0 @@ -setResource($resource) - ->setPermissions($permissions); - - // Call the API and handle any network failures. - try { - /** @var TestIamPermissionsResponse $response */ - $response = $metadataServiceClient->testIamPermissions($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 -{ - $resource = '[RESOURCE]'; - $permissionsElement = '[PERMISSIONS]'; - - test_iam_permissions_sample($resource, $permissionsElement); -} -// [END dataplex_v1_generated_MetadataService_TestIamPermissions_sync] diff --git a/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/update_entity.php b/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/update_entity.php deleted file mode 100644 index b0bd28236feb..000000000000 --- a/owl-bot-staging/Dataplex/v1/samples/V1/MetadataServiceClient/update_entity.php +++ /dev/null @@ -1,153 +0,0 @@ - - * - image/{image subtype} - * - video/{video subtype} - * - audio/{audio subtype} - * @param bool $entitySchemaUserManaged Set to `true` if user-managed or `false` if managed by Dataplex - * Universal Catalog. The default is `false` (managed by Dataplex Universal - * Catalog). - * - * - Set to `false`to enable Dataplex Universal Catalog discovery to update - * the schema. - * including new data discovery, schema inference, and schema evolution. - * Users retain the ability to input and edit the schema. Dataplex Universal - * Catalog treats schema input by the user as though produced by a previous - * Dataplex Universal Catalog discovery operation, and it will evolve the - * schema and take action based on that treatment. - * - * - Set to `true` to fully manage the entity - * schema. This setting guarantees that Dataplex Universal Catalog will not - * change schema fields. - */ -function update_entity_sample( - string $entityId, - int $entityType, - string $entityAsset, - string $entityDataPath, - int $entitySystem, - string $entityFormatMimeType, - bool $entitySchemaUserManaged -): void { - // Create a client. - $metadataServiceClient = new MetadataServiceClient(); - - // Prepare the request message. - $entityFormat = (new StorageFormat()) - ->setMimeType($entityFormatMimeType); - $entitySchema = (new Schema()) - ->setUserManaged($entitySchemaUserManaged); - $entity = (new Entity()) - ->setId($entityId) - ->setType($entityType) - ->setAsset($entityAsset) - ->setDataPath($entityDataPath) - ->setSystem($entitySystem) - ->setFormat($entityFormat) - ->setSchema($entitySchema); - $request = (new UpdateEntityRequest()) - ->setEntity($entity); - - // Call the API and handle any network failures. - try { - /** @var Entity $response */ - $response = $metadataServiceClient->updateEntity($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 -{ - $entityId = '[ID]'; - $entityType = Type::TYPE_UNSPECIFIED; - $entityAsset = '[ASSET]'; - $entityDataPath = '[DATA_PATH]'; - $entitySystem = StorageSystem::STORAGE_SYSTEM_UNSPECIFIED; - $entityFormatMimeType = '[MIME_TYPE]'; - $entitySchemaUserManaged = false; - - update_entity_sample( - $entityId, - $entityType, - $entityAsset, - $entityDataPath, - $entitySystem, - $entityFormatMimeType, - $entitySchemaUserManaged - ); -} -// [END dataplex_v1_generated_MetadataService_UpdateEntity_sync] diff --git a/owl-bot-staging/Dataplex/v1/src/V1/Client/BusinessGlossaryServiceClient.php b/owl-bot-staging/Dataplex/v1/src/V1/Client/BusinessGlossaryServiceClient.php deleted file mode 100644 index 8e87b01ec5db..000000000000 --- a/owl-bot-staging/Dataplex/v1/src/V1/Client/BusinessGlossaryServiceClient.php +++ /dev/null @@ -1,958 +0,0 @@ - createGlossaryAsync(CreateGlossaryRequest $request, array $optionalArgs = []) - * @method PromiseInterface createGlossaryCategoryAsync(CreateGlossaryCategoryRequest $request, array $optionalArgs = []) - * @method PromiseInterface createGlossaryTermAsync(CreateGlossaryTermRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteGlossaryAsync(DeleteGlossaryRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteGlossaryCategoryAsync(DeleteGlossaryCategoryRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteGlossaryTermAsync(DeleteGlossaryTermRequest $request, array $optionalArgs = []) - * @method PromiseInterface getGlossaryAsync(GetGlossaryRequest $request, array $optionalArgs = []) - * @method PromiseInterface getGlossaryCategoryAsync(GetGlossaryCategoryRequest $request, array $optionalArgs = []) - * @method PromiseInterface getGlossaryTermAsync(GetGlossaryTermRequest $request, array $optionalArgs = []) - * @method PromiseInterface listGlossariesAsync(ListGlossariesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listGlossaryCategoriesAsync(ListGlossaryCategoriesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listGlossaryTermsAsync(ListGlossaryTermsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateGlossaryAsync(UpdateGlossaryRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateGlossaryCategoryAsync(UpdateGlossaryCategoryRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateGlossaryTermAsync(UpdateGlossaryTermRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) - */ -final class BusinessGlossaryServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.dataplex.v1.BusinessGlossaryService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'dataplex.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'dataplex.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', - 'https://www.googleapis.com/auth/cloud-platform.read-only', - 'https://www.googleapis.com/auth/dataplex.read-write', - 'https://www.googleapis.com/auth/dataplex.readonly', - ]; - - private $operationsClient; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/business_glossary_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/business_glossary_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/business_glossary_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/business_glossary_service_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 glossary - * resource. - * - * @param string $project - * @param string $location - * @param string $glossary - * - * @return string The formatted glossary resource. - */ - public static function glossaryName(string $project, string $location, string $glossary): string - { - return self::getPathTemplate('glossary')->render([ - 'project' => $project, - 'location' => $location, - 'glossary' => $glossary, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * glossary_category resource. - * - * @param string $project - * @param string $location - * @param string $glossary - * @param string $glossaryCategory - * - * @return string The formatted glossary_category resource. - */ - public static function glossaryCategoryName(string $project, string $location, string $glossary, string $glossaryCategory): string - { - return self::getPathTemplate('glossaryCategory')->render([ - 'project' => $project, - 'location' => $location, - 'glossary' => $glossary, - 'glossary_category' => $glossaryCategory, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * glossary_term resource. - * - * @param string $project - * @param string $location - * @param string $glossary - * @param string $glossaryTerm - * - * @return string The formatted glossary_term resource. - */ - public static function glossaryTermName(string $project, string $location, string $glossary, string $glossaryTerm): string - { - return self::getPathTemplate('glossaryTerm')->render([ - 'project' => $project, - 'location' => $location, - 'glossary' => $glossary, - 'glossary_term' => $glossaryTerm, - ]); - } - - /** - * 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, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - glossary: projects/{project}/locations/{location}/glossaries/{glossary} - * - glossaryCategory: projects/{project}/locations/{location}/glossaries/{glossary}/categories/{glossary_category} - * - glossaryTerm: projects/{project}/locations/{location}/glossaries/{glossary}/terms/{glossary_term} - * - location: projects/{project}/locations/{location} - * - * 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 'dataplex.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\Dataplex\V1\BusinessGlossaryServiceClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new BusinessGlossaryServiceClient(['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 new Glossary resource. - * - * The async variant is {@see BusinessGlossaryServiceClient::createGlossaryAsync()} - * . - * - * @example samples/V1/BusinessGlossaryServiceClient/create_glossary.php - * - * @param CreateGlossaryRequest $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 createGlossary(CreateGlossaryRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateGlossary', $request, $callOptions)->wait(); - } - - /** - * Creates a new GlossaryCategory resource. - * - * The async variant is - * {@see BusinessGlossaryServiceClient::createGlossaryCategoryAsync()} . - * - * @example samples/V1/BusinessGlossaryServiceClient/create_glossary_category.php - * - * @param CreateGlossaryCategoryRequest $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 GlossaryCategory - * - * @throws ApiException Thrown if the API call fails. - */ - public function createGlossaryCategory(CreateGlossaryCategoryRequest $request, array $callOptions = []): GlossaryCategory - { - return $this->startApiCall('CreateGlossaryCategory', $request, $callOptions)->wait(); - } - - /** - * Creates a new GlossaryTerm resource. - * - * The async variant is - * {@see BusinessGlossaryServiceClient::createGlossaryTermAsync()} . - * - * @example samples/V1/BusinessGlossaryServiceClient/create_glossary_term.php - * - * @param CreateGlossaryTermRequest $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 GlossaryTerm - * - * @throws ApiException Thrown if the API call fails. - */ - public function createGlossaryTerm(CreateGlossaryTermRequest $request, array $callOptions = []): GlossaryTerm - { - return $this->startApiCall('CreateGlossaryTerm', $request, $callOptions)->wait(); - } - - /** - * Deletes a Glossary resource. All the categories and terms within the - * Glossary must be deleted before the Glossary can be deleted. - * - * The async variant is {@see BusinessGlossaryServiceClient::deleteGlossaryAsync()} - * . - * - * @example samples/V1/BusinessGlossaryServiceClient/delete_glossary.php - * - * @param DeleteGlossaryRequest $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 deleteGlossary(DeleteGlossaryRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteGlossary', $request, $callOptions)->wait(); - } - - /** - * Deletes a GlossaryCategory resource. All the GlossaryCategories and - * GlossaryTerms nested directly under the specified GlossaryCategory will be - * moved one level up to the parent in the hierarchy. - * - * The async variant is - * {@see BusinessGlossaryServiceClient::deleteGlossaryCategoryAsync()} . - * - * @example samples/V1/BusinessGlossaryServiceClient/delete_glossary_category.php - * - * @param DeleteGlossaryCategoryRequest $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 deleteGlossaryCategory(DeleteGlossaryCategoryRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteGlossaryCategory', $request, $callOptions)->wait(); - } - - /** - * Deletes a GlossaryTerm resource. - * - * The async variant is - * {@see BusinessGlossaryServiceClient::deleteGlossaryTermAsync()} . - * - * @example samples/V1/BusinessGlossaryServiceClient/delete_glossary_term.php - * - * @param DeleteGlossaryTermRequest $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 deleteGlossaryTerm(DeleteGlossaryTermRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteGlossaryTerm', $request, $callOptions)->wait(); - } - - /** - * Gets a Glossary resource. - * - * The async variant is {@see BusinessGlossaryServiceClient::getGlossaryAsync()} . - * - * @example samples/V1/BusinessGlossaryServiceClient/get_glossary.php - * - * @param GetGlossaryRequest $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 Glossary - * - * @throws ApiException Thrown if the API call fails. - */ - public function getGlossary(GetGlossaryRequest $request, array $callOptions = []): Glossary - { - return $this->startApiCall('GetGlossary', $request, $callOptions)->wait(); - } - - /** - * Gets a GlossaryCategory resource. - * - * The async variant is - * {@see BusinessGlossaryServiceClient::getGlossaryCategoryAsync()} . - * - * @example samples/V1/BusinessGlossaryServiceClient/get_glossary_category.php - * - * @param GetGlossaryCategoryRequest $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 GlossaryCategory - * - * @throws ApiException Thrown if the API call fails. - */ - public function getGlossaryCategory(GetGlossaryCategoryRequest $request, array $callOptions = []): GlossaryCategory - { - return $this->startApiCall('GetGlossaryCategory', $request, $callOptions)->wait(); - } - - /** - * Gets a GlossaryTerm resource. - * - * The async variant is - * {@see BusinessGlossaryServiceClient::getGlossaryTermAsync()} . - * - * @example samples/V1/BusinessGlossaryServiceClient/get_glossary_term.php - * - * @param GetGlossaryTermRequest $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 GlossaryTerm - * - * @throws ApiException Thrown if the API call fails. - */ - public function getGlossaryTerm(GetGlossaryTermRequest $request, array $callOptions = []): GlossaryTerm - { - return $this->startApiCall('GetGlossaryTerm', $request, $callOptions)->wait(); - } - - /** - * Lists Glossary resources in a project and location. - * - * The async variant is {@see BusinessGlossaryServiceClient::listGlossariesAsync()} - * . - * - * @example samples/V1/BusinessGlossaryServiceClient/list_glossaries.php - * - * @param ListGlossariesRequest $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 listGlossaries(ListGlossariesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListGlossaries', $request, $callOptions); - } - - /** - * Lists GlossaryCategory resources in a Glossary. - * - * The async variant is - * {@see BusinessGlossaryServiceClient::listGlossaryCategoriesAsync()} . - * - * @example samples/V1/BusinessGlossaryServiceClient/list_glossary_categories.php - * - * @param ListGlossaryCategoriesRequest $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 listGlossaryCategories(ListGlossaryCategoriesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListGlossaryCategories', $request, $callOptions); - } - - /** - * Lists GlossaryTerm resources in a Glossary. - * - * The async variant is - * {@see BusinessGlossaryServiceClient::listGlossaryTermsAsync()} . - * - * @example samples/V1/BusinessGlossaryServiceClient/list_glossary_terms.php - * - * @param ListGlossaryTermsRequest $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 listGlossaryTerms(ListGlossaryTermsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListGlossaryTerms', $request, $callOptions); - } - - /** - * Updates a Glossary resource. - * - * The async variant is {@see BusinessGlossaryServiceClient::updateGlossaryAsync()} - * . - * - * @example samples/V1/BusinessGlossaryServiceClient/update_glossary.php - * - * @param UpdateGlossaryRequest $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 updateGlossary(UpdateGlossaryRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateGlossary', $request, $callOptions)->wait(); - } - - /** - * Updates a GlossaryCategory resource. - * - * The async variant is - * {@see BusinessGlossaryServiceClient::updateGlossaryCategoryAsync()} . - * - * @example samples/V1/BusinessGlossaryServiceClient/update_glossary_category.php - * - * @param UpdateGlossaryCategoryRequest $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 GlossaryCategory - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateGlossaryCategory(UpdateGlossaryCategoryRequest $request, array $callOptions = []): GlossaryCategory - { - return $this->startApiCall('UpdateGlossaryCategory', $request, $callOptions)->wait(); - } - - /** - * Updates a GlossaryTerm resource. - * - * The async variant is - * {@see BusinessGlossaryServiceClient::updateGlossaryTermAsync()} . - * - * @example samples/V1/BusinessGlossaryServiceClient/update_glossary_term.php - * - * @param UpdateGlossaryTermRequest $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 GlossaryTerm - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateGlossaryTerm(UpdateGlossaryTermRequest $request, array $callOptions = []): GlossaryTerm - { - return $this->startApiCall('UpdateGlossaryTerm', $request, $callOptions)->wait(); - } - - /** - * Gets information about a location. - * - * The async variant is {@see BusinessGlossaryServiceClient::getLocationAsync()} . - * - * @example samples/V1/BusinessGlossaryServiceClient/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 BusinessGlossaryServiceClient::listLocationsAsync()} - * . - * - * @example samples/V1/BusinessGlossaryServiceClient/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); - } - - /** - * Gets the access control policy for a resource. Returns an empty policy - if the resource exists and does not have a policy set. - * - * The async variant is {@see BusinessGlossaryServiceClient::getIamPolicyAsync()} . - * - * @example samples/V1/BusinessGlossaryServiceClient/get_iam_policy.php - * - * @param GetIamPolicyRequest $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 Policy - * - * @throws ApiException Thrown if the API call fails. - */ - public function getIamPolicy(GetIamPolicyRequest $request, array $callOptions = []): Policy - { - return $this->startApiCall('GetIamPolicy', $request, $callOptions)->wait(); - } - - /** - * Sets the access control policy on the specified resource. Replaces - any existing policy. - - Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` - errors. - * - * The async variant is {@see BusinessGlossaryServiceClient::setIamPolicyAsync()} . - * - * @example samples/V1/BusinessGlossaryServiceClient/set_iam_policy.php - * - * @param SetIamPolicyRequest $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 Policy - * - * @throws ApiException Thrown if the API call fails. - */ - public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = []): Policy - { - return $this->startApiCall('SetIamPolicy', $request, $callOptions)->wait(); - } - - /** - * Returns permissions that a caller has on the specified resource. If the - resource does not exist, this will return an empty set of - permissions, not a `NOT_FOUND` error. - - Note: This operation is designed to be used for building - permission-aware UIs and command-line tools, not for authorization - checking. This operation may "fail open" without warning. - * - * The async variant is - * {@see BusinessGlossaryServiceClient::testIamPermissionsAsync()} . - * - * @example samples/V1/BusinessGlossaryServiceClient/test_iam_permissions.php - * - * @param TestIamPermissionsRequest $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 TestIamPermissionsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse - { - return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/Dataplex/v1/src/V1/Client/CatalogServiceClient.php b/owl-bot-staging/Dataplex/v1/src/V1/Client/CatalogServiceClient.php deleted file mode 100644 index 3e4306df315f..000000000000 --- a/owl-bot-staging/Dataplex/v1/src/V1/Client/CatalogServiceClient.php +++ /dev/null @@ -1,1711 +0,0 @@ - cancelMetadataJobAsync(CancelMetadataJobRequest $request, array $optionalArgs = []) - * @method PromiseInterface createAspectTypeAsync(CreateAspectTypeRequest $request, array $optionalArgs = []) - * @method PromiseInterface createEntryAsync(CreateEntryRequest $request, array $optionalArgs = []) - * @method PromiseInterface createEntryGroupAsync(CreateEntryGroupRequest $request, array $optionalArgs = []) - * @method PromiseInterface createEntryLinkAsync(CreateEntryLinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface createEntryTypeAsync(CreateEntryTypeRequest $request, array $optionalArgs = []) - * @method PromiseInterface createMetadataFeedAsync(CreateMetadataFeedRequest $request, array $optionalArgs = []) - * @method PromiseInterface createMetadataJobAsync(CreateMetadataJobRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteAspectTypeAsync(DeleteAspectTypeRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteEntryAsync(DeleteEntryRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteEntryGroupAsync(DeleteEntryGroupRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteEntryLinkAsync(DeleteEntryLinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteEntryTypeAsync(DeleteEntryTypeRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteMetadataFeedAsync(DeleteMetadataFeedRequest $request, array $optionalArgs = []) - * @method PromiseInterface getAspectTypeAsync(GetAspectTypeRequest $request, array $optionalArgs = []) - * @method PromiseInterface getEntryAsync(GetEntryRequest $request, array $optionalArgs = []) - * @method PromiseInterface getEntryGroupAsync(GetEntryGroupRequest $request, array $optionalArgs = []) - * @method PromiseInterface getEntryLinkAsync(GetEntryLinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface getEntryTypeAsync(GetEntryTypeRequest $request, array $optionalArgs = []) - * @method PromiseInterface getMetadataFeedAsync(GetMetadataFeedRequest $request, array $optionalArgs = []) - * @method PromiseInterface getMetadataJobAsync(GetMetadataJobRequest $request, array $optionalArgs = []) - * @method PromiseInterface listAspectTypesAsync(ListAspectTypesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listEntriesAsync(ListEntriesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listEntryGroupsAsync(ListEntryGroupsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listEntryTypesAsync(ListEntryTypesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listMetadataFeedsAsync(ListMetadataFeedsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listMetadataJobsAsync(ListMetadataJobsRequest $request, array $optionalArgs = []) - * @method PromiseInterface lookupContextAsync(LookupContextRequest $request, array $optionalArgs = []) - * @method PromiseInterface lookupEntryAsync(LookupEntryRequest $request, array $optionalArgs = []) - * @method PromiseInterface lookupEntryLinksAsync(LookupEntryLinksRequest $request, array $optionalArgs = []) - * @method PromiseInterface modifyEntryAsync(ModifyEntryRequest $request, array $optionalArgs = []) - * @method PromiseInterface searchEntriesAsync(SearchEntriesRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateAspectTypeAsync(UpdateAspectTypeRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateEntryAsync(UpdateEntryRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateEntryGroupAsync(UpdateEntryGroupRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateEntryLinkAsync(UpdateEntryLinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateEntryTypeAsync(UpdateEntryTypeRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateMetadataFeedAsync(UpdateMetadataFeedRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) - */ -final class CatalogServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.dataplex.v1.CatalogService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'dataplex.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'dataplex.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', - 'https://www.googleapis.com/auth/cloud-platform.read-only', - 'https://www.googleapis.com/auth/dataplex.read-write', - 'https://www.googleapis.com/auth/dataplex.readonly', - ]; - - private $operationsClient; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/catalog_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/catalog_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/catalog_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/catalog_service_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 aspect_type - * resource. - * - * @param string $project - * @param string $location - * @param string $aspectType - * - * @return string The formatted aspect_type resource. - */ - public static function aspectTypeName(string $project, string $location, string $aspectType): string - { - return self::getPathTemplate('aspectType')->render([ - 'project' => $project, - 'location' => $location, - 'aspect_type' => $aspectType, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a entry - * resource. - * - * @param string $project - * @param string $location - * @param string $entryGroup - * @param string $entry - * - * @return string The formatted entry resource. - */ - public static function entryName(string $project, string $location, string $entryGroup, string $entry): string - { - return self::getPathTemplate('entry')->render([ - 'project' => $project, - 'location' => $location, - 'entry_group' => $entryGroup, - 'entry' => $entry, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a entry_group - * resource. - * - * @param string $project - * @param string $location - * @param string $entryGroup - * - * @return string The formatted entry_group resource. - */ - public static function entryGroupName(string $project, string $location, string $entryGroup): string - { - return self::getPathTemplate('entryGroup')->render([ - 'project' => $project, - 'location' => $location, - 'entry_group' => $entryGroup, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a entry_link - * resource. - * - * @param string $project - * @param string $location - * @param string $entryGroup - * @param string $entryLink - * - * @return string The formatted entry_link resource. - */ - public static function entryLinkName(string $project, string $location, string $entryGroup, string $entryLink): string - { - return self::getPathTemplate('entryLink')->render([ - 'project' => $project, - 'location' => $location, - 'entry_group' => $entryGroup, - 'entry_link' => $entryLink, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a entry_type - * resource. - * - * @param string $project - * @param string $location - * @param string $entryType - * - * @return string The formatted entry_type resource. - */ - public static function entryTypeName(string $project, string $location, string $entryType): string - { - return self::getPathTemplate('entryType')->render([ - 'project' => $project, - 'location' => $location, - 'entry_type' => $entryType, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a glossary - * resource. - * - * @param string $project - * @param string $location - * @param string $glossary - * - * @return string The formatted glossary resource. - */ - public static function glossaryName(string $project, string $location, string $glossary): string - { - return self::getPathTemplate('glossary')->render([ - 'project' => $project, - 'location' => $location, - 'glossary' => $glossary, - ]); - } - - /** - * 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 - * metadata_feed resource. - * - * @param string $project - * @param string $location - * @param string $metadataFeed - * - * @return string The formatted metadata_feed resource. - */ - public static function metadataFeedName(string $project, string $location, string $metadataFeed): string - { - return self::getPathTemplate('metadataFeed')->render([ - 'project' => $project, - 'location' => $location, - 'metadata_feed' => $metadataFeed, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a metadata_job - * resource. - * - * @param string $project - * @param string $location - * @param string $metadataJob - * - * @return string The formatted metadata_job resource. - */ - public static function metadataJobName(string $project, string $location, string $metadataJob): string - { - return self::getPathTemplate('metadataJob')->render([ - 'project' => $project, - 'location' => $location, - 'metadataJob' => $metadataJob, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a project - * resource. - * - * @param string $project - * - * @return string The formatted project resource. - */ - public static function projectName(string $project): string - { - return self::getPathTemplate('project')->render([ - 'project' => $project, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - aspectType: projects/{project}/locations/{location}/aspectTypes/{aspect_type} - * - entry: projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry} - * - entryGroup: projects/{project}/locations/{location}/entryGroups/{entry_group} - * - entryLink: projects/{project}/locations/{location}/entryGroups/{entry_group}/entryLinks/{entry_link} - * - entryType: projects/{project}/locations/{location}/entryTypes/{entry_type} - * - glossary: projects/{project}/locations/{location}/glossaries/{glossary} - * - location: projects/{project}/locations/{location} - * - metadataFeed: projects/{project}/locations/{location}/metadataFeeds/{metadata_feed} - * - metadataJob: projects/{project}/locations/{location}/metadataJobs/{metadataJob} - * - project: projects/{project} - * - * 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 'dataplex.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\Dataplex\V1\CatalogServiceClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new CatalogServiceClient(['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); - } - - /** - * Cancels a metadata job. - * - * If you cancel a metadata import job that is in progress, the changes in the - * job might be partially applied. We recommend that you reset the state of - * the entry groups in your project by running another metadata job that - * reverts the changes from the canceled job. - * - * The async variant is {@see CatalogServiceClient::cancelMetadataJobAsync()} . - * - * @example samples/V1/CatalogServiceClient/cancel_metadata_job.php - * - * @param CancelMetadataJobRequest $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 cancelMetadataJob(CancelMetadataJobRequest $request, array $callOptions = []): void - { - $this->startApiCall('CancelMetadataJob', $request, $callOptions)->wait(); - } - - /** - * Creates an AspectType. - * - * The async variant is {@see CatalogServiceClient::createAspectTypeAsync()} . - * - * @example samples/V1/CatalogServiceClient/create_aspect_type.php - * - * @param CreateAspectTypeRequest $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 createAspectType(CreateAspectTypeRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateAspectType', $request, $callOptions)->wait(); - } - - /** - * Creates an Entry. - * - * The async variant is {@see CatalogServiceClient::createEntryAsync()} . - * - * @example samples/V1/CatalogServiceClient/create_entry.php - * - * @param CreateEntryRequest $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 Entry - * - * @throws ApiException Thrown if the API call fails. - */ - public function createEntry(CreateEntryRequest $request, array $callOptions = []): Entry - { - return $this->startApiCall('CreateEntry', $request, $callOptions)->wait(); - } - - /** - * Creates an EntryGroup. - * - * The async variant is {@see CatalogServiceClient::createEntryGroupAsync()} . - * - * @example samples/V1/CatalogServiceClient/create_entry_group.php - * - * @param CreateEntryGroupRequest $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 createEntryGroup(CreateEntryGroupRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateEntryGroup', $request, $callOptions)->wait(); - } - - /** - * Creates an Entry Link. - * - * The async variant is {@see CatalogServiceClient::createEntryLinkAsync()} . - * - * @example samples/V1/CatalogServiceClient/create_entry_link.php - * - * @param CreateEntryLinkRequest $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 EntryLink - * - * @throws ApiException Thrown if the API call fails. - */ - public function createEntryLink(CreateEntryLinkRequest $request, array $callOptions = []): EntryLink - { - return $this->startApiCall('CreateEntryLink', $request, $callOptions)->wait(); - } - - /** - * Creates an EntryType. - * - * The async variant is {@see CatalogServiceClient::createEntryTypeAsync()} . - * - * @example samples/V1/CatalogServiceClient/create_entry_type.php - * - * @param CreateEntryTypeRequest $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 createEntryType(CreateEntryTypeRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateEntryType', $request, $callOptions)->wait(); - } - - /** - * Creates a MetadataFeed. - * - * The async variant is {@see CatalogServiceClient::createMetadataFeedAsync()} . - * - * @example samples/V1/CatalogServiceClient/create_metadata_feed.php - * - * @param CreateMetadataFeedRequest $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 createMetadataFeed(CreateMetadataFeedRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateMetadataFeed', $request, $callOptions)->wait(); - } - - /** - * Creates a metadata job. For example, use a metadata job to import metadata - * from a third-party system into Dataplex Universal Catalog. - * - * The async variant is {@see CatalogServiceClient::createMetadataJobAsync()} . - * - * @example samples/V1/CatalogServiceClient/create_metadata_job.php - * - * @param CreateMetadataJobRequest $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 createMetadataJob(CreateMetadataJobRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateMetadataJob', $request, $callOptions)->wait(); - } - - /** - * Deletes an AspectType. - * - * The async variant is {@see CatalogServiceClient::deleteAspectTypeAsync()} . - * - * @example samples/V1/CatalogServiceClient/delete_aspect_type.php - * - * @param DeleteAspectTypeRequest $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 deleteAspectType(DeleteAspectTypeRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteAspectType', $request, $callOptions)->wait(); - } - - /** - * Deletes an Entry. - * - * The async variant is {@see CatalogServiceClient::deleteEntryAsync()} . - * - * @example samples/V1/CatalogServiceClient/delete_entry.php - * - * @param DeleteEntryRequest $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 Entry - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteEntry(DeleteEntryRequest $request, array $callOptions = []): Entry - { - return $this->startApiCall('DeleteEntry', $request, $callOptions)->wait(); - } - - /** - * Deletes an EntryGroup. - * - * The async variant is {@see CatalogServiceClient::deleteEntryGroupAsync()} . - * - * @example samples/V1/CatalogServiceClient/delete_entry_group.php - * - * @param DeleteEntryGroupRequest $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 deleteEntryGroup(DeleteEntryGroupRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteEntryGroup', $request, $callOptions)->wait(); - } - - /** - * Deletes an Entry Link. - * - * The async variant is {@see CatalogServiceClient::deleteEntryLinkAsync()} . - * - * @example samples/V1/CatalogServiceClient/delete_entry_link.php - * - * @param DeleteEntryLinkRequest $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 EntryLink - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteEntryLink(DeleteEntryLinkRequest $request, array $callOptions = []): EntryLink - { - return $this->startApiCall('DeleteEntryLink', $request, $callOptions)->wait(); - } - - /** - * Deletes an EntryType. - * - * The async variant is {@see CatalogServiceClient::deleteEntryTypeAsync()} . - * - * @example samples/V1/CatalogServiceClient/delete_entry_type.php - * - * @param DeleteEntryTypeRequest $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 deleteEntryType(DeleteEntryTypeRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteEntryType', $request, $callOptions)->wait(); - } - - /** - * Deletes a MetadataFeed. - * - * The async variant is {@see CatalogServiceClient::deleteMetadataFeedAsync()} . - * - * @example samples/V1/CatalogServiceClient/delete_metadata_feed.php - * - * @param DeleteMetadataFeedRequest $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 deleteMetadataFeed(DeleteMetadataFeedRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteMetadataFeed', $request, $callOptions)->wait(); - } - - /** - * Gets an AspectType. - * - * The async variant is {@see CatalogServiceClient::getAspectTypeAsync()} . - * - * @example samples/V1/CatalogServiceClient/get_aspect_type.php - * - * @param GetAspectTypeRequest $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 AspectType - * - * @throws ApiException Thrown if the API call fails. - */ - public function getAspectType(GetAspectTypeRequest $request, array $callOptions = []): AspectType - { - return $this->startApiCall('GetAspectType', $request, $callOptions)->wait(); - } - - /** - * Gets an Entry. - * - * The async variant is {@see CatalogServiceClient::getEntryAsync()} . - * - * @example samples/V1/CatalogServiceClient/get_entry.php - * - * @param GetEntryRequest $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 Entry - * - * @throws ApiException Thrown if the API call fails. - */ - public function getEntry(GetEntryRequest $request, array $callOptions = []): Entry - { - return $this->startApiCall('GetEntry', $request, $callOptions)->wait(); - } - - /** - * Gets an EntryGroup. - * - * The async variant is {@see CatalogServiceClient::getEntryGroupAsync()} . - * - * @example samples/V1/CatalogServiceClient/get_entry_group.php - * - * @param GetEntryGroupRequest $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 EntryGroup - * - * @throws ApiException Thrown if the API call fails. - */ - public function getEntryGroup(GetEntryGroupRequest $request, array $callOptions = []): EntryGroup - { - return $this->startApiCall('GetEntryGroup', $request, $callOptions)->wait(); - } - - /** - * Gets an Entry Link. - * - * The async variant is {@see CatalogServiceClient::getEntryLinkAsync()} . - * - * @example samples/V1/CatalogServiceClient/get_entry_link.php - * - * @param GetEntryLinkRequest $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 EntryLink - * - * @throws ApiException Thrown if the API call fails. - */ - public function getEntryLink(GetEntryLinkRequest $request, array $callOptions = []): EntryLink - { - return $this->startApiCall('GetEntryLink', $request, $callOptions)->wait(); - } - - /** - * Gets an EntryType. - * - * The async variant is {@see CatalogServiceClient::getEntryTypeAsync()} . - * - * @example samples/V1/CatalogServiceClient/get_entry_type.php - * - * @param GetEntryTypeRequest $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 EntryType - * - * @throws ApiException Thrown if the API call fails. - */ - public function getEntryType(GetEntryTypeRequest $request, array $callOptions = []): EntryType - { - return $this->startApiCall('GetEntryType', $request, $callOptions)->wait(); - } - - /** - * Gets a MetadataFeed. - * - * The async variant is {@see CatalogServiceClient::getMetadataFeedAsync()} . - * - * @example samples/V1/CatalogServiceClient/get_metadata_feed.php - * - * @param GetMetadataFeedRequest $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 MetadataFeed - * - * @throws ApiException Thrown if the API call fails. - */ - public function getMetadataFeed(GetMetadataFeedRequest $request, array $callOptions = []): MetadataFeed - { - return $this->startApiCall('GetMetadataFeed', $request, $callOptions)->wait(); - } - - /** - * Gets a metadata job. - * - * The async variant is {@see CatalogServiceClient::getMetadataJobAsync()} . - * - * @example samples/V1/CatalogServiceClient/get_metadata_job.php - * - * @param GetMetadataJobRequest $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 MetadataJob - * - * @throws ApiException Thrown if the API call fails. - */ - public function getMetadataJob(GetMetadataJobRequest $request, array $callOptions = []): MetadataJob - { - return $this->startApiCall('GetMetadataJob', $request, $callOptions)->wait(); - } - - /** - * Lists AspectType resources in a project and location. - * - * The async variant is {@see CatalogServiceClient::listAspectTypesAsync()} . - * - * @example samples/V1/CatalogServiceClient/list_aspect_types.php - * - * @param ListAspectTypesRequest $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 listAspectTypes(ListAspectTypesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListAspectTypes', $request, $callOptions); - } - - /** - * Lists Entries within an EntryGroup. - * - * The async variant is {@see CatalogServiceClient::listEntriesAsync()} . - * - * @example samples/V1/CatalogServiceClient/list_entries.php - * - * @param ListEntriesRequest $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 listEntries(ListEntriesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListEntries', $request, $callOptions); - } - - /** - * Lists EntryGroup resources in a project and location. - * - * The async variant is {@see CatalogServiceClient::listEntryGroupsAsync()} . - * - * @example samples/V1/CatalogServiceClient/list_entry_groups.php - * - * @param ListEntryGroupsRequest $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 listEntryGroups(ListEntryGroupsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListEntryGroups', $request, $callOptions); - } - - /** - * Lists EntryType resources in a project and location. - * - * The async variant is {@see CatalogServiceClient::listEntryTypesAsync()} . - * - * @example samples/V1/CatalogServiceClient/list_entry_types.php - * - * @param ListEntryTypesRequest $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 listEntryTypes(ListEntryTypesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListEntryTypes', $request, $callOptions); - } - - /** - * Retrieve a list of MetadataFeeds. - * - * The async variant is {@see CatalogServiceClient::listMetadataFeedsAsync()} . - * - * @example samples/V1/CatalogServiceClient/list_metadata_feeds.php - * - * @param ListMetadataFeedsRequest $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 listMetadataFeeds(ListMetadataFeedsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListMetadataFeeds', $request, $callOptions); - } - - /** - * Lists metadata jobs. - * - * The async variant is {@see CatalogServiceClient::listMetadataJobsAsync()} . - * - * @example samples/V1/CatalogServiceClient/list_metadata_jobs.php - * - * @param ListMetadataJobsRequest $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 listMetadataJobs(ListMetadataJobsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListMetadataJobs', $request, $callOptions); - } - - /** - * Looks up LLM Context for the specified resources. - * - * The async variant is {@see CatalogServiceClient::lookupContextAsync()} . - * - * @example samples/V1/CatalogServiceClient/lookup_context.php - * - * @param LookupContextRequest $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 LookupContextResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function lookupContext(LookupContextRequest $request, array $callOptions = []): LookupContextResponse - { - return $this->startApiCall('LookupContext', $request, $callOptions)->wait(); - } - - /** - * Looks up an entry by name using the permission on the source system. - * - * The async variant is {@see CatalogServiceClient::lookupEntryAsync()} . - * - * @example samples/V1/CatalogServiceClient/lookup_entry.php - * - * @param LookupEntryRequest $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 Entry - * - * @throws ApiException Thrown if the API call fails. - */ - public function lookupEntry(LookupEntryRequest $request, array $callOptions = []): Entry - { - return $this->startApiCall('LookupEntry', $request, $callOptions)->wait(); - } - - /** - * Looks up Entry Links referencing the specified Entry. - * - * The async variant is {@see CatalogServiceClient::lookupEntryLinksAsync()} . - * - * @example samples/V1/CatalogServiceClient/lookup_entry_links.php - * - * @param LookupEntryLinksRequest $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 lookupEntryLinks(LookupEntryLinksRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('LookupEntryLinks', $request, $callOptions); - } - - /** - * Modifies an entry using the permission on the source system. - * - * The async variant is {@see CatalogServiceClient::modifyEntryAsync()} . - * - * @example samples/V1/CatalogServiceClient/modify_entry.php - * - * @param ModifyEntryRequest $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 Entry - * - * @throws ApiException Thrown if the API call fails. - */ - public function modifyEntry(ModifyEntryRequest $request, array $callOptions = []): Entry - { - return $this->startApiCall('ModifyEntry', $request, $callOptions)->wait(); - } - - /** - * Searches for Entries matching the given query and scope. - * - * The async variant is {@see CatalogServiceClient::searchEntriesAsync()} . - * - * @example samples/V1/CatalogServiceClient/search_entries.php - * - * @param SearchEntriesRequest $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 searchEntries(SearchEntriesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('SearchEntries', $request, $callOptions); - } - - /** - * Updates an AspectType. - * - * The async variant is {@see CatalogServiceClient::updateAspectTypeAsync()} . - * - * @example samples/V1/CatalogServiceClient/update_aspect_type.php - * - * @param UpdateAspectTypeRequest $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 updateAspectType(UpdateAspectTypeRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateAspectType', $request, $callOptions)->wait(); - } - - /** - * Updates an Entry. - * - * The async variant is {@see CatalogServiceClient::updateEntryAsync()} . - * - * @example samples/V1/CatalogServiceClient/update_entry.php - * - * @param UpdateEntryRequest $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 Entry - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateEntry(UpdateEntryRequest $request, array $callOptions = []): Entry - { - return $this->startApiCall('UpdateEntry', $request, $callOptions)->wait(); - } - - /** - * Updates an EntryGroup. - * - * The async variant is {@see CatalogServiceClient::updateEntryGroupAsync()} . - * - * @example samples/V1/CatalogServiceClient/update_entry_group.php - * - * @param UpdateEntryGroupRequest $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 updateEntryGroup(UpdateEntryGroupRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateEntryGroup', $request, $callOptions)->wait(); - } - - /** - * Updates an Entry Link. - * - * The async variant is {@see CatalogServiceClient::updateEntryLinkAsync()} . - * - * @example samples/V1/CatalogServiceClient/update_entry_link.php - * - * @param UpdateEntryLinkRequest $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 EntryLink - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateEntryLink(UpdateEntryLinkRequest $request, array $callOptions = []): EntryLink - { - return $this->startApiCall('UpdateEntryLink', $request, $callOptions)->wait(); - } - - /** - * Updates an EntryType. - * - * The async variant is {@see CatalogServiceClient::updateEntryTypeAsync()} . - * - * @example samples/V1/CatalogServiceClient/update_entry_type.php - * - * @param UpdateEntryTypeRequest $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 updateEntryType(UpdateEntryTypeRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateEntryType', $request, $callOptions)->wait(); - } - - /** - * Updates a MetadataFeed. - * - * The async variant is {@see CatalogServiceClient::updateMetadataFeedAsync()} . - * - * @example samples/V1/CatalogServiceClient/update_metadata_feed.php - * - * @param UpdateMetadataFeedRequest $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 updateMetadataFeed(UpdateMetadataFeedRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateMetadataFeed', $request, $callOptions)->wait(); - } - - /** - * Gets information about a location. - * - * The async variant is {@see CatalogServiceClient::getLocationAsync()} . - * - * @example samples/V1/CatalogServiceClient/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 CatalogServiceClient::listLocationsAsync()} . - * - * @example samples/V1/CatalogServiceClient/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); - } - - /** - * Gets the access control policy for a resource. Returns an empty policy - if the resource exists and does not have a policy set. - * - * The async variant is {@see CatalogServiceClient::getIamPolicyAsync()} . - * - * @example samples/V1/CatalogServiceClient/get_iam_policy.php - * - * @param GetIamPolicyRequest $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 Policy - * - * @throws ApiException Thrown if the API call fails. - */ - public function getIamPolicy(GetIamPolicyRequest $request, array $callOptions = []): Policy - { - return $this->startApiCall('GetIamPolicy', $request, $callOptions)->wait(); - } - - /** - * Sets the access control policy on the specified resource. Replaces - any existing policy. - - Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` - errors. - * - * The async variant is {@see CatalogServiceClient::setIamPolicyAsync()} . - * - * @example samples/V1/CatalogServiceClient/set_iam_policy.php - * - * @param SetIamPolicyRequest $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 Policy - * - * @throws ApiException Thrown if the API call fails. - */ - public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = []): Policy - { - return $this->startApiCall('SetIamPolicy', $request, $callOptions)->wait(); - } - - /** - * Returns permissions that a caller has on the specified resource. If the - resource does not exist, this will return an empty set of - permissions, not a `NOT_FOUND` error. - - Note: This operation is designed to be used for building - permission-aware UIs and command-line tools, not for authorization - checking. This operation may "fail open" without warning. - * - * The async variant is {@see CatalogServiceClient::testIamPermissionsAsync()} . - * - * @example samples/V1/CatalogServiceClient/test_iam_permissions.php - * - * @param TestIamPermissionsRequest $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 TestIamPermissionsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse - { - return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/Dataplex/v1/src/V1/Client/CmekServiceClient.php b/owl-bot-staging/Dataplex/v1/src/V1/Client/CmekServiceClient.php deleted file mode 100644 index 626570d86895..000000000000 --- a/owl-bot-staging/Dataplex/v1/src/V1/Client/CmekServiceClient.php +++ /dev/null @@ -1,610 +0,0 @@ - createEncryptionConfigAsync(CreateEncryptionConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteEncryptionConfigAsync(DeleteEncryptionConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface getEncryptionConfigAsync(GetEncryptionConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface listEncryptionConfigsAsync(ListEncryptionConfigsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateEncryptionConfigAsync(UpdateEncryptionConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) - */ -final class CmekServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.dataplex.v1.CmekService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'dataplex.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'dataplex.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', - 'https://www.googleapis.com/auth/dataplex.read-write', - ]; - - private $operationsClient; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/cmek_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/cmek_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/cmek_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/cmek_service_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 - * encryption_config resource. - * - * @param string $organization - * @param string $location - * @param string $encryptionConfig - * - * @return string The formatted encryption_config resource. - */ - public static function encryptionConfigName(string $organization, string $location, string $encryptionConfig): string - { - return self::getPathTemplate('encryptionConfig')->render([ - 'organization' => $organization, - 'location' => $location, - 'encryption_config' => $encryptionConfig, - ]); - } - - /** - * 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, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - encryptionConfig: organizations/{organization}/locations/{location}/encryptionConfigs/{encryption_config} - * - organizationLocation: organizations/{organization}/locations/{location} - * - * 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 'dataplex.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\Dataplex\V1\CmekServiceClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new CmekServiceClient(['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); - } - - /** - * Create an EncryptionConfig. - * - * The async variant is {@see CmekServiceClient::createEncryptionConfigAsync()} . - * - * @example samples/V1/CmekServiceClient/create_encryption_config.php - * - * @param CreateEncryptionConfigRequest $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 createEncryptionConfig(CreateEncryptionConfigRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateEncryptionConfig', $request, $callOptions)->wait(); - } - - /** - * Delete an EncryptionConfig. - * - * The async variant is {@see CmekServiceClient::deleteEncryptionConfigAsync()} . - * - * @example samples/V1/CmekServiceClient/delete_encryption_config.php - * - * @param DeleteEncryptionConfigRequest $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 deleteEncryptionConfig(DeleteEncryptionConfigRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteEncryptionConfig', $request, $callOptions)->wait(); - } - - /** - * Get an EncryptionConfig. - * - * The async variant is {@see CmekServiceClient::getEncryptionConfigAsync()} . - * - * @example samples/V1/CmekServiceClient/get_encryption_config.php - * - * @param GetEncryptionConfigRequest $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 EncryptionConfig - * - * @throws ApiException Thrown if the API call fails. - */ - public function getEncryptionConfig(GetEncryptionConfigRequest $request, array $callOptions = []): EncryptionConfig - { - return $this->startApiCall('GetEncryptionConfig', $request, $callOptions)->wait(); - } - - /** - * List EncryptionConfigs. - * - * The async variant is {@see CmekServiceClient::listEncryptionConfigsAsync()} . - * - * @example samples/V1/CmekServiceClient/list_encryption_configs.php - * - * @param ListEncryptionConfigsRequest $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 listEncryptionConfigs(ListEncryptionConfigsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListEncryptionConfigs', $request, $callOptions); - } - - /** - * Update an EncryptionConfig. - * - * The async variant is {@see CmekServiceClient::updateEncryptionConfigAsync()} . - * - * @example samples/V1/CmekServiceClient/update_encryption_config.php - * - * @param UpdateEncryptionConfigRequest $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 updateEncryptionConfig(UpdateEncryptionConfigRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateEncryptionConfig', $request, $callOptions)->wait(); - } - - /** - * Gets information about a location. - * - * The async variant is {@see CmekServiceClient::getLocationAsync()} . - * - * @example samples/V1/CmekServiceClient/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 CmekServiceClient::listLocationsAsync()} . - * - * @example samples/V1/CmekServiceClient/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); - } - - /** - * Gets the access control policy for a resource. Returns an empty policy - if the resource exists and does not have a policy set. - * - * The async variant is {@see CmekServiceClient::getIamPolicyAsync()} . - * - * @example samples/V1/CmekServiceClient/get_iam_policy.php - * - * @param GetIamPolicyRequest $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 Policy - * - * @throws ApiException Thrown if the API call fails. - */ - public function getIamPolicy(GetIamPolicyRequest $request, array $callOptions = []): Policy - { - return $this->startApiCall('GetIamPolicy', $request, $callOptions)->wait(); - } - - /** - * Sets the access control policy on the specified resource. Replaces - any existing policy. - - Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` - errors. - * - * The async variant is {@see CmekServiceClient::setIamPolicyAsync()} . - * - * @example samples/V1/CmekServiceClient/set_iam_policy.php - * - * @param SetIamPolicyRequest $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 Policy - * - * @throws ApiException Thrown if the API call fails. - */ - public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = []): Policy - { - return $this->startApiCall('SetIamPolicy', $request, $callOptions)->wait(); - } - - /** - * Returns permissions that a caller has on the specified resource. If the - resource does not exist, this will return an empty set of - permissions, not a `NOT_FOUND` error. - - Note: This operation is designed to be used for building - permission-aware UIs and command-line tools, not for authorization - checking. This operation may "fail open" without warning. - * - * The async variant is {@see CmekServiceClient::testIamPermissionsAsync()} . - * - * @example samples/V1/CmekServiceClient/test_iam_permissions.php - * - * @param TestIamPermissionsRequest $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 TestIamPermissionsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse - { - return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/Dataplex/v1/src/V1/Client/ContentServiceClient.php b/owl-bot-staging/Dataplex/v1/src/V1/Client/ContentServiceClient.php deleted file mode 100644 index bea83e6597bf..000000000000 --- a/owl-bot-staging/Dataplex/v1/src/V1/Client/ContentServiceClient.php +++ /dev/null @@ -1,327 +0,0 @@ - self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/content_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/content_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/content_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/content_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * 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 'dataplex.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\Dataplex\V1\ContentServiceClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new ContentServiceClient(['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); - } - - /** - * Gets information about a location. - * - * The async variant is {@see ContentServiceClient::getLocationAsync()} . - * - * @example samples/V1/ContentServiceClient/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 ContentServiceClient::listLocationsAsync()} . - * - * @example samples/V1/ContentServiceClient/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); - } - - /** - * Gets the access control policy for a resource. Returns an empty policy - if the resource exists and does not have a policy set. - * - * The async variant is {@see ContentServiceClient::getIamPolicyAsync()} . - * - * @example samples/V1/ContentServiceClient/get_iam_policy.php - * - * @param GetIamPolicyRequest $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 Policy - * - * @throws ApiException Thrown if the API call fails. - */ - public function getIamPolicy(GetIamPolicyRequest $request, array $callOptions = []): Policy - { - return $this->startApiCall('GetIamPolicy', $request, $callOptions)->wait(); - } - - /** - * Sets the access control policy on the specified resource. Replaces - any existing policy. - - Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` - errors. - * - * The async variant is {@see ContentServiceClient::setIamPolicyAsync()} . - * - * @example samples/V1/ContentServiceClient/set_iam_policy.php - * - * @param SetIamPolicyRequest $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 Policy - * - * @throws ApiException Thrown if the API call fails. - */ - public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = []): Policy - { - return $this->startApiCall('SetIamPolicy', $request, $callOptions)->wait(); - } - - /** - * Returns permissions that a caller has on the specified resource. If the - resource does not exist, this will return an empty set of - permissions, not a `NOT_FOUND` error. - - Note: This operation is designed to be used for building - permission-aware UIs and command-line tools, not for authorization - checking. This operation may "fail open" without warning. - * - * The async variant is {@see ContentServiceClient::testIamPermissionsAsync()} . - * - * @example samples/V1/ContentServiceClient/test_iam_permissions.php - * - * @param TestIamPermissionsRequest $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 TestIamPermissionsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse - { - return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/Dataplex/v1/src/V1/Client/DataProductServiceClient.php b/owl-bot-staging/Dataplex/v1/src/V1/Client/DataProductServiceClient.php deleted file mode 100644 index 6473681da1af..000000000000 --- a/owl-bot-staging/Dataplex/v1/src/V1/Client/DataProductServiceClient.php +++ /dev/null @@ -1,958 +0,0 @@ - createDataAssetAsync(CreateDataAssetRequest $request, array $optionalArgs = []) - * @method PromiseInterface createDataProductAsync(CreateDataProductRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteDataAssetAsync(DeleteDataAssetRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteDataProductAsync(DeleteDataProductRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDataAssetAsync(GetDataAssetRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDataProductAsync(GetDataProductRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDataAssetsAsync(ListDataAssetsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDataProductsAsync(ListDataProductsRequest $request, array $optionalArgs = []) - * @method PromiseInterface requestDataProductAccessAsync(RequestDataProductAccessRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateDataAssetAsync(UpdateDataAssetRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateDataProductAsync(UpdateDataProductRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) - */ -final class DataProductServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.dataplex.v1.DataProductService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'dataplex.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'dataplex.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', - 'https://www.googleapis.com/auth/cloud-platform.read-only', - 'https://www.googleapis.com/auth/dataplex.read-write', - 'https://www.googleapis.com/auth/dataplex.readonly', - ]; - - private $operationsClient; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/data_product_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/data_product_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/data_product_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/data_product_service_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 - * change_request resource. - * - * @param string $project - * @param string $location - * @param string $changeRequest - * - * @return string The formatted change_request resource. - */ - public static function changeRequestName(string $project, string $location, string $changeRequest): string - { - return self::getPathTemplate('changeRequest')->render([ - 'project' => $project, - 'location' => $location, - 'change_request' => $changeRequest, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a data_asset - * resource. - * - * @param string $project - * @param string $location - * @param string $dataProduct - * @param string $dataAsset - * - * @return string The formatted data_asset resource. - */ - public static function dataAssetName(string $project, string $location, string $dataProduct, string $dataAsset): string - { - return self::getPathTemplate('dataAsset')->render([ - 'project' => $project, - 'location' => $location, - 'data_product' => $dataProduct, - 'data_asset' => $dataAsset, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a data_product - * resource. - * - * @param string $project - * @param string $location - * @param string $dataProduct - * - * @return string The formatted data_product resource. - */ - public static function dataProductName(string $project, string $location, string $dataProduct): string - { - return self::getPathTemplate('dataProduct')->render([ - 'project' => $project, - 'location' => $location, - 'data_product' => $dataProduct, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a entry - * resource. - * - * @param string $project - * @param string $location - * @param string $entryGroup - * @param string $entry - * - * @return string The formatted entry resource. - */ - public static function entryName(string $project, string $location, string $entryGroup, string $entry): string - { - return self::getPathTemplate('entry')->render([ - 'project' => $project, - 'location' => $location, - 'entry_group' => $entryGroup, - 'entry' => $entry, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a entry_group - * resource. - * - * @param string $project - * @param string $location - * @param string $entryGroup - * - * @return string The formatted entry_group resource. - */ - public static function entryGroupName(string $project, string $location, string $entryGroup): string - { - return self::getPathTemplate('entryGroup')->render([ - 'project' => $project, - 'location' => $location, - 'entry_group' => $entryGroup, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a entry_link - * resource. - * - * @param string $project - * @param string $location - * @param string $entryGroup - * @param string $entryLink - * - * @return string The formatted entry_link resource. - */ - public static function entryLinkName(string $project, string $location, string $entryGroup, string $entryLink): string - { - return self::getPathTemplate('entryLink')->render([ - 'project' => $project, - 'location' => $location, - 'entry_group' => $entryGroup, - 'entry_link' => $entryLink, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a glossary - * resource. - * - * @param string $project - * @param string $location - * @param string $glossary - * - * @return string The formatted glossary resource. - */ - public static function glossaryName(string $project, string $location, string $glossary): string - { - return self::getPathTemplate('glossary')->render([ - 'project' => $project, - 'location' => $location, - 'glossary' => $glossary, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * glossary_category resource. - * - * @param string $project - * @param string $location - * @param string $glossary - * @param string $glossaryCategory - * - * @return string The formatted glossary_category resource. - */ - public static function glossaryCategoryName(string $project, string $location, string $glossary, string $glossaryCategory): string - { - return self::getPathTemplate('glossaryCategory')->render([ - 'project' => $project, - 'location' => $location, - 'glossary' => $glossary, - 'glossary_category' => $glossaryCategory, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * glossary_term resource. - * - * @param string $project - * @param string $location - * @param string $glossary - * @param string $glossaryTerm - * - * @return string The formatted glossary_term resource. - */ - public static function glossaryTermName(string $project, string $location, string $glossary, string $glossaryTerm): string - { - return self::getPathTemplate('glossaryTerm')->render([ - 'project' => $project, - 'location' => $location, - 'glossary' => $glossary, - 'glossary_term' => $glossaryTerm, - ]); - } - - /** - * 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, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - changeRequest: projects/{project}/locations/{location}/changeRequests/{change_request} - * - dataAsset: projects/{project}/locations/{location}/dataProducts/{data_product}/dataAssets/{data_asset} - * - dataProduct: projects/{project}/locations/{location}/dataProducts/{data_product} - * - entry: projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry} - * - entryGroup: projects/{project}/locations/{location}/entryGroups/{entry_group} - * - entryLink: projects/{project}/locations/{location}/entryGroups/{entry_group}/entryLinks/{entry_link} - * - glossary: projects/{project}/locations/{location}/glossaries/{glossary} - * - glossaryCategory: projects/{project}/locations/{location}/glossaries/{glossary}/categories/{glossary_category} - * - glossaryTerm: projects/{project}/locations/{location}/glossaries/{glossary}/terms/{glossary_term} - * - location: projects/{project}/locations/{location} - * - * 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 'dataplex.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\Dataplex\V1\DataProductServiceClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new DataProductServiceClient(['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 data asset. - * - * The async variant is {@see DataProductServiceClient::createDataAssetAsync()} . - * - * @example samples/V1/DataProductServiceClient/create_data_asset.php - * - * @param CreateDataAssetRequest $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 createDataAsset(CreateDataAssetRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateDataAsset', $request, $callOptions)->wait(); - } - - /** - * Creates a data product. - * - * The async variant is {@see DataProductServiceClient::createDataProductAsync()} . - * - * @example samples/V1/DataProductServiceClient/create_data_product.php - * - * @param CreateDataProductRequest $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 createDataProduct(CreateDataProductRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateDataProduct', $request, $callOptions)->wait(); - } - - /** - * Deletes a data asset. - * - * The async variant is {@see DataProductServiceClient::deleteDataAssetAsync()} . - * - * @example samples/V1/DataProductServiceClient/delete_data_asset.php - * - * @param DeleteDataAssetRequest $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 deleteDataAsset(DeleteDataAssetRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteDataAsset', $request, $callOptions)->wait(); - } - - /** - * Deletes a data product. The deletion will fail if the data product is not - * empty (i.e. contains at least one data asset). - * - * The async variant is {@see DataProductServiceClient::deleteDataProductAsync()} . - * - * @example samples/V1/DataProductServiceClient/delete_data_product.php - * - * @param DeleteDataProductRequest $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 deleteDataProduct(DeleteDataProductRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteDataProduct', $request, $callOptions)->wait(); - } - - /** - * Gets a data asset. - * - * The async variant is {@see DataProductServiceClient::getDataAssetAsync()} . - * - * @example samples/V1/DataProductServiceClient/get_data_asset.php - * - * @param GetDataAssetRequest $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 DataAsset - * - * @throws ApiException Thrown if the API call fails. - */ - public function getDataAsset(GetDataAssetRequest $request, array $callOptions = []): DataAsset - { - return $this->startApiCall('GetDataAsset', $request, $callOptions)->wait(); - } - - /** - * Gets a data product. - * - * The async variant is {@see DataProductServiceClient::getDataProductAsync()} . - * - * @example samples/V1/DataProductServiceClient/get_data_product.php - * - * @param GetDataProductRequest $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 DataProduct - * - * @throws ApiException Thrown if the API call fails. - */ - public function getDataProduct(GetDataProductRequest $request, array $callOptions = []): DataProduct - { - return $this->startApiCall('GetDataProduct', $request, $callOptions)->wait(); - } - - /** - * Lists data assets for a given data product. - * - * The async variant is {@see DataProductServiceClient::listDataAssetsAsync()} . - * - * @example samples/V1/DataProductServiceClient/list_data_assets.php - * - * @param ListDataAssetsRequest $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 listDataAssets(ListDataAssetsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListDataAssets', $request, $callOptions); - } - - /** - * Lists data products for a given project. - * - * The async variant is {@see DataProductServiceClient::listDataProductsAsync()} . - * - * @example samples/V1/DataProductServiceClient/list_data_products.php - * - * @param ListDataProductsRequest $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 listDataProducts(ListDataProductsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListDataProducts', $request, $callOptions); - } - - /** - * Requests access to a data product. This will trigger an access approval - * workflow, and the requester will need to wait for the approval to be - * granted before they will be able to access the data product assets. - * - * The async variant is - * {@see DataProductServiceClient::requestDataProductAccessAsync()} . - * - * @example samples/V1/DataProductServiceClient/request_data_product_access.php - * - * @param RequestDataProductAccessRequest $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 RequestDataProductAccessResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function requestDataProductAccess(RequestDataProductAccessRequest $request, array $callOptions = []): RequestDataProductAccessResponse - { - return $this->startApiCall('RequestDataProductAccess', $request, $callOptions)->wait(); - } - - /** - * Updates a data asset. - * - * The async variant is {@see DataProductServiceClient::updateDataAssetAsync()} . - * - * @example samples/V1/DataProductServiceClient/update_data_asset.php - * - * @param UpdateDataAssetRequest $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 updateDataAsset(UpdateDataAssetRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateDataAsset', $request, $callOptions)->wait(); - } - - /** - * Updates a data product. - * - * The async variant is {@see DataProductServiceClient::updateDataProductAsync()} . - * - * @example samples/V1/DataProductServiceClient/update_data_product.php - * - * @param UpdateDataProductRequest $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 updateDataProduct(UpdateDataProductRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateDataProduct', $request, $callOptions)->wait(); - } - - /** - * Gets information about a location. - * - * The async variant is {@see DataProductServiceClient::getLocationAsync()} . - * - * @example samples/V1/DataProductServiceClient/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 DataProductServiceClient::listLocationsAsync()} . - * - * @example samples/V1/DataProductServiceClient/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); - } - - /** - * Gets the access control policy for a resource. Returns an empty policy - if the resource exists and does not have a policy set. - * - * The async variant is {@see DataProductServiceClient::getIamPolicyAsync()} . - * - * @example samples/V1/DataProductServiceClient/get_iam_policy.php - * - * @param GetIamPolicyRequest $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 Policy - * - * @throws ApiException Thrown if the API call fails. - */ - public function getIamPolicy(GetIamPolicyRequest $request, array $callOptions = []): Policy - { - return $this->startApiCall('GetIamPolicy', $request, $callOptions)->wait(); - } - - /** - * Sets the access control policy on the specified resource. Replaces - any existing policy. - - Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` - errors. - * - * The async variant is {@see DataProductServiceClient::setIamPolicyAsync()} . - * - * @example samples/V1/DataProductServiceClient/set_iam_policy.php - * - * @param SetIamPolicyRequest $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 Policy - * - * @throws ApiException Thrown if the API call fails. - */ - public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = []): Policy - { - return $this->startApiCall('SetIamPolicy', $request, $callOptions)->wait(); - } - - /** - * Returns permissions that a caller has on the specified resource. If the - resource does not exist, this will return an empty set of - permissions, not a `NOT_FOUND` error. - - Note: This operation is designed to be used for building - permission-aware UIs and command-line tools, not for authorization - checking. This operation may "fail open" without warning. - * - * The async variant is {@see DataProductServiceClient::testIamPermissionsAsync()} - * . - * - * @example samples/V1/DataProductServiceClient/test_iam_permissions.php - * - * @param TestIamPermissionsRequest $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 TestIamPermissionsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse - { - return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/Dataplex/v1/src/V1/Client/DataScanServiceClient.php b/owl-bot-staging/Dataplex/v1/src/V1/Client/DataScanServiceClient.php deleted file mode 100644 index 5fa8c51ae077..000000000000 --- a/owl-bot-staging/Dataplex/v1/src/V1/Client/DataScanServiceClient.php +++ /dev/null @@ -1,884 +0,0 @@ - cancelDataScanJobAsync(CancelDataScanJobRequest $request, array $optionalArgs = []) - * @method PromiseInterface createDataScanAsync(CreateDataScanRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteDataScanAsync(DeleteDataScanRequest $request, array $optionalArgs = []) - * @method PromiseInterface generateDataQualityRulesAsync(GenerateDataQualityRulesRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDataScanAsync(GetDataScanRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDataScanJobAsync(GetDataScanJobRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDataScanJobsAsync(ListDataScanJobsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDataScansAsync(ListDataScansRequest $request, array $optionalArgs = []) - * @method PromiseInterface runDataScanAsync(RunDataScanRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateDataScanAsync(UpdateDataScanRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) - */ -final class DataScanServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.dataplex.v1.DataScanService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'dataplex.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'dataplex.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', - 'https://www.googleapis.com/auth/cloud-platform.read-only', - 'https://www.googleapis.com/auth/dataplex.read-write', - 'https://www.googleapis.com/auth/dataplex.readonly', - ]; - - private $operationsClient; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/data_scan_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/data_scan_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/data_scan_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/data_scan_service_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 connection - * resource. - * - * @param string $project - * @param string $location - * @param string $connection - * - * @return string The formatted connection resource. - */ - public static function connectionName(string $project, string $location, string $connection): string - { - return self::getPathTemplate('connection')->render([ - 'project' => $project, - 'location' => $location, - 'connection' => $connection, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a data_scan - * resource. - * - * @param string $project - * @param string $location - * @param string $dataScan - * - * @return string The formatted data_scan resource. - */ - public static function dataScanName(string $project, string $location, string $dataScan): string - { - return self::getPathTemplate('dataScan')->render([ - 'project' => $project, - 'location' => $location, - 'dataScan' => $dataScan, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * data_scan_job resource. - * - * @param string $project - * @param string $location - * @param string $dataScan - * @param string $job - * - * @return string The formatted data_scan_job resource. - */ - public static function dataScanJobName(string $project, string $location, string $dataScan, string $job): string - { - return self::getPathTemplate('dataScanJob')->render([ - 'project' => $project, - 'location' => $location, - 'dataScan' => $dataScan, - 'job' => $job, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a dataset - * resource. - * - * @param string $project - * @param string $dataset - * - * @return string The formatted dataset resource. - */ - public static function datasetName(string $project, string $dataset): string - { - return self::getPathTemplate('dataset')->render([ - 'project' => $project, - 'dataset' => $dataset, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a entity - * resource. - * - * @param string $project - * @param string $location - * @param string $lake - * @param string $zone - * @param string $entity - * - * @return string The formatted entity resource. - */ - public static function entityName(string $project, string $location, string $lake, string $zone, string $entity): string - { - return self::getPathTemplate('entity')->render([ - 'project' => $project, - 'location' => $location, - 'lake' => $lake, - 'zone' => $zone, - 'entity' => $entity, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a entry - * resource. - * - * @param string $project - * @param string $location - * @param string $entryGroup - * @param string $entry - * - * @return string The formatted entry resource. - */ - public static function entryName(string $project, string $location, string $entryGroup, string $entry): string - { - return self::getPathTemplate('entry')->render([ - 'project' => $project, - 'location' => $location, - 'entry_group' => $entryGroup, - 'entry' => $entry, - ]); - } - - /** - * 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 project - * resource. - * - * @param string $project - * - * @return string The formatted project resource. - */ - public static function projectName(string $project): string - { - return self::getPathTemplate('project')->render([ - 'project' => $project, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - connection: projects/{project}/locations/{location}/connections/{connection} - * - dataScan: projects/{project}/locations/{location}/dataScans/{dataScan} - * - dataScanJob: projects/{project}/locations/{location}/dataScans/{dataScan}/jobs/{job} - * - dataset: projects/{project}/datasets/{dataset} - * - entity: projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/entities/{entity} - * - entry: projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry} - * - location: projects/{project}/locations/{location} - * - project: projects/{project} - * - * 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 'dataplex.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\Dataplex\V1\DataScanServiceClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new DataScanServiceClient(['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); - } - - /** - * Cancels a running/pending DataScan job. - * - * The async variant is {@see DataScanServiceClient::cancelDataScanJobAsync()} . - * - * @example samples/V1/DataScanServiceClient/cancel_data_scan_job.php - * - * @param CancelDataScanJobRequest $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 CancelDataScanJobResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function cancelDataScanJob(CancelDataScanJobRequest $request, array $callOptions = []): CancelDataScanJobResponse - { - return $this->startApiCall('CancelDataScanJob', $request, $callOptions)->wait(); - } - - /** - * Creates a DataScan resource. - * - * The async variant is {@see DataScanServiceClient::createDataScanAsync()} . - * - * @example samples/V1/DataScanServiceClient/create_data_scan.php - * - * @param CreateDataScanRequest $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 createDataScan(CreateDataScanRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateDataScan', $request, $callOptions)->wait(); - } - - /** - * Deletes a DataScan resource. - * - * The async variant is {@see DataScanServiceClient::deleteDataScanAsync()} . - * - * @example samples/V1/DataScanServiceClient/delete_data_scan.php - * - * @param DeleteDataScanRequest $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 deleteDataScan(DeleteDataScanRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteDataScan', $request, $callOptions)->wait(); - } - - /** - * Generates recommended data quality rules based on the results of a data - * profiling scan. - * - * Use the recommendations to build rules for a data quality scan. - * - * The async variant is - * {@see DataScanServiceClient::generateDataQualityRulesAsync()} . - * - * @example samples/V1/DataScanServiceClient/generate_data_quality_rules.php - * - * @param GenerateDataQualityRulesRequest $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 GenerateDataQualityRulesResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function generateDataQualityRules(GenerateDataQualityRulesRequest $request, array $callOptions = []): GenerateDataQualityRulesResponse - { - return $this->startApiCall('GenerateDataQualityRules', $request, $callOptions)->wait(); - } - - /** - * Gets a DataScan resource. - * - * The async variant is {@see DataScanServiceClient::getDataScanAsync()} . - * - * @example samples/V1/DataScanServiceClient/get_data_scan.php - * - * @param GetDataScanRequest $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 DataScan - * - * @throws ApiException Thrown if the API call fails. - */ - public function getDataScan(GetDataScanRequest $request, array $callOptions = []): DataScan - { - return $this->startApiCall('GetDataScan', $request, $callOptions)->wait(); - } - - /** - * Gets a DataScanJob resource. - * - * The async variant is {@see DataScanServiceClient::getDataScanJobAsync()} . - * - * @example samples/V1/DataScanServiceClient/get_data_scan_job.php - * - * @param GetDataScanJobRequest $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 DataScanJob - * - * @throws ApiException Thrown if the API call fails. - */ - public function getDataScanJob(GetDataScanJobRequest $request, array $callOptions = []): DataScanJob - { - return $this->startApiCall('GetDataScanJob', $request, $callOptions)->wait(); - } - - /** - * Lists DataScanJobs under the given DataScan. - * - * The async variant is {@see DataScanServiceClient::listDataScanJobsAsync()} . - * - * @example samples/V1/DataScanServiceClient/list_data_scan_jobs.php - * - * @param ListDataScanJobsRequest $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 listDataScanJobs(ListDataScanJobsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListDataScanJobs', $request, $callOptions); - } - - /** - * Lists DataScans. - * - * The async variant is {@see DataScanServiceClient::listDataScansAsync()} . - * - * @example samples/V1/DataScanServiceClient/list_data_scans.php - * - * @param ListDataScansRequest $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 listDataScans(ListDataScansRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListDataScans', $request, $callOptions); - } - - /** - * Runs an on-demand execution of a DataScan - * - * The async variant is {@see DataScanServiceClient::runDataScanAsync()} . - * - * @example samples/V1/DataScanServiceClient/run_data_scan.php - * - * @param RunDataScanRequest $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 RunDataScanResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function runDataScan(RunDataScanRequest $request, array $callOptions = []): RunDataScanResponse - { - return $this->startApiCall('RunDataScan', $request, $callOptions)->wait(); - } - - /** - * Updates a DataScan resource. - * - * The async variant is {@see DataScanServiceClient::updateDataScanAsync()} . - * - * @example samples/V1/DataScanServiceClient/update_data_scan.php - * - * @param UpdateDataScanRequest $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 updateDataScan(UpdateDataScanRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateDataScan', $request, $callOptions)->wait(); - } - - /** - * Gets information about a location. - * - * The async variant is {@see DataScanServiceClient::getLocationAsync()} . - * - * @example samples/V1/DataScanServiceClient/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 DataScanServiceClient::listLocationsAsync()} . - * - * @example samples/V1/DataScanServiceClient/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); - } - - /** - * Gets the access control policy for a resource. Returns an empty policy - if the resource exists and does not have a policy set. - * - * The async variant is {@see DataScanServiceClient::getIamPolicyAsync()} . - * - * @example samples/V1/DataScanServiceClient/get_iam_policy.php - * - * @param GetIamPolicyRequest $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 Policy - * - * @throws ApiException Thrown if the API call fails. - */ - public function getIamPolicy(GetIamPolicyRequest $request, array $callOptions = []): Policy - { - return $this->startApiCall('GetIamPolicy', $request, $callOptions)->wait(); - } - - /** - * Sets the access control policy on the specified resource. Replaces - any existing policy. - - Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` - errors. - * - * The async variant is {@see DataScanServiceClient::setIamPolicyAsync()} . - * - * @example samples/V1/DataScanServiceClient/set_iam_policy.php - * - * @param SetIamPolicyRequest $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 Policy - * - * @throws ApiException Thrown if the API call fails. - */ - public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = []): Policy - { - return $this->startApiCall('SetIamPolicy', $request, $callOptions)->wait(); - } - - /** - * Returns permissions that a caller has on the specified resource. If the - resource does not exist, this will return an empty set of - permissions, not a `NOT_FOUND` error. - - Note: This operation is designed to be used for building - permission-aware UIs and command-line tools, not for authorization - checking. This operation may "fail open" without warning. - * - * The async variant is {@see DataScanServiceClient::testIamPermissionsAsync()} . - * - * @example samples/V1/DataScanServiceClient/test_iam_permissions.php - * - * @param TestIamPermissionsRequest $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 TestIamPermissionsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse - { - return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/Dataplex/v1/src/V1/Client/DataTaxonomyServiceClient.php b/owl-bot-staging/Dataplex/v1/src/V1/Client/DataTaxonomyServiceClient.php deleted file mode 100644 index 095f1630fb66..000000000000 --- a/owl-bot-staging/Dataplex/v1/src/V1/Client/DataTaxonomyServiceClient.php +++ /dev/null @@ -1,984 +0,0 @@ - createDataAttributeAsync(CreateDataAttributeRequest $request, array $optionalArgs = []) - * @method PromiseInterface createDataAttributeBindingAsync(CreateDataAttributeBindingRequest $request, array $optionalArgs = []) - * @method PromiseInterface createDataTaxonomyAsync(CreateDataTaxonomyRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteDataAttributeAsync(DeleteDataAttributeRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteDataAttributeBindingAsync(DeleteDataAttributeBindingRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteDataTaxonomyAsync(DeleteDataTaxonomyRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDataAttributeAsync(GetDataAttributeRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDataAttributeBindingAsync(GetDataAttributeBindingRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDataTaxonomyAsync(GetDataTaxonomyRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDataAttributeBindingsAsync(ListDataAttributeBindingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDataAttributesAsync(ListDataAttributesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDataTaxonomiesAsync(ListDataTaxonomiesRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateDataAttributeAsync(UpdateDataAttributeRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateDataAttributeBindingAsync(UpdateDataAttributeBindingRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateDataTaxonomyAsync(UpdateDataTaxonomyRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) - */ -final class DataTaxonomyServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.dataplex.v1.DataTaxonomyService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'dataplex.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'dataplex.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', - 'https://www.googleapis.com/auth/dataplex.read-write', - ]; - - private $operationsClient; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/data_taxonomy_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/data_taxonomy_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/data_taxonomy_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/data_taxonomy_service_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 - * data_attribute resource. - * - * @param string $project - * @param string $location - * @param string $dataTaxonomy - * @param string $dataAttributeId - * - * @return string The formatted data_attribute resource. - */ - public static function dataAttributeName(string $project, string $location, string $dataTaxonomy, string $dataAttributeId): string - { - return self::getPathTemplate('dataAttribute')->render([ - 'project' => $project, - 'location' => $location, - 'dataTaxonomy' => $dataTaxonomy, - 'data_attribute_id' => $dataAttributeId, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * data_attribute_binding resource. - * - * @param string $project - * @param string $location - * @param string $dataAttributeBindingId - * - * @return string The formatted data_attribute_binding resource. - */ - public static function dataAttributeBindingName(string $project, string $location, string $dataAttributeBindingId): string - { - return self::getPathTemplate('dataAttributeBinding')->render([ - 'project' => $project, - 'location' => $location, - 'data_attribute_binding_id' => $dataAttributeBindingId, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * data_taxonomy resource. - * - * @param string $project - * @param string $location - * @param string $dataTaxonomyId - * - * @return string The formatted data_taxonomy resource. - */ - public static function dataTaxonomyName(string $project, string $location, string $dataTaxonomyId): string - { - return self::getPathTemplate('dataTaxonomy')->render([ - 'project' => $project, - 'location' => $location, - 'data_taxonomy_id' => $dataTaxonomyId, - ]); - } - - /** - * 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, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - dataAttribute: projects/{project}/locations/{location}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id} - * - dataAttributeBinding: projects/{project}/locations/{location}/dataAttributeBindings/{data_attribute_binding_id} - * - dataTaxonomy: projects/{project}/locations/{location}/dataTaxonomies/{data_taxonomy_id} - * - location: projects/{project}/locations/{location} - * - * 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 'dataplex.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\Dataplex\V1\DataTaxonomyServiceClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new DataTaxonomyServiceClient(['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); - } - - /** - * Create a DataAttribute resource. - * - * The async variant is - * {@see DataTaxonomyServiceClient::createDataAttributeAsync()} . - * - * @example samples/V1/DataTaxonomyServiceClient/create_data_attribute.php - * - * @param CreateDataAttributeRequest $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. - * - * @deprecated This method will be removed in the next major version update. - */ - public function createDataAttribute(CreateDataAttributeRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateDataAttribute', $request, $callOptions)->wait(); - } - - /** - * Create a DataAttributeBinding resource. - * - * The async variant is - * {@see DataTaxonomyServiceClient::createDataAttributeBindingAsync()} . - * - * @example samples/V1/DataTaxonomyServiceClient/create_data_attribute_binding.php - * - * @param CreateDataAttributeBindingRequest $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. - * - * @deprecated This method will be removed in the next major version update. - */ - public function createDataAttributeBinding(CreateDataAttributeBindingRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateDataAttributeBinding', $request, $callOptions)->wait(); - } - - /** - * Create a DataTaxonomy resource. - * - * The async variant is {@see DataTaxonomyServiceClient::createDataTaxonomyAsync()} - * . - * - * @example samples/V1/DataTaxonomyServiceClient/create_data_taxonomy.php - * - * @param CreateDataTaxonomyRequest $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. - * - * @deprecated This method will be removed in the next major version update. - */ - public function createDataTaxonomy(CreateDataTaxonomyRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateDataTaxonomy', $request, $callOptions)->wait(); - } - - /** - * Deletes a Data Attribute resource. - * - * The async variant is - * {@see DataTaxonomyServiceClient::deleteDataAttributeAsync()} . - * - * @example samples/V1/DataTaxonomyServiceClient/delete_data_attribute.php - * - * @param DeleteDataAttributeRequest $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. - * - * @deprecated This method will be removed in the next major version update. - */ - public function deleteDataAttribute(DeleteDataAttributeRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteDataAttribute', $request, $callOptions)->wait(); - } - - /** - * Deletes a DataAttributeBinding resource. All attributes within the - * DataAttributeBinding must be deleted before the DataAttributeBinding can be - * deleted. - * - * The async variant is - * {@see DataTaxonomyServiceClient::deleteDataAttributeBindingAsync()} . - * - * @example samples/V1/DataTaxonomyServiceClient/delete_data_attribute_binding.php - * - * @param DeleteDataAttributeBindingRequest $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. - * - * @deprecated This method will be removed in the next major version update. - */ - public function deleteDataAttributeBinding(DeleteDataAttributeBindingRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteDataAttributeBinding', $request, $callOptions)->wait(); - } - - /** - * Deletes a DataTaxonomy resource. All attributes within the DataTaxonomy - * must be deleted before the DataTaxonomy can be deleted. - * - * The async variant is {@see DataTaxonomyServiceClient::deleteDataTaxonomyAsync()} - * . - * - * @example samples/V1/DataTaxonomyServiceClient/delete_data_taxonomy.php - * - * @param DeleteDataTaxonomyRequest $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. - * - * @deprecated This method will be removed in the next major version update. - */ - public function deleteDataTaxonomy(DeleteDataTaxonomyRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteDataTaxonomy', $request, $callOptions)->wait(); - } - - /** - * Retrieves a Data Attribute resource. - * - * The async variant is {@see DataTaxonomyServiceClient::getDataAttributeAsync()} . - * - * @example samples/V1/DataTaxonomyServiceClient/get_data_attribute.php - * - * @param GetDataAttributeRequest $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 DataAttribute - * - * @throws ApiException Thrown if the API call fails. - * - * @deprecated This method will be removed in the next major version update. - */ - public function getDataAttribute(GetDataAttributeRequest $request, array $callOptions = []): DataAttribute - { - return $this->startApiCall('GetDataAttribute', $request, $callOptions)->wait(); - } - - /** - * Retrieves a DataAttributeBinding resource. - * - * The async variant is - * {@see DataTaxonomyServiceClient::getDataAttributeBindingAsync()} . - * - * @example samples/V1/DataTaxonomyServiceClient/get_data_attribute_binding.php - * - * @param GetDataAttributeBindingRequest $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 DataAttributeBinding - * - * @throws ApiException Thrown if the API call fails. - * - * @deprecated This method will be removed in the next major version update. - */ - public function getDataAttributeBinding(GetDataAttributeBindingRequest $request, array $callOptions = []): DataAttributeBinding - { - return $this->startApiCall('GetDataAttributeBinding', $request, $callOptions)->wait(); - } - - /** - * Retrieves a DataTaxonomy resource. - * - * The async variant is {@see DataTaxonomyServiceClient::getDataTaxonomyAsync()} . - * - * @example samples/V1/DataTaxonomyServiceClient/get_data_taxonomy.php - * - * @param GetDataTaxonomyRequest $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 DataTaxonomy - * - * @throws ApiException Thrown if the API call fails. - * - * @deprecated This method will be removed in the next major version update. - */ - public function getDataTaxonomy(GetDataTaxonomyRequest $request, array $callOptions = []): DataTaxonomy - { - return $this->startApiCall('GetDataTaxonomy', $request, $callOptions)->wait(); - } - - /** - * Lists DataAttributeBinding resources in a project and location. - * - * The async variant is - * {@see DataTaxonomyServiceClient::listDataAttributeBindingsAsync()} . - * - * @example samples/V1/DataTaxonomyServiceClient/list_data_attribute_bindings.php - * - * @param ListDataAttributeBindingsRequest $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. - * - * @deprecated This method will be removed in the next major version update. - */ - public function listDataAttributeBindings(ListDataAttributeBindingsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListDataAttributeBindings', $request, $callOptions); - } - - /** - * Lists Data Attribute resources in a DataTaxonomy. - * - * The async variant is {@see DataTaxonomyServiceClient::listDataAttributesAsync()} - * . - * - * @example samples/V1/DataTaxonomyServiceClient/list_data_attributes.php - * - * @param ListDataAttributesRequest $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. - * - * @deprecated This method will be removed in the next major version update. - */ - public function listDataAttributes(ListDataAttributesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListDataAttributes', $request, $callOptions); - } - - /** - * Lists DataTaxonomy resources in a project and location. - * - * The async variant is {@see DataTaxonomyServiceClient::listDataTaxonomiesAsync()} - * . - * - * @example samples/V1/DataTaxonomyServiceClient/list_data_taxonomies.php - * - * @param ListDataTaxonomiesRequest $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. - * - * @deprecated This method will be removed in the next major version update. - */ - public function listDataTaxonomies(ListDataTaxonomiesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListDataTaxonomies', $request, $callOptions); - } - - /** - * Updates a DataAttribute resource. - * - * The async variant is - * {@see DataTaxonomyServiceClient::updateDataAttributeAsync()} . - * - * @example samples/V1/DataTaxonomyServiceClient/update_data_attribute.php - * - * @param UpdateDataAttributeRequest $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. - * - * @deprecated This method will be removed in the next major version update. - */ - public function updateDataAttribute(UpdateDataAttributeRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateDataAttribute', $request, $callOptions)->wait(); - } - - /** - * Updates a DataAttributeBinding resource. - * - * The async variant is - * {@see DataTaxonomyServiceClient::updateDataAttributeBindingAsync()} . - * - * @example samples/V1/DataTaxonomyServiceClient/update_data_attribute_binding.php - * - * @param UpdateDataAttributeBindingRequest $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. - * - * @deprecated This method will be removed in the next major version update. - */ - public function updateDataAttributeBinding(UpdateDataAttributeBindingRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateDataAttributeBinding', $request, $callOptions)->wait(); - } - - /** - * Updates a DataTaxonomy resource. - * - * The async variant is {@see DataTaxonomyServiceClient::updateDataTaxonomyAsync()} - * . - * - * @example samples/V1/DataTaxonomyServiceClient/update_data_taxonomy.php - * - * @param UpdateDataTaxonomyRequest $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. - * - * @deprecated This method will be removed in the next major version update. - */ - public function updateDataTaxonomy(UpdateDataTaxonomyRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateDataTaxonomy', $request, $callOptions)->wait(); - } - - /** - * Gets information about a location. - * - * The async variant is {@see DataTaxonomyServiceClient::getLocationAsync()} . - * - * @example samples/V1/DataTaxonomyServiceClient/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 DataTaxonomyServiceClient::listLocationsAsync()} . - * - * @example samples/V1/DataTaxonomyServiceClient/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); - } - - /** - * Gets the access control policy for a resource. Returns an empty policy - if the resource exists and does not have a policy set. - * - * The async variant is {@see DataTaxonomyServiceClient::getIamPolicyAsync()} . - * - * @example samples/V1/DataTaxonomyServiceClient/get_iam_policy.php - * - * @param GetIamPolicyRequest $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 Policy - * - * @throws ApiException Thrown if the API call fails. - */ - public function getIamPolicy(GetIamPolicyRequest $request, array $callOptions = []): Policy - { - return $this->startApiCall('GetIamPolicy', $request, $callOptions)->wait(); - } - - /** - * Sets the access control policy on the specified resource. Replaces - any existing policy. - - Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` - errors. - * - * The async variant is {@see DataTaxonomyServiceClient::setIamPolicyAsync()} . - * - * @example samples/V1/DataTaxonomyServiceClient/set_iam_policy.php - * - * @param SetIamPolicyRequest $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 Policy - * - * @throws ApiException Thrown if the API call fails. - */ - public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = []): Policy - { - return $this->startApiCall('SetIamPolicy', $request, $callOptions)->wait(); - } - - /** - * Returns permissions that a caller has on the specified resource. If the - resource does not exist, this will return an empty set of - permissions, not a `NOT_FOUND` error. - - Note: This operation is designed to be used for building - permission-aware UIs and command-line tools, not for authorization - checking. This operation may "fail open" without warning. - * - * The async variant is {@see DataTaxonomyServiceClient::testIamPermissionsAsync()} - * . - * - * @example samples/V1/DataTaxonomyServiceClient/test_iam_permissions.php - * - * @param TestIamPermissionsRequest $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 TestIamPermissionsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse - { - return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/Dataplex/v1/src/V1/Client/DataplexServiceClient.php b/owl-bot-staging/Dataplex/v1/src/V1/Client/DataplexServiceClient.php deleted file mode 100644 index 637fb5098b83..000000000000 --- a/owl-bot-staging/Dataplex/v1/src/V1/Client/DataplexServiceClient.php +++ /dev/null @@ -1,1330 +0,0 @@ - cancelJobAsync(CancelJobRequest $request, array $optionalArgs = []) - * @method PromiseInterface createAssetAsync(CreateAssetRequest $request, array $optionalArgs = []) - * @method PromiseInterface createLakeAsync(CreateLakeRequest $request, array $optionalArgs = []) - * @method PromiseInterface createTaskAsync(CreateTaskRequest $request, array $optionalArgs = []) - * @method PromiseInterface createZoneAsync(CreateZoneRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteAssetAsync(DeleteAssetRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteLakeAsync(DeleteLakeRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteTaskAsync(DeleteTaskRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteZoneAsync(DeleteZoneRequest $request, array $optionalArgs = []) - * @method PromiseInterface getAssetAsync(GetAssetRequest $request, array $optionalArgs = []) - * @method PromiseInterface getJobAsync(GetJobRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLakeAsync(GetLakeRequest $request, array $optionalArgs = []) - * @method PromiseInterface getTaskAsync(GetTaskRequest $request, array $optionalArgs = []) - * @method PromiseInterface getZoneAsync(GetZoneRequest $request, array $optionalArgs = []) - * @method PromiseInterface listAssetActionsAsync(ListAssetActionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listAssetsAsync(ListAssetsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listJobsAsync(ListJobsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLakeActionsAsync(ListLakeActionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLakesAsync(ListLakesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listTasksAsync(ListTasksRequest $request, array $optionalArgs = []) - * @method PromiseInterface listZoneActionsAsync(ListZoneActionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listZonesAsync(ListZonesRequest $request, array $optionalArgs = []) - * @method PromiseInterface runTaskAsync(RunTaskRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateAssetAsync(UpdateAssetRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateLakeAsync(UpdateLakeRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateTaskAsync(UpdateTaskRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateZoneAsync(UpdateZoneRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) - */ -final class DataplexServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.dataplex.v1.DataplexService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'dataplex.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'dataplex.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', - 'https://www.googleapis.com/auth/cloud-platform.read-only', - 'https://www.googleapis.com/auth/dataplex.read-write', - 'https://www.googleapis.com/auth/dataplex.readonly', - ]; - - private $operationsClient; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/dataplex_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/dataplex_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/dataplex_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/dataplex_service_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 asset - * resource. - * - * @param string $project - * @param string $location - * @param string $lake - * @param string $zone - * @param string $asset - * - * @return string The formatted asset resource. - */ - public static function assetName(string $project, string $location, string $lake, string $zone, string $asset): string - { - return self::getPathTemplate('asset')->render([ - 'project' => $project, - 'location' => $location, - 'lake' => $lake, - 'zone' => $zone, - 'asset' => $asset, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a job - * resource. - * - * @param string $project - * @param string $location - * @param string $lake - * @param string $task - * @param string $job - * - * @return string The formatted job resource. - */ - public static function jobName(string $project, string $location, string $lake, string $task, string $job): string - { - return self::getPathTemplate('job')->render([ - 'project' => $project, - 'location' => $location, - 'lake' => $lake, - 'task' => $task, - 'job' => $job, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a lake - * resource. - * - * @param string $project - * @param string $location - * @param string $lake - * - * @return string The formatted lake resource. - */ - public static function lakeName(string $project, string $location, string $lake): string - { - return self::getPathTemplate('lake')->render([ - 'project' => $project, - 'location' => $location, - 'lake' => $lake, - ]); - } - - /** - * 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 task - * resource. - * - * @param string $project - * @param string $location - * @param string $lake - * @param string $task - * - * @return string The formatted task resource. - */ - public static function taskName(string $project, string $location, string $lake, string $task): string - { - return self::getPathTemplate('task')->render([ - 'project' => $project, - 'location' => $location, - 'lake' => $lake, - 'task' => $task, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a zone - * resource. - * - * @param string $project - * @param string $location - * @param string $lake - * @param string $zone - * - * @return string The formatted zone resource. - */ - public static function zoneName(string $project, string $location, string $lake, string $zone): string - { - return self::getPathTemplate('zone')->render([ - 'project' => $project, - 'location' => $location, - 'lake' => $lake, - 'zone' => $zone, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - asset: projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/assets/{asset} - * - job: projects/{project}/locations/{location}/lakes/{lake}/tasks/{task}/jobs/{job} - * - lake: projects/{project}/locations/{location}/lakes/{lake} - * - location: projects/{project}/locations/{location} - * - task: projects/{project}/locations/{location}/lakes/{lake}/tasks/{task} - * - zone: projects/{project}/locations/{location}/lakes/{lake}/zones/{zone} - * - * 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 'dataplex.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\Dataplex\V1\DataplexServiceClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new DataplexServiceClient(['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); - } - - /** - * Cancel jobs running for the task resource. - * - * The async variant is {@see DataplexServiceClient::cancelJobAsync()} . - * - * @example samples/V1/DataplexServiceClient/cancel_job.php - * - * @param CancelJobRequest $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 cancelJob(CancelJobRequest $request, array $callOptions = []): void - { - $this->startApiCall('CancelJob', $request, $callOptions)->wait(); - } - - /** - * Creates an asset resource. - * - * The async variant is {@see DataplexServiceClient::createAssetAsync()} . - * - * @example samples/V1/DataplexServiceClient/create_asset.php - * - * @param CreateAssetRequest $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 createAsset(CreateAssetRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateAsset', $request, $callOptions)->wait(); - } - - /** - * Creates a lake resource. - * - * The async variant is {@see DataplexServiceClient::createLakeAsync()} . - * - * @example samples/V1/DataplexServiceClient/create_lake.php - * - * @param CreateLakeRequest $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 createLake(CreateLakeRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateLake', $request, $callOptions)->wait(); - } - - /** - * Creates a task resource within a lake. - * - * The async variant is {@see DataplexServiceClient::createTaskAsync()} . - * - * @example samples/V1/DataplexServiceClient/create_task.php - * - * @param CreateTaskRequest $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 createTask(CreateTaskRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateTask', $request, $callOptions)->wait(); - } - - /** - * Creates a zone resource within a lake. - * - * The async variant is {@see DataplexServiceClient::createZoneAsync()} . - * - * @example samples/V1/DataplexServiceClient/create_zone.php - * - * @param CreateZoneRequest $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 createZone(CreateZoneRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateZone', $request, $callOptions)->wait(); - } - - /** - * Deletes an asset resource. The referenced storage resource is detached - * (default) or deleted based on the associated Lifecycle policy. - * - * The async variant is {@see DataplexServiceClient::deleteAssetAsync()} . - * - * @example samples/V1/DataplexServiceClient/delete_asset.php - * - * @param DeleteAssetRequest $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 deleteAsset(DeleteAssetRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteAsset', $request, $callOptions)->wait(); - } - - /** - * Deletes a lake resource. All zones within the lake must be deleted before - * the lake can be deleted. - * - * The async variant is {@see DataplexServiceClient::deleteLakeAsync()} . - * - * @example samples/V1/DataplexServiceClient/delete_lake.php - * - * @param DeleteLakeRequest $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 deleteLake(DeleteLakeRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteLake', $request, $callOptions)->wait(); - } - - /** - * Delete the task resource. - * - * The async variant is {@see DataplexServiceClient::deleteTaskAsync()} . - * - * @example samples/V1/DataplexServiceClient/delete_task.php - * - * @param DeleteTaskRequest $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 deleteTask(DeleteTaskRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteTask', $request, $callOptions)->wait(); - } - - /** - * Deletes a zone resource. All assets within a zone must be deleted before - * the zone can be deleted. - * - * The async variant is {@see DataplexServiceClient::deleteZoneAsync()} . - * - * @example samples/V1/DataplexServiceClient/delete_zone.php - * - * @param DeleteZoneRequest $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 deleteZone(DeleteZoneRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteZone', $request, $callOptions)->wait(); - } - - /** - * Retrieves an asset resource. - * - * The async variant is {@see DataplexServiceClient::getAssetAsync()} . - * - * @example samples/V1/DataplexServiceClient/get_asset.php - * - * @param GetAssetRequest $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 Asset - * - * @throws ApiException Thrown if the API call fails. - */ - public function getAsset(GetAssetRequest $request, array $callOptions = []): Asset - { - return $this->startApiCall('GetAsset', $request, $callOptions)->wait(); - } - - /** - * Get job resource. - * - * The async variant is {@see DataplexServiceClient::getJobAsync()} . - * - * @example samples/V1/DataplexServiceClient/get_job.php - * - * @param GetJobRequest $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 Job - * - * @throws ApiException Thrown if the API call fails. - */ - public function getJob(GetJobRequest $request, array $callOptions = []): Job - { - return $this->startApiCall('GetJob', $request, $callOptions)->wait(); - } - - /** - * Retrieves a lake resource. - * - * The async variant is {@see DataplexServiceClient::getLakeAsync()} . - * - * @example samples/V1/DataplexServiceClient/get_lake.php - * - * @param GetLakeRequest $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 Lake - * - * @throws ApiException Thrown if the API call fails. - */ - public function getLake(GetLakeRequest $request, array $callOptions = []): Lake - { - return $this->startApiCall('GetLake', $request, $callOptions)->wait(); - } - - /** - * Get task resource. - * - * The async variant is {@see DataplexServiceClient::getTaskAsync()} . - * - * @example samples/V1/DataplexServiceClient/get_task.php - * - * @param GetTaskRequest $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 Task - * - * @throws ApiException Thrown if the API call fails. - */ - public function getTask(GetTaskRequest $request, array $callOptions = []): Task - { - return $this->startApiCall('GetTask', $request, $callOptions)->wait(); - } - - /** - * Retrieves a zone resource. - * - * The async variant is {@see DataplexServiceClient::getZoneAsync()} . - * - * @example samples/V1/DataplexServiceClient/get_zone.php - * - * @param GetZoneRequest $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 Zone - * - * @throws ApiException Thrown if the API call fails. - */ - public function getZone(GetZoneRequest $request, array $callOptions = []): Zone - { - return $this->startApiCall('GetZone', $request, $callOptions)->wait(); - } - - /** - * Lists action resources in an asset. - * - * The async variant is {@see DataplexServiceClient::listAssetActionsAsync()} . - * - * @example samples/V1/DataplexServiceClient/list_asset_actions.php - * - * @param ListAssetActionsRequest $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 listAssetActions(ListAssetActionsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListAssetActions', $request, $callOptions); - } - - /** - * Lists asset resources in a zone. - * - * The async variant is {@see DataplexServiceClient::listAssetsAsync()} . - * - * @example samples/V1/DataplexServiceClient/list_assets.php - * - * @param ListAssetsRequest $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 listAssets(ListAssetsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListAssets', $request, $callOptions); - } - - /** - * Lists Jobs under the given task. - * - * The async variant is {@see DataplexServiceClient::listJobsAsync()} . - * - * @example samples/V1/DataplexServiceClient/list_jobs.php - * - * @param ListJobsRequest $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 listJobs(ListJobsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListJobs', $request, $callOptions); - } - - /** - * Lists action resources in a lake. - * - * The async variant is {@see DataplexServiceClient::listLakeActionsAsync()} . - * - * @example samples/V1/DataplexServiceClient/list_lake_actions.php - * - * @param ListLakeActionsRequest $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 listLakeActions(ListLakeActionsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListLakeActions', $request, $callOptions); - } - - /** - * Lists lake resources in a project and location. - * - * The async variant is {@see DataplexServiceClient::listLakesAsync()} . - * - * @example samples/V1/DataplexServiceClient/list_lakes.php - * - * @param ListLakesRequest $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 listLakes(ListLakesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListLakes', $request, $callOptions); - } - - /** - * Lists tasks under the given lake. - * - * The async variant is {@see DataplexServiceClient::listTasksAsync()} . - * - * @example samples/V1/DataplexServiceClient/list_tasks.php - * - * @param ListTasksRequest $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 listTasks(ListTasksRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListTasks', $request, $callOptions); - } - - /** - * Lists action resources in a zone. - * - * The async variant is {@see DataplexServiceClient::listZoneActionsAsync()} . - * - * @example samples/V1/DataplexServiceClient/list_zone_actions.php - * - * @param ListZoneActionsRequest $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 listZoneActions(ListZoneActionsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListZoneActions', $request, $callOptions); - } - - /** - * Lists zone resources in a lake. - * - * The async variant is {@see DataplexServiceClient::listZonesAsync()} . - * - * @example samples/V1/DataplexServiceClient/list_zones.php - * - * @param ListZonesRequest $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 listZones(ListZonesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListZones', $request, $callOptions); - } - - /** - * Run an on demand execution of a Task. - * - * The async variant is {@see DataplexServiceClient::runTaskAsync()} . - * - * @example samples/V1/DataplexServiceClient/run_task.php - * - * @param RunTaskRequest $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 RunTaskResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function runTask(RunTaskRequest $request, array $callOptions = []): RunTaskResponse - { - return $this->startApiCall('RunTask', $request, $callOptions)->wait(); - } - - /** - * Updates an asset resource. - * - * The async variant is {@see DataplexServiceClient::updateAssetAsync()} . - * - * @example samples/V1/DataplexServiceClient/update_asset.php - * - * @param UpdateAssetRequest $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 updateAsset(UpdateAssetRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateAsset', $request, $callOptions)->wait(); - } - - /** - * Updates a lake resource. - * - * The async variant is {@see DataplexServiceClient::updateLakeAsync()} . - * - * @example samples/V1/DataplexServiceClient/update_lake.php - * - * @param UpdateLakeRequest $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 updateLake(UpdateLakeRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateLake', $request, $callOptions)->wait(); - } - - /** - * Update the task resource. - * - * The async variant is {@see DataplexServiceClient::updateTaskAsync()} . - * - * @example samples/V1/DataplexServiceClient/update_task.php - * - * @param UpdateTaskRequest $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 updateTask(UpdateTaskRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateTask', $request, $callOptions)->wait(); - } - - /** - * Updates a zone resource. - * - * The async variant is {@see DataplexServiceClient::updateZoneAsync()} . - * - * @example samples/V1/DataplexServiceClient/update_zone.php - * - * @param UpdateZoneRequest $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 updateZone(UpdateZoneRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateZone', $request, $callOptions)->wait(); - } - - /** - * Gets information about a location. - * - * The async variant is {@see DataplexServiceClient::getLocationAsync()} . - * - * @example samples/V1/DataplexServiceClient/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 DataplexServiceClient::listLocationsAsync()} . - * - * @example samples/V1/DataplexServiceClient/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); - } - - /** - * Gets the access control policy for a resource. Returns an empty policy - if the resource exists and does not have a policy set. - * - * The async variant is {@see DataplexServiceClient::getIamPolicyAsync()} . - * - * @example samples/V1/DataplexServiceClient/get_iam_policy.php - * - * @param GetIamPolicyRequest $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 Policy - * - * @throws ApiException Thrown if the API call fails. - */ - public function getIamPolicy(GetIamPolicyRequest $request, array $callOptions = []): Policy - { - return $this->startApiCall('GetIamPolicy', $request, $callOptions)->wait(); - } - - /** - * Sets the access control policy on the specified resource. Replaces - any existing policy. - - Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` - errors. - * - * The async variant is {@see DataplexServiceClient::setIamPolicyAsync()} . - * - * @example samples/V1/DataplexServiceClient/set_iam_policy.php - * - * @param SetIamPolicyRequest $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 Policy - * - * @throws ApiException Thrown if the API call fails. - */ - public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = []): Policy - { - return $this->startApiCall('SetIamPolicy', $request, $callOptions)->wait(); - } - - /** - * Returns permissions that a caller has on the specified resource. If the - resource does not exist, this will return an empty set of - permissions, not a `NOT_FOUND` error. - - Note: This operation is designed to be used for building - permission-aware UIs and command-line tools, not for authorization - checking. This operation may "fail open" without warning. - * - * The async variant is {@see DataplexServiceClient::testIamPermissionsAsync()} . - * - * @example samples/V1/DataplexServiceClient/test_iam_permissions.php - * - * @param TestIamPermissionsRequest $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 TestIamPermissionsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse - { - return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/Dataplex/v1/src/V1/Client/MetadataServiceClient.php b/owl-bot-staging/Dataplex/v1/src/V1/Client/MetadataServiceClient.php deleted file mode 100644 index 9193289bcd64..000000000000 --- a/owl-bot-staging/Dataplex/v1/src/V1/Client/MetadataServiceClient.php +++ /dev/null @@ -1,700 +0,0 @@ - createEntityAsync(CreateEntityRequest $request, array $optionalArgs = []) - * @method PromiseInterface createPartitionAsync(CreatePartitionRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteEntityAsync(DeleteEntityRequest $request, array $optionalArgs = []) - * @method PromiseInterface deletePartitionAsync(DeletePartitionRequest $request, array $optionalArgs = []) - * @method PromiseInterface getEntityAsync(GetEntityRequest $request, array $optionalArgs = []) - * @method PromiseInterface getPartitionAsync(GetPartitionRequest $request, array $optionalArgs = []) - * @method PromiseInterface listEntitiesAsync(ListEntitiesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listPartitionsAsync(ListPartitionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateEntityAsync(UpdateEntityRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) - */ -final class MetadataServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.dataplex.v1.MetadataService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'dataplex.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'dataplex.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', - 'https://www.googleapis.com/auth/dataplex.read-write', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/metadata_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/metadata_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/metadata_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/metadata_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a entity - * resource. - * - * @param string $project - * @param string $location - * @param string $lake - * @param string $zone - * @param string $entity - * - * @return string The formatted entity resource. - */ - public static function entityName(string $project, string $location, string $lake, string $zone, string $entity): string - { - return self::getPathTemplate('entity')->render([ - 'project' => $project, - 'location' => $location, - 'lake' => $lake, - 'zone' => $zone, - 'entity' => $entity, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a partition - * resource. - * - * @param string $project - * @param string $location - * @param string $lake - * @param string $zone - * @param string $entity - * @param string $partition - * - * @return string The formatted partition resource. - */ - public static function partitionName(string $project, string $location, string $lake, string $zone, string $entity, string $partition): string - { - return self::getPathTemplate('partition')->render([ - 'project' => $project, - 'location' => $location, - 'lake' => $lake, - 'zone' => $zone, - 'entity' => $entity, - 'partition' => $partition, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a zone - * resource. - * - * @param string $project - * @param string $location - * @param string $lake - * @param string $zone - * - * @return string The formatted zone resource. - */ - public static function zoneName(string $project, string $location, string $lake, string $zone): string - { - return self::getPathTemplate('zone')->render([ - 'project' => $project, - 'location' => $location, - 'lake' => $lake, - 'zone' => $zone, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - entity: projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/entities/{entity} - * - partition: projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/entities/{entity}/partitions/{partition} - * - zone: projects/{project}/locations/{location}/lakes/{lake}/zones/{zone} - * - * 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 'dataplex.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\Dataplex\V1\MetadataServiceClient; - * $creds = new ServiceAccountCredentials($scopes, $json); - * $options = new MetadataServiceClient(['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); - } - - /** - * Create a metadata entity. - * - * The async variant is {@see MetadataServiceClient::createEntityAsync()} . - * - * @example samples/V1/MetadataServiceClient/create_entity.php - * - * @param CreateEntityRequest $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 Entity - * - * @throws ApiException Thrown if the API call fails. - */ - public function createEntity(CreateEntityRequest $request, array $callOptions = []): Entity - { - return $this->startApiCall('CreateEntity', $request, $callOptions)->wait(); - } - - /** - * Create a metadata partition. - * - * The async variant is {@see MetadataServiceClient::createPartitionAsync()} . - * - * @example samples/V1/MetadataServiceClient/create_partition.php - * - * @param CreatePartitionRequest $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 Partition - * - * @throws ApiException Thrown if the API call fails. - */ - public function createPartition(CreatePartitionRequest $request, array $callOptions = []): Partition - { - return $this->startApiCall('CreatePartition', $request, $callOptions)->wait(); - } - - /** - * Delete a metadata entity. - * - * The async variant is {@see MetadataServiceClient::deleteEntityAsync()} . - * - * @example samples/V1/MetadataServiceClient/delete_entity.php - * - * @param DeleteEntityRequest $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 deleteEntity(DeleteEntityRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteEntity', $request, $callOptions)->wait(); - } - - /** - * Delete a metadata partition. - * - * The async variant is {@see MetadataServiceClient::deletePartitionAsync()} . - * - * @example samples/V1/MetadataServiceClient/delete_partition.php - * - * @param DeletePartitionRequest $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 deletePartition(DeletePartitionRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeletePartition', $request, $callOptions)->wait(); - } - - /** - * Get a metadata entity. - * - * The async variant is {@see MetadataServiceClient::getEntityAsync()} . - * - * @example samples/V1/MetadataServiceClient/get_entity.php - * - * @param GetEntityRequest $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 Entity - * - * @throws ApiException Thrown if the API call fails. - */ - public function getEntity(GetEntityRequest $request, array $callOptions = []): Entity - { - return $this->startApiCall('GetEntity', $request, $callOptions)->wait(); - } - - /** - * Get a metadata partition of an entity. - * - * The async variant is {@see MetadataServiceClient::getPartitionAsync()} . - * - * @example samples/V1/MetadataServiceClient/get_partition.php - * - * @param GetPartitionRequest $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 Partition - * - * @throws ApiException Thrown if the API call fails. - */ - public function getPartition(GetPartitionRequest $request, array $callOptions = []): Partition - { - return $this->startApiCall('GetPartition', $request, $callOptions)->wait(); - } - - /** - * List metadata entities in a zone. - * - * The async variant is {@see MetadataServiceClient::listEntitiesAsync()} . - * - * @example samples/V1/MetadataServiceClient/list_entities.php - * - * @param ListEntitiesRequest $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 listEntities(ListEntitiesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListEntities', $request, $callOptions); - } - - /** - * List metadata partitions of an entity. - * - * The async variant is {@see MetadataServiceClient::listPartitionsAsync()} . - * - * @example samples/V1/MetadataServiceClient/list_partitions.php - * - * @param ListPartitionsRequest $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 listPartitions(ListPartitionsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListPartitions', $request, $callOptions); - } - - /** - * Update a metadata entity. Only supports full resource update. - * - * The async variant is {@see MetadataServiceClient::updateEntityAsync()} . - * - * @example samples/V1/MetadataServiceClient/update_entity.php - * - * @param UpdateEntityRequest $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 Entity - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateEntity(UpdateEntityRequest $request, array $callOptions = []): Entity - { - return $this->startApiCall('UpdateEntity', $request, $callOptions)->wait(); - } - - /** - * Gets information about a location. - * - * The async variant is {@see MetadataServiceClient::getLocationAsync()} . - * - * @example samples/V1/MetadataServiceClient/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 MetadataServiceClient::listLocationsAsync()} . - * - * @example samples/V1/MetadataServiceClient/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); - } - - /** - * Gets the access control policy for a resource. Returns an empty policy - if the resource exists and does not have a policy set. - * - * The async variant is {@see MetadataServiceClient::getIamPolicyAsync()} . - * - * @example samples/V1/MetadataServiceClient/get_iam_policy.php - * - * @param GetIamPolicyRequest $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 Policy - * - * @throws ApiException Thrown if the API call fails. - */ - public function getIamPolicy(GetIamPolicyRequest $request, array $callOptions = []): Policy - { - return $this->startApiCall('GetIamPolicy', $request, $callOptions)->wait(); - } - - /** - * Sets the access control policy on the specified resource. Replaces - any existing policy. - - Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` - errors. - * - * The async variant is {@see MetadataServiceClient::setIamPolicyAsync()} . - * - * @example samples/V1/MetadataServiceClient/set_iam_policy.php - * - * @param SetIamPolicyRequest $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 Policy - * - * @throws ApiException Thrown if the API call fails. - */ - public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = []): Policy - { - return $this->startApiCall('SetIamPolicy', $request, $callOptions)->wait(); - } - - /** - * Returns permissions that a caller has on the specified resource. If the - resource does not exist, this will return an empty set of - permissions, not a `NOT_FOUND` error. - - Note: This operation is designed to be used for building - permission-aware UIs and command-line tools, not for authorization - checking. This operation may "fail open" without warning. - * - * The async variant is {@see MetadataServiceClient::testIamPermissionsAsync()} . - * - * @example samples/V1/MetadataServiceClient/test_iam_permissions.php - * - * @param TestIamPermissionsRequest $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 TestIamPermissionsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse - { - return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/Dataplex/v1/src/V1/gapic_metadata.json b/owl-bot-staging/Dataplex/v1/src/V1/gapic_metadata.json deleted file mode 100644 index fb49daf13f33..000000000000 --- a/owl-bot-staging/Dataplex/v1/src/V1/gapic_metadata.json +++ /dev/null @@ -1,965 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.cloud.dataplex.v1", - "libraryPackage": "Google\\Cloud\\Dataplex\\V1", - "services": { - "DataplexService": { - "clients": { - "grpc": { - "libraryClient": "DataplexServiceGapicClient", - "rpcs": { - "CancelJob": { - "methods": [ - "cancelJob" - ] - }, - "CreateAsset": { - "methods": [ - "createAsset" - ] - }, - "CreateLake": { - "methods": [ - "createLake" - ] - }, - "CreateTask": { - "methods": [ - "createTask" - ] - }, - "CreateZone": { - "methods": [ - "createZone" - ] - }, - "DeleteAsset": { - "methods": [ - "deleteAsset" - ] - }, - "DeleteLake": { - "methods": [ - "deleteLake" - ] - }, - "DeleteTask": { - "methods": [ - "deleteTask" - ] - }, - "DeleteZone": { - "methods": [ - "deleteZone" - ] - }, - "GetAsset": { - "methods": [ - "getAsset" - ] - }, - "GetJob": { - "methods": [ - "getJob" - ] - }, - "GetLake": { - "methods": [ - "getLake" - ] - }, - "GetTask": { - "methods": [ - "getTask" - ] - }, - "GetZone": { - "methods": [ - "getZone" - ] - }, - "ListAssetActions": { - "methods": [ - "listAssetActions" - ] - }, - "ListAssets": { - "methods": [ - "listAssets" - ] - }, - "ListJobs": { - "methods": [ - "listJobs" - ] - }, - "ListLakeActions": { - "methods": [ - "listLakeActions" - ] - }, - "ListLakes": { - "methods": [ - "listLakes" - ] - }, - "ListTasks": { - "methods": [ - "listTasks" - ] - }, - "ListZoneActions": { - "methods": [ - "listZoneActions" - ] - }, - "ListZones": { - "methods": [ - "listZones" - ] - }, - "RunTask": { - "methods": [ - "runTask" - ] - }, - "UpdateAsset": { - "methods": [ - "updateAsset" - ] - }, - "UpdateLake": { - "methods": [ - "updateLake" - ] - }, - "UpdateTask": { - "methods": [ - "updateTask" - ] - }, - "UpdateZone": { - "methods": [ - "updateZone" - ] - }, - "GetLocation": { - "methods": [ - "getLocation" - ] - }, - "ListLocations": { - "methods": [ - "listLocations" - ] - }, - "GetIamPolicy": { - "methods": [ - "getIamPolicy" - ] - }, - "SetIamPolicy": { - "methods": [ - "setIamPolicy" - ] - }, - "TestIamPermissions": { - "methods": [ - "testIamPermissions" - ] - } - } - } - } - }, - "BusinessGlossaryService": { - "clients": { - "grpc": { - "libraryClient": "BusinessGlossaryServiceGapicClient", - "rpcs": { - "CreateGlossary": { - "methods": [ - "createGlossary" - ] - }, - "CreateGlossaryCategory": { - "methods": [ - "createGlossaryCategory" - ] - }, - "CreateGlossaryTerm": { - "methods": [ - "createGlossaryTerm" - ] - }, - "DeleteGlossary": { - "methods": [ - "deleteGlossary" - ] - }, - "DeleteGlossaryCategory": { - "methods": [ - "deleteGlossaryCategory" - ] - }, - "DeleteGlossaryTerm": { - "methods": [ - "deleteGlossaryTerm" - ] - }, - "GetGlossary": { - "methods": [ - "getGlossary" - ] - }, - "GetGlossaryCategory": { - "methods": [ - "getGlossaryCategory" - ] - }, - "GetGlossaryTerm": { - "methods": [ - "getGlossaryTerm" - ] - }, - "ListGlossaries": { - "methods": [ - "listGlossaries" - ] - }, - "ListGlossaryCategories": { - "methods": [ - "listGlossaryCategories" - ] - }, - "ListGlossaryTerms": { - "methods": [ - "listGlossaryTerms" - ] - }, - "UpdateGlossary": { - "methods": [ - "updateGlossary" - ] - }, - "UpdateGlossaryCategory": { - "methods": [ - "updateGlossaryCategory" - ] - }, - "UpdateGlossaryTerm": { - "methods": [ - "updateGlossaryTerm" - ] - }, - "GetLocation": { - "methods": [ - "getLocation" - ] - }, - "ListLocations": { - "methods": [ - "listLocations" - ] - }, - "GetIamPolicy": { - "methods": [ - "getIamPolicy" - ] - }, - "SetIamPolicy": { - "methods": [ - "setIamPolicy" - ] - }, - "TestIamPermissions": { - "methods": [ - "testIamPermissions" - ] - } - } - } - } - }, - "CatalogService": { - "clients": { - "grpc": { - "libraryClient": "CatalogServiceGapicClient", - "rpcs": { - "CancelMetadataJob": { - "methods": [ - "cancelMetadataJob" - ] - }, - "CreateAspectType": { - "methods": [ - "createAspectType" - ] - }, - "CreateEntry": { - "methods": [ - "createEntry" - ] - }, - "CreateEntryGroup": { - "methods": [ - "createEntryGroup" - ] - }, - "CreateEntryLink": { - "methods": [ - "createEntryLink" - ] - }, - "CreateEntryType": { - "methods": [ - "createEntryType" - ] - }, - "CreateMetadataFeed": { - "methods": [ - "createMetadataFeed" - ] - }, - "CreateMetadataJob": { - "methods": [ - "createMetadataJob" - ] - }, - "DeleteAspectType": { - "methods": [ - "deleteAspectType" - ] - }, - "DeleteEntry": { - "methods": [ - "deleteEntry" - ] - }, - "DeleteEntryGroup": { - "methods": [ - "deleteEntryGroup" - ] - }, - "DeleteEntryLink": { - "methods": [ - "deleteEntryLink" - ] - }, - "DeleteEntryType": { - "methods": [ - "deleteEntryType" - ] - }, - "DeleteMetadataFeed": { - "methods": [ - "deleteMetadataFeed" - ] - }, - "GetAspectType": { - "methods": [ - "getAspectType" - ] - }, - "GetEntry": { - "methods": [ - "getEntry" - ] - }, - "GetEntryGroup": { - "methods": [ - "getEntryGroup" - ] - }, - "GetEntryLink": { - "methods": [ - "getEntryLink" - ] - }, - "GetEntryType": { - "methods": [ - "getEntryType" - ] - }, - "GetMetadataFeed": { - "methods": [ - "getMetadataFeed" - ] - }, - "GetMetadataJob": { - "methods": [ - "getMetadataJob" - ] - }, - "ListAspectTypes": { - "methods": [ - "listAspectTypes" - ] - }, - "ListEntries": { - "methods": [ - "listEntries" - ] - }, - "ListEntryGroups": { - "methods": [ - "listEntryGroups" - ] - }, - "ListEntryTypes": { - "methods": [ - "listEntryTypes" - ] - }, - "ListMetadataFeeds": { - "methods": [ - "listMetadataFeeds" - ] - }, - "ListMetadataJobs": { - "methods": [ - "listMetadataJobs" - ] - }, - "LookupContext": { - "methods": [ - "lookupContext" - ] - }, - "LookupEntry": { - "methods": [ - "lookupEntry" - ] - }, - "LookupEntryLinks": { - "methods": [ - "lookupEntryLinks" - ] - }, - "ModifyEntry": { - "methods": [ - "modifyEntry" - ] - }, - "SearchEntries": { - "methods": [ - "searchEntries" - ] - }, - "UpdateAspectType": { - "methods": [ - "updateAspectType" - ] - }, - "UpdateEntry": { - "methods": [ - "updateEntry" - ] - }, - "UpdateEntryGroup": { - "methods": [ - "updateEntryGroup" - ] - }, - "UpdateEntryLink": { - "methods": [ - "updateEntryLink" - ] - }, - "UpdateEntryType": { - "methods": [ - "updateEntryType" - ] - }, - "UpdateMetadataFeed": { - "methods": [ - "updateMetadataFeed" - ] - }, - "GetLocation": { - "methods": [ - "getLocation" - ] - }, - "ListLocations": { - "methods": [ - "listLocations" - ] - }, - "GetIamPolicy": { - "methods": [ - "getIamPolicy" - ] - }, - "SetIamPolicy": { - "methods": [ - "setIamPolicy" - ] - }, - "TestIamPermissions": { - "methods": [ - "testIamPermissions" - ] - } - } - } - } - }, - "CmekService": { - "clients": { - "grpc": { - "libraryClient": "CmekServiceGapicClient", - "rpcs": { - "CreateEncryptionConfig": { - "methods": [ - "createEncryptionConfig" - ] - }, - "DeleteEncryptionConfig": { - "methods": [ - "deleteEncryptionConfig" - ] - }, - "GetEncryptionConfig": { - "methods": [ - "getEncryptionConfig" - ] - }, - "ListEncryptionConfigs": { - "methods": [ - "listEncryptionConfigs" - ] - }, - "UpdateEncryptionConfig": { - "methods": [ - "updateEncryptionConfig" - ] - }, - "GetLocation": { - "methods": [ - "getLocation" - ] - }, - "ListLocations": { - "methods": [ - "listLocations" - ] - }, - "GetIamPolicy": { - "methods": [ - "getIamPolicy" - ] - }, - "SetIamPolicy": { - "methods": [ - "setIamPolicy" - ] - }, - "TestIamPermissions": { - "methods": [ - "testIamPermissions" - ] - } - } - } - } - }, - "ContentService": { - "clients": { - "grpc": { - "libraryClient": "ContentServiceGapicClient", - "rpcs": { - "GetLocation": { - "methods": [ - "getLocation" - ] - }, - "ListLocations": { - "methods": [ - "listLocations" - ] - }, - "GetIamPolicy": { - "methods": [ - "getIamPolicy" - ] - }, - "SetIamPolicy": { - "methods": [ - "setIamPolicy" - ] - }, - "TestIamPermissions": { - "methods": [ - "testIamPermissions" - ] - } - } - } - } - }, - "DataProductService": { - "clients": { - "grpc": { - "libraryClient": "DataProductServiceGapicClient", - "rpcs": { - "CreateDataAsset": { - "methods": [ - "createDataAsset" - ] - }, - "CreateDataProduct": { - "methods": [ - "createDataProduct" - ] - }, - "DeleteDataAsset": { - "methods": [ - "deleteDataAsset" - ] - }, - "DeleteDataProduct": { - "methods": [ - "deleteDataProduct" - ] - }, - "GetDataAsset": { - "methods": [ - "getDataAsset" - ] - }, - "GetDataProduct": { - "methods": [ - "getDataProduct" - ] - }, - "ListDataAssets": { - "methods": [ - "listDataAssets" - ] - }, - "ListDataProducts": { - "methods": [ - "listDataProducts" - ] - }, - "RequestDataProductAccess": { - "methods": [ - "requestDataProductAccess" - ] - }, - "UpdateDataAsset": { - "methods": [ - "updateDataAsset" - ] - }, - "UpdateDataProduct": { - "methods": [ - "updateDataProduct" - ] - }, - "GetLocation": { - "methods": [ - "getLocation" - ] - }, - "ListLocations": { - "methods": [ - "listLocations" - ] - }, - "GetIamPolicy": { - "methods": [ - "getIamPolicy" - ] - }, - "SetIamPolicy": { - "methods": [ - "setIamPolicy" - ] - }, - "TestIamPermissions": { - "methods": [ - "testIamPermissions" - ] - } - } - } - } - }, - "DataTaxonomyService": { - "clients": { - "grpc": { - "libraryClient": "DataTaxonomyServiceGapicClient", - "rpcs": { - "CreateDataAttribute": { - "methods": [ - "createDataAttribute" - ] - }, - "CreateDataAttributeBinding": { - "methods": [ - "createDataAttributeBinding" - ] - }, - "CreateDataTaxonomy": { - "methods": [ - "createDataTaxonomy" - ] - }, - "DeleteDataAttribute": { - "methods": [ - "deleteDataAttribute" - ] - }, - "DeleteDataAttributeBinding": { - "methods": [ - "deleteDataAttributeBinding" - ] - }, - "DeleteDataTaxonomy": { - "methods": [ - "deleteDataTaxonomy" - ] - }, - "GetDataAttribute": { - "methods": [ - "getDataAttribute" - ] - }, - "GetDataAttributeBinding": { - "methods": [ - "getDataAttributeBinding" - ] - }, - "GetDataTaxonomy": { - "methods": [ - "getDataTaxonomy" - ] - }, - "ListDataAttributeBindings": { - "methods": [ - "listDataAttributeBindings" - ] - }, - "ListDataAttributes": { - "methods": [ - "listDataAttributes" - ] - }, - "ListDataTaxonomies": { - "methods": [ - "listDataTaxonomies" - ] - }, - "UpdateDataAttribute": { - "methods": [ - "updateDataAttribute" - ] - }, - "UpdateDataAttributeBinding": { - "methods": [ - "updateDataAttributeBinding" - ] - }, - "UpdateDataTaxonomy": { - "methods": [ - "updateDataTaxonomy" - ] - }, - "GetLocation": { - "methods": [ - "getLocation" - ] - }, - "ListLocations": { - "methods": [ - "listLocations" - ] - }, - "GetIamPolicy": { - "methods": [ - "getIamPolicy" - ] - }, - "SetIamPolicy": { - "methods": [ - "setIamPolicy" - ] - }, - "TestIamPermissions": { - "methods": [ - "testIamPermissions" - ] - } - } - } - } - }, - "DataScanService": { - "clients": { - "grpc": { - "libraryClient": "DataScanServiceGapicClient", - "rpcs": { - "CancelDataScanJob": { - "methods": [ - "cancelDataScanJob" - ] - }, - "CreateDataScan": { - "methods": [ - "createDataScan" - ] - }, - "DeleteDataScan": { - "methods": [ - "deleteDataScan" - ] - }, - "GenerateDataQualityRules": { - "methods": [ - "generateDataQualityRules" - ] - }, - "GetDataScan": { - "methods": [ - "getDataScan" - ] - }, - "GetDataScanJob": { - "methods": [ - "getDataScanJob" - ] - }, - "ListDataScanJobs": { - "methods": [ - "listDataScanJobs" - ] - }, - "ListDataScans": { - "methods": [ - "listDataScans" - ] - }, - "RunDataScan": { - "methods": [ - "runDataScan" - ] - }, - "UpdateDataScan": { - "methods": [ - "updateDataScan" - ] - }, - "GetLocation": { - "methods": [ - "getLocation" - ] - }, - "ListLocations": { - "methods": [ - "listLocations" - ] - }, - "GetIamPolicy": { - "methods": [ - "getIamPolicy" - ] - }, - "SetIamPolicy": { - "methods": [ - "setIamPolicy" - ] - }, - "TestIamPermissions": { - "methods": [ - "testIamPermissions" - ] - } - } - } - } - }, - "MetadataService": { - "clients": { - "grpc": { - "libraryClient": "MetadataServiceGapicClient", - "rpcs": { - "CreateEntity": { - "methods": [ - "createEntity" - ] - }, - "CreatePartition": { - "methods": [ - "createPartition" - ] - }, - "DeleteEntity": { - "methods": [ - "deleteEntity" - ] - }, - "DeletePartition": { - "methods": [ - "deletePartition" - ] - }, - "GetEntity": { - "methods": [ - "getEntity" - ] - }, - "GetPartition": { - "methods": [ - "getPartition" - ] - }, - "ListEntities": { - "methods": [ - "listEntities" - ] - }, - "ListPartitions": { - "methods": [ - "listPartitions" - ] - }, - "UpdateEntity": { - "methods": [ - "updateEntity" - ] - }, - "GetLocation": { - "methods": [ - "getLocation" - ] - }, - "ListLocations": { - "methods": [ - "listLocations" - ] - }, - "GetIamPolicy": { - "methods": [ - "getIamPolicy" - ] - }, - "SetIamPolicy": { - "methods": [ - "setIamPolicy" - ] - }, - "TestIamPermissions": { - "methods": [ - "testIamPermissions" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/Dataplex/v1/src/V1/resources/business_glossary_service_client_config.json b/owl-bot-staging/Dataplex/v1/src/V1/resources/business_glossary_service_client_config.json deleted file mode 100644 index bef7535d2fcc..000000000000 --- a/owl-bot-staging/Dataplex/v1/src/V1/resources/business_glossary_service_client_config.json +++ /dev/null @@ -1,122 +0,0 @@ -{ - "interfaces": { - "google.cloud.dataplex.v1.BusinessGlossaryService": { - "retry_codes": { - "no_retry_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 - } - }, - "methods": { - "CreateGlossary": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "CreateGlossaryCategory": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "CreateGlossaryTerm": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "DeleteGlossary": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "DeleteGlossaryCategory": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "DeleteGlossaryTerm": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetGlossary": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetGlossaryCategory": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetGlossaryTerm": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListGlossaries": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListGlossaryCategories": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListGlossaryTerms": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "UpdateGlossary": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "UpdateGlossaryCategory": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "UpdateGlossaryTerm": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_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" - }, - "GetIamPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "SetIamPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "TestIamPermissions": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/Dataplex/v1/src/V1/resources/business_glossary_service_descriptor_config.php b/owl-bot-staging/Dataplex/v1/src/V1/resources/business_glossary_service_descriptor_config.php deleted file mode 100644 index 55e41b3abe86..000000000000 --- a/owl-bot-staging/Dataplex/v1/src/V1/resources/business_glossary_service_descriptor_config.php +++ /dev/null @@ -1,335 +0,0 @@ - [ - 'google.cloud.dataplex.v1.BusinessGlossaryService' => [ - 'CreateGlossary' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Dataplex\V1\Glossary', - 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteGlossary' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateGlossary' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Dataplex\V1\Glossary', - 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'glossary.name', - 'fieldAccessors' => [ - 'getGlossary', - 'getName', - ], - ], - ], - ], - 'CreateGlossaryCategory' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\GlossaryCategory', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateGlossaryTerm' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\GlossaryTerm', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteGlossaryCategory' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteGlossaryTerm' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetGlossary' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\Glossary', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetGlossaryCategory' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\GlossaryCategory', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetGlossaryTerm' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\GlossaryTerm', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListGlossaries' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getGlossaries', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\ListGlossariesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListGlossaryCategories' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getCategories', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\ListGlossaryCategoriesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListGlossaryTerms' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getTerms', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\ListGlossaryTermsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateGlossaryCategory' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\GlossaryCategory', - 'headerParams' => [ - [ - 'keyName' => 'category.name', - 'fieldAccessors' => [ - 'getCategory', - 'getName', - ], - ], - ], - ], - 'UpdateGlossaryTerm' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\GlossaryTerm', - 'headerParams' => [ - [ - 'keyName' => 'term.name', - 'fieldAccessors' => [ - 'getTerm', - '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', - ], - 'GetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'SetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'TestIamPermissions' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\TestIamPermissionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'templateMap' => [ - 'glossary' => 'projects/{project}/locations/{location}/glossaries/{glossary}', - 'glossaryCategory' => 'projects/{project}/locations/{location}/glossaries/{glossary}/categories/{glossary_category}', - 'glossaryTerm' => 'projects/{project}/locations/{location}/glossaries/{glossary}/terms/{glossary_term}', - 'location' => 'projects/{project}/locations/{location}', - ], - ], - ], -]; diff --git a/owl-bot-staging/Dataplex/v1/src/V1/resources/business_glossary_service_rest_client_config.php b/owl-bot-staging/Dataplex/v1/src/V1/resources/business_glossary_service_rest_client_config.php deleted file mode 100644 index 01cc086c952d..000000000000 --- a/owl-bot-staging/Dataplex/v1/src/V1/resources/business_glossary_service_rest_client_config.php +++ /dev/null @@ -1,626 +0,0 @@ - [ - 'google.cloud.dataplex.v1.BusinessGlossaryService' => [ - 'CreateGlossary' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/glossaries', - 'body' => 'glossary', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'glossary_id', - ], - ], - 'CreateGlossaryCategory' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/glossaries/*}/categories', - 'body' => 'category', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'category_id', - ], - ], - 'CreateGlossaryTerm' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/glossaries/*}/terms', - 'body' => 'term', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'term_id', - ], - ], - 'DeleteGlossary' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/glossaries/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteGlossaryCategory' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/glossaries/*/categories/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteGlossaryTerm' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/glossaries/*/terms/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetGlossary' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/glossaries/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetGlossaryCategory' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/glossaries/*/categories/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetGlossaryTerm' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/glossaries/*/terms/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListGlossaries' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/glossaries', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListGlossaryCategories' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/glossaries/*}/categories', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListGlossaryTerms' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/glossaries/*}/terms', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateGlossary' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{glossary.name=projects/*/locations/*/glossaries/*}', - 'body' => 'glossary', - 'placeholders' => [ - 'glossary.name' => [ - 'getters' => [ - 'getGlossary', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateGlossaryCategory' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{category.name=projects/*/locations/*/glossaries/*/categories/*}', - 'body' => 'category', - 'placeholders' => [ - 'category.name' => [ - 'getters' => [ - 'getCategory', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateGlossaryTerm' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{term.name=projects/*/locations/*/glossaries/*/terms/*}', - 'body' => 'term', - 'placeholders' => [ - 'term.name' => [ - 'getters' => [ - 'getTerm', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - ], - 'google.cloud.location.Locations' => [ - 'GetLocation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListLocations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/locations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.iam.v1.IAMPolicy' => [ - 'GetIamPolicy' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*}:getIamPolicy', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryTypes/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/aspectTypes/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryGroups/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/governanceRules/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/changeRequests/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:getIamPolicy', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'SetIamPolicy' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*}:setIamPolicy', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryTypes/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/aspectTypes/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryGroups/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/governanceRules/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/changeRequests/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:setIamPolicy', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'TestIamPermissions' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*}:testIamPermissions', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryTypes/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/aspectTypes/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryGroups/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/governanceRules/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/changeRequests/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:testIamPermissions', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}:cancel', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*}/operations', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/Dataplex/v1/src/V1/resources/catalog_service_client_config.json b/owl-bot-staging/Dataplex/v1/src/V1/resources/catalog_service_client_config.json deleted file mode 100644 index 4a3df73c84c8..000000000000 --- a/owl-bot-staging/Dataplex/v1/src/V1/resources/catalog_service_client_config.json +++ /dev/null @@ -1,296 +0,0 @@ -{ - "interfaces": { - "google.cloud.dataplex.v1.CatalogService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_7_codes": [ - "UNAVAILABLE", - "RESOURCE_EXHAUSTED" - ], - "retry_policy_8_codes": [ - "UNAVAILABLE", - "RESOURCE_EXHAUSTED" - ], - "no_retry_4_codes": [], - "retry_policy_9_codes": [ - "UNAVAILABLE", - "RESOURCE_EXHAUSTED" - ], - "no_retry_5_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_7_params": { - "initial_retry_delay_millis": 1000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 10000, - "initial_rpc_timeout_millis": 20000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 20000, - "total_timeout_millis": 20000 - }, - "retry_policy_8_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_4_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 - }, - "retry_policy_9_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_5_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": { - "CancelMetadataJob": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "CreateAspectType": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_5_codes", - "retry_params_name": "no_retry_5_params" - }, - "CreateEntry": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_4_codes", - "retry_params_name": "no_retry_4_params" - }, - "CreateEntryGroup": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_5_codes", - "retry_params_name": "no_retry_5_params" - }, - "CreateEntryLink": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_4_codes", - "retry_params_name": "no_retry_4_params" - }, - "CreateEntryType": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_5_codes", - "retry_params_name": "no_retry_5_params" - }, - "CreateMetadataFeed": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "CreateMetadataJob": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "DeleteAspectType": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_5_codes", - "retry_params_name": "no_retry_5_params" - }, - "DeleteEntry": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_4_codes", - "retry_params_name": "no_retry_4_params" - }, - "DeleteEntryGroup": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_5_codes", - "retry_params_name": "no_retry_5_params" - }, - "DeleteEntryLink": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_4_codes", - "retry_params_name": "no_retry_4_params" - }, - "DeleteEntryType": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_5_codes", - "retry_params_name": "no_retry_5_params" - }, - "DeleteMetadataFeed": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetAspectType": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_9_codes", - "retry_params_name": "retry_policy_9_params" - }, - "GetEntry": { - "timeout_millis": 20000, - "retry_codes_name": "retry_policy_7_codes", - "retry_params_name": "retry_policy_7_params" - }, - "GetEntryGroup": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_9_codes", - "retry_params_name": "retry_policy_9_params" - }, - "GetEntryLink": { - "timeout_millis": 20000, - "retry_codes_name": "retry_policy_7_codes", - "retry_params_name": "retry_policy_7_params" - }, - "GetEntryType": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_9_codes", - "retry_params_name": "retry_policy_9_params" - }, - "GetMetadataFeed": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetMetadataJob": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListAspectTypes": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_9_codes", - "retry_params_name": "retry_policy_9_params" - }, - "ListEntries": { - "timeout_millis": 20000, - "retry_codes_name": "retry_policy_7_codes", - "retry_params_name": "retry_policy_7_params" - }, - "ListEntryGroups": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_9_codes", - "retry_params_name": "retry_policy_9_params" - }, - "ListEntryTypes": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_9_codes", - "retry_params_name": "retry_policy_9_params" - }, - "ListMetadataFeeds": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListMetadataJobs": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "LookupContext": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "LookupEntry": { - "timeout_millis": 20000, - "retry_codes_name": "retry_policy_7_codes", - "retry_params_name": "retry_policy_7_params" - }, - "LookupEntryLinks": { - "timeout_millis": 20000, - "retry_codes_name": "retry_policy_7_codes", - "retry_params_name": "retry_policy_7_params" - }, - "ModifyEntry": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "SearchEntries": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_9_codes", - "retry_params_name": "retry_policy_9_params" - }, - "UpdateAspectType": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_5_codes", - "retry_params_name": "no_retry_5_params" - }, - "UpdateEntry": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_8_codes", - "retry_params_name": "retry_policy_8_params" - }, - "UpdateEntryGroup": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_5_codes", - "retry_params_name": "no_retry_5_params" - }, - "UpdateEntryLink": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_8_codes", - "retry_params_name": "retry_policy_8_params" - }, - "UpdateEntryType": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_5_codes", - "retry_params_name": "no_retry_5_params" - }, - "UpdateMetadataFeed": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_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" - }, - "GetIamPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "SetIamPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "TestIamPermissions": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/Dataplex/v1/src/V1/resources/catalog_service_descriptor_config.php b/owl-bot-staging/Dataplex/v1/src/V1/resources/catalog_service_descriptor_config.php deleted file mode 100644 index 83a8b76c20fd..000000000000 --- a/owl-bot-staging/Dataplex/v1/src/V1/resources/catalog_service_descriptor_config.php +++ /dev/null @@ -1,730 +0,0 @@ - [ - 'google.cloud.dataplex.v1.CatalogService' => [ - 'CreateAspectType' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Dataplex\V1\AspectType', - 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateEntryGroup' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Dataplex\V1\EntryGroup', - 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateEntryType' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Dataplex\V1\EntryType', - 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateMetadataFeed' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Dataplex\V1\MetadataFeed', - 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateMetadataJob' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Dataplex\V1\MetadataJob', - 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteAspectType' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteEntryGroup' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteEntryType' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteMetadataFeed' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateAspectType' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Dataplex\V1\AspectType', - 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'aspect_type.name', - 'fieldAccessors' => [ - 'getAspectType', - 'getName', - ], - ], - ], - ], - 'UpdateEntryGroup' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Dataplex\V1\EntryGroup', - 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'entry_group.name', - 'fieldAccessors' => [ - 'getEntryGroup', - 'getName', - ], - ], - ], - ], - 'UpdateEntryType' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Dataplex\V1\EntryType', - 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'entry_type.name', - 'fieldAccessors' => [ - 'getEntryType', - 'getName', - ], - ], - ], - ], - 'UpdateMetadataFeed' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Dataplex\V1\MetadataFeed', - 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'metadata_feed.name', - 'fieldAccessors' => [ - 'getMetadataFeed', - 'getName', - ], - ], - ], - ], - 'CancelMetadataJob' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'CreateEntry' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\Entry', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateEntryLink' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\EntryLink', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteEntry' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\Entry', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteEntryLink' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\EntryLink', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetAspectType' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\AspectType', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetEntry' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\Entry', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetEntryGroup' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\EntryGroup', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetEntryLink' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\EntryLink', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetEntryType' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\EntryType', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetMetadataFeed' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\MetadataFeed', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetMetadataJob' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\MetadataJob', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListAspectTypes' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getAspectTypes', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\ListAspectTypesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListEntries' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getEntries', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\ListEntriesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListEntryGroups' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getEntryGroups', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\ListEntryGroupsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListEntryTypes' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getEntryTypes', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\ListEntryTypesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListMetadataFeeds' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getMetadataFeeds', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\ListMetadataFeedsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListMetadataJobs' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getMetadataJobs', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\ListMetadataJobsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'LookupContext' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\LookupContextResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'LookupEntry' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\Entry', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'LookupEntryLinks' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getEntryLinks', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\LookupEntryLinksResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ModifyEntry' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\Entry', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'SearchEntries' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getResults', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\SearchEntriesResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateEntry' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\Entry', - 'headerParams' => [ - [ - 'keyName' => 'entry.name', - 'fieldAccessors' => [ - 'getEntry', - 'getName', - ], - ], - ], - ], - 'UpdateEntryLink' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\EntryLink', - 'headerParams' => [ - [ - 'keyName' => 'entry_link.name', - 'fieldAccessors' => [ - 'getEntryLink', - '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', - ], - 'GetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'SetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'TestIamPermissions' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\TestIamPermissionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'templateMap' => [ - 'aspectType' => 'projects/{project}/locations/{location}/aspectTypes/{aspect_type}', - 'entry' => 'projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}', - 'entryGroup' => 'projects/{project}/locations/{location}/entryGroups/{entry_group}', - 'entryLink' => 'projects/{project}/locations/{location}/entryGroups/{entry_group}/entryLinks/{entry_link}', - 'entryType' => 'projects/{project}/locations/{location}/entryTypes/{entry_type}', - 'glossary' => 'projects/{project}/locations/{location}/glossaries/{glossary}', - 'location' => 'projects/{project}/locations/{location}', - 'metadataFeed' => 'projects/{project}/locations/{location}/metadataFeeds/{metadata_feed}', - 'metadataJob' => 'projects/{project}/locations/{location}/metadataJobs/{metadataJob}', - 'project' => 'projects/{project}', - ], - ], - ], -]; diff --git a/owl-bot-staging/Dataplex/v1/src/V1/resources/catalog_service_rest_client_config.php b/owl-bot-staging/Dataplex/v1/src/V1/resources/catalog_service_rest_client_config.php deleted file mode 100644 index 114990a7c326..000000000000 --- a/owl-bot-staging/Dataplex/v1/src/V1/resources/catalog_service_rest_client_config.php +++ /dev/null @@ -1,898 +0,0 @@ - [ - 'google.cloud.dataplex.v1.CatalogService' => [ - 'CancelMetadataJob' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/metadataJobs/*}:cancel', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'CreateAspectType' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/aspectTypes', - 'body' => 'aspect_type', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'aspect_type_id', - ], - ], - 'CreateEntry' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/entryGroups/*}/entries', - 'body' => 'entry', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'entry_id', - ], - ], - 'CreateEntryGroup' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/entryGroups', - 'body' => 'entry_group', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'entry_group_id', - ], - ], - 'CreateEntryLink' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/entryGroups/*}/entryLinks', - 'body' => 'entry_link', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'entry_link_id', - ], - ], - 'CreateEntryType' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/entryTypes', - 'body' => 'entry_type', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'entry_type_id', - ], - ], - 'CreateMetadataFeed' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/metadataFeeds', - 'body' => 'metadata_feed', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateMetadataJob' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/metadataJobs', - 'body' => 'metadata_job', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteAspectType' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/aspectTypes/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteEntry' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/entryGroups/*/entries/**}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteEntryGroup' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/entryGroups/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteEntryLink' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/entryGroups/*/entryLinks/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteEntryType' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/entryTypes/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteMetadataFeed' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/metadataFeeds/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetAspectType' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/aspectTypes/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetEntry' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/entryGroups/*/entries/**}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetEntryGroup' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/entryGroups/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetEntryLink' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/entryGroups/*/entryLinks/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetEntryType' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/entryTypes/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetMetadataFeed' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/metadataFeeds/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetMetadataJob' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/metadataJobs/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListAspectTypes' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/aspectTypes', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListEntries' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/entryGroups/*}/entries', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListEntryGroups' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/entryGroups', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListEntryTypes' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/entryTypes', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListMetadataFeeds' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/metadataFeeds', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListMetadataJobs' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/metadataJobs', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'LookupContext' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}:lookupContext', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'LookupEntry' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}:lookupEntry', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'LookupEntryLinks' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}:lookupEntryLinks', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ModifyEntry' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}:modifyEntry', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'SearchEntries' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}:searchEntries', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'UpdateAspectType' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{aspect_type.name=projects/*/locations/*/aspectTypes/*}', - 'body' => 'aspect_type', - 'placeholders' => [ - 'aspect_type.name' => [ - 'getters' => [ - 'getAspectType', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateEntry' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{entry.name=projects/*/locations/*/entryGroups/*/entries/**}', - 'body' => 'entry', - 'placeholders' => [ - 'entry.name' => [ - 'getters' => [ - 'getEntry', - 'getName', - ], - ], - ], - ], - 'UpdateEntryGroup' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{entry_group.name=projects/*/locations/*/entryGroups/*}', - 'body' => 'entry_group', - 'placeholders' => [ - 'entry_group.name' => [ - 'getters' => [ - 'getEntryGroup', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateEntryLink' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{entry_link.name=projects/*/locations/*/entryGroups/*/entryLinks/**}', - 'body' => 'entry_link', - 'placeholders' => [ - 'entry_link.name' => [ - 'getters' => [ - 'getEntryLink', - 'getName', - ], - ], - ], - ], - 'UpdateEntryType' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{entry_type.name=projects/*/locations/*/entryTypes/*}', - 'body' => 'entry_type', - 'placeholders' => [ - 'entry_type.name' => [ - 'getters' => [ - 'getEntryType', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateMetadataFeed' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{metadata_feed.name=projects/*/locations/*/metadataFeeds/*}', - 'body' => 'metadata_feed', - 'placeholders' => [ - 'metadata_feed.name' => [ - 'getters' => [ - 'getMetadataFeed', - 'getName', - ], - ], - ], - ], - ], - 'google.cloud.location.Locations' => [ - 'GetLocation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListLocations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/locations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.iam.v1.IAMPolicy' => [ - 'GetIamPolicy' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*}:getIamPolicy', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryTypes/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/aspectTypes/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryGroups/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/governanceRules/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/changeRequests/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:getIamPolicy', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'SetIamPolicy' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*}:setIamPolicy', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryTypes/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/aspectTypes/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryGroups/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/governanceRules/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/changeRequests/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:setIamPolicy', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'TestIamPermissions' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*}:testIamPermissions', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryTypes/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/aspectTypes/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryGroups/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/governanceRules/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/changeRequests/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:testIamPermissions', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}:cancel', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*}/operations', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/Dataplex/v1/src/V1/resources/cmek_service_client_config.json b/owl-bot-staging/Dataplex/v1/src/V1/resources/cmek_service_client_config.json deleted file mode 100644 index 356dda0ac241..000000000000 --- a/owl-bot-staging/Dataplex/v1/src/V1/resources/cmek_service_client_config.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "interfaces": { - "google.cloud.dataplex.v1.CmekService": { - "retry_codes": { - "no_retry_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 - } - }, - "methods": { - "CreateEncryptionConfig": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "DeleteEncryptionConfig": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetEncryptionConfig": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListEncryptionConfigs": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "UpdateEncryptionConfig": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_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" - }, - "GetIamPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "SetIamPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "TestIamPermissions": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/Dataplex/v1/src/V1/resources/cmek_service_descriptor_config.php b/owl-bot-staging/Dataplex/v1/src/V1/resources/cmek_service_descriptor_config.php deleted file mode 100644 index b3fbd02d5ae1..000000000000 --- a/owl-bot-staging/Dataplex/v1/src/V1/resources/cmek_service_descriptor_config.php +++ /dev/null @@ -1,195 +0,0 @@ - [ - 'google.cloud.dataplex.v1.CmekService' => [ - 'CreateEncryptionConfig' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Dataplex\V1\EncryptionConfig', - 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteEncryptionConfig' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateEncryptionConfig' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Dataplex\V1\EncryptionConfig', - 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'encryption_config.name', - 'fieldAccessors' => [ - 'getEncryptionConfig', - 'getName', - ], - ], - ], - ], - 'GetEncryptionConfig' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\EncryptionConfig', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListEncryptionConfigs' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getEncryptionConfigs', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\ListEncryptionConfigsResponse', - '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', - ], - 'GetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'SetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'TestIamPermissions' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\TestIamPermissionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'templateMap' => [ - 'encryptionConfig' => 'organizations/{organization}/locations/{location}/encryptionConfigs/{encryption_config}', - 'organizationLocation' => 'organizations/{organization}/locations/{location}', - ], - ], - ], -]; diff --git a/owl-bot-staging/Dataplex/v1/src/V1/resources/cmek_service_rest_client_config.php b/owl-bot-staging/Dataplex/v1/src/V1/resources/cmek_service_rest_client_config.php deleted file mode 100644 index 764271dcfcb6..000000000000 --- a/owl-bot-staging/Dataplex/v1/src/V1/resources/cmek_service_rest_client_config.php +++ /dev/null @@ -1,495 +0,0 @@ - [ - 'google.cloud.dataplex.v1.CmekService' => [ - 'CreateEncryptionConfig' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=organizations/*/locations/*}/encryptionConfigs', - 'body' => 'encryption_config', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'encryption_config_id', - ], - ], - 'DeleteEncryptionConfig' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/encryptionConfigs/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetEncryptionConfig' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/encryptionConfigs/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListEncryptionConfigs' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=organizations/*/locations/*}/encryptionConfigs', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateEncryptionConfig' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{encryption_config.name=organizations/*/locations/*/encryptionConfigs/*}', - 'body' => 'encryption_config', - 'placeholders' => [ - 'encryption_config.name' => [ - 'getters' => [ - 'getEncryptionConfig', - 'getName', - ], - ], - ], - ], - ], - 'google.cloud.location.Locations' => [ - 'GetLocation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListLocations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/locations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.iam.v1.IAMPolicy' => [ - 'GetIamPolicy' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*}:getIamPolicy', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryTypes/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/aspectTypes/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryGroups/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/governanceRules/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/changeRequests/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:getIamPolicy', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'SetIamPolicy' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*}:setIamPolicy', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryTypes/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/aspectTypes/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryGroups/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/governanceRules/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/changeRequests/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:setIamPolicy', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'TestIamPermissions' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*}:testIamPermissions', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryTypes/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/aspectTypes/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryGroups/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/governanceRules/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/changeRequests/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:testIamPermissions', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}:cancel', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*}/operations', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/Dataplex/v1/src/V1/resources/content_service_client_config.json b/owl-bot-staging/Dataplex/v1/src/V1/resources/content_service_client_config.json deleted file mode 100644 index a718dd2ca181..000000000000 --- a/owl-bot-staging/Dataplex/v1/src/V1/resources/content_service_client_config.json +++ /dev/null @@ -1,81 +0,0 @@ -{ - "interfaces": { - "google.cloud.dataplex.v1.ContentService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_5_codes": [ - "UNAVAILABLE" - ], - "retry_policy_6_codes": [ - "UNAVAILABLE" - ], - "no_retry_3_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_5_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 - }, - "retry_policy_6_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_3_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": { - "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" - }, - "GetIamPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_5_codes", - "retry_params_name": "retry_policy_5_params" - }, - "SetIamPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_3_codes", - "retry_params_name": "no_retry_3_params" - }, - "TestIamPermissions": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_5_codes", - "retry_params_name": "retry_policy_5_params" - } - } - } - } -} diff --git a/owl-bot-staging/Dataplex/v1/src/V1/resources/content_service_descriptor_config.php b/owl-bot-staging/Dataplex/v1/src/V1/resources/content_service_descriptor_config.php deleted file mode 100644 index 8b7cd038c507..000000000000 --- a/owl-bot-staging/Dataplex/v1/src/V1/resources/content_service_descriptor_config.php +++ /dev/null @@ -1,101 +0,0 @@ - [ - 'google.cloud.dataplex.v1.ContentService' => [ - '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', - ], - 'GetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'SetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'TestIamPermissions' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\TestIamPermissionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - ], - ], -]; diff --git a/owl-bot-staging/Dataplex/v1/src/V1/resources/content_service_rest_client_config.php b/owl-bot-staging/Dataplex/v1/src/V1/resources/content_service_rest_client_config.php deleted file mode 100644 index e4f60245eae8..000000000000 --- a/owl-bot-staging/Dataplex/v1/src/V1/resources/content_service_rest_client_config.php +++ /dev/null @@ -1,432 +0,0 @@ - [ - 'google.cloud.location.Locations' => [ - 'GetLocation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListLocations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/locations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.iam.v1.IAMPolicy' => [ - 'GetIamPolicy' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*}:getIamPolicy', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryTypes/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/aspectTypes/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryGroups/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/governanceRules/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/changeRequests/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:getIamPolicy', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'SetIamPolicy' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*}:setIamPolicy', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryTypes/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/aspectTypes/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryGroups/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/governanceRules/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/changeRequests/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:setIamPolicy', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'TestIamPermissions' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*}:testIamPermissions', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryTypes/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/aspectTypes/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryGroups/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/governanceRules/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/changeRequests/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:testIamPermissions', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}:cancel', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*}/operations', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/Dataplex/v1/src/V1/resources/data_product_service_client_config.json b/owl-bot-staging/Dataplex/v1/src/V1/resources/data_product_service_client_config.json deleted file mode 100644 index f160b2345b6c..000000000000 --- a/owl-bot-staging/Dataplex/v1/src/V1/resources/data_product_service_client_config.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "interfaces": { - "google.cloud.dataplex.v1.DataProductService": { - "retry_codes": { - "no_retry_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 - } - }, - "methods": { - "CreateDataAsset": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "CreateDataProduct": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "DeleteDataAsset": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "DeleteDataProduct": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetDataAsset": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetDataProduct": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListDataAssets": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListDataProducts": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "RequestDataProductAccess": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "UpdateDataAsset": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "UpdateDataProduct": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_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" - }, - "GetIamPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "SetIamPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "TestIamPermissions": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/Dataplex/v1/src/V1/resources/data_product_service_descriptor_config.php b/owl-bot-staging/Dataplex/v1/src/V1/resources/data_product_service_descriptor_config.php deleted file mode 100644 index 5c49c5557a20..000000000000 --- a/owl-bot-staging/Dataplex/v1/src/V1/resources/data_product_service_descriptor_config.php +++ /dev/null @@ -1,305 +0,0 @@ - [ - 'google.cloud.dataplex.v1.DataProductService' => [ - 'CreateDataAsset' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Dataplex\V1\DataAsset', - 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateDataProduct' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Dataplex\V1\DataProduct', - 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteDataAsset' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteDataProduct' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateDataAsset' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Dataplex\V1\DataAsset', - 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'data_asset.name', - 'fieldAccessors' => [ - 'getDataAsset', - 'getName', - ], - ], - ], - ], - 'UpdateDataProduct' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Dataplex\V1\DataProduct', - 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'data_product.name', - 'fieldAccessors' => [ - 'getDataProduct', - 'getName', - ], - ], - ], - ], - 'GetDataAsset' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\DataAsset', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetDataProduct' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\DataProduct', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListDataAssets' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getDataAssets', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\ListDataAssetsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListDataProducts' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getDataProducts', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\ListDataProductsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'RequestDataProductAccess' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\RequestDataProductAccessResponse', - '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', - ], - 'GetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'SetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'TestIamPermissions' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\TestIamPermissionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'templateMap' => [ - 'changeRequest' => 'projects/{project}/locations/{location}/changeRequests/{change_request}', - 'dataAsset' => 'projects/{project}/locations/{location}/dataProducts/{data_product}/dataAssets/{data_asset}', - 'dataProduct' => 'projects/{project}/locations/{location}/dataProducts/{data_product}', - 'entry' => 'projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}', - 'entryGroup' => 'projects/{project}/locations/{location}/entryGroups/{entry_group}', - 'entryLink' => 'projects/{project}/locations/{location}/entryGroups/{entry_group}/entryLinks/{entry_link}', - 'glossary' => 'projects/{project}/locations/{location}/glossaries/{glossary}', - 'glossaryCategory' => 'projects/{project}/locations/{location}/glossaries/{glossary}/categories/{glossary_category}', - 'glossaryTerm' => 'projects/{project}/locations/{location}/glossaries/{glossary}/terms/{glossary_term}', - 'location' => 'projects/{project}/locations/{location}', - ], - ], - ], -]; diff --git a/owl-bot-staging/Dataplex/v1/src/V1/resources/data_product_service_rest_client_config.php b/owl-bot-staging/Dataplex/v1/src/V1/resources/data_product_service_rest_client_config.php deleted file mode 100644 index ddc88c1c8330..000000000000 --- a/owl-bot-staging/Dataplex/v1/src/V1/resources/data_product_service_rest_client_config.php +++ /dev/null @@ -1,562 +0,0 @@ - [ - 'google.cloud.dataplex.v1.DataProductService' => [ - 'CreateDataAsset' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/dataProducts/*}/dataAssets', - 'body' => 'data_asset', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateDataProduct' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/dataProducts', - 'body' => 'data_product', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteDataAsset' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataProducts/*/dataAssets/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteDataProduct' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataProducts/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetDataAsset' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataProducts/*/dataAssets/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetDataProduct' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataProducts/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListDataAssets' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/dataProducts/*}/dataAssets', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListDataProducts' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/dataProducts', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'RequestDataProductAccess' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/dataProducts/*}:requestAccess', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateDataAsset' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{data_asset.name=projects/*/locations/*/dataProducts/*/dataAssets/*}', - 'body' => 'data_asset', - 'placeholders' => [ - 'data_asset.name' => [ - 'getters' => [ - 'getDataAsset', - 'getName', - ], - ], - ], - ], - 'UpdateDataProduct' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{data_product.name=projects/*/locations/*/dataProducts/*}', - 'body' => 'data_product', - 'placeholders' => [ - 'data_product.name' => [ - 'getters' => [ - 'getDataProduct', - 'getName', - ], - ], - ], - ], - ], - 'google.cloud.location.Locations' => [ - 'GetLocation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListLocations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/locations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.iam.v1.IAMPolicy' => [ - 'GetIamPolicy' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*}:getIamPolicy', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryTypes/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/aspectTypes/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryGroups/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/governanceRules/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/changeRequests/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:getIamPolicy', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'SetIamPolicy' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*}:setIamPolicy', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryTypes/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/aspectTypes/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryGroups/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/governanceRules/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/changeRequests/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:setIamPolicy', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'TestIamPermissions' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*}:testIamPermissions', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryTypes/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/aspectTypes/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryGroups/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/governanceRules/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/changeRequests/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:testIamPermissions', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}:cancel', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*}/operations', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/Dataplex/v1/src/V1/resources/data_scan_service_client_config.json b/owl-bot-staging/Dataplex/v1/src/V1/resources/data_scan_service_client_config.json deleted file mode 100644 index 405f258d4ce6..000000000000 --- a/owl-bot-staging/Dataplex/v1/src/V1/resources/data_scan_service_client_config.json +++ /dev/null @@ -1,97 +0,0 @@ -{ - "interfaces": { - "google.cloud.dataplex.v1.DataScanService": { - "retry_codes": { - "no_retry_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 - } - }, - "methods": { - "CancelDataScanJob": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "CreateDataScan": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "DeleteDataScan": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GenerateDataQualityRules": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetDataScan": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetDataScanJob": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListDataScanJobs": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListDataScans": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "RunDataScan": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "UpdateDataScan": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_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" - }, - "GetIamPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "SetIamPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "TestIamPermissions": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/Dataplex/v1/src/V1/resources/data_scan_service_descriptor_config.php b/owl-bot-staging/Dataplex/v1/src/V1/resources/data_scan_service_descriptor_config.php deleted file mode 100644 index f7da9e17bd9b..000000000000 --- a/owl-bot-staging/Dataplex/v1/src/V1/resources/data_scan_service_descriptor_config.php +++ /dev/null @@ -1,269 +0,0 @@ - [ - 'google.cloud.dataplex.v1.DataScanService' => [ - 'CreateDataScan' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Dataplex\V1\DataScan', - 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteDataScan' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateDataScan' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Dataplex\V1\DataScan', - 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'data_scan.name', - 'fieldAccessors' => [ - 'getDataScan', - 'getName', - ], - ], - ], - ], - 'CancelDataScanJob' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\CancelDataScanJobResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GenerateDataQualityRules' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\GenerateDataQualityRulesResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetDataScan' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\DataScan', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetDataScanJob' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\DataScanJob', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListDataScanJobs' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getDataScanJobs', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\ListDataScanJobsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListDataScans' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getDataScans', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\ListDataScansResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'RunDataScan' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\RunDataScanResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - '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', - ], - 'GetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'SetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'TestIamPermissions' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\TestIamPermissionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'templateMap' => [ - 'connection' => 'projects/{project}/locations/{location}/connections/{connection}', - 'dataScan' => 'projects/{project}/locations/{location}/dataScans/{dataScan}', - 'dataScanJob' => 'projects/{project}/locations/{location}/dataScans/{dataScan}/jobs/{job}', - 'dataset' => 'projects/{project}/datasets/{dataset}', - 'entity' => 'projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/entities/{entity}', - 'entry' => 'projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}', - 'location' => 'projects/{project}/locations/{location}', - 'project' => 'projects/{project}', - ], - ], - ], -]; diff --git a/owl-bot-staging/Dataplex/v1/src/V1/resources/data_scan_service_rest_client_config.php b/owl-bot-staging/Dataplex/v1/src/V1/resources/data_scan_service_rest_client_config.php deleted file mode 100644 index 891c784efb23..000000000000 --- a/owl-bot-staging/Dataplex/v1/src/V1/resources/data_scan_service_rest_client_config.php +++ /dev/null @@ -1,557 +0,0 @@ - [ - 'google.cloud.dataplex.v1.DataScanService' => [ - 'CancelDataScanJob' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataScans/*/jobs/*}:cancel', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'CreateDataScan' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/dataScans', - 'body' => 'data_scan', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteDataScan' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataScans/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GenerateDataQualityRules' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataScans/*}:generateDataQualityRules', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataScans/*/jobs/*}:generateDataQualityRules', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetDataScan' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataScans/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetDataScanJob' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataScans/*/jobs/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListDataScanJobs' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/dataScans/*}/jobs', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListDataScans' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/dataScans', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'RunDataScan' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataScans/*}:run', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'UpdateDataScan' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{data_scan.name=projects/*/locations/*/dataScans/*}', - 'body' => 'data_scan', - 'placeholders' => [ - 'data_scan.name' => [ - 'getters' => [ - 'getDataScan', - 'getName', - ], - ], - ], - ], - ], - 'google.cloud.location.Locations' => [ - 'GetLocation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListLocations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/locations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.iam.v1.IAMPolicy' => [ - 'GetIamPolicy' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*}:getIamPolicy', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryTypes/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/aspectTypes/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryGroups/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/governanceRules/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/changeRequests/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:getIamPolicy', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'SetIamPolicy' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*}:setIamPolicy', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryTypes/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/aspectTypes/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryGroups/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/governanceRules/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/changeRequests/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:setIamPolicy', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'TestIamPermissions' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*}:testIamPermissions', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryTypes/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/aspectTypes/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryGroups/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/governanceRules/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/changeRequests/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:testIamPermissions', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}:cancel', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*}/operations', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/Dataplex/v1/src/V1/resources/data_taxonomy_service_client_config.json b/owl-bot-staging/Dataplex/v1/src/V1/resources/data_taxonomy_service_client_config.json deleted file mode 100644 index b79fba39f752..000000000000 --- a/owl-bot-staging/Dataplex/v1/src/V1/resources/data_taxonomy_service_client_config.json +++ /dev/null @@ -1,122 +0,0 @@ -{ - "interfaces": { - "google.cloud.dataplex.v1.DataTaxonomyService": { - "retry_codes": { - "no_retry_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 - } - }, - "methods": { - "CreateDataAttribute": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "CreateDataAttributeBinding": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "CreateDataTaxonomy": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "DeleteDataAttribute": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "DeleteDataAttributeBinding": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "DeleteDataTaxonomy": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetDataAttribute": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetDataAttributeBinding": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetDataTaxonomy": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListDataAttributeBindings": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListDataAttributes": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListDataTaxonomies": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "UpdateDataAttribute": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "UpdateDataAttributeBinding": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "UpdateDataTaxonomy": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_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" - }, - "GetIamPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "SetIamPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "TestIamPermissions": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/Dataplex/v1/src/V1/resources/data_taxonomy_service_descriptor_config.php b/owl-bot-staging/Dataplex/v1/src/V1/resources/data_taxonomy_service_descriptor_config.php deleted file mode 100644 index 380fa93f3761..000000000000 --- a/owl-bot-staging/Dataplex/v1/src/V1/resources/data_taxonomy_service_descriptor_config.php +++ /dev/null @@ -1,377 +0,0 @@ - [ - 'google.cloud.dataplex.v1.DataTaxonomyService' => [ - 'CreateDataAttribute' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Dataplex\V1\DataAttribute', - 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateDataAttributeBinding' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Dataplex\V1\DataAttributeBinding', - 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateDataTaxonomy' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Dataplex\V1\DataTaxonomy', - 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteDataAttribute' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteDataAttributeBinding' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteDataTaxonomy' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateDataAttribute' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Dataplex\V1\DataAttribute', - 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'data_attribute.name', - 'fieldAccessors' => [ - 'getDataAttribute', - 'getName', - ], - ], - ], - ], - 'UpdateDataAttributeBinding' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Dataplex\V1\DataAttributeBinding', - 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'data_attribute_binding.name', - 'fieldAccessors' => [ - 'getDataAttributeBinding', - 'getName', - ], - ], - ], - ], - 'UpdateDataTaxonomy' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Dataplex\V1\DataTaxonomy', - 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'data_taxonomy.name', - 'fieldAccessors' => [ - 'getDataTaxonomy', - 'getName', - ], - ], - ], - ], - 'GetDataAttribute' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\DataAttribute', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetDataAttributeBinding' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\DataAttributeBinding', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetDataTaxonomy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\DataTaxonomy', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListDataAttributeBindings' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getDataAttributeBindings', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\ListDataAttributeBindingsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListDataAttributes' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getDataAttributes', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\ListDataAttributesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListDataTaxonomies' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getDataTaxonomies', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\ListDataTaxonomiesResponse', - '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', - ], - 'GetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'SetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'TestIamPermissions' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\TestIamPermissionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'templateMap' => [ - 'dataAttribute' => 'projects/{project}/locations/{location}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id}', - 'dataAttributeBinding' => 'projects/{project}/locations/{location}/dataAttributeBindings/{data_attribute_binding_id}', - 'dataTaxonomy' => 'projects/{project}/locations/{location}/dataTaxonomies/{data_taxonomy_id}', - 'location' => 'projects/{project}/locations/{location}', - ], - ], - ], -]; diff --git a/owl-bot-staging/Dataplex/v1/src/V1/resources/data_taxonomy_service_rest_client_config.php b/owl-bot-staging/Dataplex/v1/src/V1/resources/data_taxonomy_service_rest_client_config.php deleted file mode 100644 index d9c3a31097fc..000000000000 --- a/owl-bot-staging/Dataplex/v1/src/V1/resources/data_taxonomy_service_rest_client_config.php +++ /dev/null @@ -1,629 +0,0 @@ - [ - 'google.cloud.dataplex.v1.DataTaxonomyService' => [ - 'CreateDataAttribute' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/dataTaxonomies/*}/attributes', - 'body' => 'data_attribute', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'data_attribute_id', - ], - ], - 'CreateDataAttributeBinding' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/dataAttributeBindings', - 'body' => 'data_attribute_binding', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'data_attribute_binding_id', - ], - ], - 'CreateDataTaxonomy' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/dataTaxonomies', - 'body' => 'data_taxonomy', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'data_taxonomy_id', - ], - ], - 'DeleteDataAttribute' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataTaxonomies/*/attributes/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteDataAttributeBinding' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataAttributeBindings/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - 'queryParams' => [ - 'etag', - ], - ], - 'DeleteDataTaxonomy' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataTaxonomies/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetDataAttribute' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataTaxonomies/*/attributes/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetDataAttributeBinding' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataAttributeBindings/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetDataTaxonomy' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataTaxonomies/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListDataAttributeBindings' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/dataAttributeBindings', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListDataAttributes' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/dataTaxonomies/*}/attributes', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListDataTaxonomies' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/dataTaxonomies', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateDataAttribute' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{data_attribute.name=projects/*/locations/*/dataTaxonomies/*/attributes/*}', - 'body' => 'data_attribute', - 'placeholders' => [ - 'data_attribute.name' => [ - 'getters' => [ - 'getDataAttribute', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateDataAttributeBinding' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{data_attribute_binding.name=projects/*/locations/*/dataAttributeBindings/*}', - 'body' => 'data_attribute_binding', - 'placeholders' => [ - 'data_attribute_binding.name' => [ - 'getters' => [ - 'getDataAttributeBinding', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateDataTaxonomy' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{data_taxonomy.name=projects/*/locations/*/dataTaxonomies/*}', - 'body' => 'data_taxonomy', - 'placeholders' => [ - 'data_taxonomy.name' => [ - 'getters' => [ - 'getDataTaxonomy', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - ], - 'google.cloud.location.Locations' => [ - 'GetLocation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListLocations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/locations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.iam.v1.IAMPolicy' => [ - 'GetIamPolicy' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*}:getIamPolicy', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryTypes/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/aspectTypes/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryGroups/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/governanceRules/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/changeRequests/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:getIamPolicy', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'SetIamPolicy' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*}:setIamPolicy', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryTypes/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/aspectTypes/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryGroups/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/governanceRules/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/changeRequests/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:setIamPolicy', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'TestIamPermissions' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*}:testIamPermissions', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryTypes/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/aspectTypes/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryGroups/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/governanceRules/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/changeRequests/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:testIamPermissions', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}:cancel', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*}/operations', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/Dataplex/v1/src/V1/resources/dataplex_service_client_config.json b/owl-bot-staging/Dataplex/v1/src/V1/resources/dataplex_service_client_config.json deleted file mode 100644 index 57ad6206a9d0..000000000000 --- a/owl-bot-staging/Dataplex/v1/src/V1/resources/dataplex_service_client_config.json +++ /dev/null @@ -1,216 +0,0 @@ -{ - "interfaces": { - "google.cloud.dataplex.v1.DataplexService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE" - ], - "retry_policy_2_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 - }, - "retry_policy_2_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": { - "CancelJob": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateAsset": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateLake": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateTask": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateZone": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteAsset": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteLake": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteTask": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteZone": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetAsset": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetJob": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetLake": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetTask": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetZone": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListAssetActions": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_2_codes", - "retry_params_name": "retry_policy_2_params" - }, - "ListAssets": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_2_codes", - "retry_params_name": "retry_policy_2_params" - }, - "ListJobs": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_2_codes", - "retry_params_name": "retry_policy_2_params" - }, - "ListLakeActions": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_2_codes", - "retry_params_name": "retry_policy_2_params" - }, - "ListLakes": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_2_codes", - "retry_params_name": "retry_policy_2_params" - }, - "ListTasks": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_2_codes", - "retry_params_name": "retry_policy_2_params" - }, - "ListZoneActions": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_2_codes", - "retry_params_name": "retry_policy_2_params" - }, - "ListZones": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_2_codes", - "retry_params_name": "retry_policy_2_params" - }, - "RunTask": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "UpdateAsset": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateLake": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateTask": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateZone": { - "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" - }, - "GetIamPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "SetIamPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "TestIamPermissions": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/Dataplex/v1/src/V1/resources/dataplex_service_descriptor_config.php b/owl-bot-staging/Dataplex/v1/src/V1/resources/dataplex_service_descriptor_config.php deleted file mode 100644 index 238fddd4322f..000000000000 --- a/owl-bot-staging/Dataplex/v1/src/V1/resources/dataplex_service_descriptor_config.php +++ /dev/null @@ -1,585 +0,0 @@ - [ - 'google.cloud.dataplex.v1.DataplexService' => [ - 'CreateAsset' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Dataplex\V1\Asset', - 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateLake' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Dataplex\V1\Lake', - 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateTask' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Dataplex\V1\Task', - 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateZone' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Dataplex\V1\Zone', - 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteAsset' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteLake' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteTask' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteZone' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateAsset' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Dataplex\V1\Asset', - 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'asset.name', - 'fieldAccessors' => [ - 'getAsset', - 'getName', - ], - ], - ], - ], - 'UpdateLake' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Dataplex\V1\Lake', - 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'lake.name', - 'fieldAccessors' => [ - 'getLake', - 'getName', - ], - ], - ], - ], - 'UpdateTask' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Dataplex\V1\Task', - 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'task.name', - 'fieldAccessors' => [ - 'getTask', - 'getName', - ], - ], - ], - ], - 'UpdateZone' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Dataplex\V1\Zone', - 'metadataReturnType' => '\Google\Cloud\Dataplex\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'zone.name', - 'fieldAccessors' => [ - 'getZone', - 'getName', - ], - ], - ], - ], - 'CancelJob' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetAsset' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\Asset', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetJob' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\Job', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetLake' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\Lake', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetTask' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\Task', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetZone' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\Zone', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListAssetActions' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getActions', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\ListActionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListAssets' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getAssets', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\ListAssetsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListJobs' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getJobs', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\ListJobsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListLakeActions' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getActions', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\ListActionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListLakes' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getLakes', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\ListLakesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListTasks' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getTasks', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\ListTasksResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListZoneActions' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getActions', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\ListActionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListZones' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getZones', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\ListZonesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'RunTask' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\RunTaskResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - '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', - ], - 'GetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'SetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'TestIamPermissions' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\TestIamPermissionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'templateMap' => [ - 'asset' => 'projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/assets/{asset}', - 'job' => 'projects/{project}/locations/{location}/lakes/{lake}/tasks/{task}/jobs/{job}', - 'lake' => 'projects/{project}/locations/{location}/lakes/{lake}', - 'location' => 'projects/{project}/locations/{location}', - 'task' => 'projects/{project}/locations/{location}/lakes/{lake}/tasks/{task}', - 'zone' => 'projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}', - ], - ], - ], -]; diff --git a/owl-bot-staging/Dataplex/v1/src/V1/resources/dataplex_service_rest_client_config.php b/owl-bot-staging/Dataplex/v1/src/V1/resources/dataplex_service_rest_client_config.php deleted file mode 100644 index ee18b0050992..000000000000 --- a/owl-bot-staging/Dataplex/v1/src/V1/resources/dataplex_service_rest_client_config.php +++ /dev/null @@ -1,769 +0,0 @@ - [ - 'google.cloud.dataplex.v1.DataplexService' => [ - 'CancelJob' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/lakes/*/tasks/*/jobs/*}:cancel', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'CreateAsset' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/lakes/*/zones/*}/assets', - 'body' => 'asset', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'asset_id', - ], - ], - 'CreateLake' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/lakes', - 'body' => 'lake', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'lake_id', - ], - ], - 'CreateTask' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/lakes/*}/tasks', - 'body' => 'task', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'task_id', - ], - ], - 'CreateZone' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/lakes/*}/zones', - 'body' => 'zone', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'zone_id', - ], - ], - 'DeleteAsset' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/lakes/*/zones/*/assets/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteLake' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/lakes/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteTask' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/lakes/*/tasks/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteZone' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/lakes/*/zones/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetAsset' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/lakes/*/zones/*/assets/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetJob' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/lakes/*/tasks/*/jobs/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetLake' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/lakes/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetTask' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/lakes/*/tasks/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetZone' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/lakes/*/zones/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListAssetActions' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/lakes/*/zones/*/assets/*}/actions', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListAssets' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/lakes/*/zones/*}/assets', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListJobs' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/lakes/*/tasks/*}/jobs', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListLakeActions' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/lakes/*}/actions', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListLakes' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/lakes', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListTasks' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/lakes/*}/tasks', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListZoneActions' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/lakes/*/zones/*}/actions', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListZones' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/lakes/*}/zones', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'RunTask' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/lakes/*/tasks/*}:run', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'UpdateAsset' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{asset.name=projects/*/locations/*/lakes/*/zones/*/assets/*}', - 'body' => 'asset', - 'placeholders' => [ - 'asset.name' => [ - 'getters' => [ - 'getAsset', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateLake' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{lake.name=projects/*/locations/*/lakes/*}', - 'body' => 'lake', - 'placeholders' => [ - 'lake.name' => [ - 'getters' => [ - 'getLake', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateTask' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{task.name=projects/*/locations/*/lakes/*/tasks/*}', - 'body' => 'task', - 'placeholders' => [ - 'task.name' => [ - 'getters' => [ - 'getTask', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateZone' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{zone.name=projects/*/locations/*/lakes/*/zones/*}', - 'body' => 'zone', - 'placeholders' => [ - 'zone.name' => [ - 'getters' => [ - 'getZone', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - ], - 'google.cloud.location.Locations' => [ - 'GetLocation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListLocations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/locations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.iam.v1.IAMPolicy' => [ - 'GetIamPolicy' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*}:getIamPolicy', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryTypes/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/aspectTypes/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryGroups/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/governanceRules/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/changeRequests/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:getIamPolicy', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'SetIamPolicy' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*}:setIamPolicy', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryTypes/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/aspectTypes/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryGroups/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/governanceRules/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/changeRequests/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:setIamPolicy', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'TestIamPermissions' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*}:testIamPermissions', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryTypes/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/aspectTypes/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryGroups/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/governanceRules/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/changeRequests/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:testIamPermissions', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}:cancel', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*}/operations', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/Dataplex/v1/src/V1/resources/metadata_service_client_config.json b/owl-bot-staging/Dataplex/v1/src/V1/resources/metadata_service_client_config.json deleted file mode 100644 index 0d55c98b20f3..000000000000 --- a/owl-bot-staging/Dataplex/v1/src/V1/resources/metadata_service_client_config.json +++ /dev/null @@ -1,126 +0,0 @@ -{ - "interfaces": { - "google.cloud.dataplex.v1.MetadataService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_3_codes": [ - "UNAVAILABLE" - ], - "retry_policy_4_codes": [ - "UNAVAILABLE" - ], - "no_retry_2_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_3_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 - }, - "retry_policy_4_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_2_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": { - "CreateEntity": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_2_codes", - "retry_params_name": "no_retry_2_params" - }, - "CreatePartition": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_2_codes", - "retry_params_name": "no_retry_2_params" - }, - "DeleteEntity": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_2_codes", - "retry_params_name": "no_retry_2_params" - }, - "DeletePartition": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_2_codes", - "retry_params_name": "no_retry_2_params" - }, - "GetEntity": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_3_codes", - "retry_params_name": "retry_policy_3_params" - }, - "GetPartition": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_3_codes", - "retry_params_name": "retry_policy_3_params" - }, - "ListEntities": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_4_codes", - "retry_params_name": "retry_policy_4_params" - }, - "ListPartitions": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_4_codes", - "retry_params_name": "retry_policy_4_params" - }, - "UpdateEntity": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_2_codes", - "retry_params_name": "no_retry_2_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" - }, - "GetIamPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "SetIamPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "TestIamPermissions": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/Dataplex/v1/src/V1/resources/metadata_service_descriptor_config.php b/owl-bot-staging/Dataplex/v1/src/V1/resources/metadata_service_descriptor_config.php deleted file mode 100644 index bdd0d0f5e09f..000000000000 --- a/owl-bot-staging/Dataplex/v1/src/V1/resources/metadata_service_descriptor_config.php +++ /dev/null @@ -1,231 +0,0 @@ - [ - 'google.cloud.dataplex.v1.MetadataService' => [ - 'CreateEntity' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\Entity', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreatePartition' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\Partition', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteEntity' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeletePartition' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetEntity' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\Entity', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetPartition' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\Partition', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListEntities' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getEntities', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\ListEntitiesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListPartitions' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getPartitions', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\ListPartitionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateEntity' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataplex\V1\Entity', - 'headerParams' => [ - [ - 'keyName' => 'entity.name', - 'fieldAccessors' => [ - 'getEntity', - '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', - ], - 'GetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'SetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'TestIamPermissions' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\TestIamPermissionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'templateMap' => [ - 'entity' => 'projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/entities/{entity}', - 'partition' => 'projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}/entities/{entity}/partitions/{partition}', - 'zone' => 'projects/{project}/locations/{location}/lakes/{lake}/zones/{zone}', - ], - ], - ], -]; diff --git a/owl-bot-staging/Dataplex/v1/src/V1/resources/metadata_service_rest_client_config.php b/owl-bot-staging/Dataplex/v1/src/V1/resources/metadata_service_rest_client_config.php deleted file mode 100644 index a970833e3a3e..000000000000 --- a/owl-bot-staging/Dataplex/v1/src/V1/resources/metadata_service_rest_client_config.php +++ /dev/null @@ -1,543 +0,0 @@ - [ - 'google.cloud.dataplex.v1.MetadataService' => [ - 'CreateEntity' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/lakes/*/zones/*}/entities', - 'body' => 'entity', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreatePartition' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/lakes/*/zones/*/entities/*}/partitions', - 'body' => 'partition', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteEntity' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/lakes/*/zones/*/entities/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - 'queryParams' => [ - 'etag', - ], - ], - 'DeletePartition' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/lakes/*/zones/*/entities/*/partitions/**}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetEntity' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/lakes/*/zones/*/entities/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetPartition' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/lakes/*/zones/*/entities/*/partitions/**}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListEntities' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/lakes/*/zones/*}/entities', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'view', - ], - ], - 'ListPartitions' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/lakes/*/zones/*/entities/*}/partitions', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateEntity' => [ - 'method' => 'put', - 'uriTemplate' => '/v1/{entity.name=projects/*/locations/*/lakes/*/zones/*/entities/*}', - 'body' => 'entity', - 'placeholders' => [ - 'entity.name' => [ - 'getters' => [ - 'getEntity', - 'getName', - ], - ], - ], - ], - ], - 'google.cloud.location.Locations' => [ - 'GetLocation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListLocations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/locations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.iam.v1.IAMPolicy' => [ - 'GetIamPolicy' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*}:getIamPolicy', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryTypes/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/aspectTypes/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryGroups/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/governanceRules/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/changeRequests/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:getIamPolicy', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'SetIamPolicy' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*}:setIamPolicy', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryTypes/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/aspectTypes/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryGroups/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/governanceRules/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/changeRequests/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:setIamPolicy', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'TestIamPermissions' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*}:testIamPermissions', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/zones/*/assets/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/lakes/*/tasks/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataScans/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataTaxonomies/*/attributes/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataAttributeBindings/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryTypes/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryLinkTypes/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/aspectTypes/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/entryGroups/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/governanceRules/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/categories/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/glossaries/*/terms/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/changeRequests/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=organizations/*/locations/*/encryptionConfigs/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataProducts/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/dataDomains/*}:testIamPermissions', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}:cancel', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*/operations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/locations/*}/operations', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/BusinessGlossaryServiceClientTest.php b/owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/BusinessGlossaryServiceClientTest.php deleted file mode 100644 index e5dcc5b5b86b..000000000000 --- a/owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/BusinessGlossaryServiceClientTest.php +++ /dev/null @@ -1,1819 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return BusinessGlossaryServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new BusinessGlossaryServiceClient($options); - } - - /** @test */ - public function createGlossaryTest() - { - $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/createGlossaryTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $uid = 'uid115792'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $termCount = 1604847748; - $categoryCount = 1899510414; - $etag = 'etag3123477'; - $expectedResponse = new Glossary(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setTermCount($termCount); - $expectedResponse->setCategoryCount($categoryCount); - $expectedResponse->setEtag($etag); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createGlossaryTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $glossaryId = 'glossaryId1514441436'; - $glossary = new Glossary(); - $request = (new CreateGlossaryRequest()) - ->setParent($formattedParent) - ->setGlossaryId($glossaryId) - ->setGlossary($glossary); - $response = $gapicClient->createGlossary($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.dataplex.v1.BusinessGlossaryService/CreateGlossary', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getGlossaryId(); - $this->assertProtobufEquals($glossaryId, $actualValue); - $actualValue = $actualApiRequestObject->getGlossary(); - $this->assertProtobufEquals($glossary, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createGlossaryTest'); - $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 createGlossaryExceptionTest() - { - $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/createGlossaryTest'); - $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->locationName('[PROJECT]', '[LOCATION]'); - $glossaryId = 'glossaryId1514441436'; - $glossary = new Glossary(); - $request = (new CreateGlossaryRequest()) - ->setParent($formattedParent) - ->setGlossaryId($glossaryId) - ->setGlossary($glossary); - $response = $gapicClient->createGlossary($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createGlossaryTest'); - 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 createGlossaryCategoryTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $uid = 'uid115792'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $parent2 = 'parent21175163357'; - $expectedResponse = new GlossaryCategory(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setParent($parent2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->glossaryName('[PROJECT]', '[LOCATION]', '[GLOSSARY]'); - $categoryId = 'categoryId1537780732'; - $category = new GlossaryCategory(); - $categoryParent = 'categoryParent1468300104'; - $category->setParent($categoryParent); - $request = (new CreateGlossaryCategoryRequest()) - ->setParent($formattedParent) - ->setCategoryId($categoryId) - ->setCategory($category); - $response = $gapicClient->createGlossaryCategory($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.dataplex.v1.BusinessGlossaryService/CreateGlossaryCategory', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getCategoryId(); - $this->assertProtobufEquals($categoryId, $actualValue); - $actualValue = $actualRequestObject->getCategory(); - $this->assertProtobufEquals($category, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createGlossaryCategoryExceptionTest() - { - $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->glossaryName('[PROJECT]', '[LOCATION]', '[GLOSSARY]'); - $categoryId = 'categoryId1537780732'; - $category = new GlossaryCategory(); - $categoryParent = 'categoryParent1468300104'; - $category->setParent($categoryParent); - $request = (new CreateGlossaryCategoryRequest()) - ->setParent($formattedParent) - ->setCategoryId($categoryId) - ->setCategory($category); - try { - $gapicClient->createGlossaryCategory($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 createGlossaryTermTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $uid = 'uid115792'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $parent2 = 'parent21175163357'; - $expectedResponse = new GlossaryTerm(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setParent($parent2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->glossaryName('[PROJECT]', '[LOCATION]', '[GLOSSARY]'); - $termId = 'termId-1423587890'; - $term = new GlossaryTerm(); - $termParent = $gapicClient->glossaryName('[PROJECT]', '[LOCATION]', '[GLOSSARY]'); - $term->setParent($termParent); - $request = (new CreateGlossaryTermRequest()) - ->setParent($formattedParent) - ->setTermId($termId) - ->setTerm($term); - $response = $gapicClient->createGlossaryTerm($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.dataplex.v1.BusinessGlossaryService/CreateGlossaryTerm', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getTermId(); - $this->assertProtobufEquals($termId, $actualValue); - $actualValue = $actualRequestObject->getTerm(); - $this->assertProtobufEquals($term, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createGlossaryTermExceptionTest() - { - $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->glossaryName('[PROJECT]', '[LOCATION]', '[GLOSSARY]'); - $termId = 'termId-1423587890'; - $term = new GlossaryTerm(); - $termParent = $gapicClient->glossaryName('[PROJECT]', '[LOCATION]', '[GLOSSARY]'); - $term->setParent($termParent); - $request = (new CreateGlossaryTermRequest()) - ->setParent($formattedParent) - ->setTermId($termId) - ->setTerm($term); - try { - $gapicClient->createGlossaryTerm($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 deleteGlossaryTest() - { - $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/deleteGlossaryTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteGlossaryTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->glossaryName('[PROJECT]', '[LOCATION]', '[GLOSSARY]'); - $request = (new DeleteGlossaryRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteGlossary($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.dataplex.v1.BusinessGlossaryService/DeleteGlossary', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteGlossaryTest'); - $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 deleteGlossaryExceptionTest() - { - $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/deleteGlossaryTest'); - $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->glossaryName('[PROJECT]', '[LOCATION]', '[GLOSSARY]'); - $request = (new DeleteGlossaryRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteGlossary($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteGlossaryTest'); - 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 deleteGlossaryCategoryTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->glossaryCategoryName('[PROJECT]', '[LOCATION]', '[GLOSSARY]', '[GLOSSARY_CATEGORY]'); - $request = (new DeleteGlossaryCategoryRequest()) - ->setName($formattedName); - $gapicClient->deleteGlossaryCategory($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataplex.v1.BusinessGlossaryService/DeleteGlossaryCategory', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteGlossaryCategoryExceptionTest() - { - $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->glossaryCategoryName('[PROJECT]', '[LOCATION]', '[GLOSSARY]', '[GLOSSARY_CATEGORY]'); - $request = (new DeleteGlossaryCategoryRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteGlossaryCategory($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 deleteGlossaryTermTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->glossaryTermName('[PROJECT]', '[LOCATION]', '[GLOSSARY]', '[GLOSSARY_TERM]'); - $request = (new DeleteGlossaryTermRequest()) - ->setName($formattedName); - $gapicClient->deleteGlossaryTerm($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataplex.v1.BusinessGlossaryService/DeleteGlossaryTerm', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteGlossaryTermExceptionTest() - { - $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->glossaryTermName('[PROJECT]', '[LOCATION]', '[GLOSSARY]', '[GLOSSARY_TERM]'); - $request = (new DeleteGlossaryTermRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteGlossaryTerm($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 getGlossaryTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $uid = 'uid115792'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $termCount = 1604847748; - $categoryCount = 1899510414; - $etag = 'etag3123477'; - $expectedResponse = new Glossary(); - $expectedResponse->setName($name2); - $expectedResponse->setUid($uid); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setTermCount($termCount); - $expectedResponse->setCategoryCount($categoryCount); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->glossaryName('[PROJECT]', '[LOCATION]', '[GLOSSARY]'); - $request = (new GetGlossaryRequest()) - ->setName($formattedName); - $response = $gapicClient->getGlossary($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.dataplex.v1.BusinessGlossaryService/GetGlossary', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getGlossaryExceptionTest() - { - $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->glossaryName('[PROJECT]', '[LOCATION]', '[GLOSSARY]'); - $request = (new GetGlossaryRequest()) - ->setName($formattedName); - try { - $gapicClient->getGlossary($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 getGlossaryCategoryTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $uid = 'uid115792'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $parent = 'parent-995424086'; - $expectedResponse = new GlossaryCategory(); - $expectedResponse->setName($name2); - $expectedResponse->setUid($uid); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setParent($parent); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->glossaryCategoryName('[PROJECT]', '[LOCATION]', '[GLOSSARY]', '[GLOSSARY_CATEGORY]'); - $request = (new GetGlossaryCategoryRequest()) - ->setName($formattedName); - $response = $gapicClient->getGlossaryCategory($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.dataplex.v1.BusinessGlossaryService/GetGlossaryCategory', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getGlossaryCategoryExceptionTest() - { - $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->glossaryCategoryName('[PROJECT]', '[LOCATION]', '[GLOSSARY]', '[GLOSSARY_CATEGORY]'); - $request = (new GetGlossaryCategoryRequest()) - ->setName($formattedName); - try { - $gapicClient->getGlossaryCategory($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 getGlossaryTermTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $uid = 'uid115792'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $parent = 'parent-995424086'; - $expectedResponse = new GlossaryTerm(); - $expectedResponse->setName($name2); - $expectedResponse->setUid($uid); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setParent($parent); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->glossaryTermName('[PROJECT]', '[LOCATION]', '[GLOSSARY]', '[GLOSSARY_TERM]'); - $request = (new GetGlossaryTermRequest()) - ->setName($formattedName); - $response = $gapicClient->getGlossaryTerm($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.dataplex.v1.BusinessGlossaryService/GetGlossaryTerm', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getGlossaryTermExceptionTest() - { - $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->glossaryTermName('[PROJECT]', '[LOCATION]', '[GLOSSARY]', '[GLOSSARY_TERM]'); - $request = (new GetGlossaryTermRequest()) - ->setName($formattedName); - try { - $gapicClient->getGlossaryTerm($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 listGlossariesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $glossariesElement = new Glossary(); - $glossaries = [ - $glossariesElement, - ]; - $expectedResponse = new ListGlossariesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setGlossaries($glossaries); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListGlossariesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listGlossaries($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getGlossaries()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataplex.v1.BusinessGlossaryService/ListGlossaries', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listGlossariesExceptionTest() - { - $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->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListGlossariesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listGlossaries($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 listGlossaryCategoriesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $categoriesElement = new GlossaryCategory(); - $categories = [ - $categoriesElement, - ]; - $expectedResponse = new ListGlossaryCategoriesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setCategories($categories); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->glossaryName('[PROJECT]', '[LOCATION]', '[GLOSSARY]'); - $request = (new ListGlossaryCategoriesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listGlossaryCategories($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getCategories()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataplex.v1.BusinessGlossaryService/ListGlossaryCategories', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listGlossaryCategoriesExceptionTest() - { - $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->glossaryName('[PROJECT]', '[LOCATION]', '[GLOSSARY]'); - $request = (new ListGlossaryCategoriesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listGlossaryCategories($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 listGlossaryTermsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $termsElement = new GlossaryTerm(); - $terms = [ - $termsElement, - ]; - $expectedResponse = new ListGlossaryTermsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setTerms($terms); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->glossaryName('[PROJECT]', '[LOCATION]', '[GLOSSARY]'); - $request = (new ListGlossaryTermsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listGlossaryTerms($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getTerms()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataplex.v1.BusinessGlossaryService/ListGlossaryTerms', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listGlossaryTermsExceptionTest() - { - $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->glossaryName('[PROJECT]', '[LOCATION]', '[GLOSSARY]'); - $request = (new ListGlossaryTermsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listGlossaryTerms($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 updateGlossaryTest() - { - $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/updateGlossaryTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $uid = 'uid115792'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $termCount = 1604847748; - $categoryCount = 1899510414; - $etag = 'etag3123477'; - $expectedResponse = new Glossary(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setTermCount($termCount); - $expectedResponse->setCategoryCount($categoryCount); - $expectedResponse->setEtag($etag); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateGlossaryTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $glossary = new Glossary(); - $updateMask = new FieldMask(); - $request = (new UpdateGlossaryRequest()) - ->setGlossary($glossary) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateGlossary($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.dataplex.v1.BusinessGlossaryService/UpdateGlossary', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getGlossary(); - $this->assertProtobufEquals($glossary, $actualValue); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateGlossaryTest'); - $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 updateGlossaryExceptionTest() - { - $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/updateGlossaryTest'); - $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 - $glossary = new Glossary(); - $updateMask = new FieldMask(); - $request = (new UpdateGlossaryRequest()) - ->setGlossary($glossary) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateGlossary($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateGlossaryTest'); - 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 updateGlossaryCategoryTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $uid = 'uid115792'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $parent = 'parent-995424086'; - $expectedResponse = new GlossaryCategory(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setParent($parent); - $transport->addResponse($expectedResponse); - // Mock request - $category = new GlossaryCategory(); - $categoryParent = 'categoryParent1468300104'; - $category->setParent($categoryParent); - $updateMask = new FieldMask(); - $request = (new UpdateGlossaryCategoryRequest()) - ->setCategory($category) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateGlossaryCategory($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.dataplex.v1.BusinessGlossaryService/UpdateGlossaryCategory', $actualFuncCall); - $actualValue = $actualRequestObject->getCategory(); - $this->assertProtobufEquals($category, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateGlossaryCategoryExceptionTest() - { - $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 - $category = new GlossaryCategory(); - $categoryParent = 'categoryParent1468300104'; - $category->setParent($categoryParent); - $updateMask = new FieldMask(); - $request = (new UpdateGlossaryCategoryRequest()) - ->setCategory($category) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateGlossaryCategory($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 updateGlossaryTermTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $uid = 'uid115792'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $parent = 'parent-995424086'; - $expectedResponse = new GlossaryTerm(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setParent($parent); - $transport->addResponse($expectedResponse); - // Mock request - $term = new GlossaryTerm(); - $termParent = $gapicClient->glossaryName('[PROJECT]', '[LOCATION]', '[GLOSSARY]'); - $term->setParent($termParent); - $updateMask = new FieldMask(); - $request = (new UpdateGlossaryTermRequest()) - ->setTerm($term) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateGlossaryTerm($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.dataplex.v1.BusinessGlossaryService/UpdateGlossaryTerm', $actualFuncCall); - $actualValue = $actualRequestObject->getTerm(); - $this->assertProtobufEquals($term, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateGlossaryTermExceptionTest() - { - $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 - $term = new GlossaryTerm(); - $termParent = $gapicClient->glossaryName('[PROJECT]', '[LOCATION]', '[GLOSSARY]'); - $term->setParent($termParent); - $updateMask = new FieldMask(); - $request = (new UpdateGlossaryTermRequest()) - ->setTerm($term) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateGlossaryTerm($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 getIamPolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $version = 351608024; - $etag = '21'; - $expectedResponse = new Policy(); - $expectedResponse->setVersion($version); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $request = (new GetIamPolicyRequest()) - ->setResource($resource); - $response = $gapicClient->getIamPolicy($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.iam.v1.IAMPolicy/GetIamPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getIamPolicyExceptionTest() - { - $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 - $resource = 'resource-341064690'; - $request = (new GetIamPolicyRequest()) - ->setResource($resource); - try { - $gapicClient->getIamPolicy($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 setIamPolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $version = 351608024; - $etag = '21'; - $expectedResponse = new Policy(); - $expectedResponse->setVersion($version); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $policy = new Policy(); - $request = (new SetIamPolicyRequest()) - ->setResource($resource) - ->setPolicy($policy); - $response = $gapicClient->setIamPolicy($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.iam.v1.IAMPolicy/SetIamPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $actualValue = $actualRequestObject->getPolicy(); - $this->assertProtobufEquals($policy, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setIamPolicyExceptionTest() - { - $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 - $resource = 'resource-341064690'; - $policy = new Policy(); - $request = (new SetIamPolicyRequest()) - ->setResource($resource) - ->setPolicy($policy); - try { - $gapicClient->setIamPolicy($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 testIamPermissionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new TestIamPermissionsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $permissions = []; - $request = (new TestIamPermissionsRequest()) - ->setResource($resource) - ->setPermissions($permissions); - $response = $gapicClient->testIamPermissions($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.iam.v1.IAMPolicy/TestIamPermissions', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $actualValue = $actualRequestObject->getPermissions(); - $this->assertProtobufEquals($permissions, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function testIamPermissionsExceptionTest() - { - $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 - $resource = 'resource-341064690'; - $permissions = []; - $request = (new TestIamPermissionsRequest()) - ->setResource($resource) - ->setPermissions($permissions); - try { - $gapicClient->testIamPermissions($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 createGlossaryAsyncTest() - { - $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/createGlossaryTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $uid = 'uid115792'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $termCount = 1604847748; - $categoryCount = 1899510414; - $etag = 'etag3123477'; - $expectedResponse = new Glossary(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setTermCount($termCount); - $expectedResponse->setCategoryCount($categoryCount); - $expectedResponse->setEtag($etag); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createGlossaryTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $glossaryId = 'glossaryId1514441436'; - $glossary = new Glossary(); - $request = (new CreateGlossaryRequest()) - ->setParent($formattedParent) - ->setGlossaryId($glossaryId) - ->setGlossary($glossary); - $response = $gapicClient->createGlossaryAsync($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.dataplex.v1.BusinessGlossaryService/CreateGlossary', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getGlossaryId(); - $this->assertProtobufEquals($glossaryId, $actualValue); - $actualValue = $actualApiRequestObject->getGlossary(); - $this->assertProtobufEquals($glossary, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createGlossaryTest'); - $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/Dataplex/v1/tests/Unit/V1/Client/CatalogServiceClientTest.php b/owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/CatalogServiceClientTest.php deleted file mode 100644 index e2dd6a038164..000000000000 --- a/owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/CatalogServiceClientTest.php +++ /dev/null @@ -1,4075 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return CatalogServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new CatalogServiceClient($options); - } - - /** @test */ - public function cancelMetadataJobTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->metadataJobName('[PROJECT]', '[LOCATION]', '[METADATAJOB]'); - $request = (new CancelMetadataJobRequest()) - ->setName($formattedName); - $gapicClient->cancelMetadataJob($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataplex.v1.CatalogService/CancelMetadataJob', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function cancelMetadataJobExceptionTest() - { - $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->metadataJobName('[PROJECT]', '[LOCATION]', '[METADATAJOB]'); - $request = (new CancelMetadataJobRequest()) - ->setName($formattedName); - try { - $gapicClient->cancelMetadataJob($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 createAspectTypeTest() - { - $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/createAspectTypeTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $uid = 'uid115792'; - $description = 'description-1724546052'; - $displayName = 'displayName1615086568'; - $etag = 'etag3123477'; - $expectedResponse = new AspectType(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setDescription($description); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setEtag($etag); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createAspectTypeTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $aspectTypeId = 'aspectTypeId-688405671'; - $aspectType = new AspectType(); - $aspectTypeMetadataTemplate = new MetadataTemplate(); - $metadataTemplateName = 'metadataTemplateName393703156'; - $aspectTypeMetadataTemplate->setName($metadataTemplateName); - $metadataTemplateType = 'metadataTemplateType393905059'; - $aspectTypeMetadataTemplate->setType($metadataTemplateType); - $aspectType->setMetadataTemplate($aspectTypeMetadataTemplate); - $request = (new CreateAspectTypeRequest()) - ->setParent($formattedParent) - ->setAspectTypeId($aspectTypeId) - ->setAspectType($aspectType); - $response = $gapicClient->createAspectType($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.dataplex.v1.CatalogService/CreateAspectType', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getAspectTypeId(); - $this->assertProtobufEquals($aspectTypeId, $actualValue); - $actualValue = $actualApiRequestObject->getAspectType(); - $this->assertProtobufEquals($aspectType, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createAspectTypeTest'); - $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 createAspectTypeExceptionTest() - { - $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/createAspectTypeTest'); - $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->locationName('[PROJECT]', '[LOCATION]'); - $aspectTypeId = 'aspectTypeId-688405671'; - $aspectType = new AspectType(); - $aspectTypeMetadataTemplate = new MetadataTemplate(); - $metadataTemplateName = 'metadataTemplateName393703156'; - $aspectTypeMetadataTemplate->setName($metadataTemplateName); - $metadataTemplateType = 'metadataTemplateType393905059'; - $aspectTypeMetadataTemplate->setType($metadataTemplateType); - $aspectType->setMetadataTemplate($aspectTypeMetadataTemplate); - $request = (new CreateAspectTypeRequest()) - ->setParent($formattedParent) - ->setAspectTypeId($aspectTypeId) - ->setAspectType($aspectType); - $response = $gapicClient->createAspectType($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createAspectTypeTest'); - 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 createEntryTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $entryType = 'entryType-1965312281'; - $parentEntry = 'parentEntry1393020061'; - $fullyQualifiedName = 'fullyQualifiedName338146659'; - $expectedResponse = new Entry(); - $expectedResponse->setName($name); - $expectedResponse->setEntryType($entryType); - $expectedResponse->setParentEntry($parentEntry); - $expectedResponse->setFullyQualifiedName($fullyQualifiedName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->entryGroupName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]'); - $entryId = 'entryId-2093663224'; - $entry = new Entry(); - $entryEntryType = 'entryEntryType884603514'; - $entry->setEntryType($entryEntryType); - $request = (new CreateEntryRequest()) - ->setParent($formattedParent) - ->setEntryId($entryId) - ->setEntry($entry); - $response = $gapicClient->createEntry($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.dataplex.v1.CatalogService/CreateEntry', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getEntryId(); - $this->assertProtobufEquals($entryId, $actualValue); - $actualValue = $actualRequestObject->getEntry(); - $this->assertProtobufEquals($entry, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createEntryExceptionTest() - { - $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->entryGroupName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]'); - $entryId = 'entryId-2093663224'; - $entry = new Entry(); - $entryEntryType = 'entryEntryType884603514'; - $entry->setEntryType($entryEntryType); - $request = (new CreateEntryRequest()) - ->setParent($formattedParent) - ->setEntryId($entryId) - ->setEntry($entry); - try { - $gapicClient->createEntry($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 createEntryGroupTest() - { - $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/createEntryGroupTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $uid = 'uid115792'; - $description = 'description-1724546052'; - $displayName = 'displayName1615086568'; - $etag = 'etag3123477'; - $expectedResponse = new EntryGroup(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setDescription($description); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setEtag($etag); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createEntryGroupTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $entryGroupId = 'entryGroupId-43122680'; - $entryGroup = new EntryGroup(); - $request = (new CreateEntryGroupRequest()) - ->setParent($formattedParent) - ->setEntryGroupId($entryGroupId) - ->setEntryGroup($entryGroup); - $response = $gapicClient->createEntryGroup($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.dataplex.v1.CatalogService/CreateEntryGroup', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getEntryGroupId(); - $this->assertProtobufEquals($entryGroupId, $actualValue); - $actualValue = $actualApiRequestObject->getEntryGroup(); - $this->assertProtobufEquals($entryGroup, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createEntryGroupTest'); - $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 createEntryGroupExceptionTest() - { - $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/createEntryGroupTest'); - $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->locationName('[PROJECT]', '[LOCATION]'); - $entryGroupId = 'entryGroupId-43122680'; - $entryGroup = new EntryGroup(); - $request = (new CreateEntryGroupRequest()) - ->setParent($formattedParent) - ->setEntryGroupId($entryGroupId) - ->setEntryGroup($entryGroup); - $response = $gapicClient->createEntryGroup($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createEntryGroupTest'); - 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 createEntryLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $entryLinkType = 'entryLinkType-1478418222'; - $expectedResponse = new EntryLink(); - $expectedResponse->setName($name); - $expectedResponse->setEntryLinkType($entryLinkType); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->entryGroupName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]'); - $entryLinkId = 'entryLinkId1406280883'; - $entryLink = new EntryLink(); - $entryLinkEntryLinkType = 'entryLinkEntryLinkType-1556238150'; - $entryLink->setEntryLinkType($entryLinkEntryLinkType); - $entryLinkEntryReferences = []; - $entryLink->setEntryReferences($entryLinkEntryReferences); - $request = (new CreateEntryLinkRequest()) - ->setParent($formattedParent) - ->setEntryLinkId($entryLinkId) - ->setEntryLink($entryLink); - $response = $gapicClient->createEntryLink($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.dataplex.v1.CatalogService/CreateEntryLink', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getEntryLinkId(); - $this->assertProtobufEquals($entryLinkId, $actualValue); - $actualValue = $actualRequestObject->getEntryLink(); - $this->assertProtobufEquals($entryLink, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createEntryLinkExceptionTest() - { - $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->entryGroupName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]'); - $entryLinkId = 'entryLinkId1406280883'; - $entryLink = new EntryLink(); - $entryLinkEntryLinkType = 'entryLinkEntryLinkType-1556238150'; - $entryLink->setEntryLinkType($entryLinkEntryLinkType); - $entryLinkEntryReferences = []; - $entryLink->setEntryReferences($entryLinkEntryReferences); - $request = (new CreateEntryLinkRequest()) - ->setParent($formattedParent) - ->setEntryLinkId($entryLinkId) - ->setEntryLink($entryLink); - try { - $gapicClient->createEntryLink($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 createEntryTypeTest() - { - $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/createEntryTypeTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $uid = 'uid115792'; - $description = 'description-1724546052'; - $displayName = 'displayName1615086568'; - $etag = 'etag3123477'; - $platform = 'platform1874684019'; - $system = 'system-887328209'; - $expectedResponse = new EntryType(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setDescription($description); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setEtag($etag); - $expectedResponse->setPlatform($platform); - $expectedResponse->setSystem($system); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createEntryTypeTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $entryTypeId = 'entryTypeId376110451'; - $entryType = new EntryType(); - $request = (new CreateEntryTypeRequest()) - ->setParent($formattedParent) - ->setEntryTypeId($entryTypeId) - ->setEntryType($entryType); - $response = $gapicClient->createEntryType($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.dataplex.v1.CatalogService/CreateEntryType', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getEntryTypeId(); - $this->assertProtobufEquals($entryTypeId, $actualValue); - $actualValue = $actualApiRequestObject->getEntryType(); - $this->assertProtobufEquals($entryType, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createEntryTypeTest'); - $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 createEntryTypeExceptionTest() - { - $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/createEntryTypeTest'); - $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->locationName('[PROJECT]', '[LOCATION]'); - $entryTypeId = 'entryTypeId376110451'; - $entryType = new EntryType(); - $request = (new CreateEntryTypeRequest()) - ->setParent($formattedParent) - ->setEntryTypeId($entryTypeId) - ->setEntryType($entryType); - $response = $gapicClient->createEntryType($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createEntryTypeTest'); - 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 createMetadataFeedTest() - { - $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/createMetadataFeedTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $uid = 'uid115792'; - $pubsubTopic = 'pubsubTopic-338126829'; - $expectedResponse = new MetadataFeed(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setPubsubTopic($pubsubTopic); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createMetadataFeedTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $metadataFeed = new MetadataFeed(); - $metadataFeedScope = new Scope(); - $metadataFeed->setScope($metadataFeedScope); - $request = (new CreateMetadataFeedRequest()) - ->setParent($formattedParent) - ->setMetadataFeed($metadataFeed); - $response = $gapicClient->createMetadataFeed($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.dataplex.v1.CatalogService/CreateMetadataFeed', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getMetadataFeed(); - $this->assertProtobufEquals($metadataFeed, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createMetadataFeedTest'); - $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 createMetadataFeedExceptionTest() - { - $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/createMetadataFeedTest'); - $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->locationName('[PROJECT]', '[LOCATION]'); - $metadataFeed = new MetadataFeed(); - $metadataFeedScope = new Scope(); - $metadataFeed->setScope($metadataFeedScope); - $request = (new CreateMetadataFeedRequest()) - ->setParent($formattedParent) - ->setMetadataFeed($metadataFeed); - $response = $gapicClient->createMetadataFeed($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createMetadataFeedTest'); - 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 createMetadataJobTest() - { - $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/createMetadataJobTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $uid = 'uid115792'; - $expectedResponse = new MetadataJob(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createMetadataJobTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $metadataJob = new MetadataJob(); - $metadataJobType = Type::TYPE_UNSPECIFIED; - $metadataJob->setType($metadataJobType); - $request = (new CreateMetadataJobRequest()) - ->setParent($formattedParent) - ->setMetadataJob($metadataJob); - $response = $gapicClient->createMetadataJob($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.dataplex.v1.CatalogService/CreateMetadataJob', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getMetadataJob(); - $this->assertProtobufEquals($metadataJob, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createMetadataJobTest'); - $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 createMetadataJobExceptionTest() - { - $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/createMetadataJobTest'); - $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->locationName('[PROJECT]', '[LOCATION]'); - $metadataJob = new MetadataJob(); - $metadataJobType = Type::TYPE_UNSPECIFIED; - $metadataJob->setType($metadataJobType); - $request = (new CreateMetadataJobRequest()) - ->setParent($formattedParent) - ->setMetadataJob($metadataJob); - $response = $gapicClient->createMetadataJob($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createMetadataJobTest'); - 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 deleteAspectTypeTest() - { - $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/deleteAspectTypeTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteAspectTypeTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->aspectTypeName('[PROJECT]', '[LOCATION]', '[ASPECT_TYPE]'); - $request = (new DeleteAspectTypeRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteAspectType($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.dataplex.v1.CatalogService/DeleteAspectType', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteAspectTypeTest'); - $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 deleteAspectTypeExceptionTest() - { - $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/deleteAspectTypeTest'); - $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->aspectTypeName('[PROJECT]', '[LOCATION]', '[ASPECT_TYPE]'); - $request = (new DeleteAspectTypeRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteAspectType($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteAspectTypeTest'); - 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 deleteEntryTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $entryType = 'entryType-1965312281'; - $parentEntry = 'parentEntry1393020061'; - $fullyQualifiedName = 'fullyQualifiedName338146659'; - $expectedResponse = new Entry(); - $expectedResponse->setName($name2); - $expectedResponse->setEntryType($entryType); - $expectedResponse->setParentEntry($parentEntry); - $expectedResponse->setFullyQualifiedName($fullyQualifiedName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->entryName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]', '[ENTRY]'); - $request = (new DeleteEntryRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteEntry($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.dataplex.v1.CatalogService/DeleteEntry', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteEntryExceptionTest() - { - $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->entryName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]', '[ENTRY]'); - $request = (new DeleteEntryRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteEntry($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 deleteEntryGroupTest() - { - $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/deleteEntryGroupTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteEntryGroupTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->entryGroupName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]'); - $request = (new DeleteEntryGroupRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteEntryGroup($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.dataplex.v1.CatalogService/DeleteEntryGroup', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteEntryGroupTest'); - $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 deleteEntryGroupExceptionTest() - { - $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/deleteEntryGroupTest'); - $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->entryGroupName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]'); - $request = (new DeleteEntryGroupRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteEntryGroup($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteEntryGroupTest'); - 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 deleteEntryLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $entryLinkType = 'entryLinkType-1478418222'; - $expectedResponse = new EntryLink(); - $expectedResponse->setName($name2); - $expectedResponse->setEntryLinkType($entryLinkType); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->entryLinkName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]', '[ENTRY_LINK]'); - $request = (new DeleteEntryLinkRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteEntryLink($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.dataplex.v1.CatalogService/DeleteEntryLink', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteEntryLinkExceptionTest() - { - $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->entryLinkName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]', '[ENTRY_LINK]'); - $request = (new DeleteEntryLinkRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteEntryLink($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 deleteEntryTypeTest() - { - $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/deleteEntryTypeTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteEntryTypeTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->entryTypeName('[PROJECT]', '[LOCATION]', '[ENTRY_TYPE]'); - $request = (new DeleteEntryTypeRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteEntryType($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.dataplex.v1.CatalogService/DeleteEntryType', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteEntryTypeTest'); - $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 deleteEntryTypeExceptionTest() - { - $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/deleteEntryTypeTest'); - $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->entryTypeName('[PROJECT]', '[LOCATION]', '[ENTRY_TYPE]'); - $request = (new DeleteEntryTypeRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteEntryType($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteEntryTypeTest'); - 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 deleteMetadataFeedTest() - { - $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/deleteMetadataFeedTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteMetadataFeedTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->metadataFeedName('[PROJECT]', '[LOCATION]', '[METADATA_FEED]'); - $request = (new DeleteMetadataFeedRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteMetadataFeed($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.dataplex.v1.CatalogService/DeleteMetadataFeed', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteMetadataFeedTest'); - $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 deleteMetadataFeedExceptionTest() - { - $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/deleteMetadataFeedTest'); - $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->metadataFeedName('[PROJECT]', '[LOCATION]', '[METADATA_FEED]'); - $request = (new DeleteMetadataFeedRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteMetadataFeed($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteMetadataFeedTest'); - 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 getAspectTypeTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $uid = 'uid115792'; - $description = 'description-1724546052'; - $displayName = 'displayName1615086568'; - $etag = 'etag3123477'; - $expectedResponse = new AspectType(); - $expectedResponse->setName($name2); - $expectedResponse->setUid($uid); - $expectedResponse->setDescription($description); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->aspectTypeName('[PROJECT]', '[LOCATION]', '[ASPECT_TYPE]'); - $request = (new GetAspectTypeRequest()) - ->setName($formattedName); - $response = $gapicClient->getAspectType($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.dataplex.v1.CatalogService/GetAspectType', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAspectTypeExceptionTest() - { - $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->aspectTypeName('[PROJECT]', '[LOCATION]', '[ASPECT_TYPE]'); - $request = (new GetAspectTypeRequest()) - ->setName($formattedName); - try { - $gapicClient->getAspectType($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 getEntryTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $entryType = 'entryType-1965312281'; - $parentEntry = 'parentEntry1393020061'; - $fullyQualifiedName = 'fullyQualifiedName338146659'; - $expectedResponse = new Entry(); - $expectedResponse->setName($name2); - $expectedResponse->setEntryType($entryType); - $expectedResponse->setParentEntry($parentEntry); - $expectedResponse->setFullyQualifiedName($fullyQualifiedName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->entryName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]', '[ENTRY]'); - $request = (new GetEntryRequest()) - ->setName($formattedName); - $response = $gapicClient->getEntry($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.dataplex.v1.CatalogService/GetEntry', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getEntryExceptionTest() - { - $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->entryName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]', '[ENTRY]'); - $request = (new GetEntryRequest()) - ->setName($formattedName); - try { - $gapicClient->getEntry($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 getEntryGroupTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $uid = 'uid115792'; - $description = 'description-1724546052'; - $displayName = 'displayName1615086568'; - $etag = 'etag3123477'; - $expectedResponse = new EntryGroup(); - $expectedResponse->setName($name2); - $expectedResponse->setUid($uid); - $expectedResponse->setDescription($description); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->entryGroupName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]'); - $request = (new GetEntryGroupRequest()) - ->setName($formattedName); - $response = $gapicClient->getEntryGroup($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.dataplex.v1.CatalogService/GetEntryGroup', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getEntryGroupExceptionTest() - { - $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->entryGroupName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]'); - $request = (new GetEntryGroupRequest()) - ->setName($formattedName); - try { - $gapicClient->getEntryGroup($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 getEntryLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $entryLinkType = 'entryLinkType-1478418222'; - $expectedResponse = new EntryLink(); - $expectedResponse->setName($name2); - $expectedResponse->setEntryLinkType($entryLinkType); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->entryLinkName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]', '[ENTRY_LINK]'); - $request = (new GetEntryLinkRequest()) - ->setName($formattedName); - $response = $gapicClient->getEntryLink($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.dataplex.v1.CatalogService/GetEntryLink', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getEntryLinkExceptionTest() - { - $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->entryLinkName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]', '[ENTRY_LINK]'); - $request = (new GetEntryLinkRequest()) - ->setName($formattedName); - try { - $gapicClient->getEntryLink($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 getEntryTypeTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $uid = 'uid115792'; - $description = 'description-1724546052'; - $displayName = 'displayName1615086568'; - $etag = 'etag3123477'; - $platform = 'platform1874684019'; - $system = 'system-887328209'; - $expectedResponse = new EntryType(); - $expectedResponse->setName($name2); - $expectedResponse->setUid($uid); - $expectedResponse->setDescription($description); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setEtag($etag); - $expectedResponse->setPlatform($platform); - $expectedResponse->setSystem($system); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->entryTypeName('[PROJECT]', '[LOCATION]', '[ENTRY_TYPE]'); - $request = (new GetEntryTypeRequest()) - ->setName($formattedName); - $response = $gapicClient->getEntryType($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.dataplex.v1.CatalogService/GetEntryType', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getEntryTypeExceptionTest() - { - $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->entryTypeName('[PROJECT]', '[LOCATION]', '[ENTRY_TYPE]'); - $request = (new GetEntryTypeRequest()) - ->setName($formattedName); - try { - $gapicClient->getEntryType($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 getMetadataFeedTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $uid = 'uid115792'; - $pubsubTopic = 'pubsubTopic-338126829'; - $expectedResponse = new MetadataFeed(); - $expectedResponse->setName($name2); - $expectedResponse->setUid($uid); - $expectedResponse->setPubsubTopic($pubsubTopic); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->metadataFeedName('[PROJECT]', '[LOCATION]', '[METADATA_FEED]'); - $request = (new GetMetadataFeedRequest()) - ->setName($formattedName); - $response = $gapicClient->getMetadataFeed($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.dataplex.v1.CatalogService/GetMetadataFeed', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getMetadataFeedExceptionTest() - { - $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->metadataFeedName('[PROJECT]', '[LOCATION]', '[METADATA_FEED]'); - $request = (new GetMetadataFeedRequest()) - ->setName($formattedName); - try { - $gapicClient->getMetadataFeed($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 getMetadataJobTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $uid = 'uid115792'; - $expectedResponse = new MetadataJob(); - $expectedResponse->setName($name2); - $expectedResponse->setUid($uid); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->metadataJobName('[PROJECT]', '[LOCATION]', '[METADATAJOB]'); - $request = (new GetMetadataJobRequest()) - ->setName($formattedName); - $response = $gapicClient->getMetadataJob($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.dataplex.v1.CatalogService/GetMetadataJob', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getMetadataJobExceptionTest() - { - $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->metadataJobName('[PROJECT]', '[LOCATION]', '[METADATAJOB]'); - $request = (new GetMetadataJobRequest()) - ->setName($formattedName); - try { - $gapicClient->getMetadataJob($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 listAspectTypesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $aspectTypesElement = new AspectType(); - $aspectTypes = [ - $aspectTypesElement, - ]; - $expectedResponse = new ListAspectTypesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setAspectTypes($aspectTypes); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListAspectTypesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listAspectTypes($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getAspectTypes()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataplex.v1.CatalogService/ListAspectTypes', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAspectTypesExceptionTest() - { - $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->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListAspectTypesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listAspectTypes($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 listEntriesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $entriesElement = new Entry(); - $entries = [ - $entriesElement, - ]; - $expectedResponse = new ListEntriesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setEntries($entries); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->entryGroupName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]'); - $request = (new ListEntriesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listEntries($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getEntries()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataplex.v1.CatalogService/ListEntries', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listEntriesExceptionTest() - { - $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->entryGroupName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]'); - $request = (new ListEntriesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listEntries($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 listEntryGroupsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $entryGroupsElement = new EntryGroup(); - $entryGroups = [ - $entryGroupsElement, - ]; - $expectedResponse = new ListEntryGroupsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setEntryGroups($entryGroups); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListEntryGroupsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listEntryGroups($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getEntryGroups()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataplex.v1.CatalogService/ListEntryGroups', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listEntryGroupsExceptionTest() - { - $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->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListEntryGroupsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listEntryGroups($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 listEntryTypesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $entryTypesElement = new EntryType(); - $entryTypes = [ - $entryTypesElement, - ]; - $expectedResponse = new ListEntryTypesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setEntryTypes($entryTypes); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListEntryTypesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listEntryTypes($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getEntryTypes()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataplex.v1.CatalogService/ListEntryTypes', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listEntryTypesExceptionTest() - { - $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->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListEntryTypesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listEntryTypes($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 listMetadataFeedsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $metadataFeedsElement = new MetadataFeed(); - $metadataFeeds = [ - $metadataFeedsElement, - ]; - $expectedResponse = new ListMetadataFeedsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setMetadataFeeds($metadataFeeds); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListMetadataFeedsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listMetadataFeeds($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getMetadataFeeds()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataplex.v1.CatalogService/ListMetadataFeeds', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listMetadataFeedsExceptionTest() - { - $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->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListMetadataFeedsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listMetadataFeeds($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 listMetadataJobsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $metadataJobsElement = new MetadataJob(); - $metadataJobs = [ - $metadataJobsElement, - ]; - $expectedResponse = new ListMetadataJobsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setMetadataJobs($metadataJobs); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListMetadataJobsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listMetadataJobs($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getMetadataJobs()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataplex.v1.CatalogService/ListMetadataJobs', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listMetadataJobsExceptionTest() - { - $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->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListMetadataJobsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listMetadataJobs($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 lookupContextTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $context2 = 'context2-406810206'; - $expectedResponse = new LookupContextResponse(); - $expectedResponse->setContext($context2); - $transport->addResponse($expectedResponse); - // Mock request - $name = 'name3373707'; - $formattedResources = [ - $gapicClient->entryName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]', '[ENTRY]'), - ]; - $request = (new LookupContextRequest()) - ->setName($name) - ->setResources($formattedResources); - $response = $gapicClient->lookupContext($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.dataplex.v1.CatalogService/LookupContext', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($name, $actualValue); - $actualValue = $actualRequestObject->getResources(); - $this->assertProtobufEquals($formattedResources, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function lookupContextExceptionTest() - { - $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 - $name = 'name3373707'; - $formattedResources = [ - $gapicClient->entryName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]', '[ENTRY]'), - ]; - $request = (new LookupContextRequest()) - ->setName($name) - ->setResources($formattedResources); - try { - $gapicClient->lookupContext($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 lookupEntryTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $entryType = 'entryType-1965312281'; - $parentEntry = 'parentEntry1393020061'; - $fullyQualifiedName = 'fullyQualifiedName338146659'; - $expectedResponse = new Entry(); - $expectedResponse->setName($name2); - $expectedResponse->setEntryType($entryType); - $expectedResponse->setParentEntry($parentEntry); - $expectedResponse->setFullyQualifiedName($fullyQualifiedName); - $transport->addResponse($expectedResponse); - // Mock request - $name = 'name3373707'; - $formattedEntry = $gapicClient->entryName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]', '[ENTRY]'); - $request = (new LookupEntryRequest()) - ->setName($name) - ->setEntry($formattedEntry); - $response = $gapicClient->lookupEntry($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.dataplex.v1.CatalogService/LookupEntry', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($name, $actualValue); - $actualValue = $actualRequestObject->getEntry(); - $this->assertProtobufEquals($formattedEntry, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function lookupEntryExceptionTest() - { - $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 - $name = 'name3373707'; - $formattedEntry = $gapicClient->entryName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]', '[ENTRY]'); - $request = (new LookupEntryRequest()) - ->setName($name) - ->setEntry($formattedEntry); - try { - $gapicClient->lookupEntry($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 lookupEntryLinksTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $entryLinksElement = new EntryLink(); - $entryLinks = [ - $entryLinksElement, - ]; - $expectedResponse = new LookupEntryLinksResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setEntryLinks($entryLinks); - $transport->addResponse($expectedResponse); - // Mock request - $name = 'name3373707'; - $formattedEntry = $gapicClient->entryName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]', '[ENTRY]'); - $request = (new LookupEntryLinksRequest()) - ->setName($name) - ->setEntry($formattedEntry); - $response = $gapicClient->lookupEntryLinks($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getEntryLinks()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataplex.v1.CatalogService/LookupEntryLinks', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($name, $actualValue); - $actualValue = $actualRequestObject->getEntry(); - $this->assertProtobufEquals($formattedEntry, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function lookupEntryLinksExceptionTest() - { - $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 - $name = 'name3373707'; - $formattedEntry = $gapicClient->entryName('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]', '[ENTRY]'); - $request = (new LookupEntryLinksRequest()) - ->setName($name) - ->setEntry($formattedEntry); - try { - $gapicClient->lookupEntryLinks($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 modifyEntryTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $entryType = 'entryType-1965312281'; - $parentEntry = 'parentEntry1393020061'; - $fullyQualifiedName = 'fullyQualifiedName338146659'; - $expectedResponse = new Entry(); - $expectedResponse->setName($name2); - $expectedResponse->setEntryType($entryType); - $expectedResponse->setParentEntry($parentEntry); - $expectedResponse->setFullyQualifiedName($fullyQualifiedName); - $transport->addResponse($expectedResponse); - // Mock request - $name = 'name3373707'; - $entry = new Entry(); - $entryEntryType = 'entryEntryType884603514'; - $entry->setEntryType($entryEntryType); - $request = (new ModifyEntryRequest()) - ->setName($name) - ->setEntry($entry); - $response = $gapicClient->modifyEntry($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.dataplex.v1.CatalogService/ModifyEntry', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($name, $actualValue); - $actualValue = $actualRequestObject->getEntry(); - $this->assertProtobufEquals($entry, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function modifyEntryExceptionTest() - { - $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 - $name = 'name3373707'; - $entry = new Entry(); - $entryEntryType = 'entryEntryType884603514'; - $entry->setEntryType($entryEntryType); - $request = (new ModifyEntryRequest()) - ->setName($name) - ->setEntry($entry); - try { - $gapicClient->modifyEntry($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 searchEntriesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $totalSize = 705419236; - $nextPageToken = ''; - $resultsElement = new SearchEntriesResult(); - $results = [ - $resultsElement, - ]; - $expectedResponse = new SearchEntriesResponse(); - $expectedResponse->setTotalSize($totalSize); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setResults($results); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $query = 'query107944136'; - $request = (new SearchEntriesRequest()) - ->setName($formattedName) - ->setQuery($query); - $response = $gapicClient->searchEntries($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getResults()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataplex.v1.CatalogService/SearchEntries', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $actualValue = $actualRequestObject->getQuery(); - $this->assertProtobufEquals($query, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function searchEntriesExceptionTest() - { - $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->locationName('[PROJECT]', '[LOCATION]'); - $query = 'query107944136'; - $request = (new SearchEntriesRequest()) - ->setName($formattedName) - ->setQuery($query); - try { - $gapicClient->searchEntries($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 updateAspectTypeTest() - { - $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/updateAspectTypeTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $uid = 'uid115792'; - $description = 'description-1724546052'; - $displayName = 'displayName1615086568'; - $etag = 'etag3123477'; - $expectedResponse = new AspectType(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setDescription($description); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setEtag($etag); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateAspectTypeTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $aspectType = new AspectType(); - $aspectTypeMetadataTemplate = new MetadataTemplate(); - $metadataTemplateName = 'metadataTemplateName393703156'; - $aspectTypeMetadataTemplate->setName($metadataTemplateName); - $metadataTemplateType = 'metadataTemplateType393905059'; - $aspectTypeMetadataTemplate->setType($metadataTemplateType); - $aspectType->setMetadataTemplate($aspectTypeMetadataTemplate); - $updateMask = new FieldMask(); - $request = (new UpdateAspectTypeRequest()) - ->setAspectType($aspectType) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateAspectType($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.dataplex.v1.CatalogService/UpdateAspectType', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getAspectType(); - $this->assertProtobufEquals($aspectType, $actualValue); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateAspectTypeTest'); - $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 updateAspectTypeExceptionTest() - { - $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/updateAspectTypeTest'); - $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 - $aspectType = new AspectType(); - $aspectTypeMetadataTemplate = new MetadataTemplate(); - $metadataTemplateName = 'metadataTemplateName393703156'; - $aspectTypeMetadataTemplate->setName($metadataTemplateName); - $metadataTemplateType = 'metadataTemplateType393905059'; - $aspectTypeMetadataTemplate->setType($metadataTemplateType); - $aspectType->setMetadataTemplate($aspectTypeMetadataTemplate); - $updateMask = new FieldMask(); - $request = (new UpdateAspectTypeRequest()) - ->setAspectType($aspectType) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateAspectType($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateAspectTypeTest'); - 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 updateEntryTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $entryType = 'entryType-1965312281'; - $parentEntry = 'parentEntry1393020061'; - $fullyQualifiedName = 'fullyQualifiedName338146659'; - $expectedResponse = new Entry(); - $expectedResponse->setName($name); - $expectedResponse->setEntryType($entryType); - $expectedResponse->setParentEntry($parentEntry); - $expectedResponse->setFullyQualifiedName($fullyQualifiedName); - $transport->addResponse($expectedResponse); - // Mock request - $entry = new Entry(); - $entryEntryType = 'entryEntryType884603514'; - $entry->setEntryType($entryEntryType); - $request = (new UpdateEntryRequest()) - ->setEntry($entry); - $response = $gapicClient->updateEntry($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.dataplex.v1.CatalogService/UpdateEntry', $actualFuncCall); - $actualValue = $actualRequestObject->getEntry(); - $this->assertProtobufEquals($entry, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateEntryExceptionTest() - { - $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 - $entry = new Entry(); - $entryEntryType = 'entryEntryType884603514'; - $entry->setEntryType($entryEntryType); - $request = (new UpdateEntryRequest()) - ->setEntry($entry); - try { - $gapicClient->updateEntry($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 updateEntryGroupTest() - { - $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/updateEntryGroupTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $uid = 'uid115792'; - $description = 'description-1724546052'; - $displayName = 'displayName1615086568'; - $etag = 'etag3123477'; - $expectedResponse = new EntryGroup(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setDescription($description); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setEtag($etag); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateEntryGroupTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $entryGroup = new EntryGroup(); - $updateMask = new FieldMask(); - $request = (new UpdateEntryGroupRequest()) - ->setEntryGroup($entryGroup) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateEntryGroup($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.dataplex.v1.CatalogService/UpdateEntryGroup', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getEntryGroup(); - $this->assertProtobufEquals($entryGroup, $actualValue); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateEntryGroupTest'); - $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 updateEntryGroupExceptionTest() - { - $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/updateEntryGroupTest'); - $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 - $entryGroup = new EntryGroup(); - $updateMask = new FieldMask(); - $request = (new UpdateEntryGroupRequest()) - ->setEntryGroup($entryGroup) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateEntryGroup($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateEntryGroupTest'); - 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 updateEntryLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $entryLinkType = 'entryLinkType-1478418222'; - $expectedResponse = new EntryLink(); - $expectedResponse->setName($name); - $expectedResponse->setEntryLinkType($entryLinkType); - $transport->addResponse($expectedResponse); - // Mock request - $entryLink = new EntryLink(); - $entryLinkEntryLinkType = 'entryLinkEntryLinkType-1556238150'; - $entryLink->setEntryLinkType($entryLinkEntryLinkType); - $entryLinkEntryReferences = []; - $entryLink->setEntryReferences($entryLinkEntryReferences); - $request = (new UpdateEntryLinkRequest()) - ->setEntryLink($entryLink); - $response = $gapicClient->updateEntryLink($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.dataplex.v1.CatalogService/UpdateEntryLink', $actualFuncCall); - $actualValue = $actualRequestObject->getEntryLink(); - $this->assertProtobufEquals($entryLink, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateEntryLinkExceptionTest() - { - $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 - $entryLink = new EntryLink(); - $entryLinkEntryLinkType = 'entryLinkEntryLinkType-1556238150'; - $entryLink->setEntryLinkType($entryLinkEntryLinkType); - $entryLinkEntryReferences = []; - $entryLink->setEntryReferences($entryLinkEntryReferences); - $request = (new UpdateEntryLinkRequest()) - ->setEntryLink($entryLink); - try { - $gapicClient->updateEntryLink($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 updateEntryTypeTest() - { - $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/updateEntryTypeTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $uid = 'uid115792'; - $description = 'description-1724546052'; - $displayName = 'displayName1615086568'; - $etag = 'etag3123477'; - $platform = 'platform1874684019'; - $system = 'system-887328209'; - $expectedResponse = new EntryType(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setDescription($description); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setEtag($etag); - $expectedResponse->setPlatform($platform); - $expectedResponse->setSystem($system); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateEntryTypeTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $entryType = new EntryType(); - $updateMask = new FieldMask(); - $request = (new UpdateEntryTypeRequest()) - ->setEntryType($entryType) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateEntryType($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.dataplex.v1.CatalogService/UpdateEntryType', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getEntryType(); - $this->assertProtobufEquals($entryType, $actualValue); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateEntryTypeTest'); - $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 updateEntryTypeExceptionTest() - { - $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/updateEntryTypeTest'); - $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 - $entryType = new EntryType(); - $updateMask = new FieldMask(); - $request = (new UpdateEntryTypeRequest()) - ->setEntryType($entryType) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateEntryType($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateEntryTypeTest'); - 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 updateMetadataFeedTest() - { - $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/updateMetadataFeedTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $uid = 'uid115792'; - $pubsubTopic = 'pubsubTopic-338126829'; - $expectedResponse = new MetadataFeed(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setPubsubTopic($pubsubTopic); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateMetadataFeedTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $metadataFeed = new MetadataFeed(); - $metadataFeedScope = new Scope(); - $metadataFeed->setScope($metadataFeedScope); - $request = (new UpdateMetadataFeedRequest()) - ->setMetadataFeed($metadataFeed); - $response = $gapicClient->updateMetadataFeed($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.dataplex.v1.CatalogService/UpdateMetadataFeed', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getMetadataFeed(); - $this->assertProtobufEquals($metadataFeed, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateMetadataFeedTest'); - $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 updateMetadataFeedExceptionTest() - { - $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/updateMetadataFeedTest'); - $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 - $metadataFeed = new MetadataFeed(); - $metadataFeedScope = new Scope(); - $metadataFeed->setScope($metadataFeedScope); - $request = (new UpdateMetadataFeedRequest()) - ->setMetadataFeed($metadataFeed); - $response = $gapicClient->updateMetadataFeed($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateMetadataFeedTest'); - 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 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 getIamPolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $version = 351608024; - $etag = '21'; - $expectedResponse = new Policy(); - $expectedResponse->setVersion($version); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $request = (new GetIamPolicyRequest()) - ->setResource($resource); - $response = $gapicClient->getIamPolicy($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.iam.v1.IAMPolicy/GetIamPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getIamPolicyExceptionTest() - { - $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 - $resource = 'resource-341064690'; - $request = (new GetIamPolicyRequest()) - ->setResource($resource); - try { - $gapicClient->getIamPolicy($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 setIamPolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $version = 351608024; - $etag = '21'; - $expectedResponse = new Policy(); - $expectedResponse->setVersion($version); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $policy = new Policy(); - $request = (new SetIamPolicyRequest()) - ->setResource($resource) - ->setPolicy($policy); - $response = $gapicClient->setIamPolicy($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.iam.v1.IAMPolicy/SetIamPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $actualValue = $actualRequestObject->getPolicy(); - $this->assertProtobufEquals($policy, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setIamPolicyExceptionTest() - { - $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 - $resource = 'resource-341064690'; - $policy = new Policy(); - $request = (new SetIamPolicyRequest()) - ->setResource($resource) - ->setPolicy($policy); - try { - $gapicClient->setIamPolicy($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 testIamPermissionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new TestIamPermissionsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $permissions = []; - $request = (new TestIamPermissionsRequest()) - ->setResource($resource) - ->setPermissions($permissions); - $response = $gapicClient->testIamPermissions($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.iam.v1.IAMPolicy/TestIamPermissions', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $actualValue = $actualRequestObject->getPermissions(); - $this->assertProtobufEquals($permissions, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function testIamPermissionsExceptionTest() - { - $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 - $resource = 'resource-341064690'; - $permissions = []; - $request = (new TestIamPermissionsRequest()) - ->setResource($resource) - ->setPermissions($permissions); - try { - $gapicClient->testIamPermissions($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 cancelMetadataJobAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->metadataJobName('[PROJECT]', '[LOCATION]', '[METADATAJOB]'); - $request = (new CancelMetadataJobRequest()) - ->setName($formattedName); - $gapicClient->cancelMetadataJobAsync($request)->wait(); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataplex.v1.CatalogService/CancelMetadataJob', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/CmekServiceClientTest.php b/owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/CmekServiceClientTest.php deleted file mode 100644 index 693a201cae5e..000000000000 --- a/owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/CmekServiceClientTest.php +++ /dev/null @@ -1,1024 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return CmekServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new CmekServiceClient($options); - } - - /** @test */ - public function createEncryptionConfigTest() - { - $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/createEncryptionConfigTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $key = 'key106079'; - $etag = 'etag3123477'; - $enableMetastoreEncryption = true; - $expectedResponse = new EncryptionConfig(); - $expectedResponse->setName($name); - $expectedResponse->setKey($key); - $expectedResponse->setEtag($etag); - $expectedResponse->setEnableMetastoreEncryption($enableMetastoreEncryption); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createEncryptionConfigTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $encryptionConfigId = 'encryptionConfigId-1813655172'; - $encryptionConfig = new EncryptionConfig(); - $request = (new CreateEncryptionConfigRequest()) - ->setParent($formattedParent) - ->setEncryptionConfigId($encryptionConfigId) - ->setEncryptionConfig($encryptionConfig); - $response = $gapicClient->createEncryptionConfig($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.dataplex.v1.CmekService/CreateEncryptionConfig', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getEncryptionConfigId(); - $this->assertProtobufEquals($encryptionConfigId, $actualValue); - $actualValue = $actualApiRequestObject->getEncryptionConfig(); - $this->assertProtobufEquals($encryptionConfig, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createEncryptionConfigTest'); - $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 createEncryptionConfigExceptionTest() - { - $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/createEncryptionConfigTest'); - $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]'); - $encryptionConfigId = 'encryptionConfigId-1813655172'; - $encryptionConfig = new EncryptionConfig(); - $request = (new CreateEncryptionConfigRequest()) - ->setParent($formattedParent) - ->setEncryptionConfigId($encryptionConfigId) - ->setEncryptionConfig($encryptionConfig); - $response = $gapicClient->createEncryptionConfig($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createEncryptionConfigTest'); - 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 deleteEncryptionConfigTest() - { - $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/deleteEncryptionConfigTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteEncryptionConfigTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->encryptionConfigName('[ORGANIZATION]', '[LOCATION]', '[ENCRYPTION_CONFIG]'); - $request = (new DeleteEncryptionConfigRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteEncryptionConfig($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.dataplex.v1.CmekService/DeleteEncryptionConfig', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteEncryptionConfigTest'); - $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 deleteEncryptionConfigExceptionTest() - { - $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/deleteEncryptionConfigTest'); - $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->encryptionConfigName('[ORGANIZATION]', '[LOCATION]', '[ENCRYPTION_CONFIG]'); - $request = (new DeleteEncryptionConfigRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteEncryptionConfig($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteEncryptionConfigTest'); - 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 getEncryptionConfigTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $key = 'key106079'; - $etag = 'etag3123477'; - $enableMetastoreEncryption = true; - $expectedResponse = new EncryptionConfig(); - $expectedResponse->setName($name2); - $expectedResponse->setKey($key); - $expectedResponse->setEtag($etag); - $expectedResponse->setEnableMetastoreEncryption($enableMetastoreEncryption); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->encryptionConfigName('[ORGANIZATION]', '[LOCATION]', '[ENCRYPTION_CONFIG]'); - $request = (new GetEncryptionConfigRequest()) - ->setName($formattedName); - $response = $gapicClient->getEncryptionConfig($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.dataplex.v1.CmekService/GetEncryptionConfig', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getEncryptionConfigExceptionTest() - { - $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->encryptionConfigName('[ORGANIZATION]', '[LOCATION]', '[ENCRYPTION_CONFIG]'); - $request = (new GetEncryptionConfigRequest()) - ->setName($formattedName); - try { - $gapicClient->getEncryptionConfig($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 listEncryptionConfigsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $encryptionConfigsElement = new EncryptionConfig(); - $encryptionConfigs = [ - $encryptionConfigsElement, - ]; - $expectedResponse = new ListEncryptionConfigsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setEncryptionConfigs($encryptionConfigs); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $request = (new ListEncryptionConfigsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listEncryptionConfigs($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getEncryptionConfigs()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataplex.v1.CmekService/ListEncryptionConfigs', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listEncryptionConfigsExceptionTest() - { - $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 ListEncryptionConfigsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listEncryptionConfigs($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 updateEncryptionConfigTest() - { - $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/updateEncryptionConfigTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $key = 'key106079'; - $etag = 'etag3123477'; - $enableMetastoreEncryption = true; - $expectedResponse = new EncryptionConfig(); - $expectedResponse->setName($name); - $expectedResponse->setKey($key); - $expectedResponse->setEtag($etag); - $expectedResponse->setEnableMetastoreEncryption($enableMetastoreEncryption); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateEncryptionConfigTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $encryptionConfig = new EncryptionConfig(); - $request = (new UpdateEncryptionConfigRequest()) - ->setEncryptionConfig($encryptionConfig); - $response = $gapicClient->updateEncryptionConfig($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.dataplex.v1.CmekService/UpdateEncryptionConfig', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getEncryptionConfig(); - $this->assertProtobufEquals($encryptionConfig, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateEncryptionConfigTest'); - $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 updateEncryptionConfigExceptionTest() - { - $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/updateEncryptionConfigTest'); - $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 - $encryptionConfig = new EncryptionConfig(); - $request = (new UpdateEncryptionConfigRequest()) - ->setEncryptionConfig($encryptionConfig); - $response = $gapicClient->updateEncryptionConfig($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateEncryptionConfigTest'); - 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 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 getIamPolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $version = 351608024; - $etag = '21'; - $expectedResponse = new Policy(); - $expectedResponse->setVersion($version); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $request = (new GetIamPolicyRequest()) - ->setResource($resource); - $response = $gapicClient->getIamPolicy($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.iam.v1.IAMPolicy/GetIamPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getIamPolicyExceptionTest() - { - $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 - $resource = 'resource-341064690'; - $request = (new GetIamPolicyRequest()) - ->setResource($resource); - try { - $gapicClient->getIamPolicy($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 setIamPolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $version = 351608024; - $etag = '21'; - $expectedResponse = new Policy(); - $expectedResponse->setVersion($version); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $policy = new Policy(); - $request = (new SetIamPolicyRequest()) - ->setResource($resource) - ->setPolicy($policy); - $response = $gapicClient->setIamPolicy($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.iam.v1.IAMPolicy/SetIamPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $actualValue = $actualRequestObject->getPolicy(); - $this->assertProtobufEquals($policy, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setIamPolicyExceptionTest() - { - $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 - $resource = 'resource-341064690'; - $policy = new Policy(); - $request = (new SetIamPolicyRequest()) - ->setResource($resource) - ->setPolicy($policy); - try { - $gapicClient->setIamPolicy($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 testIamPermissionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new TestIamPermissionsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $permissions = []; - $request = (new TestIamPermissionsRequest()) - ->setResource($resource) - ->setPermissions($permissions); - $response = $gapicClient->testIamPermissions($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.iam.v1.IAMPolicy/TestIamPermissions', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $actualValue = $actualRequestObject->getPermissions(); - $this->assertProtobufEquals($permissions, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function testIamPermissionsExceptionTest() - { - $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 - $resource = 'resource-341064690'; - $permissions = []; - $request = (new TestIamPermissionsRequest()) - ->setResource($resource) - ->setPermissions($permissions); - try { - $gapicClient->testIamPermissions($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 createEncryptionConfigAsyncTest() - { - $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/createEncryptionConfigTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $key = 'key106079'; - $etag = 'etag3123477'; - $enableMetastoreEncryption = true; - $expectedResponse = new EncryptionConfig(); - $expectedResponse->setName($name); - $expectedResponse->setKey($key); - $expectedResponse->setEtag($etag); - $expectedResponse->setEnableMetastoreEncryption($enableMetastoreEncryption); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createEncryptionConfigTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $encryptionConfigId = 'encryptionConfigId-1813655172'; - $encryptionConfig = new EncryptionConfig(); - $request = (new CreateEncryptionConfigRequest()) - ->setParent($formattedParent) - ->setEncryptionConfigId($encryptionConfigId) - ->setEncryptionConfig($encryptionConfig); - $response = $gapicClient->createEncryptionConfigAsync($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.dataplex.v1.CmekService/CreateEncryptionConfig', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getEncryptionConfigId(); - $this->assertProtobufEquals($encryptionConfigId, $actualValue); - $actualValue = $actualApiRequestObject->getEncryptionConfig(); - $this->assertProtobufEquals($encryptionConfig, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createEncryptionConfigTest'); - $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/Dataplex/v1/tests/Unit/V1/Client/ContentServiceClientTest.php b/owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/ContentServiceClientTest.php deleted file mode 100644 index e85bdcdb03e1..000000000000 --- a/owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/ContentServiceClientTest.php +++ /dev/null @@ -1,399 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return ContentServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new ContentServiceClient($options); - } - - /** @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 getIamPolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $version = 351608024; - $etag = '21'; - $expectedResponse = new Policy(); - $expectedResponse->setVersion($version); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $request = (new GetIamPolicyRequest()) - ->setResource($resource); - $response = $gapicClient->getIamPolicy($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.iam.v1.IAMPolicy/GetIamPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getIamPolicyExceptionTest() - { - $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 - $resource = 'resource-341064690'; - $request = (new GetIamPolicyRequest()) - ->setResource($resource); - try { - $gapicClient->getIamPolicy($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 setIamPolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $version = 351608024; - $etag = '21'; - $expectedResponse = new Policy(); - $expectedResponse->setVersion($version); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $policy = new Policy(); - $request = (new SetIamPolicyRequest()) - ->setResource($resource) - ->setPolicy($policy); - $response = $gapicClient->setIamPolicy($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.iam.v1.IAMPolicy/SetIamPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $actualValue = $actualRequestObject->getPolicy(); - $this->assertProtobufEquals($policy, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setIamPolicyExceptionTest() - { - $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 - $resource = 'resource-341064690'; - $policy = new Policy(); - $request = (new SetIamPolicyRequest()) - ->setResource($resource) - ->setPolicy($policy); - try { - $gapicClient->setIamPolicy($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 testIamPermissionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new TestIamPermissionsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $permissions = []; - $request = (new TestIamPermissionsRequest()) - ->setResource($resource) - ->setPermissions($permissions); - $response = $gapicClient->testIamPermissions($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.iam.v1.IAMPolicy/TestIamPermissions', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $actualValue = $actualRequestObject->getPermissions(); - $this->assertProtobufEquals($permissions, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function testIamPermissionsExceptionTest() - { - $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 - $resource = 'resource-341064690'; - $permissions = []; - $request = (new TestIamPermissionsRequest()) - ->setResource($resource) - ->setPermissions($permissions); - try { - $gapicClient->testIamPermissions($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()); - } -} diff --git a/owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/DataProductServiceClientTest.php b/owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/DataProductServiceClientTest.php deleted file mode 100644 index 41ca5546cae5..000000000000 --- a/owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/DataProductServiceClientTest.php +++ /dev/null @@ -1,1665 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return DataProductServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new DataProductServiceClient($options); - } - - /** @test */ - public function createDataAssetTest() - { - $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/createDataAssetTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $uid = 'uid115792'; - $etag = 'etag3123477'; - $resource = 'resource-341064690'; - $expectedResponse = new DataAsset(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setEtag($etag); - $expectedResponse->setResource($resource); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createDataAssetTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->dataProductName('[PROJECT]', '[LOCATION]', '[DATA_PRODUCT]'); - $dataAsset = new DataAsset(); - $dataAssetResource = 'dataAssetResource-1385846892'; - $dataAsset->setResource($dataAssetResource); - $request = (new CreateDataAssetRequest()) - ->setParent($formattedParent) - ->setDataAsset($dataAsset); - $response = $gapicClient->createDataAsset($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.dataplex.v1.DataProductService/CreateDataAsset', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getDataAsset(); - $this->assertProtobufEquals($dataAsset, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createDataAssetTest'); - $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 createDataAssetExceptionTest() - { - $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/createDataAssetTest'); - $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->dataProductName('[PROJECT]', '[LOCATION]', '[DATA_PRODUCT]'); - $dataAsset = new DataAsset(); - $dataAssetResource = 'dataAssetResource-1385846892'; - $dataAsset->setResource($dataAssetResource); - $request = (new CreateDataAssetRequest()) - ->setParent($formattedParent) - ->setDataAsset($dataAsset); - $response = $gapicClient->createDataAsset($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createDataAssetTest'); - 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 createDataProductTest() - { - $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/createDataProductTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $uid = 'uid115792'; - $displayName = 'displayName1615086568'; - $etag = 'etag3123477'; - $description = 'description-1724546052'; - $icon = '121'; - $assetCount = 1582344960; - $expectedResponse = new DataProduct(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setEtag($etag); - $expectedResponse->setDescription($description); - $expectedResponse->setIcon($icon); - $expectedResponse->setAssetCount($assetCount); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createDataProductTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $dataProduct = new DataProduct(); - $dataProductDisplayName = 'dataProductDisplayName862153544'; - $dataProduct->setDisplayName($dataProductDisplayName); - $dataProductOwnerEmails = []; - $dataProduct->setOwnerEmails($dataProductOwnerEmails); - $request = (new CreateDataProductRequest()) - ->setParent($formattedParent) - ->setDataProduct($dataProduct); - $response = $gapicClient->createDataProduct($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.dataplex.v1.DataProductService/CreateDataProduct', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getDataProduct(); - $this->assertProtobufEquals($dataProduct, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createDataProductTest'); - $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 createDataProductExceptionTest() - { - $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/createDataProductTest'); - $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->locationName('[PROJECT]', '[LOCATION]'); - $dataProduct = new DataProduct(); - $dataProductDisplayName = 'dataProductDisplayName862153544'; - $dataProduct->setDisplayName($dataProductDisplayName); - $dataProductOwnerEmails = []; - $dataProduct->setOwnerEmails($dataProductOwnerEmails); - $request = (new CreateDataProductRequest()) - ->setParent($formattedParent) - ->setDataProduct($dataProduct); - $response = $gapicClient->createDataProduct($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createDataProductTest'); - 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 deleteDataAssetTest() - { - $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/deleteDataAssetTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteDataAssetTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->dataAssetName('[PROJECT]', '[LOCATION]', '[DATA_PRODUCT]', '[DATA_ASSET]'); - $request = (new DeleteDataAssetRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteDataAsset($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.dataplex.v1.DataProductService/DeleteDataAsset', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteDataAssetTest'); - $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 deleteDataAssetExceptionTest() - { - $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/deleteDataAssetTest'); - $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->dataAssetName('[PROJECT]', '[LOCATION]', '[DATA_PRODUCT]', '[DATA_ASSET]'); - $request = (new DeleteDataAssetRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteDataAsset($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteDataAssetTest'); - 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 deleteDataProductTest() - { - $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/deleteDataProductTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteDataProductTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->dataProductName('[PROJECT]', '[LOCATION]', '[DATA_PRODUCT]'); - $request = (new DeleteDataProductRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteDataProduct($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.dataplex.v1.DataProductService/DeleteDataProduct', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteDataProductTest'); - $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 deleteDataProductExceptionTest() - { - $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/deleteDataProductTest'); - $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->dataProductName('[PROJECT]', '[LOCATION]', '[DATA_PRODUCT]'); - $request = (new DeleteDataProductRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteDataProduct($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteDataProductTest'); - 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 getDataAssetTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $uid = 'uid115792'; - $etag = 'etag3123477'; - $resource = 'resource-341064690'; - $expectedResponse = new DataAsset(); - $expectedResponse->setName($name2); - $expectedResponse->setUid($uid); - $expectedResponse->setEtag($etag); - $expectedResponse->setResource($resource); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataAssetName('[PROJECT]', '[LOCATION]', '[DATA_PRODUCT]', '[DATA_ASSET]'); - $request = (new GetDataAssetRequest()) - ->setName($formattedName); - $response = $gapicClient->getDataAsset($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.dataplex.v1.DataProductService/GetDataAsset', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataAssetExceptionTest() - { - $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->dataAssetName('[PROJECT]', '[LOCATION]', '[DATA_PRODUCT]', '[DATA_ASSET]'); - $request = (new GetDataAssetRequest()) - ->setName($formattedName); - try { - $gapicClient->getDataAsset($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 getDataProductTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $uid = 'uid115792'; - $displayName = 'displayName1615086568'; - $etag = 'etag3123477'; - $description = 'description-1724546052'; - $icon = '121'; - $assetCount = 1582344960; - $expectedResponse = new DataProduct(); - $expectedResponse->setName($name2); - $expectedResponse->setUid($uid); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setEtag($etag); - $expectedResponse->setDescription($description); - $expectedResponse->setIcon($icon); - $expectedResponse->setAssetCount($assetCount); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataProductName('[PROJECT]', '[LOCATION]', '[DATA_PRODUCT]'); - $request = (new GetDataProductRequest()) - ->setName($formattedName); - $response = $gapicClient->getDataProduct($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.dataplex.v1.DataProductService/GetDataProduct', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataProductExceptionTest() - { - $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->dataProductName('[PROJECT]', '[LOCATION]', '[DATA_PRODUCT]'); - $request = (new GetDataProductRequest()) - ->setName($formattedName); - try { - $gapicClient->getDataProduct($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 listDataAssetsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $dataAssetsElement = new DataAsset(); - $dataAssets = [ - $dataAssetsElement, - ]; - $expectedResponse = new ListDataAssetsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setDataAssets($dataAssets); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataProductName('[PROJECT]', '[LOCATION]', '[DATA_PRODUCT]'); - $request = (new ListDataAssetsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listDataAssets($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getDataAssets()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataplex.v1.DataProductService/ListDataAssets', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDataAssetsExceptionTest() - { - $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->dataProductName('[PROJECT]', '[LOCATION]', '[DATA_PRODUCT]'); - $request = (new ListDataAssetsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listDataAssets($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 listDataProductsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $dataProductsElement = new DataProduct(); - $dataProducts = [ - $dataProductsElement, - ]; - $expectedResponse = new ListDataProductsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setDataProducts($dataProducts); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListDataProductsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listDataProducts($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getDataProducts()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataplex.v1.DataProductService/ListDataProducts', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDataProductsExceptionTest() - { - $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->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListDataProductsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listDataProducts($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 requestDataProductAccessTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $changeRequestName = 'changeRequestName-180005270'; - $expectedResponse = new RequestDataProductAccessResponse(); - $expectedResponse->setChangeRequestName($changeRequestName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataProductName('[PROJECT]', '[LOCATION]', '[DATA_PRODUCT]'); - $changeRequest = new ChangeRequest(); - $request = (new RequestDataProductAccessRequest()) - ->setParent($formattedParent) - ->setChangeRequest($changeRequest); - $response = $gapicClient->requestDataProductAccess($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.dataplex.v1.DataProductService/RequestDataProductAccess', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getChangeRequest(); - $this->assertProtobufEquals($changeRequest, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function requestDataProductAccessExceptionTest() - { - $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->dataProductName('[PROJECT]', '[LOCATION]', '[DATA_PRODUCT]'); - $changeRequest = new ChangeRequest(); - $request = (new RequestDataProductAccessRequest()) - ->setParent($formattedParent) - ->setChangeRequest($changeRequest); - try { - $gapicClient->requestDataProductAccess($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 updateDataAssetTest() - { - $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/updateDataAssetTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $uid = 'uid115792'; - $etag = 'etag3123477'; - $resource = 'resource-341064690'; - $expectedResponse = new DataAsset(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setEtag($etag); - $expectedResponse->setResource($resource); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateDataAssetTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $dataAsset = new DataAsset(); - $dataAssetResource = 'dataAssetResource-1385846892'; - $dataAsset->setResource($dataAssetResource); - $request = (new UpdateDataAssetRequest()) - ->setDataAsset($dataAsset); - $response = $gapicClient->updateDataAsset($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.dataplex.v1.DataProductService/UpdateDataAsset', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getDataAsset(); - $this->assertProtobufEquals($dataAsset, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateDataAssetTest'); - $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 updateDataAssetExceptionTest() - { - $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/updateDataAssetTest'); - $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 - $dataAsset = new DataAsset(); - $dataAssetResource = 'dataAssetResource-1385846892'; - $dataAsset->setResource($dataAssetResource); - $request = (new UpdateDataAssetRequest()) - ->setDataAsset($dataAsset); - $response = $gapicClient->updateDataAsset($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateDataAssetTest'); - 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 updateDataProductTest() - { - $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/updateDataProductTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $uid = 'uid115792'; - $displayName = 'displayName1615086568'; - $etag = 'etag3123477'; - $description = 'description-1724546052'; - $icon = '121'; - $assetCount = 1582344960; - $expectedResponse = new DataProduct(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setEtag($etag); - $expectedResponse->setDescription($description); - $expectedResponse->setIcon($icon); - $expectedResponse->setAssetCount($assetCount); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateDataProductTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $dataProduct = new DataProduct(); - $dataProductDisplayName = 'dataProductDisplayName862153544'; - $dataProduct->setDisplayName($dataProductDisplayName); - $dataProductOwnerEmails = []; - $dataProduct->setOwnerEmails($dataProductOwnerEmails); - $request = (new UpdateDataProductRequest()) - ->setDataProduct($dataProduct); - $response = $gapicClient->updateDataProduct($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.dataplex.v1.DataProductService/UpdateDataProduct', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getDataProduct(); - $this->assertProtobufEquals($dataProduct, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateDataProductTest'); - $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 updateDataProductExceptionTest() - { - $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/updateDataProductTest'); - $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 - $dataProduct = new DataProduct(); - $dataProductDisplayName = 'dataProductDisplayName862153544'; - $dataProduct->setDisplayName($dataProductDisplayName); - $dataProductOwnerEmails = []; - $dataProduct->setOwnerEmails($dataProductOwnerEmails); - $request = (new UpdateDataProductRequest()) - ->setDataProduct($dataProduct); - $response = $gapicClient->updateDataProduct($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateDataProductTest'); - 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 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 getIamPolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $version = 351608024; - $etag = '21'; - $expectedResponse = new Policy(); - $expectedResponse->setVersion($version); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $request = (new GetIamPolicyRequest()) - ->setResource($resource); - $response = $gapicClient->getIamPolicy($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.iam.v1.IAMPolicy/GetIamPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getIamPolicyExceptionTest() - { - $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 - $resource = 'resource-341064690'; - $request = (new GetIamPolicyRequest()) - ->setResource($resource); - try { - $gapicClient->getIamPolicy($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 setIamPolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $version = 351608024; - $etag = '21'; - $expectedResponse = new Policy(); - $expectedResponse->setVersion($version); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $policy = new Policy(); - $request = (new SetIamPolicyRequest()) - ->setResource($resource) - ->setPolicy($policy); - $response = $gapicClient->setIamPolicy($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.iam.v1.IAMPolicy/SetIamPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $actualValue = $actualRequestObject->getPolicy(); - $this->assertProtobufEquals($policy, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setIamPolicyExceptionTest() - { - $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 - $resource = 'resource-341064690'; - $policy = new Policy(); - $request = (new SetIamPolicyRequest()) - ->setResource($resource) - ->setPolicy($policy); - try { - $gapicClient->setIamPolicy($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 testIamPermissionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new TestIamPermissionsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $permissions = []; - $request = (new TestIamPermissionsRequest()) - ->setResource($resource) - ->setPermissions($permissions); - $response = $gapicClient->testIamPermissions($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.iam.v1.IAMPolicy/TestIamPermissions', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $actualValue = $actualRequestObject->getPermissions(); - $this->assertProtobufEquals($permissions, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function testIamPermissionsExceptionTest() - { - $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 - $resource = 'resource-341064690'; - $permissions = []; - $request = (new TestIamPermissionsRequest()) - ->setResource($resource) - ->setPermissions($permissions); - try { - $gapicClient->testIamPermissions($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 createDataAssetAsyncTest() - { - $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/createDataAssetTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $uid = 'uid115792'; - $etag = 'etag3123477'; - $resource = 'resource-341064690'; - $expectedResponse = new DataAsset(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setEtag($etag); - $expectedResponse->setResource($resource); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createDataAssetTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->dataProductName('[PROJECT]', '[LOCATION]', '[DATA_PRODUCT]'); - $dataAsset = new DataAsset(); - $dataAssetResource = 'dataAssetResource-1385846892'; - $dataAsset->setResource($dataAssetResource); - $request = (new CreateDataAssetRequest()) - ->setParent($formattedParent) - ->setDataAsset($dataAsset); - $response = $gapicClient->createDataAssetAsync($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.dataplex.v1.DataProductService/CreateDataAsset', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getDataAsset(); - $this->assertProtobufEquals($dataAsset, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createDataAssetTest'); - $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/Dataplex/v1/tests/Unit/V1/Client/DataScanServiceClientTest.php b/owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/DataScanServiceClientTest.php deleted file mode 100644 index 909a2c9aa9ff..000000000000 --- a/owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/DataScanServiceClientTest.php +++ /dev/null @@ -1,1312 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return DataScanServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new DataScanServiceClient($options); - } - - /** @test */ - public function cancelDataScanJobTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new CancelDataScanJobResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataScanJobName('[PROJECT]', '[LOCATION]', '[DATASCAN]', '[JOB]'); - $request = (new CancelDataScanJobRequest()) - ->setName($formattedName); - $response = $gapicClient->cancelDataScanJob($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.dataplex.v1.DataScanService/CancelDataScanJob', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function cancelDataScanJobExceptionTest() - { - $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->dataScanJobName('[PROJECT]', '[LOCATION]', '[DATASCAN]', '[JOB]'); - $request = (new CancelDataScanJobRequest()) - ->setName($formattedName); - try { - $gapicClient->cancelDataScanJob($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 createDataScanTest() - { - $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/createDataScanTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $uid = 'uid115792'; - $description = 'description-1724546052'; - $displayName = 'displayName1615086568'; - $expectedResponse = new DataScan(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setDescription($description); - $expectedResponse->setDisplayName($displayName); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createDataScanTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $dataScan = new DataScan(); - $dataScanData = new DataSource(); - $dataScan->setData($dataScanData); - $request = (new CreateDataScanRequest()) - ->setParent($formattedParent) - ->setDataScan($dataScan); - $response = $gapicClient->createDataScan($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.dataplex.v1.DataScanService/CreateDataScan', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getDataScan(); - $this->assertProtobufEquals($dataScan, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createDataScanTest'); - $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 createDataScanExceptionTest() - { - $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/createDataScanTest'); - $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->locationName('[PROJECT]', '[LOCATION]'); - $dataScan = new DataScan(); - $dataScanData = new DataSource(); - $dataScan->setData($dataScanData); - $request = (new CreateDataScanRequest()) - ->setParent($formattedParent) - ->setDataScan($dataScan); - $response = $gapicClient->createDataScan($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createDataScanTest'); - 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 deleteDataScanTest() - { - $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/deleteDataScanTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteDataScanTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->dataScanName('[PROJECT]', '[LOCATION]', '[DATASCAN]'); - $request = (new DeleteDataScanRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteDataScan($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.dataplex.v1.DataScanService/DeleteDataScan', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteDataScanTest'); - $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 deleteDataScanExceptionTest() - { - $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/deleteDataScanTest'); - $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->dataScanName('[PROJECT]', '[LOCATION]', '[DATASCAN]'); - $request = (new DeleteDataScanRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteDataScan($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteDataScanTest'); - 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 generateDataQualityRulesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GenerateDataQualityRulesResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $name = 'name3373707'; - $request = (new GenerateDataQualityRulesRequest()) - ->setName($name); - $response = $gapicClient->generateDataQualityRules($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.dataplex.v1.DataScanService/GenerateDataQualityRules', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($name, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function generateDataQualityRulesExceptionTest() - { - $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 - $name = 'name3373707'; - $request = (new GenerateDataQualityRulesRequest()) - ->setName($name); - try { - $gapicClient->generateDataQualityRules($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 getDataScanTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $uid = 'uid115792'; - $description = 'description-1724546052'; - $displayName = 'displayName1615086568'; - $expectedResponse = new DataScan(); - $expectedResponse->setName($name2); - $expectedResponse->setUid($uid); - $expectedResponse->setDescription($description); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataScanName('[PROJECT]', '[LOCATION]', '[DATASCAN]'); - $request = (new GetDataScanRequest()) - ->setName($formattedName); - $response = $gapicClient->getDataScan($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.dataplex.v1.DataScanService/GetDataScan', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataScanExceptionTest() - { - $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->dataScanName('[PROJECT]', '[LOCATION]', '[DATASCAN]'); - $request = (new GetDataScanRequest()) - ->setName($formattedName); - try { - $gapicClient->getDataScan($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 getDataScanJobTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $uid = 'uid115792'; - $partialFailureMessage = 'partialFailureMessage564046740'; - $message = 'message954925063'; - $expectedResponse = new DataScanJob(); - $expectedResponse->setName($name2); - $expectedResponse->setUid($uid); - $expectedResponse->setPartialFailureMessage($partialFailureMessage); - $expectedResponse->setMessage($message); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataScanJobName('[PROJECT]', '[LOCATION]', '[DATASCAN]', '[JOB]'); - $request = (new GetDataScanJobRequest()) - ->setName($formattedName); - $response = $gapicClient->getDataScanJob($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.dataplex.v1.DataScanService/GetDataScanJob', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataScanJobExceptionTest() - { - $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->dataScanJobName('[PROJECT]', '[LOCATION]', '[DATASCAN]', '[JOB]'); - $request = (new GetDataScanJobRequest()) - ->setName($formattedName); - try { - $gapicClient->getDataScanJob($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 listDataScanJobsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $dataScanJobsElement = new DataScanJob(); - $dataScanJobs = [ - $dataScanJobsElement, - ]; - $expectedResponse = new ListDataScanJobsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setDataScanJobs($dataScanJobs); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataScanName('[PROJECT]', '[LOCATION]', '[DATASCAN]'); - $request = (new ListDataScanJobsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listDataScanJobs($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getDataScanJobs()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataplex.v1.DataScanService/ListDataScanJobs', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDataScanJobsExceptionTest() - { - $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->dataScanName('[PROJECT]', '[LOCATION]', '[DATASCAN]'); - $request = (new ListDataScanJobsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listDataScanJobs($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 listDataScansTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $dataScansElement = new DataScan(); - $dataScans = [ - $dataScansElement, - ]; - $expectedResponse = new ListDataScansResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setDataScans($dataScans); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListDataScansRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listDataScans($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getDataScans()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataplex.v1.DataScanService/ListDataScans', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDataScansExceptionTest() - { - $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->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListDataScansRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listDataScans($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 runDataScanTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new RunDataScanResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataScanName('[PROJECT]', '[LOCATION]', '[DATASCAN]'); - $request = (new RunDataScanRequest()) - ->setName($formattedName); - $response = $gapicClient->runDataScan($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.dataplex.v1.DataScanService/RunDataScan', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function runDataScanExceptionTest() - { - $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->dataScanName('[PROJECT]', '[LOCATION]', '[DATASCAN]'); - $request = (new RunDataScanRequest()) - ->setName($formattedName); - try { - $gapicClient->runDataScan($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 updateDataScanTest() - { - $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/updateDataScanTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $uid = 'uid115792'; - $description = 'description-1724546052'; - $displayName = 'displayName1615086568'; - $expectedResponse = new DataScan(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setDescription($description); - $expectedResponse->setDisplayName($displayName); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateDataScanTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $dataScan = new DataScan(); - $dataScanData = new DataSource(); - $dataScan->setData($dataScanData); - $request = (new UpdateDataScanRequest()) - ->setDataScan($dataScan); - $response = $gapicClient->updateDataScan($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.dataplex.v1.DataScanService/UpdateDataScan', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getDataScan(); - $this->assertProtobufEquals($dataScan, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateDataScanTest'); - $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 updateDataScanExceptionTest() - { - $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/updateDataScanTest'); - $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 - $dataScan = new DataScan(); - $dataScanData = new DataSource(); - $dataScan->setData($dataScanData); - $request = (new UpdateDataScanRequest()) - ->setDataScan($dataScan); - $response = $gapicClient->updateDataScan($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateDataScanTest'); - 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 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 getIamPolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $version = 351608024; - $etag = '21'; - $expectedResponse = new Policy(); - $expectedResponse->setVersion($version); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $request = (new GetIamPolicyRequest()) - ->setResource($resource); - $response = $gapicClient->getIamPolicy($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.iam.v1.IAMPolicy/GetIamPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getIamPolicyExceptionTest() - { - $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 - $resource = 'resource-341064690'; - $request = (new GetIamPolicyRequest()) - ->setResource($resource); - try { - $gapicClient->getIamPolicy($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 setIamPolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $version = 351608024; - $etag = '21'; - $expectedResponse = new Policy(); - $expectedResponse->setVersion($version); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $policy = new Policy(); - $request = (new SetIamPolicyRequest()) - ->setResource($resource) - ->setPolicy($policy); - $response = $gapicClient->setIamPolicy($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.iam.v1.IAMPolicy/SetIamPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $actualValue = $actualRequestObject->getPolicy(); - $this->assertProtobufEquals($policy, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setIamPolicyExceptionTest() - { - $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 - $resource = 'resource-341064690'; - $policy = new Policy(); - $request = (new SetIamPolicyRequest()) - ->setResource($resource) - ->setPolicy($policy); - try { - $gapicClient->setIamPolicy($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 testIamPermissionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new TestIamPermissionsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $permissions = []; - $request = (new TestIamPermissionsRequest()) - ->setResource($resource) - ->setPermissions($permissions); - $response = $gapicClient->testIamPermissions($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.iam.v1.IAMPolicy/TestIamPermissions', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $actualValue = $actualRequestObject->getPermissions(); - $this->assertProtobufEquals($permissions, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function testIamPermissionsExceptionTest() - { - $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 - $resource = 'resource-341064690'; - $permissions = []; - $request = (new TestIamPermissionsRequest()) - ->setResource($resource) - ->setPermissions($permissions); - try { - $gapicClient->testIamPermissions($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 cancelDataScanJobAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new CancelDataScanJobResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataScanJobName('[PROJECT]', '[LOCATION]', '[DATASCAN]', '[JOB]'); - $request = (new CancelDataScanJobRequest()) - ->setName($formattedName); - $response = $gapicClient->cancelDataScanJobAsync($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.dataplex.v1.DataScanService/CancelDataScanJob', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/DataTaxonomyServiceClientTest.php b/owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/DataTaxonomyServiceClientTest.php deleted file mode 100644 index 58b7457a3802..000000000000 --- a/owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/DataTaxonomyServiceClientTest.php +++ /dev/null @@ -1,2183 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return DataTaxonomyServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new DataTaxonomyServiceClient($options); - } - - /** @test */ - public function createDataAttributeTest() - { - $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/createDataAttributeTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $uid = 'uid115792'; - $description = 'description-1724546052'; - $displayName = 'displayName1615086568'; - $parentId = 'parentId2070327504'; - $attributeCount = 688916052; - $etag = 'etag3123477'; - $expectedResponse = new DataAttribute(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setDescription($description); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setParentId($parentId); - $expectedResponse->setAttributeCount($attributeCount); - $expectedResponse->setEtag($etag); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createDataAttributeTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->dataTaxonomyName('[PROJECT]', '[LOCATION]', '[DATA_TAXONOMY_ID]'); - $dataAttributeId = 'dataAttributeId-1927466989'; - $dataAttribute = new DataAttribute(); - $request = (new CreateDataAttributeRequest()) - ->setParent($formattedParent) - ->setDataAttributeId($dataAttributeId) - ->setDataAttribute($dataAttribute); - $response = $gapicClient->createDataAttribute($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.dataplex.v1.DataTaxonomyService/CreateDataAttribute', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getDataAttributeId(); - $this->assertProtobufEquals($dataAttributeId, $actualValue); - $actualValue = $actualApiRequestObject->getDataAttribute(); - $this->assertProtobufEquals($dataAttribute, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createDataAttributeTest'); - $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 createDataAttributeExceptionTest() - { - $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/createDataAttributeTest'); - $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->dataTaxonomyName('[PROJECT]', '[LOCATION]', '[DATA_TAXONOMY_ID]'); - $dataAttributeId = 'dataAttributeId-1927466989'; - $dataAttribute = new DataAttribute(); - $request = (new CreateDataAttributeRequest()) - ->setParent($formattedParent) - ->setDataAttributeId($dataAttributeId) - ->setDataAttribute($dataAttribute); - $response = $gapicClient->createDataAttribute($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createDataAttributeTest'); - 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 createDataAttributeBindingTest() - { - $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/createDataAttributeBindingTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $uid = 'uid115792'; - $description = 'description-1724546052'; - $displayName = 'displayName1615086568'; - $etag = 'etag3123477'; - $resource = 'resource-341064690'; - $expectedResponse = new DataAttributeBinding(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setDescription($description); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setEtag($etag); - $expectedResponse->setResource($resource); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createDataAttributeBindingTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $dataAttributeBindingId = 'dataAttributeBindingId863052813'; - $dataAttributeBinding = new DataAttributeBinding(); - $request = (new CreateDataAttributeBindingRequest()) - ->setParent($formattedParent) - ->setDataAttributeBindingId($dataAttributeBindingId) - ->setDataAttributeBinding($dataAttributeBinding); - $response = $gapicClient->createDataAttributeBinding($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.dataplex.v1.DataTaxonomyService/CreateDataAttributeBinding', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getDataAttributeBindingId(); - $this->assertProtobufEquals($dataAttributeBindingId, $actualValue); - $actualValue = $actualApiRequestObject->getDataAttributeBinding(); - $this->assertProtobufEquals($dataAttributeBinding, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createDataAttributeBindingTest'); - $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 createDataAttributeBindingExceptionTest() - { - $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/createDataAttributeBindingTest'); - $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->locationName('[PROJECT]', '[LOCATION]'); - $dataAttributeBindingId = 'dataAttributeBindingId863052813'; - $dataAttributeBinding = new DataAttributeBinding(); - $request = (new CreateDataAttributeBindingRequest()) - ->setParent($formattedParent) - ->setDataAttributeBindingId($dataAttributeBindingId) - ->setDataAttributeBinding($dataAttributeBinding); - $response = $gapicClient->createDataAttributeBinding($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createDataAttributeBindingTest'); - 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 createDataTaxonomyTest() - { - $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/createDataTaxonomyTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $uid = 'uid115792'; - $description = 'description-1724546052'; - $displayName = 'displayName1615086568'; - $attributeCount = 688916052; - $etag = 'etag3123477'; - $classCount = 424516728; - $expectedResponse = new DataTaxonomy(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setDescription($description); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setAttributeCount($attributeCount); - $expectedResponse->setEtag($etag); - $expectedResponse->setClassCount($classCount); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createDataTaxonomyTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $dataTaxonomyId = 'dataTaxonomyId-857059404'; - $dataTaxonomy = new DataTaxonomy(); - $request = (new CreateDataTaxonomyRequest()) - ->setParent($formattedParent) - ->setDataTaxonomyId($dataTaxonomyId) - ->setDataTaxonomy($dataTaxonomy); - $response = $gapicClient->createDataTaxonomy($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.dataplex.v1.DataTaxonomyService/CreateDataTaxonomy', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getDataTaxonomyId(); - $this->assertProtobufEquals($dataTaxonomyId, $actualValue); - $actualValue = $actualApiRequestObject->getDataTaxonomy(); - $this->assertProtobufEquals($dataTaxonomy, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createDataTaxonomyTest'); - $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 createDataTaxonomyExceptionTest() - { - $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/createDataTaxonomyTest'); - $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->locationName('[PROJECT]', '[LOCATION]'); - $dataTaxonomyId = 'dataTaxonomyId-857059404'; - $dataTaxonomy = new DataTaxonomy(); - $request = (new CreateDataTaxonomyRequest()) - ->setParent($formattedParent) - ->setDataTaxonomyId($dataTaxonomyId) - ->setDataTaxonomy($dataTaxonomy); - $response = $gapicClient->createDataTaxonomy($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createDataTaxonomyTest'); - 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 deleteDataAttributeTest() - { - $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/deleteDataAttributeTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteDataAttributeTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->dataAttributeName('[PROJECT]', '[LOCATION]', '[DATATAXONOMY]', '[DATA_ATTRIBUTE_ID]'); - $request = (new DeleteDataAttributeRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteDataAttribute($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.dataplex.v1.DataTaxonomyService/DeleteDataAttribute', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteDataAttributeTest'); - $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 deleteDataAttributeExceptionTest() - { - $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/deleteDataAttributeTest'); - $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->dataAttributeName('[PROJECT]', '[LOCATION]', '[DATATAXONOMY]', '[DATA_ATTRIBUTE_ID]'); - $request = (new DeleteDataAttributeRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteDataAttribute($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteDataAttributeTest'); - 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 deleteDataAttributeBindingTest() - { - $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/deleteDataAttributeBindingTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteDataAttributeBindingTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->dataAttributeBindingName('[PROJECT]', '[LOCATION]', '[DATA_ATTRIBUTE_BINDING_ID]'); - $etag = 'etag3123477'; - $request = (new DeleteDataAttributeBindingRequest()) - ->setName($formattedName) - ->setEtag($etag); - $response = $gapicClient->deleteDataAttributeBinding($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.dataplex.v1.DataTaxonomyService/DeleteDataAttributeBinding', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $actualValue = $actualApiRequestObject->getEtag(); - $this->assertProtobufEquals($etag, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteDataAttributeBindingTest'); - $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 deleteDataAttributeBindingExceptionTest() - { - $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/deleteDataAttributeBindingTest'); - $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->dataAttributeBindingName('[PROJECT]', '[LOCATION]', '[DATA_ATTRIBUTE_BINDING_ID]'); - $etag = 'etag3123477'; - $request = (new DeleteDataAttributeBindingRequest()) - ->setName($formattedName) - ->setEtag($etag); - $response = $gapicClient->deleteDataAttributeBinding($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteDataAttributeBindingTest'); - 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 deleteDataTaxonomyTest() - { - $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/deleteDataTaxonomyTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteDataTaxonomyTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->dataTaxonomyName('[PROJECT]', '[LOCATION]', '[DATA_TAXONOMY_ID]'); - $request = (new DeleteDataTaxonomyRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteDataTaxonomy($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.dataplex.v1.DataTaxonomyService/DeleteDataTaxonomy', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteDataTaxonomyTest'); - $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 deleteDataTaxonomyExceptionTest() - { - $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/deleteDataTaxonomyTest'); - $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->dataTaxonomyName('[PROJECT]', '[LOCATION]', '[DATA_TAXONOMY_ID]'); - $request = (new DeleteDataTaxonomyRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteDataTaxonomy($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteDataTaxonomyTest'); - 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 getDataAttributeTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $uid = 'uid115792'; - $description = 'description-1724546052'; - $displayName = 'displayName1615086568'; - $parentId = 'parentId2070327504'; - $attributeCount = 688916052; - $etag = 'etag3123477'; - $expectedResponse = new DataAttribute(); - $expectedResponse->setName($name2); - $expectedResponse->setUid($uid); - $expectedResponse->setDescription($description); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setParentId($parentId); - $expectedResponse->setAttributeCount($attributeCount); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataAttributeName('[PROJECT]', '[LOCATION]', '[DATATAXONOMY]', '[DATA_ATTRIBUTE_ID]'); - $request = (new GetDataAttributeRequest()) - ->setName($formattedName); - $response = $gapicClient->getDataAttribute($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.dataplex.v1.DataTaxonomyService/GetDataAttribute', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataAttributeExceptionTest() - { - $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->dataAttributeName('[PROJECT]', '[LOCATION]', '[DATATAXONOMY]', '[DATA_ATTRIBUTE_ID]'); - $request = (new GetDataAttributeRequest()) - ->setName($formattedName); - try { - $gapicClient->getDataAttribute($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 getDataAttributeBindingTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $uid = 'uid115792'; - $description = 'description-1724546052'; - $displayName = 'displayName1615086568'; - $etag = 'etag3123477'; - $resource = 'resource-341064690'; - $expectedResponse = new DataAttributeBinding(); - $expectedResponse->setName($name2); - $expectedResponse->setUid($uid); - $expectedResponse->setDescription($description); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setEtag($etag); - $expectedResponse->setResource($resource); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataAttributeBindingName('[PROJECT]', '[LOCATION]', '[DATA_ATTRIBUTE_BINDING_ID]'); - $request = (new GetDataAttributeBindingRequest()) - ->setName($formattedName); - $response = $gapicClient->getDataAttributeBinding($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.dataplex.v1.DataTaxonomyService/GetDataAttributeBinding', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataAttributeBindingExceptionTest() - { - $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->dataAttributeBindingName('[PROJECT]', '[LOCATION]', '[DATA_ATTRIBUTE_BINDING_ID]'); - $request = (new GetDataAttributeBindingRequest()) - ->setName($formattedName); - try { - $gapicClient->getDataAttributeBinding($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 getDataTaxonomyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $uid = 'uid115792'; - $description = 'description-1724546052'; - $displayName = 'displayName1615086568'; - $attributeCount = 688916052; - $etag = 'etag3123477'; - $classCount = 424516728; - $expectedResponse = new DataTaxonomy(); - $expectedResponse->setName($name2); - $expectedResponse->setUid($uid); - $expectedResponse->setDescription($description); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setAttributeCount($attributeCount); - $expectedResponse->setEtag($etag); - $expectedResponse->setClassCount($classCount); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataTaxonomyName('[PROJECT]', '[LOCATION]', '[DATA_TAXONOMY_ID]'); - $request = (new GetDataTaxonomyRequest()) - ->setName($formattedName); - $response = $gapicClient->getDataTaxonomy($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.dataplex.v1.DataTaxonomyService/GetDataTaxonomy', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataTaxonomyExceptionTest() - { - $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->dataTaxonomyName('[PROJECT]', '[LOCATION]', '[DATA_TAXONOMY_ID]'); - $request = (new GetDataTaxonomyRequest()) - ->setName($formattedName); - try { - $gapicClient->getDataTaxonomy($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 listDataAttributeBindingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $dataAttributeBindingsElement = new DataAttributeBinding(); - $dataAttributeBindings = [ - $dataAttributeBindingsElement, - ]; - $expectedResponse = new ListDataAttributeBindingsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setDataAttributeBindings($dataAttributeBindings); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListDataAttributeBindingsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listDataAttributeBindings($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getDataAttributeBindings()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataplex.v1.DataTaxonomyService/ListDataAttributeBindings', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDataAttributeBindingsExceptionTest() - { - $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->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListDataAttributeBindingsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listDataAttributeBindings($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 listDataAttributesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $dataAttributesElement = new DataAttribute(); - $dataAttributes = [ - $dataAttributesElement, - ]; - $expectedResponse = new ListDataAttributesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setDataAttributes($dataAttributes); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataTaxonomyName('[PROJECT]', '[LOCATION]', '[DATA_TAXONOMY_ID]'); - $request = (new ListDataAttributesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listDataAttributes($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getDataAttributes()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataplex.v1.DataTaxonomyService/ListDataAttributes', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDataAttributesExceptionTest() - { - $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->dataTaxonomyName('[PROJECT]', '[LOCATION]', '[DATA_TAXONOMY_ID]'); - $request = (new ListDataAttributesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listDataAttributes($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 listDataTaxonomiesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $dataTaxonomiesElement = new DataTaxonomy(); - $dataTaxonomies = [ - $dataTaxonomiesElement, - ]; - $expectedResponse = new ListDataTaxonomiesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setDataTaxonomies($dataTaxonomies); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListDataTaxonomiesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listDataTaxonomies($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getDataTaxonomies()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataplex.v1.DataTaxonomyService/ListDataTaxonomies', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDataTaxonomiesExceptionTest() - { - $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->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListDataTaxonomiesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listDataTaxonomies($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 updateDataAttributeTest() - { - $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/updateDataAttributeTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $uid = 'uid115792'; - $description = 'description-1724546052'; - $displayName = 'displayName1615086568'; - $parentId = 'parentId2070327504'; - $attributeCount = 688916052; - $etag = 'etag3123477'; - $expectedResponse = new DataAttribute(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setDescription($description); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setParentId($parentId); - $expectedResponse->setAttributeCount($attributeCount); - $expectedResponse->setEtag($etag); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateDataAttributeTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $updateMask = new FieldMask(); - $dataAttribute = new DataAttribute(); - $request = (new UpdateDataAttributeRequest()) - ->setUpdateMask($updateMask) - ->setDataAttribute($dataAttribute); - $response = $gapicClient->updateDataAttribute($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.dataplex.v1.DataTaxonomyService/UpdateDataAttribute', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $actualValue = $actualApiRequestObject->getDataAttribute(); - $this->assertProtobufEquals($dataAttribute, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateDataAttributeTest'); - $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 updateDataAttributeExceptionTest() - { - $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/updateDataAttributeTest'); - $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 - $updateMask = new FieldMask(); - $dataAttribute = new DataAttribute(); - $request = (new UpdateDataAttributeRequest()) - ->setUpdateMask($updateMask) - ->setDataAttribute($dataAttribute); - $response = $gapicClient->updateDataAttribute($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateDataAttributeTest'); - 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 updateDataAttributeBindingTest() - { - $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/updateDataAttributeBindingTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $uid = 'uid115792'; - $description = 'description-1724546052'; - $displayName = 'displayName1615086568'; - $etag = 'etag3123477'; - $resource = 'resource-341064690'; - $expectedResponse = new DataAttributeBinding(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setDescription($description); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setEtag($etag); - $expectedResponse->setResource($resource); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateDataAttributeBindingTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $updateMask = new FieldMask(); - $dataAttributeBinding = new DataAttributeBinding(); - $request = (new UpdateDataAttributeBindingRequest()) - ->setUpdateMask($updateMask) - ->setDataAttributeBinding($dataAttributeBinding); - $response = $gapicClient->updateDataAttributeBinding($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.dataplex.v1.DataTaxonomyService/UpdateDataAttributeBinding', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $actualValue = $actualApiRequestObject->getDataAttributeBinding(); - $this->assertProtobufEquals($dataAttributeBinding, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateDataAttributeBindingTest'); - $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 updateDataAttributeBindingExceptionTest() - { - $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/updateDataAttributeBindingTest'); - $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 - $updateMask = new FieldMask(); - $dataAttributeBinding = new DataAttributeBinding(); - $request = (new UpdateDataAttributeBindingRequest()) - ->setUpdateMask($updateMask) - ->setDataAttributeBinding($dataAttributeBinding); - $response = $gapicClient->updateDataAttributeBinding($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateDataAttributeBindingTest'); - 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 updateDataTaxonomyTest() - { - $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/updateDataTaxonomyTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $uid = 'uid115792'; - $description = 'description-1724546052'; - $displayName = 'displayName1615086568'; - $attributeCount = 688916052; - $etag = 'etag3123477'; - $classCount = 424516728; - $expectedResponse = new DataTaxonomy(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setDescription($description); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setAttributeCount($attributeCount); - $expectedResponse->setEtag($etag); - $expectedResponse->setClassCount($classCount); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateDataTaxonomyTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $updateMask = new FieldMask(); - $dataTaxonomy = new DataTaxonomy(); - $request = (new UpdateDataTaxonomyRequest()) - ->setUpdateMask($updateMask) - ->setDataTaxonomy($dataTaxonomy); - $response = $gapicClient->updateDataTaxonomy($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.dataplex.v1.DataTaxonomyService/UpdateDataTaxonomy', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $actualValue = $actualApiRequestObject->getDataTaxonomy(); - $this->assertProtobufEquals($dataTaxonomy, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateDataTaxonomyTest'); - $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 updateDataTaxonomyExceptionTest() - { - $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/updateDataTaxonomyTest'); - $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 - $updateMask = new FieldMask(); - $dataTaxonomy = new DataTaxonomy(); - $request = (new UpdateDataTaxonomyRequest()) - ->setUpdateMask($updateMask) - ->setDataTaxonomy($dataTaxonomy); - $response = $gapicClient->updateDataTaxonomy($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateDataTaxonomyTest'); - 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 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 getIamPolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $version = 351608024; - $etag = '21'; - $expectedResponse = new Policy(); - $expectedResponse->setVersion($version); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $request = (new GetIamPolicyRequest()) - ->setResource($resource); - $response = $gapicClient->getIamPolicy($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.iam.v1.IAMPolicy/GetIamPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getIamPolicyExceptionTest() - { - $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 - $resource = 'resource-341064690'; - $request = (new GetIamPolicyRequest()) - ->setResource($resource); - try { - $gapicClient->getIamPolicy($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 setIamPolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $version = 351608024; - $etag = '21'; - $expectedResponse = new Policy(); - $expectedResponse->setVersion($version); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $policy = new Policy(); - $request = (new SetIamPolicyRequest()) - ->setResource($resource) - ->setPolicy($policy); - $response = $gapicClient->setIamPolicy($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.iam.v1.IAMPolicy/SetIamPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $actualValue = $actualRequestObject->getPolicy(); - $this->assertProtobufEquals($policy, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setIamPolicyExceptionTest() - { - $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 - $resource = 'resource-341064690'; - $policy = new Policy(); - $request = (new SetIamPolicyRequest()) - ->setResource($resource) - ->setPolicy($policy); - try { - $gapicClient->setIamPolicy($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 testIamPermissionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new TestIamPermissionsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $permissions = []; - $request = (new TestIamPermissionsRequest()) - ->setResource($resource) - ->setPermissions($permissions); - $response = $gapicClient->testIamPermissions($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.iam.v1.IAMPolicy/TestIamPermissions', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $actualValue = $actualRequestObject->getPermissions(); - $this->assertProtobufEquals($permissions, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function testIamPermissionsExceptionTest() - { - $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 - $resource = 'resource-341064690'; - $permissions = []; - $request = (new TestIamPermissionsRequest()) - ->setResource($resource) - ->setPermissions($permissions); - try { - $gapicClient->testIamPermissions($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 createDataAttributeAsyncTest() - { - $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/createDataAttributeTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $uid = 'uid115792'; - $description = 'description-1724546052'; - $displayName = 'displayName1615086568'; - $parentId = 'parentId2070327504'; - $attributeCount = 688916052; - $etag = 'etag3123477'; - $expectedResponse = new DataAttribute(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setDescription($description); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setParentId($parentId); - $expectedResponse->setAttributeCount($attributeCount); - $expectedResponse->setEtag($etag); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createDataAttributeTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->dataTaxonomyName('[PROJECT]', '[LOCATION]', '[DATA_TAXONOMY_ID]'); - $dataAttributeId = 'dataAttributeId-1927466989'; - $dataAttribute = new DataAttribute(); - $request = (new CreateDataAttributeRequest()) - ->setParent($formattedParent) - ->setDataAttributeId($dataAttributeId) - ->setDataAttribute($dataAttribute); - $response = $gapicClient->createDataAttributeAsync($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.dataplex.v1.DataTaxonomyService/CreateDataAttribute', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getDataAttributeId(); - $this->assertProtobufEquals($dataAttributeId, $actualValue); - $actualValue = $actualApiRequestObject->getDataAttribute(); - $this->assertProtobufEquals($dataAttribute, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createDataAttributeTest'); - $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/Dataplex/v1/tests/Unit/V1/Client/DataplexServiceClientTest.php b/owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/DataplexServiceClientTest.php deleted file mode 100644 index e3b50170ce3d..000000000000 --- a/owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/DataplexServiceClientTest.php +++ /dev/null @@ -1,3193 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return DataplexServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new DataplexServiceClient($options); - } - - /** @test */ - public function cancelJobTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->jobName('[PROJECT]', '[LOCATION]', '[LAKE]', '[TASK]', '[JOB]'); - $request = (new CancelJobRequest()) - ->setName($formattedName); - $gapicClient->cancelJob($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataplex.v1.DataplexService/CancelJob', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function cancelJobExceptionTest() - { - $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->jobName('[PROJECT]', '[LOCATION]', '[LAKE]', '[TASK]', '[JOB]'); - $request = (new CancelJobRequest()) - ->setName($formattedName); - try { - $gapicClient->cancelJob($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 createAssetTest() - { - $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/createAssetTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $uid = 'uid115792'; - $description = 'description-1724546052'; - $expectedResponse = new Asset(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setUid($uid); - $expectedResponse->setDescription($description); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createAssetTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->zoneName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]'); - $assetId = 'assetId-373202742'; - $asset = new Asset(); - $assetResourceSpec = new ResourceSpec(); - $resourceSpecType = Type::TYPE_UNSPECIFIED; - $assetResourceSpec->setType($resourceSpecType); - $asset->setResourceSpec($assetResourceSpec); - $request = (new CreateAssetRequest()) - ->setParent($formattedParent) - ->setAssetId($assetId) - ->setAsset($asset); - $response = $gapicClient->createAsset($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.dataplex.v1.DataplexService/CreateAsset', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getAssetId(); - $this->assertProtobufEquals($assetId, $actualValue); - $actualValue = $actualApiRequestObject->getAsset(); - $this->assertProtobufEquals($asset, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createAssetTest'); - $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 createAssetExceptionTest() - { - $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/createAssetTest'); - $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->zoneName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]'); - $assetId = 'assetId-373202742'; - $asset = new Asset(); - $assetResourceSpec = new ResourceSpec(); - $resourceSpecType = Type::TYPE_UNSPECIFIED; - $assetResourceSpec->setType($resourceSpecType); - $asset->setResourceSpec($assetResourceSpec); - $request = (new CreateAssetRequest()) - ->setParent($formattedParent) - ->setAssetId($assetId) - ->setAsset($asset); - $response = $gapicClient->createAsset($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createAssetTest'); - 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 createLakeTest() - { - $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/createLakeTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $uid = 'uid115792'; - $description = 'description-1724546052'; - $serviceAccount = 'serviceAccount-1948028253'; - $expectedResponse = new Lake(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setUid($uid); - $expectedResponse->setDescription($description); - $expectedResponse->setServiceAccount($serviceAccount); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createLakeTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $lakeId = 'lakeId-54902325'; - $lake = new Lake(); - $request = (new CreateLakeRequest()) - ->setParent($formattedParent) - ->setLakeId($lakeId) - ->setLake($lake); - $response = $gapicClient->createLake($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.dataplex.v1.DataplexService/CreateLake', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getLakeId(); - $this->assertProtobufEquals($lakeId, $actualValue); - $actualValue = $actualApiRequestObject->getLake(); - $this->assertProtobufEquals($lake, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createLakeTest'); - $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 createLakeExceptionTest() - { - $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/createLakeTest'); - $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->locationName('[PROJECT]', '[LOCATION]'); - $lakeId = 'lakeId-54902325'; - $lake = new Lake(); - $request = (new CreateLakeRequest()) - ->setParent($formattedParent) - ->setLakeId($lakeId) - ->setLake($lake); - $response = $gapicClient->createLake($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createLakeTest'); - 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 createTaskTest() - { - $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/createTaskTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $uid = 'uid115792'; - $description = 'description-1724546052'; - $displayName = 'displayName1615086568'; - $expectedResponse = new Task(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setDescription($description); - $expectedResponse->setDisplayName($displayName); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createTaskTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->lakeName('[PROJECT]', '[LOCATION]', '[LAKE]'); - $taskId = 'taskId-1537240555'; - $task = new Task(); - $taskTriggerSpec = new TriggerSpec(); - $triggerSpecType = \Google\Cloud\Dataplex\V1\Task\TriggerSpec\Type::TYPE_UNSPECIFIED; - $taskTriggerSpec->setType($triggerSpecType); - $task->setTriggerSpec($taskTriggerSpec); - $taskExecutionSpec = new ExecutionSpec(); - $executionSpecServiceAccount = 'executionSpecServiceAccount-1249728629'; - $taskExecutionSpec->setServiceAccount($executionSpecServiceAccount); - $task->setExecutionSpec($taskExecutionSpec); - $request = (new CreateTaskRequest()) - ->setParent($formattedParent) - ->setTaskId($taskId) - ->setTask($task); - $response = $gapicClient->createTask($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.dataplex.v1.DataplexService/CreateTask', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getTaskId(); - $this->assertProtobufEquals($taskId, $actualValue); - $actualValue = $actualApiRequestObject->getTask(); - $this->assertProtobufEquals($task, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createTaskTest'); - $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 createTaskExceptionTest() - { - $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/createTaskTest'); - $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->lakeName('[PROJECT]', '[LOCATION]', '[LAKE]'); - $taskId = 'taskId-1537240555'; - $task = new Task(); - $taskTriggerSpec = new TriggerSpec(); - $triggerSpecType = \Google\Cloud\Dataplex\V1\Task\TriggerSpec\Type::TYPE_UNSPECIFIED; - $taskTriggerSpec->setType($triggerSpecType); - $task->setTriggerSpec($taskTriggerSpec); - $taskExecutionSpec = new ExecutionSpec(); - $executionSpecServiceAccount = 'executionSpecServiceAccount-1249728629'; - $taskExecutionSpec->setServiceAccount($executionSpecServiceAccount); - $task->setExecutionSpec($taskExecutionSpec); - $request = (new CreateTaskRequest()) - ->setParent($formattedParent) - ->setTaskId($taskId) - ->setTask($task); - $response = $gapicClient->createTask($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createTaskTest'); - 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 createZoneTest() - { - $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/createZoneTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $uid = 'uid115792'; - $description = 'description-1724546052'; - $expectedResponse = new Zone(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setUid($uid); - $expectedResponse->setDescription($description); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createZoneTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->lakeName('[PROJECT]', '[LOCATION]', '[LAKE]'); - $zoneId = 'zoneId-111174002'; - $zone = new Zone(); - $zoneType = \Google\Cloud\Dataplex\V1\Zone\Type::TYPE_UNSPECIFIED; - $zone->setType($zoneType); - $zoneResourceSpec = new \Google\Cloud\Dataplex\V1\Zone\ResourceSpec(); - $resourceSpecLocationType = LocationType::LOCATION_TYPE_UNSPECIFIED; - $zoneResourceSpec->setLocationType($resourceSpecLocationType); - $zone->setResourceSpec($zoneResourceSpec); - $request = (new CreateZoneRequest()) - ->setParent($formattedParent) - ->setZoneId($zoneId) - ->setZone($zone); - $response = $gapicClient->createZone($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.dataplex.v1.DataplexService/CreateZone', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getZoneId(); - $this->assertProtobufEquals($zoneId, $actualValue); - $actualValue = $actualApiRequestObject->getZone(); - $this->assertProtobufEquals($zone, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createZoneTest'); - $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 createZoneExceptionTest() - { - $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/createZoneTest'); - $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->lakeName('[PROJECT]', '[LOCATION]', '[LAKE]'); - $zoneId = 'zoneId-111174002'; - $zone = new Zone(); - $zoneType = \Google\Cloud\Dataplex\V1\Zone\Type::TYPE_UNSPECIFIED; - $zone->setType($zoneType); - $zoneResourceSpec = new \Google\Cloud\Dataplex\V1\Zone\ResourceSpec(); - $resourceSpecLocationType = LocationType::LOCATION_TYPE_UNSPECIFIED; - $zoneResourceSpec->setLocationType($resourceSpecLocationType); - $zone->setResourceSpec($zoneResourceSpec); - $request = (new CreateZoneRequest()) - ->setParent($formattedParent) - ->setZoneId($zoneId) - ->setZone($zone); - $response = $gapicClient->createZone($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createZoneTest'); - 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 deleteAssetTest() - { - $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/deleteAssetTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteAssetTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->assetName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]', '[ASSET]'); - $request = (new DeleteAssetRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteAsset($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.dataplex.v1.DataplexService/DeleteAsset', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteAssetTest'); - $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 deleteAssetExceptionTest() - { - $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/deleteAssetTest'); - $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->assetName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]', '[ASSET]'); - $request = (new DeleteAssetRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteAsset($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteAssetTest'); - 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 deleteLakeTest() - { - $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/deleteLakeTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteLakeTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->lakeName('[PROJECT]', '[LOCATION]', '[LAKE]'); - $request = (new DeleteLakeRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteLake($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.dataplex.v1.DataplexService/DeleteLake', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteLakeTest'); - $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 deleteLakeExceptionTest() - { - $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/deleteLakeTest'); - $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->lakeName('[PROJECT]', '[LOCATION]', '[LAKE]'); - $request = (new DeleteLakeRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteLake($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteLakeTest'); - 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 deleteTaskTest() - { - $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/deleteTaskTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteTaskTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->taskName('[PROJECT]', '[LOCATION]', '[LAKE]', '[TASK]'); - $request = (new DeleteTaskRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteTask($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.dataplex.v1.DataplexService/DeleteTask', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteTaskTest'); - $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 deleteTaskExceptionTest() - { - $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/deleteTaskTest'); - $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->taskName('[PROJECT]', '[LOCATION]', '[LAKE]', '[TASK]'); - $request = (new DeleteTaskRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteTask($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteTaskTest'); - 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 deleteZoneTest() - { - $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/deleteZoneTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteZoneTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->zoneName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]'); - $request = (new DeleteZoneRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteZone($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.dataplex.v1.DataplexService/DeleteZone', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteZoneTest'); - $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 deleteZoneExceptionTest() - { - $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/deleteZoneTest'); - $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->zoneName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]'); - $request = (new DeleteZoneRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteZone($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteZoneTest'); - 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 getAssetTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $uid = 'uid115792'; - $description = 'description-1724546052'; - $expectedResponse = new Asset(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setUid($uid); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->assetName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]', '[ASSET]'); - $request = (new GetAssetRequest()) - ->setName($formattedName); - $response = $gapicClient->getAsset($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.dataplex.v1.DataplexService/GetAsset', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAssetExceptionTest() - { - $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->assetName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]', '[ASSET]'); - $request = (new GetAssetRequest()) - ->setName($formattedName); - try { - $gapicClient->getAsset($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 getJobTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $uid = 'uid115792'; - $retryCount = 928040776; - $serviceJob = 'serviceJob-1928057037'; - $message = 'message954925063'; - $expectedResponse = new Job(); - $expectedResponse->setName($name2); - $expectedResponse->setUid($uid); - $expectedResponse->setRetryCount($retryCount); - $expectedResponse->setServiceJob($serviceJob); - $expectedResponse->setMessage($message); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->jobName('[PROJECT]', '[LOCATION]', '[LAKE]', '[TASK]', '[JOB]'); - $request = (new GetJobRequest()) - ->setName($formattedName); - $response = $gapicClient->getJob($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.dataplex.v1.DataplexService/GetJob', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getJobExceptionTest() - { - $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->jobName('[PROJECT]', '[LOCATION]', '[LAKE]', '[TASK]', '[JOB]'); - $request = (new GetJobRequest()) - ->setName($formattedName); - try { - $gapicClient->getJob($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 getLakeTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $uid = 'uid115792'; - $description = 'description-1724546052'; - $serviceAccount = 'serviceAccount-1948028253'; - $expectedResponse = new Lake(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setUid($uid); - $expectedResponse->setDescription($description); - $expectedResponse->setServiceAccount($serviceAccount); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->lakeName('[PROJECT]', '[LOCATION]', '[LAKE]'); - $request = (new GetLakeRequest()) - ->setName($formattedName); - $response = $gapicClient->getLake($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.dataplex.v1.DataplexService/GetLake', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getLakeExceptionTest() - { - $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->lakeName('[PROJECT]', '[LOCATION]', '[LAKE]'); - $request = (new GetLakeRequest()) - ->setName($formattedName); - try { - $gapicClient->getLake($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 getTaskTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $uid = 'uid115792'; - $description = 'description-1724546052'; - $displayName = 'displayName1615086568'; - $expectedResponse = new Task(); - $expectedResponse->setName($name2); - $expectedResponse->setUid($uid); - $expectedResponse->setDescription($description); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->taskName('[PROJECT]', '[LOCATION]', '[LAKE]', '[TASK]'); - $request = (new GetTaskRequest()) - ->setName($formattedName); - $response = $gapicClient->getTask($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.dataplex.v1.DataplexService/GetTask', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getTaskExceptionTest() - { - $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->taskName('[PROJECT]', '[LOCATION]', '[LAKE]', '[TASK]'); - $request = (new GetTaskRequest()) - ->setName($formattedName); - try { - $gapicClient->getTask($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 getZoneTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $uid = 'uid115792'; - $description = 'description-1724546052'; - $expectedResponse = new Zone(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setUid($uid); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->zoneName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]'); - $request = (new GetZoneRequest()) - ->setName($formattedName); - $response = $gapicClient->getZone($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.dataplex.v1.DataplexService/GetZone', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getZoneExceptionTest() - { - $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->zoneName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]'); - $request = (new GetZoneRequest()) - ->setName($formattedName); - try { - $gapicClient->getZone($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 listAssetActionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $actionsElement = new Action(); - $actions = [ - $actionsElement, - ]; - $expectedResponse = new ListActionsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setActions($actions); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->assetName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]', '[ASSET]'); - $request = (new ListAssetActionsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listAssetActions($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getActions()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataplex.v1.DataplexService/ListAssetActions', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAssetActionsExceptionTest() - { - $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->assetName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]', '[ASSET]'); - $request = (new ListAssetActionsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listAssetActions($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 listAssetsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $assetsElement = new Asset(); - $assets = [ - $assetsElement, - ]; - $expectedResponse = new ListAssetsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setAssets($assets); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->zoneName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]'); - $request = (new ListAssetsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listAssets($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getAssets()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataplex.v1.DataplexService/ListAssets', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAssetsExceptionTest() - { - $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->zoneName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]'); - $request = (new ListAssetsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listAssets($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 listJobsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $jobsElement = new Job(); - $jobs = [ - $jobsElement, - ]; - $expectedResponse = new ListJobsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setJobs($jobs); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->taskName('[PROJECT]', '[LOCATION]', '[LAKE]', '[TASK]'); - $request = (new ListJobsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listJobs($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getJobs()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataplex.v1.DataplexService/ListJobs', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listJobsExceptionTest() - { - $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->taskName('[PROJECT]', '[LOCATION]', '[LAKE]', '[TASK]'); - $request = (new ListJobsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listJobs($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 listLakeActionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $actionsElement = new Action(); - $actions = [ - $actionsElement, - ]; - $expectedResponse = new ListActionsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setActions($actions); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->lakeName('[PROJECT]', '[LOCATION]', '[LAKE]'); - $request = (new ListLakeActionsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listLakeActions($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getActions()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataplex.v1.DataplexService/ListLakeActions', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listLakeActionsExceptionTest() - { - $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->lakeName('[PROJECT]', '[LOCATION]', '[LAKE]'); - $request = (new ListLakeActionsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listLakeActions($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 listLakesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $lakesElement = new Lake(); - $lakes = [ - $lakesElement, - ]; - $expectedResponse = new ListLakesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setLakes($lakes); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListLakesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listLakes($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getLakes()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataplex.v1.DataplexService/ListLakes', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listLakesExceptionTest() - { - $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->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListLakesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listLakes($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 listTasksTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $tasksElement = new Task(); - $tasks = [ - $tasksElement, - ]; - $expectedResponse = new ListTasksResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setTasks($tasks); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->lakeName('[PROJECT]', '[LOCATION]', '[LAKE]'); - $request = (new ListTasksRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listTasks($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getTasks()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataplex.v1.DataplexService/ListTasks', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listTasksExceptionTest() - { - $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->lakeName('[PROJECT]', '[LOCATION]', '[LAKE]'); - $request = (new ListTasksRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listTasks($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 listZoneActionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $actionsElement = new Action(); - $actions = [ - $actionsElement, - ]; - $expectedResponse = new ListActionsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setActions($actions); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->zoneName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]'); - $request = (new ListZoneActionsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listZoneActions($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getActions()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataplex.v1.DataplexService/ListZoneActions', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listZoneActionsExceptionTest() - { - $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->zoneName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]'); - $request = (new ListZoneActionsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listZoneActions($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 listZonesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $zonesElement = new Zone(); - $zones = [ - $zonesElement, - ]; - $expectedResponse = new ListZonesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setZones($zones); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->lakeName('[PROJECT]', '[LOCATION]', '[LAKE]'); - $request = (new ListZonesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listZones($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getZones()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataplex.v1.DataplexService/ListZones', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listZonesExceptionTest() - { - $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->lakeName('[PROJECT]', '[LOCATION]', '[LAKE]'); - $request = (new ListZonesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listZones($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 runTaskTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new RunTaskResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->taskName('[PROJECT]', '[LOCATION]', '[LAKE]', '[TASK]'); - $request = (new RunTaskRequest()) - ->setName($formattedName); - $response = $gapicClient->runTask($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.dataplex.v1.DataplexService/RunTask', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function runTaskExceptionTest() - { - $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->taskName('[PROJECT]', '[LOCATION]', '[LAKE]', '[TASK]'); - $request = (new RunTaskRequest()) - ->setName($formattedName); - try { - $gapicClient->runTask($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 updateAssetTest() - { - $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/updateAssetTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $uid = 'uid115792'; - $description = 'description-1724546052'; - $expectedResponse = new Asset(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setUid($uid); - $expectedResponse->setDescription($description); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateAssetTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $updateMask = new FieldMask(); - $asset = new Asset(); - $assetResourceSpec = new ResourceSpec(); - $resourceSpecType = Type::TYPE_UNSPECIFIED; - $assetResourceSpec->setType($resourceSpecType); - $asset->setResourceSpec($assetResourceSpec); - $request = (new UpdateAssetRequest()) - ->setUpdateMask($updateMask) - ->setAsset($asset); - $response = $gapicClient->updateAsset($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.dataplex.v1.DataplexService/UpdateAsset', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $actualValue = $actualApiRequestObject->getAsset(); - $this->assertProtobufEquals($asset, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateAssetTest'); - $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 updateAssetExceptionTest() - { - $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/updateAssetTest'); - $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 - $updateMask = new FieldMask(); - $asset = new Asset(); - $assetResourceSpec = new ResourceSpec(); - $resourceSpecType = Type::TYPE_UNSPECIFIED; - $assetResourceSpec->setType($resourceSpecType); - $asset->setResourceSpec($assetResourceSpec); - $request = (new UpdateAssetRequest()) - ->setUpdateMask($updateMask) - ->setAsset($asset); - $response = $gapicClient->updateAsset($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateAssetTest'); - 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 updateLakeTest() - { - $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/updateLakeTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $uid = 'uid115792'; - $description = 'description-1724546052'; - $serviceAccount = 'serviceAccount-1948028253'; - $expectedResponse = new Lake(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setUid($uid); - $expectedResponse->setDescription($description); - $expectedResponse->setServiceAccount($serviceAccount); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateLakeTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $updateMask = new FieldMask(); - $lake = new Lake(); - $request = (new UpdateLakeRequest()) - ->setUpdateMask($updateMask) - ->setLake($lake); - $response = $gapicClient->updateLake($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.dataplex.v1.DataplexService/UpdateLake', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $actualValue = $actualApiRequestObject->getLake(); - $this->assertProtobufEquals($lake, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateLakeTest'); - $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 updateLakeExceptionTest() - { - $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/updateLakeTest'); - $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 - $updateMask = new FieldMask(); - $lake = new Lake(); - $request = (new UpdateLakeRequest()) - ->setUpdateMask($updateMask) - ->setLake($lake); - $response = $gapicClient->updateLake($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateLakeTest'); - 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 updateTaskTest() - { - $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/updateTaskTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $uid = 'uid115792'; - $description = 'description-1724546052'; - $displayName = 'displayName1615086568'; - $expectedResponse = new Task(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setDescription($description); - $expectedResponse->setDisplayName($displayName); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateTaskTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $updateMask = new FieldMask(); - $task = new Task(); - $taskTriggerSpec = new TriggerSpec(); - $triggerSpecType = \Google\Cloud\Dataplex\V1\Task\TriggerSpec\Type::TYPE_UNSPECIFIED; - $taskTriggerSpec->setType($triggerSpecType); - $task->setTriggerSpec($taskTriggerSpec); - $taskExecutionSpec = new ExecutionSpec(); - $executionSpecServiceAccount = 'executionSpecServiceAccount-1249728629'; - $taskExecutionSpec->setServiceAccount($executionSpecServiceAccount); - $task->setExecutionSpec($taskExecutionSpec); - $request = (new UpdateTaskRequest()) - ->setUpdateMask($updateMask) - ->setTask($task); - $response = $gapicClient->updateTask($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.dataplex.v1.DataplexService/UpdateTask', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $actualValue = $actualApiRequestObject->getTask(); - $this->assertProtobufEquals($task, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateTaskTest'); - $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 updateTaskExceptionTest() - { - $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/updateTaskTest'); - $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 - $updateMask = new FieldMask(); - $task = new Task(); - $taskTriggerSpec = new TriggerSpec(); - $triggerSpecType = \Google\Cloud\Dataplex\V1\Task\TriggerSpec\Type::TYPE_UNSPECIFIED; - $taskTriggerSpec->setType($triggerSpecType); - $task->setTriggerSpec($taskTriggerSpec); - $taskExecutionSpec = new ExecutionSpec(); - $executionSpecServiceAccount = 'executionSpecServiceAccount-1249728629'; - $taskExecutionSpec->setServiceAccount($executionSpecServiceAccount); - $task->setExecutionSpec($taskExecutionSpec); - $request = (new UpdateTaskRequest()) - ->setUpdateMask($updateMask) - ->setTask($task); - $response = $gapicClient->updateTask($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateTaskTest'); - 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 updateZoneTest() - { - $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/updateZoneTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $uid = 'uid115792'; - $description = 'description-1724546052'; - $expectedResponse = new Zone(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setUid($uid); - $expectedResponse->setDescription($description); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateZoneTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $updateMask = new FieldMask(); - $zone = new Zone(); - $zoneType = \Google\Cloud\Dataplex\V1\Zone\Type::TYPE_UNSPECIFIED; - $zone->setType($zoneType); - $zoneResourceSpec = new \Google\Cloud\Dataplex\V1\Zone\ResourceSpec(); - $resourceSpecLocationType = LocationType::LOCATION_TYPE_UNSPECIFIED; - $zoneResourceSpec->setLocationType($resourceSpecLocationType); - $zone->setResourceSpec($zoneResourceSpec); - $request = (new UpdateZoneRequest()) - ->setUpdateMask($updateMask) - ->setZone($zone); - $response = $gapicClient->updateZone($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.dataplex.v1.DataplexService/UpdateZone', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $actualValue = $actualApiRequestObject->getZone(); - $this->assertProtobufEquals($zone, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateZoneTest'); - $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 updateZoneExceptionTest() - { - $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/updateZoneTest'); - $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 - $updateMask = new FieldMask(); - $zone = new Zone(); - $zoneType = \Google\Cloud\Dataplex\V1\Zone\Type::TYPE_UNSPECIFIED; - $zone->setType($zoneType); - $zoneResourceSpec = new \Google\Cloud\Dataplex\V1\Zone\ResourceSpec(); - $resourceSpecLocationType = LocationType::LOCATION_TYPE_UNSPECIFIED; - $zoneResourceSpec->setLocationType($resourceSpecLocationType); - $zone->setResourceSpec($zoneResourceSpec); - $request = (new UpdateZoneRequest()) - ->setUpdateMask($updateMask) - ->setZone($zone); - $response = $gapicClient->updateZone($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateZoneTest'); - 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 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 getIamPolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $version = 351608024; - $etag = '21'; - $expectedResponse = new Policy(); - $expectedResponse->setVersion($version); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $request = (new GetIamPolicyRequest()) - ->setResource($resource); - $response = $gapicClient->getIamPolicy($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.iam.v1.IAMPolicy/GetIamPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getIamPolicyExceptionTest() - { - $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 - $resource = 'resource-341064690'; - $request = (new GetIamPolicyRequest()) - ->setResource($resource); - try { - $gapicClient->getIamPolicy($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 setIamPolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $version = 351608024; - $etag = '21'; - $expectedResponse = new Policy(); - $expectedResponse->setVersion($version); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $policy = new Policy(); - $request = (new SetIamPolicyRequest()) - ->setResource($resource) - ->setPolicy($policy); - $response = $gapicClient->setIamPolicy($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.iam.v1.IAMPolicy/SetIamPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $actualValue = $actualRequestObject->getPolicy(); - $this->assertProtobufEquals($policy, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setIamPolicyExceptionTest() - { - $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 - $resource = 'resource-341064690'; - $policy = new Policy(); - $request = (new SetIamPolicyRequest()) - ->setResource($resource) - ->setPolicy($policy); - try { - $gapicClient->setIamPolicy($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 testIamPermissionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new TestIamPermissionsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $permissions = []; - $request = (new TestIamPermissionsRequest()) - ->setResource($resource) - ->setPermissions($permissions); - $response = $gapicClient->testIamPermissions($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.iam.v1.IAMPolicy/TestIamPermissions', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $actualValue = $actualRequestObject->getPermissions(); - $this->assertProtobufEquals($permissions, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function testIamPermissionsExceptionTest() - { - $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 - $resource = 'resource-341064690'; - $permissions = []; - $request = (new TestIamPermissionsRequest()) - ->setResource($resource) - ->setPermissions($permissions); - try { - $gapicClient->testIamPermissions($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 cancelJobAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->jobName('[PROJECT]', '[LOCATION]', '[LAKE]', '[TASK]', '[JOB]'); - $request = (new CancelJobRequest()) - ->setName($formattedName); - $gapicClient->cancelJobAsync($request)->wait(); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataplex.v1.DataplexService/CancelJob', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/MetadataServiceClientTest.php b/owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/MetadataServiceClientTest.php deleted file mode 100644 index d1f292d5c9df..000000000000 --- a/owl-bot-staging/Dataplex/v1/tests/Unit/V1/Client/MetadataServiceClientTest.php +++ /dev/null @@ -1,1239 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return MetadataServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new MetadataServiceClient($options); - } - - /** @test */ - public function createEntityTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $id = 'id3355'; - $etag = 'etag3123477'; - $asset = 'asset93121264'; - $dataPath = 'dataPath-363501670'; - $dataPathPattern = 'dataPathPattern-594427925'; - $catalogEntry = 'catalogEntry-1234004788'; - $uid = 'uid115792'; - $expectedResponse = new Entity(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setId($id); - $expectedResponse->setEtag($etag); - $expectedResponse->setAsset($asset); - $expectedResponse->setDataPath($dataPath); - $expectedResponse->setDataPathPattern($dataPathPattern); - $expectedResponse->setCatalogEntry($catalogEntry); - $expectedResponse->setUid($uid); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->zoneName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]'); - $entity = new Entity(); - $entityId = 'entityId-2102099874'; - $entity->setId($entityId); - $entityType = Type::TYPE_UNSPECIFIED; - $entity->setType($entityType); - $entityAsset = 'entityAsset1253969101'; - $entity->setAsset($entityAsset); - $entityDataPath = 'entityDataPath1530173426'; - $entity->setDataPath($entityDataPath); - $entitySystem = StorageSystem::STORAGE_SYSTEM_UNSPECIFIED; - $entity->setSystem($entitySystem); - $entityFormat = new StorageFormat(); - $formatMimeType = 'formatMimeType-1419746651'; - $entityFormat->setMimeType($formatMimeType); - $entity->setFormat($entityFormat); - $entitySchema = new Schema(); - $schemaUserManaged = false; - $entitySchema->setUserManaged($schemaUserManaged); - $entity->setSchema($entitySchema); - $request = (new CreateEntityRequest()) - ->setParent($formattedParent) - ->setEntity($entity); - $response = $gapicClient->createEntity($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.dataplex.v1.MetadataService/CreateEntity', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getEntity(); - $this->assertProtobufEquals($entity, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createEntityExceptionTest() - { - $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->zoneName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]'); - $entity = new Entity(); - $entityId = 'entityId-2102099874'; - $entity->setId($entityId); - $entityType = Type::TYPE_UNSPECIFIED; - $entity->setType($entityType); - $entityAsset = 'entityAsset1253969101'; - $entity->setAsset($entityAsset); - $entityDataPath = 'entityDataPath1530173426'; - $entity->setDataPath($entityDataPath); - $entitySystem = StorageSystem::STORAGE_SYSTEM_UNSPECIFIED; - $entity->setSystem($entitySystem); - $entityFormat = new StorageFormat(); - $formatMimeType = 'formatMimeType-1419746651'; - $entityFormat->setMimeType($formatMimeType); - $entity->setFormat($entityFormat); - $entitySchema = new Schema(); - $schemaUserManaged = false; - $entitySchema->setUserManaged($schemaUserManaged); - $entity->setSchema($entitySchema); - $request = (new CreateEntityRequest()) - ->setParent($formattedParent) - ->setEntity($entity); - try { - $gapicClient->createEntity($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 createPartitionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $location = 'location1901043637'; - $etag = 'etag3123477'; - $expectedResponse = new Partition(); - $expectedResponse->setName($name); - $expectedResponse->setLocation($location); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->entityName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]', '[ENTITY]'); - $partition = new Partition(); - $partitionValues = []; - $partition->setValues($partitionValues); - $partitionLocation = 'partitionLocation-1757508417'; - $partition->setLocation($partitionLocation); - $request = (new CreatePartitionRequest()) - ->setParent($formattedParent) - ->setPartition($partition); - $response = $gapicClient->createPartition($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.dataplex.v1.MetadataService/CreatePartition', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getPartition(); - $this->assertProtobufEquals($partition, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createPartitionExceptionTest() - { - $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->entityName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]', '[ENTITY]'); - $partition = new Partition(); - $partitionValues = []; - $partition->setValues($partitionValues); - $partitionLocation = 'partitionLocation-1757508417'; - $partition->setLocation($partitionLocation); - $request = (new CreatePartitionRequest()) - ->setParent($formattedParent) - ->setPartition($partition); - try { - $gapicClient->createPartition($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 deleteEntityTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->entityName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]', '[ENTITY]'); - $etag = 'etag3123477'; - $request = (new DeleteEntityRequest()) - ->setName($formattedName) - ->setEtag($etag); - $gapicClient->deleteEntity($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataplex.v1.MetadataService/DeleteEntity', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $actualValue = $actualRequestObject->getEtag(); - $this->assertProtobufEquals($etag, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteEntityExceptionTest() - { - $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->entityName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]', '[ENTITY]'); - $etag = 'etag3123477'; - $request = (new DeleteEntityRequest()) - ->setName($formattedName) - ->setEtag($etag); - try { - $gapicClient->deleteEntity($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 deletePartitionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->partitionName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]', '[ENTITY]', '[PARTITION]'); - $request = (new DeletePartitionRequest()) - ->setName($formattedName); - $gapicClient->deletePartition($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataplex.v1.MetadataService/DeletePartition', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deletePartitionExceptionTest() - { - $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->partitionName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]', '[ENTITY]', '[PARTITION]'); - $request = (new DeletePartitionRequest()) - ->setName($formattedName); - try { - $gapicClient->deletePartition($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 getEntityTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $id = 'id3355'; - $etag = 'etag3123477'; - $asset = 'asset93121264'; - $dataPath = 'dataPath-363501670'; - $dataPathPattern = 'dataPathPattern-594427925'; - $catalogEntry = 'catalogEntry-1234004788'; - $uid = 'uid115792'; - $expectedResponse = new Entity(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setId($id); - $expectedResponse->setEtag($etag); - $expectedResponse->setAsset($asset); - $expectedResponse->setDataPath($dataPath); - $expectedResponse->setDataPathPattern($dataPathPattern); - $expectedResponse->setCatalogEntry($catalogEntry); - $expectedResponse->setUid($uid); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->entityName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]', '[ENTITY]'); - $request = (new GetEntityRequest()) - ->setName($formattedName); - $response = $gapicClient->getEntity($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.dataplex.v1.MetadataService/GetEntity', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getEntityExceptionTest() - { - $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->entityName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]', '[ENTITY]'); - $request = (new GetEntityRequest()) - ->setName($formattedName); - try { - $gapicClient->getEntity($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 getPartitionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $location = 'location1901043637'; - $etag = 'etag3123477'; - $expectedResponse = new Partition(); - $expectedResponse->setName($name2); - $expectedResponse->setLocation($location); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->partitionName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]', '[ENTITY]', '[PARTITION]'); - $request = (new GetPartitionRequest()) - ->setName($formattedName); - $response = $gapicClient->getPartition($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.dataplex.v1.MetadataService/GetPartition', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getPartitionExceptionTest() - { - $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->partitionName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]', '[ENTITY]', '[PARTITION]'); - $request = (new GetPartitionRequest()) - ->setName($formattedName); - try { - $gapicClient->getPartition($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 listEntitiesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $entitiesElement = new Entity(); - $entities = [ - $entitiesElement, - ]; - $expectedResponse = new ListEntitiesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setEntities($entities); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->zoneName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]'); - $view = EntityView::ENTITY_VIEW_UNSPECIFIED; - $request = (new ListEntitiesRequest()) - ->setParent($formattedParent) - ->setView($view); - $response = $gapicClient->listEntities($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getEntities()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataplex.v1.MetadataService/ListEntities', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getView(); - $this->assertProtobufEquals($view, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listEntitiesExceptionTest() - { - $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->zoneName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]'); - $view = EntityView::ENTITY_VIEW_UNSPECIFIED; - $request = (new ListEntitiesRequest()) - ->setParent($formattedParent) - ->setView($view); - try { - $gapicClient->listEntities($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 listPartitionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $partitionsElement = new Partition(); - $partitions = [ - $partitionsElement, - ]; - $expectedResponse = new ListPartitionsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setPartitions($partitions); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->entityName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]', '[ENTITY]'); - $request = (new ListPartitionsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listPartitions($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getPartitions()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.dataplex.v1.MetadataService/ListPartitions', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listPartitionsExceptionTest() - { - $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->entityName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]', '[ENTITY]'); - $request = (new ListPartitionsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listPartitions($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 updateEntityTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $id = 'id3355'; - $etag = 'etag3123477'; - $asset = 'asset93121264'; - $dataPath = 'dataPath-363501670'; - $dataPathPattern = 'dataPathPattern-594427925'; - $catalogEntry = 'catalogEntry-1234004788'; - $uid = 'uid115792'; - $expectedResponse = new Entity(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setId($id); - $expectedResponse->setEtag($etag); - $expectedResponse->setAsset($asset); - $expectedResponse->setDataPath($dataPath); - $expectedResponse->setDataPathPattern($dataPathPattern); - $expectedResponse->setCatalogEntry($catalogEntry); - $expectedResponse->setUid($uid); - $transport->addResponse($expectedResponse); - // Mock request - $entity = new Entity(); - $entityId = 'entityId-2102099874'; - $entity->setId($entityId); - $entityType = Type::TYPE_UNSPECIFIED; - $entity->setType($entityType); - $entityAsset = 'entityAsset1253969101'; - $entity->setAsset($entityAsset); - $entityDataPath = 'entityDataPath1530173426'; - $entity->setDataPath($entityDataPath); - $entitySystem = StorageSystem::STORAGE_SYSTEM_UNSPECIFIED; - $entity->setSystem($entitySystem); - $entityFormat = new StorageFormat(); - $formatMimeType = 'formatMimeType-1419746651'; - $entityFormat->setMimeType($formatMimeType); - $entity->setFormat($entityFormat); - $entitySchema = new Schema(); - $schemaUserManaged = false; - $entitySchema->setUserManaged($schemaUserManaged); - $entity->setSchema($entitySchema); - $request = (new UpdateEntityRequest()) - ->setEntity($entity); - $response = $gapicClient->updateEntity($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.dataplex.v1.MetadataService/UpdateEntity', $actualFuncCall); - $actualValue = $actualRequestObject->getEntity(); - $this->assertProtobufEquals($entity, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateEntityExceptionTest() - { - $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 - $entity = new Entity(); - $entityId = 'entityId-2102099874'; - $entity->setId($entityId); - $entityType = Type::TYPE_UNSPECIFIED; - $entity->setType($entityType); - $entityAsset = 'entityAsset1253969101'; - $entity->setAsset($entityAsset); - $entityDataPath = 'entityDataPath1530173426'; - $entity->setDataPath($entityDataPath); - $entitySystem = StorageSystem::STORAGE_SYSTEM_UNSPECIFIED; - $entity->setSystem($entitySystem); - $entityFormat = new StorageFormat(); - $formatMimeType = 'formatMimeType-1419746651'; - $entityFormat->setMimeType($formatMimeType); - $entity->setFormat($entityFormat); - $entitySchema = new Schema(); - $schemaUserManaged = false; - $entitySchema->setUserManaged($schemaUserManaged); - $entity->setSchema($entitySchema); - $request = (new UpdateEntityRequest()) - ->setEntity($entity); - try { - $gapicClient->updateEntity($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 getIamPolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $version = 351608024; - $etag = '21'; - $expectedResponse = new Policy(); - $expectedResponse->setVersion($version); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $request = (new GetIamPolicyRequest()) - ->setResource($resource); - $response = $gapicClient->getIamPolicy($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.iam.v1.IAMPolicy/GetIamPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getIamPolicyExceptionTest() - { - $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 - $resource = 'resource-341064690'; - $request = (new GetIamPolicyRequest()) - ->setResource($resource); - try { - $gapicClient->getIamPolicy($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 setIamPolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $version = 351608024; - $etag = '21'; - $expectedResponse = new Policy(); - $expectedResponse->setVersion($version); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $policy = new Policy(); - $request = (new SetIamPolicyRequest()) - ->setResource($resource) - ->setPolicy($policy); - $response = $gapicClient->setIamPolicy($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.iam.v1.IAMPolicy/SetIamPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $actualValue = $actualRequestObject->getPolicy(); - $this->assertProtobufEquals($policy, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setIamPolicyExceptionTest() - { - $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 - $resource = 'resource-341064690'; - $policy = new Policy(); - $request = (new SetIamPolicyRequest()) - ->setResource($resource) - ->setPolicy($policy); - try { - $gapicClient->setIamPolicy($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 testIamPermissionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new TestIamPermissionsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $permissions = []; - $request = (new TestIamPermissionsRequest()) - ->setResource($resource) - ->setPermissions($permissions); - $response = $gapicClient->testIamPermissions($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.iam.v1.IAMPolicy/TestIamPermissions', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $actualValue = $actualRequestObject->getPermissions(); - $this->assertProtobufEquals($permissions, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function testIamPermissionsExceptionTest() - { - $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 - $resource = 'resource-341064690'; - $permissions = []; - $request = (new TestIamPermissionsRequest()) - ->setResource($resource) - ->setPermissions($permissions); - try { - $gapicClient->testIamPermissions($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 createEntityAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $id = 'id3355'; - $etag = 'etag3123477'; - $asset = 'asset93121264'; - $dataPath = 'dataPath-363501670'; - $dataPathPattern = 'dataPathPattern-594427925'; - $catalogEntry = 'catalogEntry-1234004788'; - $uid = 'uid115792'; - $expectedResponse = new Entity(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $expectedResponse->setId($id); - $expectedResponse->setEtag($etag); - $expectedResponse->setAsset($asset); - $expectedResponse->setDataPath($dataPath); - $expectedResponse->setDataPathPattern($dataPathPattern); - $expectedResponse->setCatalogEntry($catalogEntry); - $expectedResponse->setUid($uid); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->zoneName('[PROJECT]', '[LOCATION]', '[LAKE]', '[ZONE]'); - $entity = new Entity(); - $entityId = 'entityId-2102099874'; - $entity->setId($entityId); - $entityType = Type::TYPE_UNSPECIFIED; - $entity->setType($entityType); - $entityAsset = 'entityAsset1253969101'; - $entity->setAsset($entityAsset); - $entityDataPath = 'entityDataPath1530173426'; - $entity->setDataPath($entityDataPath); - $entitySystem = StorageSystem::STORAGE_SYSTEM_UNSPECIFIED; - $entity->setSystem($entitySystem); - $entityFormat = new StorageFormat(); - $formatMimeType = 'formatMimeType-1419746651'; - $entityFormat->setMimeType($formatMimeType); - $entity->setFormat($entityFormat); - $entitySchema = new Schema(); - $schemaUserManaged = false; - $entitySchema->setUserManaged($schemaUserManaged); - $entity->setSchema($entitySchema); - $request = (new CreateEntityRequest()) - ->setParent($formattedParent) - ->setEntity($entity); - $response = $gapicClient->createEntityAsync($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.dataplex.v1.MetadataService/CreateEntity', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getEntity(); - $this->assertProtobufEquals($entity, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -}