google-apis-apim_v1alpha 0.3.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d5397e03980ec5d6d31fcd06ec4a12f6de93dd03b594fe2c38f2399191098496
4
- data.tar.gz: 5c96b06fa571fc786d56d156eb12556e82fd8536f3be597efc2130de8a9fe907
3
+ metadata.gz: 69d91bdb161d22c8294edd0543a4021be145aa4f9c546868c369142f01aee83c
4
+ data.tar.gz: 138ef84bf5b1faddc7845d996f32a78a311048dd910aceb8ed28480a66f13d8c
5
5
  SHA512:
6
- metadata.gz: 2b53e82663d79999489693e10d29de41c6f62fd8ad8b1bdaf796232b91654155e38fe3d3d12e3ab864f2697bedcf27508ac89b948fc63de0516701e0f5d52bca
7
- data.tar.gz: f77d86ac8b2b4af02ffbbb4dadfad84867f07cf7b100d233fa88044d78c9f9aa364574fe7a71f58eb6c3423a976051fb2af0666e62bb17a521d701a864d273de
6
+ metadata.gz: 43eeac5a0e0890c36e4902e380bc8cb8ffdb9e3ee0136891e2f00e1003225aa43cad256829c3913550a815c3e4fe58f66ae59cf5fa22722e0528baf160909ac2
7
+ data.tar.gz: 8fcc9b720afcd7d3c95b5aba817c4216185b085a801cd2f90111291d6925076df67915aad9b0c34f1e7ab0906e35e96c88e9836a47d78a6a6bf457d74b7e9908
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-apim_v1alpha
2
2
 
3
+ ### v0.5.0 (2025-08-10)
4
+
5
+ * Regenerated from discovery document revision 20250730
6
+
7
+ ### v0.4.0 (2025-05-25)
8
+
9
+ * Regenerated from discovery document revision 20250521
10
+ * Regenerated using generator version 0.18.0
11
+
3
12
  ### v0.3.0 (2025-05-04)
4
13
 
5
14
  * Regenerated using generator version 0.17.0
@@ -261,6 +261,53 @@ module Google
261
261
  end
262
262
  end
263
263
 
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
+
264
311
  # The GCLB observation source.
265
312
  class GclbObservationSource
266
313
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ApimV1alpha
18
18
  # Version of the google-apis-apim_v1alpha gem
19
- GEM_VERSION = "0.3.0"
19
+ GEM_VERSION = "0.5.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.17.0"
22
+ GENERATOR_VERSION = "0.18.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240717"
25
+ REVISION = "20250730"
26
26
  end
27
27
  end
28
28
  end
@@ -76,6 +76,12 @@ module Google
76
76
  include Google::Apis::Core::JsonObjectSupport
77
77
  end
78
78
 
79
+ class Entitlement
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
79
85
  class GclbObservationSource
80
86
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
87
 
@@ -285,6 +291,17 @@ module Google
285
291
  end
286
292
  end
287
293
 
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
+
288
305
  class GclbObservationSource
289
306
  # @private
290
307
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -81,9 +81,43 @@ module Google
81
81
  execute_or_queue_command(command, &block)
82
82
  end
83
83
 
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
+
84
115
  # Lists information about the supported locations for this service.
85
116
  # @param [String] name
86
117
  # The resource that owns the locations collection, if applicable.
118
+ # @param [Array<String>, String] extra_location_types
119
+ # Optional. A list of extra location types that should be used as conditions for
120
+ # controlling the visibility of the locations.
87
121
  # @param [String] filter
88
122
  # A filter to narrow down results to a preferred subset. The filtering language
89
123
  # accepts strings like `"displayName=tokyo"`, and is documented in more detail
@@ -111,11 +145,12 @@ module Google
111
145
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
112
146
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
113
147
  # @raise [Google::Apis::AuthorizationError] Authorization is required
114
- def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
148
+ def list_project_locations(name, extra_location_types: nil, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
115
149
  command = make_simple_command(:get, 'v1alpha/{+name}/locations', options)
116
150
  command.response_representation = Google::Apis::ApimV1alpha::ListLocationsResponse::Representation
117
151
  command.response_class = Google::Apis::ApimV1alpha::ListLocationsResponse
118
152
  command.params['name'] = name unless name.nil?
153
+ command.query['extraLocationTypes'] = extra_location_types unless extra_location_types.nil?
119
154
  command.query['filter'] = filter unless filter.nil?
120
155
  command.query['pageSize'] = page_size unless page_size.nil?
121
156
  command.query['pageToken'] = page_token unless page_token.nil?
@@ -746,8 +781,8 @@ module Google
746
781
  # Clients can use Operations.GetOperation or other methods to check whether the
747
782
  # cancellation succeeded or whether the operation completed despite cancellation.
748
783
  # On successful cancellation, the operation is not deleted; instead, it becomes
749
- # an operation with an Operation.error value with a google.rpc.Status.code of 1,
750
- # corresponding to `Code.CANCELLED`.
784
+ # an operation with an Operation.error value with a google.rpc.Status.code of `1`
785
+ # , corresponding to `Code.CANCELLED`.
751
786
  # @param [String] name
752
787
  # The name of the operation resource to be cancelled.
753
788
  # @param [Google::Apis::ApimV1alpha::CancelOperationRequest] cancel_operation_request_object
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-apim_v1alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-apim_v1alpha/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-apim_v1alpha/v0.3.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-apim_v1alpha/v0.5.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-apim_v1alpha
62
62
  rdoc_options: []
63
63
  require_paths:
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
75
  requirements: []
76
- rubygems_version: 3.6.8
76
+ rubygems_version: 3.6.9
77
77
  specification_version: 4
78
78
  summary: Simple REST client for API Management API V1alpha
79
79
  test_files: []