Skip to content

Commit 4ab20ab

Browse files
feat: Automated regeneration of artifactregistry v1 client (googleapis#20407)
Auto-created at 2024-10-20 09:19:31 +0000 using the toys pull request generator.
1 parent 70181fa commit 4ab20ab

File tree

6 files changed

+86
-10
lines changed

6 files changed

+86
-10
lines changed

api_names_out.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39042,6 +39042,7 @@
3904239042
"/artifactregistry:v1/Repository/sizeBytes": size_bytes
3904339043
"/artifactregistry:v1/Repository/updateTime": update_time
3904439044
"/artifactregistry:v1/Repository/virtualRepositoryConfig": virtual_repository_config
39045+
"/artifactregistry:v1/Repository/vulnerabilityScanningConfig": vulnerability_scanning_config
3904539046
"/artifactregistry:v1/SbomConfig": sbom_config
3904639047
"/artifactregistry:v1/SbomConfig/enablementConfig": enablement_config
3904739048
"/artifactregistry:v1/SbomConfig/lastEnableTime": last_enable_time
@@ -39135,6 +39136,11 @@
3913539136
"/artifactregistry:v1/VirtualRepositoryConfig": virtual_repository_config
3913639137
"/artifactregistry:v1/VirtualRepositoryConfig/upstreamPolicies": upstream_policies
3913739138
"/artifactregistry:v1/VirtualRepositoryConfig/upstreamPolicies/upstream_policy": upstream_policy
39139+
"/artifactregistry:v1/VulnerabilityScanningConfig": vulnerability_scanning_config
39140+
"/artifactregistry:v1/VulnerabilityScanningConfig/enablementConfig": enablement_config
39141+
"/artifactregistry:v1/VulnerabilityScanningConfig/enablementState": enablement_state
39142+
"/artifactregistry:v1/VulnerabilityScanningConfig/enablementStateReason": enablement_state_reason
39143+
"/artifactregistry:v1/VulnerabilityScanningConfig/lastEnableTime": last_enable_time
3913839144
"/artifactregistry:v1/YumArtifact": yum_artifact
3913939145
"/artifactregistry:v1/YumArtifact/architecture": architecture
3914039146
"/artifactregistry:v1/YumArtifact/name": name

generated/google-apis-artifactregistry_v1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-artifactregistry_v1
22

3+
### v0.70.0 (2024-10-20)
4+
5+
* Regenerated from discovery document revision 20241011
6+
37
### v0.69.0 (2024-10-13)
48

59
* Regenerated from discovery document revision 20241010

generated/google-apis-artifactregistry_v1/lib/google/apis/artifactregistry_v1/classes.rb

Lines changed: 54 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,12 +1016,13 @@ def update!(**args)
10161016
end
10171017
end
10181018

1019-
# A Rule applies to repository or package level. It defines the deny or allow
1020-
# action of the operation when the conditions in the rule are met.
1019+
# A rule defines the deny or allow action of the operation it applies to and the
1020+
# conditions required for the rule to apply. You can set one rule for an entire
1021+
# repository and one rule for each package within.
10211022
class GoogleDevtoolsArtifactregistryV1Rule
10221023
include Google::Apis::Core::Hashable
10231024

1024-
# The action this rule makes.
1025+
# The action this rule takes.
10251026
# Corresponds to the JSON property `action`
10261027
# @return [String]
10271028
attr_accessor :action
@@ -1045,8 +1046,8 @@ class GoogleDevtoolsArtifactregistryV1Rule
10451046
# @return [Google::Apis::ArtifactregistryV1::Expr]
10461047
attr_accessor :condition
10471048

1048-
# The name of the rule, for example: "projects/p1/locations/us-central1/
1049-
# repositories/repo1/rules/rule1".
1049+
# The name of the rule, for example: `projects/p1/locations/us-central1/
1050+
# repositories/repo1/rules/rule1`.
10501051
# Corresponds to the JSON property `name`
10511052
# @return [String]
10521053
attr_accessor :name
@@ -1056,7 +1057,7 @@ class GoogleDevtoolsArtifactregistryV1Rule
10561057
# @return [String]
10571058
attr_accessor :operation
10581059

1059-
# The package ID the rule applies to. If empty, this rule applies to all the
1060+
# The package ID the rule applies to. If empty, this rule applies to all
10601061
# packages inside the repository.
10611062
# Corresponds to the JSON property `packageId`
10621063
# @return [String]
@@ -2534,6 +2535,12 @@ class Repository
25342535
# @return [Google::Apis::ArtifactregistryV1::VirtualRepositoryConfig]
25352536
attr_accessor :virtual_repository_config
25362537

2538+
# Config on whether to perform vulnerability scanning for resources in this
2539+
# repository, as well as output fields describing current state.
2540+
# Corresponds to the JSON property `vulnerabilityScanningConfig`
2541+
# @return [Google::Apis::ArtifactregistryV1::VulnerabilityScanningConfig]
2542+
attr_accessor :vulnerability_scanning_config
2543+
25372544
def initialize(**args)
25382545
update!(**args)
25392546
end
@@ -2558,6 +2565,7 @@ def update!(**args)
25582565
@size_bytes = args[:size_bytes] if args.key?(:size_bytes)
25592566
@update_time = args[:update_time] if args.key?(:update_time)
25602567
@virtual_repository_config = args[:virtual_repository_config] if args.key?(:virtual_repository_config)
2568+
@vulnerability_scanning_config = args[:vulnerability_scanning_config] if args.key?(:vulnerability_scanning_config)
25612569
end
25622570
end
25632571

@@ -3322,6 +3330,46 @@ def update!(**args)
33223330
end
33233331
end
33243332

3333+
# Config on whether to perform vulnerability scanning for resources in this
3334+
# repository, as well as output fields describing current state.
3335+
class VulnerabilityScanningConfig
3336+
include Google::Apis::Core::Hashable
3337+
3338+
# Optional. Config for whether this repository has vulnerability scanning
3339+
# disabled.
3340+
# Corresponds to the JSON property `enablementConfig`
3341+
# @return [String]
3342+
attr_accessor :enablement_config
3343+
3344+
# Output only. State of feature enablement, combining repository enablement
3345+
# config and API enablement state.
3346+
# Corresponds to the JSON property `enablementState`
3347+
# @return [String]
3348+
attr_accessor :enablement_state
3349+
3350+
# Output only. Reason for the repository state.
3351+
# Corresponds to the JSON property `enablementStateReason`
3352+
# @return [String]
3353+
attr_accessor :enablement_state_reason
3354+
3355+
# Output only. The last time this repository config was enabled.
3356+
# Corresponds to the JSON property `lastEnableTime`
3357+
# @return [String]
3358+
attr_accessor :last_enable_time
3359+
3360+
def initialize(**args)
3361+
update!(**args)
3362+
end
3363+
3364+
# Update properties of this object
3365+
def update!(**args)
3366+
@enablement_config = args[:enablement_config] if args.key?(:enablement_config)
3367+
@enablement_state = args[:enablement_state] if args.key?(:enablement_state)
3368+
@enablement_state_reason = args[:enablement_state_reason] if args.key?(:enablement_state_reason)
3369+
@last_enable_time = args[:last_enable_time] if args.key?(:last_enable_time)
3370+
end
3371+
end
3372+
33253373
# A detailed representation of a Yum artifact.
33263374
class YumArtifact
33273375
include Google::Apis::Core::Hashable

generated/google-apis-artifactregistry_v1/lib/google/apis/artifactregistry_v1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module ArtifactregistryV1
1818
# Version of the google-apis-artifactregistry_v1 gem
19-
GEM_VERSION = "0.69.0"
19+
GEM_VERSION = "0.70.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.15.1"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20241010"
25+
REVISION = "20241011"
2626
end
2727
end
2828
end

generated/google-apis-artifactregistry_v1/lib/google/apis/artifactregistry_v1/representations.rb

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
664664
include Google::Apis::Core::JsonObjectSupport
665665
end
666666

667+
class VulnerabilityScanningConfig
668+
class Representation < Google::Apis::Core::JsonRepresentation; end
669+
670+
include Google::Apis::Core::JsonObjectSupport
671+
end
672+
667673
class YumArtifact
668674
class Representation < Google::Apis::Core::JsonRepresentation; end
669675

@@ -1374,6 +1380,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
13741380
property :update_time, as: 'updateTime'
13751381
property :virtual_repository_config, as: 'virtualRepositoryConfig', class: Google::Apis::ArtifactregistryV1::VirtualRepositoryConfig, decorator: Google::Apis::ArtifactregistryV1::VirtualRepositoryConfig::Representation
13761382

1383+
property :vulnerability_scanning_config, as: 'vulnerabilityScanningConfig', class: Google::Apis::ArtifactregistryV1::VulnerabilityScanningConfig, decorator: Google::Apis::ArtifactregistryV1::VulnerabilityScanningConfig::Representation
1384+
13771385
end
13781386
end
13791387

@@ -1635,6 +1643,16 @@ class Representation < Google::Apis::Core::JsonRepresentation
16351643
end
16361644
end
16371645

1646+
class VulnerabilityScanningConfig
1647+
# @private
1648+
class Representation < Google::Apis::Core::JsonRepresentation
1649+
property :enablement_config, as: 'enablementConfig'
1650+
property :enablement_state, as: 'enablementState'
1651+
property :enablement_state_reason, as: 'enablementStateReason'
1652+
property :last_enable_time, as: 'lastEnableTime'
1653+
end
1654+
end
1655+
16381656
class YumArtifact
16391657
# @private
16401658
class Representation < Google::Apis::Core::JsonRepresentation

generated/google-apis-artifactregistry_v1/lib/google/apis/artifactregistry_v1/service.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2260,8 +2260,8 @@ def list_project_location_repository_rules(parent, page_size: nil, page_token: n
22602260

22612261
# Updates a rule.
22622262
# @param [String] name
2263-
# The name of the rule, for example: "projects/p1/locations/us-central1/
2264-
# repositories/repo1/rules/rule1".
2263+
# The name of the rule, for example: `projects/p1/locations/us-central1/
2264+
# repositories/repo1/rules/rule1`.
22652265
# @param [Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1Rule] google_devtools_artifactregistry_v1_rule_object
22662266
# @param [String] update_mask
22672267
# The update mask applies to the resource. For the `FieldMask` definition, see

0 commit comments

Comments
 (0)