google-cloud-logging 1.10.7 → 1.10.8

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bcf1cecc45e21a908822e15ae13b14ee5b110e460f61c743442af832e35b3d03
4
- data.tar.gz: 4328a9236c7380894d39281f14906e6a21a5623bf5f9e1a5823b9407be4891ee
3
+ metadata.gz: f64def706bd958e737a9a7a9903faff35900981a558c5b630dff6d2467a60f4a
4
+ data.tar.gz: efcdc2d69073a515afd272a12f9a57b9dd866b1fe44c7c5c766bdbc62f970545
5
5
  SHA512:
6
- metadata.gz: a5cfe2ab82077f691c247e91380c12e9ac632e5ea00cf95af069e93d6d2b20c300a80218c0fe8834785180b52660f8871d0ad0840f1fd343706d903680433326
7
- data.tar.gz: e6ad1dd7d86df9605d3b2fd466ae386ac9115962ad43e2dc568bbbf6c8216f37a06ea184764629baa0c9632db487058847f9c9202be2facb0b5209530df31bfa
6
+ metadata.gz: ac7b2526d5006b53b94521f34341c74fadbbe91e24315bd04ba94825f001c58b8d1f195dacf5e5f789dd847ae171576252e514ce9a83f4310a38a254bf95c3d9
7
+ data.tar.gz: 5b26d1e8a354400d3661b3808ff2bb9849d587c90b7002a2b1d6f18b111d1d2f2b9d931127826e80a1b22ce8d221b8b8e98b309c9053feb6601aa8bbbb3bd30b
@@ -1,5 +1,11 @@
1
1
  # Release History
2
2
 
3
+ ### 1.10.8 / 2020-06-12
4
+
5
+ #### Documentation
6
+
7
+ * Provide more details on low-level monitored resource data types
8
+
3
9
  ### 1.10.7 / 2020-05-28
4
10
 
5
11
  #### Documentation
@@ -18,15 +18,41 @@ module Google
18
18
  # Defines a metric type and its schema. Once a metric descriptor is created,
19
19
  # deleting or altering it stops data collection and makes the metric type's
20
20
  # existing data unusable.
21
+ #
22
+ # The following are specific rules for service defined Monitoring metric
23
+ # descriptors:
24
+ #
25
+ # * `type`, `metric_kind`, `value_type`, `description`, `display_name`,
26
+ # `launch_stage` fields are all required. The `unit` field must be specified
27
+ # if the `value_type` is any of DOUBLE, INT64, DISTRIBUTION.
28
+ # * Maximum of default 500 metric descriptors per service is allowed.
29
+ # * Maximum of default 10 labels per metric descriptor is allowed.
30
+ #
31
+ # The default maximum limit can be overridden. Please follow
32
+ # https://cloud.google.com/monitoring/quotas
21
33
  # @!attribute [rw] name
22
34
  # @return [String]
23
35
  # The resource name of the metric descriptor.
24
36
  # @!attribute [rw] type
25
37
  # @return [String]
26
38
  # The metric type, including its DNS name prefix. The type is not
27
- # URL-encoded. All user-defined metric types have the DNS name
28
- # `custom.googleapis.com` or `external.googleapis.com`. Metric types should
29
- # use a natural hierarchical grouping. For example:
39
+ # URL-encoded.
40
+ #
41
+ # All service defined metrics must be prefixed with the service name, in the
42
+ # format of `{service name}/{relative metric name}`, such as
43
+ # `cloudsql.googleapis.com/database/cpu/utilization`. The relative metric
44
+ # name must follow:
45
+ #
46
+ # * Only upper and lower-case letters, digits, '/' and underscores '_' are
47
+ # allowed.
48
+ # * The maximum number of characters allowed for the relative_metric_name is
49
+ # 100.
50
+ #
51
+ # All user-defined metric types have the DNS name
52
+ # `custom.googleapis.com`, `external.googleapis.com`, or
53
+ # `logging.googleapis.com/user/`.
54
+ #
55
+ # Metric types should use a natural hierarchical grouping. For example:
30
56
  #
31
57
  # "custom.googleapis.com/invoice/paid/amount"
32
58
  # "external.googleapis.com/prometheus/up"
@@ -34,7 +60,16 @@ module Google
34
60
  # @!attribute [rw] labels
35
61
  # @return [Array<Google::Api::LabelDescriptor>]
36
62
  # The set of labels that can be used to describe a specific
37
- # instance of this metric type. For example, the
63
+ # instance of this metric type.
64
+ #
65
+ # The label key name must follow:
66
+ #
67
+ # * Only upper and lower-case letters, digits and underscores (_) are
68
+ # allowed.
69
+ # * Label name must start with a letter or digit.
70
+ # * The maximum length of a label name is 100 characters.
71
+ #
72
+ # For example, the
38
73
  # `appengine.googleapis.com/http/server/response_latencies` metric
39
74
  # type has a label for the HTTP response code, `response_code`, so
40
75
  # you can look at latencies for successful responses or just
@@ -64,7 +99,7 @@ module Google
64
99
  # `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005
65
100
  # CPU-seconds, then the value is written as `12005`.
66
101
  #
67
- # Alternatively, if you want a custome metric to record data in a more
102
+ # Alternatively, if you want a custom metric to record data in a more
68
103
  # granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is
69
104
  # `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`),
70
105
  # or use `Kis{CPU}` and write `11.723` (which is `12005/1024`).
@@ -165,12 +200,18 @@ module Google
165
200
  # @!attribute [rw] launch_stage
166
201
  # @return [Google::Api::LaunchStage]
167
202
  # Optional. The launch stage of the metric definition.
203
+ # @!attribute [rw] monitored_resource_types
204
+ # @return [Array<String>]
205
+ # Read-only. If present, then a [time
206
+ # series][google.monitoring.v3.TimeSeries], which is identified partially by
207
+ # a metric type and a {Google::Api::MonitoredResourceDescriptor MonitoredResourceDescriptor}, that is associated
208
+ # with this metric type can only be associated with one of the monitored
209
+ # resource types listed here.
168
210
  class MetricDescriptor
169
211
  # Additional annotations that can be used to guide the usage of a metric.
170
212
  # @!attribute [rw] launch_stage
171
213
  # @return [Google::Api::LaunchStage]
172
- # Deprecated. Please use the MetricDescriptor.launch_stage instead.
173
- # The launch stage of the metric definition.
214
+ # Deprecated. Must use the {Google::Api::MetricDescriptor#launch_stage MetricDescriptor#launch_stage} instead.
174
215
  # @!attribute [rw] sample_period
175
216
  # @return [Google::Protobuf::Duration]
176
217
  # The sampling period of metric data points. For metrics which are written
@@ -21,9 +21,22 @@ module Google
21
21
  # `"gce_instance"` and specifies the use of the labels `"instance_id"` and
22
22
  # `"zone"` to identify particular VM instances.
23
23
  #
24
- # Different APIs can support different monitored resource types. APIs generally
25
- # provide a `list` method that returns the monitored resource descriptors used
26
- # by the API.
24
+ # Different services can support different monitored resource types.
25
+ #
26
+ # The following are specific rules to service defined monitored resources for
27
+ # Monitoring and Logging:
28
+ #
29
+ # * The `type`, `display_name`, `description`, `labels` and `launch_stage`
30
+ # fields are all required.
31
+ # * The first label of the monitored resource descriptor must be
32
+ # `resource_container`. There are legacy monitored resource descritptors
33
+ # start with `project_id`.
34
+ # * It must include a `location` label. * Maximum of default 5 service defined monitored resource descriptors
35
+ # is allowed per service.
36
+ # * Maximum of default 10 labels per monitored resource is allowed.
37
+ #
38
+ # The default maximum limit can be overridden. Please follow
39
+ # https://cloud.google.com/monitoring/quotas
27
40
  # @!attribute [rw] name
28
41
  # @return [String]
29
42
  # Optional. The resource name of the monitored resource descriptor:
@@ -34,9 +47,7 @@ module Google
34
47
  # resource name format `"monitoredResourceDescriptors/{type}"`.
35
48
  # @!attribute [rw] type
36
49
  # @return [String]
37
- # Required. The monitored resource type. For example, the type
38
- # `"cloudsql_database"` represents databases in Google Cloud SQL.
39
- # The maximum length of this value is 256 characters.
50
+ # Note there are legacy service monitored resources not following this rule.
40
51
  # @!attribute [rw] display_name
41
52
  # @return [String]
42
53
  # Optional. A concise name for the monitored resource type that might be
@@ -50,8 +61,16 @@ module Google
50
61
  # @!attribute [rw] labels
51
62
  # @return [Array<Google::Api::LabelDescriptor>]
52
63
  # Required. A set of labels used to describe instances of this monitored
53
- # resource type. For example, an individual Google Cloud SQL database is
54
- # identified by values for the labels `"database_id"` and `"zone"`.
64
+ # resource type.
65
+ # The label key name must follow:
66
+ #
67
+ # * Only upper and lower-case letters, digits and underscores (_) are
68
+ # allowed.
69
+ # * Label name must start with a letter or digit.
70
+ # * The maximum length of a label name is 100 characters.
71
+ #
72
+ # For example, an individual Google Cloud SQL database is
73
+ # identified by values for the labels `database_id` and `location`.
55
74
  # @!attribute [rw] launch_stage
56
75
  # @return [Google::Api::LaunchStage]
57
76
  # Optional. The launch stage of the monitored resource definition.
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Logging
19
- VERSION = "1.10.7".freeze
19
+ VERSION = "1.10.8".freeze
20
20
  end
21
21
  end
22
22
  end
@@ -50,10 +50,10 @@ end
50
50
 
51
51
  module Google
52
52
  module Logging
53
- module V2
54
- LogEntry = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.LogEntry").msgclass
55
- LogEntryOperation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.LogEntryOperation").msgclass
56
- LogEntrySourceLocation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.LogEntrySourceLocation").msgclass
57
- end
58
53
  end
59
54
  end
55
+ module Google::Logging::V2
56
+ LogEntry = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.LogEntry").msgclass
57
+ LogEntryOperation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.LogEntryOperation").msgclass
58
+ LogEntrySourceLocation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.LogEntrySourceLocation").msgclass
59
+ end
@@ -142,32 +142,32 @@ end
142
142
 
143
143
  module Google
144
144
  module Logging
145
- module V2
146
- LogBucket = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.LogBucket").msgclass
147
- LogSink = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.LogSink").msgclass
148
- LogSink::VersionFormat = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.LogSink.VersionFormat").enummodule
149
- BigQueryOptions = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.BigQueryOptions").msgclass
150
- ListBucketsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListBucketsRequest").msgclass
151
- ListBucketsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListBucketsResponse").msgclass
152
- UpdateBucketRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.UpdateBucketRequest").msgclass
153
- GetBucketRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.GetBucketRequest").msgclass
154
- ListSinksRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListSinksRequest").msgclass
155
- ListSinksResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListSinksResponse").msgclass
156
- GetSinkRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.GetSinkRequest").msgclass
157
- CreateSinkRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.CreateSinkRequest").msgclass
158
- UpdateSinkRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.UpdateSinkRequest").msgclass
159
- DeleteSinkRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.DeleteSinkRequest").msgclass
160
- LogExclusion = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.LogExclusion").msgclass
161
- ListExclusionsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListExclusionsRequest").msgclass
162
- ListExclusionsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListExclusionsResponse").msgclass
163
- GetExclusionRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.GetExclusionRequest").msgclass
164
- CreateExclusionRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.CreateExclusionRequest").msgclass
165
- UpdateExclusionRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.UpdateExclusionRequest").msgclass
166
- DeleteExclusionRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.DeleteExclusionRequest").msgclass
167
- GetCmekSettingsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.GetCmekSettingsRequest").msgclass
168
- UpdateCmekSettingsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.UpdateCmekSettingsRequest").msgclass
169
- CmekSettings = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.CmekSettings").msgclass
170
- LifecycleState = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.LifecycleState").enummodule
171
- end
172
145
  end
173
146
  end
147
+ module Google::Logging::V2
148
+ LogBucket = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.LogBucket").msgclass
149
+ LogSink = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.LogSink").msgclass
150
+ LogSink::VersionFormat = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.LogSink.VersionFormat").enummodule
151
+ BigQueryOptions = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.BigQueryOptions").msgclass
152
+ ListBucketsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListBucketsRequest").msgclass
153
+ ListBucketsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListBucketsResponse").msgclass
154
+ UpdateBucketRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.UpdateBucketRequest").msgclass
155
+ GetBucketRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.GetBucketRequest").msgclass
156
+ ListSinksRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListSinksRequest").msgclass
157
+ ListSinksResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListSinksResponse").msgclass
158
+ GetSinkRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.GetSinkRequest").msgclass
159
+ CreateSinkRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.CreateSinkRequest").msgclass
160
+ UpdateSinkRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.UpdateSinkRequest").msgclass
161
+ DeleteSinkRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.DeleteSinkRequest").msgclass
162
+ LogExclusion = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.LogExclusion").msgclass
163
+ ListExclusionsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListExclusionsRequest").msgclass
164
+ ListExclusionsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListExclusionsResponse").msgclass
165
+ GetExclusionRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.GetExclusionRequest").msgclass
166
+ CreateExclusionRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.CreateExclusionRequest").msgclass
167
+ UpdateExclusionRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.UpdateExclusionRequest").msgclass
168
+ DeleteExclusionRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.DeleteExclusionRequest").msgclass
169
+ GetCmekSettingsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.GetCmekSettingsRequest").msgclass
170
+ UpdateCmekSettingsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.UpdateCmekSettingsRequest").msgclass
171
+ CmekSettings = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.CmekSettings").msgclass
172
+ LifecycleState = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.LifecycleState").enummodule
173
+ end
@@ -1,5 +1,5 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # Source: google/logging/v2/logging_config.proto for package 'google.logging.v2'
2
+ # Source: google/logging/v2/logging_config.proto for package 'Google::Cloud::Logging::V2'
3
3
  # Original file comments:
4
4
  # Copyright 2020 Google LLC
5
5
  #
@@ -22,91 +22,91 @@ require 'google/logging/v2/logging_config_pb'
22
22
 
23
23
  module Google
24
24
  module Logging
25
- module V2
26
- module ConfigServiceV2
27
- # Service for configuring sinks used to route log entries.
28
- class Service
29
-
30
- include GRPC::GenericService
25
+ end
26
+ end
27
+ module Google::Logging::V2
28
+ module ConfigServiceV2
29
+ # Service for configuring sinks used to route log entries.
30
+ class Service
31
31
 
32
- self.marshal_class_method = :encode
33
- self.unmarshal_class_method = :decode
34
- self.service_name = 'google.logging.v2.ConfigServiceV2'
32
+ include GRPC::GenericService
35
33
 
36
- # Lists buckets (Beta).
37
- rpc :ListBuckets, ListBucketsRequest, ListBucketsResponse
38
- # Gets a bucket (Beta).
39
- rpc :GetBucket, GetBucketRequest, LogBucket
40
- # Updates a bucket. This method replaces the following fields in the
41
- # existing bucket with values from the new bucket: `retention_period`
42
- #
43
- # If the retention period is decreased and the bucket is locked,
44
- # FAILED_PRECONDITION will be returned.
45
- #
46
- # If the bucket has a LifecycleState of DELETE_REQUESTED, FAILED_PRECONDITION
47
- # will be returned.
48
- #
49
- # A buckets region may not be modified after it is created.
50
- # This method is in Beta.
51
- rpc :UpdateBucket, UpdateBucketRequest, LogBucket
52
- # Lists sinks.
53
- rpc :ListSinks, ListSinksRequest, ListSinksResponse
54
- # Gets a sink.
55
- rpc :GetSink, GetSinkRequest, LogSink
56
- # Creates a sink that exports specified log entries to a destination. The
57
- # export of newly-ingested log entries begins immediately, unless the sink's
58
- # `writer_identity` is not permitted to write to the destination. A sink can
59
- # export log entries only from the resource owning the sink.
60
- rpc :CreateSink, CreateSinkRequest, LogSink
61
- # Updates a sink. This method replaces the following fields in the existing
62
- # sink with values from the new sink: `destination`, and `filter`.
63
- #
64
- # The updated sink might also have a new `writer_identity`; see the
65
- # `unique_writer_identity` field.
66
- rpc :UpdateSink, UpdateSinkRequest, LogSink
67
- # Deletes a sink. If the sink has a unique `writer_identity`, then that
68
- # service account is also deleted.
69
- rpc :DeleteSink, DeleteSinkRequest, Google::Protobuf::Empty
70
- # Lists all the exclusions in a parent resource.
71
- rpc :ListExclusions, ListExclusionsRequest, ListExclusionsResponse
72
- # Gets the description of an exclusion.
73
- rpc :GetExclusion, GetExclusionRequest, LogExclusion
74
- # Creates a new exclusion in a specified parent resource.
75
- # Only log entries belonging to that resource can be excluded.
76
- # You can have up to 10 exclusions in a resource.
77
- rpc :CreateExclusion, CreateExclusionRequest, LogExclusion
78
- # Changes one or more properties of an existing exclusion.
79
- rpc :UpdateExclusion, UpdateExclusionRequest, LogExclusion
80
- # Deletes an exclusion.
81
- rpc :DeleteExclusion, DeleteExclusionRequest, Google::Protobuf::Empty
82
- # Gets the Logs Router CMEK settings for the given resource.
83
- #
84
- # Note: CMEK for the Logs Router can currently only be configured for GCP
85
- # organizations. Once configured, it applies to all projects and folders in
86
- # the GCP organization.
87
- #
88
- # See [Enabling CMEK for Logs
89
- # Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information.
90
- rpc :GetCmekSettings, GetCmekSettingsRequest, CmekSettings
91
- # Updates the Logs Router CMEK settings for the given resource.
92
- #
93
- # Note: CMEK for the Logs Router can currently only be configured for GCP
94
- # organizations. Once configured, it applies to all projects and folders in
95
- # the GCP organization.
96
- #
97
- # [UpdateCmekSettings][google.logging.v2.ConfigServiceV2.UpdateCmekSettings]
98
- # will fail if 1) `kms_key_name` is invalid, or 2) the associated service
99
- # account does not have the required
100
- # `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or
101
- # 3) access to the key is disabled.
102
- #
103
- # See [Enabling CMEK for Logs
104
- # Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information.
105
- rpc :UpdateCmekSettings, UpdateCmekSettingsRequest, CmekSettings
106
- end
34
+ self.marshal_class_method = :encode
35
+ self.unmarshal_class_method = :decode
36
+ self.service_name = 'google.logging.v2.ConfigServiceV2'
107
37
 
108
- Stub = Service.rpc_stub_class
109
- end
38
+ # Lists buckets (Beta).
39
+ rpc :ListBuckets, ListBucketsRequest, ListBucketsResponse
40
+ # Gets a bucket (Beta).
41
+ rpc :GetBucket, GetBucketRequest, LogBucket
42
+ # Updates a bucket. This method replaces the following fields in the
43
+ # existing bucket with values from the new bucket: `retention_period`
44
+ #
45
+ # If the retention period is decreased and the bucket is locked,
46
+ # FAILED_PRECONDITION will be returned.
47
+ #
48
+ # If the bucket has a LifecycleState of DELETE_REQUESTED, FAILED_PRECONDITION
49
+ # will be returned.
50
+ #
51
+ # A buckets region may not be modified after it is created.
52
+ # This method is in Beta.
53
+ rpc :UpdateBucket, UpdateBucketRequest, LogBucket
54
+ # Lists sinks.
55
+ rpc :ListSinks, ListSinksRequest, ListSinksResponse
56
+ # Gets a sink.
57
+ rpc :GetSink, GetSinkRequest, LogSink
58
+ # Creates a sink that exports specified log entries to a destination. The
59
+ # export of newly-ingested log entries begins immediately, unless the sink's
60
+ # `writer_identity` is not permitted to write to the destination. A sink can
61
+ # export log entries only from the resource owning the sink.
62
+ rpc :CreateSink, CreateSinkRequest, LogSink
63
+ # Updates a sink. This method replaces the following fields in the existing
64
+ # sink with values from the new sink: `destination`, and `filter`.
65
+ #
66
+ # The updated sink might also have a new `writer_identity`; see the
67
+ # `unique_writer_identity` field.
68
+ rpc :UpdateSink, UpdateSinkRequest, LogSink
69
+ # Deletes a sink. If the sink has a unique `writer_identity`, then that
70
+ # service account is also deleted.
71
+ rpc :DeleteSink, DeleteSinkRequest, Google::Protobuf::Empty
72
+ # Lists all the exclusions in a parent resource.
73
+ rpc :ListExclusions, ListExclusionsRequest, ListExclusionsResponse
74
+ # Gets the description of an exclusion.
75
+ rpc :GetExclusion, GetExclusionRequest, LogExclusion
76
+ # Creates a new exclusion in a specified parent resource.
77
+ # Only log entries belonging to that resource can be excluded.
78
+ # You can have up to 10 exclusions in a resource.
79
+ rpc :CreateExclusion, CreateExclusionRequest, LogExclusion
80
+ # Changes one or more properties of an existing exclusion.
81
+ rpc :UpdateExclusion, UpdateExclusionRequest, LogExclusion
82
+ # Deletes an exclusion.
83
+ rpc :DeleteExclusion, DeleteExclusionRequest, Google::Protobuf::Empty
84
+ # Gets the Logs Router CMEK settings for the given resource.
85
+ #
86
+ # Note: CMEK for the Logs Router can currently only be configured for GCP
87
+ # organizations. Once configured, it applies to all projects and folders in
88
+ # the GCP organization.
89
+ #
90
+ # See [Enabling CMEK for Logs
91
+ # Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information.
92
+ rpc :GetCmekSettings, GetCmekSettingsRequest, CmekSettings
93
+ # Updates the Logs Router CMEK settings for the given resource.
94
+ #
95
+ # Note: CMEK for the Logs Router can currently only be configured for GCP
96
+ # organizations. Once configured, it applies to all projects and folders in
97
+ # the GCP organization.
98
+ #
99
+ # [UpdateCmekSettings][google.logging.v2.ConfigServiceV2.UpdateCmekSettings]
100
+ # will fail if 1) `kms_key_name` is invalid, or 2) the associated service
101
+ # account does not have the required
102
+ # `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or
103
+ # 3) access to the key is disabled.
104
+ #
105
+ # See [Enabling CMEK for Logs
106
+ # Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information.
107
+ rpc :UpdateCmekSettings, UpdateCmekSettingsRequest, CmekSettings
110
108
  end
109
+
110
+ Stub = Service.rpc_stub_class
111
111
  end
112
112
  end
@@ -58,15 +58,15 @@ end
58
58
 
59
59
  module Google
60
60
  module Logging
61
- module V2
62
- LogMetric = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.LogMetric").msgclass
63
- LogMetric::ApiVersion = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.LogMetric.ApiVersion").enummodule
64
- ListLogMetricsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListLogMetricsRequest").msgclass
65
- ListLogMetricsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListLogMetricsResponse").msgclass
66
- GetLogMetricRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.GetLogMetricRequest").msgclass
67
- CreateLogMetricRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.CreateLogMetricRequest").msgclass
68
- UpdateLogMetricRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.UpdateLogMetricRequest").msgclass
69
- DeleteLogMetricRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.DeleteLogMetricRequest").msgclass
70
- end
71
61
  end
72
62
  end
63
+ module Google::Logging::V2
64
+ LogMetric = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.LogMetric").msgclass
65
+ LogMetric::ApiVersion = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.LogMetric.ApiVersion").enummodule
66
+ ListLogMetricsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListLogMetricsRequest").msgclass
67
+ ListLogMetricsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListLogMetricsResponse").msgclass
68
+ GetLogMetricRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.GetLogMetricRequest").msgclass
69
+ CreateLogMetricRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.CreateLogMetricRequest").msgclass
70
+ UpdateLogMetricRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.UpdateLogMetricRequest").msgclass
71
+ DeleteLogMetricRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.DeleteLogMetricRequest").msgclass
72
+ end
@@ -1,5 +1,5 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # Source: google/logging/v2/logging_metrics.proto for package 'google.logging.v2'
2
+ # Source: google/logging/v2/logging_metrics.proto for package 'Google::Cloud::Logging::V2'
3
3
  # Original file comments:
4
4
  # Copyright 2020 Google LLC
5
5
  #
@@ -22,31 +22,31 @@ require 'google/logging/v2/logging_metrics_pb'
22
22
 
23
23
  module Google
24
24
  module Logging
25
- module V2
26
- module MetricsServiceV2
27
- # Service for configuring logs-based metrics.
28
- class Service
29
-
30
- include GRPC::GenericService
25
+ end
26
+ end
27
+ module Google::Logging::V2
28
+ module MetricsServiceV2
29
+ # Service for configuring logs-based metrics.
30
+ class Service
31
31
 
32
- self.marshal_class_method = :encode
33
- self.unmarshal_class_method = :decode
34
- self.service_name = 'google.logging.v2.MetricsServiceV2'
32
+ include GRPC::GenericService
35
33
 
36
- # Lists logs-based metrics.
37
- rpc :ListLogMetrics, ListLogMetricsRequest, ListLogMetricsResponse
38
- # Gets a logs-based metric.
39
- rpc :GetLogMetric, GetLogMetricRequest, LogMetric
40
- # Creates a logs-based metric.
41
- rpc :CreateLogMetric, CreateLogMetricRequest, LogMetric
42
- # Creates or updates a logs-based metric.
43
- rpc :UpdateLogMetric, UpdateLogMetricRequest, LogMetric
44
- # Deletes a logs-based metric.
45
- rpc :DeleteLogMetric, DeleteLogMetricRequest, Google::Protobuf::Empty
46
- end
34
+ self.marshal_class_method = :encode
35
+ self.unmarshal_class_method = :decode
36
+ self.service_name = 'google.logging.v2.MetricsServiceV2'
47
37
 
48
- Stub = Service.rpc_stub_class
49
- end
38
+ # Lists logs-based metrics.
39
+ rpc :ListLogMetrics, ListLogMetricsRequest, ListLogMetricsResponse
40
+ # Gets a logs-based metric.
41
+ rpc :GetLogMetric, GetLogMetricRequest, LogMetric
42
+ # Creates a logs-based metric.
43
+ rpc :CreateLogMetric, CreateLogMetricRequest, LogMetric
44
+ # Creates or updates a logs-based metric.
45
+ rpc :UpdateLogMetric, UpdateLogMetricRequest, LogMetric
46
+ # Deletes a logs-based metric.
47
+ rpc :DeleteLogMetric, DeleteLogMetricRequest, Google::Protobuf::Empty
50
48
  end
49
+
50
+ Stub = Service.rpc_stub_class
51
51
  end
52
52
  end
@@ -64,17 +64,17 @@ end
64
64
 
65
65
  module Google
66
66
  module Logging
67
- module V2
68
- DeleteLogRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.DeleteLogRequest").msgclass
69
- WriteLogEntriesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.WriteLogEntriesRequest").msgclass
70
- WriteLogEntriesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.WriteLogEntriesResponse").msgclass
71
- WriteLogEntriesPartialErrors = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.WriteLogEntriesPartialErrors").msgclass
72
- ListLogEntriesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListLogEntriesRequest").msgclass
73
- ListLogEntriesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListLogEntriesResponse").msgclass
74
- ListMonitoredResourceDescriptorsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListMonitoredResourceDescriptorsRequest").msgclass
75
- ListMonitoredResourceDescriptorsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListMonitoredResourceDescriptorsResponse").msgclass
76
- ListLogsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListLogsRequest").msgclass
77
- ListLogsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListLogsResponse").msgclass
78
- end
79
67
  end
80
68
  end
69
+ module Google::Logging::V2
70
+ DeleteLogRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.DeleteLogRequest").msgclass
71
+ WriteLogEntriesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.WriteLogEntriesRequest").msgclass
72
+ WriteLogEntriesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.WriteLogEntriesResponse").msgclass
73
+ WriteLogEntriesPartialErrors = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.WriteLogEntriesPartialErrors").msgclass
74
+ ListLogEntriesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListLogEntriesRequest").msgclass
75
+ ListLogEntriesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListLogEntriesResponse").msgclass
76
+ ListMonitoredResourceDescriptorsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListMonitoredResourceDescriptorsRequest").msgclass
77
+ ListMonitoredResourceDescriptorsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListMonitoredResourceDescriptorsResponse").msgclass
78
+ ListLogsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListLogsRequest").msgclass
79
+ ListLogsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.logging.v2.ListLogsResponse").msgclass
80
+ end
@@ -1,5 +1,5 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # Source: google/logging/v2/logging.proto for package 'google.logging.v2'
2
+ # Source: google/logging/v2/logging.proto for package 'Google::Cloud::Logging::V2'
3
3
  # Original file comments:
4
4
  # Copyright 2020 Google LLC
5
5
  #
@@ -22,43 +22,43 @@ require 'google/logging/v2/logging_pb'
22
22
 
23
23
  module Google
24
24
  module Logging
25
- module V2
26
- module LoggingServiceV2
27
- # Service for ingesting and querying logs.
28
- class Service
29
-
30
- include GRPC::GenericService
25
+ end
26
+ end
27
+ module Google::Logging::V2
28
+ module LoggingServiceV2
29
+ # Service for ingesting and querying logs.
30
+ class Service
31
31
 
32
- self.marshal_class_method = :encode
33
- self.unmarshal_class_method = :decode
34
- self.service_name = 'google.logging.v2.LoggingServiceV2'
32
+ include GRPC::GenericService
35
33
 
36
- # Deletes all the log entries in a log. The log reappears if it receives new
37
- # entries. Log entries written shortly before the delete operation might not
38
- # be deleted. Entries received after the delete operation with a timestamp
39
- # before the operation will be deleted.
40
- rpc :DeleteLog, DeleteLogRequest, Google::Protobuf::Empty
41
- # Writes log entries to Logging. This API method is the
42
- # only way to send log entries to Logging. This method
43
- # is used, directly or indirectly, by the Logging agent
44
- # (fluentd) and all logging libraries configured to use Logging.
45
- # A single request may contain log entries for a maximum of 1000
46
- # different resources (projects, organizations, billing accounts or
47
- # folders)
48
- rpc :WriteLogEntries, WriteLogEntriesRequest, WriteLogEntriesResponse
49
- # Lists log entries. Use this method to retrieve log entries that originated
50
- # from a project/folder/organization/billing account. For ways to export log
51
- # entries, see [Exporting Logs](https://cloud.google.com/logging/docs/export).
52
- rpc :ListLogEntries, ListLogEntriesRequest, ListLogEntriesResponse
53
- # Lists the descriptors for monitored resource types used by Logging.
54
- rpc :ListMonitoredResourceDescriptors, ListMonitoredResourceDescriptorsRequest, ListMonitoredResourceDescriptorsResponse
55
- # Lists the logs in projects, organizations, folders, or billing accounts.
56
- # Only logs that have entries are listed.
57
- rpc :ListLogs, ListLogsRequest, ListLogsResponse
58
- end
34
+ self.marshal_class_method = :encode
35
+ self.unmarshal_class_method = :decode
36
+ self.service_name = 'google.logging.v2.LoggingServiceV2'
59
37
 
60
- Stub = Service.rpc_stub_class
61
- end
38
+ # Deletes all the log entries in a log. The log reappears if it receives new
39
+ # entries. Log entries written shortly before the delete operation might not
40
+ # be deleted. Entries received after the delete operation with a timestamp
41
+ # before the operation will be deleted.
42
+ rpc :DeleteLog, DeleteLogRequest, Google::Protobuf::Empty
43
+ # Writes log entries to Logging. This API method is the
44
+ # only way to send log entries to Logging. This method
45
+ # is used, directly or indirectly, by the Logging agent
46
+ # (fluentd) and all logging libraries configured to use Logging.
47
+ # A single request may contain log entries for a maximum of 1000
48
+ # different resources (projects, organizations, billing accounts or
49
+ # folders)
50
+ rpc :WriteLogEntries, WriteLogEntriesRequest, WriteLogEntriesResponse
51
+ # Lists log entries. Use this method to retrieve log entries that originated
52
+ # from a project/folder/organization/billing account. For ways to export log
53
+ # entries, see [Exporting Logs](https://cloud.google.com/logging/docs/export).
54
+ rpc :ListLogEntries, ListLogEntriesRequest, ListLogEntriesResponse
55
+ # Lists the descriptors for monitored resource types used by Logging.
56
+ rpc :ListMonitoredResourceDescriptors, ListMonitoredResourceDescriptorsRequest, ListMonitoredResourceDescriptorsResponse
57
+ # Lists the logs in projects, organizations, folders, or billing accounts.
58
+ # Only logs that have entries are listed.
59
+ rpc :ListLogs, ListLogsRequest, ListLogsResponse
62
60
  end
61
+
62
+ Stub = Service.rpc_stub_class
63
63
  end
64
64
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-logging
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.7
4
+ version: 1.10.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Moore
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-05-28 00:00:00.000000000 Z
12
+ date: 2020-06-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: google-cloud-core
@@ -367,7 +367,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
367
367
  - !ruby/object:Gem::Version
368
368
  version: '0'
369
369
  requirements: []
370
- rubygems_version: 3.0.6
370
+ rubygems_version: 3.1.3
371
371
  signing_key:
372
372
  specification_version: 4
373
373
  summary: API Client library for Stackdriver Logging