diff --git a/gapic/ads-templates/%namespace/%name/%version/%sub/types/_message.py.j2 b/gapic/ads-templates/%namespace/%name/%version/%sub/types/_message.py.j2 index 5e07a55f2b..581c976b5e 100644 --- a/gapic/ads-templates/%namespace/%name/%version/%sub/types/_message.py.j2 +++ b/gapic/ads-templates/%namespace/%name/%version/%sub/types/_message.py.j2 @@ -1,5 +1,6 @@ class {{ message.name }}({{ p }}.Message): - r"""{{ message.meta.doc|rst(indent=4) }}{% if message.fields|length %} + r"""{{ message.meta.doc|rst(indent=4) }} + {% if message.fields|length %} Attributes: {% for field in message.fields.values() %} diff --git a/gapic/templates/%namespace/%name_%version/%sub/types/_message.py.j2 b/gapic/templates/%namespace/%name_%version/%sub/types/_message.py.j2 index 890b2cd80d..9bd6d51d82 100644 --- a/gapic/templates/%namespace/%name_%version/%sub/types/_message.py.j2 +++ b/gapic/templates/%namespace/%name_%version/%sub/types/_message.py.j2 @@ -1,5 +1,6 @@ class {{ message.name }}({{ p }}.Message): - r"""{{ message.meta.doc|rst(indent=4) }}{% if message.fields|length %} + r"""{{ message.meta.doc|rst(indent=4) }} + {% if message.fields|length %} Attributes: {% for field in message.fields.values() %} diff --git a/tests/integration/goldens/asset/google/cloud/asset_v1/types/asset_service.py b/tests/integration/goldens/asset/google/cloud/asset_v1/types/asset_service.py index 8ecee480f8..739d78d9a1 100644 --- a/tests/integration/goldens/asset/google/cloud/asset_v1/types/asset_service.py +++ b/tests/integration/goldens/asset/google/cloud/asset_v1/types/asset_service.py @@ -73,6 +73,7 @@ class ContentType(proto.Enum): class ExportAssetsRequest(proto.Message): r"""Export asset request. + Attributes: parent (str): Required. The relative name of the root @@ -187,6 +188,7 @@ class ExportAssetsResponse(proto.Message): class ListAssetsRequest(proto.Message): r"""ListAssets request. + Attributes: parent (str): Required. Name of the organization or project the assets @@ -271,6 +273,7 @@ class ListAssetsRequest(proto.Message): class ListAssetsResponse(proto.Message): r"""ListAssets response. + Attributes: read_time (google.protobuf.timestamp_pb2.Timestamp): Time the snapshot was taken. @@ -305,6 +308,7 @@ def raw_page(self): class BatchGetAssetsHistoryRequest(proto.Message): r"""Batch get assets history request. + Attributes: parent (str): Required. The relative name of the root @@ -356,6 +360,7 @@ class BatchGetAssetsHistoryRequest(proto.Message): class BatchGetAssetsHistoryResponse(proto.Message): r"""Batch get assets history response. + Attributes: assets (Sequence[google.cloud.asset_v1.types.TemporalAsset]): A list of assets with valid time windows. @@ -370,6 +375,7 @@ class BatchGetAssetsHistoryResponse(proto.Message): class CreateFeedRequest(proto.Message): r"""Create asset feed request. + Attributes: parent (str): Required. The name of the @@ -409,6 +415,7 @@ class CreateFeedRequest(proto.Message): class GetFeedRequest(proto.Message): r"""Get asset feed request. + Attributes: name (str): Required. The name of the Feed and it must be in the format @@ -425,6 +432,7 @@ class GetFeedRequest(proto.Message): class ListFeedsRequest(proto.Message): r"""List asset feeds request. + Attributes: parent (str): Required. The parent @@ -443,6 +451,7 @@ class ListFeedsRequest(proto.Message): class ListFeedsResponse(proto.Message): r""" + Attributes: feeds (Sequence[google.cloud.asset_v1.types.Feed]): A list of feeds. @@ -457,6 +466,7 @@ class ListFeedsResponse(proto.Message): class UpdateFeedRequest(proto.Message): r"""Update asset feed request. + Attributes: feed (google.cloud.asset_v1.types.Feed): Required. The new values of feed details. It must match an @@ -484,6 +494,7 @@ class UpdateFeedRequest(proto.Message): class DeleteFeedRequest(proto.Message): r""" + Attributes: name (str): Required. The name of the feed and it must be in the format @@ -500,6 +511,7 @@ class DeleteFeedRequest(proto.Message): class OutputConfig(proto.Message): r"""Output configuration for export assets destination. + Attributes: gcs_destination (google.cloud.asset_v1.types.GcsDestination): Destination on Cloud Storage. @@ -525,6 +537,7 @@ class OutputConfig(proto.Message): class OutputResult(proto.Message): r"""Output result of export assets. + Attributes: gcs_result (google.cloud.asset_v1.types.GcsOutputResult): Export result on Cloud Storage. @@ -540,6 +553,7 @@ class OutputResult(proto.Message): class GcsOutputResult(proto.Message): r"""A Cloud Storage output result. + Attributes: uris (Sequence[str]): List of uris of the Cloud Storage objects. Example: @@ -554,6 +568,7 @@ class GcsOutputResult(proto.Message): class GcsDestination(proto.Message): r"""A Cloud Storage location. + Attributes: uri (str): The uri of the Cloud Storage object. It's the same uri that @@ -592,6 +607,7 @@ class GcsDestination(proto.Message): class BigQueryDestination(proto.Message): r"""A BigQuery destination for exporting assets to. + Attributes: dataset (str): Required. The BigQuery dataset in format @@ -719,6 +735,7 @@ class PartitionKey(proto.Enum): class PubsubDestination(proto.Message): r"""A Pub/Sub destination. + Attributes: topic (str): The name of the Pub/Sub topic to publish to. Example: @@ -733,6 +750,7 @@ class PubsubDestination(proto.Message): class FeedOutputConfig(proto.Message): r"""Output configuration for asset feed destination. + Attributes: pubsub_destination (google.cloud.asset_v1.types.PubsubDestination): Destination on Pub/Sub. @@ -838,6 +856,7 @@ class Feed(proto.Message): class SearchAllResourcesRequest(proto.Message): r"""Search all resources request. + Attributes: scope (str): Required. A scope can be a project, a folder, or an @@ -983,6 +1002,7 @@ class SearchAllResourcesRequest(proto.Message): class SearchAllResourcesResponse(proto.Message): r"""Search all resources response. + Attributes: results (Sequence[google.cloud.asset_v1.types.ResourceSearchResult]): A list of Resources that match the search @@ -1012,6 +1032,7 @@ def raw_page(self): class SearchAllIamPoliciesRequest(proto.Message): r"""Search all IAM policies request. + Attributes: scope (str): Required. A scope can be a project, a folder, or an @@ -1150,6 +1171,7 @@ class SearchAllIamPoliciesRequest(proto.Message): class SearchAllIamPoliciesResponse(proto.Message): r"""Search all IAM policies response. + Attributes: results (Sequence[google.cloud.asset_v1.types.IamPolicySearchResult]): A list of IamPolicy that match the search @@ -1179,6 +1201,7 @@ def raw_page(self): class IamPolicyAnalysisQuery(proto.Message): r"""## IAM policy analysis query message. + Attributes: scope (str): Required. The relative name of the root asset. Only @@ -1279,6 +1302,7 @@ class AccessSelector(proto.Message): class Options(proto.Message): r"""Contains query options. + Attributes: expand_groups (bool): Optional. If true, the identities section of the result will @@ -1395,6 +1419,7 @@ class Options(proto.Message): class ConditionContext(proto.Message): r"""The IAM conditions context. + Attributes: access_time (google.protobuf.timestamp_pb2.Timestamp): The hypothetical access timestamp to evaluate IAM @@ -1497,6 +1522,7 @@ class AnalyzeIamPolicyResponse(proto.Message): class IamPolicyAnalysis(proto.Message): r"""An analysis message to group the query and results. + Attributes: analysis_query (google.cloud.asset_v1.types.IamPolicyAnalysisQuery): The analysis query. @@ -1563,6 +1589,7 @@ class IamPolicyAnalysisOutputConfig(proto.Message): class GcsDestination(proto.Message): r"""A Cloud Storage location. + Attributes: uri (str): Required. The uri of the Cloud Storage object. It's the same @@ -1585,6 +1612,7 @@ class GcsDestination(proto.Message): class BigQueryDestination(proto.Message): r"""A BigQuery destination. + Attributes: dataset (str): Required. The BigQuery dataset in format @@ -1694,7 +1722,8 @@ class AnalyzeIamPolicyLongrunningRequest(proto.Message): class AnalyzeIamPolicyLongrunningResponse(proto.Message): r"""A response message for [AssetService.AnalyzeIamPolicyLongrunning][google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning]. - """ + + """ __all__ = tuple(sorted(__protobuf__.manifest)) diff --git a/tests/integration/goldens/asset/google/cloud/asset_v1/types/assets.py b/tests/integration/goldens/asset/google/cloud/asset_v1/types/assets.py index b2b5a9156b..ef30863e3c 100644 --- a/tests/integration/goldens/asset/google/cloud/asset_v1/types/assets.py +++ b/tests/integration/goldens/asset/google/cloud/asset_v1/types/assets.py @@ -98,6 +98,7 @@ class PriorAssetState(proto.Enum): class TimeWindow(proto.Message): r"""A time window specified by its ``start_time`` and ``end_time``. + Attributes: start_time (google.protobuf.timestamp_pb2.Timestamp): Start time of the time window (exclusive). @@ -253,6 +254,7 @@ class Asset(proto.Message): class Resource(proto.Message): r"""A representation of a Google Cloud resource. + Attributes: version (str): The API version. Example: ``v1`` @@ -707,6 +709,7 @@ class IamPolicySearchResult(proto.Message): class Explanation(proto.Message): r"""Explanation about the IAM policy search result. + Attributes: matched_permissions (Sequence[google.cloud.asset_v1.types.IamPolicySearchResult.Explanation.MatchedPermissionsEntry]): The map from roles to their included permissions that match @@ -723,6 +726,7 @@ class Explanation(proto.Message): class Permissions(proto.Message): r"""IAM permissions + Attributes: permissions (Sequence[str]): A list of permissions. A sample permission string: @@ -806,6 +810,7 @@ class IamPolicyAnalysisState(proto.Message): class ConditionEvaluation(proto.Message): r"""The Condition evaluation. + Attributes: evaluation_value (google.cloud.asset_v1.types.ConditionEvaluation.EvaluationValue): The evaluation result. @@ -855,6 +860,7 @@ class IamPolicyAnalysisResult(proto.Message): class Resource(proto.Message): r"""A Google Cloud resource under analysis. + Attributes: full_resource_name (str): The `full resource @@ -875,6 +881,7 @@ class Resource(proto.Message): class Access(proto.Message): r"""An IAM role or permission under analysis. + Attributes: role (str): The role. @@ -902,6 +909,7 @@ class Access(proto.Message): class Identity(proto.Message): r"""An identity under analysis. + Attributes: name (str): The identity name in any form of members appear in `IAM @@ -932,6 +940,7 @@ class Identity(proto.Message): class Edge(proto.Message): r"""A directional edge. + Attributes: source_node (str): The source node of the edge. For example, it @@ -1023,6 +1032,7 @@ class AccessControlList(proto.Message): class IdentityList(proto.Message): r"""The identities and group edges. + Attributes: identities (Sequence[google.cloud.asset_v1.types.IamPolicyAnalysisResult.Identity]): Only the identities that match one of the following diff --git a/tests/integration/goldens/credentials/google/iam/credentials_v1/types/common.py b/tests/integration/goldens/credentials/google/iam/credentials_v1/types/common.py index 17bb1ec371..9789d7f271 100644 --- a/tests/integration/goldens/credentials/google/iam/credentials_v1/types/common.py +++ b/tests/integration/goldens/credentials/google/iam/credentials_v1/types/common.py @@ -36,6 +36,7 @@ class GenerateAccessTokenRequest(proto.Message): r""" + Attributes: name (str): Required. The resource name of the service account for which @@ -92,6 +93,7 @@ class GenerateAccessTokenRequest(proto.Message): class GenerateAccessTokenResponse(proto.Message): r""" + Attributes: access_token (str): The OAuth 2.0 access token. @@ -113,6 +115,7 @@ class GenerateAccessTokenResponse(proto.Message): class SignBlobRequest(proto.Message): r""" + Attributes: name (str): Required. The resource name of the service account for which @@ -154,6 +157,7 @@ class SignBlobRequest(proto.Message): class SignBlobResponse(proto.Message): r""" + Attributes: key_id (str): The ID of the key used to sign the blob. @@ -173,6 +177,7 @@ class SignBlobResponse(proto.Message): class SignJwtRequest(proto.Message): r""" + Attributes: name (str): Required. The resource name of the service account for which @@ -215,6 +220,7 @@ class SignJwtRequest(proto.Message): class SignJwtResponse(proto.Message): r""" + Attributes: key_id (str): The ID of the key used to sign the JWT. @@ -234,6 +240,7 @@ class SignJwtResponse(proto.Message): class GenerateIdTokenRequest(proto.Message): r""" + Attributes: name (str): Required. The resource name of the service account for which @@ -285,6 +292,7 @@ class GenerateIdTokenRequest(proto.Message): class GenerateIdTokenResponse(proto.Message): r""" + Attributes: token (str): The OpenId Connect ID token. diff --git a/tests/integration/goldens/logging/google/cloud/logging_v2/types/log_entry.py b/tests/integration/goldens/logging/google/cloud/logging_v2/types/log_entry.py index 45b1c88587..18822503d9 100644 --- a/tests/integration/goldens/logging/google/cloud/logging_v2/types/log_entry.py +++ b/tests/integration/goldens/logging/google/cloud/logging_v2/types/log_entry.py @@ -35,6 +35,7 @@ class LogEntry(proto.Message): r"""An individual entry in a log. + Attributes: log_name (str): Required. The resource name of the log to which this log diff --git a/tests/integration/goldens/logging/google/cloud/logging_v2/types/logging.py b/tests/integration/goldens/logging/google/cloud/logging_v2/types/logging.py index cfae1781a7..edd2a7c33a 100644 --- a/tests/integration/goldens/logging/google/cloud/logging_v2/types/logging.py +++ b/tests/integration/goldens/logging/google/cloud/logging_v2/types/logging.py @@ -42,6 +42,7 @@ class DeleteLogRequest(proto.Message): r"""The parameters to DeleteLog. + Attributes: log_name (str): Required. The resource name of the log to delete: @@ -68,6 +69,7 @@ class DeleteLogRequest(proto.Message): class WriteLogEntriesRequest(proto.Message): r"""The parameters to WriteLogEntries. + Attributes: log_name (str): Optional. A default log resource name that is assigned to @@ -186,11 +188,13 @@ class WriteLogEntriesRequest(proto.Message): class WriteLogEntriesResponse(proto.Message): - r"""Result returned from WriteLogEntries. """ + r"""Result returned from WriteLogEntries. + """ class WriteLogEntriesPartialErrors(proto.Message): r"""Error details for WriteLogEntries with partial success. + Attributes: log_entry_errors (Sequence[google.cloud.logging_v2.types.WriteLogEntriesPartialErrors.LogEntryErrorsEntry]): When ``WriteLogEntriesRequest.partial_success`` is true, @@ -212,6 +216,7 @@ class WriteLogEntriesPartialErrors(proto.Message): class ListLogEntriesRequest(proto.Message): r"""The parameters to ``ListLogEntries``. + Attributes: resource_names (Sequence[str]): Required. Names of one or more parent resources from which @@ -289,6 +294,7 @@ class ListLogEntriesRequest(proto.Message): class ListLogEntriesResponse(proto.Message): r"""Result returned from ``ListLogEntries``. + Attributes: entries (Sequence[google.cloud.logging_v2.types.LogEntry]): A list of log entries. If ``entries`` is empty, @@ -328,6 +334,7 @@ def raw_page(self): class ListMonitoredResourceDescriptorsRequest(proto.Message): r"""The parameters to ListMonitoredResourceDescriptors + Attributes: page_size (int): Optional. The maximum number of results to return from this @@ -354,6 +361,7 @@ class ListMonitoredResourceDescriptorsRequest(proto.Message): class ListMonitoredResourceDescriptorsResponse(proto.Message): r"""Result returned from ListMonitoredResourceDescriptors. + Attributes: resource_descriptors (Sequence[google.api.monitored_resource_pb2.MonitoredResourceDescriptor]): A list of resource descriptors. @@ -381,6 +389,7 @@ def raw_page(self): class ListLogsRequest(proto.Message): r"""The parameters to ListLogs. + Attributes: parent (str): Required. The resource name that owns the logs: @@ -434,6 +443,7 @@ class ListLogsRequest(proto.Message): class ListLogsResponse(proto.Message): r"""Result returned from ListLogs. + Attributes: log_names (Sequence[str]): A list of log names. For example, @@ -462,6 +472,7 @@ def raw_page(self): class TailLogEntriesRequest(proto.Message): r"""The parameters to ``TailLogEntries``. + Attributes: resource_names (Sequence[str]): Required. Name of a parent resource from which to retrieve @@ -515,6 +526,7 @@ class TailLogEntriesRequest(proto.Message): class TailLogEntriesResponse(proto.Message): r"""Result returned from ``TailLogEntries``. + Attributes: entries (Sequence[google.cloud.logging_v2.types.LogEntry]): A list of log entries. Each response in the stream will @@ -534,6 +546,7 @@ class TailLogEntriesResponse(proto.Message): class SuppressionInfo(proto.Message): r"""Information about entries that were omitted from the session. + Attributes: reason (google.cloud.logging_v2.types.TailLogEntriesResponse.SuppressionInfo.Reason): The reason that entries were omitted from the diff --git a/tests/integration/goldens/logging/google/cloud/logging_v2/types/logging_config.py b/tests/integration/goldens/logging/google/cloud/logging_v2/types/logging_config.py index a4b7b2571d..1122a62009 100644 --- a/tests/integration/goldens/logging/google/cloud/logging_v2/types/logging_config.py +++ b/tests/integration/goldens/logging/google/cloud/logging_v2/types/logging_config.py @@ -69,6 +69,7 @@ class LifecycleState(proto.Enum): class LogBucket(proto.Message): r"""Describes a repository of logs. + Attributes: name (str): The resource name of the bucket. For example: @@ -138,6 +139,7 @@ class LogBucket(proto.Message): class LogView(proto.Message): r"""Describes a view over logs in a bucket. + Attributes: name (str): The resource name of the view. @@ -385,6 +387,7 @@ class BigQueryOptions(proto.Message): class ListBucketsRequest(proto.Message): r"""The parameters to ``ListBuckets``. + Attributes: parent (str): Required. The parent resource whose buckets are to be @@ -429,6 +432,7 @@ class ListBucketsRequest(proto.Message): class ListBucketsResponse(proto.Message): r"""The response from ListBuckets. + Attributes: buckets (Sequence[google.cloud.logging_v2.types.LogBucket]): A list of buckets. @@ -456,6 +460,7 @@ def raw_page(self): class CreateBucketRequest(proto.Message): r"""The parameters to ``CreateBucket``. + Attributes: parent (str): Required. The resource in which to create the bucket: @@ -494,6 +499,7 @@ class CreateBucketRequest(proto.Message): class UpdateBucketRequest(proto.Message): r"""The parameters to ``UpdateBucket``. + Attributes: name (str): Required. The full resource name of the bucket to update. @@ -542,6 +548,7 @@ class UpdateBucketRequest(proto.Message): class GetBucketRequest(proto.Message): r"""The parameters to ``GetBucket``. + Attributes: name (str): Required. The resource name of the bucket: @@ -565,6 +572,7 @@ class GetBucketRequest(proto.Message): class DeleteBucketRequest(proto.Message): r"""The parameters to ``DeleteBucket``. + Attributes: name (str): Required. The full resource name of the bucket to delete. @@ -588,6 +596,7 @@ class DeleteBucketRequest(proto.Message): class UndeleteBucketRequest(proto.Message): r"""The parameters to ``UndeleteBucket``. + Attributes: name (str): Required. The full resource name of the bucket to undelete. @@ -611,6 +620,7 @@ class UndeleteBucketRequest(proto.Message): class ListViewsRequest(proto.Message): r"""The parameters to ``ListViews``. + Attributes: parent (str): Required. The bucket whose views are to be listed: @@ -647,6 +657,7 @@ class ListViewsRequest(proto.Message): class ListViewsResponse(proto.Message): r"""The response from ListViews. + Attributes: views (Sequence[google.cloud.logging_v2.types.LogView]): A list of views. @@ -674,6 +685,7 @@ def raw_page(self): class CreateViewRequest(proto.Message): r"""The parameters to ``CreateView``. + Attributes: parent (str): Required. The bucket in which to create the view @@ -707,6 +719,7 @@ class CreateViewRequest(proto.Message): class UpdateViewRequest(proto.Message): r"""The parameters to ``UpdateView``. + Attributes: name (str): Required. The full resource name of the view to update @@ -749,6 +762,7 @@ class UpdateViewRequest(proto.Message): class GetViewRequest(proto.Message): r"""The parameters to ``GetView``. + Attributes: name (str): Required. The resource name of the policy: @@ -769,6 +783,7 @@ class GetViewRequest(proto.Message): class DeleteViewRequest(proto.Message): r"""The parameters to ``DeleteView``. + Attributes: name (str): Required. The full resource name of the view to delete: @@ -789,6 +804,7 @@ class DeleteViewRequest(proto.Message): class ListSinksRequest(proto.Message): r"""The parameters to ``ListSinks``. + Attributes: parent (str): Required. The parent resource whose sinks are to be listed: @@ -828,6 +844,7 @@ class ListSinksRequest(proto.Message): class ListSinksResponse(proto.Message): r"""Result returned from ``ListSinks``. + Attributes: sinks (Sequence[google.cloud.logging_v2.types.LogSink]): A list of sinks. @@ -855,6 +872,7 @@ def raw_page(self): class GetSinkRequest(proto.Message): r"""The parameters to ``GetSink``. + Attributes: sink_name (str): Required. The resource name of the sink: @@ -877,6 +895,7 @@ class GetSinkRequest(proto.Message): class CreateSinkRequest(proto.Message): r"""The parameters to ``CreateSink``. + Attributes: parent (str): Required. The resource in which to create the sink: @@ -927,6 +946,7 @@ class CreateSinkRequest(proto.Message): class UpdateSinkRequest(proto.Message): r"""The parameters to ``UpdateSink``. + Attributes: sink_name (str): Required. The full resource name of the sink to update, @@ -999,6 +1019,7 @@ class UpdateSinkRequest(proto.Message): class DeleteSinkRequest(proto.Message): r"""The parameters to ``DeleteSink``. + Attributes: sink_name (str): Required. The full resource name of the sink to delete, @@ -1096,6 +1117,7 @@ class LogExclusion(proto.Message): class ListExclusionsRequest(proto.Message): r"""The parameters to ``ListExclusions``. + Attributes: parent (str): Required. The parent resource whose exclusions are to be @@ -1136,6 +1158,7 @@ class ListExclusionsRequest(proto.Message): class ListExclusionsResponse(proto.Message): r"""Result returned from ``ListExclusions``. + Attributes: exclusions (Sequence[google.cloud.logging_v2.types.LogExclusion]): A list of exclusions. @@ -1163,6 +1186,7 @@ def raw_page(self): class GetExclusionRequest(proto.Message): r"""The parameters to ``GetExclusion``. + Attributes: name (str): Required. The resource name of an existing exclusion: @@ -1186,6 +1210,7 @@ class GetExclusionRequest(proto.Message): class CreateExclusionRequest(proto.Message): r"""The parameters to ``CreateExclusion``. + Attributes: parent (str): Required. The parent resource in which to create the @@ -1219,6 +1244,7 @@ class CreateExclusionRequest(proto.Message): class UpdateExclusionRequest(proto.Message): r"""The parameters to ``UpdateExclusion``. + Attributes: name (str): Required. The resource name of the exclusion to update: @@ -1266,6 +1292,7 @@ class UpdateExclusionRequest(proto.Message): class DeleteExclusionRequest(proto.Message): r"""The parameters to ``DeleteExclusion``. + Attributes: name (str): Required. The resource name of an existing exclusion to diff --git a/tests/integration/goldens/logging/google/cloud/logging_v2/types/logging_metrics.py b/tests/integration/goldens/logging/google/cloud/logging_v2/types/logging_metrics.py index 252e43760b..1ec255b253 100644 --- a/tests/integration/goldens/logging/google/cloud/logging_v2/types/logging_metrics.py +++ b/tests/integration/goldens/logging/google/cloud/logging_v2/types/logging_metrics.py @@ -216,6 +216,7 @@ class ApiVersion(proto.Enum): class ListLogMetricsRequest(proto.Message): r"""The parameters to ListLogMetrics. + Attributes: parent (str): Required. The name of the project containing the metrics: @@ -252,6 +253,7 @@ class ListLogMetricsRequest(proto.Message): class ListLogMetricsResponse(proto.Message): r"""Result returned from ListLogMetrics. + Attributes: metrics (Sequence[google.cloud.logging_v2.types.LogMetric]): A list of logs-based metrics. @@ -279,6 +281,7 @@ def raw_page(self): class GetLogMetricRequest(proto.Message): r"""The parameters to GetLogMetric. + Attributes: metric_name (str): Required. The resource name of the desired metric: @@ -296,6 +299,7 @@ class GetLogMetricRequest(proto.Message): class CreateLogMetricRequest(proto.Message): r"""The parameters to CreateLogMetric. + Attributes: parent (str): Required. The resource name of the project in which to @@ -324,6 +328,7 @@ class CreateLogMetricRequest(proto.Message): class UpdateLogMetricRequest(proto.Message): r"""The parameters to UpdateLogMetric. + Attributes: metric_name (str): Required. The resource name of the metric to update: @@ -353,6 +358,7 @@ class UpdateLogMetricRequest(proto.Message): class DeleteLogMetricRequest(proto.Message): r"""The parameters to DeleteLogMetric. + Attributes: metric_name (str): Required. The resource name of the metric to delete: diff --git a/tests/integration/goldens/redis/google/cloud/redis_v1/types/cloud_redis.py b/tests/integration/goldens/redis/google/cloud/redis_v1/types/cloud_redis.py index 9caecb067b..793fa802c0 100644 --- a/tests/integration/goldens/redis/google/cloud/redis_v1/types/cloud_redis.py +++ b/tests/integration/goldens/redis/google/cloud/redis_v1/types/cloud_redis.py @@ -46,6 +46,7 @@ class Instance(proto.Message): r"""A Google Cloud Redis instance. + Attributes: name (str): Required. Unique name of the resource in this scope @@ -484,6 +485,7 @@ class DeleteInstanceRequest(proto.Message): class GcsSource(proto.Message): r"""The Cloud Storage location for the input content + Attributes: uri (str): Required. Source data URI. (e.g. @@ -498,6 +500,7 @@ class GcsSource(proto.Message): class InputConfig(proto.Message): r"""The input content + Attributes: gcs_source (google.cloud.redis_v1.types.GcsSource): Google Cloud Storage location where input @@ -538,6 +541,7 @@ class ImportInstanceRequest(proto.Message): class GcsDestination(proto.Message): r"""The Cloud Storage location for the output content + Attributes: uri (str): Required. Data destination URI (e.g. @@ -553,6 +557,7 @@ class GcsDestination(proto.Message): class OutputConfig(proto.Message): r"""The output content + Attributes: gcs_destination (google.cloud.redis_v1.types.GcsDestination): Google Cloud Storage destination for output @@ -626,6 +631,7 @@ class DataProtectionMode(proto.Enum): class OperationMetadata(proto.Message): r"""Represents the v1 metadata of the long-running operation. + Attributes: create_time (google.protobuf.timestamp_pb2.Timestamp): Creation timestamp. @@ -702,7 +708,8 @@ class LocationMetadata(proto.Message): class ZoneMetadata(proto.Message): r"""Defines specific information for a particular zone. Currently empty and reserved for future use only. - """ + + """ __all__ = tuple(sorted(__protobuf__.manifest))