Skip to content

Commit 0139993

Browse files
feat: Automated regeneration of apim v1alpha client (googleapis#23881)
Auto-created at 2025-08-10 09:38:38 +0000 using the toys pull request generator.
1 parent cbe1bb4 commit 0139993

File tree

6 files changed

+109
-2
lines changed

6 files changed

+109
-2
lines changed

api_names_out.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40379,6 +40379,12 @@
4037940379
"/apim:v1alpha/EditTagsApiObservationsRequest/tagActions/tag_action": tag_action
4038040380
"/apim:v1alpha/Empty": empty
4038140381
"/apim:v1alpha/EnableObservationJobRequest": enable_observation_job_request
40382+
"/apim:v1alpha/Entitlement": entitlement
40383+
"/apim:v1alpha/Entitlement/apiObservationEntitled": api_observation_entitled
40384+
"/apim:v1alpha/Entitlement/billingProjectNumber": billing_project_number
40385+
"/apim:v1alpha/Entitlement/createTime": create_time
40386+
"/apim:v1alpha/Entitlement/name": name
40387+
"/apim:v1alpha/Entitlement/updateTime": update_time
4038240388
"/apim:v1alpha/GclbObservationSource": gclb_observation_source
4038340389
"/apim:v1alpha/GclbObservationSource/pscNetworkConfigs": psc_network_configs
4038440390
"/apim:v1alpha/GclbObservationSource/pscNetworkConfigs/psc_network_config": psc_network_config
@@ -40493,6 +40499,8 @@
4049340499
"/apim:v1alpha/TagAction/tag": tag
4049440500
"/apim:v1alpha/apim.projects.locations.get": get_project_location
4049540501
"/apim:v1alpha/apim.projects.locations.get/name": name
40502+
"/apim:v1alpha/apim.projects.locations.getEntitlement": get_project_location_entitlement
40503+
"/apim:v1alpha/apim.projects.locations.getEntitlement/name": name
4049640504
"/apim:v1alpha/apim.projects.locations.list": list_project_locations
4049740505
"/apim:v1alpha/apim.projects.locations.list/extraLocationTypes": extra_location_types
4049840506
"/apim:v1alpha/apim.projects.locations.list/filter": filter

generated/google-apis-apim_v1alpha/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-apim_v1alpha
22

3+
### v0.5.0 (2025-08-10)
4+
5+
* Regenerated from discovery document revision 20250730
6+
37
### v0.4.0 (2025-05-25)
48

59
* Regenerated from discovery document revision 20250521

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

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,53 @@ def update!(**args)
261261
end
262262
end
263263

264+
# Entitlement stores data related to API Observation entitlement for a given
265+
# project
266+
class Entitlement
267+
include Google::Apis::Core::Hashable
268+
269+
# Whether API Observation is entitled.
270+
# Corresponds to the JSON property `apiObservationEntitled`
271+
# @return [Boolean]
272+
attr_accessor :api_observation_entitled
273+
alias_method :api_observation_entitled?, :api_observation_entitled
274+
275+
# Project number of associated billing project that has Apigee and Advanced API
276+
# Security entitled.
277+
# Corresponds to the JSON property `billingProjectNumber`
278+
# @return [Fixnum]
279+
attr_accessor :billing_project_number
280+
281+
# Output only. The time of the entitlement creation.
282+
# Corresponds to the JSON property `createTime`
283+
# @return [String]
284+
attr_accessor :create_time
285+
286+
# Identifier. The entitlement resource name `projects/`project`/locations/`
287+
# location`/entitlement`
288+
# Corresponds to the JSON property `name`
289+
# @return [String]
290+
attr_accessor :name
291+
292+
# Output only. The time of the entitlement update.
293+
# Corresponds to the JSON property `updateTime`
294+
# @return [String]
295+
attr_accessor :update_time
296+
297+
def initialize(**args)
298+
update!(**args)
299+
end
300+
301+
# Update properties of this object
302+
def update!(**args)
303+
@api_observation_entitled = args[:api_observation_entitled] if args.key?(:api_observation_entitled)
304+
@billing_project_number = args[:billing_project_number] if args.key?(:billing_project_number)
305+
@create_time = args[:create_time] if args.key?(:create_time)
306+
@name = args[:name] if args.key?(:name)
307+
@update_time = args[:update_time] if args.key?(:update_time)
308+
end
309+
end
310+
264311
# The GCLB observation source.
265312
class GclbObservationSource
266313
include Google::Apis::Core::Hashable

generated/google-apis-apim_v1alpha/lib/google/apis/apim_v1alpha/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 ApimV1alpha
1818
# Version of the google-apis-apim_v1alpha gem
19-
GEM_VERSION = "0.4.0"
19+
GEM_VERSION = "0.5.0"
2020

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

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

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
7676
include Google::Apis::Core::JsonObjectSupport
7777
end
7878

79+
class Entitlement
80+
class Representation < Google::Apis::Core::JsonRepresentation; end
81+
82+
include Google::Apis::Core::JsonObjectSupport
83+
end
84+
7985
class GclbObservationSource
8086
class Representation < Google::Apis::Core::JsonRepresentation; end
8187

@@ -285,6 +291,17 @@ class Representation < Google::Apis::Core::JsonRepresentation
285291
end
286292
end
287293

294+
class Entitlement
295+
# @private
296+
class Representation < Google::Apis::Core::JsonRepresentation
297+
property :api_observation_entitled, as: 'apiObservationEntitled'
298+
property :billing_project_number, :numeric_string => true, as: 'billingProjectNumber'
299+
property :create_time, as: 'createTime'
300+
property :name, as: 'name'
301+
property :update_time, as: 'updateTime'
302+
end
303+
end
304+
288305
class GclbObservationSource
289306
# @private
290307
class Representation < Google::Apis::Core::JsonRepresentation

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

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,37 @@ def get_project_location(name, fields: nil, quota_user: nil, options: nil, &bloc
8181
execute_or_queue_command(command, &block)
8282
end
8383

84+
# GetEntitlement returns the entitlement for the provided project.
85+
# @param [String] name
86+
# Required. The entitlement resource name Format: projects/`project`/locations/`
87+
# location`/entitlement
88+
# @param [String] fields
89+
# Selector specifying which fields to include in a partial response.
90+
# @param [String] quota_user
91+
# Available to use for quota purposes for server-side applications. Can be any
92+
# arbitrary string assigned to a user, but should not exceed 40 characters.
93+
# @param [Google::Apis::RequestOptions] options
94+
# Request-specific options
95+
#
96+
# @yield [result, err] Result & error if block supplied
97+
# @yieldparam result [Google::Apis::ApimV1alpha::Entitlement] parsed result object
98+
# @yieldparam err [StandardError] error object if request failed
99+
#
100+
# @return [Google::Apis::ApimV1alpha::Entitlement]
101+
#
102+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
103+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
104+
# @raise [Google::Apis::AuthorizationError] Authorization is required
105+
def get_project_location_entitlement(name, fields: nil, quota_user: nil, options: nil, &block)
106+
command = make_simple_command(:get, 'v1alpha/{+name}', options)
107+
command.response_representation = Google::Apis::ApimV1alpha::Entitlement::Representation
108+
command.response_class = Google::Apis::ApimV1alpha::Entitlement
109+
command.params['name'] = name unless name.nil?
110+
command.query['fields'] = fields unless fields.nil?
111+
command.query['quotaUser'] = quota_user unless quota_user.nil?
112+
execute_or_queue_command(command, &block)
113+
end
114+
84115
# Lists information about the supported locations for this service.
85116
# @param [String] name
86117
# The resource that owns the locations collection, if applicable.

0 commit comments

Comments
 (0)