Skip to content

Commit 8e53145

Browse files
docs: [google-cloud-servicehealth] update documentation for various messages (#13374)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 707746489 Source-Link: googleapis/googleapis@09d4103 Source-Link: googleapis/googleapis-gen@63936c2 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXNlcnZpY2VoZWFsdGgvLk93bEJvdC55YW1sIiwiaCI6IjYzOTM2YzIwNGRkMGU4YWUzMjZjMzdkZmFmZmQ5ODczYjU2MzU5NDYifQ== --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <[email protected]>
1 parent 6ddf897 commit 8e53145

File tree

7 files changed

+66
-57
lines changed

7 files changed

+66
-57
lines changed

packages/google-cloud-servicehealth/google/cloud/servicehealth/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "0.1.9" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-servicehealth/google/cloud/servicehealth_v1/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "0.1.9" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-servicehealth/google/cloud/servicehealth_v1/services/service_health/async_client.py

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -341,8 +341,7 @@ async def sample_list_events():
341341
342342
Args:
343343
request (Optional[Union[google.cloud.servicehealth_v1.types.ListEventsRequest, dict]]):
344-
The request object. Message for requesting list of
345-
events.
344+
The request object. Requests list of events.
346345
parent (:class:`str`):
347346
Required. Parent value using the form
348347
``projects/{project_id}/locations/{location}/events``.
@@ -366,7 +365,7 @@ async def sample_list_events():
366365
367366
Returns:
368367
google.cloud.servicehealth_v1.services.service_health.pagers.ListEventsAsyncPager:
369-
Message for response to listing
368+
Response to request for listing
370369
events.
371370
Iterating over this object will yield
372371
results and resolve additional pages
@@ -470,7 +469,8 @@ async def sample_get_event():
470469
471470
Args:
472471
request (Optional[Union[google.cloud.servicehealth_v1.types.GetEventRequest, dict]]):
473-
The request object. Message for getting an event.
472+
The request object. Gets information about a specific
473+
event.
474474
name (:class:`str`):
475475
Required. Unique name of the event in this scope
476476
including project and location using the form
@@ -590,8 +590,8 @@ async def sample_list_organization_events():
590590
591591
Args:
592592
request (Optional[Union[google.cloud.servicehealth_v1.types.ListOrganizationEventsRequest, dict]]):
593-
The request object. Message for requesting list of
594-
organization events.
593+
The request object. Requests list of events that affect
594+
an organization.
595595
parent (:class:`str`):
596596
Required. Parent value using the form
597597
``organizations/{organization_id}/locations/{location}/organizationEvents``.
@@ -617,7 +617,7 @@ async def sample_list_organization_events():
617617
618618
Returns:
619619
google.cloud.servicehealth_v1.services.service_health.pagers.ListOrganizationEventsAsyncPager:
620-
Message for response to listing
620+
Response to request for listing
621621
organization events.
622622
Iterating over this object will yield
623623
results and resolve additional pages
@@ -723,8 +723,8 @@ async def sample_get_organization_event():
723723
724724
Args:
725725
request (Optional[Union[google.cloud.servicehealth_v1.types.GetOrganizationEventRequest, dict]]):
726-
The request object. Message for getting an organization
727-
event.
726+
The request object. Gets information about a specific
727+
event affecting an organization.
728728
name (:class:`str`):
729729
Required. Unique name of the event in this scope
730730
including organization and event ID using the form
@@ -845,8 +845,8 @@ async def sample_list_organization_impacts():
845845
846846
Args:
847847
request (Optional[Union[google.cloud.servicehealth_v1.types.ListOrganizationImpactsRequest, dict]]):
848-
The request object. Message for requesting list of
849-
organization impacts.
848+
The request object. Requests list of projects under an
849+
organization affected by an event.
850850
parent (:class:`str`):
851851
Required. Parent value using the form
852852
``organizations/{organization_id}/locations/{location}/organizationImpacts``.
@@ -869,8 +869,10 @@ async def sample_list_organization_impacts():
869869
870870
Returns:
871871
google.cloud.servicehealth_v1.services.service_health.pagers.ListOrganizationImpactsAsyncPager:
872-
Message for response to listing
873-
organization impacts.
872+
Response to request for listing
873+
projects under an organization affected
874+
by an event.
875+
874876
Iterating over this object will yield
875877
results and resolve additional pages
876878
automatically.
@@ -976,8 +978,8 @@ async def sample_get_organization_impact():
976978
977979
Args:
978980
request (Optional[Union[google.cloud.servicehealth_v1.types.GetOrganizationImpactRequest, dict]]):
979-
The request object. Message for getting an organization
980-
impact.
981+
The request object. Gets information about an event that
982+
affects a project under an organization.
981983
name (:class:`str`):
982984
Required. Name of the resource using the form
983985
``organizations/{organization_id}/locations/global/organizationImpacts/{organization_impact_id}``.

packages/google-cloud-servicehealth/google/cloud/servicehealth_v1/services/service_health/client.py

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -767,8 +767,7 @@ def sample_list_events():
767767
768768
Args:
769769
request (Union[google.cloud.servicehealth_v1.types.ListEventsRequest, dict]):
770-
The request object. Message for requesting list of
771-
events.
770+
The request object. Requests list of events.
772771
parent (str):
773772
Required. Parent value using the form
774773
``projects/{project_id}/locations/{location}/events``.
@@ -792,7 +791,7 @@ def sample_list_events():
792791
793792
Returns:
794793
google.cloud.servicehealth_v1.services.service_health.pagers.ListEventsPager:
795-
Message for response to listing
794+
Response to request for listing
796795
events.
797796
Iterating over this object will yield
798797
results and resolve additional pages
@@ -893,7 +892,8 @@ def sample_get_event():
893892
894893
Args:
895894
request (Union[google.cloud.servicehealth_v1.types.GetEventRequest, dict]):
896-
The request object. Message for getting an event.
895+
The request object. Gets information about a specific
896+
event.
897897
name (str):
898898
Required. Unique name of the event in this scope
899899
including project and location using the form
@@ -1010,8 +1010,8 @@ def sample_list_organization_events():
10101010
10111011
Args:
10121012
request (Union[google.cloud.servicehealth_v1.types.ListOrganizationEventsRequest, dict]):
1013-
The request object. Message for requesting list of
1014-
organization events.
1013+
The request object. Requests list of events that affect
1014+
an organization.
10151015
parent (str):
10161016
Required. Parent value using the form
10171017
``organizations/{organization_id}/locations/{location}/organizationEvents``.
@@ -1037,7 +1037,7 @@ def sample_list_organization_events():
10371037
10381038
Returns:
10391039
google.cloud.servicehealth_v1.services.service_health.pagers.ListOrganizationEventsPager:
1040-
Message for response to listing
1040+
Response to request for listing
10411041
organization events.
10421042
Iterating over this object will yield
10431043
results and resolve additional pages
@@ -1140,8 +1140,8 @@ def sample_get_organization_event():
11401140
11411141
Args:
11421142
request (Union[google.cloud.servicehealth_v1.types.GetOrganizationEventRequest, dict]):
1143-
The request object. Message for getting an organization
1144-
event.
1143+
The request object. Gets information about a specific
1144+
event affecting an organization.
11451145
name (str):
11461146
Required. Unique name of the event in this scope
11471147
including organization and event ID using the form
@@ -1259,8 +1259,8 @@ def sample_list_organization_impacts():
12591259
12601260
Args:
12611261
request (Union[google.cloud.servicehealth_v1.types.ListOrganizationImpactsRequest, dict]):
1262-
The request object. Message for requesting list of
1263-
organization impacts.
1262+
The request object. Requests list of projects under an
1263+
organization affected by an event.
12641264
parent (str):
12651265
Required. Parent value using the form
12661266
``organizations/{organization_id}/locations/{location}/organizationImpacts``.
@@ -1283,8 +1283,10 @@ def sample_list_organization_impacts():
12831283
12841284
Returns:
12851285
google.cloud.servicehealth_v1.services.service_health.pagers.ListOrganizationImpactsPager:
1286-
Message for response to listing
1287-
organization impacts.
1286+
Response to request for listing
1287+
projects under an organization affected
1288+
by an event.
1289+
12881290
Iterating over this object will yield
12891291
results and resolve additional pages
12901292
automatically.
@@ -1389,8 +1391,8 @@ def sample_get_organization_impact():
13891391
13901392
Args:
13911393
request (Union[google.cloud.servicehealth_v1.types.GetOrganizationImpactRequest, dict]):
1392-
The request object. Message for getting an organization
1393-
impact.
1394+
The request object. Gets information about an event that
1395+
affects a project under an organization.
13941396
name (str):
13951397
Required. Name of the resource using the form
13961398
``organizations/{organization_id}/locations/global/organizationImpacts/{organization_impact_id}``.

packages/google-cloud-servicehealth/google/cloud/servicehealth_v1/services/service_health/transports/rest.py

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,8 @@ def __call__(
453453
454454
Args:
455455
request (~.event_resources.GetEventRequest):
456-
The request object. Message for getting an event.
456+
The request object. Gets information about a specific
457+
event.
457458
retry (google.api_core.retry.Retry): Designation of what errors, if any,
458459
should be retried.
459460
timeout (float): The timeout for this request.
@@ -602,8 +603,8 @@ def __call__(
602603
603604
Args:
604605
request (~.event_resources.GetOrganizationEventRequest):
605-
The request object. Message for getting an organization
606-
event.
606+
The request object. Gets information about a specific
607+
event affecting an organization.
607608
retry (google.api_core.retry.Retry): Designation of what errors, if any,
608609
should be retried.
609610
timeout (float): The timeout for this request.
@@ -753,8 +754,8 @@ def __call__(
753754
754755
Args:
755756
request (~.event_resources.GetOrganizationImpactRequest):
756-
The request object. Message for getting an organization
757-
impact.
757+
The request object. Gets information about an event that
758+
affects a project under an organization.
758759
retry (google.api_core.retry.Retry): Designation of what errors, if any,
759760
should be retried.
760761
timeout (float): The timeout for this request.
@@ -902,8 +903,7 @@ def __call__(
902903
903904
Args:
904905
request (~.event_resources.ListEventsRequest):
905-
The request object. Message for requesting list of
906-
events.
906+
The request object. Requests list of events.
907907
retry (google.api_core.retry.Retry): Designation of what errors, if any,
908908
should be retried.
909909
timeout (float): The timeout for this request.
@@ -914,7 +914,7 @@ def __call__(
914914
915915
Returns:
916916
~.event_resources.ListEventsResponse:
917-
Message for response to listing
917+
Response to request for listing
918918
events.
919919
920920
"""
@@ -1052,8 +1052,8 @@ def __call__(
10521052
10531053
Args:
10541054
request (~.event_resources.ListOrganizationEventsRequest):
1055-
The request object. Message for requesting list of
1056-
organization events.
1055+
The request object. Requests list of events that affect
1056+
an organization.
10571057
retry (google.api_core.retry.Retry): Designation of what errors, if any,
10581058
should be retried.
10591059
timeout (float): The timeout for this request.
@@ -1064,7 +1064,7 @@ def __call__(
10641064
10651065
Returns:
10661066
~.event_resources.ListOrganizationEventsResponse:
1067-
Message for response to listing
1067+
Response to request for listing
10681068
organization events.
10691069
10701070
"""
@@ -1200,8 +1200,8 @@ def __call__(
12001200
12011201
Args:
12021202
request (~.event_resources.ListOrganizationImpactsRequest):
1203-
The request object. Message for requesting list of
1204-
organization impacts.
1203+
The request object. Requests list of projects under an
1204+
organization affected by an event.
12051205
retry (google.api_core.retry.Retry): Designation of what errors, if any,
12061206
should be retried.
12071207
timeout (float): The timeout for this request.
@@ -1212,8 +1212,9 @@ def __call__(
12121212
12131213
Returns:
12141214
~.event_resources.ListOrganizationImpactsResponse:
1215-
Message for response to listing
1216-
organization impacts.
1215+
Response to request for listing
1216+
projects under an organization affected
1217+
by an event.
12171218
12181219
"""
12191220

packages/google-cloud-servicehealth/google/cloud/servicehealth_v1/types/event_resources.py

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ class Asset(proto.Message):
737737

738738

739739
class ListEventsRequest(proto.Message):
740-
r"""Message for requesting list of events.
740+
r"""Requests list of events.
741741
742742
Attributes:
743743
parent (str):
@@ -816,7 +816,7 @@ class ListEventsRequest(proto.Message):
816816

817817

818818
class ListEventsResponse(proto.Message):
819-
r"""Message for response to listing events.
819+
r"""Response to request for listing events.
820820
821821
Attributes:
822822
events (MutableSequence[google.cloud.servicehealth_v1.types.Event]):
@@ -853,7 +853,7 @@ def raw_page(self):
853853

854854

855855
class GetEventRequest(proto.Message):
856-
r"""Message for getting an event.
856+
r"""Gets information about a specific event.
857857
858858
Attributes:
859859
name (str):
@@ -873,7 +873,7 @@ class GetEventRequest(proto.Message):
873873

874874

875875
class ListOrganizationEventsRequest(proto.Message):
876-
r"""Message for requesting list of organization events.
876+
r"""Requests list of events that affect an organization.
877877
878878
Attributes:
879879
parent (str):
@@ -953,7 +953,7 @@ class ListOrganizationEventsRequest(proto.Message):
953953

954954

955955
class ListOrganizationEventsResponse(proto.Message):
956-
r"""Message for response to listing organization events.
956+
r"""Response to request for listing organization events.
957957
958958
Attributes:
959959
organization_events (MutableSequence[google.cloud.servicehealth_v1.types.OrganizationEvent]):
@@ -991,7 +991,8 @@ def raw_page(self):
991991

992992

993993
class GetOrganizationEventRequest(proto.Message):
994-
r"""Message for getting an organization event.
994+
r"""Gets information about a specific event affecting an
995+
organization.
995996
996997
Attributes:
997998
name (str):
@@ -1013,7 +1014,8 @@ class GetOrganizationEventRequest(proto.Message):
10131014

10141015

10151016
class ListOrganizationImpactsRequest(proto.Message):
1016-
r"""Message for requesting list of organization impacts.
1017+
r"""Requests list of projects under an organization affected by
1018+
an event.
10171019
10181020
Attributes:
10191021
parent (str):
@@ -1085,7 +1087,8 @@ class ListOrganizationImpactsRequest(proto.Message):
10851087

10861088

10871089
class ListOrganizationImpactsResponse(proto.Message):
1088-
r"""Message for response to listing organization impacts.
1090+
r"""Response to request for listing projects under an
1091+
organization affected by an event.
10891092
10901093
Attributes:
10911094
organization_impacts (MutableSequence[google.cloud.servicehealth_v1.types.OrganizationImpact]):
@@ -1124,7 +1127,8 @@ def raw_page(self):
11241127

11251128

11261129
class GetOrganizationImpactRequest(proto.Message):
1127-
r"""Message for getting an organization impact.
1130+
r"""Gets information about an event that affects a project under
1131+
an organization.
11281132
11291133
Attributes:
11301134
name (str):

packages/google-cloud-servicehealth/samples/generated_samples/snippet_metadata_google.cloud.servicehealth.v1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-servicehealth",
11-
"version": "0.1.9"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

0 commit comments

Comments
 (0)