Skip to content

Commit cf70d0b

Browse files
feat: Automated regeneration of ArtifactRegistry client (googleapis#12369)
Auto-created at 2024-10-20 13:14:16 +0000 using the toys pull request generator.
1 parent 87dfd3b commit cf70d0b

File tree

7 files changed

+72
-10
lines changed

7 files changed

+72
-10
lines changed

clients/artifact_registry/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding
1111

1212
```elixir
1313
def deps do
14-
[{:google_api_artifact_registry, "~> 0.22"}]
14+
[{:google_api_artifact_registry, "~> 0.23"}]
1515
end
1616
```
1717

clients/artifact_registry/lib/google_api/artifact_registry/v1/api/projects.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5435,7 +5435,7 @@ defmodule GoogleApi.ArtifactRegistry.V1.Api.Projects do
54355435
## Parameters
54365436
54375437
* `connection` (*type:* `GoogleApi.ArtifactRegistry.V1.Connection.t`) - Connection to server
5438-
* `name` (*type:* `String.t`) - The name of the rule, for example: "projects/p1/locations/us-central1/repositories/repo1/rules/rule1".
5438+
* `name` (*type:* `String.t`) - The name of the rule, for example: `projects/p1/locations/us-central1/repositories/repo1/rules/rule1`.
54395439
* `optional_params` (*type:* `keyword()`) - Optional parameters
54405440
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
54415441
* `:access_token` (*type:* `String.t`) - OAuth access token.

clients/artifact_registry/lib/google_api/artifact_registry/v1/metadata.ex

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

23-
@discovery_revision "20241010"
23+
@discovery_revision "20241011"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end

clients/artifact_registry/lib/google_api/artifact_registry/v1/model/google_devtools_artifactregistry_v1_rule.ex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@
1717

1818
defmodule GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1Rule do
1919
@moduledoc """
20-
A Rule applies to repository or package level. It defines the deny or allow action of the operation when the conditions in the rule are met.
20+
A rule defines the deny or allow action of the operation it applies to and the conditions required for the rule to apply. You can set one rule for an entire repository and one rule for each package within.
2121
2222
## Attributes
2323
24-
* `action` (*type:* `String.t`, *default:* `nil`) - The action this rule makes.
25-
* `condition` (*type:* `GoogleApi.ArtifactRegistry.V1.Model.Expr.t`, *default:* `nil`) - Optional. The condition of the rule in CEL expression. If not provided, the rule matches all the objects.
26-
* `name` (*type:* `String.t`, *default:* `nil`) - The name of the rule, for example: "projects/p1/locations/us-central1/repositories/repo1/rules/rule1".
24+
* `action` (*type:* `String.t`, *default:* `nil`) - The action this rule takes.
25+
* `condition` (*type:* `GoogleApi.ArtifactRegistry.V1.Model.Expr.t`, *default:* `nil`) - Optional. A CEL expression for conditions that must be met in order for the rule to apply. If not provided, the rule matches all objects.
26+
* `name` (*type:* `String.t`, *default:* `nil`) - The name of the rule, for example: `projects/p1/locations/us-central1/repositories/repo1/rules/rule1`.
2727
* `operation` (*type:* `String.t`, *default:* `nil`) -
28-
* `packageId` (*type:* `String.t`, *default:* `nil`) - The package ID the rule applies to. If empty, this rule applies to all the packages inside the repository.
28+
* `packageId` (*type:* `String.t`, *default:* `nil`) - The package ID the rule applies to. If empty, this rule applies to all packages inside the repository.
2929
"""
3030

3131
use GoogleApi.Gax.ModelBase

clients/artifact_registry/lib/google_api/artifact_registry/v1/model/repository.ex

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ defmodule GoogleApi.ArtifactRegistry.V1.Model.Repository do
3939
* `sizeBytes` (*type:* `String.t`, *default:* `nil`) - Output only. The size, in bytes, of all artifact storage in this repository. Repositories that are generally available or in public preview use this to calculate storage costs.
4040
* `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time when the repository was last updated.
4141
* `virtualRepositoryConfig` (*type:* `GoogleApi.ArtifactRegistry.V1.Model.VirtualRepositoryConfig.t`, *default:* `nil`) - Configuration specific for a Virtual Repository.
42+
* `vulnerabilityScanningConfig` (*type:* `GoogleApi.ArtifactRegistry.V1.Model.VulnerabilityScanningConfig.t`, *default:* `nil`) - Optional. Config and state for vulnerability scanning of resources within this Repository.
4243
"""
4344

4445
use GoogleApi.Gax.ModelBase
@@ -64,7 +65,9 @@ defmodule GoogleApi.ArtifactRegistry.V1.Model.Repository do
6465
:sizeBytes => String.t() | nil,
6566
:updateTime => DateTime.t() | nil,
6667
:virtualRepositoryConfig =>
67-
GoogleApi.ArtifactRegistry.V1.Model.VirtualRepositoryConfig.t() | nil
68+
GoogleApi.ArtifactRegistry.V1.Model.VirtualRepositoryConfig.t() | nil,
69+
:vulnerabilityScanningConfig =>
70+
GoogleApi.ArtifactRegistry.V1.Model.VulnerabilityScanningConfig.t() | nil
6871
}
6972

7073
field(:cleanupPolicies, as: GoogleApi.ArtifactRegistry.V1.Model.CleanupPolicy, type: :map)
@@ -85,6 +88,10 @@ defmodule GoogleApi.ArtifactRegistry.V1.Model.Repository do
8588
field(:sizeBytes)
8689
field(:updateTime, as: DateTime)
8790
field(:virtualRepositoryConfig, as: GoogleApi.ArtifactRegistry.V1.Model.VirtualRepositoryConfig)
91+
92+
field(:vulnerabilityScanningConfig,
93+
as: GoogleApi.ArtifactRegistry.V1.Model.VulnerabilityScanningConfig
94+
)
8895
end
8996

9097
defimpl Poison.Decoder, for: GoogleApi.ArtifactRegistry.V1.Model.Repository do
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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.ArtifactRegistry.V1.Model.VulnerabilityScanningConfig do
19+
@moduledoc """
20+
Config on whether to perform vulnerability scanning for resources in this repository, as well as output fields describing current state.
21+
22+
## Attributes
23+
24+
* `enablementConfig` (*type:* `String.t`, *default:* `nil`) - Optional. Config for whether this repository has vulnerability scanning disabled.
25+
* `enablementState` (*type:* `String.t`, *default:* `nil`) - Output only. State of feature enablement, combining repository enablement config and API enablement state.
26+
* `enablementStateReason` (*type:* `String.t`, *default:* `nil`) - Output only. Reason for the repository state.
27+
* `lastEnableTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The last time this repository config was enabled.
28+
"""
29+
30+
use GoogleApi.Gax.ModelBase
31+
32+
@type t :: %__MODULE__{
33+
:enablementConfig => String.t() | nil,
34+
:enablementState => String.t() | nil,
35+
:enablementStateReason => String.t() | nil,
36+
:lastEnableTime => DateTime.t() | nil
37+
}
38+
39+
field(:enablementConfig)
40+
field(:enablementState)
41+
field(:enablementStateReason)
42+
field(:lastEnableTime, as: DateTime)
43+
end
44+
45+
defimpl Poison.Decoder, for: GoogleApi.ArtifactRegistry.V1.Model.VulnerabilityScanningConfig do
46+
def decode(value, options) do
47+
GoogleApi.ArtifactRegistry.V1.Model.VulnerabilityScanningConfig.decode(value, options)
48+
end
49+
end
50+
51+
defimpl Poison.Encoder, for: GoogleApi.ArtifactRegistry.V1.Model.VulnerabilityScanningConfig do
52+
def encode(value, options) do
53+
GoogleApi.Gax.ModelBase.encode(value, options)
54+
end
55+
end

clients/artifact_registry/mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
defmodule GoogleApi.ArtifactRegistry.Mixfile do
1919
use Mix.Project
2020

21-
@version "0.22.1"
21+
@version "0.23.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)