google-apis-logging_v2 0.13.0 → 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: df9f8ca0a53cee762ccb82941421bfa6c510b70e600fa05d49b9d29ac32333b5
4
- data.tar.gz: b9fc3a0b5418248ee4b23ec144cc4c1f0267bb5f832087254938f4bb58c03dfe
3
+ metadata.gz: 2454c651ce51159190a0c3450909bc39c02469aece9a6c8ed1d82ef898a9d8d1
4
+ data.tar.gz: e03a7292f079132b2bc01c1d7262097079793a8e9c9ba10ff59ac96d9b20fbcc
5
5
  SHA512:
6
- metadata.gz: e1dcd65c66e1e16df10af24c2dc3abb12aef52b2229f44e360c08e4aa117a356f4fd3713923dc2a89772e05cae5a9adc1f260c0c0142a9afd8cc600a6d7b0a2c
7
- data.tar.gz: fd7512b3ac18a50e5596a1d28b2805b9eb5fb1a2e64b9a2d5c04d0665b89032a9c2cdec609e93ba85bf49add50ebaff31a49a6cf71325cba9ebf173c6bb94f8f
6
+ metadata.gz: 3eeef64377ec68b5fe7243cf60dad887f8b976f882e71815a86e85a9125def62db51572cff43e4429ba7f7d178340a6f7f06ae0c944409539c6776fc4241bed0
7
+ data.tar.gz: 9883c27385dcb3a4f717c67db5c8238399261a7c3ce8595941ae064d51a06e2373194037bb99878f4f4272c44bfa54dfbf2bbfc5a70d8bf6102f8adf02ae76f3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Release history for google-apis-logging_v2
2
2
 
3
+ ### v0.17.0 (2021-11-02)
4
+
5
+ * Regenerated from discovery document revision 20211019
6
+
7
+ ### v0.16.0 (2021-10-26)
8
+
9
+ * Regenerated from discovery document revision 20211015
10
+ * Unspecified changes
11
+
12
+ ### v0.15.0 (2021-10-02)
13
+
14
+ * Regenerated from discovery document revision 20210922
15
+
16
+ ### v0.14.0 (2021-09-01)
17
+
18
+ * Regenerated from discovery document revision 20210817
19
+
3
20
  ### v0.13.0 (2021-07-16)
4
21
 
5
22
  * Regenerated from discovery document revision 20210709
data/OVERVIEW.md CHANGED
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
60
60
 
61
61
  More detailed descriptions of the Google simple REST clients are available in two documents.
62
62
 
63
- * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
- * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
63
+ * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
+ * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
65
65
 
66
66
  (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Logging service in particular.)
67
67
 
@@ -27,18 +27,19 @@ module Google
27
27
  include Google::Apis::Core::Hashable
28
28
 
29
29
  # Optional. Whether to use BigQuery's partition tables (https://cloud.google.com/
30
- # bigquery/docs/partitioned-tables). By default, Logging creates dated tables
31
- # based on the log entries' timestamps, e.g. syslog_20170523. With partitioned
32
- # tables the date suffix is no longer present and special query syntax (https://
33
- # cloud.google.com/bigquery/docs/querying-partitioned-tables) has to be used
34
- # instead. In both cases, tables are sharded based on UTC timezone.
30
+ # bigquery/docs/partitioned-tables). By default, Cloud Logging creates dated
31
+ # tables based on the log entries' timestamps, e.g. syslog_20170523. With
32
+ # partitioned tables the date suffix is no longer present and special query
33
+ # syntax (https://cloud.google.com/bigquery/docs/querying-partitioned-tables)
34
+ # has to be used instead. In both cases, tables are sharded based on UTC
35
+ # timezone.
35
36
  # Corresponds to the JSON property `usePartitionedTables`
36
37
  # @return [Boolean]
37
38
  attr_accessor :use_partitioned_tables
38
39
  alias_method :use_partitioned_tables?, :use_partitioned_tables
39
40
 
40
41
  # Output only. True if new timestamp column based partitioning is in use, false
41
- # if legacy ingestion-time partitioning is in use. All new sinks will have this
42
+ # if legacy ingestion-time partitioning is in use.All new sinks will have this
42
43
  # field set true and will use timestamp column based partitioning. If
43
44
  # use_partitioned_tables is false, this value has no meaning and will be false.
44
45
  # Legacy sinks using partitioned tables will have this field set to false.
@@ -130,27 +131,27 @@ module Google
130
131
 
131
132
  # Describes the customer-managed encryption key (CMEK) settings associated with
132
133
  # a project, folder, organization, billing account, or flexible resource.Note:
133
- # CMEK for the Logs Router can currently only be configured for GCP
134
+ # CMEK for the Logs Router can currently only be configured for Google Cloud
134
135
  # organizations. Once configured, it applies to all projects and folders in the
135
- # GCP organization.See Enabling CMEK for Logs Router (https://cloud.google.com/
136
- # logging/docs/routing/managed-encryption) for more information.
136
+ # Google Cloud organization.See Enabling CMEK for Logs Router (https://cloud.
137
+ # google.com/logging/docs/routing/managed-encryption) for more information.
137
138
  class CmekSettings
138
139
  include Google::Apis::Core::Hashable
139
140
 
140
141
  # The resource name for the configured Cloud KMS key.KMS key name format: "
141
- # projects/PROJECT_ID/locations/LOCATION/keyRings/KEYRING/cryptoKeys/KEY"For
142
- # example: "projects/my-project-id/locations/my-region/keyRings/key-ring-name/
143
- # cryptoKeys/key-name"To enable CMEK for the Logs Router, set this field to a
142
+ # projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]"
143
+ # For example:"projects/my-project/locations/us-central1/keyRings/my-ring/
144
+ # cryptoKeys/my-key"To enable CMEK for the Logs Router, set this field to a
144
145
  # valid kms_key_name for which the associated service account has the required
145
- # roles/cloudkms.cryptoKeyEncrypterDecrypter role assigned for the key.The Cloud
146
- # KMS key used by the Log Router can be updated by changing the kms_key_name to
147
- # a new valid key name. Encryption operations that are in progress will be
148
- # completed with the key that was in use when they started. Decryption
149
- # operations will be completed using the key that was used at the time of
150
- # encryption unless access to that key has been revoked.To disable CMEK for the
151
- # Logs Router, set this field to an empty string.See Enabling CMEK for Logs
152
- # Router (https://cloud.google.com/logging/docs/routing/managed-encryption) for
153
- # more information.
146
+ # cloudkms.cryptoKeyEncrypterDecrypter roles assigned for the key.The Cloud KMS
147
+ # key used by the Log Router can be updated by changing the kms_key_name to a
148
+ # new valid key name or disabled by setting the key name to an empty string.
149
+ # Encryption operations that are in progress will be completed with the key that
150
+ # was in use when they started. Decryption operations will be completed using
151
+ # the key that was used at the time of encryption unless access to that key has
152
+ # been revoked.To disable CMEK for the Logs Router, set this field to an empty
153
+ # string.See Enabling CMEK for Logs Router (https://cloud.google.com/logging/
154
+ # docs/routing/managed-encryption) for more information.
154
155
  # Corresponds to the JSON property `kmsKeyName`
155
156
  # @return [String]
156
157
  attr_accessor :kms_key_name
@@ -162,8 +163,8 @@ module Google
162
163
 
163
164
  # Output only. The service account that will be used by the Logs Router to
164
165
  # access your Cloud KMS key.Before enabling CMEK for Logs Router, you must first
165
- # assign the role roles/cloudkms.cryptoKeyEncrypterDecrypter to the service
166
- # account that the Logs Router will use to access your Cloud KMS key. Use
166
+ # assign the cloudkms.cryptoKeyEncrypterDecrypter role to the service account
167
+ # that the Logs Router will use to access your Cloud KMS key. Use
167
168
  # GetCmekSettings to obtain the service account ID.See Enabling CMEK for Logs
168
169
  # Router (https://cloud.google.com/logging/docs/routing/managed-encryption) for
169
170
  # more information.
@@ -219,8 +220,8 @@ module Google
219
220
  attr_accessor :state
220
221
 
221
222
  # The IAM identity of a service account that must be granted access to the
222
- # destination. If the service account is not granted permission to the
223
- # destination within an hour, the operation will be cancelled. Example: "
223
+ # destination.If the service account is not granted permission to the
224
+ # destination within an hour, the operation will be cancelled.For example: "
224
225
  # serviceAccount:foo@bar.com"
225
226
  # Corresponds to the JSON property `writerIdentity`
226
227
  # @return [String]
@@ -246,7 +247,7 @@ module Google
246
247
  class CopyLogEntriesRequest
247
248
  include Google::Apis::Core::Hashable
248
249
 
249
- # Required. Destination to which to copy logs.
250
+ # Required. Destination to which to copy log entries.
250
251
  # Corresponds to the JSON property `destination`
251
252
  # @return [String]
252
253
  attr_accessor :destination
@@ -257,8 +258,8 @@ module Google
257
258
  # @return [String]
258
259
  attr_accessor :filter
259
260
 
260
- # Required. Bucket from which to copy logs. e.g. "projects/my-project/locations/
261
- # my-location/buckets/my-source-bucket
261
+ # Required. Log bucket from which to copy log entries.For example:"projects/my-
262
+ # project/locations/global/buckets/my-source-bucket"
262
263
  # Corresponds to the JSON property `name`
263
264
  # @return [String]
264
265
  attr_accessor :name
@@ -954,7 +955,7 @@ module Google
954
955
  end
955
956
  end
956
957
 
957
- # Describes a repository of logs.
958
+ # Describes a repository in which log entries are stored.
958
959
  class LogBucket
959
960
  include Google::Apis::Core::Hashable
960
961
 
@@ -974,27 +975,27 @@ module Google
974
975
  # @return [String]
975
976
  attr_accessor :lifecycle_state
976
977
 
977
- # Whether the bucket has been locked. The retention period on a locked bucket
978
- # may not be changed. Locked buckets may only be deleted if they are empty.
978
+ # Whether the bucket is locked.The retention period on a locked bucket cannot be
979
+ # changed. Locked buckets may only be deleted if they are empty.
979
980
  # Corresponds to the JSON property `locked`
980
981
  # @return [Boolean]
981
982
  attr_accessor :locked
982
983
  alias_method :locked?, :locked
983
984
 
984
- # Output only. The resource name of the bucket. For example: "projects/my-
985
- # project-id/locations/my-location/buckets/my-bucket-id" The supported locations
986
- # are: global, us-central1, us-east1, us-west1, asia-east1, europe-west1.For the
987
- # location of global it is unspecified where logs are actually stored. Once a
988
- # bucket has been created, the location can not be changed.
985
+ # Output only. The resource name of the bucket.For example:projects/my-project/
986
+ # locations/global/buckets/my-bucketFor a list of supported locations, see
987
+ # Supported Regions (https://cloud.google.com/logging/docs/region-support)For
988
+ # the location of global it is unspecified where log entries are actually stored.
989
+ # After a bucket has been created, the location cannot be changed.
989
990
  # Corresponds to the JSON property `name`
990
991
  # @return [String]
991
992
  attr_accessor :name
992
993
 
993
- # Log entry field paths that are denied access in this bucket. The following
994
+ # Log entry field paths that are denied access in this bucket.The following
994
995
  # fields and their children are eligible: textPayload, jsonPayload, protoPayload,
995
- # httpRequest, labels, sourceLocation. Restricting a repeated field will
996
- # restrict all values. Adding a parent will block all child fields e.g. foo.bar
997
- # will block foo.bar.baz.
996
+ # httpRequest, labels, sourceLocation.Restricting a repeated field will
997
+ # restrict all values. Adding a parent will block all child fields. (e.g. foo.
998
+ # bar will block foo.bar.baz)
998
999
  # Corresponds to the JSON property `restrictedFields`
999
1000
  # @return [Array<String>]
1000
1001
  attr_accessor :restricted_fields
@@ -1295,12 +1296,11 @@ module Google
1295
1296
  end
1296
1297
  end
1297
1298
 
1298
- # Specifies a set of log entries that are not to be stored in Logging. If your
1299
- # GCP resource receives a large volume of logs, you can use exclusions to reduce
1300
- # your chargeable logs. Exclusions are processed after log sinks, so you can
1301
- # export log entries before they are excluded. Note that organization-level and
1302
- # folder-level exclusions don't apply to child resources, and that you can't
1303
- # exclude audit log entries.
1299
+ # Specifies a set of log entries that are filtered out by a sink. If your Google
1300
+ # Cloud resource receives a large volume of log entries, you can use exclusions
1301
+ # to reduce your chargeable logs. Note that exclusions on organization-level and
1302
+ # folder-level sinks don't apply to child resources. Note also that you cannot
1303
+ # modify the _Required sink or exclude logs from it.
1304
1304
  class LogExclusion
1305
1305
  include Google::Apis::Core::Hashable
1306
1306
 
@@ -1326,10 +1326,10 @@ module Google
1326
1326
  # Required. An advanced logs filter (https://cloud.google.com/logging/docs/view/
1327
1327
  # advanced-queries) that matches the log entries to be excluded. By using the
1328
1328
  # sample function (https://cloud.google.com/logging/docs/view/advanced-queries#
1329
- # sample), you can exclude less than 100% of the matching log entries. For
1329
+ # sample), you can exclude less than 100% of the matching log entries.For
1330
1330
  # example, the following query matches 99% of low-severity log entries from
1331
- # Google Cloud Storage buckets:"resource.type=gcs_bucket severity<ERROR sample(
1332
- # insertId, 0.99)"
1331
+ # Google Cloud Storage buckets:resource.type=gcs_bucket severity<ERROR sample(
1332
+ # insertId, 0.99)
1333
1333
  # Corresponds to the JSON property `filter`
1334
1334
  # @return [String]
1335
1335
  attr_accessor :filter
@@ -1535,10 +1535,10 @@ module Google
1535
1535
  end
1536
1536
 
1537
1537
  # Describes a sink used to export log entries to one of the following
1538
- # destinations in any project: a Cloud Storage bucket, a BigQuery dataset, a
1539
- # Cloud Pub/Sub topic or a Cloud Logging Bucket. A logs filter controls which
1540
- # log entries are exported. The sink must be created within a project,
1541
- # organization, billing account, or folder.
1538
+ # destinations in any project: a Cloud Storage bucket, a BigQuery dataset, a Pub/
1539
+ # Sub topic or a Cloud Logging log bucket. A logs filter controls which log
1540
+ # entries are exported. The sink must be created within a project, organization,
1541
+ # billing account, or folder.
1542
1542
  class LogSink
1543
1543
  include Google::Apis::Core::Hashable
1544
1544
 
@@ -1553,7 +1553,7 @@ module Google
1553
1553
  # @return [String]
1554
1554
  attr_accessor :create_time
1555
1555
 
1556
- # Optional. A description of this sink. The maximum length of the description is
1556
+ # Optional. A description of this sink.The maximum length of the description is
1557
1557
  # 8000 characters.
1558
1558
  # Corresponds to the JSON property `description`
1559
1559
  # @return [String]
@@ -1570,23 +1570,23 @@ module Google
1570
1570
  # @return [String]
1571
1571
  attr_accessor :destination
1572
1572
 
1573
- # Optional. If set to True, then this sink is disabled and it does not export
1573
+ # Optional. If set to true, then this sink is disabled and it does not export
1574
1574
  # any log entries.
1575
1575
  # Corresponds to the JSON property `disabled`
1576
1576
  # @return [Boolean]
1577
1577
  attr_accessor :disabled
1578
1578
  alias_method :disabled?, :disabled
1579
1579
 
1580
- # Optional. Log entries that match any of the exclusion filters will not be
1581
- # exported. If a log entry is matched by both filter and one of
1582
- # exclusion_filters it will not be exported.
1580
+ # Optional. Log entries that match any of these exclusion filters will not be
1581
+ # exported.If a log entry is matched by both filter and one of exclusion_filters
1582
+ # it will not be exported.
1583
1583
  # Corresponds to the JSON property `exclusions`
1584
1584
  # @return [Array<Google::Apis::LoggingV2::LogExclusion>]
1585
1585
  attr_accessor :exclusions
1586
1586
 
1587
1587
  # Optional. An advanced logs filter (https://cloud.google.com/logging/docs/view/
1588
1588
  # advanced-queries). The only exported log entries are those that are in the
1589
- # resource owning the sink and that match the filter. For example: logName="
1589
+ # resource owning the sink and that match the filter.For example:logName="
1590
1590
  # projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR
1591
1591
  # Corresponds to the JSON property `filter`
1592
1592
  # @return [String]
@@ -1594,22 +1594,22 @@ module Google
1594
1594
 
1595
1595
  # Optional. This field applies only to sinks owned by organizations and folders.
1596
1596
  # If the field is false, the default, only the logs owned by the sink's parent
1597
- # resource are available for export. If the field is true, then logs from all
1598
- # the projects, folders, and billing accounts contained in the sink's parent
1597
+ # resource are available for export. If the field is true, then log entries from
1598
+ # all the projects, folders, and billing accounts contained in the sink's parent
1599
1599
  # resource are also available for export. Whether a particular log entry from
1600
- # the children is exported depends on the sink's filter expression. For example,
1600
+ # the children is exported depends on the sink's filter expression.For example,
1601
1601
  # if this field is true, then the filter resource.type=gce_instance would export
1602
1602
  # all Compute Engine VM instance log entries from all projects in the sink's
1603
- # parent. To only export entries from certain child projects, filter on the
1604
- # project part of the log name: logName:("projects/test-project1/" OR "projects/
1603
+ # parent.To only export entries from certain child projects, filter on the
1604
+ # project part of the log name:logName:("projects/test-project1/" OR "projects/
1605
1605
  # test-project2/") AND resource.type=gce_instance
1606
1606
  # Corresponds to the JSON property `includeChildren`
1607
1607
  # @return [Boolean]
1608
1608
  attr_accessor :include_children
1609
1609
  alias_method :include_children?, :include_children
1610
1610
 
1611
- # Required. The client-assigned sink identifier, unique within the project.
1612
- # Example: "my-syslog-errors-to-pubsub". Sink identifiers are limited to 100
1611
+ # Required. The client-assigned sink identifier, unique within the project.For
1612
+ # example: "my-syslog-errors-to-pubsub". Sink identifiers are limited to 100
1613
1613
  # characters and can include only the following characters: upper and lower-case
1614
1614
  # alphanumeric characters, underscores, hyphens, and periods. First character
1615
1615
  # has to be alphanumeric.
@@ -1628,15 +1628,18 @@ module Google
1628
1628
  # @return [String]
1629
1629
  attr_accessor :update_time
1630
1630
 
1631
- # Output only. An IAM identity—a service account or group—under which Logging
1632
- # writes the exported log entries to the sink's destination. This field is set
1633
- # by sinks.create and sinks.update based on the value of unique_writer_identity
1634
- # in those methods.Until you grant this identity write-access to the destination,
1635
- # log entry exports from this sink will fail. For more information, see
1636
- # Granting Access for a Resource (https://cloud.google.com/iam/docs/granting-
1637
- # roles-to-service-accounts#granting_access_to_a_service_account_for_a_resource).
1638
- # Consult the destination service's documentation to determine the appropriate
1639
- # IAM roles to assign to the identity.
1631
+ # Output only. An IAM identity—a service account or group—under which Cloud
1632
+ # Logging writes the exported log entries to the sink's destination. This field
1633
+ # is set by sinks.create and sinks.update based on the value of
1634
+ # unique_writer_identity in those methods.Until you grant this identity write-
1635
+ # access to the destination, log entry exports from this sink will fail. For
1636
+ # more information, see Granting Access for a Resource (https://cloud.google.com/
1637
+ # iam/docs/granting-roles-to-service-accounts#
1638
+ # granting_access_to_a_service_account_for_a_resource). Consult the destination
1639
+ # service's documentation to determine the appropriate IAM roles to assign to
1640
+ # the identity.Sinks that have a destination that is a log bucket in the same
1641
+ # project as the sink do not have a writer_identity and no additional
1642
+ # permissions are required.
1640
1643
  # Corresponds to the JSON property `writerIdentity`
1641
1644
  # @return [String]
1642
1645
  attr_accessor :writer_identity
@@ -1662,7 +1665,7 @@ module Google
1662
1665
  end
1663
1666
  end
1664
1667
 
1665
- # Describes a view over logs in a bucket.
1668
+ # Describes a view over log entries in a bucket.
1666
1669
  class LogView
1667
1670
  include Google::Apis::Core::Hashable
1668
1671
 
@@ -1678,15 +1681,15 @@ module Google
1678
1681
 
1679
1682
  # Filter that restricts which log entries in a bucket are visible in this view.
1680
1683
  # Filters are restricted to be a logical AND of ==/!= of any of the following:
1681
- # originating project/folder/organization/billing account. resource type log id
1682
- # Example: SOURCE("projects/myproject") AND resource.type = "gce_instance" AND
1683
- # LOG_ID("stdout")
1684
+ # originating project/folder/organization/billing account. resource type log
1685
+ # idFor example:SOURCE("projects/myproject") AND resource.type = "gce_instance"
1686
+ # AND LOG_ID("stdout")
1684
1687
  # Corresponds to the JSON property `filter`
1685
1688
  # @return [String]
1686
1689
  attr_accessor :filter
1687
1690
 
1688
- # The resource name of the view. For example "projects/my-project-id/locations/
1689
- # my-location/buckets/my-bucket-id/views/my-view
1691
+ # The resource name of the view.For example:projects/my-project/locations/global/
1692
+ # buckets/my-bucket/views/my-view
1690
1693
  # Corresponds to the JSON property `name`
1691
1694
  # @return [String]
1692
1695
  attr_accessor :name
@@ -1970,7 +1973,10 @@ module Google
1970
1973
  attr_accessor :name
1971
1974
 
1972
1975
  # Required. The monitored resource type. For example, the type "
1973
- # cloudsql_database" represents databases in Google Cloud SQL.
1976
+ # cloudsql_database" represents databases in Google Cloud SQL. For a list of
1977
+ # types, see Monitoring resource types (https://cloud.google.com/monitoring/api/
1978
+ # resources) and Logging resource types (https://cloud.google.com/logging/docs/
1979
+ # api/v2/resource-list).
1974
1980
  # Corresponds to the JSON property `type`
1975
1981
  # @return [String]
1976
1982
  attr_accessor :type
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module LoggingV2
18
18
  # Version of the google-apis-logging_v2 gem
19
- GEM_VERSION = "0.13.0"
19
+ GEM_VERSION = "0.17.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 = "20210709"
25
+ REVISION = "20211019"
26
26
  end
27
27
  end
28
28
  end