Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/google/cloud/errorreporting_v1beta1/types/error_group_service.py: 100%

10 statements  

« prev     ^ index     » next       coverage.py v7.2.2, created at 2023-03-26 07:30 +0000

1# -*- coding: utf-8 -*- 

2# Copyright 2022 Google LLC 

3# 

4# Licensed under the Apache License, Version 2.0 (the "License"); 

5# you may not use this file except in compliance with the License. 

6# You may obtain a copy of the License at 

7# 

8# http://www.apache.org/licenses/LICENSE-2.0 

9# 

10# Unless required by applicable law or agreed to in writing, software 

11# distributed under the License is distributed on an "AS IS" BASIS, 

12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 

13# See the License for the specific language governing permissions and 

14# limitations under the License. 

15# 

16from __future__ import annotations 

17 

18from typing import MutableMapping, MutableSequence 

19 

20import proto # type: ignore 

21 

22from google.cloud.errorreporting_v1beta1.types import common 

23 

24 

25__protobuf__ = proto.module( 

26 package="google.devtools.clouderrorreporting.v1beta1", 

27 manifest={ 

28 "GetGroupRequest", 

29 "UpdateGroupRequest", 

30 }, 

31) 

32 

33 

34class GetGroupRequest(proto.Message): 

35 r"""A request to return an individual group. 

36 

37 Attributes: 

38 group_name (str): 

39 Required. The group resource name. Written as 

40 ``projects/{projectID}/groups/{group_name}``. Call 

41 ```groupStats.list`` <https://cloud.google.com/error-reporting/reference/rest/v1beta1/projects.groupStats/list>`__ 

42 to return a list of groups belonging to this project. 

43 

44 Example: ``projects/my-project-123/groups/my-group`` 

45 """ 

46 

47 group_name: str = proto.Field( 

48 proto.STRING, 

49 number=1, 

50 ) 

51 

52 

53class UpdateGroupRequest(proto.Message): 

54 r"""A request to replace the existing data for the given group. 

55 

56 Attributes: 

57 group (google.cloud.errorreporting_v1beta1.types.ErrorGroup): 

58 Required. The group which replaces the 

59 resource on the server. 

60 """ 

61 

62 group: common.ErrorGroup = proto.Field( 

63 proto.MESSAGE, 

64 number=1, 

65 message=common.ErrorGroup, 

66 ) 

67 

68 

69__all__ = tuple(sorted(__protobuf__.manifest))