Skip to content

Commit

Permalink
feat: Automated regeneration of accesscontextmanager v1 client (#18953)
Browse files Browse the repository at this point in the history
Auto-created at 2024-05-05 10:16:23 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot committed May 5, 2024
1 parent 20e2a3d commit 6d377f4
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 2 deletions.
5 changes: 5 additions & 0 deletions api_names_out.yaml
Expand Up @@ -289,6 +289,9 @@
"/accesscontextmanager:v1/ApiOperation/methodSelectors": method_selectors
"/accesscontextmanager:v1/ApiOperation/methodSelectors/method_selector": method_selector
"/accesscontextmanager:v1/ApiOperation/serviceName": service_name
"/accesscontextmanager:v1/Application": application
"/accesscontextmanager:v1/Application/clientId": client_id
"/accesscontextmanager:v1/Application/name": name
"/accesscontextmanager:v1/AuditConfig": audit_config
"/accesscontextmanager:v1/AuditConfig/auditLogConfigs": audit_log_configs
"/accesscontextmanager:v1/AuditConfig/auditLogConfigs/audit_log_config": audit_log_config
Expand Down Expand Up @@ -376,6 +379,8 @@
"/accesscontextmanager:v1/GcpUserAccessBinding/dryRunAccessLevels/dry_run_access_level": dry_run_access_level
"/accesscontextmanager:v1/GcpUserAccessBinding/groupKey": group_key
"/accesscontextmanager:v1/GcpUserAccessBinding/name": name
"/accesscontextmanager:v1/GcpUserAccessBinding/restrictedClientApplications": restricted_client_applications
"/accesscontextmanager:v1/GcpUserAccessBinding/restrictedClientApplications/restricted_client_application": restricted_client_application
"/accesscontextmanager:v1/GcpUserAccessBindingOperationMetadata": gcp_user_access_binding_operation_metadata
"/accesscontextmanager:v1/GetIamPolicyRequest": get_iam_policy_request
"/accesscontextmanager:v1/GetIamPolicyRequest/options": options
Expand Down
4 changes: 4 additions & 0 deletions generated/google-apis-accesscontextmanager_v1/CHANGELOG.md
@@ -1,5 +1,9 @@
# Release history for google-apis-accesscontextmanager_v1

### v0.43.0 (2024-05-05)

* Regenerated from discovery document revision 20240429

### v0.42.0 (2024-04-21)

* Regenerated from discovery document revision 20240417
Expand Down
Expand Up @@ -176,6 +176,31 @@ def update!(**args)
end
end

# An application that accesses Google Cloud APIs.
class Application
include Google::Apis::Core::Hashable

# The OAuth client ID of the application.
# Corresponds to the JSON property `clientId`
# @return [String]
attr_accessor :client_id

# The name of the application. Example: "Cloud Console"
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name

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

# Update properties of this object
def update!(**args)
@client_id = args[:client_id] if args.key?(:client_id)
@name = args[:name] if args.key?(:name)
end
end

# Specifies the audit configuration for a service. The configuration determines
# which permission types are logged, and what identities, if any, are exempted
# from logging. An AuditConfig must have one or more AuditLogConfigs. If there
Expand Down Expand Up @@ -953,6 +978,13 @@ class GcpUserAccessBinding
# @return [String]
attr_accessor :name

# Optional. A list of applications that are subject to this binding's
# restrictions. If the list is empty, the binding restrictions will universally
# apply to all applications.
# Corresponds to the JSON property `restrictedClientApplications`
# @return [Array<Google::Apis::AccesscontextmanagerV1::Application>]
attr_accessor :restricted_client_applications

def initialize(**args)
update!(**args)
end
Expand All @@ -963,6 +995,7 @@ def update!(**args)
@dry_run_access_levels = args[:dry_run_access_levels] if args.key?(:dry_run_access_levels)
@group_key = args[:group_key] if args.key?(:group_key)
@name = args[:name] if args.key?(:name)
@restricted_client_applications = args[:restricted_client_applications] if args.key?(:restricted_client_applications)
end
end

Expand Down
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module AccesscontextmanagerV1
# Version of the google-apis-accesscontextmanager_v1 gem
GEM_VERSION = "0.42.0"
GEM_VERSION = "0.43.0"

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

# Revision of the discovery document this client was generated from
REVISION = "20240417"
REVISION = "20240429"
end
end
end
Expand Up @@ -46,6 +46,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

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

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

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

Expand Down Expand Up @@ -385,6 +391,14 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class Application
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :client_id, as: 'clientId'
property :name, as: 'name'
end
end

class AuditConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down Expand Up @@ -550,6 +564,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
collection :dry_run_access_levels, as: 'dryRunAccessLevels'
property :group_key, as: 'groupKey'
property :name, as: 'name'
collection :restricted_client_applications, as: 'restrictedClientApplications', class: Google::Apis::AccesscontextmanagerV1::Application, decorator: Google::Apis::AccesscontextmanagerV1::Application::Representation

end
end

Expand Down

0 comments on commit 6d377f4

Please sign in to comment.