Skip to content

Commit

Permalink
feat: Automated regeneration of artifactregistry v1 client
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation committed Oct 20, 2024
1 parent aa9a74f commit a672b2d
Show file tree
Hide file tree
Showing 6 changed files with 86 additions and 10 deletions.
6 changes: 6 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39035,6 +39035,7 @@
"/artifactregistry:v1/Repository/sizeBytes": size_bytes
"/artifactregistry:v1/Repository/updateTime": update_time
"/artifactregistry:v1/Repository/virtualRepositoryConfig": virtual_repository_config
"/artifactregistry:v1/Repository/vulnerabilityScanningConfig": vulnerability_scanning_config
"/artifactregistry:v1/SbomConfig": sbom_config
"/artifactregistry:v1/SbomConfig/enablementConfig": enablement_config
"/artifactregistry:v1/SbomConfig/lastEnableTime": last_enable_time
Expand Down Expand Up @@ -39128,6 +39129,11 @@
"/artifactregistry:v1/VirtualRepositoryConfig": virtual_repository_config
"/artifactregistry:v1/VirtualRepositoryConfig/upstreamPolicies": upstream_policies
"/artifactregistry:v1/VirtualRepositoryConfig/upstreamPolicies/upstream_policy": upstream_policy
"/artifactregistry:v1/VulnerabilityScanningConfig": vulnerability_scanning_config
"/artifactregistry:v1/VulnerabilityScanningConfig/enablementConfig": enablement_config
"/artifactregistry:v1/VulnerabilityScanningConfig/enablementState": enablement_state
"/artifactregistry:v1/VulnerabilityScanningConfig/enablementStateReason": enablement_state_reason
"/artifactregistry:v1/VulnerabilityScanningConfig/lastEnableTime": last_enable_time
"/artifactregistry:v1/YumArtifact": yum_artifact
"/artifactregistry:v1/YumArtifact/architecture": architecture
"/artifactregistry:v1/YumArtifact/name": name
Expand Down
4 changes: 4 additions & 0 deletions generated/google-apis-artifactregistry_v1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release history for google-apis-artifactregistry_v1

### v0.70.0 (2024-10-20)

* Regenerated from discovery document revision 20241011

### v0.69.0 (2024-10-13)

* Regenerated from discovery document revision 20241010
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1016,12 +1016,13 @@ def update!(**args)
end
end

# 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.
# 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.
class GoogleDevtoolsArtifactregistryV1Rule
include Google::Apis::Core::Hashable

# The action this rule makes.
# The action this rule takes.
# Corresponds to the JSON property `action`
# @return [String]
attr_accessor :action
Expand All @@ -1045,8 +1046,8 @@ class GoogleDevtoolsArtifactregistryV1Rule
# @return [Google::Apis::ArtifactregistryV1::Expr]
attr_accessor :condition

# The name of the rule, for example: "projects/p1/locations/us-central1/
# repositories/repo1/rules/rule1".
# The name of the rule, for example: `projects/p1/locations/us-central1/
# repositories/repo1/rules/rule1`.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
Expand All @@ -1056,7 +1057,7 @@ class GoogleDevtoolsArtifactregistryV1Rule
# @return [String]
attr_accessor :operation

# The package ID the rule applies to. If empty, this rule applies to all the
# The package ID the rule applies to. If empty, this rule applies to all
# packages inside the repository.
# Corresponds to the JSON property `packageId`
# @return [String]
Expand Down Expand Up @@ -2534,6 +2535,12 @@ class Repository
# @return [Google::Apis::ArtifactregistryV1::VirtualRepositoryConfig]
attr_accessor :virtual_repository_config

# Config on whether to perform vulnerability scanning for resources in this
# repository, as well as output fields describing current state.
# Corresponds to the JSON property `vulnerabilityScanningConfig`
# @return [Google::Apis::ArtifactregistryV1::VulnerabilityScanningConfig]
attr_accessor :vulnerability_scanning_config

def initialize(**args)
update!(**args)
end
Expand All @@ -2558,6 +2565,7 @@ def update!(**args)
@size_bytes = args[:size_bytes] if args.key?(:size_bytes)
@update_time = args[:update_time] if args.key?(:update_time)
@virtual_repository_config = args[:virtual_repository_config] if args.key?(:virtual_repository_config)
@vulnerability_scanning_config = args[:vulnerability_scanning_config] if args.key?(:vulnerability_scanning_config)
end
end

Expand Down Expand Up @@ -3322,6 +3330,46 @@ def update!(**args)
end
end

# Config on whether to perform vulnerability scanning for resources in this
# repository, as well as output fields describing current state.
class VulnerabilityScanningConfig
include Google::Apis::Core::Hashable

# Optional. Config for whether this repository has vulnerability scanning
# disabled.
# Corresponds to the JSON property `enablementConfig`
# @return [String]
attr_accessor :enablement_config

# Output only. State of feature enablement, combining repository enablement
# config and API enablement state.
# Corresponds to the JSON property `enablementState`
# @return [String]
attr_accessor :enablement_state

# Output only. Reason for the repository state.
# Corresponds to the JSON property `enablementStateReason`
# @return [String]
attr_accessor :enablement_state_reason

# Output only. The last time this repository config was enabled.
# Corresponds to the JSON property `lastEnableTime`
# @return [String]
attr_accessor :last_enable_time

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@enablement_config = args[:enablement_config] if args.key?(:enablement_config)
@enablement_state = args[:enablement_state] if args.key?(:enablement_state)
@enablement_state_reason = args[:enablement_state_reason] if args.key?(:enablement_state_reason)
@last_enable_time = args[:last_enable_time] if args.key?(:last_enable_time)
end
end

# A detailed representation of a Yum artifact.
class YumArtifact
include Google::Apis::Core::Hashable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module ArtifactregistryV1
# Version of the google-apis-artifactregistry_v1 gem
GEM_VERSION = "0.69.0"
GEM_VERSION = "0.70.0"

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

# Revision of the discovery document this client was generated from
REVISION = "20241010"
REVISION = "20241011"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class VulnerabilityScanningConfig
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class YumArtifact
class Representation < Google::Apis::Core::JsonRepresentation; end

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

property :vulnerability_scanning_config, as: 'vulnerabilityScanningConfig', class: Google::Apis::ArtifactregistryV1::VulnerabilityScanningConfig, decorator: Google::Apis::ArtifactregistryV1::VulnerabilityScanningConfig::Representation

end
end

Expand Down Expand Up @@ -1635,6 +1643,16 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class VulnerabilityScanningConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :enablement_config, as: 'enablementConfig'
property :enablement_state, as: 'enablementState'
property :enablement_state_reason, as: 'enablementStateReason'
property :last_enable_time, as: 'lastEnableTime'
end
end

class YumArtifact
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2260,8 +2260,8 @@ def list_project_location_repository_rules(parent, page_size: nil, page_token: n

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

0 comments on commit a672b2d

Please sign in to comment.