Skip to content

Commit 43c88f7

Browse files
feat: Automated regeneration of ArtifactRegistry client (googleapis#12238)
Auto-created at 2024-09-28 13:16:48 +0000 using the toys pull request generator.
1 parent 99b3ab1 commit 43c88f7

File tree

12 files changed

+1999
-536
lines changed

12 files changed

+1999
-536
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.20"}]
14+
[{:google_api_artifact_registry, "~> 0.21"}]
1515
end
1616
```
1717

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

Lines changed: 1661 additions & 533 deletions
Large diffs are not rendered by default.

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 "20240903"
23+
@discovery_revision "20240923"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
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.Attachment do
19+
@moduledoc """
20+
An Attachment refers to additional metadata that can be attached to artifacts in ArtifactRegistry. An attachment consists of one or more files.
21+
22+
## Attributes
23+
24+
* `annotations` (*type:* `map()`, *default:* `nil`) - Optional. User annotations. These attributes can only be set and used by the user, and not by Artifact Registry. See https://google.aip.dev/128#annotations for more details such as format and size limitations. Client specified annotations.
25+
* `attachmentNamespace` (*type:* `String.t`, *default:* `nil`) - The namespace this attachment belongs to. E.g. If an Attachment is created by artifact analysis, namespace is set to artifactanalysis.googleapis.com.
26+
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time when the attachment was created.
27+
* `files` (*type:* `list(String.t)`, *default:* `nil`) - Required. The files that blong to this Attachment. If the file ID part contains slashes, they are escaped. E.g. "projects/p1/locations/us-central1/repositories/repo1/files/sha:".
28+
* `name` (*type:* `String.t`, *default:* `nil`) - The name of the attachment. E.g. "projects/p1/locations/us/repositories/repo/attachments/sbom".
29+
* `ociVersionName` (*type:* `String.t`, *default:* `nil`) - Output only. The name of the OCI version that this attachment created. Only populated for Docker attachments. E.g. "projects/p1/locations/us-central1/repositories/repo1/packages/p1/versions/v1".
30+
* `target` (*type:* `String.t`, *default:* `nil`) - Required. The target the attachment is for, can be a Version, Package or Repository. E.g. "projects/p1/locations/us-central1/repositories/repo1/packages/p1/versions/v1".
31+
* `type` (*type:* `String.t`, *default:* `nil`) - Type of Attachment. E.g. application/vnd.spdx+jsonn
32+
* `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time when the attachment was last updated.
33+
"""
34+
35+
use GoogleApi.Gax.ModelBase
36+
37+
@type t :: %__MODULE__{
38+
:annotations => map() | nil,
39+
:attachmentNamespace => String.t() | nil,
40+
:createTime => DateTime.t() | nil,
41+
:files => list(String.t()) | nil,
42+
:name => String.t() | nil,
43+
:ociVersionName => String.t() | nil,
44+
:target => String.t() | nil,
45+
:type => String.t() | nil,
46+
:updateTime => DateTime.t() | nil
47+
}
48+
49+
field(:annotations, type: :map)
50+
field(:attachmentNamespace)
51+
field(:createTime, as: DateTime)
52+
field(:files, type: :list)
53+
field(:name)
54+
field(:ociVersionName)
55+
field(:target)
56+
field(:type)
57+
field(:updateTime, as: DateTime)
58+
end
59+
60+
defimpl Poison.Decoder, for: GoogleApi.ArtifactRegistry.V1.Model.Attachment do
61+
def decode(value, options) do
62+
GoogleApi.ArtifactRegistry.V1.Model.Attachment.decode(value, options)
63+
end
64+
end
65+
66+
defimpl Poison.Encoder, for: GoogleApi.ArtifactRegistry.V1.Model.Attachment do
67+
def encode(value, options) do
68+
GoogleApi.Gax.ModelBase.encode(value, options)
69+
end
70+
end

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ defmodule GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1Fi
2121
2222
## Attributes
2323
24+
* `annotations` (*type:* `map()`, *default:* `nil`) - Optional. Client specified annotations.
2425
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time when the File was created.
2526
* `fetchTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time when the last attempt to refresh the file's data was made. Only set when the repository is remote.
2627
* `hashes` (*type:* `list(GoogleApi.ArtifactRegistry.V1.Model.Hash.t)`, *default:* `nil`) - The hashes of the file content.
@@ -33,6 +34,7 @@ defmodule GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1Fi
3334
use GoogleApi.Gax.ModelBase
3435

3536
@type t :: %__MODULE__{
37+
:annotations => map() | nil,
3638
:createTime => DateTime.t() | nil,
3739
:fetchTime => DateTime.t() | nil,
3840
:hashes => list(GoogleApi.ArtifactRegistry.V1.Model.Hash.t()) | nil,
@@ -42,6 +44,7 @@ defmodule GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1Fi
4244
:updateTime => DateTime.t() | nil
4345
}
4446

47+
field(:annotations, type: :map)
4548
field(:createTime, as: DateTime)
4649
field(:fetchTime, as: DateTime)
4750
field(:hashes, as: GoogleApi.ArtifactRegistry.V1.Model.Hash, type: :list)
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
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.GoogleDevtoolsArtifactregistryV1Rule do
19+
@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.
21+
22+
## Attributes
23+
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".
27+
* `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.
29+
"""
30+
31+
use GoogleApi.Gax.ModelBase
32+
33+
@type t :: %__MODULE__{
34+
:action => String.t() | nil,
35+
:condition => GoogleApi.ArtifactRegistry.V1.Model.Expr.t() | nil,
36+
:name => String.t() | nil,
37+
:operation => String.t() | nil,
38+
:packageId => String.t() | nil
39+
}
40+
41+
field(:action)
42+
field(:condition, as: GoogleApi.ArtifactRegistry.V1.Model.Expr)
43+
field(:name)
44+
field(:operation)
45+
field(:packageId)
46+
end
47+
48+
defimpl Poison.Decoder,
49+
for: GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1Rule do
50+
def decode(value, options) do
51+
GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1Rule.decode(
52+
value,
53+
options
54+
)
55+
end
56+
end
57+
58+
defimpl Poison.Encoder,
59+
for: GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1Rule do
60+
def encode(value, options) do
61+
GoogleApi.Gax.ModelBase.encode(value, options)
62+
end
63+
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.ArtifactRegistry.V1.Model.ListAttachmentsResponse do
19+
@moduledoc """
20+
The response from listing attachments.
21+
22+
## Attributes
23+
24+
* `attachments` (*type:* `list(GoogleApi.ArtifactRegistry.V1.Model.Attachment.t)`, *default:* `nil`) - The Attachments returned.
25+
* `nextPageToken` (*type:* `String.t`, *default:* `nil`) - The token to retrieve the next page of attachments, or empty if there are no more attachments to return.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:attachments => list(GoogleApi.ArtifactRegistry.V1.Model.Attachment.t()) | nil,
32+
:nextPageToken => String.t() | nil
33+
}
34+
35+
field(:attachments, as: GoogleApi.ArtifactRegistry.V1.Model.Attachment, type: :list)
36+
field(:nextPageToken)
37+
end
38+
39+
defimpl Poison.Decoder, for: GoogleApi.ArtifactRegistry.V1.Model.ListAttachmentsResponse do
40+
def decode(value, options) do
41+
GoogleApi.ArtifactRegistry.V1.Model.ListAttachmentsResponse.decode(value, options)
42+
end
43+
end
44+
45+
defimpl Poison.Encoder, for: GoogleApi.ArtifactRegistry.V1.Model.ListAttachmentsResponse do
46+
def encode(value, options) do
47+
GoogleApi.Gax.ModelBase.encode(value, options)
48+
end
49+
end
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.ListRulesResponse do
19+
@moduledoc """
20+
The response from listing rules.
21+
22+
## Attributes
23+
24+
* `nextPageToken` (*type:* `String.t`, *default:* `nil`) - The token to retrieve the next page of rules, or empty if there are no more rules to return.
25+
* `rules` (*type:* `list(GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1Rule.t)`, *default:* `nil`) - The rules returned.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:nextPageToken => String.t() | nil,
32+
:rules =>
33+
list(GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1Rule.t())
34+
| nil
35+
}
36+
37+
field(:nextPageToken)
38+
39+
field(:rules,
40+
as: GoogleApi.ArtifactRegistry.V1.Model.GoogleDevtoolsArtifactregistryV1Rule,
41+
type: :list
42+
)
43+
end
44+
45+
defimpl Poison.Decoder, for: GoogleApi.ArtifactRegistry.V1.Model.ListRulesResponse do
46+
def decode(value, options) do
47+
GoogleApi.ArtifactRegistry.V1.Model.ListRulesResponse.decode(value, options)
48+
end
49+
end
50+
51+
defimpl Poison.Encoder, for: GoogleApi.ArtifactRegistry.V1.Model.ListRulesResponse do
52+
def encode(value, options) do
53+
GoogleApi.Gax.ModelBase.encode(value, options)
54+
end
55+
end
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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.UploadFileMediaResponse do
19+
@moduledoc """
20+
The response to upload a generic artifact.
21+
22+
## Attributes
23+
24+
* `operation` (*type:* `GoogleApi.ArtifactRegistry.V1.Model.Operation.t`, *default:* `nil`) - Operation that will be returned to the user.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:operation => GoogleApi.ArtifactRegistry.V1.Model.Operation.t() | nil
31+
}
32+
33+
field(:operation, as: GoogleApi.ArtifactRegistry.V1.Model.Operation)
34+
end
35+
36+
defimpl Poison.Decoder, for: GoogleApi.ArtifactRegistry.V1.Model.UploadFileMediaResponse do
37+
def decode(value, options) do
38+
GoogleApi.ArtifactRegistry.V1.Model.UploadFileMediaResponse.decode(value, options)
39+
end
40+
end
41+
42+
defimpl Poison.Encoder, for: GoogleApi.ArtifactRegistry.V1.Model.UploadFileMediaResponse do
43+
def encode(value, options) do
44+
GoogleApi.Gax.ModelBase.encode(value, options)
45+
end
46+
end
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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.UploadFileRequest do
19+
@moduledoc """
20+
The request to upload a file.
21+
22+
## Attributes
23+
24+
* `fileId` (*type:* `String.t`, *default:* `nil`) - Optional. The ID of the file. If left empty will default to sha256 digest of the content uploaded.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:fileId => String.t() | nil
31+
}
32+
33+
field(:fileId)
34+
end
35+
36+
defimpl Poison.Decoder, for: GoogleApi.ArtifactRegistry.V1.Model.UploadFileRequest do
37+
def decode(value, options) do
38+
GoogleApi.ArtifactRegistry.V1.Model.UploadFileRequest.decode(value, options)
39+
end
40+
end
41+
42+
defimpl Poison.Encoder, for: GoogleApi.ArtifactRegistry.V1.Model.UploadFileRequest do
43+
def encode(value, options) do
44+
GoogleApi.Gax.ModelBase.encode(value, options)
45+
end
46+
end

0 commit comments

Comments
 (0)