google-apis-apigee_v1 0.7.0 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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.7.0"
19
+ GEM_VERSION = "0.12.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 = "20210312"
25
+ REVISION = "20210522"
26
26
  end
27
27
  end
28
28
  end
@@ -58,6 +58,18 @@ module Google
58
58
  include Google::Apis::Core::JsonObjectSupport
59
59
  end
60
60
 
61
+ class GoogleCloudApigeeV1AddonsConfig
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class GoogleCloudApigeeV1AdvancedApiOpsConfig
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
61
73
  class GoogleCloudApigeeV1Alias
62
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
75
 
@@ -310,6 +322,12 @@ module Google
310
322
  include Google::Apis::Core::JsonObjectSupport
311
323
  end
312
324
 
325
+ class GoogleCloudApigeeV1DeveloperSubscription
326
+ class Representation < Google::Apis::Core::JsonRepresentation; end
327
+
328
+ include Google::Apis::Core::JsonObjectSupport
329
+ end
330
+
313
331
  class GoogleCloudApigeeV1DimensionMetric
314
332
  class Representation < Google::Apis::Core::JsonRepresentation; end
315
333
 
@@ -352,6 +370,12 @@ module Google
352
370
  include Google::Apis::Core::JsonObjectSupport
353
371
  end
354
372
 
373
+ class GoogleCloudApigeeV1ExpireDeveloperSubscriptionRequest
374
+ class Representation < Google::Apis::Core::JsonRepresentation; end
375
+
376
+ include Google::Apis::Core::JsonObjectSupport
377
+ end
378
+
355
379
  class GoogleCloudApigeeV1Export
356
380
  class Representation < Google::Apis::Core::JsonRepresentation; end
357
381
 
@@ -436,6 +460,12 @@ module Google
436
460
  include Google::Apis::Core::JsonObjectSupport
437
461
  end
438
462
 
463
+ class GoogleCloudApigeeV1IntegrationConfig
464
+ class Representation < Google::Apis::Core::JsonRepresentation; end
465
+
466
+ include Google::Apis::Core::JsonObjectSupport
467
+ end
468
+
439
469
  class GoogleCloudApigeeV1KeyAliasReference
440
470
  class Representation < Google::Apis::Core::JsonRepresentation; end
441
471
 
@@ -526,6 +556,12 @@ module Google
526
556
  include Google::Apis::Core::JsonObjectSupport
527
557
  end
528
558
 
559
+ class GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse
560
+ class Representation < Google::Apis::Core::JsonRepresentation; end
561
+
562
+ include Google::Apis::Core::JsonObjectSupport
563
+ end
564
+
529
565
  class GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse
530
566
  class Representation < Google::Apis::Core::JsonRepresentation; end
531
567
 
@@ -586,6 +622,12 @@ module Google
586
622
  include Google::Apis::Core::JsonObjectSupport
587
623
  end
588
624
 
625
+ class GoogleCloudApigeeV1ListRatePlansResponse
626
+ class Representation < Google::Apis::Core::JsonRepresentation; end
627
+
628
+ include Google::Apis::Core::JsonObjectSupport
629
+ end
630
+
589
631
  class GoogleCloudApigeeV1ListSharedFlowsResponse
590
632
  class Representation < Google::Apis::Core::JsonRepresentation; end
591
633
 
@@ -610,6 +652,12 @@ module Google
610
652
  include Google::Apis::Core::JsonObjectSupport
611
653
  end
612
654
 
655
+ class GoogleCloudApigeeV1MonetizationConfig
656
+ class Representation < Google::Apis::Core::JsonRepresentation; end
657
+
658
+ include Google::Apis::Core::JsonObjectSupport
659
+ end
660
+
613
661
  class GoogleCloudApigeeV1NatAddress
614
662
  class Representation < Google::Apis::Core::JsonRepresentation; end
615
663
 
@@ -640,6 +688,12 @@ module Google
640
688
  include Google::Apis::Core::JsonObjectSupport
641
689
  end
642
690
 
691
+ class GoogleCloudApigeeV1OperationMetadataProgress
692
+ class Representation < Google::Apis::Core::JsonRepresentation; end
693
+
694
+ include Google::Apis::Core::JsonObjectSupport
695
+ end
696
+
643
697
  class GoogleCloudApigeeV1OptimizedStats
644
698
  class Representation < Google::Apis::Core::JsonRepresentation; end
645
699
 
@@ -724,6 +778,18 @@ module Google
724
778
  include Google::Apis::Core::JsonObjectSupport
725
779
  end
726
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
+
727
793
  class GoogleCloudApigeeV1Reference
728
794
  class Representation < Google::Apis::Core::JsonRepresentation; end
729
795
 
@@ -784,6 +850,12 @@ module Google
784
850
  include Google::Apis::Core::JsonObjectSupport
785
851
  end
786
852
 
853
+ class GoogleCloudApigeeV1RevenueShareRange
854
+ class Representation < Google::Apis::Core::JsonRepresentation; end
855
+
856
+ include Google::Apis::Core::JsonObjectSupport
857
+ end
858
+
787
859
  class GoogleCloudApigeeV1RevisionStatus
788
860
  class Representation < Google::Apis::Core::JsonRepresentation; end
789
861
 
@@ -844,6 +916,12 @@ module Google
844
916
  include Google::Apis::Core::JsonObjectSupport
845
917
  end
846
918
 
919
+ class GoogleCloudApigeeV1SetAddonsRequest
920
+ class Representation < Google::Apis::Core::JsonRepresentation; end
921
+
922
+ include Google::Apis::Core::JsonObjectSupport
923
+ end
924
+
847
925
  class GoogleCloudApigeeV1SharedFlow
848
926
  class Representation < Google::Apis::Core::JsonRepresentation; end
849
927
 
@@ -1030,6 +1108,12 @@ module Google
1030
1108
  include Google::Apis::Core::JsonObjectSupport
1031
1109
  end
1032
1110
 
1111
+ class GoogleTypeMoney
1112
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1113
+
1114
+ include Google::Apis::Core::JsonObjectSupport
1115
+ end
1116
+
1033
1117
  class GoogleApiHttpBody
1034
1118
  # @private
1035
1119
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1082,6 +1166,25 @@ module Google
1082
1166
  end
1083
1167
  end
1084
1168
 
1169
+ class GoogleCloudApigeeV1AddonsConfig
1170
+ # @private
1171
+ class Representation < Google::Apis::Core::JsonRepresentation
1172
+ property :advanced_api_ops_config, as: 'advancedApiOpsConfig', class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1AdvancedApiOpsConfig, decorator: Google::Apis::ApigeeV1::GoogleCloudApigeeV1AdvancedApiOpsConfig::Representation
1173
+
1174
+ property :integration_config, as: 'integrationConfig', class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1IntegrationConfig, decorator: Google::Apis::ApigeeV1::GoogleCloudApigeeV1IntegrationConfig::Representation
1175
+
1176
+ property :monetization_config, as: 'monetizationConfig', class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1MonetizationConfig, decorator: Google::Apis::ApigeeV1::GoogleCloudApigeeV1MonetizationConfig::Representation
1177
+
1178
+ end
1179
+ end
1180
+
1181
+ class GoogleCloudApigeeV1AdvancedApiOpsConfig
1182
+ # @private
1183
+ class Representation < Google::Apis::Core::JsonRepresentation
1184
+ property :enabled, as: 'enabled'
1185
+ end
1186
+ end
1187
+
1085
1188
  class GoogleCloudApigeeV1Alias
1086
1189
  # @private
1087
1190
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1516,6 +1619,7 @@ module Google
1516
1619
  property :revision, as: 'revision'
1517
1620
  collection :route_conflicts, as: 'routeConflicts', class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1DeploymentChangeReportRoutingConflict, decorator: Google::Apis::ApigeeV1::GoogleCloudApigeeV1DeploymentChangeReportRoutingConflict::Representation
1518
1621
 
1622
+ property :service_account, as: 'serviceAccount'
1519
1623
  property :state, as: 'state'
1520
1624
  end
1521
1625
  end
@@ -1635,6 +1739,18 @@ module Google
1635
1739
  end
1636
1740
  end
1637
1741
 
1742
+ class GoogleCloudApigeeV1DeveloperSubscription
1743
+ # @private
1744
+ class Representation < Google::Apis::Core::JsonRepresentation
1745
+ property :apiproduct, as: 'apiproduct'
1746
+ property :created_at, :numeric_string => true, as: 'createdAt'
1747
+ property :end_time, :numeric_string => true, as: 'endTime'
1748
+ property :last_modified_at, :numeric_string => true, as: 'lastModifiedAt'
1749
+ property :name, as: 'name'
1750
+ property :start_time, :numeric_string => true, as: 'startTime'
1751
+ end
1752
+ end
1753
+
1638
1754
  class GoogleCloudApigeeV1DimensionMetric
1639
1755
  # @private
1640
1756
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1731,6 +1847,12 @@ module Google
1731
1847
  end
1732
1848
  end
1733
1849
 
1850
+ class GoogleCloudApigeeV1ExpireDeveloperSubscriptionRequest
1851
+ # @private
1852
+ class Representation < Google::Apis::Core::JsonRepresentation
1853
+ end
1854
+ end
1855
+
1734
1856
  class GoogleCloudApigeeV1Export
1735
1857
  # @private
1736
1858
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1788,7 +1910,7 @@ module Google
1788
1910
  # @private
1789
1911
  class Representation < Google::Apis::Core::JsonRepresentation
1790
1912
  property :operation, as: 'operation'
1791
- collection :operation_type, as: 'operationType'
1913
+ collection :operation_types, as: 'operationTypes'
1792
1914
  end
1793
1915
  end
1794
1916
 
@@ -1881,6 +2003,13 @@ module Google
1881
2003
  end
1882
2004
  end
1883
2005
 
2006
+ class GoogleCloudApigeeV1IntegrationConfig
2007
+ # @private
2008
+ class Representation < Google::Apis::Core::JsonRepresentation
2009
+ property :enabled, as: 'enabled'
2010
+ end
2011
+ end
2012
+
1884
2013
  class GoogleCloudApigeeV1KeyAliasReference
1885
2014
  # @private
1886
2015
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2008,6 +2137,15 @@ module Google
2008
2137
  end
2009
2138
  end
2010
2139
 
2140
+ class GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse
2141
+ # @private
2142
+ class Representation < Google::Apis::Core::JsonRepresentation
2143
+ collection :developer_subscriptions, as: 'developerSubscriptions', class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1DeveloperSubscription, decorator: Google::Apis::ApigeeV1::GoogleCloudApigeeV1DeveloperSubscription::Representation
2144
+
2145
+ property :next_start_key, as: 'nextStartKey'
2146
+ end
2147
+ end
2148
+
2011
2149
  class GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse
2012
2150
  # @private
2013
2151
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2093,6 +2231,15 @@ module Google
2093
2231
  end
2094
2232
  end
2095
2233
 
2234
+ class GoogleCloudApigeeV1ListRatePlansResponse
2235
+ # @private
2236
+ class Representation < Google::Apis::Core::JsonRepresentation
2237
+ property :next_start_key, as: 'nextStartKey'
2238
+ collection :rate_plans, as: 'ratePlans', class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1RatePlan, decorator: Google::Apis::ApigeeV1::GoogleCloudApigeeV1RatePlan::Representation
2239
+
2240
+ end
2241
+ end
2242
+
2096
2243
  class GoogleCloudApigeeV1ListSharedFlowsResponse
2097
2244
  # @private
2098
2245
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2126,6 +2273,13 @@ module Google
2126
2273
  end
2127
2274
  end
2128
2275
 
2276
+ class GoogleCloudApigeeV1MonetizationConfig
2277
+ # @private
2278
+ class Representation < Google::Apis::Core::JsonRepresentation
2279
+ property :enabled, as: 'enabled'
2280
+ end
2281
+ end
2282
+
2129
2283
  class GoogleCloudApigeeV1NatAddress
2130
2284
  # @private
2131
2285
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2169,11 +2323,23 @@ module Google
2169
2323
  # @private
2170
2324
  class Representation < Google::Apis::Core::JsonRepresentation
2171
2325
  property :operation_type, as: 'operationType'
2326
+ property :progress, as: 'progress', class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1OperationMetadataProgress, decorator: Google::Apis::ApigeeV1::GoogleCloudApigeeV1OperationMetadataProgress::Representation
2327
+
2172
2328
  property :state, as: 'state'
2173
2329
  property :target_resource_name, as: 'targetResourceName'
2174
2330
  end
2175
2331
  end
2176
2332
 
2333
+ class GoogleCloudApigeeV1OperationMetadataProgress
2334
+ # @private
2335
+ class Representation < Google::Apis::Core::JsonRepresentation
2336
+ property :description, as: 'description'
2337
+ hash :details, as: 'details'
2338
+ property :percent_done, as: 'percentDone'
2339
+ property :state, as: 'state'
2340
+ end
2341
+ end
2342
+
2177
2343
  class GoogleCloudApigeeV1OptimizedStats
2178
2344
  # @private
2179
2345
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2204,6 +2370,8 @@ module Google
2204
2370
  class GoogleCloudApigeeV1Organization
2205
2371
  # @private
2206
2372
  class Representation < Google::Apis::Core::JsonRepresentation
2373
+ property :addons_config, as: 'addonsConfig', class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1AddonsConfig, decorator: Google::Apis::ApigeeV1::GoogleCloudApigeeV1AddonsConfig::Representation
2374
+
2207
2375
  property :analytics_region, as: 'analyticsRegion'
2208
2376
  collection :attributes, as: 'attributes'
2209
2377
  property :authorized_network, as: 'authorizedNetwork'
@@ -2335,6 +2503,45 @@ module Google
2335
2503
  end
2336
2504
  end
2337
2505
 
2506
+ class GoogleCloudApigeeV1RatePlan
2507
+ # @private
2508
+ class Representation < Google::Apis::Core::JsonRepresentation
2509
+ property :apiproduct, as: 'apiproduct'
2510
+ property :billing_period, as: 'billingPeriod'
2511
+ collection :consumption_pricing_rates, as: 'consumptionPricingRates', class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1RateRange, decorator: Google::Apis::ApigeeV1::GoogleCloudApigeeV1RateRange::Representation
2512
+
2513
+ property :consumption_pricing_type, as: 'consumptionPricingType'
2514
+ property :created_at, :numeric_string => true, as: 'createdAt'
2515
+ property :currency_code, as: 'currencyCode'
2516
+ property :description, as: 'description'
2517
+ property :display_name, as: 'displayName'
2518
+ property :end_time, :numeric_string => true, as: 'endTime'
2519
+ property :fixed_fee_frequency, as: 'fixedFeeFrequency'
2520
+ property :fixed_recurring_fee, as: 'fixedRecurringFee', class: Google::Apis::ApigeeV1::GoogleTypeMoney, decorator: Google::Apis::ApigeeV1::GoogleTypeMoney::Representation
2521
+
2522
+ property :last_modified_at, :numeric_string => true, as: 'lastModifiedAt'
2523
+ property :name, as: 'name'
2524
+ property :payment_funding_model, as: 'paymentFundingModel'
2525
+ collection :revenue_share_rates, as: 'revenueShareRates', class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1RevenueShareRange, decorator: Google::Apis::ApigeeV1::GoogleCloudApigeeV1RevenueShareRange::Representation
2526
+
2527
+ property :revenue_share_type, as: 'revenueShareType'
2528
+ property :setup_fee, as: 'setupFee', class: Google::Apis::ApigeeV1::GoogleTypeMoney, decorator: Google::Apis::ApigeeV1::GoogleTypeMoney::Representation
2529
+
2530
+ property :start_time, :numeric_string => true, as: 'startTime'
2531
+ property :state, as: 'state'
2532
+ end
2533
+ end
2534
+
2535
+ class GoogleCloudApigeeV1RateRange
2536
+ # @private
2537
+ class Representation < Google::Apis::Core::JsonRepresentation
2538
+ property :end, :numeric_string => true, as: 'end'
2539
+ property :fee, as: 'fee', class: Google::Apis::ApigeeV1::GoogleTypeMoney, decorator: Google::Apis::ApigeeV1::GoogleTypeMoney::Representation
2540
+
2541
+ property :start, :numeric_string => true, as: 'start'
2542
+ end
2543
+ end
2544
+
2338
2545
  class GoogleCloudApigeeV1Reference
2339
2546
  # @private
2340
2547
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2432,6 +2639,15 @@ module Google
2432
2639
  end
2433
2640
  end
2434
2641
 
2642
+ class GoogleCloudApigeeV1RevenueShareRange
2643
+ # @private
2644
+ class Representation < Google::Apis::Core::JsonRepresentation
2645
+ property :end, :numeric_string => true, as: 'end'
2646
+ property :share_percentage, as: 'sharePercentage'
2647
+ property :start, :numeric_string => true, as: 'start'
2648
+ end
2649
+ end
2650
+
2435
2651
  class GoogleCloudApigeeV1RevisionStatus
2436
2652
  # @private
2437
2653
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2535,6 +2751,14 @@ module Google
2535
2751
  end
2536
2752
  end
2537
2753
 
2754
+ class GoogleCloudApigeeV1SetAddonsRequest
2755
+ # @private
2756
+ class Representation < Google::Apis::Core::JsonRepresentation
2757
+ property :addons_config, as: 'addonsConfig', class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1AddonsConfig, decorator: Google::Apis::ApigeeV1::GoogleCloudApigeeV1AddonsConfig::Representation
2758
+
2759
+ end
2760
+ end
2761
+
2538
2762
  class GoogleCloudApigeeV1SharedFlow
2539
2763
  # @private
2540
2764
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2625,6 +2849,7 @@ module Google
2625
2849
  property :is_enabled, as: 'isEnabled'
2626
2850
  property :name, as: 'name'
2627
2851
  property :port, as: 'port'
2852
+ property :protocol, as: 'protocol'
2628
2853
  property :s_sl_info, as: 'sSLInfo', class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1TlsInfo, decorator: Google::Apis::ApigeeV1::GoogleCloudApigeeV1TlsInfo::Representation
2629
2854
 
2630
2855
  end
@@ -2636,6 +2861,7 @@ module Google
2636
2861
  property :host, as: 'host'
2637
2862
  property :name, as: 'name'
2638
2863
  property :port, as: 'port'
2864
+ property :protocol, as: 'protocol'
2639
2865
  property :tls_info, as: 'tlsInfo', class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1TlsInfoConfig, decorator: Google::Apis::ApigeeV1::GoogleCloudApigeeV1TlsInfoConfig::Representation
2640
2866
 
2641
2867
  end
@@ -2852,6 +3078,15 @@ module Google
2852
3078
  property :title, as: 'title'
2853
3079
  end
2854
3080
  end
3081
+
3082
+ class GoogleTypeMoney
3083
+ # @private
3084
+ class Representation < Google::Apis::Core::JsonRepresentation
3085
+ property :currency_code, as: 'currencyCode'
3086
+ property :nanos, as: 'nanos'
3087
+ property :units, :numeric_string => true, as: 'units'
3088
+ end
3089
+ end
2855
3090
  end
2856
3091
  end
2857
3092
  end
@@ -293,6 +293,41 @@ module Google
293
293
  execute_or_queue_command(command, &block)
294
294
  end
295
295
 
296
+ # Configures the add-ons for the Apigee organization. The existing add-on
297
+ # configuration will be fully replaced.
298
+ # @param [String] org
299
+ # Required. Name of the organization. Use the following structure in your
300
+ # request: `organizations/`org``
301
+ # @param [Google::Apis::ApigeeV1::GoogleCloudApigeeV1SetAddonsRequest] google_cloud_apigee_v1_set_addons_request_object
302
+ # @param [String] fields
303
+ # Selector specifying which fields to include in a partial response.
304
+ # @param [String] quota_user
305
+ # Available to use for quota purposes for server-side applications. Can be any
306
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
307
+ # @param [Google::Apis::RequestOptions] options
308
+ # Request-specific options
309
+ #
310
+ # @yield [result, err] Result & error if block supplied
311
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleLongrunningOperation] parsed result object
312
+ # @yieldparam err [StandardError] error object if request failed
313
+ #
314
+ # @return [Google::Apis::ApigeeV1::GoogleLongrunningOperation]
315
+ #
316
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
317
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
318
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
319
+ def set_organization_addons(org, google_cloud_apigee_v1_set_addons_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
320
+ command = make_simple_command(:post, 'v1/{+org}:setAddons', options)
321
+ command.request_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1SetAddonsRequest::Representation
322
+ command.request_object = google_cloud_apigee_v1_set_addons_request_object
323
+ command.response_representation = Google::Apis::ApigeeV1::GoogleLongrunningOperation::Representation
324
+ command.response_class = Google::Apis::ApigeeV1::GoogleLongrunningOperation
325
+ command.params['org'] = org unless org.nil?
326
+ command.query['fields'] = fields unless fields.nil?
327
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
328
+ execute_or_queue_command(command, &block)
329
+ end
330
+
296
331
  # Sets the permissions required to allow the Synchronizer to download
297
332
  # environment data from the control plane. You must call this API to enable
298
333
  # proper functioning of hybrid. Pass the ETag when calling `setSyncAuthorization`
@@ -618,12 +653,12 @@ module Google
618
653
  # collection of API resources combined with quota settings and metadata that you
619
654
  # can use to deliver customized and productized API bundles to your developer
620
655
  # community. This metadata can include: - Scope - Environments - API proxies -
621
- # Extensible profile API products enable you repackage APIs on-the-fly, without
656
+ # Extensible profile API products enable you repackage APIs on the fly, without
622
657
  # having to do any additional coding or configuration. Apigee recommends that
623
658
  # you start with a simple API product including only required elements. You then
624
659
  # provision credentials to apps to enable them to start testing your APIs. After
625
660
  # you have authentication and authorization working against a simple API product,
626
- # you can iterate to create finer grained API products, defining different sets
661
+ # you can iterate to create finer-grained API products, defining different sets
627
662
  # of API resources for each API product. **WARNING:** - If you don't specify an
628
663
  # API proxy in the request body, *any* app associated with the product can make
629
664
  # calls to *any* API in your entire organization. - If you don't specify an
@@ -736,9 +771,9 @@ module Google
736
771
  end
737
772
 
738
773
  # Lists all API product names for an organization. Filter the list by passing an
739
- # `attributename` and `attibutevalue`. The limit on the number of API products
740
- # returned by the API is 1000. You can paginate the list of API products
741
- # returned using the `startKey` and `count` query parameters.
774
+ # `attributename` and `attibutevalue`. The maximum number of API products
775
+ # returned is 1000. You can paginate the list of API products returned using the
776
+ # `startKey` and `count` query parameters.
742
777
  # @param [String] parent
743
778
  # Required. Name of the organization. Use the following structure in your
744
779
  # request: `organizations/`org``
@@ -793,7 +828,7 @@ module Google
793
828
  # Updates an existing API product. You must include all required values, whether
794
829
  # or not you are updating them, as well as any optional values that you are
795
830
  # updating. The API product name required in the request URL is the internal
796
- # name of the product, not the Display Name. While they may be the same, it
831
+ # name of the product, not the display name. While they may be the same, it
797
832
  # depends on whether the API product was created via UI or API. View the list of
798
833
  # API products to identify their internal names.
799
834
  # @param [String] name
@@ -963,6 +998,202 @@ module Google
963
998
  execute_or_queue_command(command, &block)
964
999
  end
965
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
+
966
1197
  # Creates an API proxy. The API proxy created will not be accessible at runtime
967
1198
  # until it is deployed to an environment. Create a new API proxy by setting the `
968
1199
  # name` query parameter to the name of the API proxy. Import an API proxy
@@ -2410,12 +2641,12 @@ module Google
2410
2641
 
2411
2642
  # Creates a custom consumer key and secret for a developer app. This is
2412
2643
  # particularly useful if you want to migrate existing consumer keys and secrets
2413
- # to Apigee hybrid from another system. Consumer keys and secrets can contain
2414
- # letters, numbers, underscores, and hyphens. No other special characters are
2415
- # allowed. To avoid service disruptions, a consumer key and secret should not
2416
- # exceed 2 KBs each. **Note**: When creating the consumer key and secret, an
2417
- # association to API products will not be made. Therefore, you should not
2418
- # specify the associated API products in your request. Instead, use the
2644
+ # to Apigee from another system. Consumer keys and secrets can contain letters,
2645
+ # numbers, underscores, and hyphens. No other special characters are allowed. To
2646
+ # avoid service disruptions, a consumer key and secret should not exceed 2 KBs
2647
+ # each. **Note**: When creating the consumer key and secret, an association to
2648
+ # API products will not be made. Therefore, you should not specify the
2649
+ # associated API products in your request. Instead, use the
2419
2650
  # UpdateDeveloperAppKey API to make the association after the consumer key and
2420
2651
  # secret are created. If a consumer key and secret already exist, you can keep
2421
2652
  # them or delete them using the DeleteDeveloperAppKey API.
@@ -2489,7 +2720,7 @@ module Google
2489
2720
  execute_or_queue_command(command, &block)
2490
2721
  end
2491
2722
 
2492
- # Returns details for a consumer key for a developer app, including the key and
2723
+ # Gets details for a consumer key for a developer app, including the key and
2493
2724
  # secret value, associated API products, and other information.
2494
2725
  # @param [String] name
2495
2726
  # Name of the developer app key. Use the following structure in your request: `
@@ -2637,11 +2868,11 @@ module Google
2637
2868
  execute_or_queue_command(command, &block)
2638
2869
  end
2639
2870
 
2640
- # Approve or revoke an app's consumer key. After a consumer key is approved, the
2641
- # app can use it to access APIs. A consumer key that is revoked or pending
2642
- # cannot be used to access an API. Any access tokens associated with a revoked
2643
- # consumer key will remain active. However, Apigee hybrid checks the status of
2644
- # the consumer key and if set to `revoked` will not allow access to the API.
2871
+ # Approves or revokes the consumer key for an API product. After a consumer key
2872
+ # is approved, the app can use it to access APIs. A consumer key that is revoked
2873
+ # or pending cannot be used to access an API. Any access tokens associated with
2874
+ # a revoked consumer key will remain active. However, Apigee checks the status
2875
+ # of the consumer key and if set to `revoked` will not allow access to the API.
2645
2876
  # @param [String] name
2646
2877
  # Name of the API product in the developer app key in the following format: `
2647
2878
  # organizations/`org`/developers/`developer_email`/apps/`app`/keys/`key`/
@@ -2679,12 +2910,12 @@ module Google
2679
2910
 
2680
2911
  # Creates a custom consumer key and secret for a developer app. This is
2681
2912
  # particularly useful if you want to migrate existing consumer keys and secrets
2682
- # to Apigee hybrid from another system. Consumer keys and secrets can contain
2683
- # letters, numbers, underscores, and hyphens. No other special characters are
2684
- # allowed. To avoid service disruptions, a consumer key and secret should not
2685
- # exceed 2 KBs each. **Note**: When creating the consumer key and secret, an
2686
- # association to API products will not be made. Therefore, you should not
2687
- # specify the associated API products in your request. Instead, use the
2913
+ # to Apigee from another system. Consumer keys and secrets can contain letters,
2914
+ # numbers, underscores, and hyphens. No other special characters are allowed. To
2915
+ # avoid service disruptions, a consumer key and secret should not exceed 2 KBs
2916
+ # each. **Note**: When creating the consumer key and secret, an association to
2917
+ # API products will not be made. Therefore, you should not specify the
2918
+ # associated API products in your request. Instead, use the
2688
2919
  # UpdateDeveloperAppKey API to make the association after the consumer key and
2689
2920
  # secret are created. If a consumer key and secret already exist, you can keep
2690
2921
  # them or delete them using the DeleteDeveloperAppKey API.
@@ -2856,6 +3087,150 @@ module Google
2856
3087
  execute_or_queue_command(command, &block)
2857
3088
  end
2858
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
+
2859
3234
  # Creates a new environment group.
2860
3235
  # @param [String] parent
2861
3236
  # Required. Name of the organization in which to create the environment group in
@@ -3700,15 +4075,19 @@ module Google
3700
4075
  execute_or_queue_command(command, &block)
3701
4076
  end
3702
4077
 
3703
- # Get a list of metrics and dimensions which can be used for creating analytics
3704
- # queries and reports. Each schema element contains the name of the field with
3705
- # its associated type and if it is either custom field or standard field.
4078
+ # Gets a list of metrics and dimensions that can be used to create analytics
4079
+ # queries and reports. Each schema element contains the name of the field, its
4080
+ # associated type, and a flag indicating whether it is a standard or custom
4081
+ # field.
3706
4082
  # @param [String] name
3707
- # Required. The parent organization and environment names. Must be of the form `
4083
+ # Required. Path to the schema. Use the following structure in your request: `
3708
4084
  # organizations/`org`/environments/`env`/analytics/admin/schemav2`.
4085
+ # @param [Boolean] disable_cache
4086
+ # Flag that specifies whether the schema is be read from the database or cache.
4087
+ # Set to `true` to read the schema from the database. Defaults to cache.
3709
4088
  # @param [String] type
3710
- # Required. Type refers to the dataset name whose schema needs to be retrieved E.
3711
- # g. type=fact or type=agg_cus1
4089
+ # Required. Name of the dataset for which you want to retrieve the schema. For
4090
+ # example: `fact` or `agg_cus1`
3712
4091
  # @param [String] fields
3713
4092
  # Selector specifying which fields to include in a partial response.
3714
4093
  # @param [String] quota_user
@@ -3726,11 +4105,12 @@ module Google
3726
4105
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3727
4106
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3728
4107
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3729
- def get_organization_environment_analytic_admin_schemav2(name, type: nil, fields: nil, quota_user: nil, options: nil, &block)
4108
+ def get_organization_environment_analytic_admin_schemav2(name, disable_cache: nil, type: nil, fields: nil, quota_user: nil, options: nil, &block)
3730
4109
  command = make_simple_command(:get, 'v1/{+name}', options)
3731
4110
  command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1Schema::Representation
3732
4111
  command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1Schema
3733
4112
  command.params['name'] = name unless name.nil?
4113
+ command.query['disableCache'] = disable_cache unless disable_cache.nil?
3734
4114
  command.query['type'] = type unless type.nil?
3735
4115
  command.query['fields'] = fields unless fields.nil?
3736
4116
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -3901,6 +4281,10 @@ module Google
3901
4281
  # GenerateDeployChangeReport) may be used to examine routing changes before
3902
4282
  # issuing the deployment request, and its response will indicate if a sequenced
3903
4283
  # rollout is recommended for the deployment.
4284
+ # @param [String] service_account
4285
+ # Google Cloud IAM service account. The service account represents the identity
4286
+ # of the deployed proxy, and determines what permissions it has. The format must
4287
+ # be ``ACCOUNT_ID`@`PROJECT`.iam.gserviceaccount.com`.
3904
4288
  # @param [String] fields
3905
4289
  # Selector specifying which fields to include in a partial response.
3906
4290
  # @param [String] quota_user
@@ -3918,13 +4302,14 @@ module Google
3918
4302
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3919
4303
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3920
4304
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3921
- def deploy_organization_environment_api_revision(name, override: nil, sequenced_rollout: nil, fields: nil, quota_user: nil, options: nil, &block)
4305
+ def deploy_organization_environment_api_revision(name, override: nil, sequenced_rollout: nil, service_account: nil, fields: nil, quota_user: nil, options: nil, &block)
3922
4306
  command = make_simple_command(:post, 'v1/{+name}/deployments', options)
3923
4307
  command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1Deployment::Representation
3924
4308
  command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1Deployment
3925
4309
  command.params['name'] = name unless name.nil?
3926
4310
  command.query['override'] = override unless override.nil?
3927
4311
  command.query['sequencedRollout'] = sequenced_rollout unless sequenced_rollout.nil?
4312
+ command.query['serviceAccount'] = service_account unless service_account.nil?
3928
4313
  command.query['fields'] = fields unless fields.nil?
3929
4314
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3930
4315
  execute_or_queue_command(command, &block)
@@ -5516,6 +5901,10 @@ module Google
5516
5901
  # replace other deployed revisions. By default, `override` is `false` and the
5517
5902
  # deployment is rejected if other revisions of the shared flow are deployed in
5518
5903
  # the environment.
5904
+ # @param [String] service_account
5905
+ # Google Cloud IAM service account. The service account represents the identity
5906
+ # of the deployed proxy, and determines what permissions it has. The format must
5907
+ # be ``ACCOUNT_ID`@`PROJECT`.iam.gserviceaccount.com`.
5519
5908
  # @param [String] fields
5520
5909
  # Selector specifying which fields to include in a partial response.
5521
5910
  # @param [String] quota_user
@@ -5533,12 +5922,13 @@ module Google
5533
5922
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5534
5923
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5535
5924
  # @raise [Google::Apis::AuthorizationError] Authorization is required
5536
- def deploy_organization_environment_sharedflow_revision(name, override: nil, fields: nil, quota_user: nil, options: nil, &block)
5925
+ def deploy_organization_environment_sharedflow_revision(name, override: nil, service_account: nil, fields: nil, quota_user: nil, options: nil, &block)
5537
5926
  command = make_simple_command(:post, 'v1/{+name}/deployments', options)
5538
5927
  command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1Deployment::Representation
5539
5928
  command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1Deployment
5540
5929
  command.params['name'] = name unless name.nil?
5541
5930
  command.query['override'] = override unless override.nil?
5931
+ command.query['serviceAccount'] = service_account unless service_account.nil?
5542
5932
  command.query['fields'] = fields unless fields.nil?
5543
5933
  command.query['quotaUser'] = quota_user unless quota_user.nil?
5544
5934
  execute_or_queue_command(command, &block)