google-apis-logging_v2 0.14.0 → 0.18.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 +17 -0
- data/OVERVIEW.md +2 -2
- data/lib/google/apis/logging_v2/classes.rb +39 -102
- data/lib/google/apis/logging_v2/gem_version.rb +2 -2
- data/lib/google/apis/logging_v2/representations.rb +2 -34
- data/lib/google/apis/logging_v2/service.rb +227 -81
- data/lib/google/apis/logging_v2.rb +1 -4
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a366e5cf9298df4b8fc7e3860e21dc80e1d9e2db2b02612d5f5dcdbbd97edfe
|
4
|
+
data.tar.gz: 85cbaad452a63295a01785179e36c6c1b4042888262df1e662a8028c977aa57f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 176992bac9bcfddeb5f638a2245a46cd085e051af5a55374c21bdc1ffa1f5e0a73a261f1a9c93955bc45f4e7f7bc5170c721dde5848aab9da0af5c3d9bec7fb0
|
7
|
+
data.tar.gz: 3b86aeacbab0bdf1dd2a3c1b4c86a712363e7a795b0db5e2555c09a2d4880544ec46a45cbeb169afbfa8a0862f30617113200d83df04f533da7446c909bbfe42
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
# Release history for google-apis-logging_v2
|
2
2
|
|
3
|
+
### v0.18.0 (2021-11-19)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20211108
|
6
|
+
|
7
|
+
### v0.17.0 (2021-11-02)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20211019
|
10
|
+
|
11
|
+
### v0.16.0 (2021-10-26)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20211015
|
14
|
+
* Unspecified changes
|
15
|
+
|
16
|
+
### v0.15.0 (2021-10-02)
|
17
|
+
|
18
|
+
* Regenerated from discovery document revision 20210922
|
19
|
+
|
3
20
|
### v0.14.0 (2021-09-01)
|
4
21
|
|
5
22
|
* Regenerated from discovery document revision 20210817
|
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/
|
64
|
-
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
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
|
|
@@ -131,27 +131,27 @@ module Google
|
|
131
131
|
|
132
132
|
# Describes the customer-managed encryption key (CMEK) settings associated with
|
133
133
|
# a project, folder, organization, billing account, or flexible resource.Note:
|
134
|
-
# CMEK for the
|
134
|
+
# CMEK for the Log Router can currently only be configured for Google Cloud
|
135
135
|
# organizations. Once configured, it applies to all projects and folders in the
|
136
|
-
#
|
137
|
-
# logging/docs/routing/managed-encryption) for more information.
|
136
|
+
# Google Cloud organization.See Enabling CMEK for Log Router (https://cloud.
|
137
|
+
# google.com/logging/docs/routing/managed-encryption) for more information.
|
138
138
|
class CmekSettings
|
139
139
|
include Google::Apis::Core::Hashable
|
140
140
|
|
141
141
|
# The resource name for the configured Cloud KMS key.KMS key name format: "
|
142
142
|
# projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]"
|
143
143
|
# For example:"projects/my-project/locations/us-central1/keyRings/my-ring/
|
144
|
-
# cryptoKeys/my-key"To enable CMEK for the
|
145
|
-
#
|
146
|
-
#
|
147
|
-
#
|
148
|
-
#
|
149
|
-
#
|
150
|
-
#
|
151
|
-
# encryption unless access to that key has
|
152
|
-
#
|
153
|
-
# Router (https://cloud.google.com/logging/docs/
|
154
|
-
# more information.
|
144
|
+
# cryptoKeys/my-key"To enable CMEK for the Log Router, set this field to a valid
|
145
|
+
# kms_key_name for which the associated service account has the required
|
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 Log Router, set this field to an empty
|
153
|
+
# string.See Enabling CMEK for Log Router (https://cloud.google.com/logging/docs/
|
154
|
+
# routing/managed-encryption) for more information.
|
155
155
|
# Corresponds to the JSON property `kmsKeyName`
|
156
156
|
# @return [String]
|
157
157
|
attr_accessor :kms_key_name
|
@@ -161,13 +161,12 @@ module Google
|
|
161
161
|
# @return [String]
|
162
162
|
attr_accessor :name
|
163
163
|
|
164
|
-
# Output only. The service account that will be used by the
|
165
|
-
#
|
166
|
-
#
|
167
|
-
#
|
168
|
-
#
|
169
|
-
#
|
170
|
-
# more information.
|
164
|
+
# Output only. The service account that will be used by the Log Router to access
|
165
|
+
# your Cloud KMS key.Before enabling CMEK for Log Router, you must first assign
|
166
|
+
# the cloudkms.cryptoKeyEncrypterDecrypter role to the service account that the
|
167
|
+
# Log Router will use to access your Cloud KMS key. Use GetCmekSettings to
|
168
|
+
# obtain the service account ID.See Enabling CMEK for Logs Router (https://cloud.
|
169
|
+
# google.com/logging/docs/routing/managed-encryption) for more information.
|
171
170
|
# Corresponds to the JSON property `serviceAccountId`
|
172
171
|
# @return [String]
|
173
172
|
attr_accessor :service_account_id
|
@@ -959,6 +958,16 @@ module Google
|
|
959
958
|
class LogBucket
|
960
959
|
include Google::Apis::Core::Hashable
|
961
960
|
|
961
|
+
# Describes the customer-managed encryption key (CMEK) settings associated with
|
962
|
+
# a project, folder, organization, billing account, or flexible resource.Note:
|
963
|
+
# CMEK for the Log Router can currently only be configured for Google Cloud
|
964
|
+
# organizations. Once configured, it applies to all projects and folders in the
|
965
|
+
# Google Cloud organization.See Enabling CMEK for Log Router (https://cloud.
|
966
|
+
# google.com/logging/docs/routing/managed-encryption) for more information.
|
967
|
+
# Corresponds to the JSON property `cmekSettings`
|
968
|
+
# @return [Google::Apis::LoggingV2::CmekSettings]
|
969
|
+
attr_accessor :cmek_settings
|
970
|
+
|
962
971
|
# Output only. The creation timestamp of the bucket. This is not set for any of
|
963
972
|
# the default buckets.
|
964
973
|
# Corresponds to the JSON property `createTime`
|
@@ -1019,6 +1028,7 @@ module Google
|
|
1019
1028
|
|
1020
1029
|
# Update properties of this object
|
1021
1030
|
def update!(**args)
|
1031
|
+
@cmek_settings = args[:cmek_settings] if args.key?(:cmek_settings)
|
1022
1032
|
@create_time = args[:create_time] if args.key?(:create_time)
|
1023
1033
|
@description = args[:description] if args.key?(:description)
|
1024
1034
|
@lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
|
@@ -1296,12 +1306,11 @@ module Google
|
|
1296
1306
|
end
|
1297
1307
|
end
|
1298
1308
|
|
1299
|
-
# Specifies a set of log entries that are
|
1300
|
-
#
|
1301
|
-
#
|
1302
|
-
# sinks
|
1303
|
-
#
|
1304
|
-
# and that you can't exclude audit log entries.
|
1309
|
+
# Specifies a set of log entries that are filtered out by a sink. If your Google
|
1310
|
+
# Cloud resource receives a large volume of log entries, you can use exclusions
|
1311
|
+
# to reduce your chargeable logs. Note that exclusions on organization-level and
|
1312
|
+
# folder-level sinks don't apply to child resources. Note also that you cannot
|
1313
|
+
# modify the _Required sink or exclude logs from it.
|
1305
1314
|
class LogExclusion
|
1306
1315
|
include Google::Apis::Core::Hashable
|
1307
1316
|
|
@@ -1638,7 +1647,9 @@ module Google
|
|
1638
1647
|
# iam/docs/granting-roles-to-service-accounts#
|
1639
1648
|
# granting_access_to_a_service_account_for_a_resource). Consult the destination
|
1640
1649
|
# service's documentation to determine the appropriate IAM roles to assign to
|
1641
|
-
# the identity.
|
1650
|
+
# the identity.Sinks that have a destination that is a log bucket in the same
|
1651
|
+
# project as the sink do not have a writer_identity and no additional
|
1652
|
+
# permissions are required.
|
1642
1653
|
# Corresponds to the JSON property `writerIdentity`
|
1643
1654
|
# @return [String]
|
1644
1655
|
attr_accessor :writer_identity
|
@@ -1693,11 +1704,6 @@ module Google
|
|
1693
1704
|
# @return [String]
|
1694
1705
|
attr_accessor :name
|
1695
1706
|
|
1696
|
-
# Schema of a table containing logs.
|
1697
|
-
# Corresponds to the JSON property `schema`
|
1698
|
-
# @return [Google::Apis::LoggingV2::TableSchema]
|
1699
|
-
attr_accessor :schema
|
1700
|
-
|
1701
1707
|
# Output only. The last update timestamp of the view.
|
1702
1708
|
# Corresponds to the JSON property `updateTime`
|
1703
1709
|
# @return [String]
|
@@ -1713,7 +1719,6 @@ module Google
|
|
1713
1719
|
@description = args[:description] if args.key?(:description)
|
1714
1720
|
@filter = args[:filter] if args.key?(:filter)
|
1715
1721
|
@name = args[:name] if args.key?(:name)
|
1716
|
-
@schema = args[:schema] if args.key?(:schema)
|
1717
1722
|
@update_time = args[:update_time] if args.key?(:update_time)
|
1718
1723
|
end
|
1719
1724
|
end
|
@@ -2455,74 +2460,6 @@ module Google
|
|
2455
2460
|
end
|
2456
2461
|
end
|
2457
2462
|
|
2458
|
-
# A field in TableSchema. The fields describe the static fields in the LogEntry.
|
2459
|
-
# Any dynamic fields generated by the customer in fields like labels and
|
2460
|
-
# jsonPayload are not listed in the schema as they use a native JSON type field.
|
2461
|
-
class TableFieldSchema
|
2462
|
-
include Google::Apis::Core::Hashable
|
2463
|
-
|
2464
|
-
# Optional. The field description.
|
2465
|
-
# Corresponds to the JSON property `description`
|
2466
|
-
# @return [String]
|
2467
|
-
attr_accessor :description
|
2468
|
-
|
2469
|
-
# Optional. Describes the nested schema fields if the type property is set to
|
2470
|
-
# RECORD.
|
2471
|
-
# Corresponds to the JSON property `fields`
|
2472
|
-
# @return [Array<Google::Apis::LoggingV2::TableFieldSchema>]
|
2473
|
-
attr_accessor :fields
|
2474
|
-
|
2475
|
-
# Optional. The field mode. Possible values include NULLABLE, REQUIRED and
|
2476
|
-
# REPEATED. The default value is NULLABLE.
|
2477
|
-
# Corresponds to the JSON property `mode`
|
2478
|
-
# @return [String]
|
2479
|
-
attr_accessor :mode
|
2480
|
-
|
2481
|
-
# Required. The field name corresponding to fields in the LogEntry.
|
2482
|
-
# Corresponds to the JSON property `name`
|
2483
|
-
# @return [String]
|
2484
|
-
attr_accessor :name
|
2485
|
-
|
2486
|
-
# Required. The field data type. Possible values include: STRING INTEGER (or
|
2487
|
-
# INT64) FLOAT (or FLOAT64) BOOLEAN (or BOOL) TIMESTAMP RECORD (or STRUCT)Use of
|
2488
|
-
# RECORD/STRUT indicates that the field contains a nested schema.
|
2489
|
-
# Corresponds to the JSON property `type`
|
2490
|
-
# @return [String]
|
2491
|
-
attr_accessor :type
|
2492
|
-
|
2493
|
-
def initialize(**args)
|
2494
|
-
update!(**args)
|
2495
|
-
end
|
2496
|
-
|
2497
|
-
# Update properties of this object
|
2498
|
-
def update!(**args)
|
2499
|
-
@description = args[:description] if args.key?(:description)
|
2500
|
-
@fields = args[:fields] if args.key?(:fields)
|
2501
|
-
@mode = args[:mode] if args.key?(:mode)
|
2502
|
-
@name = args[:name] if args.key?(:name)
|
2503
|
-
@type = args[:type] if args.key?(:type)
|
2504
|
-
end
|
2505
|
-
end
|
2506
|
-
|
2507
|
-
# Schema of a table containing logs.
|
2508
|
-
class TableSchema
|
2509
|
-
include Google::Apis::Core::Hashable
|
2510
|
-
|
2511
|
-
# Describes the fields in a table.
|
2512
|
-
# Corresponds to the JSON property `fields`
|
2513
|
-
# @return [Array<Google::Apis::LoggingV2::TableFieldSchema>]
|
2514
|
-
attr_accessor :fields
|
2515
|
-
|
2516
|
-
def initialize(**args)
|
2517
|
-
update!(**args)
|
2518
|
-
end
|
2519
|
-
|
2520
|
-
# Update properties of this object
|
2521
|
-
def update!(**args)
|
2522
|
-
@fields = args[:fields] if args.key?(:fields)
|
2523
|
-
end
|
2524
|
-
end
|
2525
|
-
|
2526
2463
|
# The parameters to TailLogEntries.
|
2527
2464
|
class TailLogEntriesRequest
|
2528
2465
|
include Google::Apis::Core::Hashable
|
@@ -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.
|
19
|
+
GEM_VERSION = "0.18.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 = "20211108"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -292,18 +292,6 @@ module Google
|
|
292
292
|
include Google::Apis::Core::JsonObjectSupport
|
293
293
|
end
|
294
294
|
|
295
|
-
class TableFieldSchema
|
296
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
297
|
-
|
298
|
-
include Google::Apis::Core::JsonObjectSupport
|
299
|
-
end
|
300
|
-
|
301
|
-
class TableSchema
|
302
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
303
|
-
|
304
|
-
include Google::Apis::Core::JsonObjectSupport
|
305
|
-
end
|
306
|
-
|
307
295
|
class TailLogEntriesRequest
|
308
296
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
309
297
|
|
@@ -575,6 +563,8 @@ module Google
|
|
575
563
|
class LogBucket
|
576
564
|
# @private
|
577
565
|
class Representation < Google::Apis::Core::JsonRepresentation
|
566
|
+
property :cmek_settings, as: 'cmekSettings', class: Google::Apis::LoggingV2::CmekSettings, decorator: Google::Apis::LoggingV2::CmekSettings::Representation
|
567
|
+
|
578
568
|
property :create_time, as: 'createTime'
|
579
569
|
property :description, as: 'description'
|
580
570
|
property :lifecycle_state, as: 'lifecycleState'
|
@@ -702,8 +692,6 @@ module Google
|
|
702
692
|
property :description, as: 'description'
|
703
693
|
property :filter, as: 'filter'
|
704
694
|
property :name, as: 'name'
|
705
|
-
property :schema, as: 'schema', class: Google::Apis::LoggingV2::TableSchema, decorator: Google::Apis::LoggingV2::TableSchema::Representation
|
706
|
-
|
707
695
|
property :update_time, as: 'updateTime'
|
708
696
|
end
|
709
697
|
end
|
@@ -852,26 +840,6 @@ module Google
|
|
852
840
|
end
|
853
841
|
end
|
854
842
|
|
855
|
-
class TableFieldSchema
|
856
|
-
# @private
|
857
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
858
|
-
property :description, as: 'description'
|
859
|
-
collection :fields, as: 'fields', class: Google::Apis::LoggingV2::TableFieldSchema, decorator: Google::Apis::LoggingV2::TableFieldSchema::Representation
|
860
|
-
|
861
|
-
property :mode, as: 'mode'
|
862
|
-
property :name, as: 'name'
|
863
|
-
property :type, as: 'type'
|
864
|
-
end
|
865
|
-
end
|
866
|
-
|
867
|
-
class TableSchema
|
868
|
-
# @private
|
869
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
870
|
-
collection :fields, as: 'fields', class: Google::Apis::LoggingV2::TableFieldSchema, decorator: Google::Apis::LoggingV2::TableFieldSchema::Representation
|
871
|
-
|
872
|
-
end
|
873
|
-
end
|
874
|
-
|
875
843
|
class TailLogEntriesRequest
|
876
844
|
# @private
|
877
845
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -22,10 +22,7 @@ module Google
|
|
22
22
|
module LoggingV2
|
23
23
|
# Cloud Logging API
|
24
24
|
#
|
25
|
-
# Writes log entries and manages your Cloud Logging configuration.
|
26
|
-
# entries below are presented in alphabetical order, not in order of common use.
|
27
|
-
# For explanations of the concepts found in the table entries, read the
|
28
|
-
# documentation at https://cloud.google.com/logging/docs.
|
25
|
+
# Writes log entries and manages your Cloud Logging configuration.
|
29
26
|
#
|
30
27
|
# @example
|
31
28
|
# require 'google/apis/logging_v2'
|
@@ -52,6 +49,47 @@ module Google
|
|
52
49
|
@batch_path = 'batch'
|
53
50
|
end
|
54
51
|
|
52
|
+
# Gets the Logging CMEK settings for the given resource.Note: CMEK for the Log
|
53
|
+
# Router can be configured for Google Cloud projects, folders, organizations and
|
54
|
+
# billing accounts. Once configured for an organization, it applies to all
|
55
|
+
# projects and folders in the Google Cloud organization.See Enabling CMEK for
|
56
|
+
# Logs Router (https://cloud.google.com/logging/docs/routing/managed-encryption)
|
57
|
+
# for more information.
|
58
|
+
# @param [String] name
|
59
|
+
# Required. The resource for which to retrieve CMEK settings. "projects/[
|
60
|
+
# PROJECT_ID]/cmekSettings" "organizations/[ORGANIZATION_ID]/cmekSettings" "
|
61
|
+
# billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings" "folders/[FOLDER_ID]/
|
62
|
+
# cmekSettings" For example:"organizations/12345/cmekSettings"Note: CMEK for the
|
63
|
+
# Log Router can be configured for Google Cloud projects, folders, organizations
|
64
|
+
# and billing accounts. Once configured for an organization, it applies to all
|
65
|
+
# projects and folders in the Google Cloud organization.
|
66
|
+
# @param [String] fields
|
67
|
+
# Selector specifying which fields to include in a partial response.
|
68
|
+
# @param [String] quota_user
|
69
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
70
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
71
|
+
# @param [Google::Apis::RequestOptions] options
|
72
|
+
# Request-specific options
|
73
|
+
#
|
74
|
+
# @yield [result, err] Result & error if block supplied
|
75
|
+
# @yieldparam result [Google::Apis::LoggingV2::CmekSettings] parsed result object
|
76
|
+
# @yieldparam err [StandardError] error object if request failed
|
77
|
+
#
|
78
|
+
# @return [Google::Apis::LoggingV2::CmekSettings]
|
79
|
+
#
|
80
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
81
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
82
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
83
|
+
def get_billing_account_cmek_settings(name, fields: nil, quota_user: nil, options: nil, &block)
|
84
|
+
command = make_simple_command(:get, 'v2/{+name}/cmekSettings', options)
|
85
|
+
command.response_representation = Google::Apis::LoggingV2::CmekSettings::Representation
|
86
|
+
command.response_class = Google::Apis::LoggingV2::CmekSettings
|
87
|
+
command.params['name'] = name unless name.nil?
|
88
|
+
command.query['fields'] = fields unless fields.nil?
|
89
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
90
|
+
execute_or_queue_command(command, &block)
|
91
|
+
end
|
92
|
+
|
55
93
|
# Gets a log bucket.
|
56
94
|
# @param [String] name
|
57
95
|
# Required. The resource name of the bucket: "projects/[PROJECT_ID]/locations/[
|
@@ -119,9 +157,9 @@ module Google
|
|
119
157
|
execute_or_queue_command(command, &block)
|
120
158
|
end
|
121
159
|
|
122
|
-
# Creates a new exclusion in a specified parent resource.
|
123
|
-
# belonging to that resource can be excluded. You can have up
|
124
|
-
# in a resource.
|
160
|
+
# Creates a new exclusion in the _Default sink in a specified parent resource.
|
161
|
+
# Only log entries belonging to that resource can be excluded. You can have up
|
162
|
+
# to 10 exclusions in a resource.
|
125
163
|
# @param [String] parent
|
126
164
|
# Required. The parent resource in which to create the exclusion: "projects/[
|
127
165
|
# PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[
|
@@ -157,7 +195,7 @@ module Google
|
|
157
195
|
execute_or_queue_command(command, &block)
|
158
196
|
end
|
159
197
|
|
160
|
-
# Deletes an exclusion.
|
198
|
+
# Deletes an exclusion in the _Default sink.
|
161
199
|
# @param [String] name
|
162
200
|
# Required. The resource name of an existing exclusion to delete: "projects/[
|
163
201
|
# PROJECT_ID]/exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/
|
@@ -191,7 +229,7 @@ module Google
|
|
191
229
|
execute_or_queue_command(command, &block)
|
192
230
|
end
|
193
231
|
|
194
|
-
# Gets the description of an exclusion.
|
232
|
+
# Gets the description of an exclusion in the _Default sink.
|
195
233
|
# @param [String] name
|
196
234
|
# Required. The resource name of an existing exclusion: "projects/[PROJECT_ID]/
|
197
235
|
# exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/exclusions/[
|
@@ -225,7 +263,7 @@ module Google
|
|
225
263
|
execute_or_queue_command(command, &block)
|
226
264
|
end
|
227
265
|
|
228
|
-
# Lists all the exclusions in a parent resource.
|
266
|
+
# Lists all the exclusions on the _Default sink in a parent resource.
|
229
267
|
# @param [String] parent
|
230
268
|
# Required. The parent resource whose exclusions are to be listed. "projects/[
|
231
269
|
# PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[
|
@@ -268,7 +306,7 @@ module Google
|
|
268
306
|
execute_or_queue_command(command, &block)
|
269
307
|
end
|
270
308
|
|
271
|
-
# Changes one or more properties of an existing exclusion.
|
309
|
+
# Changes one or more properties of an existing exclusion in the _Default sink.
|
272
310
|
# @param [String] name
|
273
311
|
# Required. The resource name of the exclusion to update: "projects/[PROJECT_ID]/
|
274
312
|
# exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/exclusions/[
|
@@ -639,7 +677,9 @@ module Google
|
|
639
677
|
execute_or_queue_command(command, &block)
|
640
678
|
end
|
641
679
|
|
642
|
-
# Deletes a view on a log bucket.
|
680
|
+
# Deletes a view on a log bucket. If an UNAVAILABLE error is returned, this
|
681
|
+
# indicates that system is not in a state where it can delete the view. If this
|
682
|
+
# occurs, please try again in a few minutes.
|
643
683
|
# @param [String] name
|
644
684
|
# Required. The full resource name of the view to delete: "projects/[PROJECT_ID]/
|
645
685
|
# locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" For example:"
|
@@ -714,7 +754,9 @@ module Google
|
|
714
754
|
end
|
715
755
|
|
716
756
|
# Updates a view on a log bucket. This method replaces the following fields in
|
717
|
-
# the existing view with values from the new view: filter.
|
757
|
+
# the existing view with values from the new view: filter. If an UNAVAILABLE
|
758
|
+
# error is returned, this indicates that system is not in a state where it can
|
759
|
+
# update the view. If this occurs, please try again in a few minutes.
|
718
760
|
# @param [String] name
|
719
761
|
# Required. The full resource name of the view to update "projects/[PROJECT_ID]/
|
720
762
|
# locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" For example:"
|
@@ -1373,9 +1415,9 @@ module Google
|
|
1373
1415
|
execute_or_queue_command(command, &block)
|
1374
1416
|
end
|
1375
1417
|
|
1376
|
-
# Creates a new exclusion in a specified parent resource.
|
1377
|
-
# belonging to that resource can be excluded. You can have up
|
1378
|
-
# in a resource.
|
1418
|
+
# Creates a new exclusion in the _Default sink in a specified parent resource.
|
1419
|
+
# Only log entries belonging to that resource can be excluded. You can have up
|
1420
|
+
# to 10 exclusions in a resource.
|
1379
1421
|
# @param [String] parent
|
1380
1422
|
# Required. The parent resource in which to create the exclusion: "projects/[
|
1381
1423
|
# PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[
|
@@ -1411,7 +1453,7 @@ module Google
|
|
1411
1453
|
execute_or_queue_command(command, &block)
|
1412
1454
|
end
|
1413
1455
|
|
1414
|
-
# Deletes an exclusion.
|
1456
|
+
# Deletes an exclusion in the _Default sink.
|
1415
1457
|
# @param [String] name
|
1416
1458
|
# Required. The resource name of an existing exclusion to delete: "projects/[
|
1417
1459
|
# PROJECT_ID]/exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/
|
@@ -1445,7 +1487,7 @@ module Google
|
|
1445
1487
|
execute_or_queue_command(command, &block)
|
1446
1488
|
end
|
1447
1489
|
|
1448
|
-
# Gets the description of an exclusion.
|
1490
|
+
# Gets the description of an exclusion in the _Default sink.
|
1449
1491
|
# @param [String] name
|
1450
1492
|
# Required. The resource name of an existing exclusion: "projects/[PROJECT_ID]/
|
1451
1493
|
# exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/exclusions/[
|
@@ -1479,7 +1521,7 @@ module Google
|
|
1479
1521
|
execute_or_queue_command(command, &block)
|
1480
1522
|
end
|
1481
1523
|
|
1482
|
-
# Lists all the exclusions in a parent resource.
|
1524
|
+
# Lists all the exclusions on the _Default sink in a parent resource.
|
1483
1525
|
# @param [String] parent
|
1484
1526
|
# Required. The parent resource whose exclusions are to be listed. "projects/[
|
1485
1527
|
# PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[
|
@@ -1522,7 +1564,7 @@ module Google
|
|
1522
1564
|
execute_or_queue_command(command, &block)
|
1523
1565
|
end
|
1524
1566
|
|
1525
|
-
# Changes one or more properties of an existing exclusion.
|
1567
|
+
# Changes one or more properties of an existing exclusion in the _Default sink.
|
1526
1568
|
# @param [String] name
|
1527
1569
|
# Required. The resource name of the exclusion to update: "projects/[PROJECT_ID]/
|
1528
1570
|
# exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/exclusions/[
|
@@ -1567,9 +1609,50 @@ module Google
|
|
1567
1609
|
execute_or_queue_command(command, &block)
|
1568
1610
|
end
|
1569
1611
|
|
1570
|
-
#
|
1571
|
-
#
|
1572
|
-
#
|
1612
|
+
# Gets the Logging CMEK settings for the given resource.Note: CMEK for the Log
|
1613
|
+
# Router can be configured for Google Cloud projects, folders, organizations and
|
1614
|
+
# billing accounts. Once configured for an organization, it applies to all
|
1615
|
+
# projects and folders in the Google Cloud organization.See Enabling CMEK for
|
1616
|
+
# Logs Router (https://cloud.google.com/logging/docs/routing/managed-encryption)
|
1617
|
+
# for more information.
|
1618
|
+
# @param [String] name
|
1619
|
+
# Required. The resource for which to retrieve CMEK settings. "projects/[
|
1620
|
+
# PROJECT_ID]/cmekSettings" "organizations/[ORGANIZATION_ID]/cmekSettings" "
|
1621
|
+
# billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings" "folders/[FOLDER_ID]/
|
1622
|
+
# cmekSettings" For example:"organizations/12345/cmekSettings"Note: CMEK for the
|
1623
|
+
# Log Router can be configured for Google Cloud projects, folders, organizations
|
1624
|
+
# and billing accounts. Once configured for an organization, it applies to all
|
1625
|
+
# projects and folders in the Google Cloud organization.
|
1626
|
+
# @param [String] fields
|
1627
|
+
# Selector specifying which fields to include in a partial response.
|
1628
|
+
# @param [String] quota_user
|
1629
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1630
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1631
|
+
# @param [Google::Apis::RequestOptions] options
|
1632
|
+
# Request-specific options
|
1633
|
+
#
|
1634
|
+
# @yield [result, err] Result & error if block supplied
|
1635
|
+
# @yieldparam result [Google::Apis::LoggingV2::CmekSettings] parsed result object
|
1636
|
+
# @yieldparam err [StandardError] error object if request failed
|
1637
|
+
#
|
1638
|
+
# @return [Google::Apis::LoggingV2::CmekSettings]
|
1639
|
+
#
|
1640
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1641
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1642
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1643
|
+
def get_folder_cmek_settings(name, fields: nil, quota_user: nil, options: nil, &block)
|
1644
|
+
command = make_simple_command(:get, 'v2/{+name}/cmekSettings', options)
|
1645
|
+
command.response_representation = Google::Apis::LoggingV2::CmekSettings::Representation
|
1646
|
+
command.response_class = Google::Apis::LoggingV2::CmekSettings
|
1647
|
+
command.params['name'] = name unless name.nil?
|
1648
|
+
command.query['fields'] = fields unless fields.nil?
|
1649
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1650
|
+
execute_or_queue_command(command, &block)
|
1651
|
+
end
|
1652
|
+
|
1653
|
+
# Creates a new exclusion in the _Default sink in a specified parent resource.
|
1654
|
+
# Only log entries belonging to that resource can be excluded. You can have up
|
1655
|
+
# to 10 exclusions in a resource.
|
1573
1656
|
# @param [String] parent
|
1574
1657
|
# Required. The parent resource in which to create the exclusion: "projects/[
|
1575
1658
|
# PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[
|
@@ -1605,7 +1688,7 @@ module Google
|
|
1605
1688
|
execute_or_queue_command(command, &block)
|
1606
1689
|
end
|
1607
1690
|
|
1608
|
-
# Deletes an exclusion.
|
1691
|
+
# Deletes an exclusion in the _Default sink.
|
1609
1692
|
# @param [String] name
|
1610
1693
|
# Required. The resource name of an existing exclusion to delete: "projects/[
|
1611
1694
|
# PROJECT_ID]/exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/
|
@@ -1639,7 +1722,7 @@ module Google
|
|
1639
1722
|
execute_or_queue_command(command, &block)
|
1640
1723
|
end
|
1641
1724
|
|
1642
|
-
# Gets the description of an exclusion.
|
1725
|
+
# Gets the description of an exclusion in the _Default sink.
|
1643
1726
|
# @param [String] name
|
1644
1727
|
# Required. The resource name of an existing exclusion: "projects/[PROJECT_ID]/
|
1645
1728
|
# exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/exclusions/[
|
@@ -1673,7 +1756,7 @@ module Google
|
|
1673
1756
|
execute_or_queue_command(command, &block)
|
1674
1757
|
end
|
1675
1758
|
|
1676
|
-
# Lists all the exclusions in a parent resource.
|
1759
|
+
# Lists all the exclusions on the _Default sink in a parent resource.
|
1677
1760
|
# @param [String] parent
|
1678
1761
|
# Required. The parent resource whose exclusions are to be listed. "projects/[
|
1679
1762
|
# PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[
|
@@ -1716,7 +1799,7 @@ module Google
|
|
1716
1799
|
execute_or_queue_command(command, &block)
|
1717
1800
|
end
|
1718
1801
|
|
1719
|
-
# Changes one or more properties of an existing exclusion.
|
1802
|
+
# Changes one or more properties of an existing exclusion in the _Default sink.
|
1720
1803
|
# @param [String] name
|
1721
1804
|
# Required. The resource name of the exclusion to update: "projects/[PROJECT_ID]/
|
1722
1805
|
# exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/exclusions/[
|
@@ -2122,7 +2205,9 @@ module Google
|
|
2122
2205
|
execute_or_queue_command(command, &block)
|
2123
2206
|
end
|
2124
2207
|
|
2125
|
-
# Deletes a view on a log bucket.
|
2208
|
+
# Deletes a view on a log bucket. If an UNAVAILABLE error is returned, this
|
2209
|
+
# indicates that system is not in a state where it can delete the view. If this
|
2210
|
+
# occurs, please try again in a few minutes.
|
2126
2211
|
# @param [String] name
|
2127
2212
|
# Required. The full resource name of the view to delete: "projects/[PROJECT_ID]/
|
2128
2213
|
# locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" For example:"
|
@@ -2229,7 +2314,9 @@ module Google
|
|
2229
2314
|
end
|
2230
2315
|
|
2231
2316
|
# Updates a view on a log bucket. This method replaces the following fields in
|
2232
|
-
# the existing view with values from the new view: filter.
|
2317
|
+
# the existing view with values from the new view: filter. If an UNAVAILABLE
|
2318
|
+
# error is returned, this indicates that system is not in a state where it can
|
2319
|
+
# update the view. If this occurs, please try again in a few minutes.
|
2233
2320
|
# @param [String] name
|
2234
2321
|
# Required. The full resource name of the view to update "projects/[PROJECT_ID]/
|
2235
2322
|
# locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" For example:"
|
@@ -3122,7 +3209,9 @@ module Google
|
|
3122
3209
|
execute_or_queue_command(command, &block)
|
3123
3210
|
end
|
3124
3211
|
|
3125
|
-
# Deletes a view on a log bucket.
|
3212
|
+
# Deletes a view on a log bucket. If an UNAVAILABLE error is returned, this
|
3213
|
+
# indicates that system is not in a state where it can delete the view. If this
|
3214
|
+
# occurs, please try again in a few minutes.
|
3126
3215
|
# @param [String] name
|
3127
3216
|
# Required. The full resource name of the view to delete: "projects/[PROJECT_ID]/
|
3128
3217
|
# locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" For example:"
|
@@ -3229,7 +3318,9 @@ module Google
|
|
3229
3318
|
end
|
3230
3319
|
|
3231
3320
|
# Updates a view on a log bucket. This method replaces the following fields in
|
3232
|
-
# the existing view with values from the new view: filter.
|
3321
|
+
# the existing view with values from the new view: filter. If an UNAVAILABLE
|
3322
|
+
# error is returned, this indicates that system is not in a state where it can
|
3323
|
+
# update the view. If this occurs, please try again in a few minutes.
|
3233
3324
|
# @param [String] name
|
3234
3325
|
# Required. The full resource name of the view to update "projects/[PROJECT_ID]/
|
3235
3326
|
# locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" For example:"
|
@@ -3518,18 +3609,20 @@ module Google
|
|
3518
3609
|
execute_or_queue_command(command, &block)
|
3519
3610
|
end
|
3520
3611
|
|
3521
|
-
# Gets the
|
3522
|
-
#
|
3523
|
-
# configured, it applies to all
|
3524
|
-
#
|
3525
|
-
# managed-encryption)
|
3612
|
+
# Gets the Logging CMEK settings for the given resource.Note: CMEK for the Log
|
3613
|
+
# Router can be configured for Google Cloud projects, folders, organizations and
|
3614
|
+
# billing accounts. Once configured for an organization, it applies to all
|
3615
|
+
# projects and folders in the Google Cloud organization.See Enabling CMEK for
|
3616
|
+
# Logs Router (https://cloud.google.com/logging/docs/routing/managed-encryption)
|
3617
|
+
# for more information.
|
3526
3618
|
# @param [String] name
|
3527
3619
|
# Required. The resource for which to retrieve CMEK settings. "projects/[
|
3528
3620
|
# PROJECT_ID]/cmekSettings" "organizations/[ORGANIZATION_ID]/cmekSettings" "
|
3529
3621
|
# billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings" "folders/[FOLDER_ID]/
|
3530
3622
|
# cmekSettings" For example:"organizations/12345/cmekSettings"Note: CMEK for the
|
3531
|
-
#
|
3532
|
-
#
|
3623
|
+
# Log Router can be configured for Google Cloud projects, folders, organizations
|
3624
|
+
# and billing accounts. Once configured for an organization, it applies to all
|
3625
|
+
# projects and folders in the Google Cloud organization.
|
3533
3626
|
# @param [String] fields
|
3534
3627
|
# Selector specifying which fields to include in a partial response.
|
3535
3628
|
# @param [String] quota_user
|
@@ -3557,21 +3650,22 @@ module Google
|
|
3557
3650
|
execute_or_queue_command(command, &block)
|
3558
3651
|
end
|
3559
3652
|
|
3560
|
-
# Updates the
|
3561
|
-
#
|
3562
|
-
# configured, it applies to all projects and folders in the
|
3563
|
-
# UpdateCmekSettings will fail if 1) kms_key_name is invalid, or 2)
|
3564
|
-
# associated service account does not have the required roles/cloudkms.
|
3653
|
+
# Updates the Log Router CMEK settings for the given resource.Note: CMEK for the
|
3654
|
+
# Log Router can currently only be configured for Google Cloud organizations.
|
3655
|
+
# Once configured, it applies to all projects and folders in the Google Cloud
|
3656
|
+
# organization.UpdateCmekSettings will fail if 1) kms_key_name is invalid, or 2)
|
3657
|
+
# the associated service account does not have the required roles/cloudkms.
|
3565
3658
|
# cryptoKeyEncrypterDecrypter role assigned for the key, or 3) access to the key
|
3566
|
-
# is disabled.See Enabling CMEK for
|
3567
|
-
#
|
3659
|
+
# is disabled.See Enabling CMEK for Log Router (https://cloud.google.com/logging/
|
3660
|
+
# docs/routing/managed-encryption) for more information.
|
3568
3661
|
# @param [String] name
|
3569
3662
|
# Required. The resource name for the CMEK settings to update. "projects/[
|
3570
3663
|
# PROJECT_ID]/cmekSettings" "organizations/[ORGANIZATION_ID]/cmekSettings" "
|
3571
3664
|
# billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings" "folders/[FOLDER_ID]/
|
3572
3665
|
# cmekSettings" For example:"organizations/12345/cmekSettings"Note: CMEK for the
|
3573
|
-
#
|
3574
|
-
# configured, it applies to all projects and folders in the
|
3666
|
+
# Log Router can currently only be configured for Google Cloud organizations.
|
3667
|
+
# Once configured, it applies to all projects and folders in the Google Cloud
|
3668
|
+
# organization.
|
3575
3669
|
# @param [Google::Apis::LoggingV2::CmekSettings] cmek_settings_object
|
3576
3670
|
# @param [String] update_mask
|
3577
3671
|
# Optional. Field mask identifying which fields from cmek_settings should be
|
@@ -3608,9 +3702,9 @@ module Google
|
|
3608
3702
|
execute_or_queue_command(command, &block)
|
3609
3703
|
end
|
3610
3704
|
|
3611
|
-
# Creates a new exclusion in a specified parent resource.
|
3612
|
-
# belonging to that resource can be excluded. You can have up
|
3613
|
-
# in a resource.
|
3705
|
+
# Creates a new exclusion in the _Default sink in a specified parent resource.
|
3706
|
+
# Only log entries belonging to that resource can be excluded. You can have up
|
3707
|
+
# to 10 exclusions in a resource.
|
3614
3708
|
# @param [String] parent
|
3615
3709
|
# Required. The parent resource in which to create the exclusion: "projects/[
|
3616
3710
|
# PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[
|
@@ -3646,7 +3740,7 @@ module Google
|
|
3646
3740
|
execute_or_queue_command(command, &block)
|
3647
3741
|
end
|
3648
3742
|
|
3649
|
-
# Deletes an exclusion.
|
3743
|
+
# Deletes an exclusion in the _Default sink.
|
3650
3744
|
# @param [String] name
|
3651
3745
|
# Required. The resource name of an existing exclusion to delete: "projects/[
|
3652
3746
|
# PROJECT_ID]/exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/
|
@@ -3680,7 +3774,7 @@ module Google
|
|
3680
3774
|
execute_or_queue_command(command, &block)
|
3681
3775
|
end
|
3682
3776
|
|
3683
|
-
# Gets the description of an exclusion.
|
3777
|
+
# Gets the description of an exclusion in the _Default sink.
|
3684
3778
|
# @param [String] name
|
3685
3779
|
# Required. The resource name of an existing exclusion: "projects/[PROJECT_ID]/
|
3686
3780
|
# exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/exclusions/[
|
@@ -3714,7 +3808,7 @@ module Google
|
|
3714
3808
|
execute_or_queue_command(command, &block)
|
3715
3809
|
end
|
3716
3810
|
|
3717
|
-
# Lists all the exclusions in a parent resource.
|
3811
|
+
# Lists all the exclusions on the _Default sink in a parent resource.
|
3718
3812
|
# @param [String] parent
|
3719
3813
|
# Required. The parent resource whose exclusions are to be listed. "projects/[
|
3720
3814
|
# PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[
|
@@ -3757,7 +3851,7 @@ module Google
|
|
3757
3851
|
execute_or_queue_command(command, &block)
|
3758
3852
|
end
|
3759
3853
|
|
3760
|
-
# Changes one or more properties of an existing exclusion.
|
3854
|
+
# Changes one or more properties of an existing exclusion in the _Default sink.
|
3761
3855
|
# @param [String] name
|
3762
3856
|
# Required. The resource name of the exclusion to update: "projects/[PROJECT_ID]/
|
3763
3857
|
# exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/exclusions/[
|
@@ -4163,7 +4257,9 @@ module Google
|
|
4163
4257
|
execute_or_queue_command(command, &block)
|
4164
4258
|
end
|
4165
4259
|
|
4166
|
-
# Deletes a view on a log bucket.
|
4260
|
+
# Deletes a view on a log bucket. If an UNAVAILABLE error is returned, this
|
4261
|
+
# indicates that system is not in a state where it can delete the view. If this
|
4262
|
+
# occurs, please try again in a few minutes.
|
4167
4263
|
# @param [String] name
|
4168
4264
|
# Required. The full resource name of the view to delete: "projects/[PROJECT_ID]/
|
4169
4265
|
# locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" For example:"
|
@@ -4270,7 +4366,9 @@ module Google
|
|
4270
4366
|
end
|
4271
4367
|
|
4272
4368
|
# Updates a view on a log bucket. This method replaces the following fields in
|
4273
|
-
# the existing view with values from the new view: filter.
|
4369
|
+
# the existing view with values from the new view: filter. If an UNAVAILABLE
|
4370
|
+
# error is returned, this indicates that system is not in a state where it can
|
4371
|
+
# update the view. If this occurs, please try again in a few minutes.
|
4274
4372
|
# @param [String] name
|
4275
4373
|
# Required. The full resource name of the view to update "projects/[PROJECT_ID]/
|
4276
4374
|
# locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" For example:"
|
@@ -4802,9 +4900,50 @@ module Google
|
|
4802
4900
|
execute_or_queue_command(command, &block)
|
4803
4901
|
end
|
4804
4902
|
|
4805
|
-
#
|
4806
|
-
#
|
4807
|
-
#
|
4903
|
+
# Gets the Logging CMEK settings for the given resource.Note: CMEK for the Log
|
4904
|
+
# Router can be configured for Google Cloud projects, folders, organizations and
|
4905
|
+
# billing accounts. Once configured for an organization, it applies to all
|
4906
|
+
# projects and folders in the Google Cloud organization.See Enabling CMEK for
|
4907
|
+
# Logs Router (https://cloud.google.com/logging/docs/routing/managed-encryption)
|
4908
|
+
# for more information.
|
4909
|
+
# @param [String] name
|
4910
|
+
# Required. The resource for which to retrieve CMEK settings. "projects/[
|
4911
|
+
# PROJECT_ID]/cmekSettings" "organizations/[ORGANIZATION_ID]/cmekSettings" "
|
4912
|
+
# billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings" "folders/[FOLDER_ID]/
|
4913
|
+
# cmekSettings" For example:"organizations/12345/cmekSettings"Note: CMEK for the
|
4914
|
+
# Log Router can be configured for Google Cloud projects, folders, organizations
|
4915
|
+
# and billing accounts. Once configured for an organization, it applies to all
|
4916
|
+
# projects and folders in the Google Cloud organization.
|
4917
|
+
# @param [String] fields
|
4918
|
+
# Selector specifying which fields to include in a partial response.
|
4919
|
+
# @param [String] quota_user
|
4920
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4921
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4922
|
+
# @param [Google::Apis::RequestOptions] options
|
4923
|
+
# Request-specific options
|
4924
|
+
#
|
4925
|
+
# @yield [result, err] Result & error if block supplied
|
4926
|
+
# @yieldparam result [Google::Apis::LoggingV2::CmekSettings] parsed result object
|
4927
|
+
# @yieldparam err [StandardError] error object if request failed
|
4928
|
+
#
|
4929
|
+
# @return [Google::Apis::LoggingV2::CmekSettings]
|
4930
|
+
#
|
4931
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4932
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4933
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4934
|
+
def get_project_cmek_settings(name, fields: nil, quota_user: nil, options: nil, &block)
|
4935
|
+
command = make_simple_command(:get, 'v2/{+name}/cmekSettings', options)
|
4936
|
+
command.response_representation = Google::Apis::LoggingV2::CmekSettings::Representation
|
4937
|
+
command.response_class = Google::Apis::LoggingV2::CmekSettings
|
4938
|
+
command.params['name'] = name unless name.nil?
|
4939
|
+
command.query['fields'] = fields unless fields.nil?
|
4940
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4941
|
+
execute_or_queue_command(command, &block)
|
4942
|
+
end
|
4943
|
+
|
4944
|
+
# Creates a new exclusion in the _Default sink in a specified parent resource.
|
4945
|
+
# Only log entries belonging to that resource can be excluded. You can have up
|
4946
|
+
# to 10 exclusions in a resource.
|
4808
4947
|
# @param [String] parent
|
4809
4948
|
# Required. The parent resource in which to create the exclusion: "projects/[
|
4810
4949
|
# PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[
|
@@ -4840,7 +4979,7 @@ module Google
|
|
4840
4979
|
execute_or_queue_command(command, &block)
|
4841
4980
|
end
|
4842
4981
|
|
4843
|
-
# Deletes an exclusion.
|
4982
|
+
# Deletes an exclusion in the _Default sink.
|
4844
4983
|
# @param [String] name
|
4845
4984
|
# Required. The resource name of an existing exclusion to delete: "projects/[
|
4846
4985
|
# PROJECT_ID]/exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/
|
@@ -4874,7 +5013,7 @@ module Google
|
|
4874
5013
|
execute_or_queue_command(command, &block)
|
4875
5014
|
end
|
4876
5015
|
|
4877
|
-
# Gets the description of an exclusion.
|
5016
|
+
# Gets the description of an exclusion in the _Default sink.
|
4878
5017
|
# @param [String] name
|
4879
5018
|
# Required. The resource name of an existing exclusion: "projects/[PROJECT_ID]/
|
4880
5019
|
# exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/exclusions/[
|
@@ -4908,7 +5047,7 @@ module Google
|
|
4908
5047
|
execute_or_queue_command(command, &block)
|
4909
5048
|
end
|
4910
5049
|
|
4911
|
-
# Lists all the exclusions in a parent resource.
|
5050
|
+
# Lists all the exclusions on the _Default sink in a parent resource.
|
4912
5051
|
# @param [String] parent
|
4913
5052
|
# Required. The parent resource whose exclusions are to be listed. "projects/[
|
4914
5053
|
# PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[
|
@@ -4951,7 +5090,7 @@ module Google
|
|
4951
5090
|
execute_or_queue_command(command, &block)
|
4952
5091
|
end
|
4953
5092
|
|
4954
|
-
# Changes one or more properties of an existing exclusion.
|
5093
|
+
# Changes one or more properties of an existing exclusion in the _Default sink.
|
4955
5094
|
# @param [String] name
|
4956
5095
|
# Required. The resource name of the exclusion to update: "projects/[PROJECT_ID]/
|
4957
5096
|
# exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/exclusions/[
|
@@ -5357,7 +5496,9 @@ module Google
|
|
5357
5496
|
execute_or_queue_command(command, &block)
|
5358
5497
|
end
|
5359
5498
|
|
5360
|
-
# Deletes a view on a log bucket.
|
5499
|
+
# Deletes a view on a log bucket. If an UNAVAILABLE error is returned, this
|
5500
|
+
# indicates that system is not in a state where it can delete the view. If this
|
5501
|
+
# occurs, please try again in a few minutes.
|
5361
5502
|
# @param [String] name
|
5362
5503
|
# Required. The full resource name of the view to delete: "projects/[PROJECT_ID]/
|
5363
5504
|
# locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" For example:"
|
@@ -5464,7 +5605,9 @@ module Google
|
|
5464
5605
|
end
|
5465
5606
|
|
5466
5607
|
# Updates a view on a log bucket. This method replaces the following fields in
|
5467
|
-
# the existing view with values from the new view: filter.
|
5608
|
+
# the existing view with values from the new view: filter. If an UNAVAILABLE
|
5609
|
+
# error is returned, this indicates that system is not in a state where it can
|
5610
|
+
# update the view. If this occurs, please try again in a few minutes.
|
5468
5611
|
# @param [String] name
|
5469
5612
|
# Required. The full resource name of the view to update "projects/[PROJECT_ID]/
|
5470
5613
|
# locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" For example:"
|
@@ -6391,18 +6534,20 @@ module Google
|
|
6391
6534
|
execute_or_queue_command(command, &block)
|
6392
6535
|
end
|
6393
6536
|
|
6394
|
-
# Gets the
|
6395
|
-
#
|
6396
|
-
# configured, it applies to all
|
6397
|
-
#
|
6398
|
-
# managed-encryption)
|
6537
|
+
# Gets the Logging CMEK settings for the given resource.Note: CMEK for the Log
|
6538
|
+
# Router can be configured for Google Cloud projects, folders, organizations and
|
6539
|
+
# billing accounts. Once configured for an organization, it applies to all
|
6540
|
+
# projects and folders in the Google Cloud organization.See Enabling CMEK for
|
6541
|
+
# Logs Router (https://cloud.google.com/logging/docs/routing/managed-encryption)
|
6542
|
+
# for more information.
|
6399
6543
|
# @param [String] name
|
6400
6544
|
# Required. The resource for which to retrieve CMEK settings. "projects/[
|
6401
6545
|
# PROJECT_ID]/cmekSettings" "organizations/[ORGANIZATION_ID]/cmekSettings" "
|
6402
6546
|
# billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings" "folders/[FOLDER_ID]/
|
6403
6547
|
# cmekSettings" For example:"organizations/12345/cmekSettings"Note: CMEK for the
|
6404
|
-
#
|
6405
|
-
#
|
6548
|
+
# Log Router can be configured for Google Cloud projects, folders, organizations
|
6549
|
+
# and billing accounts. Once configured for an organization, it applies to all
|
6550
|
+
# projects and folders in the Google Cloud organization.
|
6406
6551
|
# @param [String] fields
|
6407
6552
|
# Selector specifying which fields to include in a partial response.
|
6408
6553
|
# @param [String] quota_user
|
@@ -6430,21 +6575,22 @@ module Google
|
|
6430
6575
|
execute_or_queue_command(command, &block)
|
6431
6576
|
end
|
6432
6577
|
|
6433
|
-
# Updates the
|
6434
|
-
#
|
6435
|
-
# configured, it applies to all projects and folders in the
|
6436
|
-
# UpdateCmekSettings will fail if 1) kms_key_name is invalid, or 2)
|
6437
|
-
# associated service account does not have the required roles/cloudkms.
|
6578
|
+
# Updates the Log Router CMEK settings for the given resource.Note: CMEK for the
|
6579
|
+
# Log Router can currently only be configured for Google Cloud organizations.
|
6580
|
+
# Once configured, it applies to all projects and folders in the Google Cloud
|
6581
|
+
# organization.UpdateCmekSettings will fail if 1) kms_key_name is invalid, or 2)
|
6582
|
+
# the associated service account does not have the required roles/cloudkms.
|
6438
6583
|
# cryptoKeyEncrypterDecrypter role assigned for the key, or 3) access to the key
|
6439
|
-
# is disabled.See Enabling CMEK for
|
6440
|
-
#
|
6584
|
+
# is disabled.See Enabling CMEK for Log Router (https://cloud.google.com/logging/
|
6585
|
+
# docs/routing/managed-encryption) for more information.
|
6441
6586
|
# @param [String] name
|
6442
6587
|
# Required. The resource name for the CMEK settings to update. "projects/[
|
6443
6588
|
# PROJECT_ID]/cmekSettings" "organizations/[ORGANIZATION_ID]/cmekSettings" "
|
6444
6589
|
# billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings" "folders/[FOLDER_ID]/
|
6445
6590
|
# cmekSettings" For example:"organizations/12345/cmekSettings"Note: CMEK for the
|
6446
|
-
#
|
6447
|
-
# configured, it applies to all projects and folders in the
|
6591
|
+
# Log Router can currently only be configured for Google Cloud organizations.
|
6592
|
+
# Once configured, it applies to all projects and folders in the Google Cloud
|
6593
|
+
# organization.
|
6448
6594
|
# @param [Google::Apis::LoggingV2::CmekSettings] cmek_settings_object
|
6449
6595
|
# @param [String] update_mask
|
6450
6596
|
# Optional. Field mask identifying which fields from cmek_settings should be
|
@@ -21,10 +21,7 @@ module Google
|
|
21
21
|
module Apis
|
22
22
|
# Cloud Logging API
|
23
23
|
#
|
24
|
-
# Writes log entries and manages your Cloud Logging configuration.
|
25
|
-
# entries below are presented in alphabetical order, not in order of common use.
|
26
|
-
# For explanations of the concepts found in the table entries, read the
|
27
|
-
# documentation at https://cloud.google.com/logging/docs.
|
24
|
+
# Writes log entries and manages your Cloud Logging configuration.
|
28
25
|
#
|
29
26
|
# @see https://cloud.google.com/logging/docs/
|
30
27
|
module LoggingV2
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-logging_v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.18.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-
|
11
|
+
date: 2021-12-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -57,9 +57,9 @@ licenses:
|
|
57
57
|
- Apache-2.0
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
|
-
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-logging_v2/v0.
|
62
|
-
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
60
|
+
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-logging_v2/CHANGELOG.md
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-logging_v2/v0.18.0
|
62
|
+
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-logging_v2
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
65
65
|
require_paths:
|