[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Automated regeneration of binaryauthorization v1 client #19718

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46575,6 +46575,7 @@
"/binaryauthorization:v1/PkixPublicKeySet/pkixPublicKeys/pkix_public_key": pkix_public_key
"/binaryauthorization:v1/PlatformPolicy": platform_policy
"/binaryauthorization:v1/PlatformPolicy/description": description
"/binaryauthorization:v1/PlatformPolicy/etag": etag
"/binaryauthorization:v1/PlatformPolicy/gkePolicy": gke_policy
"/binaryauthorization:v1/PlatformPolicy/name": name
"/binaryauthorization:v1/PlatformPolicy/updateTime": update_time
Expand Down Expand Up @@ -46696,6 +46697,7 @@
"/binaryauthorization:v1/binaryauthorization.projects.platforms.policies.create/parent": parent
"/binaryauthorization:v1/binaryauthorization.projects.platforms.policies.create/policyId": policy_id
"/binaryauthorization:v1/binaryauthorization.projects.platforms.policies.delete": delete_project_platform_policy
"/binaryauthorization:v1/binaryauthorization.projects.platforms.policies.delete/etag": etag
"/binaryauthorization:v1/binaryauthorization.projects.platforms.policies.delete/name": name
"/binaryauthorization:v1/binaryauthorization.projects.platforms.policies.get": get_project_platform_policy
"/binaryauthorization:v1/binaryauthorization.projects.platforms.policies.get/name": name
Expand Down
4 changes: 4 additions & 0 deletions generated/google-apis-binaryauthorization_v1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release history for google-apis-binaryauthorization_v1

### v0.38.0 (2024-06-23)

* Regenerated from discovery document revision 20240614

### v0.37.0 (2024-06-16)

* Regenerated from discovery document revision 20240607
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1152,6 +1152,12 @@ class PlatformPolicy
# @return [String]
attr_accessor :description

# Optional. Used to prevent updating the policy when another request has updated
# it since it was retrieved.
# Corresponds to the JSON property `etag`
# @return [String]
attr_accessor :etag

# A Binary Authorization policy for a GKE cluster. This is one type of policy
# that can occur as a `PlatformPolicy`.
# Corresponds to the JSON property `gkePolicy`
Expand All @@ -1176,6 +1182,7 @@ def initialize(**args)
# Update properties of this object
def update!(**args)
@description = args[:description] if args.key?(:description)
@etag = args[:etag] if args.key?(:etag)
@gke_policy = args[:gke_policy] if args.key?(:gke_policy)
@name = args[:name] if args.key?(:name)
@update_time = args[:update_time] if args.key?(:update_time)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module BinaryauthorizationV1
# Version of the google-apis-binaryauthorization_v1 gem
GEM_VERSION = "0.37.0"
GEM_VERSION = "0.38.0"

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

# Revision of the discovery document this client was generated from
REVISION = "20240607"
REVISION = "20240614"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,7 @@ class PlatformPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :etag, as: 'etag'
property :gke_policy, as: 'gkePolicy', class: Google::Apis::BinaryauthorizationV1::GkePolicy, decorator: Google::Apis::BinaryauthorizationV1::GkePolicy::Representation

property :name, as: 'name'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,9 @@ def create_project_platform_policy(parent, platform_policy_object = nil, policy_
# @param [String] name
# Required. The name of the platform policy to delete, in the format `projects/*/
# platforms/*/policies/*`.
# @param [String] etag
# Optional. Used to prevent deleting the policy when another request has updated
# it since it was retrieved.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
Expand All @@ -553,11 +556,12 @@ def create_project_platform_policy(parent, platform_policy_object = nil, policy_
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_project_platform_policy(name, fields: nil, quota_user: nil, options: nil, &block)
def delete_project_platform_policy(name, etag: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1/{+name}', options)
command.response_representation = Google::Apis::BinaryauthorizationV1::Empty::Representation
command.response_class = Google::Apis::BinaryauthorizationV1::Empty
command.params['name'] = name unless name.nil?
command.query['etag'] = etag unless etag.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
Expand Down
Loading