google-apis-apigee_v1 0.20.0 → 0.21.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f56844044a501d2822d8e91831d9feb4a493b4d9d41b8749208824f9ae3dc507
4
- data.tar.gz: 8ece01675d405177d72ab771406ac8092f1a0798c10ec99c64408c71c2c06504
3
+ metadata.gz: 16099855d58c79d5a33e772d465aa4ad0a493f5c2ebb795e73f9d83617c58473
4
+ data.tar.gz: 1a205660ba2b2c9a0f4436191867b30f6fd11f09540c0c2f85e7323f2f7a2792
5
5
  SHA512:
6
- metadata.gz: 159219767c3d71ff347d108cf6cef310b923ad29357afe5f818077763c27ea8d6afefa0a4bc77e5c464a73b192591d683c7b104eadbedd546492935af5028959
7
- data.tar.gz: 68b6d0ab5b25603bb97a20d8465962982ef1d79ebb48924f903e666f6a1896524d2f4db2149203cd1329120eeb264a974afcc9fe1989d83714aa67b34c8aa7cb
6
+ metadata.gz: d7af536bfac278b6e76b1cebc617e1912c41b2fce0c2dad8c45c0622d222af27ac7b0a1e8bde7dcc92d968e0acfa8ace8523bcf0e5bbd7ae27fd2abf55a97a27
7
+ data.tar.gz: 39184427c4c2194e1997b43bed6b9ea82b191c6fef014149a5b562efc8af28d63ca0878f2d8bb62b4e4f0f7d66738e6580782cb6cdd5ed5b28b5dac5a8836c81
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-apigee_v1
2
2
 
3
+ ### v0.21.0 (2021-09-08)
4
+
5
+ * Regenerated from discovery document revision 20210902
6
+
3
7
  ### v0.20.0 (2021-09-01)
4
8
 
5
9
  * Regenerated from discovery document revision 20210826
@@ -1542,6 +1542,33 @@ module Google
1542
1542
  end
1543
1543
  end
1544
1544
 
1545
+ # Request for CreditDeveloperBalance.
1546
+ class GoogleCloudApigeeV1CreditDeveloperBalanceRequest
1547
+ include Google::Apis::Core::Hashable
1548
+
1549
+ # Represents an amount of money with its currency type.
1550
+ # Corresponds to the JSON property `transactionAmount`
1551
+ # @return [Google::Apis::ApigeeV1::GoogleTypeMoney]
1552
+ attr_accessor :transaction_amount
1553
+
1554
+ # Each transaction_id uniquely identifies a credit balance request. If multiple
1555
+ # requests are received with the same transaction_id, only one of them will be
1556
+ # considered.
1557
+ # Corresponds to the JSON property `transactionId`
1558
+ # @return [String]
1559
+ attr_accessor :transaction_id
1560
+
1561
+ def initialize(**args)
1562
+ update!(**args)
1563
+ end
1564
+
1565
+ # Update properties of this object
1566
+ def update!(**args)
1567
+ @transaction_amount = args[:transaction_amount] if args.key?(:transaction_amount)
1568
+ @transaction_id = args[:transaction_id] if args.key?(:transaction_id)
1569
+ end
1570
+ end
1571
+
1545
1572
  #
1546
1573
  class GoogleCloudApigeeV1CustomReport
1547
1574
  include Google::Apis::Core::Hashable
@@ -2669,6 +2696,71 @@ module Google
2669
2696
  end
2670
2697
  end
2671
2698
 
2699
+ # Account balance for the developer.
2700
+ class GoogleCloudApigeeV1DeveloperBalance
2701
+ include Google::Apis::Core::Hashable
2702
+
2703
+ # Output only. List of all wallets. Each individual wallet stores the account
2704
+ # balance for a particular currency.
2705
+ # Corresponds to the JSON property `wallets`
2706
+ # @return [Array<Google::Apis::ApigeeV1::GoogleCloudApigeeV1DeveloperBalanceWallet>]
2707
+ attr_accessor :wallets
2708
+
2709
+ def initialize(**args)
2710
+ update!(**args)
2711
+ end
2712
+
2713
+ # Update properties of this object
2714
+ def update!(**args)
2715
+ @wallets = args[:wallets] if args.key?(:wallets)
2716
+ end
2717
+ end
2718
+
2719
+ # Wallet used to manage an account balance for a particular currency.
2720
+ class GoogleCloudApigeeV1DeveloperBalanceWallet
2721
+ include Google::Apis::Core::Hashable
2722
+
2723
+ # Represents an amount of money with its currency type.
2724
+ # Corresponds to the JSON property `balance`
2725
+ # @return [Google::Apis::ApigeeV1::GoogleTypeMoney]
2726
+ attr_accessor :balance
2727
+
2728
+ # Output only. Time at which the developer last added credit to the account in
2729
+ # milliseconds since epoch.
2730
+ # Corresponds to the JSON property `lastCreditTime`
2731
+ # @return [Fixnum]
2732
+ attr_accessor :last_credit_time
2733
+
2734
+ def initialize(**args)
2735
+ update!(**args)
2736
+ end
2737
+
2738
+ # Update properties of this object
2739
+ def update!(**args)
2740
+ @balance = args[:balance] if args.key?(:balance)
2741
+ @last_credit_time = args[:last_credit_time] if args.key?(:last_credit_time)
2742
+ end
2743
+ end
2744
+
2745
+ # Monetization configuration for the developer.
2746
+ class GoogleCloudApigeeV1DeveloperMonetizationConfig
2747
+ include Google::Apis::Core::Hashable
2748
+
2749
+ # Billing type.
2750
+ # Corresponds to the JSON property `billingType`
2751
+ # @return [String]
2752
+ attr_accessor :billing_type
2753
+
2754
+ def initialize(**args)
2755
+ update!(**args)
2756
+ end
2757
+
2758
+ # Update properties of this object
2759
+ def update!(**args)
2760
+ @billing_type = args[:billing_type] if args.key?(:billing_type)
2761
+ end
2762
+ end
2763
+
2672
2764
  # Structure of a DeveloperSubscription.
2673
2765
  class GoogleCloudApigeeV1DeveloperSubscription
2674
2766
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ApigeeV1
18
18
  # Version of the google-apis-apigee_v1 gem
19
- GEM_VERSION = "0.20.0"
19
+ GEM_VERSION = "0.21.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210826"
25
+ REVISION = "20210902"
26
26
  end
27
27
  end
28
28
  end
@@ -220,6 +220,12 @@ module Google
220
220
  include Google::Apis::Core::JsonObjectSupport
221
221
  end
222
222
 
223
+ class GoogleCloudApigeeV1CreditDeveloperBalanceRequest
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
223
229
  class GoogleCloudApigeeV1CustomReport
224
230
  class Representation < Google::Apis::Core::JsonRepresentation; end
225
231
 
@@ -340,6 +346,24 @@ module Google
340
346
  include Google::Apis::Core::JsonObjectSupport
341
347
  end
342
348
 
349
+ class GoogleCloudApigeeV1DeveloperBalance
350
+ class Representation < Google::Apis::Core::JsonRepresentation; end
351
+
352
+ include Google::Apis::Core::JsonObjectSupport
353
+ end
354
+
355
+ class GoogleCloudApigeeV1DeveloperBalanceWallet
356
+ class Representation < Google::Apis::Core::JsonRepresentation; end
357
+
358
+ include Google::Apis::Core::JsonObjectSupport
359
+ end
360
+
361
+ class GoogleCloudApigeeV1DeveloperMonetizationConfig
362
+ class Representation < Google::Apis::Core::JsonRepresentation; end
363
+
364
+ include Google::Apis::Core::JsonObjectSupport
365
+ end
366
+
343
367
  class GoogleCloudApigeeV1DeveloperSubscription
344
368
  class Representation < Google::Apis::Core::JsonRepresentation; end
345
369
 
@@ -1546,6 +1570,15 @@ module Google
1546
1570
  end
1547
1571
  end
1548
1572
 
1573
+ class GoogleCloudApigeeV1CreditDeveloperBalanceRequest
1574
+ # @private
1575
+ class Representation < Google::Apis::Core::JsonRepresentation
1576
+ property :transaction_amount, as: 'transactionAmount', class: Google::Apis::ApigeeV1::GoogleTypeMoney, decorator: Google::Apis::ApigeeV1::GoogleTypeMoney::Representation
1577
+
1578
+ property :transaction_id, as: 'transactionId'
1579
+ end
1580
+ end
1581
+
1549
1582
  class GoogleCloudApigeeV1CustomReport
1550
1583
  # @private
1551
1584
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1815,6 +1848,30 @@ module Google
1815
1848
  end
1816
1849
  end
1817
1850
 
1851
+ class GoogleCloudApigeeV1DeveloperBalance
1852
+ # @private
1853
+ class Representation < Google::Apis::Core::JsonRepresentation
1854
+ collection :wallets, as: 'wallets', class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1DeveloperBalanceWallet, decorator: Google::Apis::ApigeeV1::GoogleCloudApigeeV1DeveloperBalanceWallet::Representation
1855
+
1856
+ end
1857
+ end
1858
+
1859
+ class GoogleCloudApigeeV1DeveloperBalanceWallet
1860
+ # @private
1861
+ class Representation < Google::Apis::Core::JsonRepresentation
1862
+ property :balance, as: 'balance', class: Google::Apis::ApigeeV1::GoogleTypeMoney, decorator: Google::Apis::ApigeeV1::GoogleTypeMoney::Representation
1863
+
1864
+ property :last_credit_time, :numeric_string => true, as: 'lastCreditTime'
1865
+ end
1866
+ end
1867
+
1868
+ class GoogleCloudApigeeV1DeveloperMonetizationConfig
1869
+ # @private
1870
+ class Representation < Google::Apis::Core::JsonRepresentation
1871
+ property :billing_type, as: 'billingType'
1872
+ end
1873
+ end
1874
+
1818
1875
  class GoogleCloudApigeeV1DeveloperSubscription
1819
1876
  # @private
1820
1877
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2123,6 +2123,69 @@ module Google
2123
2123
  execute_or_queue_command(command, &block)
2124
2124
  end
2125
2125
 
2126
+ # Gets the account balance for the developer.
2127
+ # @param [String] name
2128
+ # Required. Account balance for the developer. Use the following structure in
2129
+ # your request: `organizations/`org`/developers/`developer`/balance`
2130
+ # @param [String] fields
2131
+ # Selector specifying which fields to include in a partial response.
2132
+ # @param [String] quota_user
2133
+ # Available to use for quota purposes for server-side applications. Can be any
2134
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2135
+ # @param [Google::Apis::RequestOptions] options
2136
+ # Request-specific options
2137
+ #
2138
+ # @yield [result, err] Result & error if block supplied
2139
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1DeveloperBalance] parsed result object
2140
+ # @yieldparam err [StandardError] error object if request failed
2141
+ #
2142
+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1DeveloperBalance]
2143
+ #
2144
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2145
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2146
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2147
+ def get_organization_developer_balance(name, fields: nil, quota_user: nil, options: nil, &block)
2148
+ command = make_simple_command(:get, 'v1/{+name}', options)
2149
+ command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1DeveloperBalance::Representation
2150
+ command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1DeveloperBalance
2151
+ command.params['name'] = name unless name.nil?
2152
+ command.query['fields'] = fields unless fields.nil?
2153
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2154
+ execute_or_queue_command(command, &block)
2155
+ end
2156
+
2157
+ # Gets the monetization configuration for the developer.
2158
+ # @param [String] name
2159
+ # Required. Monetization configuration for the developer. Use the following
2160
+ # structure in your request: `organizations/`org`/developers/`developer`/
2161
+ # monetizationConfig`
2162
+ # @param [String] fields
2163
+ # Selector specifying which fields to include in a partial response.
2164
+ # @param [String] quota_user
2165
+ # Available to use for quota purposes for server-side applications. Can be any
2166
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2167
+ # @param [Google::Apis::RequestOptions] options
2168
+ # Request-specific options
2169
+ #
2170
+ # @yield [result, err] Result & error if block supplied
2171
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1DeveloperMonetizationConfig] parsed result object
2172
+ # @yieldparam err [StandardError] error object if request failed
2173
+ #
2174
+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1DeveloperMonetizationConfig]
2175
+ #
2176
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2177
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2178
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2179
+ def get_organization_developer_monetization_config(name, fields: nil, quota_user: nil, options: nil, &block)
2180
+ command = make_simple_command(:get, 'v1/{+name}', options)
2181
+ command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1DeveloperMonetizationConfig::Representation
2182
+ command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1DeveloperMonetizationConfig
2183
+ command.params['name'] = name unless name.nil?
2184
+ command.query['fields'] = fields unless fields.nil?
2185
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2186
+ execute_or_queue_command(command, &block)
2187
+ end
2188
+
2126
2189
  # Lists all developers in an organization by email address. By default, the
2127
2190
  # response does not include company developers. Set the `includeCompany` query
2128
2191
  # parameter to `true` to include company developers. **Note**: A maximum of 1000
@@ -2269,6 +2332,41 @@ module Google
2269
2332
  execute_or_queue_command(command, &block)
2270
2333
  end
2271
2334
 
2335
+ # Updates the monetization configuration for the developer.
2336
+ # @param [String] name
2337
+ # Required. Monetization configuration for the developer. Use the following
2338
+ # structure in your request: `organizations/`org`/developers/`developer`/
2339
+ # monetizationConfig`
2340
+ # @param [Google::Apis::ApigeeV1::GoogleCloudApigeeV1DeveloperMonetizationConfig] google_cloud_apigee_v1_developer_monetization_config_object
2341
+ # @param [String] fields
2342
+ # Selector specifying which fields to include in a partial response.
2343
+ # @param [String] quota_user
2344
+ # Available to use for quota purposes for server-side applications. Can be any
2345
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2346
+ # @param [Google::Apis::RequestOptions] options
2347
+ # Request-specific options
2348
+ #
2349
+ # @yield [result, err] Result & error if block supplied
2350
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1DeveloperMonetizationConfig] parsed result object
2351
+ # @yieldparam err [StandardError] error object if request failed
2352
+ #
2353
+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1DeveloperMonetizationConfig]
2354
+ #
2355
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2356
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2357
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2358
+ def update_organization_developer_monetization_config(name, google_cloud_apigee_v1_developer_monetization_config_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2359
+ command = make_simple_command(:put, 'v1/{+name}', options)
2360
+ command.request_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1DeveloperMonetizationConfig::Representation
2361
+ command.request_object = google_cloud_apigee_v1_developer_monetization_config_object
2362
+ command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1DeveloperMonetizationConfig::Representation
2363
+ command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1DeveloperMonetizationConfig
2364
+ command.params['name'] = name unless name.nil?
2365
+ command.query['fields'] = fields unless fields.nil?
2366
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2367
+ execute_or_queue_command(command, &block)
2368
+ end
2369
+
2272
2370
  # Updates attributes for a developer app. This API replaces the current
2273
2371
  # attributes with those specified in the request.
2274
2372
  # @param [String] name
@@ -3158,6 +3256,40 @@ module Google
3158
3256
  execute_or_queue_command(command, &block)
3159
3257
  end
3160
3258
 
3259
+ # Credits the account balance for the developer.
3260
+ # @param [String] name
3261
+ # Required. Account balance for the developer. Use the following structure in
3262
+ # your request: `organizations/`org`/developers/`developer`/balance`
3263
+ # @param [Google::Apis::ApigeeV1::GoogleCloudApigeeV1CreditDeveloperBalanceRequest] google_cloud_apigee_v1_credit_developer_balance_request_object
3264
+ # @param [String] fields
3265
+ # Selector specifying which fields to include in a partial response.
3266
+ # @param [String] quota_user
3267
+ # Available to use for quota purposes for server-side applications. Can be any
3268
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3269
+ # @param [Google::Apis::RequestOptions] options
3270
+ # Request-specific options
3271
+ #
3272
+ # @yield [result, err] Result & error if block supplied
3273
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1DeveloperBalance] parsed result object
3274
+ # @yieldparam err [StandardError] error object if request failed
3275
+ #
3276
+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1DeveloperBalance]
3277
+ #
3278
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3279
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3280
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3281
+ def credit_organization_developer_balance(name, google_cloud_apigee_v1_credit_developer_balance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3282
+ command = make_simple_command(:post, 'v1/{+name}:credit', options)
3283
+ command.request_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1CreditDeveloperBalanceRequest::Representation
3284
+ command.request_object = google_cloud_apigee_v1_credit_developer_balance_request_object
3285
+ command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1DeveloperBalance::Representation
3286
+ command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1DeveloperBalance
3287
+ command.params['name'] = name unless name.nil?
3288
+ command.query['fields'] = fields unless fields.nil?
3289
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3290
+ execute_or_queue_command(command, &block)
3291
+ end
3292
+
3161
3293
  # Creates a subscription to an API product.
3162
3294
  # @param [String] parent
3163
3295
  # Required. Email address of the developer that is purchasing a subscription to
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-apigee_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.0
4
+ version: 0.21.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-06 00:00:00.000000000 Z
11
+ date: 2021-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-apigee_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-apigee_v1/v0.20.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-apigee_v1/v0.21.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-apigee_v1
63
63
  post_install_message:
64
64
  rdoc_options: []