google-apis-apigee_v1 0.9.0 → 0.10.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: 14ecce82b59ffe0376840145333607d23dfc26c8883e3a48027d5d99d16f014a
4
- data.tar.gz: e31ff2c11817e19d34fffc2012c7568495ae4ba81944065666c08a08efcaebe0
3
+ metadata.gz: 87f6c45e154415cbd3f6dd2d3879b6393548f0521df013d7be9106779a4e4be0
4
+ data.tar.gz: 75083f7b2bd2c9c85d4d3df98bd68cf8e04e3cc28170c17f9e1c5c49a04b2b4d
5
5
  SHA512:
6
- metadata.gz: 928c9ab6695d40fe5300d6624f9d694d724c309ab269fbd7da7defdbb526d10ffc11ede42d71c44e31ac7f5d6d2e1317847533a487b28d92184034dd192fb6bd
7
- data.tar.gz: cbacfa87ba293c7cced387c25f6a814c23223dad23438c5ca8b3281fa1a0e1e7a18a136fd811f20d7bbb9b15c13dd5bfdd8e3a7b26a68b6827ff3064af3f703f
6
+ metadata.gz: 8081815bcb7e1c773a57fcbf7c1f043081b59a35c2b79b5b8b3377462c8dbaa6b59c2eff3208a4f26fb331b9639456d4183b719edea0122af3141a78968f6682
7
+ data.tar.gz: 23c683e45fd3d3f6ef54332838a602bf98f2daca40b2c76f452edb9a7decf3d7c87d54b73d3193dfa3ab8f8040d15ca8055dd5e721b15910ea19935411f90171
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-apigee_v1
2
2
 
3
+ ### v0.10.0 (2021-05-12)
4
+
5
+ * Regenerated from discovery document revision 20210510
6
+
3
7
  ### v0.9.0 (2021-04-01)
4
8
 
5
9
  * Regenerated from discovery document revision 20210326
@@ -2550,6 +2550,57 @@ module Google
2550
2550
  end
2551
2551
  end
2552
2552
 
2553
+ # Structure of a DeveloperSubscription.
2554
+ class GoogleCloudApigeeV1DeveloperSubscription
2555
+ include Google::Apis::Core::Hashable
2556
+
2557
+ # Name of the API product for which the developer is purchasing a subscription.
2558
+ # Corresponds to the JSON property `apiproduct`
2559
+ # @return [String]
2560
+ attr_accessor :apiproduct
2561
+
2562
+ # Output only. Time when the API product subscription was created in
2563
+ # milliseconds since epoch.
2564
+ # Corresponds to the JSON property `createdAt`
2565
+ # @return [Fixnum]
2566
+ attr_accessor :created_at
2567
+
2568
+ # Time when the API product subscription ends in milliseconds since epoch.
2569
+ # Corresponds to the JSON property `endTime`
2570
+ # @return [Fixnum]
2571
+ attr_accessor :end_time
2572
+
2573
+ # Output only. Time when the API product subscription was last modified in
2574
+ # milliseconds since epoch.
2575
+ # Corresponds to the JSON property `lastModifiedAt`
2576
+ # @return [Fixnum]
2577
+ attr_accessor :last_modified_at
2578
+
2579
+ # Output only. Name of the API product subscription.
2580
+ # Corresponds to the JSON property `name`
2581
+ # @return [String]
2582
+ attr_accessor :name
2583
+
2584
+ # Time when the API product subscription starts in milliseconds since epoch.
2585
+ # Corresponds to the JSON property `startTime`
2586
+ # @return [Fixnum]
2587
+ attr_accessor :start_time
2588
+
2589
+ def initialize(**args)
2590
+ update!(**args)
2591
+ end
2592
+
2593
+ # Update properties of this object
2594
+ def update!(**args)
2595
+ @apiproduct = args[:apiproduct] if args.key?(:apiproduct)
2596
+ @created_at = args[:created_at] if args.key?(:created_at)
2597
+ @end_time = args[:end_time] if args.key?(:end_time)
2598
+ @last_modified_at = args[:last_modified_at] if args.key?(:last_modified_at)
2599
+ @name = args[:name] if args.key?(:name)
2600
+ @start_time = args[:start_time] if args.key?(:start_time)
2601
+ end
2602
+ end
2603
+
2553
2604
  # This message type encapsulates a metric grouped by dimension.
2554
2605
  class GoogleCloudApigeeV1DimensionMetric
2555
2606
  include Google::Apis::Core::Hashable
@@ -2915,6 +2966,19 @@ module Google
2915
2966
  end
2916
2967
  end
2917
2968
 
2969
+ # Request for ExpireDeveloperSubscription.
2970
+ class GoogleCloudApigeeV1ExpireDeveloperSubscriptionRequest
2971
+ include Google::Apis::Core::Hashable
2972
+
2973
+ def initialize(**args)
2974
+ update!(**args)
2975
+ end
2976
+
2977
+ # Update properties of this object
2978
+ def update!(**args)
2979
+ end
2980
+ end
2981
+
2918
2982
  # Details of an export job.
2919
2983
  class GoogleCloudApigeeV1Export
2920
2984
  include Google::Apis::Core::Hashable
@@ -3870,6 +3934,32 @@ module Google
3870
3934
  end
3871
3935
  end
3872
3936
 
3937
+ # Response for ListDeveloperSubscriptions.
3938
+ class GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse
3939
+ include Google::Apis::Core::Hashable
3940
+
3941
+ # List of all subscriptions.
3942
+ # Corresponds to the JSON property `developerSubscriptions`
3943
+ # @return [Array<Google::Apis::ApigeeV1::GoogleCloudApigeeV1DeveloperSubscription>]
3944
+ attr_accessor :developer_subscriptions
3945
+
3946
+ # Value that can be sent as `startKey` to retrieve the next page of content. If
3947
+ # this field is omitted, there are no subsequent pages.
3948
+ # Corresponds to the JSON property `nextStartKey`
3949
+ # @return [String]
3950
+ attr_accessor :next_start_key
3951
+
3952
+ def initialize(**args)
3953
+ update!(**args)
3954
+ end
3955
+
3956
+ # Update properties of this object
3957
+ def update!(**args)
3958
+ @developer_subscriptions = args[:developer_subscriptions] if args.key?(:developer_subscriptions)
3959
+ @next_start_key = args[:next_start_key] if args.key?(:next_start_key)
3960
+ end
3961
+ end
3962
+
3873
3963
  # Response for ListEnvironmentGroupAttachments.
3874
3964
  class GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse
3875
3965
  include Google::Apis::Core::Hashable
@@ -4095,6 +4185,32 @@ module Google
4095
4185
  end
4096
4186
  end
4097
4187
 
4188
+ # Response for ListRatePlans.
4189
+ class GoogleCloudApigeeV1ListRatePlansResponse
4190
+ include Google::Apis::Core::Hashable
4191
+
4192
+ # Value that can be sent as `startKey` to retrieve the next page of content. If
4193
+ # this field is omitted, there are no subsequent pages.
4194
+ # Corresponds to the JSON property `nextStartKey`
4195
+ # @return [String]
4196
+ attr_accessor :next_start_key
4197
+
4198
+ # List of rate plans in an organization.
4199
+ # Corresponds to the JSON property `ratePlans`
4200
+ # @return [Array<Google::Apis::ApigeeV1::GoogleCloudApigeeV1RatePlan>]
4201
+ attr_accessor :rate_plans
4202
+
4203
+ def initialize(**args)
4204
+ update!(**args)
4205
+ end
4206
+
4207
+ # Update properties of this object
4208
+ def update!(**args)
4209
+ @next_start_key = args[:next_start_key] if args.key?(:next_start_key)
4210
+ @rate_plans = args[:rate_plans] if args.key?(:rate_plans)
4211
+ end
4212
+ end
4213
+
4098
4214
  #
4099
4215
  class GoogleCloudApigeeV1ListSharedFlowsResponse
4100
4216
  include Google::Apis::Core::Hashable
@@ -4362,6 +4478,11 @@ module Google
4362
4478
  # @return [String]
4363
4479
  attr_accessor :operation_type
4364
4480
 
4481
+ # Information about operation progress.
4482
+ # Corresponds to the JSON property `progress`
4483
+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1OperationMetadataProgress]
4484
+ attr_accessor :progress
4485
+
4365
4486
  #
4366
4487
  # Corresponds to the JSON property `state`
4367
4488
  # @return [String]
@@ -4379,11 +4500,49 @@ module Google
4379
4500
  # Update properties of this object
4380
4501
  def update!(**args)
4381
4502
  @operation_type = args[:operation_type] if args.key?(:operation_type)
4503
+ @progress = args[:progress] if args.key?(:progress)
4382
4504
  @state = args[:state] if args.key?(:state)
4383
4505
  @target_resource_name = args[:target_resource_name] if args.key?(:target_resource_name)
4384
4506
  end
4385
4507
  end
4386
4508
 
4509
+ # Information about operation progress.
4510
+ class GoogleCloudApigeeV1OperationMetadataProgress
4511
+ include Google::Apis::Core::Hashable
4512
+
4513
+ # Description of the operation's progress.
4514
+ # Corresponds to the JSON property `description`
4515
+ # @return [String]
4516
+ attr_accessor :description
4517
+
4518
+ # The additional details of the progress.
4519
+ # Corresponds to the JSON property `details`
4520
+ # @return [Hash<String,Object>]
4521
+ attr_accessor :details
4522
+
4523
+ # The percentage of the operation progress.
4524
+ # Corresponds to the JSON property `percentDone`
4525
+ # @return [Fixnum]
4526
+ attr_accessor :percent_done
4527
+
4528
+ # State of the operation.
4529
+ # Corresponds to the JSON property `state`
4530
+ # @return [String]
4531
+ attr_accessor :state
4532
+
4533
+ def initialize(**args)
4534
+ update!(**args)
4535
+ end
4536
+
4537
+ # Update properties of this object
4538
+ def update!(**args)
4539
+ @description = args[:description] if args.key?(:description)
4540
+ @details = args[:details] if args.key?(:details)
4541
+ @percent_done = args[:percent_done] if args.key?(:percent_done)
4542
+ @state = args[:state] if args.key?(:state)
4543
+ end
4544
+ end
4545
+
4387
4546
  #
4388
4547
  class GoogleCloudApigeeV1OptimizedStats
4389
4548
  include Google::Apis::Core::Hashable
@@ -4832,7 +4991,9 @@ module Google
4832
4991
  # @return [String]
4833
4992
  attr_accessor :authorized_network
4834
4993
 
4835
- # Cloud Platform location for the runtime instance. Defaults to `us-west1-a`.
4994
+ # Cloud Platform location for the runtime instance. Defaults to zone `us-west1-a`
4995
+ # . If a region is provided, `EVAL` organizations will use the region for
4996
+ # automatically selecting a zone for the runtime instance.
4836
4997
  # Corresponds to the JSON property `runtimeLocation`
4837
4998
  # @return [String]
4838
4999
  attr_accessor :runtime_location
@@ -5082,6 +5243,175 @@ module Google
5082
5243
  end
5083
5244
  end
5084
5245
 
5246
+ # Rate plan details.
5247
+ class GoogleCloudApigeeV1RatePlan
5248
+ include Google::Apis::Core::Hashable
5249
+
5250
+ # Name of the API product that the rate plan is associated with.
5251
+ # Corresponds to the JSON property `apiproduct`
5252
+ # @return [String]
5253
+ attr_accessor :apiproduct
5254
+
5255
+ # Frequency at which the customer will be billed.
5256
+ # Corresponds to the JSON property `billingPeriod`
5257
+ # @return [String]
5258
+ attr_accessor :billing_period
5259
+
5260
+ # API call volume ranges and the fees charged when the total number of API calls
5261
+ # is within a given range. The method used to calculate the final fee depends on
5262
+ # the selected pricing model. For example, if the pricing model is `STAIRSTEP`
5263
+ # and the ranges are defined as follows: ``` ` "start": 1, "end": 100, "fee": 75
5264
+ # `, ` "start": 101, "end": 200, "fee": 100 `, ` ``` Then the following fees
5265
+ # would be charged based on the total number of API calls (assuming the currency
5266
+ # selected is `USD`): * 1 call costs $75 * 50 calls cost $75 * 150 calls cost $
5267
+ # 100 The number of API calls cannot exceed 200.
5268
+ # Corresponds to the JSON property `consumptionPricingRates`
5269
+ # @return [Array<Google::Apis::ApigeeV1::GoogleCloudApigeeV1RateRange>]
5270
+ attr_accessor :consumption_pricing_rates
5271
+
5272
+ # Pricing model used for consumption-based charges.
5273
+ # Corresponds to the JSON property `consumptionPricingType`
5274
+ # @return [String]
5275
+ attr_accessor :consumption_pricing_type
5276
+
5277
+ # Output only. Time that the rate plan was created in milliseconds since epoch.
5278
+ # Corresponds to the JSON property `createdAt`
5279
+ # @return [Fixnum]
5280
+ attr_accessor :created_at
5281
+
5282
+ # Currency to be used for billing. Consists of a three-letter code as defined by
5283
+ # the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) standard.
5284
+ # Corresponds to the JSON property `currencyCode`
5285
+ # @return [String]
5286
+ attr_accessor :currency_code
5287
+
5288
+ # Description of the rate plan.
5289
+ # Corresponds to the JSON property `description`
5290
+ # @return [String]
5291
+ attr_accessor :description
5292
+
5293
+ # Display name of the rate plan.
5294
+ # Corresponds to the JSON property `displayName`
5295
+ # @return [String]
5296
+ attr_accessor :display_name
5297
+
5298
+ # Time when the rate plan will expire in milliseconds since epoch. Set to 0 or `
5299
+ # null` to indicate that the rate plan should never expire.
5300
+ # Corresponds to the JSON property `endTime`
5301
+ # @return [Fixnum]
5302
+ attr_accessor :end_time
5303
+
5304
+ # Frequency at which the fixed fee is charged.
5305
+ # Corresponds to the JSON property `fixedFeeFrequency`
5306
+ # @return [Fixnum]
5307
+ attr_accessor :fixed_fee_frequency
5308
+
5309
+ # Represents an amount of money with its currency type.
5310
+ # Corresponds to the JSON property `fixedRecurringFee`
5311
+ # @return [Google::Apis::ApigeeV1::GoogleTypeMoney]
5312
+ attr_accessor :fixed_recurring_fee
5313
+
5314
+ # Output only. Time the rate plan was last modified in milliseconds since epoch.
5315
+ # Corresponds to the JSON property `lastModifiedAt`
5316
+ # @return [Fixnum]
5317
+ attr_accessor :last_modified_at
5318
+
5319
+ # Output only. Name of the rate plan.
5320
+ # Corresponds to the JSON property `name`
5321
+ # @return [String]
5322
+ attr_accessor :name
5323
+
5324
+ # Flag that specifies the billing account type, prepaid or postpaid.
5325
+ # Corresponds to the JSON property `paymentFundingModel`
5326
+ # @return [String]
5327
+ attr_accessor :payment_funding_model
5328
+
5329
+ # Details of the revenue sharing model.
5330
+ # Corresponds to the JSON property `revenueShareRates`
5331
+ # @return [Array<Google::Apis::ApigeeV1::GoogleCloudApigeeV1RevenueShareRange>]
5332
+ attr_accessor :revenue_share_rates
5333
+
5334
+ # Method used to calculate the revenue that is shared with developers.
5335
+ # Corresponds to the JSON property `revenueShareType`
5336
+ # @return [String]
5337
+ attr_accessor :revenue_share_type
5338
+
5339
+ # Represents an amount of money with its currency type.
5340
+ # Corresponds to the JSON property `setupFee`
5341
+ # @return [Google::Apis::ApigeeV1::GoogleTypeMoney]
5342
+ attr_accessor :setup_fee
5343
+
5344
+ # Time when the rate plan becomes active in milliseconds since epoch.
5345
+ # Corresponds to the JSON property `startTime`
5346
+ # @return [Fixnum]
5347
+ attr_accessor :start_time
5348
+
5349
+ # Current state of the rate plan (draft or published).
5350
+ # Corresponds to the JSON property `state`
5351
+ # @return [String]
5352
+ attr_accessor :state
5353
+
5354
+ def initialize(**args)
5355
+ update!(**args)
5356
+ end
5357
+
5358
+ # Update properties of this object
5359
+ def update!(**args)
5360
+ @apiproduct = args[:apiproduct] if args.key?(:apiproduct)
5361
+ @billing_period = args[:billing_period] if args.key?(:billing_period)
5362
+ @consumption_pricing_rates = args[:consumption_pricing_rates] if args.key?(:consumption_pricing_rates)
5363
+ @consumption_pricing_type = args[:consumption_pricing_type] if args.key?(:consumption_pricing_type)
5364
+ @created_at = args[:created_at] if args.key?(:created_at)
5365
+ @currency_code = args[:currency_code] if args.key?(:currency_code)
5366
+ @description = args[:description] if args.key?(:description)
5367
+ @display_name = args[:display_name] if args.key?(:display_name)
5368
+ @end_time = args[:end_time] if args.key?(:end_time)
5369
+ @fixed_fee_frequency = args[:fixed_fee_frequency] if args.key?(:fixed_fee_frequency)
5370
+ @fixed_recurring_fee = args[:fixed_recurring_fee] if args.key?(:fixed_recurring_fee)
5371
+ @last_modified_at = args[:last_modified_at] if args.key?(:last_modified_at)
5372
+ @name = args[:name] if args.key?(:name)
5373
+ @payment_funding_model = args[:payment_funding_model] if args.key?(:payment_funding_model)
5374
+ @revenue_share_rates = args[:revenue_share_rates] if args.key?(:revenue_share_rates)
5375
+ @revenue_share_type = args[:revenue_share_type] if args.key?(:revenue_share_type)
5376
+ @setup_fee = args[:setup_fee] if args.key?(:setup_fee)
5377
+ @start_time = args[:start_time] if args.key?(:start_time)
5378
+ @state = args[:state] if args.key?(:state)
5379
+ end
5380
+ end
5381
+
5382
+ # API call volume range and the fees charged when the total number of API calls
5383
+ # is within the range.
5384
+ class GoogleCloudApigeeV1RateRange
5385
+ include Google::Apis::Core::Hashable
5386
+
5387
+ # Ending value of the range. Set to 0 or `null` for the last range of values.
5388
+ # Corresponds to the JSON property `end`
5389
+ # @return [Fixnum]
5390
+ attr_accessor :end
5391
+
5392
+ # Represents an amount of money with its currency type.
5393
+ # Corresponds to the JSON property `fee`
5394
+ # @return [Google::Apis::ApigeeV1::GoogleTypeMoney]
5395
+ attr_accessor :fee
5396
+
5397
+ # Starting value of the range. Set to 0 or `null` for the initial range of
5398
+ # values.
5399
+ # Corresponds to the JSON property `start`
5400
+ # @return [Fixnum]
5401
+ attr_accessor :start
5402
+
5403
+ def initialize(**args)
5404
+ update!(**args)
5405
+ end
5406
+
5407
+ # Update properties of this object
5408
+ def update!(**args)
5409
+ @end = args[:end] if args.key?(:end)
5410
+ @fee = args[:fee] if args.key?(:fee)
5411
+ @start = args[:start] if args.key?(:start)
5412
+ end
5413
+ end
5414
+
5085
5415
  # A Reference configuration. References must refer to a keystore that also
5086
5416
  # exists in the parent environment.
5087
5417
  class GoogleCloudApigeeV1Reference
@@ -5428,6 +5758,42 @@ module Google
5428
5758
  end
5429
5759
  end
5430
5760
 
5761
+ # API call volume range and the percentage of revenue to share with the
5762
+ # developer when the total number of API calls is within the range.
5763
+ class GoogleCloudApigeeV1RevenueShareRange
5764
+ include Google::Apis::Core::Hashable
5765
+
5766
+ # Ending value of the range. Set to 0 or `null` for the last range of values.
5767
+ # Corresponds to the JSON property `end`
5768
+ # @return [Fixnum]
5769
+ attr_accessor :end
5770
+
5771
+ # Percentage of the revenue to be shared with the developer. For example, to
5772
+ # share 21 percent of the total revenue with the developer, set this value to 21.
5773
+ # Specify a decimal number with a maximum of two digits following the decimal
5774
+ # point.
5775
+ # Corresponds to the JSON property `sharePercentage`
5776
+ # @return [Float]
5777
+ attr_accessor :share_percentage
5778
+
5779
+ # Starting value of the range. Set to 0 or `null` for the initial range of
5780
+ # values.
5781
+ # Corresponds to the JSON property `start`
5782
+ # @return [Fixnum]
5783
+ attr_accessor :start
5784
+
5785
+ def initialize(**args)
5786
+ update!(**args)
5787
+ end
5788
+
5789
+ # Update properties of this object
5790
+ def update!(**args)
5791
+ @end = args[:end] if args.key?(:end)
5792
+ @share_percentage = args[:share_percentage] if args.key?(:share_percentage)
5793
+ @start = args[:start] if args.key?(:start)
5794
+ end
5795
+ end
5796
+
5431
5797
  # The status of a specific resource revision.
5432
5798
  class GoogleCloudApigeeV1RevisionStatus
5433
5799
  include Google::Apis::Core::Hashable
@@ -5437,7 +5803,8 @@ module Google
5437
5803
  # @return [Array<Google::Apis::ApigeeV1::GoogleCloudApigeeV1UpdateError>]
5438
5804
  attr_accessor :errors
5439
5805
 
5440
- # The json content of the resource revision.
5806
+ # The json content of the resource revision. Large specs should be sent
5807
+ # individually via the spec field to avoid hitting request size limits.
5441
5808
  # Corresponds to the JSON property `jsonSpec`
5442
5809
  # @return [String]
5443
5810
  attr_accessor :json_spec
@@ -6178,6 +6545,11 @@ module Google
6178
6545
  # @return [Fixnum]
6179
6546
  attr_accessor :port
6180
6547
 
6548
+ # Immutable. The protocol used by this TargetServer.
6549
+ # Corresponds to the JSON property `protocol`
6550
+ # @return [String]
6551
+ attr_accessor :protocol
6552
+
6181
6553
  # TLS configuration information for VirtualHosts and TargetServers.
6182
6554
  # Corresponds to the JSON property `sSLInfo`
6183
6555
  # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1TlsInfo]
@@ -6194,6 +6566,7 @@ module Google
6194
6566
  @is_enabled = args[:is_enabled] if args.key?(:is_enabled)
6195
6567
  @name = args[:name] if args.key?(:name)
6196
6568
  @port = args[:port] if args.key?(:port)
6569
+ @protocol = args[:protocol] if args.key?(:protocol)
6197
6570
  @s_sl_info = args[:s_sl_info] if args.key?(:s_sl_info)
6198
6571
  end
6199
6572
  end
@@ -6218,6 +6591,11 @@ module Google
6218
6591
  # @return [Fixnum]
6219
6592
  attr_accessor :port
6220
6593
 
6594
+ # The protocol used by this target server.
6595
+ # Corresponds to the JSON property `protocol`
6596
+ # @return [String]
6597
+ attr_accessor :protocol
6598
+
6221
6599
  # TLS settings for the target server.
6222
6600
  # Corresponds to the JSON property `tlsInfo`
6223
6601
  # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1TlsInfoConfig]
@@ -6232,6 +6610,7 @@ module Google
6232
6610
  @host = args[:host] if args.key?(:host)
6233
6611
  @name = args[:name] if args.key?(:name)
6234
6612
  @port = args[:port] if args.key?(:port)
6613
+ @protocol = args[:protocol] if args.key?(:protocol)
6235
6614
  @tls_info = args[:tls_info] if args.key?(:tls_info)
6236
6615
  end
6237
6616
  end
@@ -7158,6 +7537,42 @@ module Google
7158
7537
  @title = args[:title] if args.key?(:title)
7159
7538
  end
7160
7539
  end
7540
+
7541
+ # Represents an amount of money with its currency type.
7542
+ class GoogleTypeMoney
7543
+ include Google::Apis::Core::Hashable
7544
+
7545
+ # The three-letter currency code defined in ISO 4217.
7546
+ # Corresponds to the JSON property `currencyCode`
7547
+ # @return [String]
7548
+ attr_accessor :currency_code
7549
+
7550
+ # Number of nano (10^-9) units of the amount. The value must be between -999,999,
7551
+ # 999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be
7552
+ # positive or zero. If `units` is zero, `nanos` can be positive, zero, or
7553
+ # negative. If `units` is negative, `nanos` must be negative or zero. For
7554
+ # example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
7555
+ # Corresponds to the JSON property `nanos`
7556
+ # @return [Fixnum]
7557
+ attr_accessor :nanos
7558
+
7559
+ # The whole units of the amount. For example if `currencyCode` is `"USD"`, then
7560
+ # 1 unit is one US dollar.
7561
+ # Corresponds to the JSON property `units`
7562
+ # @return [Fixnum]
7563
+ attr_accessor :units
7564
+
7565
+ def initialize(**args)
7566
+ update!(**args)
7567
+ end
7568
+
7569
+ # Update properties of this object
7570
+ def update!(**args)
7571
+ @currency_code = args[:currency_code] if args.key?(:currency_code)
7572
+ @nanos = args[:nanos] if args.key?(:nanos)
7573
+ @units = args[:units] if args.key?(:units)
7574
+ end
7575
+ end
7161
7576
  end
7162
7577
  end
7163
7578
  end
@@ -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.9.0"
19
+ GEM_VERSION = "0.10.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210326"
25
+ REVISION = "20210510"
26
26
  end
27
27
  end
28
28
  end
@@ -322,6 +322,12 @@ module Google
322
322
  include Google::Apis::Core::JsonObjectSupport
323
323
  end
324
324
 
325
+ class GoogleCloudApigeeV1DeveloperSubscription
326
+ class Representation < Google::Apis::Core::JsonRepresentation; end
327
+
328
+ include Google::Apis::Core::JsonObjectSupport
329
+ end
330
+
325
331
  class GoogleCloudApigeeV1DimensionMetric
326
332
  class Representation < Google::Apis::Core::JsonRepresentation; end
327
333
 
@@ -364,6 +370,12 @@ module Google
364
370
  include Google::Apis::Core::JsonObjectSupport
365
371
  end
366
372
 
373
+ class GoogleCloudApigeeV1ExpireDeveloperSubscriptionRequest
374
+ class Representation < Google::Apis::Core::JsonRepresentation; end
375
+
376
+ include Google::Apis::Core::JsonObjectSupport
377
+ end
378
+
367
379
  class GoogleCloudApigeeV1Export
368
380
  class Representation < Google::Apis::Core::JsonRepresentation; end
369
381
 
@@ -544,6 +556,12 @@ module Google
544
556
  include Google::Apis::Core::JsonObjectSupport
545
557
  end
546
558
 
559
+ class GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse
560
+ class Representation < Google::Apis::Core::JsonRepresentation; end
561
+
562
+ include Google::Apis::Core::JsonObjectSupport
563
+ end
564
+
547
565
  class GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse
548
566
  class Representation < Google::Apis::Core::JsonRepresentation; end
549
567
 
@@ -604,6 +622,12 @@ module Google
604
622
  include Google::Apis::Core::JsonObjectSupport
605
623
  end
606
624
 
625
+ class GoogleCloudApigeeV1ListRatePlansResponse
626
+ class Representation < Google::Apis::Core::JsonRepresentation; end
627
+
628
+ include Google::Apis::Core::JsonObjectSupport
629
+ end
630
+
607
631
  class GoogleCloudApigeeV1ListSharedFlowsResponse
608
632
  class Representation < Google::Apis::Core::JsonRepresentation; end
609
633
 
@@ -664,6 +688,12 @@ module Google
664
688
  include Google::Apis::Core::JsonObjectSupport
665
689
  end
666
690
 
691
+ class GoogleCloudApigeeV1OperationMetadataProgress
692
+ class Representation < Google::Apis::Core::JsonRepresentation; end
693
+
694
+ include Google::Apis::Core::JsonObjectSupport
695
+ end
696
+
667
697
  class GoogleCloudApigeeV1OptimizedStats
668
698
  class Representation < Google::Apis::Core::JsonRepresentation; end
669
699
 
@@ -748,6 +778,18 @@ module Google
748
778
  include Google::Apis::Core::JsonObjectSupport
749
779
  end
750
780
 
781
+ class GoogleCloudApigeeV1RatePlan
782
+ class Representation < Google::Apis::Core::JsonRepresentation; end
783
+
784
+ include Google::Apis::Core::JsonObjectSupport
785
+ end
786
+
787
+ class GoogleCloudApigeeV1RateRange
788
+ class Representation < Google::Apis::Core::JsonRepresentation; end
789
+
790
+ include Google::Apis::Core::JsonObjectSupport
791
+ end
792
+
751
793
  class GoogleCloudApigeeV1Reference
752
794
  class Representation < Google::Apis::Core::JsonRepresentation; end
753
795
 
@@ -808,6 +850,12 @@ module Google
808
850
  include Google::Apis::Core::JsonObjectSupport
809
851
  end
810
852
 
853
+ class GoogleCloudApigeeV1RevenueShareRange
854
+ class Representation < Google::Apis::Core::JsonRepresentation; end
855
+
856
+ include Google::Apis::Core::JsonObjectSupport
857
+ end
858
+
811
859
  class GoogleCloudApigeeV1RevisionStatus
812
860
  class Representation < Google::Apis::Core::JsonRepresentation; end
813
861
 
@@ -1060,6 +1108,12 @@ module Google
1060
1108
  include Google::Apis::Core::JsonObjectSupport
1061
1109
  end
1062
1110
 
1111
+ class GoogleTypeMoney
1112
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1113
+
1114
+ include Google::Apis::Core::JsonObjectSupport
1115
+ end
1116
+
1063
1117
  class GoogleApiHttpBody
1064
1118
  # @private
1065
1119
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1684,6 +1738,18 @@ module Google
1684
1738
  end
1685
1739
  end
1686
1740
 
1741
+ class GoogleCloudApigeeV1DeveloperSubscription
1742
+ # @private
1743
+ class Representation < Google::Apis::Core::JsonRepresentation
1744
+ property :apiproduct, as: 'apiproduct'
1745
+ property :created_at, :numeric_string => true, as: 'createdAt'
1746
+ property :end_time, :numeric_string => true, as: 'endTime'
1747
+ property :last_modified_at, :numeric_string => true, as: 'lastModifiedAt'
1748
+ property :name, as: 'name'
1749
+ property :start_time, :numeric_string => true, as: 'startTime'
1750
+ end
1751
+ end
1752
+
1687
1753
  class GoogleCloudApigeeV1DimensionMetric
1688
1754
  # @private
1689
1755
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1780,6 +1846,12 @@ module Google
1780
1846
  end
1781
1847
  end
1782
1848
 
1849
+ class GoogleCloudApigeeV1ExpireDeveloperSubscriptionRequest
1850
+ # @private
1851
+ class Representation < Google::Apis::Core::JsonRepresentation
1852
+ end
1853
+ end
1854
+
1783
1855
  class GoogleCloudApigeeV1Export
1784
1856
  # @private
1785
1857
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2064,6 +2136,15 @@ module Google
2064
2136
  end
2065
2137
  end
2066
2138
 
2139
+ class GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse
2140
+ # @private
2141
+ class Representation < Google::Apis::Core::JsonRepresentation
2142
+ collection :developer_subscriptions, as: 'developerSubscriptions', class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1DeveloperSubscription, decorator: Google::Apis::ApigeeV1::GoogleCloudApigeeV1DeveloperSubscription::Representation
2143
+
2144
+ property :next_start_key, as: 'nextStartKey'
2145
+ end
2146
+ end
2147
+
2067
2148
  class GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse
2068
2149
  # @private
2069
2150
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2149,6 +2230,15 @@ module Google
2149
2230
  end
2150
2231
  end
2151
2232
 
2233
+ class GoogleCloudApigeeV1ListRatePlansResponse
2234
+ # @private
2235
+ class Representation < Google::Apis::Core::JsonRepresentation
2236
+ property :next_start_key, as: 'nextStartKey'
2237
+ collection :rate_plans, as: 'ratePlans', class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1RatePlan, decorator: Google::Apis::ApigeeV1::GoogleCloudApigeeV1RatePlan::Representation
2238
+
2239
+ end
2240
+ end
2241
+
2152
2242
  class GoogleCloudApigeeV1ListSharedFlowsResponse
2153
2243
  # @private
2154
2244
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2232,11 +2322,23 @@ module Google
2232
2322
  # @private
2233
2323
  class Representation < Google::Apis::Core::JsonRepresentation
2234
2324
  property :operation_type, as: 'operationType'
2325
+ property :progress, as: 'progress', class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1OperationMetadataProgress, decorator: Google::Apis::ApigeeV1::GoogleCloudApigeeV1OperationMetadataProgress::Representation
2326
+
2235
2327
  property :state, as: 'state'
2236
2328
  property :target_resource_name, as: 'targetResourceName'
2237
2329
  end
2238
2330
  end
2239
2331
 
2332
+ class GoogleCloudApigeeV1OperationMetadataProgress
2333
+ # @private
2334
+ class Representation < Google::Apis::Core::JsonRepresentation
2335
+ property :description, as: 'description'
2336
+ hash :details, as: 'details'
2337
+ property :percent_done, as: 'percentDone'
2338
+ property :state, as: 'state'
2339
+ end
2340
+ end
2341
+
2240
2342
  class GoogleCloudApigeeV1OptimizedStats
2241
2343
  # @private
2242
2344
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2400,6 +2502,45 @@ module Google
2400
2502
  end
2401
2503
  end
2402
2504
 
2505
+ class GoogleCloudApigeeV1RatePlan
2506
+ # @private
2507
+ class Representation < Google::Apis::Core::JsonRepresentation
2508
+ property :apiproduct, as: 'apiproduct'
2509
+ property :billing_period, as: 'billingPeriod'
2510
+ collection :consumption_pricing_rates, as: 'consumptionPricingRates', class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1RateRange, decorator: Google::Apis::ApigeeV1::GoogleCloudApigeeV1RateRange::Representation
2511
+
2512
+ property :consumption_pricing_type, as: 'consumptionPricingType'
2513
+ property :created_at, :numeric_string => true, as: 'createdAt'
2514
+ property :currency_code, as: 'currencyCode'
2515
+ property :description, as: 'description'
2516
+ property :display_name, as: 'displayName'
2517
+ property :end_time, :numeric_string => true, as: 'endTime'
2518
+ property :fixed_fee_frequency, as: 'fixedFeeFrequency'
2519
+ property :fixed_recurring_fee, as: 'fixedRecurringFee', class: Google::Apis::ApigeeV1::GoogleTypeMoney, decorator: Google::Apis::ApigeeV1::GoogleTypeMoney::Representation
2520
+
2521
+ property :last_modified_at, :numeric_string => true, as: 'lastModifiedAt'
2522
+ property :name, as: 'name'
2523
+ property :payment_funding_model, as: 'paymentFundingModel'
2524
+ collection :revenue_share_rates, as: 'revenueShareRates', class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1RevenueShareRange, decorator: Google::Apis::ApigeeV1::GoogleCloudApigeeV1RevenueShareRange::Representation
2525
+
2526
+ property :revenue_share_type, as: 'revenueShareType'
2527
+ property :setup_fee, as: 'setupFee', class: Google::Apis::ApigeeV1::GoogleTypeMoney, decorator: Google::Apis::ApigeeV1::GoogleTypeMoney::Representation
2528
+
2529
+ property :start_time, :numeric_string => true, as: 'startTime'
2530
+ property :state, as: 'state'
2531
+ end
2532
+ end
2533
+
2534
+ class GoogleCloudApigeeV1RateRange
2535
+ # @private
2536
+ class Representation < Google::Apis::Core::JsonRepresentation
2537
+ property :end, :numeric_string => true, as: 'end'
2538
+ property :fee, as: 'fee', class: Google::Apis::ApigeeV1::GoogleTypeMoney, decorator: Google::Apis::ApigeeV1::GoogleTypeMoney::Representation
2539
+
2540
+ property :start, :numeric_string => true, as: 'start'
2541
+ end
2542
+ end
2543
+
2403
2544
  class GoogleCloudApigeeV1Reference
2404
2545
  # @private
2405
2546
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2497,6 +2638,15 @@ module Google
2497
2638
  end
2498
2639
  end
2499
2640
 
2641
+ class GoogleCloudApigeeV1RevenueShareRange
2642
+ # @private
2643
+ class Representation < Google::Apis::Core::JsonRepresentation
2644
+ property :end, :numeric_string => true, as: 'end'
2645
+ property :share_percentage, as: 'sharePercentage'
2646
+ property :start, :numeric_string => true, as: 'start'
2647
+ end
2648
+ end
2649
+
2500
2650
  class GoogleCloudApigeeV1RevisionStatus
2501
2651
  # @private
2502
2652
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2698,6 +2848,7 @@ module Google
2698
2848
  property :is_enabled, as: 'isEnabled'
2699
2849
  property :name, as: 'name'
2700
2850
  property :port, as: 'port'
2851
+ property :protocol, as: 'protocol'
2701
2852
  property :s_sl_info, as: 'sSLInfo', class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1TlsInfo, decorator: Google::Apis::ApigeeV1::GoogleCloudApigeeV1TlsInfo::Representation
2702
2853
 
2703
2854
  end
@@ -2709,6 +2860,7 @@ module Google
2709
2860
  property :host, as: 'host'
2710
2861
  property :name, as: 'name'
2711
2862
  property :port, as: 'port'
2863
+ property :protocol, as: 'protocol'
2712
2864
  property :tls_info, as: 'tlsInfo', class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1TlsInfoConfig, decorator: Google::Apis::ApigeeV1::GoogleCloudApigeeV1TlsInfoConfig::Representation
2713
2865
 
2714
2866
  end
@@ -2925,6 +3077,15 @@ module Google
2925
3077
  property :title, as: 'title'
2926
3078
  end
2927
3079
  end
3080
+
3081
+ class GoogleTypeMoney
3082
+ # @private
3083
+ class Representation < Google::Apis::Core::JsonRepresentation
3084
+ property :currency_code, as: 'currencyCode'
3085
+ property :nanos, as: 'nanos'
3086
+ property :units, :numeric_string => true, as: 'units'
3087
+ end
3088
+ end
2928
3089
  end
2929
3090
  end
2930
3091
  end
@@ -998,6 +998,202 @@ module Google
998
998
  execute_or_queue_command(command, &block)
999
999
  end
1000
1000
 
1001
+ # Create a rate plan that is associated with an API product in an organization.
1002
+ # Using rate plans, API product owners can monetize their API products by
1003
+ # configuring one or more of the following: - Billing frequency - Initial setup
1004
+ # fees for using an API product - Payment funding model (postpaid only) - Fixed
1005
+ # recurring or consumption-based charges for using an API product - Revenue
1006
+ # sharing with developer partners An API product can have multiple rate plans
1007
+ # associated with it but *only one* rate plan can be active at any point of time.
1008
+ # **Note: From the developer's perspective, they purchase API products not rate
1009
+ # plans.
1010
+ # @param [String] parent
1011
+ # Required. Name of the API product that is associated with the rate plan. Use
1012
+ # the following structure in your request: `organizations/`org`/apiproducts/`
1013
+ # apiproduct``
1014
+ # @param [Google::Apis::ApigeeV1::GoogleCloudApigeeV1RatePlan] google_cloud_apigee_v1_rate_plan_object
1015
+ # @param [String] fields
1016
+ # Selector specifying which fields to include in a partial response.
1017
+ # @param [String] quota_user
1018
+ # Available to use for quota purposes for server-side applications. Can be any
1019
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1020
+ # @param [Google::Apis::RequestOptions] options
1021
+ # Request-specific options
1022
+ #
1023
+ # @yield [result, err] Result & error if block supplied
1024
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1RatePlan] parsed result object
1025
+ # @yieldparam err [StandardError] error object if request failed
1026
+ #
1027
+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1RatePlan]
1028
+ #
1029
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1030
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1031
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1032
+ def create_organization_apiproduct_rateplan(parent, google_cloud_apigee_v1_rate_plan_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1033
+ command = make_simple_command(:post, 'v1/{+parent}/rateplans', options)
1034
+ command.request_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1RatePlan::Representation
1035
+ command.request_object = google_cloud_apigee_v1_rate_plan_object
1036
+ command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1RatePlan::Representation
1037
+ command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1RatePlan
1038
+ command.params['parent'] = parent unless parent.nil?
1039
+ command.query['fields'] = fields unless fields.nil?
1040
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1041
+ execute_or_queue_command(command, &block)
1042
+ end
1043
+
1044
+ # Deletes a rate plan.
1045
+ # @param [String] name
1046
+ # Required. ID of the rate plan. Use the following structure in your request: `
1047
+ # organizations/`org`/apiproducts/`apiproduct`/rateplans/`rateplan``
1048
+ # @param [String] fields
1049
+ # Selector specifying which fields to include in a partial response.
1050
+ # @param [String] quota_user
1051
+ # Available to use for quota purposes for server-side applications. Can be any
1052
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1053
+ # @param [Google::Apis::RequestOptions] options
1054
+ # Request-specific options
1055
+ #
1056
+ # @yield [result, err] Result & error if block supplied
1057
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1RatePlan] parsed result object
1058
+ # @yieldparam err [StandardError] error object if request failed
1059
+ #
1060
+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1RatePlan]
1061
+ #
1062
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1063
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1064
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1065
+ def delete_organization_apiproduct_rateplan(name, fields: nil, quota_user: nil, options: nil, &block)
1066
+ command = make_simple_command(:delete, 'v1/{+name}', options)
1067
+ command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1RatePlan::Representation
1068
+ command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1RatePlan
1069
+ command.params['name'] = name unless name.nil?
1070
+ command.query['fields'] = fields unless fields.nil?
1071
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1072
+ execute_or_queue_command(command, &block)
1073
+ end
1074
+
1075
+ # Gets the details of a rate plan.
1076
+ # @param [String] name
1077
+ # Required. Name of the rate plan. Use the following structure in your request: `
1078
+ # organizations/`org`/apiproducts/`apiproduct`/rateplans/`rateplan``
1079
+ # @param [String] fields
1080
+ # Selector specifying which fields to include in a partial response.
1081
+ # @param [String] quota_user
1082
+ # Available to use for quota purposes for server-side applications. Can be any
1083
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1084
+ # @param [Google::Apis::RequestOptions] options
1085
+ # Request-specific options
1086
+ #
1087
+ # @yield [result, err] Result & error if block supplied
1088
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1RatePlan] parsed result object
1089
+ # @yieldparam err [StandardError] error object if request failed
1090
+ #
1091
+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1RatePlan]
1092
+ #
1093
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1094
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1095
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1096
+ def get_organization_apiproduct_rateplan(name, fields: nil, quota_user: nil, options: nil, &block)
1097
+ command = make_simple_command(:get, 'v1/{+name}', options)
1098
+ command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1RatePlan::Representation
1099
+ command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1RatePlan
1100
+ command.params['name'] = name unless name.nil?
1101
+ command.query['fields'] = fields unless fields.nil?
1102
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1103
+ execute_or_queue_command(command, &block)
1104
+ end
1105
+
1106
+ # Lists all the rate plans for an API product.
1107
+ # @param [String] parent
1108
+ # Required. Name of the API product. Use the following structure in your request:
1109
+ # `organizations/`org`/apiproducts/`apiproduct`` Use `organizations/`org`/
1110
+ # apiproducts/-` to return rate plans for all API products within the
1111
+ # organization.
1112
+ # @param [Fixnum] count
1113
+ # Number of rate plans to return in the API call. Use with the `startKey`
1114
+ # parameter to provide more targeted filtering. The maximum limit is 1000.
1115
+ # Defaults to 100.
1116
+ # @param [Boolean] expand
1117
+ # Flag that specifies whether to expand the results. Set to `true` to get
1118
+ # expanded details about each API. Defaults to `false`.
1119
+ # @param [String] order_by
1120
+ # Name of the attribute used for sorting. Valid values include: * `name`: Name
1121
+ # of the rate plan. * `state`: State of the rate plan (`DRAFT`, `PUBLISHED`). * `
1122
+ # startTime`: Time when the rate plan becomes active. * `endTime`: Time when the
1123
+ # rate plan expires. **Note**: Not supported by Apigee at this time.
1124
+ # @param [String] start_key
1125
+ # Name of the rate plan from which to start displaying the list of rate plans.
1126
+ # If omitted, the list starts from the first item. For example, to view the rate
1127
+ # plans from 51-150, set the value of `startKey` to the name of the 51st rate
1128
+ # plan and set the value of `count` to 100.
1129
+ # @param [String] state
1130
+ # State of the rate plans (`DRAFT`, `PUBLISHED`) that you want to display.
1131
+ # @param [String] fields
1132
+ # Selector specifying which fields to include in a partial response.
1133
+ # @param [String] quota_user
1134
+ # Available to use for quota purposes for server-side applications. Can be any
1135
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1136
+ # @param [Google::Apis::RequestOptions] options
1137
+ # Request-specific options
1138
+ #
1139
+ # @yield [result, err] Result & error if block supplied
1140
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListRatePlansResponse] parsed result object
1141
+ # @yieldparam err [StandardError] error object if request failed
1142
+ #
1143
+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListRatePlansResponse]
1144
+ #
1145
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1146
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1147
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1148
+ def list_organization_apiproduct_rateplans(parent, count: nil, expand: nil, order_by: nil, start_key: nil, state: nil, fields: nil, quota_user: nil, options: nil, &block)
1149
+ command = make_simple_command(:get, 'v1/{+parent}/rateplans', options)
1150
+ command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListRatePlansResponse::Representation
1151
+ command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListRatePlansResponse
1152
+ command.params['parent'] = parent unless parent.nil?
1153
+ command.query['count'] = count unless count.nil?
1154
+ command.query['expand'] = expand unless expand.nil?
1155
+ command.query['orderBy'] = order_by unless order_by.nil?
1156
+ command.query['startKey'] = start_key unless start_key.nil?
1157
+ command.query['state'] = state unless state.nil?
1158
+ command.query['fields'] = fields unless fields.nil?
1159
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1160
+ execute_or_queue_command(command, &block)
1161
+ end
1162
+
1163
+ # Updates an existing rate plan.
1164
+ # @param [String] name
1165
+ # Required. Name of the rate plan. Use the following structure in your request: `
1166
+ # organizations/`org`/apiproducts/`apiproduct`/rateplans/`rateplan``
1167
+ # @param [Google::Apis::ApigeeV1::GoogleCloudApigeeV1RatePlan] google_cloud_apigee_v1_rate_plan_object
1168
+ # @param [String] fields
1169
+ # Selector specifying which fields to include in a partial response.
1170
+ # @param [String] quota_user
1171
+ # Available to use for quota purposes for server-side applications. Can be any
1172
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1173
+ # @param [Google::Apis::RequestOptions] options
1174
+ # Request-specific options
1175
+ #
1176
+ # @yield [result, err] Result & error if block supplied
1177
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1RatePlan] parsed result object
1178
+ # @yieldparam err [StandardError] error object if request failed
1179
+ #
1180
+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1RatePlan]
1181
+ #
1182
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1183
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1184
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1185
+ def update_organization_apiproduct_rateplan(name, google_cloud_apigee_v1_rate_plan_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1186
+ command = make_simple_command(:put, 'v1/{+name}', options)
1187
+ command.request_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1RatePlan::Representation
1188
+ command.request_object = google_cloud_apigee_v1_rate_plan_object
1189
+ command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1RatePlan::Representation
1190
+ command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1RatePlan
1191
+ command.params['name'] = name unless name.nil?
1192
+ command.query['fields'] = fields unless fields.nil?
1193
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1194
+ execute_or_queue_command(command, &block)
1195
+ end
1196
+
1001
1197
  # Creates an API proxy. The API proxy created will not be accessible at runtime
1002
1198
  # until it is deployed to an environment. Create a new API proxy by setting the `
1003
1199
  # name` query parameter to the name of the API proxy. Import an API proxy
@@ -2891,6 +3087,150 @@ module Google
2891
3087
  execute_or_queue_command(command, &block)
2892
3088
  end
2893
3089
 
3090
+ # Creates a subscription to an API product.
3091
+ # @param [String] parent
3092
+ # Required. Email address of the developer that is purchasing a subscription to
3093
+ # the API product. Use the following structure in your request: `organizations/`
3094
+ # org`/developers/`developer_email``
3095
+ # @param [Google::Apis::ApigeeV1::GoogleCloudApigeeV1DeveloperSubscription] google_cloud_apigee_v1_developer_subscription_object
3096
+ # @param [String] fields
3097
+ # Selector specifying which fields to include in a partial response.
3098
+ # @param [String] quota_user
3099
+ # Available to use for quota purposes for server-side applications. Can be any
3100
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3101
+ # @param [Google::Apis::RequestOptions] options
3102
+ # Request-specific options
3103
+ #
3104
+ # @yield [result, err] Result & error if block supplied
3105
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1DeveloperSubscription] parsed result object
3106
+ # @yieldparam err [StandardError] error object if request failed
3107
+ #
3108
+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1DeveloperSubscription]
3109
+ #
3110
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3111
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3112
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3113
+ def create_organization_developer_subscription(parent, google_cloud_apigee_v1_developer_subscription_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3114
+ command = make_simple_command(:post, 'v1/{+parent}/subscriptions', options)
3115
+ command.request_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1DeveloperSubscription::Representation
3116
+ command.request_object = google_cloud_apigee_v1_developer_subscription_object
3117
+ command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1DeveloperSubscription::Representation
3118
+ command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1DeveloperSubscription
3119
+ command.params['parent'] = parent unless parent.nil?
3120
+ command.query['fields'] = fields unless fields.nil?
3121
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3122
+ execute_or_queue_command(command, &block)
3123
+ end
3124
+
3125
+ # Expires an API product subscription immediately.
3126
+ # @param [String] name
3127
+ # Required. Name of the API product subscription. Use the following structure in
3128
+ # your request: `organizations/`org`/developers/`developer_email`/subscriptions/`
3129
+ # subscription``
3130
+ # @param [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ExpireDeveloperSubscriptionRequest] google_cloud_apigee_v1_expire_developer_subscription_request_object
3131
+ # @param [String] fields
3132
+ # Selector specifying which fields to include in a partial response.
3133
+ # @param [String] quota_user
3134
+ # Available to use for quota purposes for server-side applications. Can be any
3135
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3136
+ # @param [Google::Apis::RequestOptions] options
3137
+ # Request-specific options
3138
+ #
3139
+ # @yield [result, err] Result & error if block supplied
3140
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1DeveloperSubscription] parsed result object
3141
+ # @yieldparam err [StandardError] error object if request failed
3142
+ #
3143
+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1DeveloperSubscription]
3144
+ #
3145
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3146
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3147
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3148
+ def expire_organization_developer_subscription(name, google_cloud_apigee_v1_expire_developer_subscription_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3149
+ command = make_simple_command(:post, 'v1/{+name}:expire', options)
3150
+ command.request_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ExpireDeveloperSubscriptionRequest::Representation
3151
+ command.request_object = google_cloud_apigee_v1_expire_developer_subscription_request_object
3152
+ command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1DeveloperSubscription::Representation
3153
+ command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1DeveloperSubscription
3154
+ command.params['name'] = name unless name.nil?
3155
+ command.query['fields'] = fields unless fields.nil?
3156
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3157
+ execute_or_queue_command(command, &block)
3158
+ end
3159
+
3160
+ # Gets details for an API product subscription.
3161
+ # @param [String] name
3162
+ # Required. Name of the API product subscription. Use the following structure in
3163
+ # your request: `organizations/`org`/developers/`developer_email`/subscriptions/`
3164
+ # subscription``
3165
+ # @param [String] fields
3166
+ # Selector specifying which fields to include in a partial response.
3167
+ # @param [String] quota_user
3168
+ # Available to use for quota purposes for server-side applications. Can be any
3169
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3170
+ # @param [Google::Apis::RequestOptions] options
3171
+ # Request-specific options
3172
+ #
3173
+ # @yield [result, err] Result & error if block supplied
3174
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1DeveloperSubscription] parsed result object
3175
+ # @yieldparam err [StandardError] error object if request failed
3176
+ #
3177
+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1DeveloperSubscription]
3178
+ #
3179
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3180
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3181
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3182
+ def get_organization_developer_subscription(name, fields: nil, quota_user: nil, options: nil, &block)
3183
+ command = make_simple_command(:get, 'v1/{+name}', options)
3184
+ command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1DeveloperSubscription::Representation
3185
+ command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1DeveloperSubscription
3186
+ command.params['name'] = name unless name.nil?
3187
+ command.query['fields'] = fields unless fields.nil?
3188
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3189
+ execute_or_queue_command(command, &block)
3190
+ end
3191
+
3192
+ # Lists all API product subscriptions for a developer.
3193
+ # @param [String] parent
3194
+ # Required. Email address of the developer. Use the following structure in your
3195
+ # request: `organizations/`org`/developers/`developer_email``
3196
+ # @param [Fixnum] count
3197
+ # Number of API product subscriptions to return in the API call. Use with `
3198
+ # startKey` to provide more targeted filtering. Defaults to 100. The maximum
3199
+ # limit is 1000.
3200
+ # @param [String] start_key
3201
+ # Name of the API product subscription from which to start displaying the list
3202
+ # of subscriptions. If omitted, the list starts from the first item. For example,
3203
+ # to view the API product subscriptions from 51-150, set the value of `startKey`
3204
+ # to the name of the 51st subscription and set the value of `count` to 100.
3205
+ # @param [String] fields
3206
+ # Selector specifying which fields to include in a partial response.
3207
+ # @param [String] quota_user
3208
+ # Available to use for quota purposes for server-side applications. Can be any
3209
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3210
+ # @param [Google::Apis::RequestOptions] options
3211
+ # Request-specific options
3212
+ #
3213
+ # @yield [result, err] Result & error if block supplied
3214
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse] parsed result object
3215
+ # @yieldparam err [StandardError] error object if request failed
3216
+ #
3217
+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse]
3218
+ #
3219
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3220
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3221
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3222
+ def list_organization_developer_subscriptions(parent, count: nil, start_key: nil, fields: nil, quota_user: nil, options: nil, &block)
3223
+ command = make_simple_command(:get, 'v1/{+parent}/subscriptions', options)
3224
+ command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse::Representation
3225
+ command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse
3226
+ command.params['parent'] = parent unless parent.nil?
3227
+ command.query['count'] = count unless count.nil?
3228
+ command.query['startKey'] = start_key unless start_key.nil?
3229
+ command.query['fields'] = fields unless fields.nil?
3230
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3231
+ execute_or_queue_command(command, &block)
3232
+ end
3233
+
2894
3234
  # Creates a new environment group.
2895
3235
  # @param [String] parent
2896
3236
  # Required. Name of the organization in which to create the environment group in
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.9.0
4
+ version: 0.10.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-04-05 00:00:00.000000000 Z
11
+ date: 2021-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
54
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-apigee_v1/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-apigee_v1/v0.9.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-apigee_v1/v0.10.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-apigee_v1
57
57
  post_install_message:
58
58
  rdoc_options: []
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.2.13
72
+ rubygems_version: 3.2.17
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Simple REST client for Apigee API V1