google-apis-monitoring_v1 0.9.0 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/monitoring_v1.rb +2 -1
- data/lib/google/apis/monitoring_v1/classes.rb +101 -0
- data/lib/google/apis/monitoring_v1/gem_version.rb +2 -2
- data/lib/google/apis/monitoring_v1/representations.rb +33 -0
- data/lib/google/apis/monitoring_v1/service.rb +38 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 117c3bf79a45ece85be2d9e255f427e4db7cb8884d9aed0ce44dbd85e7e5fe2d
|
4
|
+
data.tar.gz: 12ba177729be73c4761a9678c11c22c4dbeb769460619691ae0c2d80c60ff21b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 206d67d3927a318745f52a5c1712a394e1db279960080c6cfbd99e2b1d24978af7197a1495f9ab46b34c7b50a93bbb8e04048ef8ea3fcd8c3333e90df1caf571
|
7
|
+
data.tar.gz: ce0e5d87d44c201f3cb75d7821c3f5d76d5da0d90b14a2c25c324ac3519324bd00ceea5b04e33e9c351180a7f3534878c6d141eb46637fd03026bf5935afbc52
|
data/CHANGELOG.md
CHANGED
@@ -25,7 +25,8 @@ module Google
|
|
25
25
|
# associated with a Workspace, with a few exceptions as noted on the individual
|
26
26
|
# method pages. The table entries below are presented in alphabetical order, not
|
27
27
|
# in order of common use. For explanations of the concepts found in the table
|
28
|
-
# entries, read the Cloud Monitoring documentation.
|
28
|
+
# entries, read the Cloud Monitoring documentation (https://cloud.google.com/
|
29
|
+
# monitoring/docs).
|
29
30
|
#
|
30
31
|
# @see https://cloud.google.com/monitoring/api/
|
31
32
|
module MonitoringV1
|
@@ -572,6 +572,68 @@ module Google
|
|
572
572
|
end
|
573
573
|
end
|
574
574
|
|
575
|
+
# This resource represents a long-running operation that is the result of a
|
576
|
+
# network API call.
|
577
|
+
class Operation
|
578
|
+
include Google::Apis::Core::Hashable
|
579
|
+
|
580
|
+
# If the value is false, it means the operation is still in progress. If true,
|
581
|
+
# the operation is completed, and either error or response is available.
|
582
|
+
# Corresponds to the JSON property `done`
|
583
|
+
# @return [Boolean]
|
584
|
+
attr_accessor :done
|
585
|
+
alias_method :done?, :done
|
586
|
+
|
587
|
+
# The Status type defines a logical error model that is suitable for different
|
588
|
+
# programming environments, including REST APIs and RPC APIs. It is used by gRPC
|
589
|
+
# (https://github.com/grpc). Each Status message contains three pieces of data:
|
590
|
+
# error code, error message, and error details.You can find out more about this
|
591
|
+
# error model and how to work with it in the API Design Guide (https://cloud.
|
592
|
+
# google.com/apis/design/errors).
|
593
|
+
# Corresponds to the JSON property `error`
|
594
|
+
# @return [Google::Apis::MonitoringV1::Status]
|
595
|
+
attr_accessor :error
|
596
|
+
|
597
|
+
# Service-specific metadata associated with the operation. It typically contains
|
598
|
+
# progress information and common metadata such as create time. Some services
|
599
|
+
# might not provide such metadata. Any method that returns a long-running
|
600
|
+
# operation should document the metadata type, if any.
|
601
|
+
# Corresponds to the JSON property `metadata`
|
602
|
+
# @return [Hash<String,Object>]
|
603
|
+
attr_accessor :metadata
|
604
|
+
|
605
|
+
# The server-assigned name, which is only unique within the same service that
|
606
|
+
# originally returns it. If you use the default HTTP mapping, the name should be
|
607
|
+
# a resource name ending with operations/`unique_id`.
|
608
|
+
# Corresponds to the JSON property `name`
|
609
|
+
# @return [String]
|
610
|
+
attr_accessor :name
|
611
|
+
|
612
|
+
# The normal response of the operation in case of success. If the original
|
613
|
+
# method returns no data on success, such as Delete, the response is google.
|
614
|
+
# protobuf.Empty. If the original method is standard Get/Create/Update, the
|
615
|
+
# response should be the resource. For other methods, the response should have
|
616
|
+
# the type XxxResponse, where Xxx is the original method name. For example, if
|
617
|
+
# the original method name is TakeSnapshot(), the inferred response type is
|
618
|
+
# TakeSnapshotResponse.
|
619
|
+
# Corresponds to the JSON property `response`
|
620
|
+
# @return [Hash<String,Object>]
|
621
|
+
attr_accessor :response
|
622
|
+
|
623
|
+
def initialize(**args)
|
624
|
+
update!(**args)
|
625
|
+
end
|
626
|
+
|
627
|
+
# Update properties of this object
|
628
|
+
def update!(**args)
|
629
|
+
@done = args[:done] if args.key?(:done)
|
630
|
+
@error = args[:error] if args.key?(:error)
|
631
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
632
|
+
@name = args[:name] if args.key?(:name)
|
633
|
+
@response = args[:response] if args.key?(:response)
|
634
|
+
end
|
635
|
+
end
|
636
|
+
|
575
637
|
# Contains metadata for longrunning operation for the edit Metrics Scope
|
576
638
|
# endpoints.
|
577
639
|
class OperationMetadata
|
@@ -932,6 +994,45 @@ module Google
|
|
932
994
|
end
|
933
995
|
end
|
934
996
|
|
997
|
+
# The Status type defines a logical error model that is suitable for different
|
998
|
+
# programming environments, including REST APIs and RPC APIs. It is used by gRPC
|
999
|
+
# (https://github.com/grpc). Each Status message contains three pieces of data:
|
1000
|
+
# error code, error message, and error details.You can find out more about this
|
1001
|
+
# error model and how to work with it in the API Design Guide (https://cloud.
|
1002
|
+
# google.com/apis/design/errors).
|
1003
|
+
class Status
|
1004
|
+
include Google::Apis::Core::Hashable
|
1005
|
+
|
1006
|
+
# The status code, which should be an enum value of google.rpc.Code.
|
1007
|
+
# Corresponds to the JSON property `code`
|
1008
|
+
# @return [Fixnum]
|
1009
|
+
attr_accessor :code
|
1010
|
+
|
1011
|
+
# A list of messages that carry the error details. There is a common set of
|
1012
|
+
# message types for APIs to use.
|
1013
|
+
# Corresponds to the JSON property `details`
|
1014
|
+
# @return [Array<Hash<String,Object>>]
|
1015
|
+
attr_accessor :details
|
1016
|
+
|
1017
|
+
# A developer-facing error message, which should be in English. Any user-facing
|
1018
|
+
# error message should be localized and sent in the google.rpc.Status.details
|
1019
|
+
# field, or localized by the client.
|
1020
|
+
# Corresponds to the JSON property `message`
|
1021
|
+
# @return [String]
|
1022
|
+
attr_accessor :message
|
1023
|
+
|
1024
|
+
def initialize(**args)
|
1025
|
+
update!(**args)
|
1026
|
+
end
|
1027
|
+
|
1028
|
+
# Update properties of this object
|
1029
|
+
def update!(**args)
|
1030
|
+
@code = args[:code] if args.key?(:code)
|
1031
|
+
@details = args[:details] if args.key?(:details)
|
1032
|
+
@message = args[:message] if args.key?(:message)
|
1033
|
+
end
|
1034
|
+
end
|
1035
|
+
|
935
1036
|
# A widget that displays textual content.
|
936
1037
|
class Text
|
937
1038
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module MonitoringV1
|
18
18
|
# Version of the google-apis-monitoring_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.10.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210712"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -112,6 +112,12 @@ module Google
|
|
112
112
|
include Google::Apis::Core::JsonObjectSupport
|
113
113
|
end
|
114
114
|
|
115
|
+
class Operation
|
116
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
|
+
|
118
|
+
include Google::Apis::Core::JsonObjectSupport
|
119
|
+
end
|
120
|
+
|
115
121
|
class OperationMetadata
|
116
122
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
123
|
|
@@ -178,6 +184,12 @@ module Google
|
|
178
184
|
include Google::Apis::Core::JsonObjectSupport
|
179
185
|
end
|
180
186
|
|
187
|
+
class Status
|
188
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
189
|
+
|
190
|
+
include Google::Apis::Core::JsonObjectSupport
|
191
|
+
end
|
192
|
+
|
181
193
|
class Text
|
182
194
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
183
195
|
|
@@ -374,6 +386,18 @@ module Google
|
|
374
386
|
end
|
375
387
|
end
|
376
388
|
|
389
|
+
class Operation
|
390
|
+
# @private
|
391
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
392
|
+
property :done, as: 'done'
|
393
|
+
property :error, as: 'error', class: Google::Apis::MonitoringV1::Status, decorator: Google::Apis::MonitoringV1::Status::Representation
|
394
|
+
|
395
|
+
hash :metadata, as: 'metadata'
|
396
|
+
property :name, as: 'name'
|
397
|
+
hash :response, as: 'response'
|
398
|
+
end
|
399
|
+
end
|
400
|
+
|
377
401
|
class OperationMetadata
|
378
402
|
# @private
|
379
403
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -470,6 +494,15 @@ module Google
|
|
470
494
|
end
|
471
495
|
end
|
472
496
|
|
497
|
+
class Status
|
498
|
+
# @private
|
499
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
500
|
+
property :code, as: 'code'
|
501
|
+
collection :details, as: 'details'
|
502
|
+
property :message, as: 'message'
|
503
|
+
end
|
504
|
+
end
|
505
|
+
|
473
506
|
class Text
|
474
507
|
# @private
|
475
508
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -26,7 +26,8 @@ module Google
|
|
26
26
|
# associated with a Workspace, with a few exceptions as noted on the individual
|
27
27
|
# method pages. The table entries below are presented in alphabetical order, not
|
28
28
|
# in order of common use. For explanations of the concepts found in the table
|
29
|
-
# entries, read the Cloud Monitoring documentation.
|
29
|
+
# entries, read the Cloud Monitoring documentation (https://cloud.google.com/
|
30
|
+
# monitoring/docs).
|
30
31
|
#
|
31
32
|
# @example
|
32
33
|
# require 'google/apis/monitoring_v1'
|
@@ -53,10 +54,43 @@ module Google
|
|
53
54
|
@batch_path = 'batch'
|
54
55
|
end
|
55
56
|
|
57
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
58
|
+
# to poll the operation result at intervals as recommended by the API service.
|
59
|
+
# @param [String] name
|
60
|
+
# The name of the operation resource.
|
61
|
+
# @param [String] fields
|
62
|
+
# Selector specifying which fields to include in a partial response.
|
63
|
+
# @param [String] quota_user
|
64
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
65
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
66
|
+
# @param [Google::Apis::RequestOptions] options
|
67
|
+
# Request-specific options
|
68
|
+
#
|
69
|
+
# @yield [result, err] Result & error if block supplied
|
70
|
+
# @yieldparam result [Google::Apis::MonitoringV1::Operation] parsed result object
|
71
|
+
# @yieldparam err [StandardError] error object if request failed
|
72
|
+
#
|
73
|
+
# @return [Google::Apis::MonitoringV1::Operation]
|
74
|
+
#
|
75
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
76
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
77
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
78
|
+
def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
79
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
80
|
+
command.response_representation = Google::Apis::MonitoringV1::Operation::Representation
|
81
|
+
command.response_class = Google::Apis::MonitoringV1::Operation
|
82
|
+
command.params['name'] = name unless name.nil?
|
83
|
+
command.query['fields'] = fields unless fields.nil?
|
84
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
85
|
+
execute_or_queue_command(command, &block)
|
86
|
+
end
|
87
|
+
|
56
88
|
# Creates a new custom dashboard. For examples on how you can use this API to
|
57
|
-
# create dashboards, see Managing dashboards by API.
|
58
|
-
# monitoring
|
59
|
-
#
|
89
|
+
# create dashboards, see Managing dashboards by API (https://cloud.google.com/
|
90
|
+
# monitoring/dashboards/api-dashboard). This method requires the monitoring.
|
91
|
+
# dashboards.create permission on the specified project. For more information
|
92
|
+
# about permissions, see Cloud Identity and Access Management (https://cloud.
|
93
|
+
# google.com/iam).
|
60
94
|
# @param [String] parent
|
61
95
|
# Required. The project on which to execute the request. The format is: projects/
|
62
96
|
# [PROJECT_ID_OR_NUMBER] The [PROJECT_ID_OR_NUMBER] must match the dashboard
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-monitoring_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.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-07-
|
11
|
+
date: 2021-07-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-monitoring_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-monitoring_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-monitoring_v1/v0.10.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-monitoring_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|