Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .librarian/state.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ libraries:
tag_format: '{id}-v{version}'
- id: google-ads-datamanager
version: 0.3.0
last_generated_commit: c2db528a3e4d12b95666c719ee0db30a3d4c78ad
last_generated_commit: 87e3579c041a50f985f8de71e9494c8fc85d520b
apis:
- path: google/ads/datamanager/v1
service_config: datamanager_v1.yaml
Expand Down Expand Up @@ -1344,7 +1344,7 @@ libraries:
tag_format: '{id}-v{version}'
- id: google-cloud-databasecenter
version: 0.3.0
last_generated_commit: 94aa4f5ae672addf00e7970ecc47699e34989e90
last_generated_commit: 87e3579c041a50f985f8de71e9494c8fc85d520b
apis:
- path: google/cloud/databasecenter/v1beta
service_config: databasecenter_v1beta.yaml
Expand Down Expand Up @@ -1595,7 +1595,7 @@ libraries:
tag_format: '{id}-v{version}'
- id: google-cloud-dialogflow-cx
version: 2.2.0
last_generated_commit: 9a477cd3c26a704130e2a2fb44a40281d9312e4c
last_generated_commit: 87e3579c041a50f985f8de71e9494c8fc85d520b
apis:
- path: google/cloud/dialogflow/cx/v3
service_config: dialogflow_v3.yaml
Expand Down Expand Up @@ -2104,7 +2104,7 @@ libraries:
tag_format: '{id}-v{version}'
- id: google-cloud-kms
version: 3.9.0
last_generated_commit: 94aa4f5ae672addf00e7970ecc47699e34989e90
last_generated_commit: 87e3579c041a50f985f8de71e9494c8fc85d520b
apis:
- path: google/cloud/kms/v1
service_config: cloudkms_v1.yaml
Expand Down Expand Up @@ -2463,7 +2463,7 @@ libraries:
tag_format: '{id}-v{version}'
- id: google-cloud-network-connectivity
version: 2.12.0
last_generated_commit: 3322511885371d2b2253f209ccc3aa60d4100cfd
last_generated_commit: 87e3579c041a50f985f8de71e9494c8fc85d520b
apis:
- path: google/cloud/networkconnectivity/v1
service_config: networkconnectivity_v1.yaml
Expand Down Expand Up @@ -2993,7 +2993,7 @@ libraries:
tag_format: '{id}-v{version}'
- id: google-cloud-run
version: 0.14.0
last_generated_commit: 94aa4f5ae672addf00e7970ecc47699e34989e90
last_generated_commit: 87e3579c041a50f985f8de71e9494c8fc85d520b
apis:
- path: google/cloud/run/v2
service_config: run_v2.yaml
Expand Down Expand Up @@ -3751,7 +3751,7 @@ libraries:
tag_format: '{id}-v{version}'
- id: google-cloud-workflows
version: 1.20.0
last_generated_commit: 3322511885371d2b2253f209ccc3aa60d4100cfd
last_generated_commit: 87e3579c041a50f985f8de71e9494c8fc85d520b
apis:
- path: google/cloud/workflows/executions/v1
service_config: workflowexecutions_v1.yaml
Expand Down Expand Up @@ -4264,7 +4264,7 @@ libraries:
tag_format: '{id}-v{version}'
- id: googleapis-common-protos
version: 1.72.0
last_generated_commit: 94aa4f5ae672addf00e7970ecc47699e34989e90
last_generated_commit: 87e3579c041a50f985f8de71e9494c8fc85d520b
apis:
- path: google/api
service_config: serviceconfig.yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,16 @@
AggregateFleetRequest,
AggregateFleetResponse,
AggregateFleetRow,
AggregateIssueStatsRequest,
AggregateIssueStatsResponse,
BackupDRConfig,
DatabaseResource,
DatabaseResourceGroup,
DeltaDetails,
Dimension,
Edition,
IssueGroupStats,
IssueStats,
Label,
ManagementType,
QueryDatabaseResourceGroupsRequest,
Expand Down Expand Up @@ -109,11 +113,15 @@
"AggregateFleetRequest",
"AggregateFleetResponse",
"AggregateFleetRow",
"AggregateIssueStatsRequest",
"AggregateIssueStatsResponse",
"BackupDRConfig",
"DatabaseResource",
"DatabaseResourceGroup",
"DeltaDetails",
"Dimension",
"IssueGroupStats",
"IssueStats",
"Label",
"QueryDatabaseResourceGroupsRequest",
"QueryDatabaseResourceGroupsResponse",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,16 @@
AggregateFleetRequest,
AggregateFleetResponse,
AggregateFleetRow,
AggregateIssueStatsRequest,
AggregateIssueStatsResponse,
BackupDRConfig,
DatabaseResource,
DatabaseResourceGroup,
DeltaDetails,
Dimension,
Edition,
IssueGroupStats,
IssueStats,
Label,
ManagementType,
QueryDatabaseResourceGroupsRequest,
Expand Down Expand Up @@ -186,6 +190,8 @@ def _get_version(dependency_name):
"AggregateFleetRequest",
"AggregateFleetResponse",
"AggregateFleetRow",
"AggregateIssueStatsRequest",
"AggregateIssueStatsResponse",
"AutomatedBackupPolicyInfo",
"BackupDRConfig",
"BackupRunInfo",
Expand All @@ -199,7 +205,9 @@ def _get_version(dependency_name):
"Engine",
"InefficientQueryInfo",
"IssueCount",
"IssueGroupStats",
"IssueSeverity",
"IssueStats",
"Label",
"MachineConfig",
"MaintenanceInfo",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
"aggregate_fleet"
]
},
"AggregateIssueStats": {
"methods": [
"aggregate_issue_stats"
]
},
"QueryDatabaseResourceGroups": {
"methods": [
"query_database_resource_groups"
Expand All @@ -35,6 +40,11 @@
"aggregate_fleet"
]
},
"AggregateIssueStats": {
"methods": [
"aggregate_issue_stats"
]
},
"QueryDatabaseResourceGroups": {
"methods": [
"query_database_resource_groups"
Expand All @@ -55,6 +65,11 @@
"aggregate_fleet"
]
},
"AggregateIssueStats": {
"methods": [
"aggregate_issue_stats"
]
},
"QueryDatabaseResourceGroups": {
"methods": [
"query_database_resource_groups"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,89 @@ async def sample_query_database_resource_groups():
# Done; return the response.
return response

async def aggregate_issue_stats(
self,
request: Optional[Union[service.AggregateIssueStatsRequest, dict]] = None,
*,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
) -> service.AggregateIssueStatsResponse:
r"""AggregateIssueStats provides database resource issues
statistics.

.. code-block:: python

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import databasecenter_v1beta

async def sample_aggregate_issue_stats():
# Create a client
client = databasecenter_v1beta.DatabaseCenterAsyncClient()

# Initialize request argument(s)
request = databasecenter_v1beta.AggregateIssueStatsRequest(
parent="parent_value",
)

# Make the request
response = await client.aggregate_issue_stats(request=request)

# Handle the response
print(response)

Args:
request (Optional[Union[google.cloud.databasecenter_v1beta.types.AggregateIssueStatsRequest, dict]]):
The request object. AggregateIssueStatsRequest represents
the input to the AggregateIssueStats
method.
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
sent along with the request as metadata. Normally, each value must be of type `str`,
but for metadata keys ending with the suffix `-bin`, the corresponding values must
be of type `bytes`.

Returns:
google.cloud.databasecenter_v1beta.types.AggregateIssueStatsResponse:
The response message containing one
of more group of relevant health issues
for database resources.

"""
# Create or coerce a protobuf request object.
# - Use the request object if provided (there's no risk of modifying the input as
# there are no flattened fields), or create one.
if not isinstance(request, service.AggregateIssueStatsRequest):
request = service.AggregateIssueStatsRequest(request)

# Wrap the RPC method; this adds retry and timeout information,
# and friendly error handling.
rpc = self._client._transport._wrapped_methods[
self._client._transport.aggregate_issue_stats
]

# Validate the universe domain.
self._client._validate_universe_domain()

# Send the request.
response = await rpc(
request,
retry=retry,
timeout=timeout,
metadata=metadata,
)

# Done; return the response.
return response

async def __aenter__(self) -> "DatabaseCenterAsyncClient":
return self

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -997,6 +997,87 @@ def sample_query_database_resource_groups():
# Done; return the response.
return response

def aggregate_issue_stats(
self,
request: Optional[Union[service.AggregateIssueStatsRequest, dict]] = None,
*,
retry: OptionalRetry = gapic_v1.method.DEFAULT,
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
) -> service.AggregateIssueStatsResponse:
r"""AggregateIssueStats provides database resource issues
statistics.

.. code-block:: python

# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import databasecenter_v1beta

def sample_aggregate_issue_stats():
# Create a client
client = databasecenter_v1beta.DatabaseCenterClient()

# Initialize request argument(s)
request = databasecenter_v1beta.AggregateIssueStatsRequest(
parent="parent_value",
)

# Make the request
response = client.aggregate_issue_stats(request=request)

# Handle the response
print(response)

Args:
request (Union[google.cloud.databasecenter_v1beta.types.AggregateIssueStatsRequest, dict]):
The request object. AggregateIssueStatsRequest represents
the input to the AggregateIssueStats
method.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
sent along with the request as metadata. Normally, each value must be of type `str`,
but for metadata keys ending with the suffix `-bin`, the corresponding values must
be of type `bytes`.

Returns:
google.cloud.databasecenter_v1beta.types.AggregateIssueStatsResponse:
The response message containing one
of more group of relevant health issues
for database resources.

"""
# Create or coerce a protobuf request object.
# - Use the request object if provided (there's no risk of modifying the input as
# there are no flattened fields), or create one.
if not isinstance(request, service.AggregateIssueStatsRequest):
request = service.AggregateIssueStatsRequest(request)

# Wrap the RPC method; this adds retry and timeout information,
# and friendly error handling.
rpc = self._transport._wrapped_methods[self._transport.aggregate_issue_stats]

# Validate the universe domain.
self._validate_universe_domain()

# Send the request.
response = rpc(
request,
retry=retry,
timeout=timeout,
metadata=metadata,
)

# Done; return the response.
return response

def __enter__(self) -> "DatabaseCenterClient":
return self

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,11 @@ def _prep_wrapped_messages(self, client_info):
default_timeout=None,
client_info=client_info,
),
self.aggregate_issue_stats: gapic_v1.method.wrap_method(
self.aggregate_issue_stats,
default_timeout=None,
client_info=client_info,
),
}

def close(self):
Expand Down Expand Up @@ -191,6 +196,18 @@ def query_database_resource_groups(
]:
raise NotImplementedError()

@property
def aggregate_issue_stats(
self,
) -> Callable[
[service.AggregateIssueStatsRequest],
Union[
service.AggregateIssueStatsResponse,
Awaitable[service.AggregateIssueStatsResponse],
],
]:
raise NotImplementedError()

@property
def kind(self) -> str:
raise NotImplementedError()
Expand Down
Loading
Loading