diff --git a/api_names_out.yaml b/api_names_out.yaml index 3fda2f5a83d..6e34190d3ea 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -165928,6 +165928,372 @@ "/customsearch:v1/search.cse.siterestrict.list/sort": sort "/customsearch:v1/search.cse.siterestrict.list/start": start "/customsearch:v1/userIp": user_ip +"/databasecenter:v1beta/AdditionalDetail": additional_detail +"/databasecenter:v1beta/AdditionalDetail/automatedBackupPolicyInfo": automated_backup_policy_info +"/databasecenter:v1beta/AdditionalDetail/backupRunInfo": backup_run_info +"/databasecenter:v1beta/AdditionalDetail/deletionProtectionInfo": deletion_protection_info +"/databasecenter:v1beta/AdditionalDetail/inefficientQueryInfo": inefficient_query_info +"/databasecenter:v1beta/AdditionalDetail/maintenanceRecommendationInfo": maintenance_recommendation_info +"/databasecenter:v1beta/AdditionalDetail/outdatedMinorVersionInfo": outdated_minor_version_info +"/databasecenter:v1beta/AdditionalDetail/recommendationInfo": recommendation_info +"/databasecenter:v1beta/AdditionalDetail/resourceSuspensionInfo": resource_suspension_info +"/databasecenter:v1beta/AdditionalDetail/sccInfo": scc_info +"/databasecenter:v1beta/AdditionalDetail/shortBackupRetentionInfo": short_backup_retention_info +"/databasecenter:v1beta/AdditionalDetail/signalEventTime": signal_event_time +"/databasecenter:v1beta/AdditionalDetail/signalSource": signal_source +"/databasecenter:v1beta/AdditionalDetail/signalType": signal_type +"/databasecenter:v1beta/Affiliation": affiliation +"/databasecenter:v1beta/Affiliation/fullResourceName": full_resource_name +"/databasecenter:v1beta/Affiliation/lineages": lineages +"/databasecenter:v1beta/Affiliation/lineages/lineage": lineage +"/databasecenter:v1beta/Affiliation/resourceId": resource_id +"/databasecenter:v1beta/AggregateFleetResponse": aggregate_fleet_response +"/databasecenter:v1beta/AggregateFleetResponse/nextPageToken": next_page_token +"/databasecenter:v1beta/AggregateFleetResponse/resourceGroupsTotalCount": resource_groups_total_count +"/databasecenter:v1beta/AggregateFleetResponse/resourceTotalCount": resource_total_count +"/databasecenter:v1beta/AggregateFleetResponse/rows": rows +"/databasecenter:v1beta/AggregateFleetResponse/rows/row": row +"/databasecenter:v1beta/AggregateFleetResponse/totalSize": total_size +"/databasecenter:v1beta/AggregateFleetResponse/unreachable": unreachable +"/databasecenter:v1beta/AggregateFleetResponse/unreachable/unreachable": unreachable +"/databasecenter:v1beta/AggregateFleetRow": aggregate_fleet_row +"/databasecenter:v1beta/AggregateFleetRow/deltaDetails": delta_details +"/databasecenter:v1beta/AggregateFleetRow/dimension": dimension +"/databasecenter:v1beta/AggregateFleetRow/dimension/dimension": dimension +"/databasecenter:v1beta/AggregateFleetRow/resourceGroupsCount": resource_groups_count +"/databasecenter:v1beta/AggregateFleetRow/resourcesCount": resources_count +"/databasecenter:v1beta/AggregateIssueStatsRequest": aggregate_issue_stats_request +"/databasecenter:v1beta/AggregateIssueStatsRequest/baselineDate": baseline_date +"/databasecenter:v1beta/AggregateIssueStatsRequest/filter": filter +"/databasecenter:v1beta/AggregateIssueStatsRequest/parent": parent +"/databasecenter:v1beta/AggregateIssueStatsRequest/signalTypeGroups": signal_type_groups +"/databasecenter:v1beta/AggregateIssueStatsRequest/signalTypeGroups/signal_type_group": signal_type_group +"/databasecenter:v1beta/AggregateIssueStatsResponse": aggregate_issue_stats_response +"/databasecenter:v1beta/AggregateIssueStatsResponse/issueGroupStats": issue_group_stats +"/databasecenter:v1beta/AggregateIssueStatsResponse/issueGroupStats/issue_group_stat": issue_group_stat +"/databasecenter:v1beta/AggregateIssueStatsResponse/totalResourceGroupsCount": total_resource_groups_count +"/databasecenter:v1beta/AggregateIssueStatsResponse/totalResourcesCount": total_resources_count +"/databasecenter:v1beta/AggregateIssueStatsResponse/unreachable": unreachable +"/databasecenter:v1beta/AggregateIssueStatsResponse/unreachable/unreachable": unreachable +"/databasecenter:v1beta/AggregateQueryStatsRequest": aggregate_query_stats_request +"/databasecenter:v1beta/AggregateQueryStatsRequest/filter": filter +"/databasecenter:v1beta/AggregateQueryStatsRequest/orderBy": order_by +"/databasecenter:v1beta/AggregateQueryStatsRequest/pageSize": page_size +"/databasecenter:v1beta/AggregateQueryStatsRequest/pageToken": page_token +"/databasecenter:v1beta/AggregateQueryStatsResponse": aggregate_query_stats_response +"/databasecenter:v1beta/AggregateQueryStatsResponse/nextPageToken": next_page_token +"/databasecenter:v1beta/AggregateQueryStatsResponse/queryStats": query_stats +"/databasecenter:v1beta/AggregateQueryStatsResponse/queryStats/query_stat": query_stat +"/databasecenter:v1beta/AggregateQueryStatsResponse/unreachable": unreachable +"/databasecenter:v1beta/AggregateQueryStatsResponse/unreachable/unreachable": unreachable +"/databasecenter:v1beta/AutomatedBackupPolicyInfo": automated_backup_policy_info +"/databasecenter:v1beta/AutomatedBackupPolicyInfo/isEnabled": is_enabled +"/databasecenter:v1beta/AutomatedBackupPolicyInfo/subResource": sub_resource +"/databasecenter:v1beta/BackupDRConfig": backup_dr_config +"/databasecenter:v1beta/BackupDRConfig/backupdrManaged": backupdr_managed +"/databasecenter:v1beta/BackupRunInfo": backup_run_info +"/databasecenter:v1beta/BackupRunInfo/endTime": end_time +"/databasecenter:v1beta/BackupRunInfo/errorMessage": error_message +"/databasecenter:v1beta/BackupRunInfo/operationErrorType": operation_error_type +"/databasecenter:v1beta/BackupRunInfo/startTime": start_time +"/databasecenter:v1beta/BackupRunInfo/state": state +"/databasecenter:v1beta/BackupRunInfo/subResource": sub_resource +"/databasecenter:v1beta/DatabaseResource": database_resource +"/databasecenter:v1beta/DatabaseResource/affiliations": affiliations +"/databasecenter:v1beta/DatabaseResource/affiliations/affiliation": affiliation +"/databasecenter:v1beta/DatabaseResource/backupdrConfig": backupdr_config +"/databasecenter:v1beta/DatabaseResource/childResources": child_resources +"/databasecenter:v1beta/DatabaseResource/childResources/child_resource": child_resource +"/databasecenter:v1beta/DatabaseResource/container": container +"/databasecenter:v1beta/DatabaseResource/edition": edition +"/databasecenter:v1beta/DatabaseResource/fullResourceName": full_resource_name +"/databasecenter:v1beta/DatabaseResource/labels": labels +"/databasecenter:v1beta/DatabaseResource/labels/label": label +"/databasecenter:v1beta/DatabaseResource/location": location +"/databasecenter:v1beta/DatabaseResource/machineConfig": machine_config +"/databasecenter:v1beta/DatabaseResource/maintenanceInfo": maintenance_info +"/databasecenter:v1beta/DatabaseResource/metrics": metrics +"/databasecenter:v1beta/DatabaseResource/product": product +"/databasecenter:v1beta/DatabaseResource/resourceCategory": resource_category +"/databasecenter:v1beta/DatabaseResource/resourceName": resource_name +"/databasecenter:v1beta/DatabaseResource/resourceType": resource_type +"/databasecenter:v1beta/DatabaseResource/signalGroups": signal_groups +"/databasecenter:v1beta/DatabaseResource/signalGroups/signal_group": signal_group +"/databasecenter:v1beta/DatabaseResource/subResourceType": sub_resource_type +"/databasecenter:v1beta/DatabaseResource/tags": tags +"/databasecenter:v1beta/DatabaseResource/tags/tag": tag +"/databasecenter:v1beta/DatabaseResourceGroup": database_resource_group +"/databasecenter:v1beta/DatabaseResourceGroup/rootResources": root_resources +"/databasecenter:v1beta/DatabaseResourceGroup/rootResources/root_resource": root_resource +"/databasecenter:v1beta/DatabaseResourceGroup/signalGroups": signal_groups +"/databasecenter:v1beta/DatabaseResourceGroup/signalGroups/signal_group": signal_group +"/databasecenter:v1beta/DatabaseResourceIssue": database_resource_issue +"/databasecenter:v1beta/DatabaseResourceIssue/resource": resource +"/databasecenter:v1beta/DatabaseResourceIssue/signal": signal +"/databasecenter:v1beta/Date": date +"/databasecenter:v1beta/Date/day": day +"/databasecenter:v1beta/Date/month": month +"/databasecenter:v1beta/Date/year": year +"/databasecenter:v1beta/DeletionProtectionInfo": deletion_protection_info +"/databasecenter:v1beta/DeletionProtectionInfo/deletionProtectionEnabled": deletion_protection_enabled +"/databasecenter:v1beta/DeletionProtectionInfo/subResource": sub_resource +"/databasecenter:v1beta/DeltaDetails": delta_details +"/databasecenter:v1beta/DeltaDetails/decreasedResources": decreased_resources +"/databasecenter:v1beta/DeltaDetails/decreasedResources/decreased_resource": decreased_resource +"/databasecenter:v1beta/DeltaDetails/increasedResources": increased_resources +"/databasecenter:v1beta/DeltaDetails/increasedResources/increased_resource": increased_resource +"/databasecenter:v1beta/Dimension": dimension +"/databasecenter:v1beta/Dimension/container": container +"/databasecenter:v1beta/Dimension/edition": edition +"/databasecenter:v1beta/Dimension/hasDenyMaintenanceSchedules": has_deny_maintenance_schedules +"/databasecenter:v1beta/Dimension/hasMaintenanceSchedule": has_maintenance_schedule +"/databasecenter:v1beta/Dimension/labelKey": label_key +"/databasecenter:v1beta/Dimension/labelSource": label_source +"/databasecenter:v1beta/Dimension/labelValue": label_value +"/databasecenter:v1beta/Dimension/location": location +"/databasecenter:v1beta/Dimension/managementType": management_type +"/databasecenter:v1beta/Dimension/productEngine": product_engine +"/databasecenter:v1beta/Dimension/productType": product_type +"/databasecenter:v1beta/Dimension/productVersion": product_version +"/databasecenter:v1beta/Dimension/resourceCategory": resource_category +"/databasecenter:v1beta/Dimension/resourceType": resource_type +"/databasecenter:v1beta/Dimension/subResourceType": sub_resource_type +"/databasecenter:v1beta/Dimension/tagInherited": tag_inherited +"/databasecenter:v1beta/Dimension/tagKey": tag_key +"/databasecenter:v1beta/Dimension/tagSource": tag_source +"/databasecenter:v1beta/Dimension/tagValue": tag_value +"/databasecenter:v1beta/InefficientQueryInfo": inefficient_query_info +"/databasecenter:v1beta/InefficientQueryInfo/database": database +"/databasecenter:v1beta/InefficientQueryInfo/impactedQueriesCount": impacted_queries_count +"/databasecenter:v1beta/InefficientQueryInfo/sqlIndexStatement": sql_index_statement +"/databasecenter:v1beta/InefficientQueryInfo/storageCostBytes": storage_cost_bytes +"/databasecenter:v1beta/InefficientQueryInfo/table": table +"/databasecenter:v1beta/IssueCount": issue_count +"/databasecenter:v1beta/IssueCount/displayName": display_name +"/databasecenter:v1beta/IssueCount/issueCount": issue_count +"/databasecenter:v1beta/IssueGroupStats": issue_group_stats +"/databasecenter:v1beta/IssueGroupStats/displayName": display_name +"/databasecenter:v1beta/IssueGroupStats/healthyResourceGroupsCount": healthy_resource_groups_count +"/databasecenter:v1beta/IssueGroupStats/healthyResourcesCount": healthy_resources_count +"/databasecenter:v1beta/IssueGroupStats/issueStats": issue_stats +"/databasecenter:v1beta/IssueGroupStats/issueStats/issue_stat": issue_stat +"/databasecenter:v1beta/IssueGroupStats/resourceGroupsCount": resource_groups_count +"/databasecenter:v1beta/IssueGroupStats/resourcesCount": resources_count +"/databasecenter:v1beta/IssueStats": issue_stats +"/databasecenter:v1beta/IssueStats/deltaDetails": delta_details +"/databasecenter:v1beta/IssueStats/issueSeverity": issue_severity +"/databasecenter:v1beta/IssueStats/resourceCount": resource_count +"/databasecenter:v1beta/IssueStats/signalType": signal_type +"/databasecenter:v1beta/Label": label +"/databasecenter:v1beta/Label/key": key +"/databasecenter:v1beta/Label/source": source +"/databasecenter:v1beta/Label/value": value +"/databasecenter:v1beta/Lineage": lineage +"/databasecenter:v1beta/Lineage/processFqn": process_fqn +"/databasecenter:v1beta/Lineage/processType": process_type +"/databasecenter:v1beta/Lineage/sourceFqn": source_fqn +"/databasecenter:v1beta/Lineage/targetFqn": target_fqn +"/databasecenter:v1beta/MachineConfig": machine_config +"/databasecenter:v1beta/MachineConfig/baselineSlotCount": baseline_slot_count +"/databasecenter:v1beta/MachineConfig/maxReservationSlotCount": max_reservation_slot_count +"/databasecenter:v1beta/MachineConfig/memorySizeBytes": memory_size_bytes +"/databasecenter:v1beta/MachineConfig/shardCount": shard_count +"/databasecenter:v1beta/MachineConfig/vcpuCount": vcpu_count +"/databasecenter:v1beta/MaintenanceInfo": maintenance_info +"/databasecenter:v1beta/MaintenanceInfo/currentVersionReleaseDate": current_version_release_date +"/databasecenter:v1beta/MaintenanceInfo/denyMaintenanceSchedules": deny_maintenance_schedules +"/databasecenter:v1beta/MaintenanceInfo/denyMaintenanceSchedules/deny_maintenance_schedule": deny_maintenance_schedule +"/databasecenter:v1beta/MaintenanceInfo/maintenanceSchedule": maintenance_schedule +"/databasecenter:v1beta/MaintenanceInfo/maintenanceVersion": maintenance_version +"/databasecenter:v1beta/MaintenanceInfo/possibleFailureReasons": possible_failure_reasons +"/databasecenter:v1beta/MaintenanceInfo/possibleFailureReasons/possible_failure_reason": possible_failure_reason +"/databasecenter:v1beta/MaintenanceInfo/previousMaintenanceVersion": previous_maintenance_version +"/databasecenter:v1beta/MaintenanceInfo/state": state +"/databasecenter:v1beta/MaintenanceInfo/upcomingMaintenance": upcoming_maintenance +"/databasecenter:v1beta/MaintenanceRecommendationInfo": maintenance_recommendation_info +"/databasecenter:v1beta/MaintenanceRecommendationInfo/resourceMaintenanceSchedules": resource_maintenance_schedules +"/databasecenter:v1beta/MaintenanceRecommendationInfo/resourceMaintenanceSchedules/resource_maintenance_schedule": resource_maintenance_schedule +"/databasecenter:v1beta/MetricData": metric_data +"/databasecenter:v1beta/MetricData/observationTime": observation_time +"/databasecenter:v1beta/MetricData/value": value +"/databasecenter:v1beta/Metrics": metrics +"/databasecenter:v1beta/Metrics/currentMemoryUsedBytes": current_memory_used_bytes +"/databasecenter:v1beta/Metrics/currentStorageUsedBytes": current_storage_used_bytes +"/databasecenter:v1beta/Metrics/nodeCount": node_count +"/databasecenter:v1beta/Metrics/p95CpuUtilization": p95_cpu_utilization +"/databasecenter:v1beta/Metrics/p99CpuUtilization": p99_cpu_utilization +"/databasecenter:v1beta/Metrics/peakMemoryUtilization": peak_memory_utilization +"/databasecenter:v1beta/Metrics/peakNumberConnections": peak_number_connections +"/databasecenter:v1beta/Metrics/peakStorageUtilization": peak_storage_utilization +"/databasecenter:v1beta/Metrics/processingUnitCount": processing_unit_count +"/databasecenter:v1beta/OutdatedMinorVersionInfo": outdated_minor_version_info +"/databasecenter:v1beta/OutdatedMinorVersionInfo/recommendedMinorVersion": recommended_minor_version +"/databasecenter:v1beta/Product": product +"/databasecenter:v1beta/Product/engine": engine +"/databasecenter:v1beta/Product/minorVersion": minor_version +"/databasecenter:v1beta/Product/type": type +"/databasecenter:v1beta/Product/version": version +"/databasecenter:v1beta/QueryDatabaseResourceGroupsRequest": query_database_resource_groups_request +"/databasecenter:v1beta/QueryDatabaseResourceGroupsRequest/filter": filter +"/databasecenter:v1beta/QueryDatabaseResourceGroupsRequest/orderBy": order_by +"/databasecenter:v1beta/QueryDatabaseResourceGroupsRequest/pageSize": page_size +"/databasecenter:v1beta/QueryDatabaseResourceGroupsRequest/pageToken": page_token +"/databasecenter:v1beta/QueryDatabaseResourceGroupsRequest/parent": parent +"/databasecenter:v1beta/QueryDatabaseResourceGroupsRequest/signalFilters": signal_filters +"/databasecenter:v1beta/QueryDatabaseResourceGroupsRequest/signalFilters/signal_filter": signal_filter +"/databasecenter:v1beta/QueryDatabaseResourceGroupsRequest/signalTypeGroups": signal_type_groups +"/databasecenter:v1beta/QueryDatabaseResourceGroupsRequest/signalTypeGroups/signal_type_group": signal_type_group +"/databasecenter:v1beta/QueryDatabaseResourceGroupsResponse": query_database_resource_groups_response +"/databasecenter:v1beta/QueryDatabaseResourceGroupsResponse/nextPageToken": next_page_token +"/databasecenter:v1beta/QueryDatabaseResourceGroupsResponse/resourceGroups": resource_groups +"/databasecenter:v1beta/QueryDatabaseResourceGroupsResponse/resourceGroups/resource_group": resource_group +"/databasecenter:v1beta/QueryDatabaseResourceGroupsResponse/totalSize": total_size +"/databasecenter:v1beta/QueryDatabaseResourceGroupsResponse/unreachable": unreachable +"/databasecenter:v1beta/QueryDatabaseResourceGroupsResponse/unreachable/unreachable": unreachable +"/databasecenter:v1beta/QueryIssuesRequest": query_issues_request +"/databasecenter:v1beta/QueryIssuesRequest/filter": filter +"/databasecenter:v1beta/QueryIssuesRequest/orderBy": order_by +"/databasecenter:v1beta/QueryIssuesRequest/pageSize": page_size +"/databasecenter:v1beta/QueryIssuesRequest/pageToken": page_token +"/databasecenter:v1beta/QueryIssuesRequest/parent": parent +"/databasecenter:v1beta/QueryIssuesRequest/signalProductsFilters": signal_products_filters +"/databasecenter:v1beta/QueryIssuesRequest/signalProductsFilters/signal_products_filter": signal_products_filter +"/databasecenter:v1beta/QueryIssuesResponse": query_issues_response +"/databasecenter:v1beta/QueryIssuesResponse/nextPageToken": next_page_token +"/databasecenter:v1beta/QueryIssuesResponse/resourceIssues": resource_issues +"/databasecenter:v1beta/QueryIssuesResponse/resourceIssues/resource_issue": resource_issue +"/databasecenter:v1beta/QueryIssuesResponse/unreachable": unreachable +"/databasecenter:v1beta/QueryIssuesResponse/unreachable/unreachable": unreachable +"/databasecenter:v1beta/QueryMetrics": query_metrics +"/databasecenter:v1beta/QueryMetrics/avgCpuTime": avg_cpu_time +"/databasecenter:v1beta/QueryMetrics/executionCount": execution_count +"/databasecenter:v1beta/QueryMetrics/metricsWindow": metrics_window +"/databasecenter:v1beta/QueryMetrics/rowsProcessed": rows_processed +"/databasecenter:v1beta/QueryMetrics/totalCpuTime": total_cpu_time +"/databasecenter:v1beta/QueryProductsResponse": query_products_response +"/databasecenter:v1beta/QueryProductsResponse/nextPageToken": next_page_token +"/databasecenter:v1beta/QueryProductsResponse/products": products +"/databasecenter:v1beta/QueryProductsResponse/products/product": product +"/databasecenter:v1beta/QueryProductsResponse/unreachable": unreachable +"/databasecenter:v1beta/QueryProductsResponse/unreachable/unreachable": unreachable +"/databasecenter:v1beta/QueryStats": query_stats +"/databasecenter:v1beta/QueryStats/inefficientQueryInfo": inefficient_query_info +"/databasecenter:v1beta/QueryStats/normalizedQuery": normalized_query +"/databasecenter:v1beta/QueryStats/queryHash": query_hash +"/databasecenter:v1beta/QueryStats/queryMetrics": query_metrics +"/databasecenter:v1beta/QueryStats/resourceIds": resource_ids +"/databasecenter:v1beta/QueryStats/resourceIds/resource_id": resource_id +"/databasecenter:v1beta/QueryStats/resourceType": resource_type +"/databasecenter:v1beta/QueryStatsInfo": query_stats_info +"/databasecenter:v1beta/QueryStatsInfo/aggregatedQueryStats": aggregated_query_stats +"/databasecenter:v1beta/QueryStatsInfo/queryStats": query_stats +"/databasecenter:v1beta/QueryStatsInfo/queryStats/query_stat": query_stat +"/databasecenter:v1beta/RecommendationInfo": recommendation_info +"/databasecenter:v1beta/RecommendationInfo/recommender": recommender +"/databasecenter:v1beta/RecommendationInfo/recommenderId": recommender_id +"/databasecenter:v1beta/RecommendationInfo/recommenderSubtype": recommender_subtype +"/databasecenter:v1beta/RegulatoryStandard": regulatory_standard +"/databasecenter:v1beta/RegulatoryStandard/standard": standard +"/databasecenter:v1beta/RegulatoryStandard/version": version +"/databasecenter:v1beta/ResourceDetails": resource_details +"/databasecenter:v1beta/ResourceDetails/container": container +"/databasecenter:v1beta/ResourceDetails/fullResourceName": full_resource_name +"/databasecenter:v1beta/ResourceDetails/location": location +"/databasecenter:v1beta/ResourceDetails/product": product +"/databasecenter:v1beta/ResourceId": resource_id +"/databasecenter:v1beta/ResourceId/fullResourceName": full_resource_name +"/databasecenter:v1beta/ResourceId/product": product +"/databasecenter:v1beta/ResourceId/resourceType": resource_type +"/databasecenter:v1beta/ResourceMaintenanceDenySchedule": resource_maintenance_deny_schedule +"/databasecenter:v1beta/ResourceMaintenanceDenySchedule/endDate": end_date +"/databasecenter:v1beta/ResourceMaintenanceDenySchedule/startDate": start_date +"/databasecenter:v1beta/ResourceMaintenanceDenySchedule/time": time +"/databasecenter:v1beta/ResourceMaintenanceSchedule": resource_maintenance_schedule +"/databasecenter:v1beta/ResourceMaintenanceSchedule/day": day +"/databasecenter:v1beta/ResourceMaintenanceSchedule/phase": phase +"/databasecenter:v1beta/ResourceMaintenanceSchedule/startTime": start_time +"/databasecenter:v1beta/ResourceSuspensionInfo": resource_suspension_info +"/databasecenter:v1beta/ResourceSuspensionInfo/resourceSuspended": resource_suspended +"/databasecenter:v1beta/ResourceSuspensionInfo/suspensionReason": suspension_reason +"/databasecenter:v1beta/RetentionSettingsInfo": retention_settings_info +"/databasecenter:v1beta/RetentionSettingsInfo/durationBasedRetention": duration_based_retention +"/databasecenter:v1beta/RetentionSettingsInfo/quantityBasedRetention": quantity_based_retention +"/databasecenter:v1beta/RetentionSettingsInfo/subResource": sub_resource +"/databasecenter:v1beta/RetentionSettingsInfo/timestampBasedRetentionTime": timestamp_based_retention_time +"/databasecenter:v1beta/SCCInfo": scc_info +"/databasecenter:v1beta/SCCInfo/category": category +"/databasecenter:v1beta/SCCInfo/externalUri": external_uri +"/databasecenter:v1beta/SCCInfo/regulatoryStandards": regulatory_standards +"/databasecenter:v1beta/SCCInfo/regulatoryStandards/regulatory_standard": regulatory_standard +"/databasecenter:v1beta/SCCInfo/signal": signal +"/databasecenter:v1beta/Signal": signal +"/databasecenter:v1beta/Signal/additionalDetails": additional_details +"/databasecenter:v1beta/Signal/additionalDetails/additional_detail": additional_detail +"/databasecenter:v1beta/Signal/issueCreateTime": issue_create_time +"/databasecenter:v1beta/Signal/issueSeverity": issue_severity +"/databasecenter:v1beta/Signal/signalStatus": signal_status +"/databasecenter:v1beta/Signal/signalType": signal_type +"/databasecenter:v1beta/SignalFilter": signal_filter +"/databasecenter:v1beta/SignalFilter/signalStatus": signal_status +"/databasecenter:v1beta/SignalFilter/signalType": signal_type +"/databasecenter:v1beta/SignalGroup": signal_group +"/databasecenter:v1beta/SignalGroup/displayName": display_name +"/databasecenter:v1beta/SignalGroup/issueCount": issue_count +"/databasecenter:v1beta/SignalGroup/signals": signals +"/databasecenter:v1beta/SignalGroup/signals/signal": signal +"/databasecenter:v1beta/SignalProductsFilters": signal_products_filters +"/databasecenter:v1beta/SignalProductsFilters/products": products +"/databasecenter:v1beta/SignalProductsFilters/products/product": product +"/databasecenter:v1beta/SignalProductsFilters/signalType": signal_type +"/databasecenter:v1beta/SignalTypeGroup": signal_type_group +"/databasecenter:v1beta/SignalTypeGroup/displayName": display_name +"/databasecenter:v1beta/SignalTypeGroup/signalTypes": signal_types +"/databasecenter:v1beta/SignalTypeGroup/signalTypes/signal_type": signal_type +"/databasecenter:v1beta/SubResource": sub_resource +"/databasecenter:v1beta/SubResource/container": container +"/databasecenter:v1beta/SubResource/fullResourceName": full_resource_name +"/databasecenter:v1beta/SubResource/product": product +"/databasecenter:v1beta/SubResource/resourceType": resource_type +"/databasecenter:v1beta/Tag": tag +"/databasecenter:v1beta/Tag/inherited": inherited +"/databasecenter:v1beta/Tag/key": key +"/databasecenter:v1beta/Tag/source": source +"/databasecenter:v1beta/Tag/value": value +"/databasecenter:v1beta/TimeOfDay": time_of_day +"/databasecenter:v1beta/TimeOfDay/hours": hours +"/databasecenter:v1beta/TimeOfDay/minutes": minutes +"/databasecenter:v1beta/TimeOfDay/nanos": nanos +"/databasecenter:v1beta/TimeOfDay/seconds": seconds +"/databasecenter:v1beta/TypedValue": typed_value +"/databasecenter:v1beta/TypedValue/doubleValue": double_value +"/databasecenter:v1beta/TypedValue/int64Value": int64_value +"/databasecenter:v1beta/UpcomingMaintenance": upcoming_maintenance +"/databasecenter:v1beta/UpcomingMaintenance/endTime": end_time +"/databasecenter:v1beta/UpcomingMaintenance/startTime": start_time +"/databasecenter:v1beta/databasecenter.aggregateFleet/baselineDate.day": baseline_date_day +"/databasecenter:v1beta/databasecenter.aggregateFleet/baselineDate.month": baseline_date_month +"/databasecenter:v1beta/databasecenter.aggregateFleet/baselineDate.year": baseline_date_year +"/databasecenter:v1beta/databasecenter.aggregateFleet/filter": filter +"/databasecenter:v1beta/databasecenter.aggregateFleet/groupBy": group_by +"/databasecenter:v1beta/databasecenter.aggregateFleet/orderBy": order_by +"/databasecenter:v1beta/databasecenter.aggregateFleet/pageSize": page_size +"/databasecenter:v1beta/databasecenter.aggregateFleet/pageToken": page_token +"/databasecenter:v1beta/databasecenter.aggregateFleet/parent": parent +"/databasecenter:v1beta/databasecenter.aggregateIssueStats": aggregate_issue_stats +"/databasecenter:v1beta/databasecenter.folders.aggregateQueryStats": aggregate_folder_query_stats +"/databasecenter:v1beta/databasecenter.folders.aggregateQueryStats/parent": parent +"/databasecenter:v1beta/databasecenter.organizations.aggregateQueryStats": aggregate_organization_query_stats +"/databasecenter:v1beta/databasecenter.organizations.aggregateQueryStats/parent": parent +"/databasecenter:v1beta/databasecenter.projects.aggregateQueryStats": aggregate_project_query_stats +"/databasecenter:v1beta/databasecenter.projects.aggregateQueryStats/parent": parent +"/databasecenter:v1beta/databasecenter.queryDatabaseResourceGroups": query_database_resource_groups +"/databasecenter:v1beta/databasecenter.queryIssues": query_issues +"/databasecenter:v1beta/databasecenter.queryProducts/pageSize": page_size +"/databasecenter:v1beta/databasecenter.queryProducts/pageToken": page_token +"/databasecenter:v1beta/databasecenter.queryProducts/parent": parent +"/databasecenter:v1beta/fields": fields +"/databasecenter:v1beta/key": key +"/databasecenter:v1beta/quotaUser": quota_user "/datacatalog:v1/Binding": binding "/datacatalog:v1/Binding/condition": condition "/datacatalog:v1/Binding/members": members diff --git a/generated/google-apis-databasecenter_v1beta/.repo-metadata.json b/generated/google-apis-databasecenter_v1beta/.repo-metadata.json new file mode 100644 index 00000000000..f13b51a447f --- /dev/null +++ b/generated/google-apis-databasecenter_v1beta/.repo-metadata.json @@ -0,0 +1,7 @@ +{ + "api_id": "databasecenter:v1beta", + "name_pretty": "Database Center API", + "distribution_name": "google-apis-databasecenter_v1beta", + "language": "ruby", + "library_type": "REST" +} diff --git a/generated/google-apis-databasecenter_v1beta/.rspec b/generated/google-apis-databasecenter_v1beta/.rspec new file mode 100644 index 00000000000..16f9cdb0135 --- /dev/null +++ b/generated/google-apis-databasecenter_v1beta/.rspec @@ -0,0 +1,2 @@ +--color +--format documentation diff --git a/generated/google-apis-databasecenter_v1beta/.toys.rb b/generated/google-apis-databasecenter_v1beta/.toys.rb new file mode 100644 index 00000000000..5754f95708a --- /dev/null +++ b/generated/google-apis-databasecenter_v1beta/.toys.rb @@ -0,0 +1,57 @@ +expand :clean, paths: :gitignore + +expand :rspec do |t| + t.libs = ["lib", "spec"] + t.use_bundler +end + +expand :yardoc do |t| + t.generate_output_flag = true + t.use_bundler +end + +expand :gem_build + +tool "bundle" do + flag :update + + include :exec, e: true + + def run + exec ["bundle", update ? "update" : "install"] + end +end + +tool "ci" do + include :terminal + include :exec + + def run + Dir.chdir context_directory + @gem_name = File.basename context_directory + @failures = [] + step "bundle" + step "spec" + step "yardoc" + step "build" + if @failures.empty? + puts "CI SUCEEDED", :green, :bold + else + puts "CI FAILED", :red, :bold + @failures.each { |name| puts " failed: #{name}", :red, :bold } + exit 1 + end + end + + def step tool + full_name = "#{@gem_name}:#{tool}" + puts "Starting: #{full_name}...", :cyan, :bold + result = exec_separate_tool [tool] + if result.success? + puts "SUCCESS: #{full_name}", :green, :bold + else + @failures << full_name + puts "FAILED: #{full_name}", :red, :bold + end + end +end diff --git a/generated/google-apis-databasecenter_v1beta/.yardopts b/generated/google-apis-databasecenter_v1beta/.yardopts new file mode 100644 index 00000000000..98201fbda72 --- /dev/null +++ b/generated/google-apis-databasecenter_v1beta/.yardopts @@ -0,0 +1,13 @@ +--hide-void-return +--no-private +--verbose +--title=google-apis-databasecenter_v1beta +--markup-provider=redcarpet +--markup=markdown +--main OVERVIEW.md +lib/google/apis/databasecenter_v1beta/*.rb +lib/google/apis/databasecenter_v1beta.rb +- +OVERVIEW.md +CHANGELOG.md +LICENSE.md diff --git a/generated/google-apis-databasecenter_v1beta/CHANGELOG.md b/generated/google-apis-databasecenter_v1beta/CHANGELOG.md new file mode 100644 index 00000000000..10291de4f1b --- /dev/null +++ b/generated/google-apis-databasecenter_v1beta/CHANGELOG.md @@ -0,0 +1,7 @@ +# Release history for google-apis-databasecenter_v1beta + +### v0.1.0 (2026-06-21) + +* Regenerated from discovery document revision 20260612 +* Regenerated using generator version 0.19.0 + diff --git a/generated/google-apis-databasecenter_v1beta/Gemfile b/generated/google-apis-databasecenter_v1beta/Gemfile new file mode 100644 index 00000000000..6fa8bb627a6 --- /dev/null +++ b/generated/google-apis-databasecenter_v1beta/Gemfile @@ -0,0 +1,23 @@ +source 'https://rubygems.org' + +gemspec + +group :development do + gem "bundler", ">= 1.17" + gem "rake", ">= 12.0" + gem "rspec", "~> 3.9" + gem "opencensus", "~> 0.5" +end + +platforms :jruby do + group :development do + gem "jruby-openssl" + end +end + +platforms :ruby do + group :development do + gem "yard", "~> 0.9", ">= 0.9.25" + gem "redcarpet", "~> 3.5" + end +end diff --git a/generated/google-apis-databasecenter_v1beta/LICENSE.md b/generated/google-apis-databasecenter_v1beta/LICENSE.md new file mode 100644 index 00000000000..32916804156 --- /dev/null +++ b/generated/google-apis-databasecenter_v1beta/LICENSE.md @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/generated/google-apis-databasecenter_v1beta/OVERVIEW.md b/generated/google-apis-databasecenter_v1beta/OVERVIEW.md new file mode 100644 index 00000000000..b7707113cd5 --- /dev/null +++ b/generated/google-apis-databasecenter_v1beta/OVERVIEW.md @@ -0,0 +1,96 @@ +# Simple REST client for version V1beta of the Database Center API + +This is a simple client library for version V1beta of the Database Center API. It provides: + +* A client object that connects to the HTTP/JSON REST endpoint for the service. +* Ruby objects for data structures related to the service. +* Integration with the googleauth gem for authentication using OAuth, API keys, and service accounts. +* Control of retry, pagination, and timeouts. + +Note that although this client library is supported and will continue to be updated to track changes to the service, it is otherwise considered complete and not under active development. Many Google services, especially Google Cloud Platform services, may provide a more modern client that is under more active development and improvement. See the section below titled *Which client should I use?* for more information. + +## Getting started + +### Before you begin + +There are a few setup steps you need to complete before you can use this library: + + 1. If you don't already have a Google account, [sign up](https://www.google.com/accounts). + 2. If you have never created a Google APIs Console project, read about [Managing Projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects) and create a project in the [Google API Console](https://console.cloud.google.com/). + 3. Most APIs need to be enabled for your project. [Enable it](https://console.cloud.google.com/apis/library/databasecenter.googleapis.com) in the console. + +### Installation + +Add this line to your application's Gemfile: + +```ruby +gem 'google-apis-databasecenter_v1beta', '~> 0.1' +``` + +And then execute: + +``` +$ bundle +``` + +Or install it yourself as: + +``` +$ gem install google-apis-databasecenter_v1beta +``` + +### Creating a client object + +Once the gem is installed, you can load the client code and instantiate a client. + +```ruby +# Load the client +require "google/apis/databasecenter_v1beta" + +# Create a client object +client = Google::Apis::DatabasecenterV1beta::DatabaseCenterService.new + +# Authenticate calls +client.authorization = # ... use the googleauth gem to create credentials +``` + +See the class reference docs for information on the methods you can call from a client. + +## Documentation + +More detailed descriptions of the Google simple REST clients are available in two documents. + + * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging. + * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables. + +(Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Databasecenter service in particular.) + +For reference information on specific calls in the Database Center API, see the {Google::Apis::DatabasecenterV1beta::DatabaseCenterService class reference docs}. + +## Which client should I use? + +Google provides two types of Ruby API client libraries: **simple REST clients** and **modern clients**. + +This library, `google-apis-databasecenter_v1beta`, is a simple REST client. You can identify these clients by their gem names, which are always in the form `google-apis-_`. The simple REST clients connect to HTTP/JSON REST endpoints and are automatically generated from service discovery documents. They support most API functionality, but their class interfaces are sometimes awkward. + +Modern clients are produced by a modern code generator, sometimes combined with hand-crafted functionality. Most modern clients connect to high-performance gRPC endpoints, although a few are backed by REST services. Modern clients are available for many Google services, especially Google Cloud Platform services, but do not yet support all the services covered by the simple clients. + +Gem names for modern clients are often of the form `google-cloud-`. (For example, [google-cloud-pubsub](https://rubygems.org/gems/google-cloud-pubsub).) Note that most modern clients also have corresponding "versioned" gems with names like `google-cloud--`. (For example, [google-cloud-pubsub-v1](https://rubygems.org/gems/google-cloud-pubsub-v1).) The "versioned" gems can be used directly, but often provide lower-level interfaces. In most cases, the main gem is recommended. + +**For most users, we recommend the modern client, if one is available.** Compared with simple clients, modern clients are generally much easier to use and more Ruby-like, support more advanced features such as streaming and long-running operations, and often provide much better performance. You may consider using a simple client instead, if a modern client is not yet available for the service you want to use, or if you are not able to use gRPC on your infrastructure. + +The [product documentation](https://docs.cloud.google.com/database-center/docs/overview) may provide guidance regarding the preferred client library to use. + +## Supported Ruby versions + +This library is supported on Ruby 3.2+. + +Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule. + +## License + +This library is licensed under Apache 2.0. Full license text is available in the {file:LICENSE.md LICENSE}. + +## Support + +Please [report bugs at the project on Github](https://github.com/google/google-api-ruby-client/issues). Don't hesitate to [ask questions](http://stackoverflow.com/questions/tagged/google-api-ruby-client) about the client or APIs on [StackOverflow](http://stackoverflow.com). diff --git a/generated/google-apis-databasecenter_v1beta/Rakefile b/generated/google-apis-databasecenter_v1beta/Rakefile new file mode 100644 index 00000000000..defbde59776 --- /dev/null +++ b/generated/google-apis-databasecenter_v1beta/Rakefile @@ -0,0 +1,28 @@ +require "bundler/gem_tasks" +task :release_gem do + Rake::Task["build"].invoke + Rake::Task["release:rubygem_push"].invoke +end + +require 'rake/clean' +CLOBBER.include('coverage', 'doc') +CLEAN.include('.yardoc') + +require 'rspec/core/rake_task' +RSpec::Core::RakeTask.new(:spec) + +begin + require 'yard' + require 'yard/rake/yardoc_task' + YARD::Rake::YardocTask.new do |t| + t.files = ['lib/**/*.rb', 'generated/**/*.rb'] + t.options = ['--verbose', '--markup', 'markdown'] + end +rescue LoadError + task :yard + puts "YARD not available" +end + +task :ci => [:spec, :yard, :build] + +task :default => :ci diff --git a/generated/google-apis-databasecenter_v1beta/google-apis-databasecenter_v1beta.gemspec b/generated/google-apis-databasecenter_v1beta/google-apis-databasecenter_v1beta.gemspec new file mode 100644 index 00000000000..62deae68fc7 --- /dev/null +++ b/generated/google-apis-databasecenter_v1beta/google-apis-databasecenter_v1beta.gemspec @@ -0,0 +1,33 @@ +require File.expand_path("lib/google/apis/databasecenter_v1beta/gem_version", __dir__) +gem_version = Google::Apis::DatabasecenterV1beta::GEM_VERSION + +Gem::Specification.new do |gem| + gem.name = "google-apis-databasecenter_v1beta" + gem.version = gem_version + gem.authors = ["Google LLC"] + gem.email = "googleapis-packages@google.com" + gem.summary = "Simple REST client for Database Center API V1beta" + gem.description = + "This is the simple REST client for Database Center API V1beta." \ + " Simple REST clients are Ruby client libraries that provide access to" \ + " Google services via their HTTP REST API endpoints. These libraries are" \ + " generated and updated automatically based on the discovery documents" \ + " published by the service, and they handle most concerns such as" \ + " authentication, pagination, retry, timeouts, and logging. You can use" \ + " this client to access the Database Center API, but note that some" \ + " services may provide a separate modern client that is easier to use." + gem.homepage = "https://github.com/google/google-api-ruby-client" + gem.license = "Apache-2.0" + gem.metadata = { + "bug_tracker_uri" => "https://github.com/googleapis/google-api-ruby-client/issues", + "changelog_uri" => "https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-databasecenter_v1beta/CHANGELOG.md", + "documentation_uri" => "https://googleapis.dev/ruby/google-apis-databasecenter_v1beta/v#{gem_version}", + "source_code_uri" => "https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-databasecenter_v1beta" + } + + gem.files = Dir.glob("lib/**/*.rb") + Dir.glob("*.md") + [".yardopts"] + gem.require_paths = ["lib"] + + gem.required_ruby_version = '>= 3.2' + gem.add_runtime_dependency "google-apis-core", ">= 0.15.0", "< 2.a" +end diff --git a/generated/google-apis-databasecenter_v1beta/lib/google-apis-databasecenter_v1beta.rb b/generated/google-apis-databasecenter_v1beta/lib/google-apis-databasecenter_v1beta.rb new file mode 100644 index 00000000000..73f8156d84d --- /dev/null +++ b/generated/google-apis-databasecenter_v1beta/lib/google-apis-databasecenter_v1beta.rb @@ -0,0 +1,15 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require "google/apis/databasecenter_v1beta" diff --git a/generated/google-apis-databasecenter_v1beta/lib/google/apis/databasecenter_v1beta.rb b/generated/google-apis-databasecenter_v1beta/lib/google/apis/databasecenter_v1beta.rb new file mode 100644 index 00000000000..8b2a1041e9a --- /dev/null +++ b/generated/google-apis-databasecenter_v1beta/lib/google/apis/databasecenter_v1beta.rb @@ -0,0 +1,42 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/databasecenter_v1beta/service.rb' +require 'google/apis/databasecenter_v1beta/classes.rb' +require 'google/apis/databasecenter_v1beta/representations.rb' +require 'google/apis/databasecenter_v1beta/gem_version.rb' + +module Google + module Apis + # Database Center API + # + # Database Center offers a comprehensive, organization-wide platform for + # monitoring database fleet health across various products. It simplifies + # management and reduces risk by automatically aggregating and summarizing key + # health signals, removing the need for custom dashboards. The platform provides + # a unified view through its dashboard and API, enabling teams focused on + # reliability, compliance, security, cost, and administration to quickly + # identify and address relevant issues within their database fleets. + # + # @see https://docs.cloud.google.com/database-center/docs/overview + module DatabasecenterV1beta + # Version of the Database Center API this client connects to. + # This is NOT the gem version. + VERSION = 'V1beta' + + # See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account. + AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + end + end +end diff --git a/generated/google-apis-databasecenter_v1beta/lib/google/apis/databasecenter_v1beta/classes.rb b/generated/google-apis-databasecenter_v1beta/lib/google/apis/databasecenter_v1beta/classes.rb new file mode 100644 index 00000000000..d8d5f830165 --- /dev/null +++ b/generated/google-apis-databasecenter_v1beta/lib/google/apis/databasecenter_v1beta/classes.rb @@ -0,0 +1,2560 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module DatabasecenterV1beta + + # Details related to signal. + class AdditionalDetail + include Google::Apis::Core::Hashable + + # Automated backup policy signal info + # Corresponds to the JSON property `automatedBackupPolicyInfo` + # @return [Google::Apis::DatabasecenterV1beta::AutomatedBackupPolicyInfo] + attr_accessor :automated_backup_policy_info + + # Metadata about latest backup run state for a database resource. + # Corresponds to the JSON property `backupRunInfo` + # @return [Google::Apis::DatabasecenterV1beta::BackupRunInfo] + attr_accessor :backup_run_info + + # Deletion protection signal info for a database resource. + # Corresponds to the JSON property `deletionProtectionInfo` + # @return [Google::Apis::DatabasecenterV1beta::DeletionProtectionInfo] + attr_accessor :deletion_protection_info + + # Metadata about inefficient query signal info for a database resource. + # Corresponds to the JSON property `inefficientQueryInfo` + # @return [Google::Apis::DatabasecenterV1beta::InefficientQueryInfo] + attr_accessor :inefficient_query_info + + # Info associated with maintenance recommendation. + # Corresponds to the JSON property `maintenanceRecommendationInfo` + # @return [Google::Apis::DatabasecenterV1beta::MaintenanceRecommendationInfo] + attr_accessor :maintenance_recommendation_info + + # Info associated with outdated minor version. + # Corresponds to the JSON property `outdatedMinorVersionInfo` + # @return [Google::Apis::DatabasecenterV1beta::OutdatedMinorVersionInfo] + attr_accessor :outdated_minor_version_info + + # Info associated with recommendation. + # Corresponds to the JSON property `recommendationInfo` + # @return [Google::Apis::DatabasecenterV1beta::RecommendationInfo] + attr_accessor :recommendation_info + + # Resource suspension info for a database resource. + # Corresponds to the JSON property `resourceSuspensionInfo` + # @return [Google::Apis::DatabasecenterV1beta::ResourceSuspensionInfo] + attr_accessor :resource_suspension_info + + # Info associated with SCC signals. + # Corresponds to the JSON property `sccInfo` + # @return [Google::Apis::DatabasecenterV1beta::SccInfo] + attr_accessor :scc_info + + # Metadata about backup retention settings for a database resource. + # Corresponds to the JSON property `shortBackupRetentionInfo` + # @return [Google::Apis::DatabasecenterV1beta::RetentionSettingsInfo] + attr_accessor :short_backup_retention_info + + # Event time when signal was recorded by source service. + # Corresponds to the JSON property `signalEventTime` + # @return [String] + attr_accessor :signal_event_time + + # Where the signal is coming from. + # Corresponds to the JSON property `signalSource` + # @return [String] + attr_accessor :signal_source + + # Type of the signal. + # Corresponds to the JSON property `signalType` + # @return [String] + attr_accessor :signal_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @automated_backup_policy_info = args[:automated_backup_policy_info] if args.key?(:automated_backup_policy_info) + @backup_run_info = args[:backup_run_info] if args.key?(:backup_run_info) + @deletion_protection_info = args[:deletion_protection_info] if args.key?(:deletion_protection_info) + @inefficient_query_info = args[:inefficient_query_info] if args.key?(:inefficient_query_info) + @maintenance_recommendation_info = args[:maintenance_recommendation_info] if args.key?(:maintenance_recommendation_info) + @outdated_minor_version_info = args[:outdated_minor_version_info] if args.key?(:outdated_minor_version_info) + @recommendation_info = args[:recommendation_info] if args.key?(:recommendation_info) + @resource_suspension_info = args[:resource_suspension_info] if args.key?(:resource_suspension_info) + @scc_info = args[:scc_info] if args.key?(:scc_info) + @short_backup_retention_info = args[:short_backup_retention_info] if args.key?(:short_backup_retention_info) + @signal_event_time = args[:signal_event_time] if args.key?(:signal_event_time) + @signal_source = args[:signal_source] if args.key?(:signal_source) + @signal_type = args[:signal_type] if args.key?(:signal_type) + end + end + + # Affiliation information of a resource + class Affiliation + include Google::Apis::Core::Hashable + + # Optional. Full resource name + # Corresponds to the JSON property `fullResourceName` + # @return [String] + attr_accessor :full_resource_name + + # Optional. Multiple lineages can be created from a resource. For example, a + # resource can be replicated to multiple target resources. In this case, there + # will be multiple lineages for the resource, one for each target resource. + # Corresponds to the JSON property `lineages` + # @return [Array] + attr_accessor :lineages + + # Optional. resource id of affiliated resource + # Corresponds to the JSON property `resourceId` + # @return [String] + attr_accessor :resource_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @full_resource_name = args[:full_resource_name] if args.key?(:full_resource_name) + @lineages = args[:lineages] if args.key?(:lineages) + @resource_id = args[:resource_id] if args.key?(:resource_id) + end + end + + # The response message to aggregate a fleet by some group by fields. + class AggregateFleetResponse + include Google::Apis::Core::Hashable + + # A token that can be sent as `page_token` to retrieve the next page. If this + # field is omitted, there are no subsequent pages. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # Count of all resource groups in the fleet. This includes counts from all pages. + # Corresponds to the JSON property `resourceGroupsTotalCount` + # @return [Fixnum] + attr_accessor :resource_groups_total_count + + # Count of all resources in the fleet. This includes counts from all pages. + # Corresponds to the JSON property `resourceTotalCount` + # @return [Fixnum] + attr_accessor :resource_total_count + + # Represents a row grouped by the fields in the input. + # Corresponds to the JSON property `rows` + # @return [Array] + attr_accessor :rows + + # Output only. The total number of rows in the entire list. + # Corresponds to the JSON property `totalSize` + # @return [Fixnum] + attr_accessor :total_size + + # Unordered list. List of unreachable regions from where data could not be + # retrieved. + # Corresponds to the JSON property `unreachable` + # @return [Array] + attr_accessor :unreachable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @resource_groups_total_count = args[:resource_groups_total_count] if args.key?(:resource_groups_total_count) + @resource_total_count = args[:resource_total_count] if args.key?(:resource_total_count) + @rows = args[:rows] if args.key?(:rows) + @total_size = args[:total_size] if args.key?(:total_size) + @unreachable = args[:unreachable] if args.key?(:unreachable) + end + end + + # Individual row grouped by a particular dimension. + class AggregateFleetRow + include Google::Apis::Core::Hashable + + # Captures the details of items that have increased or decreased in some bucket + # when compared to some point in history. It is currently used to capture the + # delta of resources that have been added or removed in the fleet as well as to + # capture the resources that have a change in Issue/Signal status. + # Corresponds to the JSON property `deltaDetails` + # @return [Google::Apis::DatabasecenterV1beta::DeltaDetails] + attr_accessor :delta_details + + # Group by dimension. + # Corresponds to the JSON property `dimension` + # @return [Array] + attr_accessor :dimension + + # Number of resource groups that have a particular dimension. + # Corresponds to the JSON property `resourceGroupsCount` + # @return [Fixnum] + attr_accessor :resource_groups_count + + # Number of resources that have a particular dimension. + # Corresponds to the JSON property `resourcesCount` + # @return [Fixnum] + attr_accessor :resources_count + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @delta_details = args[:delta_details] if args.key?(:delta_details) + @dimension = args[:dimension] if args.key?(:dimension) + @resource_groups_count = args[:resource_groups_count] if args.key?(:resource_groups_count) + @resources_count = args[:resources_count] if args.key?(:resources_count) + end + end + + # AggregateIssueStatsRequest represents the input to the AggregateIssueStats + # method. + class AggregateIssueStatsRequest + include Google::Apis::Core::Hashable + + # Represents a whole or partial calendar date, such as a birthday. The time of + # day and time zone are either specified elsewhere or are insignificant. The + # date is relative to the Gregorian Calendar. This can represent one of the + # following: * A full date, with non-zero year, month, and day values. * A month + # and day, with a zero year (for example, an anniversary). * A year on its own, + # with a zero month and a zero day. * A year and month, with a zero day (for + # example, a credit card expiration date). Related types: * google.type. + # TimeOfDay * google.type.DateTime * google.protobuf.Timestamp + # Corresponds to the JSON property `baselineDate` + # @return [Google::Apis::DatabasecenterV1beta::Date] + attr_accessor :baseline_date + + # Optional. The expression to filter resources. Supported fields are: ` + # full_resource_name`, `resource_type`, `container`, `product.type`, `product. + # engine`, `product.version`, `location`, `labels`, `issues`, fields of + # availability_info, data_protection_info,'resource_name', etc. The expression + # is a list of zero or more restrictions combined via logical operators `AND` + # and `OR`. When `AND` and `OR` are both used in the expression, parentheses + # must be appropriately used to group the combinations. Example: `location="us- + # east1"` Example: `container="projects/123" OR container="projects/456"` + # Example: `(container="projects/123" OR container="projects/456") AND location=" + # us-east1"` + # Corresponds to the JSON property `filter` + # @return [String] + attr_accessor :filter + + # Required. Parent can be a project, a folder, or an organization. The search is + # limited to the resources within the `scope`. The allowed values are: * + # projects/`PROJECT_ID` (e.g., "projects/foo-bar") * projects/`PROJECT_NUMBER` ( + # e.g., "projects/12345678") * folders/`FOLDER_NUMBER` (e.g., "folders/1234567") + # * organizations/`ORGANIZATION_NUMBER` (e.g., "organizations/123456") + # Corresponds to the JSON property `parent` + # @return [String] + attr_accessor :parent + + # Optional. Lists of signal types that are issues. + # Corresponds to the JSON property `signalTypeGroups` + # @return [Array] + attr_accessor :signal_type_groups + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @baseline_date = args[:baseline_date] if args.key?(:baseline_date) + @filter = args[:filter] if args.key?(:filter) + @parent = args[:parent] if args.key?(:parent) + @signal_type_groups = args[:signal_type_groups] if args.key?(:signal_type_groups) + end + end + + # The response message containing one of more group of relevant health issues + # for database resources. + class AggregateIssueStatsResponse + include Google::Apis::Core::Hashable + + # List of issue group stats where each group contains stats for resources having + # a particular combination of relevant issues. + # Corresponds to the JSON property `issueGroupStats` + # @return [Array] + attr_accessor :issue_group_stats + + # Total count of the resource filtered in based on the user given filter. + # Corresponds to the JSON property `totalResourceGroupsCount` + # @return [Fixnum] + attr_accessor :total_resource_groups_count + + # Total count of the resources filtered in based on the user given filter. + # Corresponds to the JSON property `totalResourcesCount` + # @return [Fixnum] + attr_accessor :total_resources_count + + # Unordered list. List of unreachable regions from where data could not be + # retrieved. + # Corresponds to the JSON property `unreachable` + # @return [Array] + attr_accessor :unreachable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @issue_group_stats = args[:issue_group_stats] if args.key?(:issue_group_stats) + @total_resource_groups_count = args[:total_resource_groups_count] if args.key?(:total_resource_groups_count) + @total_resources_count = args[:total_resources_count] if args.key?(:total_resources_count) + @unreachable = args[:unreachable] if args.key?(:unreachable) + end + end + + # AggregateQueryStatsRequest represents the input to the AggregateQueryStats + # method. + class AggregateQueryStatsRequest + include Google::Apis::Core::Hashable + + # Optional. The expression to filter resources. Supported fields are: ` + # full_resource_name`, `resource_type`, `container`, `product.type`, `product. + # engine`, `product.version`, `location`, `labels`, `issues`, fields of + # availability_info, data_protection_info,'resource_name', etc. The expression + # is a list of zero or more restrictions combined via logical operators `AND` + # and `OR`. When `AND` and `OR` are both used in the expression, parentheses + # must be appropriately used to group the combinations. Example: `location="us- + # east1"` Example: `container="projects/123" OR container="projects/456"` + # Example: `(container="projects/123" OR container="projects/456") AND location=" + # us-east1"` Additional specific fields for query stats are: `metric_window`, ` + # query_hash`, `normalized_query`. Example: `metric_window="LAST_ONE_DAY"` ( + # Possible values for `metric_window` are: `LAST_ONE_DAY`, `LAST_ONE_WEEK`, ` + # LAST_TWO_WEEKS`) Example: `query_hash="12345678"` Example: `normalized_query=" + # SELECT * FROM table"` + # Corresponds to the JSON property `filter` + # @return [String] + attr_accessor :filter + + # Optional. The expression to order the results by. Example: `order_by=" + # execution_count"` Example: `order_by="execution_count desc"` Supported order + # by fields are `execution_count`, `rows_processed`, `total_cpu_time`, ` + # avg_cpu_time`. + # Corresponds to the JSON property `orderBy` + # @return [String] + attr_accessor :order_by + + # Optional. If unspecified, at most 100 query stats will be returned. The + # maximum value is 1000; values above 1000 will be coerced to 1000. + # Corresponds to the JSON property `pageSize` + # @return [Fixnum] + attr_accessor :page_size + + # Optional. A page token, received from a previous `AggregateQueryStatsRequest` + # call. Provide this to retrieve the subsequent page. All parameters except + # page_token should match the parameters in the call that provided the page + # token. + # Corresponds to the JSON property `pageToken` + # @return [String] + attr_accessor :page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @filter = args[:filter] if args.key?(:filter) + @order_by = args[:order_by] if args.key?(:order_by) + @page_size = args[:page_size] if args.key?(:page_size) + @page_token = args[:page_token] if args.key?(:page_token) + end + end + + # The response message containing relevant query stats for database resources. + class AggregateQueryStatsResponse + include Google::Apis::Core::Hashable + + # A token that can be sent as `page_token` to retrieve the next page. If this + # field is omitted, there are no subsequent pages. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # List of query stats where each group contains stats for resources having a + # particular combination of relevant query stats. + # Corresponds to the JSON property `queryStats` + # @return [Array] + attr_accessor :query_stats + + # Unordered list. List of unreachable regions from where data could not be + # retrieved. + # Corresponds to the JSON property `unreachable` + # @return [Array] + attr_accessor :unreachable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @query_stats = args[:query_stats] if args.key?(:query_stats) + @unreachable = args[:unreachable] if args.key?(:unreachable) + end + end + + # Automated backup policy signal info + class AutomatedBackupPolicyInfo + include Google::Apis::Core::Hashable + + # Is automated policy enabled. + # Corresponds to the JSON property `isEnabled` + # @return [Boolean] + attr_accessor :is_enabled + alias_method :is_enabled?, :is_enabled + + # Sub resource details For Spanner/Bigtable instance certain data protection + # settings are at sub resource level like database/table. This message is used + # to capture such sub resource details. + # Corresponds to the JSON property `subResource` + # @return [Google::Apis::DatabasecenterV1beta::SubResource] + attr_accessor :sub_resource + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @is_enabled = args[:is_enabled] if args.key?(:is_enabled) + @sub_resource = args[:sub_resource] if args.key?(:sub_resource) + end + end + + # BackupDRConfig to capture the backup and disaster recovery details of database + # resource. + class BackupDrConfig + include Google::Apis::Core::Hashable + + # Indicates if the resource is managed by BackupDR. + # Corresponds to the JSON property `backupdrManaged` + # @return [Boolean] + attr_accessor :backupdr_managed + alias_method :backupdr_managed?, :backupdr_managed + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @backupdr_managed = args[:backupdr_managed] if args.key?(:backupdr_managed) + end + end + + # Metadata about latest backup run state for a database resource. + class BackupRunInfo + include Google::Apis::Core::Hashable + + # The time the backup operation completed. + # Corresponds to the JSON property `endTime` + # @return [String] + attr_accessor :end_time + + # Additional information about the error encountered. + # Corresponds to the JSON property `errorMessage` + # @return [String] + attr_accessor :error_message + + # Optional. OperationErrorType to expose specific error when backup operation of + # database resource failed, that is state is FAILED. + # Corresponds to the JSON property `operationErrorType` + # @return [String] + attr_accessor :operation_error_type + + # The time the backup operation started. + # Corresponds to the JSON property `startTime` + # @return [String] + attr_accessor :start_time + + # Output only. The state of this run. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # Sub resource details For Spanner/Bigtable instance certain data protection + # settings are at sub resource level like database/table. This message is used + # to capture such sub resource details. + # Corresponds to the JSON property `subResource` + # @return [Google::Apis::DatabasecenterV1beta::SubResource] + attr_accessor :sub_resource + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @end_time = args[:end_time] if args.key?(:end_time) + @error_message = args[:error_message] if args.key?(:error_message) + @operation_error_type = args[:operation_error_type] if args.key?(:operation_error_type) + @start_time = args[:start_time] if args.key?(:start_time) + @state = args[:state] if args.key?(:state) + @sub_resource = args[:sub_resource] if args.key?(:sub_resource) + end + end + + # DatabaseResource represents every individually configured database unit + # representing compute and/or storage. + class DatabaseResource + include Google::Apis::Core::Hashable + + # Optional. Affiliation details of the resource. + # Corresponds to the JSON property `affiliations` + # @return [Array] + attr_accessor :affiliations + + # BackupDRConfig to capture the backup and disaster recovery details of database + # resource. + # Corresponds to the JSON property `backupdrConfig` + # @return [Google::Apis::DatabasecenterV1beta::BackupDrConfig] + attr_accessor :backupdr_config + + # List of children associated with a database group. + # Corresponds to the JSON property `childResources` + # @return [Array] + attr_accessor :child_resources + + # Specifies where the resource is created. For Google Cloud resources, it is the + # full name of the project. + # Corresponds to the JSON property `container` + # @return [String] + attr_accessor :container + + # The edition of the resource. + # Corresponds to the JSON property `edition` + # @return [String] + attr_accessor :edition + + # The full resource name, based on CAIS resource name format https://cloud. + # google.com/asset-inventory/docs/resource-name-format Example: `//cloudsql. + # googleapis.com/projects/project-number/instances/mysql-1` `//cloudsql. + # googleapis.com/projects/project-number/instances/postgres-1` `//spanner. + # googleapis.com/projects/project-number/instances/spanner-instance-1` `// + # alloydb.googleapis.com/projects/project-number/locations/us-central1/clusters/ + # c1` `//alloydb.googleapis.com/projects/project-number/locations/us-central1/ + # clusters/c1/instances/i1` + # Corresponds to the JSON property `fullResourceName` + # @return [String] + attr_accessor :full_resource_name + + # Labels applied on the resource. The requirements for labels assigned to Google + # Cloud resources may be found at https://cloud.google.com/resource-manager/docs/ + # labels-overview#requirements + # Corresponds to the JSON property `labels` + # @return [Array] + attr_accessor :labels + + # The location of the resources. It supports returning only regional locations + # in Google Cloud. These are of the form: "us-central1", "us-east1", etc. See + # https://cloud.google.com/about/locations for a list of such regions. + # Corresponds to the JSON property `location` + # @return [String] + attr_accessor :location + + # MachineConfig describes the configuration of a machine specific to a Database + # Resource. + # Corresponds to the JSON property `machineConfig` + # @return [Google::Apis::DatabasecenterV1beta::MachineConfig] + attr_accessor :machine_config + + # MaintenanceInfo to capture the maintenance details of database resource. + # Corresponds to the JSON property `maintenanceInfo` + # @return [Google::Apis::DatabasecenterV1beta::MaintenanceInfo] + attr_accessor :maintenance_info + + # Metrics represents the metrics for a database resource. + # Corresponds to the JSON property `metrics` + # @return [Google::Apis::DatabasecenterV1beta::Metrics] + attr_accessor :metrics + + # Product specification for databasecenter resources. + # Corresponds to the JSON property `product` + # @return [Google::Apis::DatabasecenterV1beta::Product] + attr_accessor :product + + # The category of the resource. + # Corresponds to the JSON property `resourceCategory` + # @return [String] + attr_accessor :resource_category + + # The name of the resource(The last part of the full resource name). Example: + # For full resource name - `//cloudsql.googleapis.com/projects/project-number/ + # instances/mysql-1`, resource name - `mysql-1` For full resource name - `// + # cloudsql.googleapis.com/projects/project-number/instances/postgres-1` , + # resource name - `postgres-1` Note: In some cases, there might be more than one + # resource with the same resource name. + # Corresponds to the JSON property `resourceName` + # @return [String] + attr_accessor :resource_name + + # The type of resource defined according to the pattern: `Service Name`/`Type`. + # Ex: sqladmin.googleapis.com/Instance alloydb.googleapis.com/Cluster alloydb. + # googleapis.com/Instance spanner.googleapis.com/Instance + # Corresponds to the JSON property `resourceType` + # @return [String] + attr_accessor :resource_type + + # The list of signal groups and count of issues related to the resource. Only + # those signals which have been requested would be included. + # Corresponds to the JSON property `signalGroups` + # @return [Array] + attr_accessor :signal_groups + + # Subtype of the resource specified at creation time. + # Corresponds to the JSON property `subResourceType` + # @return [String] + attr_accessor :sub_resource_type + + # Tags applied on the resource. The requirements for tags assigned to Google + # Cloud resources may be found at https://cloud.google.com/resource-manager/docs/ + # tags/tags-overview + # Corresponds to the JSON property `tags` + # @return [Array] + attr_accessor :tags + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @affiliations = args[:affiliations] if args.key?(:affiliations) + @backupdr_config = args[:backupdr_config] if args.key?(:backupdr_config) + @child_resources = args[:child_resources] if args.key?(:child_resources) + @container = args[:container] if args.key?(:container) + @edition = args[:edition] if args.key?(:edition) + @full_resource_name = args[:full_resource_name] if args.key?(:full_resource_name) + @labels = args[:labels] if args.key?(:labels) + @location = args[:location] if args.key?(:location) + @machine_config = args[:machine_config] if args.key?(:machine_config) + @maintenance_info = args[:maintenance_info] if args.key?(:maintenance_info) + @metrics = args[:metrics] if args.key?(:metrics) + @product = args[:product] if args.key?(:product) + @resource_category = args[:resource_category] if args.key?(:resource_category) + @resource_name = args[:resource_name] if args.key?(:resource_name) + @resource_type = args[:resource_type] if args.key?(:resource_type) + @signal_groups = args[:signal_groups] if args.key?(:signal_groups) + @sub_resource_type = args[:sub_resource_type] if args.key?(:sub_resource_type) + @tags = args[:tags] if args.key?(:tags) + end + end + + # DatabaseResourceGroup represents all resources that serve a common data set. + # It is considered notionally as a single entity, powered by any number of units + # of compute and storage. + class DatabaseResourceGroup + include Google::Apis::Core::Hashable + + # A database resource that serves as a root of the group of database resources. + # It is repeated just in case we have the concept of multiple roots in the + # future, however, it will only be populated with a single value for now. + # Corresponds to the JSON property `rootResources` + # @return [Array] + attr_accessor :root_resources + + # The filtered signal groups and the count of issues associated with the + # resources that have been filtered in. + # Corresponds to the JSON property `signalGroups` + # @return [Array] + attr_accessor :signal_groups + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @root_resources = args[:root_resources] if args.key?(:root_resources) + @signal_groups = args[:signal_groups] if args.key?(:signal_groups) + end + end + + # DatabaseResource and Issue associated with it. + class DatabaseResourceIssue + include Google::Apis::Core::Hashable + + # DatabaseResource represents every individually configured database unit + # representing compute and/or storage. + # Corresponds to the JSON property `resource` + # @return [Google::Apis::DatabasecenterV1beta::DatabaseResource] + attr_accessor :resource + + # Represents a signal. + # Corresponds to the JSON property `signal` + # @return [Google::Apis::DatabasecenterV1beta::Signal] + attr_accessor :signal + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @resource = args[:resource] if args.key?(:resource) + @signal = args[:signal] if args.key?(:signal) + end + end + + # Represents a whole or partial calendar date, such as a birthday. The time of + # day and time zone are either specified elsewhere or are insignificant. The + # date is relative to the Gregorian Calendar. This can represent one of the + # following: * A full date, with non-zero year, month, and day values. * A month + # and day, with a zero year (for example, an anniversary). * A year on its own, + # with a zero month and a zero day. * A year and month, with a zero day (for + # example, a credit card expiration date). Related types: * google.type. + # TimeOfDay * google.type.DateTime * google.protobuf.Timestamp + class Date + include Google::Apis::Core::Hashable + + # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to + # specify a year by itself or a year and month where the day isn't significant. + # Corresponds to the JSON property `day` + # @return [Fixnum] + attr_accessor :day + + # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month + # and day. + # Corresponds to the JSON property `month` + # @return [Fixnum] + attr_accessor :month + + # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a + # year. + # Corresponds to the JSON property `year` + # @return [Fixnum] + attr_accessor :year + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @day = args[:day] if args.key?(:day) + @month = args[:month] if args.key?(:month) + @year = args[:year] if args.key?(:year) + end + end + + # Deletion protection signal info for a database resource. + class DeletionProtectionInfo + include Google::Apis::Core::Hashable + + # Is deletion protection enabled. + # Corresponds to the JSON property `deletionProtectionEnabled` + # @return [Boolean] + attr_accessor :deletion_protection_enabled + alias_method :deletion_protection_enabled?, :deletion_protection_enabled + + # Sub resource details For Spanner/Bigtable instance certain data protection + # settings are at sub resource level like database/table. This message is used + # to capture such sub resource details. + # Corresponds to the JSON property `subResource` + # @return [Google::Apis::DatabasecenterV1beta::SubResource] + attr_accessor :sub_resource + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @deletion_protection_enabled = args[:deletion_protection_enabled] if args.key?(:deletion_protection_enabled) + @sub_resource = args[:sub_resource] if args.key?(:sub_resource) + end + end + + # Captures the details of items that have increased or decreased in some bucket + # when compared to some point in history. It is currently used to capture the + # delta of resources that have been added or removed in the fleet as well as to + # capture the resources that have a change in Issue/Signal status. + class DeltaDetails + include Google::Apis::Core::Hashable + + # Details of resources that have decreased. + # Corresponds to the JSON property `decreasedResources` + # @return [Array] + attr_accessor :decreased_resources + + # Details of resources that have increased. + # Corresponds to the JSON property `increasedResources` + # @return [Array] + attr_accessor :increased_resources + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @decreased_resources = args[:decreased_resources] if args.key?(:decreased_resources) + @increased_resources = args[:increased_resources] if args.key?(:increased_resources) + end + end + + # Dimension used to aggregate the fleet. + class Dimension + include Google::Apis::Core::Hashable + + # Specifies where the resource is created. For Google Cloud resources, it is the + # full name of the project. + # Corresponds to the JSON property `container` + # @return [String] + attr_accessor :container + + # The edition of the resource. + # Corresponds to the JSON property `edition` + # @return [String] + attr_accessor :edition + + # Whether the resource has deny maintenance schedules. + # Corresponds to the JSON property `hasDenyMaintenanceSchedules` + # @return [Boolean] + attr_accessor :has_deny_maintenance_schedules + alias_method :has_deny_maintenance_schedules?, :has_deny_maintenance_schedules + + # Whether the resource has a maintenance schedule. + # Corresponds to the JSON property `hasMaintenanceSchedule` + # @return [Boolean] + attr_accessor :has_maintenance_schedule + alias_method :has_maintenance_schedule?, :has_maintenance_schedule + + # Label key of the resource. + # Corresponds to the JSON property `labelKey` + # @return [String] + attr_accessor :label_key + + # Label source of the resource. + # Corresponds to the JSON property `labelSource` + # @return [String] + attr_accessor :label_source + + # Label value of the resource. + # Corresponds to the JSON property `labelValue` + # @return [String] + attr_accessor :label_value + + # The location of the resources. It supports returning only regional locations + # in Google Cloud. + # Corresponds to the JSON property `location` + # @return [String] + attr_accessor :location + + # The management type of the resource. + # Corresponds to the JSON property `managementType` + # @return [String] + attr_accessor :management_type + + # Engine refers to underlying database binary running in an instance. + # Corresponds to the JSON property `productEngine` + # @return [String] + attr_accessor :product_engine + + # Type to identify a product + # Corresponds to the JSON property `productType` + # @return [String] + attr_accessor :product_type + + # Version of the underlying database engine + # Corresponds to the JSON property `productVersion` + # @return [String] + attr_accessor :product_version + + # The category of the resource. + # Corresponds to the JSON property `resourceCategory` + # @return [String] + attr_accessor :resource_category + + # The type of resource defined according to the pattern: `Service Name`/`Type`. + # Ex: sqladmin.googleapis.com/Instance alloydb.googleapis.com/Cluster alloydb. + # googleapis.com/Instance spanner.googleapis.com/Instance + # Corresponds to the JSON property `resourceType` + # @return [String] + attr_accessor :resource_type + + # Subtype of the resource specified at creation time. + # Corresponds to the JSON property `subResourceType` + # @return [String] + attr_accessor :sub_resource_type + + # Tag inheritance value of the resource. + # Corresponds to the JSON property `tagInherited` + # @return [Boolean] + attr_accessor :tag_inherited + alias_method :tag_inherited?, :tag_inherited + + # Tag key of the resource. + # Corresponds to the JSON property `tagKey` + # @return [String] + attr_accessor :tag_key + + # Tag source of the resource. + # Corresponds to the JSON property `tagSource` + # @return [String] + attr_accessor :tag_source + + # Tag value of the resource. + # Corresponds to the JSON property `tagValue` + # @return [String] + attr_accessor :tag_value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @container = args[:container] if args.key?(:container) + @edition = args[:edition] if args.key?(:edition) + @has_deny_maintenance_schedules = args[:has_deny_maintenance_schedules] if args.key?(:has_deny_maintenance_schedules) + @has_maintenance_schedule = args[:has_maintenance_schedule] if args.key?(:has_maintenance_schedule) + @label_key = args[:label_key] if args.key?(:label_key) + @label_source = args[:label_source] if args.key?(:label_source) + @label_value = args[:label_value] if args.key?(:label_value) + @location = args[:location] if args.key?(:location) + @management_type = args[:management_type] if args.key?(:management_type) + @product_engine = args[:product_engine] if args.key?(:product_engine) + @product_type = args[:product_type] if args.key?(:product_type) + @product_version = args[:product_version] if args.key?(:product_version) + @resource_category = args[:resource_category] if args.key?(:resource_category) + @resource_type = args[:resource_type] if args.key?(:resource_type) + @sub_resource_type = args[:sub_resource_type] if args.key?(:sub_resource_type) + @tag_inherited = args[:tag_inherited] if args.key?(:tag_inherited) + @tag_key = args[:tag_key] if args.key?(:tag_key) + @tag_source = args[:tag_source] if args.key?(:tag_source) + @tag_value = args[:tag_value] if args.key?(:tag_value) + end + end + + # Metadata about inefficient query signal info for a database resource. + class InefficientQueryInfo + include Google::Apis::Core::Hashable + + # Name of the database where index is required. For example, "db1", which is the + # name of the database present in the instance. + # Corresponds to the JSON property `database` + # @return [String] + attr_accessor :database + + # Count of queries to be impacted if index is applied + # Corresponds to the JSON property `impactedQueriesCount` + # @return [Fixnum] + attr_accessor :impacted_queries_count + + # SQL statement of the index. Based on the ddl type, this will be either CREATE + # INDEX or DROP INDEX. + # Corresponds to the JSON property `sqlIndexStatement` + # @return [String] + attr_accessor :sql_index_statement + + # Cost of additional disk usage in bytes + # Corresponds to the JSON property `storageCostBytes` + # @return [Fixnum] + attr_accessor :storage_cost_bytes + + # Name of the table where index is required + # Corresponds to the JSON property `table` + # @return [String] + attr_accessor :table + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @database = args[:database] if args.key?(:database) + @impacted_queries_count = args[:impacted_queries_count] if args.key?(:impacted_queries_count) + @sql_index_statement = args[:sql_index_statement] if args.key?(:sql_index_statement) + @storage_cost_bytes = args[:storage_cost_bytes] if args.key?(:storage_cost_bytes) + @table = args[:table] if args.key?(:table) + end + end + + # Count of issues for a group of signals. + class IssueCount + include Google::Apis::Core::Hashable + + # Title of a signal group corresponding to the request. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # The count of the number of issues associated with those resources that are + # explicitly filtered in by the filters present in the request. A signal is an + # issue when its SignalStatus field is set to SIGNAL_STATUS_ISSUE. + # Corresponds to the JSON property `issueCount` + # @return [Fixnum] + attr_accessor :issue_count + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @display_name = args[:display_name] if args.key?(:display_name) + @issue_count = args[:issue_count] if args.key?(:issue_count) + end + end + + # IssueGroupStats refers to stats for a particulare combination of relevant + # health issues of database resources. + class IssueGroupStats + include Google::Apis::Core::Hashable + + # Database resource level health card name. This will corresponds to one of the + # requested input group names. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # The number of resource groups from the total groups as defined above that are + # healthy with respect to all of the specified issues. + # Corresponds to the JSON property `healthyResourceGroupsCount` + # @return [Fixnum] + attr_accessor :healthy_resource_groups_count + + # The number of resources from the total defined above in field + # total_resources_count that are healthy with respect to all of the specified + # issues. + # Corresponds to the JSON property `healthyResourcesCount` + # @return [Fixnum] + attr_accessor :healthy_resources_count + + # List of issues stats containing count of resources having particular issue + # category. + # Corresponds to the JSON property `issueStats` + # @return [Array] + attr_accessor :issue_stats + + # Total count of the groups of resources returned by the filter that also have + # one or more resources for which any of the specified issues are applicable. + # Corresponds to the JSON property `resourceGroupsCount` + # @return [Fixnum] + attr_accessor :resource_groups_count + + # Total count of resources returned by the filter for which any of the specified + # issues are applicable. + # Corresponds to the JSON property `resourcesCount` + # @return [Fixnum] + attr_accessor :resources_count + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @display_name = args[:display_name] if args.key?(:display_name) + @healthy_resource_groups_count = args[:healthy_resource_groups_count] if args.key?(:healthy_resource_groups_count) + @healthy_resources_count = args[:healthy_resources_count] if args.key?(:healthy_resources_count) + @issue_stats = args[:issue_stats] if args.key?(:issue_stats) + @resource_groups_count = args[:resource_groups_count] if args.key?(:resource_groups_count) + @resources_count = args[:resources_count] if args.key?(:resources_count) + end + end + + # IssueStats holds stats for a particular signal category. + class IssueStats + include Google::Apis::Core::Hashable + + # Captures the details of items that have increased or decreased in some bucket + # when compared to some point in history. It is currently used to capture the + # delta of resources that have been added or removed in the fleet as well as to + # capture the resources that have a change in Issue/Signal status. + # Corresponds to the JSON property `deltaDetails` + # @return [Google::Apis::DatabasecenterV1beta::DeltaDetails] + attr_accessor :delta_details + + # Severity of the issue. + # Corresponds to the JSON property `issueSeverity` + # @return [String] + attr_accessor :issue_severity + + # Number of resources having issues of a given type. + # Corresponds to the JSON property `resourceCount` + # @return [Fixnum] + attr_accessor :resource_count + + # Type of signal which is an issue. + # Corresponds to the JSON property `signalType` + # @return [String] + attr_accessor :signal_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @delta_details = args[:delta_details] if args.key?(:delta_details) + @issue_severity = args[:issue_severity] if args.key?(:issue_severity) + @resource_count = args[:resource_count] if args.key?(:resource_count) + @signal_type = args[:signal_type] if args.key?(:signal_type) + end + end + + # Label is a key value pair applied to a resource. + class Label + include Google::Apis::Core::Hashable + + # The key part of the label. + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # The source of the Label. Source is empty if the label is directly attached to + # the resource and not inherited. + # Corresponds to the JSON property `source` + # @return [String] + attr_accessor :source + + # The value part of the label. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @source = args[:source] if args.key?(:source) + @value = args[:value] if args.key?(:value) + end + end + + # lineage information of the affiliated resources This captures source, target + # and process which created the lineage. + class Lineage + include Google::Apis::Core::Hashable + + # Optional. FQN of process which created the lineage i.e. dataplex, datastream + # etc. + # Corresponds to the JSON property `processFqn` + # @return [String] + attr_accessor :process_fqn + + # Optional. Type of process which created the lineage. + # Corresponds to the JSON property `processType` + # @return [String] + attr_accessor :process_type + + # Optional. FQN of source table / column + # Corresponds to the JSON property `sourceFqn` + # @return [String] + attr_accessor :source_fqn + + # Optional. FQN of target table / column + # Corresponds to the JSON property `targetFqn` + # @return [String] + attr_accessor :target_fqn + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @process_fqn = args[:process_fqn] if args.key?(:process_fqn) + @process_type = args[:process_type] if args.key?(:process_type) + @source_fqn = args[:source_fqn] if args.key?(:source_fqn) + @target_fqn = args[:target_fqn] if args.key?(:target_fqn) + end + end + + # MachineConfig describes the configuration of a machine specific to a Database + # Resource. + class MachineConfig + include Google::Apis::Core::Hashable + + # Optional. Baseline slots for BigQuery Reservations. Baseline slots are in + # increments of 50. + # Corresponds to the JSON property `baselineSlotCount` + # @return [Fixnum] + attr_accessor :baseline_slot_count + + # Optional. Max slots for BigQuery Reservations. Max slots are in increments of + # 50. + # Corresponds to the JSON property `maxReservationSlotCount` + # @return [Fixnum] + attr_accessor :max_reservation_slot_count + + # Memory size in bytes. + # Corresponds to the JSON property `memorySizeBytes` + # @return [Fixnum] + attr_accessor :memory_size_bytes + + # Optional. The number of Shards (if applicable). + # Corresponds to the JSON property `shardCount` + # @return [Fixnum] + attr_accessor :shard_count + + # Optional. The number of vCPUs (if applicable). + # Corresponds to the JSON property `vcpuCount` + # @return [Float] + attr_accessor :vcpu_count + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @baseline_slot_count = args[:baseline_slot_count] if args.key?(:baseline_slot_count) + @max_reservation_slot_count = args[:max_reservation_slot_count] if args.key?(:max_reservation_slot_count) + @memory_size_bytes = args[:memory_size_bytes] if args.key?(:memory_size_bytes) + @shard_count = args[:shard_count] if args.key?(:shard_count) + @vcpu_count = args[:vcpu_count] if args.key?(:vcpu_count) + end + end + + # MaintenanceInfo to capture the maintenance details of database resource. + class MaintenanceInfo + include Google::Apis::Core::Hashable + + # Represents a whole or partial calendar date, such as a birthday. The time of + # day and time zone are either specified elsewhere or are insignificant. The + # date is relative to the Gregorian Calendar. This can represent one of the + # following: * A full date, with non-zero year, month, and day values. * A month + # and day, with a zero year (for example, an anniversary). * A year on its own, + # with a zero month and a zero day. * A year and month, with a zero day (for + # example, a credit card expiration date). Related types: * google.type. + # TimeOfDay * google.type.DateTime * google.protobuf.Timestamp + # Corresponds to the JSON property `currentVersionReleaseDate` + # @return [Google::Apis::DatabasecenterV1beta::Date] + attr_accessor :current_version_release_date + + # Optional. List of Deny maintenance period for the database resource. + # Corresponds to the JSON property `denyMaintenanceSchedules` + # @return [Array] + attr_accessor :deny_maintenance_schedules + + # Maintenance window for the database resource. It specifies preferred time and + # day of the week and phase in some cases, when the maintenance can start. + # Corresponds to the JSON property `maintenanceSchedule` + # @return [Google::Apis::DatabasecenterV1beta::ResourceMaintenanceSchedule] + attr_accessor :maintenance_schedule + + # Output only. Current Maintenance version of the database resource. Example: " + # MYSQL_8_0_41.R20250531.01_15" + # Corresponds to the JSON property `maintenanceVersion` + # @return [String] + attr_accessor :maintenance_version + + # Output only. List of possible reasons why the maintenance is not completed. + # This is an optional field and is only populated if there are any reasons for + # failures recorded for the maintenance by DB Center. FAILURE maintenance status + # may not always have a failure reason. + # Corresponds to the JSON property `possibleFailureReasons` + # @return [Array] + attr_accessor :possible_failure_reasons + + # Output only. Previous maintenance version of the database resource. Example: " + # MYSQL_8_0_41.R20250531.01_15". This is available once a minor version + # maintenance is complete on a database resource. + # Corresponds to the JSON property `previousMaintenanceVersion` + # @return [String] + attr_accessor :previous_maintenance_version + + # Output only. Resource maintenance state. This is to capture the current state + # of the maintenance. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # Upcoming maintenance window for the database resource. + # Corresponds to the JSON property `upcomingMaintenance` + # @return [Google::Apis::DatabasecenterV1beta::UpcomingMaintenance] + attr_accessor :upcoming_maintenance + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @current_version_release_date = args[:current_version_release_date] if args.key?(:current_version_release_date) + @deny_maintenance_schedules = args[:deny_maintenance_schedules] if args.key?(:deny_maintenance_schedules) + @maintenance_schedule = args[:maintenance_schedule] if args.key?(:maintenance_schedule) + @maintenance_version = args[:maintenance_version] if args.key?(:maintenance_version) + @possible_failure_reasons = args[:possible_failure_reasons] if args.key?(:possible_failure_reasons) + @previous_maintenance_version = args[:previous_maintenance_version] if args.key?(:previous_maintenance_version) + @state = args[:state] if args.key?(:state) + @upcoming_maintenance = args[:upcoming_maintenance] if args.key?(:upcoming_maintenance) + end + end + + # Info associated with maintenance recommendation. + class MaintenanceRecommendationInfo + include Google::Apis::Core::Hashable + + # Optional. List of recommended maintenance schedules for the database resource. + # Corresponds to the JSON property `resourceMaintenanceSchedules` + # @return [Array] + attr_accessor :resource_maintenance_schedules + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @resource_maintenance_schedules = args[:resource_maintenance_schedules] if args.key?(:resource_maintenance_schedules) + end + end + + # MetricData represents the metric data for a database resource. + class MetricData + include Google::Apis::Core::Hashable + + # The time the metric was observed in the metric source service. + # Corresponds to the JSON property `observationTime` + # @return [String] + attr_accessor :observation_time + + # TypedValue represents the value of the metric based on data type. + # Corresponds to the JSON property `value` + # @return [Google::Apis::DatabasecenterV1beta::TypedValue] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @observation_time = args[:observation_time] if args.key?(:observation_time) + @value = args[:value] if args.key?(:value) + end + end + + # Metrics represents the metrics for a database resource. + class Metrics + include Google::Apis::Core::Hashable + + # MetricData represents the metric data for a database resource. + # Corresponds to the JSON property `currentMemoryUsedBytes` + # @return [Google::Apis::DatabasecenterV1beta::MetricData] + attr_accessor :current_memory_used_bytes + + # MetricData represents the metric data for a database resource. + # Corresponds to the JSON property `currentStorageUsedBytes` + # @return [Google::Apis::DatabasecenterV1beta::MetricData] + attr_accessor :current_storage_used_bytes + + # MetricData represents the metric data for a database resource. + # Corresponds to the JSON property `nodeCount` + # @return [Google::Apis::DatabasecenterV1beta::MetricData] + attr_accessor :node_count + + # MetricData represents the metric data for a database resource. + # Corresponds to the JSON property `p95CpuUtilization` + # @return [Google::Apis::DatabasecenterV1beta::MetricData] + attr_accessor :p95_cpu_utilization + + # MetricData represents the metric data for a database resource. + # Corresponds to the JSON property `p99CpuUtilization` + # @return [Google::Apis::DatabasecenterV1beta::MetricData] + attr_accessor :p99_cpu_utilization + + # MetricData represents the metric data for a database resource. + # Corresponds to the JSON property `peakMemoryUtilization` + # @return [Google::Apis::DatabasecenterV1beta::MetricData] + attr_accessor :peak_memory_utilization + + # MetricData represents the metric data for a database resource. + # Corresponds to the JSON property `peakNumberConnections` + # @return [Google::Apis::DatabasecenterV1beta::MetricData] + attr_accessor :peak_number_connections + + # MetricData represents the metric data for a database resource. + # Corresponds to the JSON property `peakStorageUtilization` + # @return [Google::Apis::DatabasecenterV1beta::MetricData] + attr_accessor :peak_storage_utilization + + # MetricData represents the metric data for a database resource. + # Corresponds to the JSON property `processingUnitCount` + # @return [Google::Apis::DatabasecenterV1beta::MetricData] + attr_accessor :processing_unit_count + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @current_memory_used_bytes = args[:current_memory_used_bytes] if args.key?(:current_memory_used_bytes) + @current_storage_used_bytes = args[:current_storage_used_bytes] if args.key?(:current_storage_used_bytes) + @node_count = args[:node_count] if args.key?(:node_count) + @p95_cpu_utilization = args[:p95_cpu_utilization] if args.key?(:p95_cpu_utilization) + @p99_cpu_utilization = args[:p99_cpu_utilization] if args.key?(:p99_cpu_utilization) + @peak_memory_utilization = args[:peak_memory_utilization] if args.key?(:peak_memory_utilization) + @peak_number_connections = args[:peak_number_connections] if args.key?(:peak_number_connections) + @peak_storage_utilization = args[:peak_storage_utilization] if args.key?(:peak_storage_utilization) + @processing_unit_count = args[:processing_unit_count] if args.key?(:processing_unit_count) + end + end + + # Info associated with outdated minor version. + class OutdatedMinorVersionInfo + include Google::Apis::Core::Hashable + + # Recommended minor version of the underlying database engine. Example values: + # For MySQL, it could be "8.0.35", "5.7.25" etc. For PostgreSQL, it could be "14. + # 4", "15.5" etc. + # Corresponds to the JSON property `recommendedMinorVersion` + # @return [String] + attr_accessor :recommended_minor_version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @recommended_minor_version = args[:recommended_minor_version] if args.key?(:recommended_minor_version) + end + end + + # Product specification for databasecenter resources. + class Product + include Google::Apis::Core::Hashable + + # Optional. The specific engine that the underlying database is running. + # Corresponds to the JSON property `engine` + # @return [String] + attr_accessor :engine + + # Optional. Minor version of the underlying database engine. Example values: For + # MySQL, it could be "8.0.35", "5.7.25" etc. For PostgreSQL, it could be "14.4", + # "15.5" etc. + # Corresponds to the JSON property `minorVersion` + # @return [String] + attr_accessor :minor_version + + # Optional. Type of specific database product. It could be CloudSQL, AlloyDB etc. + # . + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # Optional. Version of the underlying database engine. Example values: For MySQL, + # it could be "8.0", "5.7" etc. For Postgres, it could be "14", "15" etc. + # Corresponds to the JSON property `version` + # @return [String] + attr_accessor :version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @engine = args[:engine] if args.key?(:engine) + @minor_version = args[:minor_version] if args.key?(:minor_version) + @type = args[:type] if args.key?(:type) + @version = args[:version] if args.key?(:version) + end + end + + # QueryDatabaseResourceGroupsRequest is the request to get a list of database + # groups. + class QueryDatabaseResourceGroupsRequest + include Google::Apis::Core::Hashable + + # Optional. The expression to filter resources. The following fields are + # filterable: * full_resource_name * resource_type * container * product.type * + # product.engine * product.version * location * labels * resource_category * + # machine_config.cpu_count * machine_config.memory_size_bytes * machine_config. + # shard_count * resource_name * tags * backupdr_config.backupdr_managed * + # edition The expression is a list of zero or more restrictions combined via + # logical operators `AND` and `OR`. When `AND` and `OR` are both used in the + # expression, parentheses must be appropriately used to group the combinations. + # Example: `location="us-east1"` Example: `container="projects/123" OR container= + # "projects/456"` Example: `(container="projects/123" OR container="projects/456" + # ) AND location="us-east1"` Example: `full_resource_name=~"test"` Example: ` + # full_resource_name=~"test.*master"` + # Corresponds to the JSON property `filter` + # @return [String] + attr_accessor :filter + + # Optional. A field that specifies the sort order of the results. The following + # fields are sortable: * full_resource_name * product.type * product.engine * + # product.version * container * issue_count * machine_config.vcpu_count * + # machine_config.memory_size_bytes * machine_config.shard_count * resource_name * + # issue_severity * signal_type * location * resource_type * instance_type * + # edition * metrics.p99_cpu_utilization * metrics.p95_cpu_utilization * metrics. + # current_storage_used_bytes * metrics.node_count * metrics. + # processing_unit_count * metrics.current_memory_used_bytes * metrics. + # peak_storage_utilization * metrics.peak_number_connections * metrics. + # peak_memory_utilization The default order is ascending. Add "DESC" after the + # field name to indicate descending order. Add "ASC" after the field name to + # indicate ascending order. It only supports a single field at a time. For + # example: `order_by = "full_resource_name"` sorts response in ascending order ` + # order_by = "full_resource_name DESC"` sorts response in descending order ` + # order_by = "issue_count DESC"` sorts response in descending order of count of + # all issues associated with a resource. More explicitly, `order_by = " + # full_resource_name, product"` is not supported. + # Corresponds to the JSON property `orderBy` + # @return [String] + attr_accessor :order_by + + # Optional. If unspecified, at most 50 resource groups will be returned. The + # maximum value is 1000; values above 1000 will be coerced to 1000. + # Corresponds to the JSON property `pageSize` + # @return [Fixnum] + attr_accessor :page_size + + # Optional. A page token, received from a previous ` + # QueryDatabaseResourceGroupsRequest` call. Provide this to retrieve the + # subsequent page. All parameters except page_token should match the parameters + # in the call that provided the page page token. + # Corresponds to the JSON property `pageToken` + # @return [String] + attr_accessor :page_token + + # Required. Parent can be a project, a folder, or an organization. The search is + # limited to the resources within the `scope`. The allowed values are: * + # projects/`PROJECT_ID` (e.g., "projects/foo-bar") * projects/`PROJECT_NUMBER` ( + # e.g., "projects/12345678") * folders/`FOLDER_NUMBER` (e.g., "folders/1234567") + # * organizations/`ORGANIZATION_NUMBER` (e.g., "organizations/123456") + # Corresponds to the JSON property `parent` + # @return [String] + attr_accessor :parent + + # Optional. Filters based on signals. The list will be ORed together and then + # ANDed with the `filters` field above. + # Corresponds to the JSON property `signalFilters` + # @return [Array] + attr_accessor :signal_filters + + # Optional. Groups of signal types that are requested. + # Corresponds to the JSON property `signalTypeGroups` + # @return [Array] + attr_accessor :signal_type_groups + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @filter = args[:filter] if args.key?(:filter) + @order_by = args[:order_by] if args.key?(:order_by) + @page_size = args[:page_size] if args.key?(:page_size) + @page_token = args[:page_token] if args.key?(:page_token) + @parent = args[:parent] if args.key?(:parent) + @signal_filters = args[:signal_filters] if args.key?(:signal_filters) + @signal_type_groups = args[:signal_type_groups] if args.key?(:signal_type_groups) + end + end + + # QueryDatabaseResourceGroupsResponse represents the response message containing + # a list of resource groups. + class QueryDatabaseResourceGroupsResponse + include Google::Apis::Core::Hashable + + # A token that can be sent as `page_token` to retrieve the next page. If this + # field is omitted, there are no subsequent pages. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # List of database resource groups that pass the filter. + # Corresponds to the JSON property `resourceGroups` + # @return [Array] + attr_accessor :resource_groups + + # Output only. The total number of resource groups in the entire list. + # Corresponds to the JSON property `totalSize` + # @return [Fixnum] + attr_accessor :total_size + + # Unordered list. List of unreachable regions from where data could not be + # retrieved. + # Corresponds to the JSON property `unreachable` + # @return [Array] + attr_accessor :unreachable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @resource_groups = args[:resource_groups] if args.key?(:resource_groups) + @total_size = args[:total_size] if args.key?(:total_size) + @unreachable = args[:unreachable] if args.key?(:unreachable) + end + end + + # QueryIssuesRequest is the request to get a list of issues. + class QueryIssuesRequest + include Google::Apis::Core::Hashable + + # Optional. Supported fields are: 'product', `location`, `issue_severity`, 'tags' + # , 'labels', + # Corresponds to the JSON property `filter` + # @return [String] + attr_accessor :filter + + # Optional. Following fields are sortable: SignalType Product Location + # IssueSeverity The default order is ascending. Add "DESC" after the field name + # to indicate descending order. Add "ASC" after the field name to indicate + # ascending order. It only supports a single field at a time. + # Corresponds to the JSON property `orderBy` + # @return [String] + attr_accessor :order_by + + # Optional. If unspecified, at most 50 issues will be returned. The maximum + # value is 1000; values above 1000 will be coerced to 1000. + # Corresponds to the JSON property `pageSize` + # @return [Fixnum] + attr_accessor :page_size + + # Optional. A page token, received from a previous `QueryIssues` call. Provide + # this to retrieve the subsequent page. All parameters except page size should + # match the parameters used in the call that provided the page token. + # Corresponds to the JSON property `pageToken` + # @return [String] + attr_accessor :page_token + + # Required. Parent can be a project, a folder, or an organization. The list is + # limited to the one attached to resources within the `scope` that a user has + # access to. The allowed values are: * projects/`PROJECT_ID` (e.g., "projects/ + # foo-bar") * projects/`PROJECT_NUMBER` (e.g., "projects/12345678") * folders/` + # FOLDER_NUMBER` (e.g., "folders/1234567") * organizations/`ORGANIZATION_NUMBER` + # (e.g., "organizations/123456") + # Corresponds to the JSON property `parent` + # @return [String] + attr_accessor :parent + + # Optional. Filters based on signal and product. The filter list will be ORed + # across pairs and ANDed within a signal and products pair. + # Corresponds to the JSON property `signalProductsFilters` + # @return [Array] + attr_accessor :signal_products_filters + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @filter = args[:filter] if args.key?(:filter) + @order_by = args[:order_by] if args.key?(:order_by) + @page_size = args[:page_size] if args.key?(:page_size) + @page_token = args[:page_token] if args.key?(:page_token) + @parent = args[:parent] if args.key?(:parent) + @signal_products_filters = args[:signal_products_filters] if args.key?(:signal_products_filters) + end + end + + # QueryIssuesResponse is the response containing a list of issues. + class QueryIssuesResponse + include Google::Apis::Core::Hashable + + # A token that can be sent as `page_token` to retrieve the next page. If this + # field is omitted, there are no subsequent pages. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # List of issues and resource details. + # Corresponds to the JSON property `resourceIssues` + # @return [Array] + attr_accessor :resource_issues + + # Unordered list. List of unreachable regions from where data could not be + # retrieved. + # Corresponds to the JSON property `unreachable` + # @return [Array] + attr_accessor :unreachable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @resource_issues = args[:resource_issues] if args.key?(:resource_issues) + @unreachable = args[:unreachable] if args.key?(:unreachable) + end + end + + # QueryMetrics contains the metrics related to the query execution. + class QueryMetrics + include Google::Apis::Core::Hashable + + # The average execution period of the query across all runs. + # Corresponds to the JSON property `avgCpuTime` + # @return [String] + attr_accessor :avg_cpu_time + + # The number of times the query was executed. + # Corresponds to the JSON property `executionCount` + # @return [Fixnum] + attr_accessor :execution_count + + # The window over which the metrics are aggregated. + # Corresponds to the JSON property `metricsWindow` + # @return [String] + attr_accessor :metrics_window + + # The average number of rows processed by the query across all runs. + # Corresponds to the JSON property `rowsProcessed` + # @return [Fixnum] + attr_accessor :rows_processed + + # The total CPU time consumed by the query across all runs. + # Corresponds to the JSON property `totalCpuTime` + # @return [String] + attr_accessor :total_cpu_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @avg_cpu_time = args[:avg_cpu_time] if args.key?(:avg_cpu_time) + @execution_count = args[:execution_count] if args.key?(:execution_count) + @metrics_window = args[:metrics_window] if args.key?(:metrics_window) + @rows_processed = args[:rows_processed] if args.key?(:rows_processed) + @total_cpu_time = args[:total_cpu_time] if args.key?(:total_cpu_time) + end + end + + # QueryProductsResponse represents the response containing a list of products. + class QueryProductsResponse + include Google::Apis::Core::Hashable + + # A token that can be sent as `page_token` to retrieve the next page. If this + # field is omitted, there are no subsequent pages + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # List of database products returned. + # Corresponds to the JSON property `products` + # @return [Array] + attr_accessor :products + + # Unordered list. List of unreachable regions from where data could not be + # retrieved. + # Corresponds to the JSON property `unreachable` + # @return [Array] + attr_accessor :unreachable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @products = args[:products] if args.key?(:products) + @unreachable = args[:unreachable] if args.key?(:unreachable) + end + end + + # QueryStats contains the stats for a particular combination of query_hash, + # query_string and resource_type. + class QueryStats + include Google::Apis::Core::Hashable + + # Metadata about inefficient query signal info for a database resource. + # Corresponds to the JSON property `inefficientQueryInfo` + # @return [Google::Apis::DatabasecenterV1beta::InefficientQueryInfo] + attr_accessor :inefficient_query_info + + # The query string is normalized query without any PII data. + # Corresponds to the JSON property `normalizedQuery` + # @return [String] + attr_accessor :normalized_query + + # The query hash of the query. + # Corresponds to the JSON property `queryHash` + # @return [String] + attr_accessor :query_hash + + # QueryMetrics contains the metrics related to the query execution. + # Corresponds to the JSON property `queryMetrics` + # @return [Google::Apis::DatabasecenterV1beta::QueryMetrics] + attr_accessor :query_metrics + + # The resource ids for which the query stats are collected. + # Corresponds to the JSON property `resourceIds` + # @return [Array] + attr_accessor :resource_ids + + # The type of the resource. sqladmin.googleapis.com/Instance alloydb.googleapis. + # com/Cluster alloydb.googleapis.com/Instance + # Corresponds to the JSON property `resourceType` + # @return [String] + attr_accessor :resource_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @inefficient_query_info = args[:inefficient_query_info] if args.key?(:inefficient_query_info) + @normalized_query = args[:normalized_query] if args.key?(:normalized_query) + @query_hash = args[:query_hash] if args.key?(:query_hash) + @query_metrics = args[:query_metrics] if args.key?(:query_metrics) + @resource_ids = args[:resource_ids] if args.key?(:resource_ids) + @resource_type = args[:resource_type] if args.key?(:resource_type) + end + end + + # QueryStatsInfo contains the aggregated and detailed query stats for a + # particular combination of relevant query stats for queries having same + # normalized query. + class QueryStatsInfo + include Google::Apis::Core::Hashable + + # QueryStats contains the stats for a particular combination of query_hash, + # query_string and resource_type. + # Corresponds to the JSON property `aggregatedQueryStats` + # @return [Google::Apis::DatabasecenterV1beta::QueryStats] + attr_accessor :aggregated_query_stats + + # List of query stats for the resources in the group. This stats is stats at + # resource level for the resources having same normalized query. + # Corresponds to the JSON property `queryStats` + # @return [Array] + attr_accessor :query_stats + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @aggregated_query_stats = args[:aggregated_query_stats] if args.key?(:aggregated_query_stats) + @query_stats = args[:query_stats] if args.key?(:query_stats) + end + end + + # Info associated with recommendation. + class RecommendationInfo + include Google::Apis::Core::Hashable + + # Name of recommendation. Examples: organizations/1234/locations/us-central1/ + # recommenders/google.cloudsql.instance.PerformanceRecommender/recommendations/ + # 9876 + # Corresponds to the JSON property `recommender` + # @return [String] + attr_accessor :recommender + + # ID of recommender. Examples: "google.cloudsql.instance.PerformanceRecommender" + # Corresponds to the JSON property `recommenderId` + # @return [String] + attr_accessor :recommender_id + + # Contains an identifier for a subtype of recommendations produced for the same + # recommender. Subtype is a function of content and impact, meaning a new + # subtype might be added when significant changes to `content` or ` + # primary_impact.category` are introduced. See the Recommenders section to see a + # list of subtypes for a given Recommender. Examples: For recommender = "google. + # cloudsql.instance.PerformanceRecommender", recommender_subtype can be " + # MYSQL_HIGH_NUMBER_OF_OPEN_TABLES_BEST_PRACTICE"/" + # POSTGRES_HIGH_TRANSACTION_ID_UTILIZATION_BEST_PRACTICE" + # Corresponds to the JSON property `recommenderSubtype` + # @return [String] + attr_accessor :recommender_subtype + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @recommender = args[:recommender] if args.key?(:recommender) + @recommender_id = args[:recommender_id] if args.key?(:recommender_id) + @recommender_subtype = args[:recommender_subtype] if args.key?(:recommender_subtype) + end + end + + # Compliances associated with signals. + class RegulatoryStandard + include Google::Apis::Core::Hashable + + # Name of industry compliance standards, such as such as CIS, PCI, and OWASP. + # Corresponds to the JSON property `standard` + # @return [String] + attr_accessor :standard + + # Version of the standard or benchmark, for example, 1.1. + # Corresponds to the JSON property `version` + # @return [String] + attr_accessor :version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @standard = args[:standard] if args.key?(:standard) + @version = args[:version] if args.key?(:version) + end + end + + # Capture the resource details for resources that are included in the delta + # counts. + class ResourceDetails + include Google::Apis::Core::Hashable + + # Specifies where the resource is created. For Google Cloud resources, it is the + # full name of the project. + # Corresponds to the JSON property `container` + # @return [String] + attr_accessor :container + + # Full resource name of the resource. + # Corresponds to the JSON property `fullResourceName` + # @return [String] + attr_accessor :full_resource_name + + # Location of the resource. + # Corresponds to the JSON property `location` + # @return [String] + attr_accessor :location + + # Product specification for databasecenter resources. + # Corresponds to the JSON property `product` + # @return [Google::Apis::DatabasecenterV1beta::Product] + attr_accessor :product + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @container = args[:container] if args.key?(:container) + @full_resource_name = args[:full_resource_name] if args.key?(:full_resource_name) + @location = args[:location] if args.key?(:location) + @product = args[:product] if args.key?(:product) + end + end + + # ResourceId contains the identifier for a database resource, including the full + # resource name, resource type, and product. + class ResourceId + include Google::Apis::Core::Hashable + + # The full resource name of the resource. + # Corresponds to the JSON property `fullResourceName` + # @return [String] + attr_accessor :full_resource_name + + # Product specification for databasecenter resources. + # Corresponds to the JSON property `product` + # @return [Google::Apis::DatabasecenterV1beta::Product] + attr_accessor :product + + # The type of the resource. sqladmin.googleapis.com/Instance alloydb.googleapis. + # com/Cluster alloydb.googleapis.com/Instance + # Corresponds to the JSON property `resourceType` + # @return [String] + attr_accessor :resource_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @full_resource_name = args[:full_resource_name] if args.key?(:full_resource_name) + @product = args[:product] if args.key?(:product) + @resource_type = args[:resource_type] if args.key?(:resource_type) + end + end + + # Deny maintenance period for the database resource. It specifies the time range + # during which the maintenance cannot start. This is configured by the customer. + class ResourceMaintenanceDenySchedule + include Google::Apis::Core::Hashable + + # Represents a whole or partial calendar date, such as a birthday. The time of + # day and time zone are either specified elsewhere or are insignificant. The + # date is relative to the Gregorian Calendar. This can represent one of the + # following: * A full date, with non-zero year, month, and day values. * A month + # and day, with a zero year (for example, an anniversary). * A year on its own, + # with a zero month and a zero day. * A year and month, with a zero day (for + # example, a credit card expiration date). Related types: * google.type. + # TimeOfDay * google.type.DateTime * google.protobuf.Timestamp + # Corresponds to the JSON property `endDate` + # @return [Google::Apis::DatabasecenterV1beta::Date] + attr_accessor :end_date + + # Represents a whole or partial calendar date, such as a birthday. The time of + # day and time zone are either specified elsewhere or are insignificant. The + # date is relative to the Gregorian Calendar. This can represent one of the + # following: * A full date, with non-zero year, month, and day values. * A month + # and day, with a zero year (for example, an anniversary). * A year on its own, + # with a zero month and a zero day. * A year and month, with a zero day (for + # example, a credit card expiration date). Related types: * google.type. + # TimeOfDay * google.type.DateTime * google.protobuf.Timestamp + # Corresponds to the JSON property `startDate` + # @return [Google::Apis::DatabasecenterV1beta::Date] + attr_accessor :start_date + + # Represents a time of day. The date and time zone are either not significant or + # are specified elsewhere. An API may choose to allow leap seconds. Related + # types are google.type.Date and `google.protobuf.Timestamp`. + # Corresponds to the JSON property `time` + # @return [Google::Apis::DatabasecenterV1beta::TimeOfDay] + attr_accessor :time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @end_date = args[:end_date] if args.key?(:end_date) + @start_date = args[:start_date] if args.key?(:start_date) + @time = args[:time] if args.key?(:time) + end + end + + # Maintenance window for the database resource. It specifies preferred time and + # day of the week and phase in some cases, when the maintenance can start. + class ResourceMaintenanceSchedule + include Google::Apis::Core::Hashable + + # Optional. Preferred day of the week for maintenance, e.g. MONDAY, TUESDAY, etc. + # Corresponds to the JSON property `day` + # @return [String] + attr_accessor :day + + # Optional. Phase of the maintenance window. This is to capture order of + # maintenance. For example, for Cloud SQL resources, this can be used to capture + # if the maintenance window is in Week1, Week2, Week5, etc. Non production + # resources are usually part of early phase. For more details, refer to Cloud + # SQL resources - https://cloud.google.com/sql/docs/mysql/maintenance + # Corresponds to the JSON property `phase` + # @return [String] + attr_accessor :phase + + # Represents a time of day. The date and time zone are either not significant or + # are specified elsewhere. An API may choose to allow leap seconds. Related + # types are google.type.Date and `google.protobuf.Timestamp`. + # Corresponds to the JSON property `startTime` + # @return [Google::Apis::DatabasecenterV1beta::TimeOfDay] + attr_accessor :start_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @day = args[:day] if args.key?(:day) + @phase = args[:phase] if args.key?(:phase) + @start_time = args[:start_time] if args.key?(:start_time) + end + end + + # Resource suspension info for a database resource. + class ResourceSuspensionInfo + include Google::Apis::Core::Hashable + + # Is resource suspended. + # Corresponds to the JSON property `resourceSuspended` + # @return [Boolean] + attr_accessor :resource_suspended + alias_method :resource_suspended?, :resource_suspended + + # Suspension reason for the resource. + # Corresponds to the JSON property `suspensionReason` + # @return [String] + attr_accessor :suspension_reason + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @resource_suspended = args[:resource_suspended] if args.key?(:resource_suspended) + @suspension_reason = args[:suspension_reason] if args.key?(:suspension_reason) + end + end + + # Metadata about backup retention settings for a database resource. + class RetentionSettingsInfo + include Google::Apis::Core::Hashable + + # Duration based retention period i.e. 172800 seconds (2 days) + # Corresponds to the JSON property `durationBasedRetention` + # @return [String] + attr_accessor :duration_based_retention + + # Number of backups that will be retained. + # Corresponds to the JSON property `quantityBasedRetention` + # @return [Fixnum] + attr_accessor :quantity_based_retention + + # Sub resource details For Spanner/Bigtable instance certain data protection + # settings are at sub resource level like database/table. This message is used + # to capture such sub resource details. + # Corresponds to the JSON property `subResource` + # @return [Google::Apis::DatabasecenterV1beta::SubResource] + attr_accessor :sub_resource + + # Timestamp based retention period i.e. till 2024-05-01T00:00:00Z + # Corresponds to the JSON property `timestampBasedRetentionTime` + # @return [String] + attr_accessor :timestamp_based_retention_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @duration_based_retention = args[:duration_based_retention] if args.key?(:duration_based_retention) + @quantity_based_retention = args[:quantity_based_retention] if args.key?(:quantity_based_retention) + @sub_resource = args[:sub_resource] if args.key?(:sub_resource) + @timestamp_based_retention_time = args[:timestamp_based_retention_time] if args.key?(:timestamp_based_retention_time) + end + end + + # Info associated with SCC signals. + class SccInfo + include Google::Apis::Core::Hashable + + # Name by which SCC calls this signal. + # Corresponds to the JSON property `category` + # @return [String] + attr_accessor :category + + # External URI which points to a SCC page associated with the signal. + # Corresponds to the JSON property `externalUri` + # @return [String] + attr_accessor :external_uri + + # Compliances that are associated with the signal. + # Corresponds to the JSON property `regulatoryStandards` + # @return [Array] + attr_accessor :regulatory_standards + + # Name of the signal. + # Corresponds to the JSON property `signal` + # @return [String] + attr_accessor :signal + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @category = args[:category] if args.key?(:category) + @external_uri = args[:external_uri] if args.key?(:external_uri) + @regulatory_standards = args[:regulatory_standards] if args.key?(:regulatory_standards) + @signal = args[:signal] if args.key?(:signal) + end + end + + # Represents a signal. + class Signal + include Google::Apis::Core::Hashable + + # Additional information related to the signal. In the case of composite signals, + # this field encapsulates details associated with granular signals, having a + # signal status of "ISSUE"; signals with a status of "OK" are not included. For + # granular signals, it encompasses information relevant to the signal, + # regardless of the signal status. + # Corresponds to the JSON property `additionalDetails` + # @return [Array] + attr_accessor :additional_details + + # Timestamp when the issue was created (when signal status is ISSUE). + # Corresponds to the JSON property `issueCreateTime` + # @return [String] + attr_accessor :issue_create_time + + # Severity of the issue. + # Corresponds to the JSON property `issueSeverity` + # @return [String] + attr_accessor :issue_severity + + # Status of the signal. + # Corresponds to the JSON property `signalStatus` + # @return [String] + attr_accessor :signal_status + + # Type of the signal. + # Corresponds to the JSON property `signalType` + # @return [String] + attr_accessor :signal_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @additional_details = args[:additional_details] if args.key?(:additional_details) + @issue_create_time = args[:issue_create_time] if args.key?(:issue_create_time) + @issue_severity = args[:issue_severity] if args.key?(:issue_severity) + @signal_status = args[:signal_status] if args.key?(:signal_status) + @signal_type = args[:signal_type] if args.key?(:signal_type) + end + end + + # A filter for Signals. If signal_type is left unset, all signals should be + # returned. For example, the following filter returns all issues. signal_filter: + # ` signal_status: SIGNAL_STATUS_ISSUE; ` Another example, the following filter + # returns issues of the given type: signal_filter: ` type: + # SIGNAL_TYPE_NO_PROMOTABLE_REPLICA signal_status: ISSUE ` If signal_status is + # left unset or set to SIGNAL_STATE_UNSPECIFIED, an error should be returned. + class SignalFilter + include Google::Apis::Core::Hashable + + # Optional. Represents the status of the Signal for which the filter is for. + # Corresponds to the JSON property `signalStatus` + # @return [String] + attr_accessor :signal_status + + # Optional. Represents the type of the Signal for which the filter is for. + # Corresponds to the JSON property `signalType` + # @return [String] + attr_accessor :signal_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @signal_status = args[:signal_status] if args.key?(:signal_status) + @signal_type = args[:signal_type] if args.key?(:signal_type) + end + end + + # A group of signals and their counts. + class SignalGroup + include Google::Apis::Core::Hashable + + # Title of a signal group corresponding to the request. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # When applied to a DatabaseResource represents count of issues associated with + # the resource. A signal is an issue when its SignalStatus field is set to + # SIGNAL_STATUS_ISSUE. + # Corresponds to the JSON property `issueCount` + # @return [Fixnum] + attr_accessor :issue_count + + # List of signals present in the group and associated with the resource. Only + # applies to a DatabaseResource. + # Corresponds to the JSON property `signals` + # @return [Array] + attr_accessor :signals + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @display_name = args[:display_name] if args.key?(:display_name) + @issue_count = args[:issue_count] if args.key?(:issue_count) + @signals = args[:signals] if args.key?(:signals) + end + end + + # SignalProductsFilters represents a signal and list of supported products. + class SignalProductsFilters + include Google::Apis::Core::Hashable + + # Optional. Product type of the resource. The version of the product will be + # ignored in filtering. + # Corresponds to the JSON property `products` + # @return [Array] + attr_accessor :products + + # Optional. The type of signal. + # Corresponds to the JSON property `signalType` + # @return [String] + attr_accessor :signal_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @products = args[:products] if args.key?(:products) + @signal_type = args[:signal_type] if args.key?(:signal_type) + end + end + + # A group of signal types that specifies what the user is interested in. Used by + # QueryDatabaseResourceGroups API. Example: signal_type_group ` name = " + # AVAILABILITY" types = [SIGNAL_TYPE_NO_PROMOTABLE_REPLICA] ` + class SignalTypeGroup + include Google::Apis::Core::Hashable + + # Required. The display name of a signal group. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # Optional. List of signal types present in the group. + # Corresponds to the JSON property `signalTypes` + # @return [Array] + attr_accessor :signal_types + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @display_name = args[:display_name] if args.key?(:display_name) + @signal_types = args[:signal_types] if args.key?(:signal_types) + end + end + + # Sub resource details For Spanner/Bigtable instance certain data protection + # settings are at sub resource level like database/table. This message is used + # to capture such sub resource details. + class SubResource + include Google::Apis::Core::Hashable + + # Specifies where the resource is created. For Google Cloud resources, it is the + # full name of the project. + # Corresponds to the JSON property `container` + # @return [String] + attr_accessor :container + + # Optional. Resource name associated with the sub resource where backup settings + # are configured. E.g."//spanner.googleapis.com/projects/project1/instances/ + # inst1/databases/db1" for Spanner where backup retention is configured on + # database within an instance OPTIONAL + # Corresponds to the JSON property `fullResourceName` + # @return [String] + attr_accessor :full_resource_name + + # Product specification for databasecenter resources. + # Corresponds to the JSON property `product` + # @return [Google::Apis::DatabasecenterV1beta::Product] + attr_accessor :product + + # Optional. Resource type associated with the sub resource where backup settings + # are configured. E.g. "spanner.googleapis.com/Database" for Spanner where + # backup retention is configured on database within an instance OPTIONAL + # Corresponds to the JSON property `resourceType` + # @return [String] + attr_accessor :resource_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @container = args[:container] if args.key?(:container) + @full_resource_name = args[:full_resource_name] if args.key?(:full_resource_name) + @product = args[:product] if args.key?(:product) + @resource_type = args[:resource_type] if args.key?(:resource_type) + end + end + + # Tag is a key value pair attached to a resource. + class Tag + include Google::Apis::Core::Hashable + + # Indicates the inheritance status of a tag value attached to the given resource. + # If the tag value is inherited from one of the resource's ancestors, inherited + # will be true. If false, then the tag value is directly attached to the + # resource. + # Corresponds to the JSON property `inherited` + # @return [Boolean] + attr_accessor :inherited + alias_method :inherited?, :inherited + + # + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # The source of the tag. According to https://cloud.google.com/resource-manager/ + # docs/tags/tags-overview#tags_and_labels, tags can be created only at the + # project or organization level. Tags can be inherited from different project as + # well not just the current project where the database resource is present. + # Format: "projects/`PROJECT_ID`", "projects/`PROJECT_NUMBER`", "organizations/` + # ORGANIZATION_ID`" + # Corresponds to the JSON property `source` + # @return [String] + attr_accessor :source + + # The value part of the tag. + # Corresponds to the JSON property `value` + # @return [String] + attr_accessor :value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @inherited = args[:inherited] if args.key?(:inherited) + @key = args[:key] if args.key?(:key) + @source = args[:source] if args.key?(:source) + @value = args[:value] if args.key?(:value) + end + end + + # Represents a time of day. The date and time zone are either not significant or + # are specified elsewhere. An API may choose to allow leap seconds. Related + # types are google.type.Date and `google.protobuf.Timestamp`. + class TimeOfDay + include Google::Apis::Core::Hashable + + # Hours of a day in 24 hour format. Must be greater than or equal to 0 and + # typically must be less than or equal to 23. An API may choose to allow the + # value "24:00:00" for scenarios like business closing time. + # Corresponds to the JSON property `hours` + # @return [Fixnum] + attr_accessor :hours + + # Minutes of an hour. Must be greater than or equal to 0 and less than or equal + # to 59. + # Corresponds to the JSON property `minutes` + # @return [Fixnum] + attr_accessor :minutes + + # Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and + # less than or equal to 999,999,999. + # Corresponds to the JSON property `nanos` + # @return [Fixnum] + attr_accessor :nanos + + # Seconds of a minute. Must be greater than or equal to 0 and typically must be + # less than or equal to 59. An API may allow the value 60 if it allows leap- + # seconds. + # Corresponds to the JSON property `seconds` + # @return [Fixnum] + attr_accessor :seconds + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @hours = args[:hours] if args.key?(:hours) + @minutes = args[:minutes] if args.key?(:minutes) + @nanos = args[:nanos] if args.key?(:nanos) + @seconds = args[:seconds] if args.key?(:seconds) + end + end + + # TypedValue represents the value of the metric based on data type. + class TypedValue + include Google::Apis::Core::Hashable + + # The value of the metric as double. + # Corresponds to the JSON property `doubleValue` + # @return [Float] + attr_accessor :double_value + + # The value of the metric as int. + # Corresponds to the JSON property `int64Value` + # @return [Fixnum] + attr_accessor :int64_value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @double_value = args[:double_value] if args.key?(:double_value) + @int64_value = args[:int64_value] if args.key?(:int64_value) + end + end + + # Upcoming maintenance window for the database resource. + class UpcomingMaintenance + include Google::Apis::Core::Hashable + + # Output only. End time of the upcoming maintenance. This is only populated for + # an engine, if end time is public for the engine. + # Corresponds to the JSON property `endTime` + # @return [String] + attr_accessor :end_time + + # Output only. Start time of the upcoming maintenance. Start time is always + # populated when an upcoming maintenance is scheduled. + # Corresponds to the JSON property `startTime` + # @return [String] + attr_accessor :start_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @end_time = args[:end_time] if args.key?(:end_time) + @start_time = args[:start_time] if args.key?(:start_time) + end + end + end + end +end diff --git a/generated/google-apis-databasecenter_v1beta/lib/google/apis/databasecenter_v1beta/gem_version.rb b/generated/google-apis-databasecenter_v1beta/lib/google/apis/databasecenter_v1beta/gem_version.rb new file mode 100644 index 00000000000..613534cc5df --- /dev/null +++ b/generated/google-apis-databasecenter_v1beta/lib/google/apis/databasecenter_v1beta/gem_version.rb @@ -0,0 +1,28 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +module Google + module Apis + module DatabasecenterV1beta + # Version of the google-apis-databasecenter_v1beta gem + GEM_VERSION = "0.1.0" + + # Version of the code generator used to generate this client + GENERATOR_VERSION = "0.19.0" + + # Revision of the discovery document this client was generated from + REVISION = "20260612" + end + end +end diff --git a/generated/google-apis-databasecenter_v1beta/lib/google/apis/databasecenter_v1beta/representations.rb b/generated/google-apis-databasecenter_v1beta/lib/google/apis/databasecenter_v1beta/representations.rb new file mode 100644 index 00000000000..3b9aa96b7a1 --- /dev/null +++ b/generated/google-apis-databasecenter_v1beta/lib/google/apis/databasecenter_v1beta/representations.rb @@ -0,0 +1,1045 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module DatabasecenterV1beta + + class AdditionalDetail + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Affiliation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AggregateFleetResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AggregateFleetRow + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AggregateIssueStatsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AggregateIssueStatsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AggregateQueryStatsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AggregateQueryStatsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AutomatedBackupPolicyInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class BackupDrConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class BackupRunInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DatabaseResource + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DatabaseResourceGroup + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DatabaseResourceIssue + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Date + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DeletionProtectionInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DeltaDetails + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Dimension + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class InefficientQueryInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class IssueCount + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class IssueGroupStats + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class IssueStats + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Label + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Lineage + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class MachineConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class MaintenanceInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class MaintenanceRecommendationInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class MetricData + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Metrics + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OutdatedMinorVersionInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Product + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class QueryDatabaseResourceGroupsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class QueryDatabaseResourceGroupsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class QueryIssuesRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class QueryIssuesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class QueryMetrics + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class QueryProductsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class QueryStats + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class QueryStatsInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RecommendationInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RegulatoryStandard + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ResourceDetails + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ResourceId + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ResourceMaintenanceDenySchedule + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ResourceMaintenanceSchedule + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ResourceSuspensionInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RetentionSettingsInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SccInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Signal + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SignalFilter + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SignalGroup + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SignalProductsFilters + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SignalTypeGroup + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class SubResource + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Tag + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TimeOfDay + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TypedValue + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class UpcomingMaintenance + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AdditionalDetail + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :automated_backup_policy_info, as: 'automatedBackupPolicyInfo', class: Google::Apis::DatabasecenterV1beta::AutomatedBackupPolicyInfo, decorator: Google::Apis::DatabasecenterV1beta::AutomatedBackupPolicyInfo::Representation + + property :backup_run_info, as: 'backupRunInfo', class: Google::Apis::DatabasecenterV1beta::BackupRunInfo, decorator: Google::Apis::DatabasecenterV1beta::BackupRunInfo::Representation + + property :deletion_protection_info, as: 'deletionProtectionInfo', class: Google::Apis::DatabasecenterV1beta::DeletionProtectionInfo, decorator: Google::Apis::DatabasecenterV1beta::DeletionProtectionInfo::Representation + + property :inefficient_query_info, as: 'inefficientQueryInfo', class: Google::Apis::DatabasecenterV1beta::InefficientQueryInfo, decorator: Google::Apis::DatabasecenterV1beta::InefficientQueryInfo::Representation + + property :maintenance_recommendation_info, as: 'maintenanceRecommendationInfo', class: Google::Apis::DatabasecenterV1beta::MaintenanceRecommendationInfo, decorator: Google::Apis::DatabasecenterV1beta::MaintenanceRecommendationInfo::Representation + + property :outdated_minor_version_info, as: 'outdatedMinorVersionInfo', class: Google::Apis::DatabasecenterV1beta::OutdatedMinorVersionInfo, decorator: Google::Apis::DatabasecenterV1beta::OutdatedMinorVersionInfo::Representation + + property :recommendation_info, as: 'recommendationInfo', class: Google::Apis::DatabasecenterV1beta::RecommendationInfo, decorator: Google::Apis::DatabasecenterV1beta::RecommendationInfo::Representation + + property :resource_suspension_info, as: 'resourceSuspensionInfo', class: Google::Apis::DatabasecenterV1beta::ResourceSuspensionInfo, decorator: Google::Apis::DatabasecenterV1beta::ResourceSuspensionInfo::Representation + + property :scc_info, as: 'sccInfo', class: Google::Apis::DatabasecenterV1beta::SccInfo, decorator: Google::Apis::DatabasecenterV1beta::SccInfo::Representation + + property :short_backup_retention_info, as: 'shortBackupRetentionInfo', class: Google::Apis::DatabasecenterV1beta::RetentionSettingsInfo, decorator: Google::Apis::DatabasecenterV1beta::RetentionSettingsInfo::Representation + + property :signal_event_time, as: 'signalEventTime' + property :signal_source, as: 'signalSource' + property :signal_type, as: 'signalType' + end + end + + class Affiliation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :full_resource_name, as: 'fullResourceName' + collection :lineages, as: 'lineages', class: Google::Apis::DatabasecenterV1beta::Lineage, decorator: Google::Apis::DatabasecenterV1beta::Lineage::Representation + + property :resource_id, as: 'resourceId' + end + end + + class AggregateFleetResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + property :resource_groups_total_count, as: 'resourceGroupsTotalCount' + property :resource_total_count, as: 'resourceTotalCount' + collection :rows, as: 'rows', class: Google::Apis::DatabasecenterV1beta::AggregateFleetRow, decorator: Google::Apis::DatabasecenterV1beta::AggregateFleetRow::Representation + + property :total_size, :numeric_string => true, as: 'totalSize' + collection :unreachable, as: 'unreachable' + end + end + + class AggregateFleetRow + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :delta_details, as: 'deltaDetails', class: Google::Apis::DatabasecenterV1beta::DeltaDetails, decorator: Google::Apis::DatabasecenterV1beta::DeltaDetails::Representation + + collection :dimension, as: 'dimension', class: Google::Apis::DatabasecenterV1beta::Dimension, decorator: Google::Apis::DatabasecenterV1beta::Dimension::Representation + + property :resource_groups_count, as: 'resourceGroupsCount' + property :resources_count, as: 'resourcesCount' + end + end + + class AggregateIssueStatsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :baseline_date, as: 'baselineDate', class: Google::Apis::DatabasecenterV1beta::Date, decorator: Google::Apis::DatabasecenterV1beta::Date::Representation + + property :filter, as: 'filter' + property :parent, as: 'parent' + collection :signal_type_groups, as: 'signalTypeGroups', class: Google::Apis::DatabasecenterV1beta::SignalTypeGroup, decorator: Google::Apis::DatabasecenterV1beta::SignalTypeGroup::Representation + + end + end + + class AggregateIssueStatsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :issue_group_stats, as: 'issueGroupStats', class: Google::Apis::DatabasecenterV1beta::IssueGroupStats, decorator: Google::Apis::DatabasecenterV1beta::IssueGroupStats::Representation + + property :total_resource_groups_count, as: 'totalResourceGroupsCount' + property :total_resources_count, as: 'totalResourcesCount' + collection :unreachable, as: 'unreachable' + end + end + + class AggregateQueryStatsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :filter, as: 'filter' + property :order_by, as: 'orderBy' + property :page_size, as: 'pageSize' + property :page_token, as: 'pageToken' + end + end + + class AggregateQueryStatsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :query_stats, as: 'queryStats', class: Google::Apis::DatabasecenterV1beta::QueryStatsInfo, decorator: Google::Apis::DatabasecenterV1beta::QueryStatsInfo::Representation + + collection :unreachable, as: 'unreachable' + end + end + + class AutomatedBackupPolicyInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :is_enabled, as: 'isEnabled' + property :sub_resource, as: 'subResource', class: Google::Apis::DatabasecenterV1beta::SubResource, decorator: Google::Apis::DatabasecenterV1beta::SubResource::Representation + + end + end + + class BackupDrConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :backupdr_managed, as: 'backupdrManaged' + end + end + + class BackupRunInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :end_time, as: 'endTime' + property :error_message, as: 'errorMessage' + property :operation_error_type, as: 'operationErrorType' + property :start_time, as: 'startTime' + property :state, as: 'state' + property :sub_resource, as: 'subResource', class: Google::Apis::DatabasecenterV1beta::SubResource, decorator: Google::Apis::DatabasecenterV1beta::SubResource::Representation + + end + end + + class DatabaseResource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :affiliations, as: 'affiliations', class: Google::Apis::DatabasecenterV1beta::Affiliation, decorator: Google::Apis::DatabasecenterV1beta::Affiliation::Representation + + property :backupdr_config, as: 'backupdrConfig', class: Google::Apis::DatabasecenterV1beta::BackupDrConfig, decorator: Google::Apis::DatabasecenterV1beta::BackupDrConfig::Representation + + collection :child_resources, as: 'childResources', class: Google::Apis::DatabasecenterV1beta::DatabaseResource, decorator: Google::Apis::DatabasecenterV1beta::DatabaseResource::Representation + + property :container, as: 'container' + property :edition, as: 'edition' + property :full_resource_name, as: 'fullResourceName' + collection :labels, as: 'labels', class: Google::Apis::DatabasecenterV1beta::Label, decorator: Google::Apis::DatabasecenterV1beta::Label::Representation + + property :location, as: 'location' + property :machine_config, as: 'machineConfig', class: Google::Apis::DatabasecenterV1beta::MachineConfig, decorator: Google::Apis::DatabasecenterV1beta::MachineConfig::Representation + + property :maintenance_info, as: 'maintenanceInfo', class: Google::Apis::DatabasecenterV1beta::MaintenanceInfo, decorator: Google::Apis::DatabasecenterV1beta::MaintenanceInfo::Representation + + property :metrics, as: 'metrics', class: Google::Apis::DatabasecenterV1beta::Metrics, decorator: Google::Apis::DatabasecenterV1beta::Metrics::Representation + + property :product, as: 'product', class: Google::Apis::DatabasecenterV1beta::Product, decorator: Google::Apis::DatabasecenterV1beta::Product::Representation + + property :resource_category, as: 'resourceCategory' + property :resource_name, as: 'resourceName' + property :resource_type, as: 'resourceType' + collection :signal_groups, as: 'signalGroups', class: Google::Apis::DatabasecenterV1beta::SignalGroup, decorator: Google::Apis::DatabasecenterV1beta::SignalGroup::Representation + + property :sub_resource_type, as: 'subResourceType' + collection :tags, as: 'tags', class: Google::Apis::DatabasecenterV1beta::Tag, decorator: Google::Apis::DatabasecenterV1beta::Tag::Representation + + end + end + + class DatabaseResourceGroup + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :root_resources, as: 'rootResources', class: Google::Apis::DatabasecenterV1beta::DatabaseResource, decorator: Google::Apis::DatabasecenterV1beta::DatabaseResource::Representation + + collection :signal_groups, as: 'signalGroups', class: Google::Apis::DatabasecenterV1beta::IssueCount, decorator: Google::Apis::DatabasecenterV1beta::IssueCount::Representation + + end + end + + class DatabaseResourceIssue + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :resource, as: 'resource', class: Google::Apis::DatabasecenterV1beta::DatabaseResource, decorator: Google::Apis::DatabasecenterV1beta::DatabaseResource::Representation + + property :signal, as: 'signal', class: Google::Apis::DatabasecenterV1beta::Signal, decorator: Google::Apis::DatabasecenterV1beta::Signal::Representation + + end + end + + class Date + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :day, as: 'day' + property :month, as: 'month' + property :year, as: 'year' + end + end + + class DeletionProtectionInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :deletion_protection_enabled, as: 'deletionProtectionEnabled' + property :sub_resource, as: 'subResource', class: Google::Apis::DatabasecenterV1beta::SubResource, decorator: Google::Apis::DatabasecenterV1beta::SubResource::Representation + + end + end + + class DeltaDetails + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :decreased_resources, as: 'decreasedResources', class: Google::Apis::DatabasecenterV1beta::ResourceDetails, decorator: Google::Apis::DatabasecenterV1beta::ResourceDetails::Representation + + collection :increased_resources, as: 'increasedResources', class: Google::Apis::DatabasecenterV1beta::ResourceDetails, decorator: Google::Apis::DatabasecenterV1beta::ResourceDetails::Representation + + end + end + + class Dimension + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :container, as: 'container' + property :edition, as: 'edition' + property :has_deny_maintenance_schedules, as: 'hasDenyMaintenanceSchedules' + property :has_maintenance_schedule, as: 'hasMaintenanceSchedule' + property :label_key, as: 'labelKey' + property :label_source, as: 'labelSource' + property :label_value, as: 'labelValue' + property :location, as: 'location' + property :management_type, as: 'managementType' + property :product_engine, as: 'productEngine' + property :product_type, as: 'productType' + property :product_version, as: 'productVersion' + property :resource_category, as: 'resourceCategory' + property :resource_type, as: 'resourceType' + property :sub_resource_type, as: 'subResourceType' + property :tag_inherited, as: 'tagInherited' + property :tag_key, as: 'tagKey' + property :tag_source, as: 'tagSource' + property :tag_value, as: 'tagValue' + end + end + + class InefficientQueryInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :database, as: 'database' + property :impacted_queries_count, :numeric_string => true, as: 'impactedQueriesCount' + property :sql_index_statement, as: 'sqlIndexStatement' + property :storage_cost_bytes, :numeric_string => true, as: 'storageCostBytes' + property :table, as: 'table' + end + end + + class IssueCount + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :display_name, as: 'displayName' + property :issue_count, as: 'issueCount' + end + end + + class IssueGroupStats + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :display_name, as: 'displayName' + property :healthy_resource_groups_count, as: 'healthyResourceGroupsCount' + property :healthy_resources_count, as: 'healthyResourcesCount' + collection :issue_stats, as: 'issueStats', class: Google::Apis::DatabasecenterV1beta::IssueStats, decorator: Google::Apis::DatabasecenterV1beta::IssueStats::Representation + + property :resource_groups_count, as: 'resourceGroupsCount' + property :resources_count, as: 'resourcesCount' + end + end + + class IssueStats + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :delta_details, as: 'deltaDetails', class: Google::Apis::DatabasecenterV1beta::DeltaDetails, decorator: Google::Apis::DatabasecenterV1beta::DeltaDetails::Representation + + property :issue_severity, as: 'issueSeverity' + property :resource_count, as: 'resourceCount' + property :signal_type, as: 'signalType' + end + end + + class Label + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :source, as: 'source' + property :value, as: 'value' + end + end + + class Lineage + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :process_fqn, as: 'processFqn' + property :process_type, as: 'processType' + property :source_fqn, as: 'sourceFqn' + property :target_fqn, as: 'targetFqn' + end + end + + class MachineConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :baseline_slot_count, :numeric_string => true, as: 'baselineSlotCount' + property :max_reservation_slot_count, :numeric_string => true, as: 'maxReservationSlotCount' + property :memory_size_bytes, :numeric_string => true, as: 'memorySizeBytes' + property :shard_count, as: 'shardCount' + property :vcpu_count, as: 'vcpuCount' + end + end + + class MaintenanceInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :current_version_release_date, as: 'currentVersionReleaseDate', class: Google::Apis::DatabasecenterV1beta::Date, decorator: Google::Apis::DatabasecenterV1beta::Date::Representation + + collection :deny_maintenance_schedules, as: 'denyMaintenanceSchedules', class: Google::Apis::DatabasecenterV1beta::ResourceMaintenanceDenySchedule, decorator: Google::Apis::DatabasecenterV1beta::ResourceMaintenanceDenySchedule::Representation + + property :maintenance_schedule, as: 'maintenanceSchedule', class: Google::Apis::DatabasecenterV1beta::ResourceMaintenanceSchedule, decorator: Google::Apis::DatabasecenterV1beta::ResourceMaintenanceSchedule::Representation + + property :maintenance_version, as: 'maintenanceVersion' + collection :possible_failure_reasons, as: 'possibleFailureReasons' + property :previous_maintenance_version, as: 'previousMaintenanceVersion' + property :state, as: 'state' + property :upcoming_maintenance, as: 'upcomingMaintenance', class: Google::Apis::DatabasecenterV1beta::UpcomingMaintenance, decorator: Google::Apis::DatabasecenterV1beta::UpcomingMaintenance::Representation + + end + end + + class MaintenanceRecommendationInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :resource_maintenance_schedules, as: 'resourceMaintenanceSchedules', class: Google::Apis::DatabasecenterV1beta::ResourceMaintenanceSchedule, decorator: Google::Apis::DatabasecenterV1beta::ResourceMaintenanceSchedule::Representation + + end + end + + class MetricData + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :observation_time, as: 'observationTime' + property :value, as: 'value', class: Google::Apis::DatabasecenterV1beta::TypedValue, decorator: Google::Apis::DatabasecenterV1beta::TypedValue::Representation + + end + end + + class Metrics + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :current_memory_used_bytes, as: 'currentMemoryUsedBytes', class: Google::Apis::DatabasecenterV1beta::MetricData, decorator: Google::Apis::DatabasecenterV1beta::MetricData::Representation + + property :current_storage_used_bytes, as: 'currentStorageUsedBytes', class: Google::Apis::DatabasecenterV1beta::MetricData, decorator: Google::Apis::DatabasecenterV1beta::MetricData::Representation + + property :node_count, as: 'nodeCount', class: Google::Apis::DatabasecenterV1beta::MetricData, decorator: Google::Apis::DatabasecenterV1beta::MetricData::Representation + + property :p95_cpu_utilization, as: 'p95CpuUtilization', class: Google::Apis::DatabasecenterV1beta::MetricData, decorator: Google::Apis::DatabasecenterV1beta::MetricData::Representation + + property :p99_cpu_utilization, as: 'p99CpuUtilization', class: Google::Apis::DatabasecenterV1beta::MetricData, decorator: Google::Apis::DatabasecenterV1beta::MetricData::Representation + + property :peak_memory_utilization, as: 'peakMemoryUtilization', class: Google::Apis::DatabasecenterV1beta::MetricData, decorator: Google::Apis::DatabasecenterV1beta::MetricData::Representation + + property :peak_number_connections, as: 'peakNumberConnections', class: Google::Apis::DatabasecenterV1beta::MetricData, decorator: Google::Apis::DatabasecenterV1beta::MetricData::Representation + + property :peak_storage_utilization, as: 'peakStorageUtilization', class: Google::Apis::DatabasecenterV1beta::MetricData, decorator: Google::Apis::DatabasecenterV1beta::MetricData::Representation + + property :processing_unit_count, as: 'processingUnitCount', class: Google::Apis::DatabasecenterV1beta::MetricData, decorator: Google::Apis::DatabasecenterV1beta::MetricData::Representation + + end + end + + class OutdatedMinorVersionInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :recommended_minor_version, as: 'recommendedMinorVersion' + end + end + + class Product + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :engine, as: 'engine' + property :minor_version, as: 'minorVersion' + property :type, as: 'type' + property :version, as: 'version' + end + end + + class QueryDatabaseResourceGroupsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :filter, as: 'filter' + property :order_by, as: 'orderBy' + property :page_size, as: 'pageSize' + property :page_token, as: 'pageToken' + property :parent, as: 'parent' + collection :signal_filters, as: 'signalFilters', class: Google::Apis::DatabasecenterV1beta::SignalFilter, decorator: Google::Apis::DatabasecenterV1beta::SignalFilter::Representation + + collection :signal_type_groups, as: 'signalTypeGroups', class: Google::Apis::DatabasecenterV1beta::SignalTypeGroup, decorator: Google::Apis::DatabasecenterV1beta::SignalTypeGroup::Representation + + end + end + + class QueryDatabaseResourceGroupsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :resource_groups, as: 'resourceGroups', class: Google::Apis::DatabasecenterV1beta::DatabaseResourceGroup, decorator: Google::Apis::DatabasecenterV1beta::DatabaseResourceGroup::Representation + + property :total_size, :numeric_string => true, as: 'totalSize' + collection :unreachable, as: 'unreachable' + end + end + + class QueryIssuesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :filter, as: 'filter' + property :order_by, as: 'orderBy' + property :page_size, as: 'pageSize' + property :page_token, as: 'pageToken' + property :parent, as: 'parent' + collection :signal_products_filters, as: 'signalProductsFilters', class: Google::Apis::DatabasecenterV1beta::SignalProductsFilters, decorator: Google::Apis::DatabasecenterV1beta::SignalProductsFilters::Representation + + end + end + + class QueryIssuesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :resource_issues, as: 'resourceIssues', class: Google::Apis::DatabasecenterV1beta::DatabaseResourceIssue, decorator: Google::Apis::DatabasecenterV1beta::DatabaseResourceIssue::Representation + + collection :unreachable, as: 'unreachable' + end + end + + class QueryMetrics + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :avg_cpu_time, as: 'avgCpuTime' + property :execution_count, :numeric_string => true, as: 'executionCount' + property :metrics_window, as: 'metricsWindow' + property :rows_processed, :numeric_string => true, as: 'rowsProcessed' + property :total_cpu_time, as: 'totalCpuTime' + end + end + + class QueryProductsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :products, as: 'products', class: Google::Apis::DatabasecenterV1beta::Product, decorator: Google::Apis::DatabasecenterV1beta::Product::Representation + + collection :unreachable, as: 'unreachable' + end + end + + class QueryStats + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :inefficient_query_info, as: 'inefficientQueryInfo', class: Google::Apis::DatabasecenterV1beta::InefficientQueryInfo, decorator: Google::Apis::DatabasecenterV1beta::InefficientQueryInfo::Representation + + property :normalized_query, as: 'normalizedQuery' + property :query_hash, as: 'queryHash' + property :query_metrics, as: 'queryMetrics', class: Google::Apis::DatabasecenterV1beta::QueryMetrics, decorator: Google::Apis::DatabasecenterV1beta::QueryMetrics::Representation + + collection :resource_ids, as: 'resourceIds', class: Google::Apis::DatabasecenterV1beta::ResourceId, decorator: Google::Apis::DatabasecenterV1beta::ResourceId::Representation + + property :resource_type, as: 'resourceType' + end + end + + class QueryStatsInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :aggregated_query_stats, as: 'aggregatedQueryStats', class: Google::Apis::DatabasecenterV1beta::QueryStats, decorator: Google::Apis::DatabasecenterV1beta::QueryStats::Representation + + collection :query_stats, as: 'queryStats', class: Google::Apis::DatabasecenterV1beta::QueryStats, decorator: Google::Apis::DatabasecenterV1beta::QueryStats::Representation + + end + end + + class RecommendationInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :recommender, as: 'recommender' + property :recommender_id, as: 'recommenderId' + property :recommender_subtype, as: 'recommenderSubtype' + end + end + + class RegulatoryStandard + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :standard, as: 'standard' + property :version, as: 'version' + end + end + + class ResourceDetails + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :container, as: 'container' + property :full_resource_name, as: 'fullResourceName' + property :location, as: 'location' + property :product, as: 'product', class: Google::Apis::DatabasecenterV1beta::Product, decorator: Google::Apis::DatabasecenterV1beta::Product::Representation + + end + end + + class ResourceId + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :full_resource_name, as: 'fullResourceName' + property :product, as: 'product', class: Google::Apis::DatabasecenterV1beta::Product, decorator: Google::Apis::DatabasecenterV1beta::Product::Representation + + property :resource_type, as: 'resourceType' + end + end + + class ResourceMaintenanceDenySchedule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :end_date, as: 'endDate', class: Google::Apis::DatabasecenterV1beta::Date, decorator: Google::Apis::DatabasecenterV1beta::Date::Representation + + property :start_date, as: 'startDate', class: Google::Apis::DatabasecenterV1beta::Date, decorator: Google::Apis::DatabasecenterV1beta::Date::Representation + + property :time, as: 'time', class: Google::Apis::DatabasecenterV1beta::TimeOfDay, decorator: Google::Apis::DatabasecenterV1beta::TimeOfDay::Representation + + end + end + + class ResourceMaintenanceSchedule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :day, as: 'day' + property :phase, as: 'phase' + property :start_time, as: 'startTime', class: Google::Apis::DatabasecenterV1beta::TimeOfDay, decorator: Google::Apis::DatabasecenterV1beta::TimeOfDay::Representation + + end + end + + class ResourceSuspensionInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :resource_suspended, as: 'resourceSuspended' + property :suspension_reason, as: 'suspensionReason' + end + end + + class RetentionSettingsInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :duration_based_retention, as: 'durationBasedRetention' + property :quantity_based_retention, as: 'quantityBasedRetention' + property :sub_resource, as: 'subResource', class: Google::Apis::DatabasecenterV1beta::SubResource, decorator: Google::Apis::DatabasecenterV1beta::SubResource::Representation + + property :timestamp_based_retention_time, as: 'timestampBasedRetentionTime' + end + end + + class SccInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :category, as: 'category' + property :external_uri, as: 'externalUri' + collection :regulatory_standards, as: 'regulatoryStandards', class: Google::Apis::DatabasecenterV1beta::RegulatoryStandard, decorator: Google::Apis::DatabasecenterV1beta::RegulatoryStandard::Representation + + property :signal, as: 'signal' + end + end + + class Signal + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :additional_details, as: 'additionalDetails', class: Google::Apis::DatabasecenterV1beta::AdditionalDetail, decorator: Google::Apis::DatabasecenterV1beta::AdditionalDetail::Representation + + property :issue_create_time, as: 'issueCreateTime' + property :issue_severity, as: 'issueSeverity' + property :signal_status, as: 'signalStatus' + property :signal_type, as: 'signalType' + end + end + + class SignalFilter + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :signal_status, as: 'signalStatus' + property :signal_type, as: 'signalType' + end + end + + class SignalGroup + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :display_name, as: 'displayName' + property :issue_count, as: 'issueCount' + collection :signals, as: 'signals', class: Google::Apis::DatabasecenterV1beta::Signal, decorator: Google::Apis::DatabasecenterV1beta::Signal::Representation + + end + end + + class SignalProductsFilters + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :products, as: 'products', class: Google::Apis::DatabasecenterV1beta::Product, decorator: Google::Apis::DatabasecenterV1beta::Product::Representation + + property :signal_type, as: 'signalType' + end + end + + class SignalTypeGroup + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :display_name, as: 'displayName' + collection :signal_types, as: 'signalTypes' + end + end + + class SubResource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :container, as: 'container' + property :full_resource_name, as: 'fullResourceName' + property :product, as: 'product', class: Google::Apis::DatabasecenterV1beta::Product, decorator: Google::Apis::DatabasecenterV1beta::Product::Representation + + property :resource_type, as: 'resourceType' + end + end + + class Tag + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :inherited, as: 'inherited' + property :key, as: 'key' + property :source, as: 'source' + property :value, as: 'value' + end + end + + class TimeOfDay + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :hours, as: 'hours' + property :minutes, as: 'minutes' + property :nanos, as: 'nanos' + property :seconds, as: 'seconds' + end + end + + class TypedValue + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :double_value, as: 'doubleValue' + property :int64_value, :numeric_string => true, as: 'int64Value' + end + end + + class UpcomingMaintenance + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :end_time, as: 'endTime' + property :start_time, as: 'startTime' + end + end + end + end +end diff --git a/generated/google-apis-databasecenter_v1beta/lib/google/apis/databasecenter_v1beta/service.rb b/generated/google-apis-databasecenter_v1beta/lib/google/apis/databasecenter_v1beta/service.rb new file mode 100644 index 00000000000..60df8d1496a --- /dev/null +++ b/generated/google-apis-databasecenter_v1beta/lib/google/apis/databasecenter_v1beta/service.rb @@ -0,0 +1,407 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module DatabasecenterV1beta + # Database Center API + # + # Database Center offers a comprehensive, organization-wide platform for + # monitoring database fleet health across various products. It simplifies + # management and reduces risk by automatically aggregating and summarizing key + # health signals, removing the need for custom dashboards. The platform provides + # a unified view through its dashboard and API, enabling teams focused on + # reliability, compliance, security, cost, and administration to quickly + # identify and address relevant issues within their database fleets. + # + # @example + # require 'google/apis/databasecenter_v1beta' + # + # Databasecenter = Google::Apis::DatabasecenterV1beta # Alias the module + # service = Databasecenter::DatabaseCenterService.new + # + # @see https://docs.cloud.google.com/database-center/docs/overview + class DatabaseCenterService < Google::Apis::Core::BaseService + DEFAULT_ENDPOINT_TEMPLATE = "https://databasecenter.$UNIVERSE_DOMAIN$/" + + # @return [String] + # API key. Your API key identifies your project and provides you with API access, + # quota, and reports. Required unless you provide an OAuth 2.0 token. + attr_accessor :key + + # @return [String] + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + attr_accessor :quota_user + + def initialize + super(DEFAULT_ENDPOINT_TEMPLATE, '', + client_name: 'google-apis-databasecenter_v1beta', + client_version: Google::Apis::DatabasecenterV1beta::GEM_VERSION) + @batch_path = 'batch' + end + + # AggregateQueryStats provides database resource query execution statistics. + # @param [String] parent + # Required. Parent can be a project, a folder, or an organization. The search is + # limited to the resources within the `parent`. The allowed values are: * + # projects/`PROJECT_ID` (e.g., "projects/foo-bar") * projects/`PROJECT_NUMBER` ( + # e.g., "projects/12345678") * folders/`FOLDER_NUMBER` (e.g., "folders/1234567") + # * organizations/`ORGANIZATION_NUMBER` (e.g., "organizations/123456") + # @param [Google::Apis::DatabasecenterV1beta::AggregateQueryStatsRequest] aggregate_query_stats_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DatabasecenterV1beta::AggregateQueryStatsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatabasecenterV1beta::AggregateQueryStatsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def aggregate_folder_query_stats(parent, aggregate_query_stats_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta/{+parent}:aggregateQueryStats', options) + command.request_representation = Google::Apis::DatabasecenterV1beta::AggregateQueryStatsRequest::Representation + command.request_object = aggregate_query_stats_request_object + command.response_representation = Google::Apis::DatabasecenterV1beta::AggregateQueryStatsResponse::Representation + command.response_class = Google::Apis::DatabasecenterV1beta::AggregateQueryStatsResponse + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # AggregateQueryStats provides database resource query execution statistics. + # @param [String] parent + # Required. Parent can be a project, a folder, or an organization. The search is + # limited to the resources within the `parent`. The allowed values are: * + # projects/`PROJECT_ID` (e.g., "projects/foo-bar") * projects/`PROJECT_NUMBER` ( + # e.g., "projects/12345678") * folders/`FOLDER_NUMBER` (e.g., "folders/1234567") + # * organizations/`ORGANIZATION_NUMBER` (e.g., "organizations/123456") + # @param [Google::Apis::DatabasecenterV1beta::AggregateQueryStatsRequest] aggregate_query_stats_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DatabasecenterV1beta::AggregateQueryStatsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatabasecenterV1beta::AggregateQueryStatsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def aggregate_organization_query_stats(parent, aggregate_query_stats_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta/{+parent}:aggregateQueryStats', options) + command.request_representation = Google::Apis::DatabasecenterV1beta::AggregateQueryStatsRequest::Representation + command.request_object = aggregate_query_stats_request_object + command.response_representation = Google::Apis::DatabasecenterV1beta::AggregateQueryStatsResponse::Representation + command.response_class = Google::Apis::DatabasecenterV1beta::AggregateQueryStatsResponse + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # AggregateQueryStats provides database resource query execution statistics. + # @param [String] parent + # Required. Parent can be a project, a folder, or an organization. The search is + # limited to the resources within the `parent`. The allowed values are: * + # projects/`PROJECT_ID` (e.g., "projects/foo-bar") * projects/`PROJECT_NUMBER` ( + # e.g., "projects/12345678") * folders/`FOLDER_NUMBER` (e.g., "folders/1234567") + # * organizations/`ORGANIZATION_NUMBER` (e.g., "organizations/123456") + # @param [Google::Apis::DatabasecenterV1beta::AggregateQueryStatsRequest] aggregate_query_stats_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DatabasecenterV1beta::AggregateQueryStatsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatabasecenterV1beta::AggregateQueryStatsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def aggregate_project_query_stats(parent, aggregate_query_stats_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta/{+parent}:aggregateQueryStats', options) + command.request_representation = Google::Apis::DatabasecenterV1beta::AggregateQueryStatsRequest::Representation + command.request_object = aggregate_query_stats_request_object + command.response_representation = Google::Apis::DatabasecenterV1beta::AggregateQueryStatsResponse::Representation + command.response_class = Google::Apis::DatabasecenterV1beta::AggregateQueryStatsResponse + command.params['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # AggregateFleet provides statistics about the fleet grouped by various fields. + # @param [Fixnum] baseline_date_day + # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to + # specify a year by itself or a year and month where the day isn't significant. + # @param [Fixnum] baseline_date_month + # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month + # and day. + # @param [Fixnum] baseline_date_year + # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a + # year. + # @param [String] filter + # Optional. The expression to filter resources. Supported fields are: ` + # full_resource_name`, `resource_type`, `container`, `product.type`, `product. + # engine`, `product.version`, `location`, `labels`, `issues`, fields of + # availability_info, data_protection_info, 'resource_name', etc. The expression + # is a list of zero or more restrictions combined via logical operators `AND` + # and `OR`. When `AND` and `OR` are both used in the expression, parentheses + # must be appropriately used to group the combinations. Example: `location="us- + # east1"` Example: `container="projects/123" OR container="projects/456"` + # Example: `(container="projects/123" OR container="projects/456") AND location=" + # us-east1"` + # @param [String] group_by + # Optional. A field that statistics are grouped by. Valid values are any + # combination of the following: * container * product.type * product.engine * + # product.version * location * sub_resource_type * management_type * tag.key * + # tag.value * tag.source * tag.inherited * label.key * label.value * label. + # source * has_maintenance_schedule * has_deny_maintenance_schedules Comma + # separated list. + # @param [String] order_by + # Optional. Valid values to order by are: * resource_groups_count * + # resources_count * and all fields supported by `group_by` The default order is + # ascending. Add "DESC" after the field name to indicate descending order. Add " + # ASC" after the field name to indicate ascending order. It supports ordering + # using multiple fields. For example: `order_by = "resource_groups_count"` sorts + # response in ascending order `order_by = "resource_groups_count DESC"` sorts + # response in descending order `order_by = "product.type, product.version DESC, + # location"` orders by type in ascending order, version in descending order and + # location in ascending order + # @param [Fixnum] page_size + # Optional. If unspecified, at most 50 items will be returned. The maximum value + # is 1000; values above 1000 will be coerced to 1000. + # @param [String] page_token + # Optional. A page token, received from a previous `AggregateFleet` call. + # Provide this to retrieve the subsequent page. All other parameters should + # match the parameters in the call that provided the page token except for + # page_size which can be different. + # @param [String] parent + # Required. Parent can be a project, a folder, or an organization. The search is + # limited to the resources within the `scope`. The allowed values are: * + # projects/`PROJECT_ID` (e.g., "projects/foo-bar") * projects/`PROJECT_NUMBER` ( + # e.g., "projects/12345678") * folders/`FOLDER_NUMBER` (e.g., "folders/1234567") + # * organizations/`ORGANIZATION_NUMBER` (e.g., "organizations/123456") + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DatabasecenterV1beta::AggregateFleetResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatabasecenterV1beta::AggregateFleetResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def aggregate_fleet(baseline_date_day: nil, baseline_date_month: nil, baseline_date_year: nil, filter: nil, group_by: nil, order_by: nil, page_size: nil, page_token: nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta:aggregateFleet', options) + command.response_representation = Google::Apis::DatabasecenterV1beta::AggregateFleetResponse::Representation + command.response_class = Google::Apis::DatabasecenterV1beta::AggregateFleetResponse + command.query['baselineDate.day'] = baseline_date_day unless baseline_date_day.nil? + command.query['baselineDate.month'] = baseline_date_month unless baseline_date_month.nil? + command.query['baselineDate.year'] = baseline_date_year unless baseline_date_year.nil? + command.query['filter'] = filter unless filter.nil? + command.query['groupBy'] = group_by unless group_by.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # AggregateIssueStats provides database resource issues statistics. + # @param [Google::Apis::DatabasecenterV1beta::AggregateIssueStatsRequest] aggregate_issue_stats_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DatabasecenterV1beta::AggregateIssueStatsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatabasecenterV1beta::AggregateIssueStatsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def aggregate_issue_stats(aggregate_issue_stats_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta:aggregateIssueStats', options) + command.request_representation = Google::Apis::DatabasecenterV1beta::AggregateIssueStatsRequest::Representation + command.request_object = aggregate_issue_stats_request_object + command.response_representation = Google::Apis::DatabasecenterV1beta::AggregateIssueStatsResponse::Representation + command.response_class = Google::Apis::DatabasecenterV1beta::AggregateIssueStatsResponse + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # QueryDatabaseResourceGroups returns paginated results of database groups. + # @param [Google::Apis::DatabasecenterV1beta::QueryDatabaseResourceGroupsRequest] query_database_resource_groups_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DatabasecenterV1beta::QueryDatabaseResourceGroupsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatabasecenterV1beta::QueryDatabaseResourceGroupsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def query_database_resource_groups(query_database_resource_groups_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta:queryDatabaseResourceGroups', options) + command.request_representation = Google::Apis::DatabasecenterV1beta::QueryDatabaseResourceGroupsRequest::Representation + command.request_object = query_database_resource_groups_request_object + command.response_representation = Google::Apis::DatabasecenterV1beta::QueryDatabaseResourceGroupsResponse::Representation + command.response_class = Google::Apis::DatabasecenterV1beta::QueryDatabaseResourceGroupsResponse + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # QueryIssues provides a list of issues and recommendations that a user has + # access to and that are within the requested scope. + # @param [Google::Apis::DatabasecenterV1beta::QueryIssuesRequest] query_issues_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DatabasecenterV1beta::QueryIssuesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatabasecenterV1beta::QueryIssuesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def query_issues(query_issues_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta:queryIssues', options) + command.request_representation = Google::Apis::DatabasecenterV1beta::QueryIssuesRequest::Representation + command.request_object = query_issues_request_object + command.response_representation = Google::Apis::DatabasecenterV1beta::QueryIssuesResponse::Representation + command.response_class = Google::Apis::DatabasecenterV1beta::QueryIssuesResponse + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # QueryProducts provides a list of all possible products which can be used to + # filter database resources. + # @param [Fixnum] page_size + # Optional. If unspecified, at most 50 products will be returned. The maximum + # value is 1000; values above 1000 will be coerced to 1000. + # @param [String] page_token + # Optional. A page token, received from a previous `ListLocations` call. Provide + # this to retrieve the subsequent page. All other parameters except page size + # should match the call that provided the page page token. + # @param [String] parent + # Required. Parent can be a project, a folder, or an organization. The allowed + # values are: * projects/`PROJECT_ID`/locations/`LOCATION` (e.g.,"projects/foo- + # bar/locations/us-central1") * projects/`PROJECT_NUMBER`/locations/`LOCATION` ( + # e.g.,"projects/12345678/locations/us-central1") * folders/`FOLDER_NUMBER`/ + # locations/`LOCATION` (e.g.,"folders/1234567/locations/us-central1") * + # organizations/`ORGANIZATION_NUMBER`/locations/`LOCATION` (e.g.,"organizations/ + # 123456/locations/us-central1") * projects/`PROJECT_ID` (e.g., "projects/foo- + # bar") * projects/`PROJECT_NUMBER` (e.g., "projects/12345678") * folders/` + # FOLDER_NUMBER` (e.g., "folders/1234567") * organizations/`ORGANIZATION_NUMBER` + # (e.g., "organizations/123456") + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DatabasecenterV1beta::QueryProductsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatabasecenterV1beta::QueryProductsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def query_products(page_size: nil, page_token: nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta:queryProducts', options) + command.response_representation = Google::Apis::DatabasecenterV1beta::QueryProductsResponse::Representation + command.response_class = Google::Apis::DatabasecenterV1beta::QueryProductsResponse + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['parent'] = parent unless parent.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + protected + + def apply_command_defaults(command) + command.query['key'] = key unless key.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + end + end + end + end +end diff --git a/generated/google-apis-databasecenter_v1beta/spec/generated_spec.rb b/generated/google-apis-databasecenter_v1beta/spec/generated_spec.rb new file mode 100644 index 00000000000..9b2eba50a5c --- /dev/null +++ b/generated/google-apis-databasecenter_v1beta/spec/generated_spec.rb @@ -0,0 +1,27 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require "rspec" + +RSpec.describe "Google::Apis::DatabasecenterV1beta" do + # Minimal test just to ensure no syntax errors in generated code + it "should load" do + expect do + require "google/apis/databasecenter_v1beta" + end.not_to raise_error + expect do + Google::Apis::DatabasecenterV1beta::DatabaseCenterService.new + end.not_to raise_error + end +end