google-cloud-monitoring-v3 0.7.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +1 -1
  3. data/AUTHENTICATION.md +7 -25
  4. data/README.md +11 -6
  5. data/lib/google/cloud/monitoring/v3/alert_policy_service/client.rb +4 -4
  6. data/lib/google/cloud/monitoring/v3/alert_policy_service.rb +3 -3
  7. data/lib/google/cloud/monitoring/v3/uptime_check_service/client.rb +6 -4
  8. data/lib/google/cloud/monitoring/v3/version.rb +1 -1
  9. data/lib/google/cloud/monitoring/v3.rb +2 -0
  10. data/lib/google/monitoring/v3/alert_pb.rb +11 -1
  11. data/lib/google/monitoring/v3/alert_service_pb.rb +2 -1
  12. data/lib/google/monitoring/v3/alert_service_services_pb.rb +3 -3
  13. data/lib/google/monitoring/v3/common_pb.rb +2 -1
  14. data/lib/google/monitoring/v3/group_pb.rb +2 -1
  15. data/lib/google/monitoring/v3/group_service_pb.rb +2 -1
  16. data/lib/google/monitoring/v3/metric_pb.rb +2 -3
  17. data/lib/google/monitoring/v3/metric_service_pb.rb +2 -3
  18. data/lib/google/monitoring/v3/mutation_record_pb.rb +2 -1
  19. data/lib/google/monitoring/v3/notification_pb.rb +2 -1
  20. data/lib/google/monitoring/v3/notification_service_pb.rb +2 -2
  21. data/lib/google/monitoring/v3/query_service_pb.rb +2 -3
  22. data/lib/google/monitoring/v3/service_pb.rb +2 -3
  23. data/lib/google/monitoring/v3/service_service_pb.rb +2 -1
  24. data/lib/google/monitoring/v3/uptime_pb.rb +2 -1
  25. data/lib/google/monitoring/v3/uptime_service_pb.rb +2 -3
  26. data/proto_docs/google/api/resource.rb +10 -71
  27. data/proto_docs/google/monitoring/v3/alert.rb +33 -4
  28. data/proto_docs/google/monitoring/v3/alert_service.rb +1 -1
  29. data/proto_docs/google/monitoring/v3/uptime_service.rb +6 -4
  30. data/proto_docs/google/protobuf/any.rb +3 -3
  31. data/proto_docs/google/protobuf/empty.rb +0 -2
  32. data/proto_docs/google/protobuf/struct.rb +2 -2
  33. metadata +12 -13
  34. data/proto_docs/google/longrunning/operations.rb +0 -164
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bb93a96dc7f90b835c68f1c88356d7c3b220de2dba50b257206d8103b3f4af4c
4
- data.tar.gz: 8e05e8f3b725b8723d93cb3dc9ba566a30023583cef96a21f22e543822cb5c73
3
+ metadata.gz: 6f4a2337dbf0ef457c6d081534bebf6bd7e520c20206d888197b9d0b4ba4bef8
4
+ data.tar.gz: e2d84d8f5d5c8b1a3b499a62c9e2def1dd6038547c508a212f61a69b297bcd48
5
5
  SHA512:
6
- metadata.gz: 4949a76951ff367d087dcdc6c0976750a8c8bba549eb65b1c846e0c2568d40f21ff56617e6d7444e6237bf3abef22ec655a5424bcc50e75996e117eb78f96d1b
7
- data.tar.gz: fca1b1d8318cd3a600c602cfe39921c731ad261ccd1fd5487cab531199c0bd2ee30d8a90de1fc5668f39cb101a727ea59bf89e4896c1ffc0a9002e9935428c1b
6
+ metadata.gz: 62cd6eac0899172c7158161e8b15d6c7f4a7e637411b775a9b581ad56961550f6fe2b29887a215602eee0a43915f8a8308c8fdb7a890abd47820a5ac5f591efb
7
+ data.tar.gz: 7d9a6175333c76488d187ece3deaca8d95ac15e259c977ff9102c104caf638513d1a60d5f293389e9619812280fab3671059821d1333b1cd3db2df09fd5bc9c9
data/.yardopts CHANGED
@@ -1,5 +1,5 @@
1
1
  --no-private
2
- --title=Cloud Monitoring V3 API
2
+ --title="Cloud Monitoring V3 API"
3
3
  --exclude _pb\.rb$
4
4
  --markup markdown
5
5
  --markup-provider redcarpet
data/AUTHENTICATION.md CHANGED
@@ -120,15 +120,6 @@ To configure your system for this, simply:
120
120
  **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
121
121
  *should* only be used during development.
122
122
 
123
- [gce-how-to]: https://cloud.google.com/compute/docs/authentication#using
124
- [dev-console]: https://console.cloud.google.com/project
125
-
126
- [enable-apis]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/enable-apis.png
127
-
128
- [create-new-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account.png
129
- [create-new-service-account-existing-keys]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account-existing-keys.png
130
- [reuse-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/reuse-service-account.png
131
-
132
123
  ## Creating a Service Account
133
124
 
134
125
  Google Cloud requires **Service Account Credentials** to
@@ -139,31 +130,22 @@ If you are not running this client within
139
130
  [Google Cloud Platform environments](#google-cloud-platform-environments), you
140
131
  need a Google Developers service account.
141
132
 
142
- 1. Visit the [Google Developers Console][dev-console].
133
+ 1. Visit the [Google Cloud Console](https://console.cloud.google.com/project).
143
134
  2. Create a new project or click on an existing project.
144
- 3. Activate the slide-out navigation tray and select **API Manager**. From
135
+ 3. Activate the menu in the upper left and select **APIs & Services**. From
145
136
  here, you will enable the APIs that your application requires.
146
137
 
147
- ![Enable the APIs that your application requires][enable-apis]
148
-
149
138
  *Note: You may need to enable billing in order to use these services.*
150
139
 
151
140
  4. Select **Credentials** from the side navigation.
152
141
 
153
- You should see a screen like one of the following.
154
-
155
- ![Create a new service account][create-new-service-account]
156
-
157
- ![Create a new service account With Existing Keys][create-new-service-account-existing-keys]
158
-
159
- Find the "Add credentials" drop down and select "Service account" to be
160
- guided through downloading a new JSON key file.
142
+ Find the "Create credentials" drop down near the top of the page, and select
143
+ "Service account" to be guided through downloading a new JSON key file.
161
144
 
162
145
  If you want to re-use an existing service account, you can easily generate a
163
- new key file. Just select the account you wish to re-use, and click "Generate
164
- new JSON key":
165
-
166
- ![Re-use an existing service account][reuse-service-account]
146
+ new key file. Just select the account you wish to re-use, click the pencil
147
+ tool on the right side to edit the service account, select the **Keys** tab,
148
+ and then select **Add Key**.
167
149
 
168
150
  The key file you download will be used by this library to authenticate API
169
151
  requests and should be stored in a secure location.
data/README.md CHANGED
@@ -37,7 +37,7 @@ request = ::Google::Cloud::Monitoring::V3::ListAlertPoliciesRequest.new # (reque
37
37
  response = client.list_alert_policies request
38
38
  ```
39
39
 
40
- View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-monitoring-v3/latest)
40
+ View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-monitoring-v3/latest)
41
41
  for class and method documentation.
42
42
 
43
43
  See also the [Product Documentation](https://cloud.google.com/monitoring)
@@ -69,16 +69,21 @@ module GRPC
69
69
  end
70
70
  ```
71
71
 
72
+
73
+ ## Google Cloud Samples
74
+
75
+ To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
76
+
72
77
  ## Supported Ruby Versions
73
78
 
74
- This library is supported on Ruby 2.5+.
79
+ This library is supported on Ruby 2.6+.
75
80
 
76
81
  Google provides official support for Ruby versions that are actively supported
77
82
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
78
- in security maintenance, and not end of life. Currently, this means Ruby 2.5
79
- and later. Older versions of Ruby _may_ still work, but are unsupported and not
80
- recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
81
- about the Ruby support schedule.
83
+ in security maintenance, and not end of life. Older versions of Ruby _may_
84
+ still work, but are unsupported and not recommended. See
85
+ https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
86
+ support schedule.
82
87
 
83
88
  ## Which client should I use?
84
89
 
@@ -28,14 +28,14 @@ module Google
28
28
  # Client for the AlertPolicyService service.
29
29
  #
30
30
  # The AlertPolicyService API is used to manage (list, create, delete,
31
- # edit) alert policies in Stackdriver Monitoring. An alerting policy is
31
+ # edit) alert policies in Cloud Monitoring. An alerting policy is
32
32
  # a description of the conditions under which some aspect of your
33
33
  # system is considered to be "unhealthy" and the ways to notify
34
34
  # people or services about this state. In addition to using this API, alert
35
35
  # policies can also be managed through
36
- # [Stackdriver Monitoring](https://cloud.google.com/monitoring/docs/),
36
+ # [Cloud Monitoring](https://cloud.google.com/monitoring/docs/),
37
37
  # which can be reached by clicking the "Monitoring" tab in
38
- # [Cloud Console](https://console.cloud.google.com/).
38
+ # [Cloud console](https://console.cloud.google.com/).
39
39
  #
40
40
  class Client
41
41
  include Paths
@@ -404,7 +404,7 @@ module Google
404
404
  #
405
405
  # Note that this field names the parent container in which the alerting
406
406
  # policy will be written, not the name of the created policy. |name| must be
407
- # a host project of a workspace, otherwise INVALID_ARGUMENT error will
407
+ # a host project of a Metrics Scope, otherwise INVALID_ARGUMENT error will
408
408
  # return. The alerting policy that is returned will have a name that contains
409
409
  # a normalized representation of this name as a prefix but adds a suffix of
410
410
  # the form `/alertPolicies/[ALERT_POLICY_ID]`, identifying the policy in the
@@ -32,14 +32,14 @@ module Google
32
32
  module V3
33
33
  ##
34
34
  # The AlertPolicyService API is used to manage (list, create, delete,
35
- # edit) alert policies in Stackdriver Monitoring. An alerting policy is
35
+ # edit) alert policies in Cloud Monitoring. An alerting policy is
36
36
  # a description of the conditions under which some aspect of your
37
37
  # system is considered to be "unhealthy" and the ways to notify
38
38
  # people or services about this state. In addition to using this API, alert
39
39
  # policies can also be managed through
40
- # [Stackdriver Monitoring](https://cloud.google.com/monitoring/docs/),
40
+ # [Cloud Monitoring](https://cloud.google.com/monitoring/docs/),
41
41
  # which can be reached by clicking the "Monitoring" tab in
42
- # [Cloud Console](https://console.cloud.google.com/).
42
+ # [Cloud console](https://console.cloud.google.com/).
43
43
  #
44
44
  # To load this service and instantiate a client:
45
45
  #
@@ -195,8 +195,9 @@ module Google
195
195
  # the default parameter values, pass an empty Hash as a request object (see above).
196
196
  #
197
197
  # @param parent [::String]
198
- # Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
199
- # whose Uptime check configurations are listed. The format is:
198
+ # Required. The
199
+ # [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
200
+ # Uptime check configurations are listed. The format is:
200
201
  #
201
202
  # projects/[PROJECT_ID_OR_NUMBER]
202
203
  # @param page_size [::Integer]
@@ -386,8 +387,9 @@ module Google
386
387
  # the default parameter values, pass an empty Hash as a request object (see above).
387
388
  #
388
389
  # @param parent [::String]
389
- # Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
390
- # which to create the Uptime check. The format is:
390
+ # Required. The
391
+ # [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
392
+ # to create the Uptime check. The format is:
391
393
  #
392
394
  # projects/[PROJECT_ID_OR_NUMBER]
393
395
  # @param uptime_check_config [::Google::Cloud::Monitoring::V3::UptimeCheckConfig, ::Hash]
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Monitoring
23
23
  module V3
24
- VERSION = "0.7.0"
24
+ VERSION = "0.9.0"
25
25
  end
26
26
  end
27
27
  end
@@ -31,6 +31,8 @@ module Google
31
31
  ##
32
32
  # To load this package, including all its services, and instantiate a client:
33
33
  #
34
+ # @example
35
+ #
34
36
  # require "google/cloud/monitoring/v3"
35
37
  # client = ::Google::Cloud::Monitoring::V3::AlertPolicyService::Client.new
36
38
  #
@@ -1,6 +1,8 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/monitoring/v3/alert.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/field_behavior_pb'
5
7
  require 'google/api/resource_pb'
6
8
  require 'google/monitoring/v3/common_pb'
@@ -8,7 +10,6 @@ require 'google/monitoring/v3/mutation_record_pb'
8
10
  require 'google/protobuf/duration_pb'
9
11
  require 'google/protobuf/wrappers_pb'
10
12
  require 'google/rpc/status_pb'
11
- require 'google/protobuf'
12
13
 
13
14
  Google::Protobuf::DescriptorPool.generated_pool.build do
14
15
  add_file("google/monitoring/v3/alert.proto", :syntax => :proto3) do
@@ -55,6 +56,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
55
56
  optional :threshold_value, :double, 5
56
57
  optional :duration, :message, 6, "google.protobuf.Duration"
57
58
  optional :trigger, :message, 7, "google.monitoring.v3.AlertPolicy.Condition.Trigger"
59
+ optional :evaluation_missing_data, :enum, 11, "google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData"
58
60
  end
59
61
  add_message "google.monitoring.v3.AlertPolicy.Condition.MetricAbsence" do
60
62
  optional :filter, :string, 1
@@ -70,6 +72,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
70
72
  optional :query, :string, 1
71
73
  optional :duration, :message, 2, "google.protobuf.Duration"
72
74
  optional :trigger, :message, 3, "google.monitoring.v3.AlertPolicy.Condition.Trigger"
75
+ optional :evaluation_missing_data, :enum, 4, "google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData"
76
+ end
77
+ add_enum "google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData" do
78
+ value :EVALUATION_MISSING_DATA_UNSPECIFIED, 0
79
+ value :EVALUATION_MISSING_DATA_INACTIVE, 1
80
+ value :EVALUATION_MISSING_DATA_ACTIVE, 2
81
+ value :EVALUATION_MISSING_DATA_NO_OP, 3
73
82
  end
74
83
  add_message "google.monitoring.v3.AlertPolicy.AlertStrategy" do
75
84
  optional :notification_rate_limit, :message, 1, "google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit"
@@ -99,6 +108,7 @@ module Google
99
108
  AlertPolicy::Condition::MetricAbsence = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.AlertPolicy.Condition.MetricAbsence").msgclass
100
109
  AlertPolicy::Condition::LogMatch = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.AlertPolicy.Condition.LogMatch").msgclass
101
110
  AlertPolicy::Condition::MonitoringQueryLanguageCondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.AlertPolicy.Condition.MonitoringQueryLanguageCondition").msgclass
111
+ AlertPolicy::Condition::EvaluationMissingData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.AlertPolicy.Condition.EvaluationMissingData").enummodule
102
112
  AlertPolicy::AlertStrategy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.AlertPolicy.AlertStrategy").msgclass
103
113
  AlertPolicy::AlertStrategy::NotificationRateLimit = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.AlertPolicy.AlertStrategy.NotificationRateLimit").msgclass
104
114
  AlertPolicy::ConditionCombinerType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.AlertPolicy.ConditionCombinerType").enummodule
@@ -1,6 +1,8 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/monitoring/v3/alert_service.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/annotations_pb'
5
7
  require 'google/api/client_pb'
6
8
  require 'google/api/field_behavior_pb'
@@ -8,7 +10,6 @@ require 'google/api/resource_pb'
8
10
  require 'google/monitoring/v3/alert_pb'
9
11
  require 'google/protobuf/empty_pb'
10
12
  require 'google/protobuf/field_mask_pb'
11
- require 'google/protobuf'
12
13
 
13
14
  Google::Protobuf::DescriptorPool.generated_pool.build do
14
15
  add_file("google/monitoring/v3/alert_service.proto", :syntax => :proto3) do
@@ -25,14 +25,14 @@ module Google
25
25
  module V3
26
26
  module AlertPolicyService
27
27
  # The AlertPolicyService API is used to manage (list, create, delete,
28
- # edit) alert policies in Stackdriver Monitoring. An alerting policy is
28
+ # edit) alert policies in Cloud Monitoring. An alerting policy is
29
29
  # a description of the conditions under which some aspect of your
30
30
  # system is considered to be "unhealthy" and the ways to notify
31
31
  # people or services about this state. In addition to using this API, alert
32
32
  # policies can also be managed through
33
- # [Stackdriver Monitoring](https://cloud.google.com/monitoring/docs/),
33
+ # [Cloud Monitoring](https://cloud.google.com/monitoring/docs/),
34
34
  # which can be reached by clicking the "Monitoring" tab in
35
- # [Cloud Console](https://console.cloud.google.com/).
35
+ # [Cloud console](https://console.cloud.google.com/).
36
36
  class Service
37
37
 
38
38
  include ::GRPC::GenericService
@@ -1,10 +1,11 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/monitoring/v3/common.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/distribution_pb'
5
7
  require 'google/protobuf/duration_pb'
6
8
  require 'google/protobuf/timestamp_pb'
7
- require 'google/protobuf'
8
9
 
9
10
  Google::Protobuf::DescriptorPool.generated_pool.build do
10
11
  add_file("google/monitoring/v3/common.proto", :syntax => :proto3) do
@@ -1,9 +1,10 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/monitoring/v3/group.proto
3
3
 
4
- require 'google/api/resource_pb'
5
4
  require 'google/protobuf'
6
5
 
6
+ require 'google/api/resource_pb'
7
+
7
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
8
9
  add_file("google/monitoring/v3/group.proto", :syntax => :proto3) do
9
10
  add_message "google.monitoring.v3.Group" do
@@ -1,6 +1,8 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/monitoring/v3/group_service.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/annotations_pb'
5
7
  require 'google/api/client_pb'
6
8
  require 'google/api/field_behavior_pb'
@@ -9,7 +11,6 @@ require 'google/api/resource_pb'
9
11
  require 'google/monitoring/v3/common_pb'
10
12
  require 'google/monitoring/v3/group_pb'
11
13
  require 'google/protobuf/empty_pb'
12
- require 'google/protobuf'
13
14
 
14
15
  Google::Protobuf::DescriptorPool.generated_pool.build do
15
16
  add_file("google/monitoring/v3/group_service.proto", :syntax => :proto3) do
@@ -1,13 +1,12 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/monitoring/v3/metric.proto
3
3
 
4
- require 'google/api/distribution_pb'
4
+ require 'google/protobuf'
5
+
5
6
  require 'google/api/label_pb'
6
7
  require 'google/api/metric_pb'
7
8
  require 'google/api/monitored_resource_pb'
8
9
  require 'google/monitoring/v3/common_pb'
9
- require 'google/protobuf/duration_pb'
10
- require 'google/protobuf'
11
10
 
12
11
  Google::Protobuf::DescriptorPool.generated_pool.build do
13
12
  add_file("google/monitoring/v3/metric.proto", :syntax => :proto3) do
@@ -1,19 +1,18 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/monitoring/v3/metric_service.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/annotations_pb'
5
7
  require 'google/api/client_pb'
6
8
  require 'google/api/field_behavior_pb'
7
9
  require 'google/api/metric_pb'
8
10
  require 'google/api/monitored_resource_pb'
9
11
  require 'google/api/resource_pb'
10
- require 'google/monitoring/v3/alert_pb'
11
12
  require 'google/monitoring/v3/common_pb'
12
13
  require 'google/monitoring/v3/metric_pb'
13
- require 'google/protobuf/duration_pb'
14
14
  require 'google/protobuf/empty_pb'
15
15
  require 'google/rpc/status_pb'
16
- require 'google/protobuf'
17
16
 
18
17
  Google::Protobuf::DescriptorPool.generated_pool.build do
19
18
  add_file("google/monitoring/v3/metric_service.proto", :syntax => :proto3) do
@@ -1,9 +1,10 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/monitoring/v3/mutation_record.proto
3
3
 
4
- require 'google/protobuf/timestamp_pb'
5
4
  require 'google/protobuf'
6
5
 
6
+ require 'google/protobuf/timestamp_pb'
7
+
7
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
8
9
  add_file("google/monitoring/v3/mutation_record.proto", :syntax => :proto3) do
9
10
  add_message "google.monitoring.v3.MutationRecord" do
@@ -1,13 +1,14 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/monitoring/v3/notification.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/label_pb'
5
7
  require 'google/api/launch_stage_pb'
6
8
  require 'google/api/resource_pb'
7
9
  require 'google/monitoring/v3/common_pb'
8
10
  require 'google/monitoring/v3/mutation_record_pb'
9
11
  require 'google/protobuf/wrappers_pb'
10
- require 'google/protobuf'
11
12
 
12
13
  Google::Protobuf::DescriptorPool.generated_pool.build do
13
14
  add_file("google/monitoring/v3/notification.proto", :syntax => :proto3) do
@@ -1,6 +1,8 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/monitoring/v3/notification_service.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/annotations_pb'
5
7
  require 'google/api/client_pb'
6
8
  require 'google/api/field_behavior_pb'
@@ -8,9 +10,7 @@ require 'google/api/resource_pb'
8
10
  require 'google/monitoring/v3/notification_pb'
9
11
  require 'google/protobuf/empty_pb'
10
12
  require 'google/protobuf/field_mask_pb'
11
- require 'google/protobuf/struct_pb'
12
13
  require 'google/protobuf/timestamp_pb'
13
- require 'google/protobuf'
14
14
 
15
15
  Google::Protobuf::DescriptorPool.generated_pool.build do
16
16
  add_file("google/monitoring/v3/notification_service.proto", :syntax => :proto3) do
@@ -1,12 +1,11 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/monitoring/v3/query_service.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/annotations_pb'
5
- require 'google/api/label_pb'
6
- require 'google/monitoring/v3/metric_pb'
7
7
  require 'google/monitoring/v3/metric_service_pb'
8
8
  require 'google/api/client_pb'
9
- require 'google/protobuf'
10
9
 
11
10
  Google::Protobuf::DescriptorPool.generated_pool.build do
12
11
  add_file("google/monitoring/v3/query_service.proto", :syntax => :proto3) do
@@ -1,12 +1,11 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/monitoring/v3/service.proto
3
3
 
4
- require 'google/api/field_behavior_pb'
4
+ require 'google/protobuf'
5
+
5
6
  require 'google/api/resource_pb'
6
7
  require 'google/protobuf/duration_pb'
7
- require 'google/protobuf/timestamp_pb'
8
8
  require 'google/type/calendar_period_pb'
9
- require 'google/protobuf'
10
9
 
11
10
  Google::Protobuf::DescriptorPool.generated_pool.build do
12
11
  add_file("google/monitoring/v3/service.proto", :syntax => :proto3) do
@@ -1,6 +1,8 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/monitoring/v3/service_service.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/annotations_pb'
5
7
  require 'google/api/client_pb'
6
8
  require 'google/api/field_behavior_pb'
@@ -8,7 +10,6 @@ require 'google/api/resource_pb'
8
10
  require 'google/monitoring/v3/service_pb'
9
11
  require 'google/protobuf/empty_pb'
10
12
  require 'google/protobuf/field_mask_pb'
11
- require 'google/protobuf'
12
13
 
13
14
  Google::Protobuf::DescriptorPool.generated_pool.build do
14
15
  add_file("google/monitoring/v3/service_service.proto", :syntax => :proto3) do
@@ -1,10 +1,11 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/monitoring/v3/uptime.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/monitored_resource_pb'
5
7
  require 'google/api/resource_pb'
6
8
  require 'google/protobuf/duration_pb'
7
- require 'google/protobuf'
8
9
 
9
10
  Google::Protobuf::DescriptorPool.generated_pool.build do
10
11
  add_file("google/monitoring/v3/uptime.proto", :syntax => :proto3) do
@@ -1,16 +1,15 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/monitoring/v3/uptime_service.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/annotations_pb'
5
7
  require 'google/api/client_pb'
6
8
  require 'google/api/field_behavior_pb'
7
9
  require 'google/api/resource_pb'
8
- require 'google/longrunning/operations_pb'
9
10
  require 'google/monitoring/v3/uptime_pb'
10
- require 'google/protobuf/duration_pb'
11
11
  require 'google/protobuf/empty_pb'
12
12
  require 'google/protobuf/field_mask_pb'
13
- require 'google/protobuf'
14
13
 
15
14
  Google::Protobuf::DescriptorPool.generated_pool.build do
16
15
  add_file("google/monitoring/v3/uptime_service.proto", :syntax => :proto3) do
@@ -33,11 +33,7 @@ module Google
33
33
  # // For Kubernetes resources, the format is {api group}/{kind}.
34
34
  # option (google.api.resource) = {
35
35
  # type: "pubsub.googleapis.com/Topic"
36
- # name_descriptor: {
37
- # pattern: "projects/{project}/topics/{topic}"
38
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
39
- # parent_name_extractor: "projects/{project}"
40
- # }
36
+ # pattern: "projects/{project}/topics/{topic}"
41
37
  # };
42
38
  # }
43
39
  #
@@ -45,10 +41,7 @@ module Google
45
41
  #
46
42
  # resources:
47
43
  # - type: "pubsub.googleapis.com/Topic"
48
- # name_descriptor:
49
- # - pattern: "projects/{project}/topics/{topic}"
50
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
51
- # parent_name_extractor: "projects/{project}"
44
+ # pattern: "projects/{project}/topics/{topic}"
52
45
  #
53
46
  # Sometimes, resources have multiple patterns, typically because they can
54
47
  # live under multiple parents.
@@ -58,26 +51,10 @@ module Google
58
51
  # message LogEntry {
59
52
  # option (google.api.resource) = {
60
53
  # type: "logging.googleapis.com/LogEntry"
61
- # name_descriptor: {
62
- # pattern: "projects/{project}/logs/{log}"
63
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
64
- # parent_name_extractor: "projects/{project}"
65
- # }
66
- # name_descriptor: {
67
- # pattern: "folders/{folder}/logs/{log}"
68
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
69
- # parent_name_extractor: "folders/{folder}"
70
- # }
71
- # name_descriptor: {
72
- # pattern: "organizations/{organization}/logs/{log}"
73
- # parent_type: "cloudresourcemanager.googleapis.com/Organization"
74
- # parent_name_extractor: "organizations/{organization}"
75
- # }
76
- # name_descriptor: {
77
- # pattern: "billingAccounts/{billing_account}/logs/{log}"
78
- # parent_type: "billing.googleapis.com/BillingAccount"
79
- # parent_name_extractor: "billingAccounts/{billing_account}"
80
- # }
54
+ # pattern: "projects/{project}/logs/{log}"
55
+ # pattern: "folders/{folder}/logs/{log}"
56
+ # pattern: "organizations/{organization}/logs/{log}"
57
+ # pattern: "billingAccounts/{billing_account}/logs/{log}"
81
58
  # };
82
59
  # }
83
60
  #
@@ -85,48 +62,10 @@ module Google
85
62
  #
86
63
  # resources:
87
64
  # - type: 'logging.googleapis.com/LogEntry'
88
- # name_descriptor:
89
- # - pattern: "projects/{project}/logs/{log}"
90
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
91
- # parent_name_extractor: "projects/{project}"
92
- # - pattern: "folders/{folder}/logs/{log}"
93
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
94
- # parent_name_extractor: "folders/{folder}"
95
- # - pattern: "organizations/{organization}/logs/{log}"
96
- # parent_type: "cloudresourcemanager.googleapis.com/Organization"
97
- # parent_name_extractor: "organizations/{organization}"
98
- # - pattern: "billingAccounts/{billing_account}/logs/{log}"
99
- # parent_type: "billing.googleapis.com/BillingAccount"
100
- # parent_name_extractor: "billingAccounts/{billing_account}"
101
- #
102
- # For flexible resources, the resource name doesn't contain parent names, but
103
- # the resource itself has parents for policy evaluation.
104
- #
105
- # Example:
106
- #
107
- # message Shelf {
108
- # option (google.api.resource) = {
109
- # type: "library.googleapis.com/Shelf"
110
- # name_descriptor: {
111
- # pattern: "shelves/{shelf}"
112
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
113
- # }
114
- # name_descriptor: {
115
- # pattern: "shelves/{shelf}"
116
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
117
- # }
118
- # };
119
- # }
120
- #
121
- # The ResourceDescriptor Yaml config will look like:
122
- #
123
- # resources:
124
- # - type: 'library.googleapis.com/Shelf'
125
- # name_descriptor:
126
- # - pattern: "shelves/{shelf}"
127
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
128
- # - pattern: "shelves/{shelf}"
129
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
65
+ # pattern: "projects/{project}/logs/{log}"
66
+ # pattern: "folders/{folder}/logs/{log}"
67
+ # pattern: "organizations/{organization}/logs/{log}"
68
+ # pattern: "billingAccounts/{billing_account}/logs/{log}"
130
69
  # @!attribute [rw] type
131
70
  # @return [::String]
132
71
  # The resource type. It must be in the format of
@@ -32,7 +32,7 @@ module Google
32
32
  #
33
33
  # projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]
34
34
  #
35
- # `[ALERT_POLICY_ID]` is assigned by Stackdriver Monitoring when the policy
35
+ # `[ALERT_POLICY_ID]` is assigned by Cloud Monitoring when the policy
36
36
  # is created. When calling the
37
37
  # {::Google::Cloud::Monitoring::V3::AlertPolicyService::Client#create_alert_policy alertPolicies.create}
38
38
  # method, do not include the `name` field in the alerting policy passed as
@@ -118,7 +118,8 @@ module Google
118
118
  # The text of the documentation, interpreted according to `mime_type`.
119
119
  # The content may not exceed 8,192 Unicode characters and may not exceed
120
120
  # more than 10,240 bytes when encoded in UTF-8 format, whichever is
121
- # smaller.
121
+ # smaller. This text can be [templatized by using
122
+ # variables](https://cloud.google.com/monitoring/alerts/doc-variables).
122
123
  # @!attribute [rw] mime_type
123
124
  # @return [::String]
124
125
  # The format of the `content` field. Presently, only the value
@@ -139,13 +140,13 @@ module Google
139
140
  #
140
141
  # projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID]/conditions/[CONDITION_ID]
141
142
  #
142
- # `[CONDITION_ID]` is assigned by Stackdriver Monitoring when the
143
+ # `[CONDITION_ID]` is assigned by Cloud Monitoring when the
143
144
  # condition is created as part of a new or updated alerting policy.
144
145
  #
145
146
  # When calling the
146
147
  # {::Google::Cloud::Monitoring::V3::AlertPolicyService::Client#create_alert_policy alertPolicies.create}
147
148
  # method, do not include the `name` field in the conditions of the
148
- # requested alerting policy. Stackdriver Monitoring creates the
149
+ # requested alerting policy. Cloud Monitoring creates the
149
150
  # condition identifiers and includes them in the new policy.
150
151
  #
151
152
  # When calling the
@@ -279,6 +280,10 @@ module Google
279
280
  # time series that have been identified by `filter` and `aggregations`,
280
281
  # or by the ratio, if `denominator_filter` and `denominator_aggregations`
281
282
  # are specified.
283
+ # @!attribute [rw] evaluation_missing_data
284
+ # @return [::Google::Cloud::Monitoring::V3::AlertPolicy::Condition::EvaluationMissingData]
285
+ # A condition control that determines how metric-threshold conditions
286
+ # are evaluated when data stops arriving.
282
287
  class MetricThreshold
283
288
  include ::Google::Protobuf::MessageExts
284
289
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -396,10 +401,34 @@ module Google
396
401
  # time series that have been identified by `filter` and `aggregations`,
397
402
  # or by the ratio, if `denominator_filter` and `denominator_aggregations`
398
403
  # are specified.
404
+ # @!attribute [rw] evaluation_missing_data
405
+ # @return [::Google::Cloud::Monitoring::V3::AlertPolicy::Condition::EvaluationMissingData]
406
+ # A condition control that determines how metric-threshold conditions
407
+ # are evaluated when data stops arriving.
399
408
  class MonitoringQueryLanguageCondition
400
409
  include ::Google::Protobuf::MessageExts
401
410
  extend ::Google::Protobuf::MessageExts::ClassMethods
402
411
  end
412
+
413
+ # A condition control that determines how metric-threshold conditions
414
+ # are evaluated when data stops arriving.
415
+ # This control doesn't affect metric-absence policies.
416
+ module EvaluationMissingData
417
+ # An unspecified evaluation missing data option. Equivalent to
418
+ # EVALUATION_MISSING_DATA_NO_OP.
419
+ EVALUATION_MISSING_DATA_UNSPECIFIED = 0
420
+
421
+ # If there is no data to evaluate the condition, then evaluate the
422
+ # condition as false.
423
+ EVALUATION_MISSING_DATA_INACTIVE = 1
424
+
425
+ # If there is no data to evaluate the condition, then evaluate the
426
+ # condition as true.
427
+ EVALUATION_MISSING_DATA_ACTIVE = 2
428
+
429
+ # Do not evaluate the condition to any value if there is no data.
430
+ EVALUATION_MISSING_DATA_NO_OP = 3
431
+ end
403
432
  end
404
433
 
405
434
  # Control over how the notification channels in `notification_channels`
@@ -31,7 +31,7 @@ module Google
31
31
  #
32
32
  # Note that this field names the parent container in which the alerting
33
33
  # policy will be written, not the name of the created policy. |name| must be
34
- # a host project of a workspace, otherwise INVALID_ARGUMENT error will
34
+ # a host project of a Metrics Scope, otherwise INVALID_ARGUMENT error will
35
35
  # return. The alerting policy that is returned will have a name that contains
36
36
  # a normalized representation of this name as a prefix but adds a suffix of
37
37
  # the form `/alertPolicies/[ALERT_POLICY_ID]`, identifying the policy in the
@@ -24,8 +24,9 @@ module Google
24
24
  # The protocol for the `ListUptimeCheckConfigs` request.
25
25
  # @!attribute [rw] parent
26
26
  # @return [::String]
27
- # Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name)
28
- # whose Uptime check configurations are listed. The format is:
27
+ # Required. The
28
+ # [project](https://cloud.google.com/monitoring/api/v3#project_name) whose
29
+ # Uptime check configurations are listed. The format is:
29
30
  #
30
31
  # projects/[PROJECT_ID_OR_NUMBER]
31
32
  # @!attribute [rw] page_size
@@ -78,8 +79,9 @@ module Google
78
79
  # The protocol for the `CreateUptimeCheckConfig` request.
79
80
  # @!attribute [rw] parent
80
81
  # @return [::String]
81
- # Required. The [project](https://cloud.google.com/monitoring/api/v3#project_name) in
82
- # which to create the Uptime check. The format is:
82
+ # Required. The
83
+ # [project](https://cloud.google.com/monitoring/api/v3#project_name) in which
84
+ # to create the Uptime check. The format is:
83
85
  #
84
86
  # projects/[PROJECT_ID_OR_NUMBER]
85
87
  # @!attribute [rw] uptime_check_config
@@ -44,7 +44,7 @@ module Google
44
44
  # foo = any.unpack(Foo.class);
45
45
  # }
46
46
  #
47
- # Example 3: Pack and unpack a message in Python.
47
+ # Example 3: Pack and unpack a message in Python.
48
48
  #
49
49
  # foo = Foo(...)
50
50
  # any = Any()
@@ -54,7 +54,7 @@ module Google
54
54
  # any.Unpack(foo)
55
55
  # ...
56
56
  #
57
- # Example 4: Pack and unpack a message in Go
57
+ # Example 4: Pack and unpack a message in Go
58
58
  #
59
59
  # foo := &pb.Foo{...}
60
60
  # any, err := anypb.New(foo)
@@ -75,7 +75,7 @@ module Google
75
75
  #
76
76
  #
77
77
  # JSON
78
- # ====
78
+ #
79
79
  # The JSON representation of an `Any` value uses the regular
80
80
  # representation of the deserialized, embedded message, with an
81
81
  # additional field `@type` which contains the type URL. Example:
@@ -26,8 +26,6 @@ module Google
26
26
  # service Foo {
27
27
  # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
28
28
  # }
29
- #
30
- # The JSON representation for `Empty` is empty JSON object `{}`.
31
29
  class Empty
32
30
  include ::Google::Protobuf::MessageExts
33
31
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -46,8 +46,8 @@ module Google
46
46
 
47
47
  # `Value` represents a dynamically typed value which can be either
48
48
  # null, a number, a string, a boolean, a recursive struct value, or a
49
- # list of values. A producer of value is expected to set one of that
50
- # variants, absence of any variant indicates an error.
49
+ # list of values. A producer of value is expected to set one of these
50
+ # variants. Absence of any variant indicates an error.
51
51
  #
52
52
  # The JSON representation for `Value` is JSON value.
53
53
  # @!attribute [rw] null_value
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-monitoring-v3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-07 00:00:00.000000000 Z
11
+ date: 2022-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.7'
19
+ version: '0.10'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.7'
29
+ version: '0.10'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -50,28 +50,28 @@ dependencies:
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: 1.25.1
53
+ version: 1.26.1
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: 1.25.1
60
+ version: 1.26.1
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: minitest
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: '5.14'
67
+ version: '5.16'
68
68
  type: :development
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: '5.14'
74
+ version: '5.16'
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: minitest-focus
77
77
  requirement: !ruby/object:Gem::Requirement
@@ -106,14 +106,14 @@ dependencies:
106
106
  requirements:
107
107
  - - ">="
108
108
  - !ruby/object:Gem::Version
109
- version: '12.0'
109
+ version: '13.0'
110
110
  type: :development
111
111
  prerelease: false
112
112
  version_requirements: !ruby/object:Gem::Requirement
113
113
  requirements:
114
114
  - - ">="
115
115
  - !ruby/object:Gem::Version
116
- version: '12.0'
116
+ version: '13.0'
117
117
  - !ruby/object:Gem::Dependency
118
118
  name: redcarpet
119
119
  requirement: !ruby/object:Gem::Requirement
@@ -232,7 +232,6 @@ files:
232
232
  - proto_docs/google/api/metric.rb
233
233
  - proto_docs/google/api/monitored_resource.rb
234
234
  - proto_docs/google/api/resource.rb
235
- - proto_docs/google/longrunning/operations.rb
236
235
  - proto_docs/google/monitoring/v3/alert.rb
237
236
  - proto_docs/google/monitoring/v3/alert_service.rb
238
237
  - proto_docs/google/monitoring/v3/common.rb
@@ -270,14 +269,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
270
269
  requirements:
271
270
  - - ">="
272
271
  - !ruby/object:Gem::Version
273
- version: '2.5'
272
+ version: '2.6'
274
273
  required_rubygems_version: !ruby/object:Gem::Requirement
275
274
  requirements:
276
275
  - - ">="
277
276
  - !ruby/object:Gem::Version
278
277
  version: '0'
279
278
  requirements: []
280
- rubygems_version: 3.2.17
279
+ rubygems_version: 3.3.14
281
280
  signing_key:
282
281
  specification_version: 4
283
282
  summary: API Client library for the Cloud Monitoring V3 API
@@ -1,164 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Copyright 2021 Google LLC
4
- #
5
- # Licensed under the Apache License, Version 2.0 (the "License");
6
- # you may not use this file except in compliance with the License.
7
- # You may obtain a copy of the License at
8
- #
9
- # https://www.apache.org/licenses/LICENSE-2.0
10
- #
11
- # Unless required by applicable law or agreed to in writing, software
12
- # distributed under the License is distributed on an "AS IS" BASIS,
13
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- # See the License for the specific language governing permissions and
15
- # limitations under the License.
16
-
17
- # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
-
19
-
20
- module Google
21
- module Longrunning
22
- # This resource represents a long-running operation that is the result of a
23
- # network API call.
24
- # @!attribute [rw] name
25
- # @return [::String]
26
- # The server-assigned name, which is only unique within the same service that
27
- # originally returns it. If you use the default HTTP mapping, the
28
- # `name` should be a resource name ending with `operations/{unique_id}`.
29
- # @!attribute [rw] metadata
30
- # @return [::Google::Protobuf::Any]
31
- # Service-specific metadata associated with the operation. It typically
32
- # contains progress information and common metadata such as create time.
33
- # Some services might not provide such metadata. Any method that returns a
34
- # long-running operation should document the metadata type, if any.
35
- # @!attribute [rw] done
36
- # @return [::Boolean]
37
- # If the value is `false`, it means the operation is still in progress.
38
- # If `true`, the operation is completed, and either `error` or `response` is
39
- # available.
40
- # @!attribute [rw] error
41
- # @return [::Google::Rpc::Status]
42
- # The error result of the operation in case of failure or cancellation.
43
- # @!attribute [rw] response
44
- # @return [::Google::Protobuf::Any]
45
- # The normal response of the operation in case of success. If the original
46
- # method returns no data on success, such as `Delete`, the response is
47
- # `google.protobuf.Empty`. If the original method is standard
48
- # `Get`/`Create`/`Update`, the response should be the resource. For other
49
- # methods, the response should have the type `XxxResponse`, where `Xxx`
50
- # is the original method name. For example, if the original method name
51
- # is `TakeSnapshot()`, the inferred response type is
52
- # `TakeSnapshotResponse`.
53
- class Operation
54
- include ::Google::Protobuf::MessageExts
55
- extend ::Google::Protobuf::MessageExts::ClassMethods
56
- end
57
-
58
- # The request message for Operations.GetOperation.
59
- # @!attribute [rw] name
60
- # @return [::String]
61
- # The name of the operation resource.
62
- class GetOperationRequest
63
- include ::Google::Protobuf::MessageExts
64
- extend ::Google::Protobuf::MessageExts::ClassMethods
65
- end
66
-
67
- # The request message for Operations.ListOperations.
68
- # @!attribute [rw] name
69
- # @return [::String]
70
- # The name of the operation's parent resource.
71
- # @!attribute [rw] filter
72
- # @return [::String]
73
- # The standard list filter.
74
- # @!attribute [rw] page_size
75
- # @return [::Integer]
76
- # The standard list page size.
77
- # @!attribute [rw] page_token
78
- # @return [::String]
79
- # The standard list page token.
80
- class ListOperationsRequest
81
- include ::Google::Protobuf::MessageExts
82
- extend ::Google::Protobuf::MessageExts::ClassMethods
83
- end
84
-
85
- # The response message for Operations.ListOperations.
86
- # @!attribute [rw] operations
87
- # @return [::Array<::Google::Longrunning::Operation>]
88
- # A list of operations that matches the specified filter in the request.
89
- # @!attribute [rw] next_page_token
90
- # @return [::String]
91
- # The standard List next-page token.
92
- class ListOperationsResponse
93
- include ::Google::Protobuf::MessageExts
94
- extend ::Google::Protobuf::MessageExts::ClassMethods
95
- end
96
-
97
- # The request message for Operations.CancelOperation.
98
- # @!attribute [rw] name
99
- # @return [::String]
100
- # The name of the operation resource to be cancelled.
101
- class CancelOperationRequest
102
- include ::Google::Protobuf::MessageExts
103
- extend ::Google::Protobuf::MessageExts::ClassMethods
104
- end
105
-
106
- # The request message for Operations.DeleteOperation.
107
- # @!attribute [rw] name
108
- # @return [::String]
109
- # The name of the operation resource to be deleted.
110
- class DeleteOperationRequest
111
- include ::Google::Protobuf::MessageExts
112
- extend ::Google::Protobuf::MessageExts::ClassMethods
113
- end
114
-
115
- # The request message for Operations.WaitOperation.
116
- # @!attribute [rw] name
117
- # @return [::String]
118
- # The name of the operation resource to wait on.
119
- # @!attribute [rw] timeout
120
- # @return [::Google::Protobuf::Duration]
121
- # The maximum duration to wait before timing out. If left blank, the wait
122
- # will be at most the time permitted by the underlying HTTP/RPC protocol.
123
- # If RPC context deadline is also specified, the shorter one will be used.
124
- class WaitOperationRequest
125
- include ::Google::Protobuf::MessageExts
126
- extend ::Google::Protobuf::MessageExts::ClassMethods
127
- end
128
-
129
- # A message representing the message types used by a long-running operation.
130
- #
131
- # Example:
132
- #
133
- # rpc LongRunningRecognize(LongRunningRecognizeRequest)
134
- # returns (google.longrunning.Operation) {
135
- # option (google.longrunning.operation_info) = {
136
- # response_type: "LongRunningRecognizeResponse"
137
- # metadata_type: "LongRunningRecognizeMetadata"
138
- # };
139
- # }
140
- # @!attribute [rw] response_type
141
- # @return [::String]
142
- # Required. The message name of the primary return type for this
143
- # long-running operation.
144
- # This type will be used to deserialize the LRO's response.
145
- #
146
- # If the response is in a different package from the rpc, a fully-qualified
147
- # message name must be used (e.g. `google.protobuf.Struct`).
148
- #
149
- # Note: Altering this value constitutes a breaking change.
150
- # @!attribute [rw] metadata_type
151
- # @return [::String]
152
- # Required. The message name of the metadata type for this long-running
153
- # operation.
154
- #
155
- # If the response is in a different package from the rpc, a fully-qualified
156
- # message name must be used (e.g. `google.protobuf.Struct`).
157
- #
158
- # Note: Altering this value constitutes a breaking change.
159
- class OperationInfo
160
- include ::Google::Protobuf::MessageExts
161
- extend ::Google::Protobuf::MessageExts::ClassMethods
162
- end
163
- end
164
- end