Skip to content

Commit 4d10fed

Browse files
feat: Automated regeneration of Logging client (googleapis#12941)
Auto-created at 2025-02-08 13:12:01 +0000 using the toys pull request generator.
1 parent c6c5f59 commit 4d10fed

File tree

9 files changed

+107
-6
lines changed

9 files changed

+107
-6
lines changed

clients/logging/lib/google_api/logging/v2/api/billing_accounts.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1540,7 +1540,7 @@ defmodule GoogleApi.Logging.V2.Api.BillingAccounts do
15401540
* `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
15411541
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
15421542
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
1543-
* `:viewId` (*type:* `String.t`) - Required. A client-assigned identifier such as "my-view". Identifiers are limited to 100 characters and can include only letters, digits, underscores, and hyphens.
1543+
* `:viewId` (*type:* `String.t`) - Required. A client-assigned identifier such as "my-view". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods.
15441544
* `:body` (*type:* `GoogleApi.Logging.V2.Model.LogView.t`) -
15451545
* `opts` (*type:* `keyword()`) - Call options
15461546

clients/logging/lib/google_api/logging/v2/api/folders.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1524,7 +1524,7 @@ defmodule GoogleApi.Logging.V2.Api.Folders do
15241524
* `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
15251525
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
15261526
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
1527-
* `:viewId` (*type:* `String.t`) - Required. A client-assigned identifier such as "my-view". Identifiers are limited to 100 characters and can include only letters, digits, underscores, and hyphens.
1527+
* `:viewId` (*type:* `String.t`) - Required. A client-assigned identifier such as "my-view". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods.
15281528
* `:body` (*type:* `GoogleApi.Logging.V2.Model.LogView.t`) -
15291529
* `opts` (*type:* `keyword()`) - Call options
15301530

clients/logging/lib/google_api/logging/v2/api/locations.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,7 @@ defmodule GoogleApi.Logging.V2.Api.Locations do
950950
* `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
951951
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
952952
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
953-
* `:viewId` (*type:* `String.t`) - Required. A client-assigned identifier such as "my-view". Identifiers are limited to 100 characters and can include only letters, digits, underscores, and hyphens.
953+
* `:viewId` (*type:* `String.t`) - Required. A client-assigned identifier such as "my-view". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods.
954954
* `:body` (*type:* `GoogleApi.Logging.V2.Model.LogView.t`) -
955955
* `opts` (*type:* `keyword()`) - Call options
956956

clients/logging/lib/google_api/logging/v2/api/organizations.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1643,7 +1643,7 @@ defmodule GoogleApi.Logging.V2.Api.Organizations do
16431643
* `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
16441644
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
16451645
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
1646-
* `:viewId` (*type:* `String.t`) - Required. A client-assigned identifier such as "my-view". Identifiers are limited to 100 characters and can include only letters, digits, underscores, and hyphens.
1646+
* `:viewId` (*type:* `String.t`) - Required. A client-assigned identifier such as "my-view". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods.
16471647
* `:body` (*type:* `GoogleApi.Logging.V2.Model.LogView.t`) -
16481648
* `opts` (*type:* `keyword()`) - Call options
16491649

clients/logging/lib/google_api/logging/v2/api/projects.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1465,7 +1465,7 @@ defmodule GoogleApi.Logging.V2.Api.Projects do
14651465
* `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
14661466
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
14671467
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
1468-
* `:viewId` (*type:* `String.t`) - Required. A client-assigned identifier such as "my-view". Identifiers are limited to 100 characters and can include only letters, digits, underscores, and hyphens.
1468+
* `:viewId` (*type:* `String.t`) - Required. A client-assigned identifier such as "my-view". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods.
14691469
* `:body` (*type:* `GoogleApi.Logging.V2.Model.LogView.t`) -
14701470
* `opts` (*type:* `keyword()`) - Call options
14711471

clients/logging/lib/google_api/logging/v2/metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule GoogleApi.Logging.V2 do
2020
API client metadata for GoogleApi.Logging.V2.
2121
"""
2222

23-
@discovery_revision "20250124"
23+
@discovery_revision "20250204"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.Logging.V2.Model.AuditConfig do
19+
@moduledoc """
20+
Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs.If there are AuditConfigs for both allServices and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted.Example Policy with multiple AuditConfigs: { "audit_configs": [ { "service": "allServices", "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:[email protected]" ] }, { "log_type": "DATA_WRITE" }, { "log_type": "ADMIN_READ" } ] }, { "service": "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": "DATA_READ" }, { "log_type": "DATA_WRITE", "exempted_members": [ "user:[email protected]" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts [email protected] from DATA_READ logging, and [email protected] from DATA_WRITE logging.
21+
22+
## Attributes
23+
24+
* `auditLogConfigs` (*type:* `list(GoogleApi.Logging.V2.Model.AuditLogConfig.t)`, *default:* `nil`) - The configuration for logging of each type of permission.
25+
* `service` (*type:* `String.t`, *default:* `nil`) - Specifies a service that will be enabled for audit logging. For example, storage.googleapis.com, cloudsql.googleapis.com. allServices is a special value that covers all services.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:auditLogConfigs => list(GoogleApi.Logging.V2.Model.AuditLogConfig.t()) | nil,
32+
:service => String.t() | nil
33+
}
34+
35+
field(:auditLogConfigs, as: GoogleApi.Logging.V2.Model.AuditLogConfig, type: :list)
36+
field(:service)
37+
end
38+
39+
defimpl Poison.Decoder, for: GoogleApi.Logging.V2.Model.AuditConfig do
40+
def decode(value, options) do
41+
GoogleApi.Logging.V2.Model.AuditConfig.decode(value, options)
42+
end
43+
end
44+
45+
defimpl Poison.Encoder, for: GoogleApi.Logging.V2.Model.AuditConfig do
46+
def encode(value, options) do
47+
GoogleApi.Gax.ModelBase.encode(value, options)
48+
end
49+
end
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.Logging.V2.Model.AuditLogConfig do
19+
@moduledoc """
20+
Provides the configuration for logging a type of permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:[email protected]" ] }, { "log_type": "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting [email protected] from DATA_READ logging.
21+
22+
## Attributes
23+
24+
* `exemptedMembers` (*type:* `list(String.t)`, *default:* `nil`) - Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
25+
* `logType` (*type:* `String.t`, *default:* `nil`) - The log type that this config enables.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:exemptedMembers => list(String.t()) | nil,
32+
:logType => String.t() | nil
33+
}
34+
35+
field(:exemptedMembers, type: :list)
36+
field(:logType)
37+
end
38+
39+
defimpl Poison.Decoder, for: GoogleApi.Logging.V2.Model.AuditLogConfig do
40+
def decode(value, options) do
41+
GoogleApi.Logging.V2.Model.AuditLogConfig.decode(value, options)
42+
end
43+
end
44+
45+
defimpl Poison.Encoder, for: GoogleApi.Logging.V2.Model.AuditLogConfig do
46+
def encode(value, options) do
47+
GoogleApi.Gax.ModelBase.encode(value, options)
48+
end
49+
end

clients/logging/lib/google_api/logging/v2/model/policy.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ defmodule GoogleApi.Logging.V2.Model.Policy do
2121
2222
## Attributes
2323
24+
* `auditConfigs` (*type:* `list(GoogleApi.Logging.V2.Model.AuditConfig.t)`, *default:* `nil`) - Specifies cloud audit logging configuration for this policy.
2425
* `bindings` (*type:* `list(GoogleApi.Logging.V2.Model.Binding.t)`, *default:* `nil`) - Associates a list of members, or principals, with a role. Optionally, may specify a condition that determines how and when the bindings are applied. Each of the bindings must contain at least one principal.The bindings in a Policy can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the bindings grant 50 different roles to user:[email protected], and not to any other principal, then you can add another 1,450 principals to the bindings in the Policy.
2526
* `etag` (*type:* `String.t`, *default:* `nil`) - etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the etag in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An etag is returned in the response to getIamPolicy, and systems are expected to put that etag in the request to setIamPolicy to ensure that their change will be applied to the same version of the policy.Important: If you use IAM Conditions, you must include the etag field whenever you call setIamPolicy. If you omit this field, then IAM allows you to overwrite a version 3 policy with a version 1 policy, and all of the conditions in the version 3 policy are lost.
2627
* `version` (*type:* `integer()`, *default:* `nil`) - Specifies the format of the policy.Valid values are 0, 1, and 3. Requests that specify an invalid value are rejected.Any operation that affects conditional role bindings must specify version 3. This requirement applies to the following operations: Getting a policy that includes a conditional role binding Adding a conditional role binding to a policy Changing a conditional role binding in a policy Removing any role binding, with or without a condition, from a policy that includes conditionsImportant: If you use IAM Conditions, you must include the etag field whenever you call setIamPolicy. If you omit this field, then IAM allows you to overwrite a version 3 policy with a version 1 policy, and all of the conditions in the version 3 policy are lost.If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).
@@ -29,11 +30,13 @@ defmodule GoogleApi.Logging.V2.Model.Policy do
2930
use GoogleApi.Gax.ModelBase
3031

3132
@type t :: %__MODULE__{
33+
:auditConfigs => list(GoogleApi.Logging.V2.Model.AuditConfig.t()) | nil,
3234
:bindings => list(GoogleApi.Logging.V2.Model.Binding.t()) | nil,
3335
:etag => String.t() | nil,
3436
:version => integer() | nil
3537
}
3638

39+
field(:auditConfigs, as: GoogleApi.Logging.V2.Model.AuditConfig, type: :list)
3740
field(:bindings, as: GoogleApi.Logging.V2.Model.Binding, type: :list)
3841
field(:etag)
3942
field(:version)

0 commit comments

Comments
 (0)