google-cloud-channel-v1 0.9.0 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f2c17c7215f7f7b7d29f6a470bcaae01e4ea390bb0ba57050eece921c969d394
4
- data.tar.gz: fb544c4f0786ec81f4b65a0eec48d3fce30c463b8786d547bf1e6adf922fe7af
3
+ metadata.gz: e1b83dee910e5f719827333778d46580b7ad3f84e587c2771c8a59193ca9c019
4
+ data.tar.gz: 34c91f1f7aae7d6a7017bc9c468d64491f8b79f82911bc5d4b2e47eb3d84989e
5
5
  SHA512:
6
- metadata.gz: d1af54f5b44582fbd75eb0d4cec0e10c47650d0b2498f3edb2cb852146cc134e507ded696375517b9705a2883a3938bdebf45ad3c1faf4a4dcd3a4d10a1157b4
7
- data.tar.gz: 80d4224531a08b5523ac8b2086654b54d7f8b0698fbc134b967c7a6b30da1540312fc99667ae516702f9b3f2739ea3a551c32ff7209dc3e0009aab3587897337
6
+ metadata.gz: 4e1193072ede18fdd79871a5f9695f6b92a1d9d4d57ee20b152784a3d25adfaa89077a453c9b42878f7cfea9f2ee614c050b752797cd6d210ef637a37627b3f6
7
+ data.tar.gz: d7465db4858f5931aaa8876dad1de87a3e8cc3c3ce30828edd7636252beb79fc03b7d824fc002b4ae598261005240179be783576b43f2a2fb78a510c7e3a51ca
@@ -249,6 +249,27 @@ module Google
249
249
  #
250
250
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
251
251
  #
252
+ # @example Basic example
253
+ # require "google/cloud/channel/v1"
254
+ #
255
+ # # Create a client object. The client can be reused for multiple calls.
256
+ # client = Google::Cloud::Channel::V1::CloudChannelService::Client.new
257
+ #
258
+ # # Create a request. To set request fields, pass in keyword arguments.
259
+ # request = Google::Cloud::Channel::V1::ListCustomersRequest.new
260
+ #
261
+ # # Call the list_customers method.
262
+ # result = client.list_customers request
263
+ #
264
+ # # The returned object is of type Gapic::PagedEnumerable. You can
265
+ # # iterate over all elements by calling #each, and the enumerable
266
+ # # will lazily make API calls to fetch subsequent pages. Other
267
+ # # methods are also available for managing paging directly.
268
+ # result.each do |response|
269
+ # # Each element is of type ::Google::Cloud::Channel::V1::Customer.
270
+ # p response
271
+ # end
272
+ #
252
273
  def list_customers request, options = nil
253
274
  raise ::ArgumentError, "request must be provided" if request.nil?
254
275
 
@@ -332,6 +353,21 @@ module Google
332
353
  #
333
354
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
334
355
  #
356
+ # @example Basic example
357
+ # require "google/cloud/channel/v1"
358
+ #
359
+ # # Create a client object. The client can be reused for multiple calls.
360
+ # client = Google::Cloud::Channel::V1::CloudChannelService::Client.new
361
+ #
362
+ # # Create a request. To set request fields, pass in keyword arguments.
363
+ # request = Google::Cloud::Channel::V1::GetCustomerRequest.new
364
+ #
365
+ # # Call the get_customer method.
366
+ # result = client.get_customer request
367
+ #
368
+ # # The returned object is of type Google::Cloud::Channel::V1::Customer.
369
+ # p result
370
+ #
335
371
  def get_customer request, options = nil
336
372
  raise ::ArgumentError, "request must be provided" if request.nil?
337
373
 
@@ -420,6 +456,21 @@ module Google
420
456
  #
421
457
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
422
458
  #
459
+ # @example Basic example
460
+ # require "google/cloud/channel/v1"
461
+ #
462
+ # # Create a client object. The client can be reused for multiple calls.
463
+ # client = Google::Cloud::Channel::V1::CloudChannelService::Client.new
464
+ #
465
+ # # Create a request. To set request fields, pass in keyword arguments.
466
+ # request = Google::Cloud::Channel::V1::CheckCloudIdentityAccountsExistRequest.new
467
+ #
468
+ # # Call the check_cloud_identity_accounts_exist method.
469
+ # result = client.check_cloud_identity_accounts_exist request
470
+ #
471
+ # # The returned object is of type Google::Cloud::Channel::V1::CheckCloudIdentityAccountsExistResponse.
472
+ # p result
473
+ #
423
474
  def check_cloud_identity_accounts_exist request, options = nil
424
475
  raise ::ArgumentError, "request must be provided" if request.nil?
425
476
 
@@ -505,6 +556,21 @@ module Google
505
556
  #
506
557
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
507
558
  #
559
+ # @example Basic example
560
+ # require "google/cloud/channel/v1"
561
+ #
562
+ # # Create a client object. The client can be reused for multiple calls.
563
+ # client = Google::Cloud::Channel::V1::CloudChannelService::Client.new
564
+ #
565
+ # # Create a request. To set request fields, pass in keyword arguments.
566
+ # request = Google::Cloud::Channel::V1::CreateCustomerRequest.new
567
+ #
568
+ # # Call the create_customer method.
569
+ # result = client.create_customer request
570
+ #
571
+ # # The returned object is of type Google::Cloud::Channel::V1::Customer.
572
+ # p result
573
+ #
508
574
  def create_customer request, options = nil
509
575
  raise ::ArgumentError, "request must be provided" if request.nil?
510
576
 
@@ -589,6 +655,21 @@ module Google
589
655
  #
590
656
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
591
657
  #
658
+ # @example Basic example
659
+ # require "google/cloud/channel/v1"
660
+ #
661
+ # # Create a client object. The client can be reused for multiple calls.
662
+ # client = Google::Cloud::Channel::V1::CloudChannelService::Client.new
663
+ #
664
+ # # Create a request. To set request fields, pass in keyword arguments.
665
+ # request = Google::Cloud::Channel::V1::UpdateCustomerRequest.new
666
+ #
667
+ # # Call the update_customer method.
668
+ # result = client.update_customer request
669
+ #
670
+ # # The returned object is of type Google::Cloud::Channel::V1::Customer.
671
+ # p result
672
+ #
592
673
  def update_customer request, options = nil
593
674
  raise ::ArgumentError, "request must be provided" if request.nil?
594
675
 
@@ -667,6 +748,21 @@ module Google
667
748
  #
668
749
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
669
750
  #
751
+ # @example Basic example
752
+ # require "google/cloud/channel/v1"
753
+ #
754
+ # # Create a client object. The client can be reused for multiple calls.
755
+ # client = Google::Cloud::Channel::V1::CloudChannelService::Client.new
756
+ #
757
+ # # Create a request. To set request fields, pass in keyword arguments.
758
+ # request = Google::Cloud::Channel::V1::DeleteCustomerRequest.new
759
+ #
760
+ # # Call the delete_customer method.
761
+ # result = client.delete_customer request
762
+ #
763
+ # # The returned object is of type Google::Protobuf::Empty.
764
+ # p result
765
+ #
670
766
  def delete_customer request, options = nil
671
767
  raise ::ArgumentError, "request must be provided" if request.nil?
672
768
 
@@ -776,6 +872,21 @@ module Google
776
872
  #
777
873
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
778
874
  #
875
+ # @example Basic example
876
+ # require "google/cloud/channel/v1"
877
+ #
878
+ # # Create a client object. The client can be reused for multiple calls.
879
+ # client = Google::Cloud::Channel::V1::CloudChannelService::Client.new
880
+ #
881
+ # # Create a request. To set request fields, pass in keyword arguments.
882
+ # request = Google::Cloud::Channel::V1::ImportCustomerRequest.new
883
+ #
884
+ # # Call the import_customer method.
885
+ # result = client.import_customer request
886
+ #
887
+ # # The returned object is of type Google::Cloud::Channel::V1::Customer.
888
+ # p result
889
+ #
779
890
  def import_customer request, options = nil
780
891
  raise ::ArgumentError, "request must be provided" if request.nil?
781
892
 
@@ -873,6 +984,28 @@ module Google
873
984
  #
874
985
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
875
986
  #
987
+ # @example Basic example
988
+ # require "google/cloud/channel/v1"
989
+ #
990
+ # # Create a client object. The client can be reused for multiple calls.
991
+ # client = Google::Cloud::Channel::V1::CloudChannelService::Client.new
992
+ #
993
+ # # Create a request. To set request fields, pass in keyword arguments.
994
+ # request = Google::Cloud::Channel::V1::ProvisionCloudIdentityRequest.new
995
+ #
996
+ # # Call the provision_cloud_identity method.
997
+ # result = client.provision_cloud_identity request
998
+ #
999
+ # # The returned object is of type Gapic::Operation. You can use this
1000
+ # # object to check the status of an operation, cancel it, or wait
1001
+ # # for results. Here is how to block until completion:
1002
+ # result.wait_until_done! timeout: 60
1003
+ # if result.response?
1004
+ # p result.response
1005
+ # else
1006
+ # puts "Error!"
1007
+ # end
1008
+ #
876
1009
  def provision_cloud_identity request, options = nil
877
1010
  raise ::ArgumentError, "request must be provided" if request.nil?
878
1011
 
@@ -963,6 +1096,27 @@ module Google
963
1096
  #
964
1097
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
965
1098
  #
1099
+ # @example Basic example
1100
+ # require "google/cloud/channel/v1"
1101
+ #
1102
+ # # Create a client object. The client can be reused for multiple calls.
1103
+ # client = Google::Cloud::Channel::V1::CloudChannelService::Client.new
1104
+ #
1105
+ # # Create a request. To set request fields, pass in keyword arguments.
1106
+ # request = Google::Cloud::Channel::V1::ListEntitlementsRequest.new
1107
+ #
1108
+ # # Call the list_entitlements method.
1109
+ # result = client.list_entitlements request
1110
+ #
1111
+ # # The returned object is of type Gapic::PagedEnumerable. You can
1112
+ # # iterate over all elements by calling #each, and the enumerable
1113
+ # # will lazily make API calls to fetch subsequent pages. Other
1114
+ # # methods are also available for managing paging directly.
1115
+ # result.each do |response|
1116
+ # # Each element is of type ::Google::Cloud::Channel::V1::Entitlement.
1117
+ # p response
1118
+ # end
1119
+ #
966
1120
  def list_entitlements request, options = nil
967
1121
  raise ::ArgumentError, "request must be provided" if request.nil?
968
1122
 
@@ -1080,6 +1234,27 @@ module Google
1080
1234
  #
1081
1235
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1082
1236
  #
1237
+ # @example Basic example
1238
+ # require "google/cloud/channel/v1"
1239
+ #
1240
+ # # Create a client object. The client can be reused for multiple calls.
1241
+ # client = Google::Cloud::Channel::V1::CloudChannelService::Client.new
1242
+ #
1243
+ # # Create a request. To set request fields, pass in keyword arguments.
1244
+ # request = Google::Cloud::Channel::V1::ListTransferableSkusRequest.new
1245
+ #
1246
+ # # Call the list_transferable_skus method.
1247
+ # result = client.list_transferable_skus request
1248
+ #
1249
+ # # The returned object is of type Gapic::PagedEnumerable. You can
1250
+ # # iterate over all elements by calling #each, and the enumerable
1251
+ # # will lazily make API calls to fetch subsequent pages. Other
1252
+ # # methods are also available for managing paging directly.
1253
+ # result.each do |response|
1254
+ # # Each element is of type ::Google::Cloud::Channel::V1::TransferableSku.
1255
+ # p response
1256
+ # end
1257
+ #
1083
1258
  def list_transferable_skus request, options = nil
1084
1259
  raise ::ArgumentError, "request must be provided" if request.nil?
1085
1260
 
@@ -1188,6 +1363,27 @@ module Google
1188
1363
  #
1189
1364
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1190
1365
  #
1366
+ # @example Basic example
1367
+ # require "google/cloud/channel/v1"
1368
+ #
1369
+ # # Create a client object. The client can be reused for multiple calls.
1370
+ # client = Google::Cloud::Channel::V1::CloudChannelService::Client.new
1371
+ #
1372
+ # # Create a request. To set request fields, pass in keyword arguments.
1373
+ # request = Google::Cloud::Channel::V1::ListTransferableOffersRequest.new
1374
+ #
1375
+ # # Call the list_transferable_offers method.
1376
+ # result = client.list_transferable_offers request
1377
+ #
1378
+ # # The returned object is of type Gapic::PagedEnumerable. You can
1379
+ # # iterate over all elements by calling #each, and the enumerable
1380
+ # # will lazily make API calls to fetch subsequent pages. Other
1381
+ # # methods are also available for managing paging directly.
1382
+ # result.each do |response|
1383
+ # # Each element is of type ::Google::Cloud::Channel::V1::TransferableOffer.
1384
+ # p response
1385
+ # end
1386
+ #
1191
1387
  def list_transferable_offers request, options = nil
1192
1388
  raise ::ArgumentError, "request must be provided" if request.nil?
1193
1389
 
@@ -1270,6 +1466,21 @@ module Google
1270
1466
  #
1271
1467
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1272
1468
  #
1469
+ # @example Basic example
1470
+ # require "google/cloud/channel/v1"
1471
+ #
1472
+ # # Create a client object. The client can be reused for multiple calls.
1473
+ # client = Google::Cloud::Channel::V1::CloudChannelService::Client.new
1474
+ #
1475
+ # # Create a request. To set request fields, pass in keyword arguments.
1476
+ # request = Google::Cloud::Channel::V1::GetEntitlementRequest.new
1477
+ #
1478
+ # # Call the get_entitlement method.
1479
+ # result = client.get_entitlement request
1480
+ #
1481
+ # # The returned object is of type Google::Cloud::Channel::V1::Entitlement.
1482
+ # p result
1483
+ #
1273
1484
  def get_entitlement request, options = nil
1274
1485
  raise ::ArgumentError, "request must be provided" if request.nil?
1275
1486
 
@@ -1391,6 +1602,28 @@ module Google
1391
1602
  #
1392
1603
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1393
1604
  #
1605
+ # @example Basic example
1606
+ # require "google/cloud/channel/v1"
1607
+ #
1608
+ # # Create a client object. The client can be reused for multiple calls.
1609
+ # client = Google::Cloud::Channel::V1::CloudChannelService::Client.new
1610
+ #
1611
+ # # Create a request. To set request fields, pass in keyword arguments.
1612
+ # request = Google::Cloud::Channel::V1::CreateEntitlementRequest.new
1613
+ #
1614
+ # # Call the create_entitlement method.
1615
+ # result = client.create_entitlement request
1616
+ #
1617
+ # # The returned object is of type Gapic::Operation. You can use this
1618
+ # # object to check the status of an operation, cancel it, or wait
1619
+ # # for results. Here is how to block until completion:
1620
+ # result.wait_until_done! timeout: 60
1621
+ # if result.response?
1622
+ # p result.response
1623
+ # else
1624
+ # puts "Error!"
1625
+ # end
1626
+ #
1394
1627
  def create_entitlement request, options = nil
1395
1628
  raise ::ArgumentError, "request must be provided" if request.nil?
1396
1629
 
@@ -1479,6 +1712,9 @@ module Google
1479
1712
  # accounts/\\{account_id}/customers/\\{customer_id}/entitlements/\\{entitlement_id}
1480
1713
  # @param parameters [::Array<::Google::Cloud::Channel::V1::Parameter, ::Hash>]
1481
1714
  # Required. Entitlement parameters to update. You can only change editable parameters.
1715
+ #
1716
+ # To view the available Parameters for a request, refer to the
1717
+ # {::Google::Cloud::Channel::V1::Offer#parameter_definitions Offer.parameter_definitions} from the desired offer.
1482
1718
  # @param request_id [::String]
1483
1719
  # Optional. You can specify an optional unique request ID, and if you need to retry
1484
1720
  # your request, the server will know to ignore the request if it's complete.
@@ -1502,6 +1738,28 @@ module Google
1502
1738
  #
1503
1739
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1504
1740
  #
1741
+ # @example Basic example
1742
+ # require "google/cloud/channel/v1"
1743
+ #
1744
+ # # Create a client object. The client can be reused for multiple calls.
1745
+ # client = Google::Cloud::Channel::V1::CloudChannelService::Client.new
1746
+ #
1747
+ # # Create a request. To set request fields, pass in keyword arguments.
1748
+ # request = Google::Cloud::Channel::V1::ChangeParametersRequest.new
1749
+ #
1750
+ # # Call the change_parameters method.
1751
+ # result = client.change_parameters request
1752
+ #
1753
+ # # The returned object is of type Gapic::Operation. You can use this
1754
+ # # object to check the status of an operation, cancel it, or wait
1755
+ # # for results. Here is how to block until completion:
1756
+ # result.wait_until_done! timeout: 60
1757
+ # if result.response?
1758
+ # p result.response
1759
+ # else
1760
+ # puts "Error!"
1761
+ # end
1762
+ #
1505
1763
  def change_parameters request, options = nil
1506
1764
  raise ::ArgumentError, "request must be provided" if request.nil?
1507
1765
 
@@ -1611,6 +1869,28 @@ module Google
1611
1869
  #
1612
1870
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1613
1871
  #
1872
+ # @example Basic example
1873
+ # require "google/cloud/channel/v1"
1874
+ #
1875
+ # # Create a client object. The client can be reused for multiple calls.
1876
+ # client = Google::Cloud::Channel::V1::CloudChannelService::Client.new
1877
+ #
1878
+ # # Create a request. To set request fields, pass in keyword arguments.
1879
+ # request = Google::Cloud::Channel::V1::ChangeRenewalSettingsRequest.new
1880
+ #
1881
+ # # Call the change_renewal_settings method.
1882
+ # result = client.change_renewal_settings request
1883
+ #
1884
+ # # The returned object is of type Gapic::Operation. You can use this
1885
+ # # object to check the status of an operation, cancel it, or wait
1886
+ # # for results. Here is how to block until completion:
1887
+ # result.wait_until_done! timeout: 60
1888
+ # if result.response?
1889
+ # p result.response
1890
+ # else
1891
+ # puts "Error!"
1892
+ # end
1893
+ #
1614
1894
  def change_renewal_settings request, options = nil
1615
1895
  raise ::ArgumentError, "request must be provided" if request.nil?
1616
1896
 
@@ -1699,7 +1979,8 @@ module Google
1699
1979
  # Required. New Offer.
1700
1980
  # Format: accounts/\\{account_id}/offers/\\{offer_id}.
1701
1981
  # @param parameters [::Array<::Google::Cloud::Channel::V1::Parameter, ::Hash>]
1702
- # Optional. Parameters needed to purchase the Offer.
1982
+ # Optional. Parameters needed to purchase the Offer. To view the available Parameters
1983
+ # refer to the {::Google::Cloud::Channel::V1::Offer#parameter_definitions Offer.parameter_definitions} from the desired offer.
1703
1984
  # @param purchase_order_id [::String]
1704
1985
  # Optional. Purchase order id provided by the reseller.
1705
1986
  # @param request_id [::String]
@@ -1723,6 +2004,28 @@ module Google
1723
2004
  #
1724
2005
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1725
2006
  #
2007
+ # @example Basic example
2008
+ # require "google/cloud/channel/v1"
2009
+ #
2010
+ # # Create a client object. The client can be reused for multiple calls.
2011
+ # client = Google::Cloud::Channel::V1::CloudChannelService::Client.new
2012
+ #
2013
+ # # Create a request. To set request fields, pass in keyword arguments.
2014
+ # request = Google::Cloud::Channel::V1::ChangeOfferRequest.new
2015
+ #
2016
+ # # Call the change_offer method.
2017
+ # result = client.change_offer request
2018
+ #
2019
+ # # The returned object is of type Gapic::Operation. You can use this
2020
+ # # object to check the status of an operation, cancel it, or wait
2021
+ # # for results. Here is how to block until completion:
2022
+ # result.wait_until_done! timeout: 60
2023
+ # if result.response?
2024
+ # p result.response
2025
+ # else
2026
+ # puts "Error!"
2027
+ # end
2028
+ #
1726
2029
  def change_offer request, options = nil
1727
2030
  raise ::ArgumentError, "request must be provided" if request.nil?
1728
2031
 
@@ -1831,6 +2134,28 @@ module Google
1831
2134
  #
1832
2135
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1833
2136
  #
2137
+ # @example Basic example
2138
+ # require "google/cloud/channel/v1"
2139
+ #
2140
+ # # Create a client object. The client can be reused for multiple calls.
2141
+ # client = Google::Cloud::Channel::V1::CloudChannelService::Client.new
2142
+ #
2143
+ # # Create a request. To set request fields, pass in keyword arguments.
2144
+ # request = Google::Cloud::Channel::V1::StartPaidServiceRequest.new
2145
+ #
2146
+ # # Call the start_paid_service method.
2147
+ # result = client.start_paid_service request
2148
+ #
2149
+ # # The returned object is of type Gapic::Operation. You can use this
2150
+ # # object to check the status of an operation, cancel it, or wait
2151
+ # # for results. Here is how to block until completion:
2152
+ # result.wait_until_done! timeout: 60
2153
+ # if result.response?
2154
+ # p result.response
2155
+ # else
2156
+ # puts "Error!"
2157
+ # end
2158
+ #
1834
2159
  def start_paid_service request, options = nil
1835
2160
  raise ::ArgumentError, "request must be provided" if request.nil?
1836
2161
 
@@ -1936,6 +2261,28 @@ module Google
1936
2261
  #
1937
2262
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1938
2263
  #
2264
+ # @example Basic example
2265
+ # require "google/cloud/channel/v1"
2266
+ #
2267
+ # # Create a client object. The client can be reused for multiple calls.
2268
+ # client = Google::Cloud::Channel::V1::CloudChannelService::Client.new
2269
+ #
2270
+ # # Create a request. To set request fields, pass in keyword arguments.
2271
+ # request = Google::Cloud::Channel::V1::SuspendEntitlementRequest.new
2272
+ #
2273
+ # # Call the suspend_entitlement method.
2274
+ # result = client.suspend_entitlement request
2275
+ #
2276
+ # # The returned object is of type Gapic::Operation. You can use this
2277
+ # # object to check the status of an operation, cancel it, or wait
2278
+ # # for results. Here is how to block until completion:
2279
+ # result.wait_until_done! timeout: 60
2280
+ # if result.response?
2281
+ # p result.response
2282
+ # else
2283
+ # puts "Error!"
2284
+ # end
2285
+ #
1939
2286
  def suspend_entitlement request, options = nil
1940
2287
  raise ::ArgumentError, "request must be provided" if request.nil?
1941
2288
 
@@ -2046,6 +2393,28 @@ module Google
2046
2393
  #
2047
2394
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2048
2395
  #
2396
+ # @example Basic example
2397
+ # require "google/cloud/channel/v1"
2398
+ #
2399
+ # # Create a client object. The client can be reused for multiple calls.
2400
+ # client = Google::Cloud::Channel::V1::CloudChannelService::Client.new
2401
+ #
2402
+ # # Create a request. To set request fields, pass in keyword arguments.
2403
+ # request = Google::Cloud::Channel::V1::CancelEntitlementRequest.new
2404
+ #
2405
+ # # Call the cancel_entitlement method.
2406
+ # result = client.cancel_entitlement request
2407
+ #
2408
+ # # The returned object is of type Gapic::Operation. You can use this
2409
+ # # object to check the status of an operation, cancel it, or wait
2410
+ # # for results. Here is how to block until completion:
2411
+ # result.wait_until_done! timeout: 60
2412
+ # if result.response?
2413
+ # p result.response
2414
+ # else
2415
+ # puts "Error!"
2416
+ # end
2417
+ #
2049
2418
  def cancel_entitlement request, options = nil
2050
2419
  raise ::ArgumentError, "request must be provided" if request.nil?
2051
2420
 
@@ -2157,6 +2526,28 @@ module Google
2157
2526
  #
2158
2527
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2159
2528
  #
2529
+ # @example Basic example
2530
+ # require "google/cloud/channel/v1"
2531
+ #
2532
+ # # Create a client object. The client can be reused for multiple calls.
2533
+ # client = Google::Cloud::Channel::V1::CloudChannelService::Client.new
2534
+ #
2535
+ # # Create a request. To set request fields, pass in keyword arguments.
2536
+ # request = Google::Cloud::Channel::V1::ActivateEntitlementRequest.new
2537
+ #
2538
+ # # Call the activate_entitlement method.
2539
+ # result = client.activate_entitlement request
2540
+ #
2541
+ # # The returned object is of type Gapic::Operation. You can use this
2542
+ # # object to check the status of an operation, cancel it, or wait
2543
+ # # for results. Here is how to block until completion:
2544
+ # result.wait_until_done! timeout: 60
2545
+ # if result.response?
2546
+ # p result.response
2547
+ # else
2548
+ # puts "Error!"
2549
+ # end
2550
+ #
2160
2551
  def activate_entitlement request, options = nil
2161
2552
  raise ::ArgumentError, "request must be provided" if request.nil?
2162
2553
 
@@ -2277,6 +2668,28 @@ module Google
2277
2668
  #
2278
2669
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2279
2670
  #
2671
+ # @example Basic example
2672
+ # require "google/cloud/channel/v1"
2673
+ #
2674
+ # # Create a client object. The client can be reused for multiple calls.
2675
+ # client = Google::Cloud::Channel::V1::CloudChannelService::Client.new
2676
+ #
2677
+ # # Create a request. To set request fields, pass in keyword arguments.
2678
+ # request = Google::Cloud::Channel::V1::TransferEntitlementsRequest.new
2679
+ #
2680
+ # # Call the transfer_entitlements method.
2681
+ # result = client.transfer_entitlements request
2682
+ #
2683
+ # # The returned object is of type Gapic::Operation. You can use this
2684
+ # # object to check the status of an operation, cancel it, or wait
2685
+ # # for results. Here is how to block until completion:
2686
+ # result.wait_until_done! timeout: 60
2687
+ # if result.response?
2688
+ # p result.response
2689
+ # else
2690
+ # puts "Error!"
2691
+ # end
2692
+ #
2280
2693
  def transfer_entitlements request, options = nil
2281
2694
  raise ::ArgumentError, "request must be provided" if request.nil?
2282
2695
 
@@ -2392,6 +2805,28 @@ module Google
2392
2805
  #
2393
2806
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2394
2807
  #
2808
+ # @example Basic example
2809
+ # require "google/cloud/channel/v1"
2810
+ #
2811
+ # # Create a client object. The client can be reused for multiple calls.
2812
+ # client = Google::Cloud::Channel::V1::CloudChannelService::Client.new
2813
+ #
2814
+ # # Create a request. To set request fields, pass in keyword arguments.
2815
+ # request = Google::Cloud::Channel::V1::TransferEntitlementsToGoogleRequest.new
2816
+ #
2817
+ # # Call the transfer_entitlements_to_google method.
2818
+ # result = client.transfer_entitlements_to_google request
2819
+ #
2820
+ # # The returned object is of type Gapic::Operation. You can use this
2821
+ # # object to check the status of an operation, cancel it, or wait
2822
+ # # for results. Here is how to block until completion:
2823
+ # result.wait_until_done! timeout: 60
2824
+ # if result.response?
2825
+ # p result.response
2826
+ # else
2827
+ # puts "Error!"
2828
+ # end
2829
+ #
2395
2830
  def transfer_entitlements_to_google request, options = nil
2396
2831
  raise ::ArgumentError, "request must be provided" if request.nil?
2397
2832
 
@@ -2486,6 +2921,27 @@ module Google
2486
2921
  #
2487
2922
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2488
2923
  #
2924
+ # @example Basic example
2925
+ # require "google/cloud/channel/v1"
2926
+ #
2927
+ # # Create a client object. The client can be reused for multiple calls.
2928
+ # client = Google::Cloud::Channel::V1::CloudChannelService::Client.new
2929
+ #
2930
+ # # Create a request. To set request fields, pass in keyword arguments.
2931
+ # request = Google::Cloud::Channel::V1::ListChannelPartnerLinksRequest.new
2932
+ #
2933
+ # # Call the list_channel_partner_links method.
2934
+ # result = client.list_channel_partner_links request
2935
+ #
2936
+ # # The returned object is of type Gapic::PagedEnumerable. You can
2937
+ # # iterate over all elements by calling #each, and the enumerable
2938
+ # # will lazily make API calls to fetch subsequent pages. Other
2939
+ # # methods are also available for managing paging directly.
2940
+ # result.each do |response|
2941
+ # # Each element is of type ::Google::Cloud::Channel::V1::ChannelPartnerLink.
2942
+ # p response
2943
+ # end
2944
+ #
2489
2945
  def list_channel_partner_links request, options = nil
2490
2946
  raise ::ArgumentError, "request must be provided" if request.nil?
2491
2947
 
@@ -2573,6 +3029,21 @@ module Google
2573
3029
  #
2574
3030
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2575
3031
  #
3032
+ # @example Basic example
3033
+ # require "google/cloud/channel/v1"
3034
+ #
3035
+ # # Create a client object. The client can be reused for multiple calls.
3036
+ # client = Google::Cloud::Channel::V1::CloudChannelService::Client.new
3037
+ #
3038
+ # # Create a request. To set request fields, pass in keyword arguments.
3039
+ # request = Google::Cloud::Channel::V1::GetChannelPartnerLinkRequest.new
3040
+ #
3041
+ # # Call the get_channel_partner_link method.
3042
+ # result = client.get_channel_partner_link request
3043
+ #
3044
+ # # The returned object is of type Google::Cloud::Channel::V1::ChannelPartnerLink.
3045
+ # p result
3046
+ #
2576
3047
  def get_channel_partner_link request, options = nil
2577
3048
  raise ::ArgumentError, "request must be provided" if request.nil?
2578
3049
 
@@ -2670,6 +3141,21 @@ module Google
2670
3141
  #
2671
3142
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2672
3143
  #
3144
+ # @example Basic example
3145
+ # require "google/cloud/channel/v1"
3146
+ #
3147
+ # # Create a client object. The client can be reused for multiple calls.
3148
+ # client = Google::Cloud::Channel::V1::CloudChannelService::Client.new
3149
+ #
3150
+ # # Create a request. To set request fields, pass in keyword arguments.
3151
+ # request = Google::Cloud::Channel::V1::CreateChannelPartnerLinkRequest.new
3152
+ #
3153
+ # # Call the create_channel_partner_link method.
3154
+ # result = client.create_channel_partner_link request
3155
+ #
3156
+ # # The returned object is of type Google::Cloud::Channel::V1::ChannelPartnerLink.
3157
+ # p result
3158
+ #
2673
3159
  def create_channel_partner_link request, options = nil
2674
3160
  raise ::ArgumentError, "request must be provided" if request.nil?
2675
3161
 
@@ -2769,6 +3255,21 @@ module Google
2769
3255
  #
2770
3256
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2771
3257
  #
3258
+ # @example Basic example
3259
+ # require "google/cloud/channel/v1"
3260
+ #
3261
+ # # Create a client object. The client can be reused for multiple calls.
3262
+ # client = Google::Cloud::Channel::V1::CloudChannelService::Client.new
3263
+ #
3264
+ # # Create a request. To set request fields, pass in keyword arguments.
3265
+ # request = Google::Cloud::Channel::V1::UpdateChannelPartnerLinkRequest.new
3266
+ #
3267
+ # # Call the update_channel_partner_link method.
3268
+ # result = client.update_channel_partner_link request
3269
+ #
3270
+ # # The returned object is of type Google::Cloud::Channel::V1::ChannelPartnerLink.
3271
+ # p result
3272
+ #
2772
3273
  def update_channel_partner_link request, options = nil
2773
3274
  raise ::ArgumentError, "request must be provided" if request.nil?
2774
3275
 
@@ -2850,6 +3351,21 @@ module Google
2850
3351
  #
2851
3352
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2852
3353
  #
3354
+ # @example Basic example
3355
+ # require "google/cloud/channel/v1"
3356
+ #
3357
+ # # Create a client object. The client can be reused for multiple calls.
3358
+ # client = Google::Cloud::Channel::V1::CloudChannelService::Client.new
3359
+ #
3360
+ # # Create a request. To set request fields, pass in keyword arguments.
3361
+ # request = Google::Cloud::Channel::V1::LookupOfferRequest.new
3362
+ #
3363
+ # # Call the lookup_offer method.
3364
+ # result = client.lookup_offer request
3365
+ #
3366
+ # # The returned object is of type Google::Cloud::Channel::V1::Offer.
3367
+ # p result
3368
+ #
2853
3369
  def lookup_offer request, options = nil
2854
3370
  raise ::ArgumentError, "request must be provided" if request.nil?
2855
3371
 
@@ -2935,6 +3451,27 @@ module Google
2935
3451
  #
2936
3452
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
2937
3453
  #
3454
+ # @example Basic example
3455
+ # require "google/cloud/channel/v1"
3456
+ #
3457
+ # # Create a client object. The client can be reused for multiple calls.
3458
+ # client = Google::Cloud::Channel::V1::CloudChannelService::Client.new
3459
+ #
3460
+ # # Create a request. To set request fields, pass in keyword arguments.
3461
+ # request = Google::Cloud::Channel::V1::ListProductsRequest.new
3462
+ #
3463
+ # # Call the list_products method.
3464
+ # result = client.list_products request
3465
+ #
3466
+ # # The returned object is of type Gapic::PagedEnumerable. You can
3467
+ # # iterate over all elements by calling #each, and the enumerable
3468
+ # # will lazily make API calls to fetch subsequent pages. Other
3469
+ # # methods are also available for managing paging directly.
3470
+ # result.each do |response|
3471
+ # # Each element is of type ::Google::Cloud::Channel::V1::Product.
3472
+ # p response
3473
+ # end
3474
+ #
2938
3475
  def list_products request, options = nil
2939
3476
  raise ::ArgumentError, "request must be provided" if request.nil?
2940
3477
 
@@ -3018,6 +3555,27 @@ module Google
3018
3555
  #
3019
3556
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
3020
3557
  #
3558
+ # @example Basic example
3559
+ # require "google/cloud/channel/v1"
3560
+ #
3561
+ # # Create a client object. The client can be reused for multiple calls.
3562
+ # client = Google::Cloud::Channel::V1::CloudChannelService::Client.new
3563
+ #
3564
+ # # Create a request. To set request fields, pass in keyword arguments.
3565
+ # request = Google::Cloud::Channel::V1::ListSkusRequest.new
3566
+ #
3567
+ # # Call the list_skus method.
3568
+ # result = client.list_skus request
3569
+ #
3570
+ # # The returned object is of type Gapic::PagedEnumerable. You can
3571
+ # # iterate over all elements by calling #each, and the enumerable
3572
+ # # will lazily make API calls to fetch subsequent pages. Other
3573
+ # # methods are also available for managing paging directly.
3574
+ # result.each do |response|
3575
+ # # Each element is of type ::Google::Cloud::Channel::V1::Sku.
3576
+ # p response
3577
+ # end
3578
+ #
3021
3579
  def list_skus request, options = nil
3022
3580
  raise ::ArgumentError, "request must be provided" if request.nil?
3023
3581
 
@@ -3110,6 +3668,27 @@ module Google
3110
3668
  #
3111
3669
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
3112
3670
  #
3671
+ # @example Basic example
3672
+ # require "google/cloud/channel/v1"
3673
+ #
3674
+ # # Create a client object. The client can be reused for multiple calls.
3675
+ # client = Google::Cloud::Channel::V1::CloudChannelService::Client.new
3676
+ #
3677
+ # # Create a request. To set request fields, pass in keyword arguments.
3678
+ # request = Google::Cloud::Channel::V1::ListOffersRequest.new
3679
+ #
3680
+ # # Call the list_offers method.
3681
+ # result = client.list_offers request
3682
+ #
3683
+ # # The returned object is of type Gapic::PagedEnumerable. You can
3684
+ # # iterate over all elements by calling #each, and the enumerable
3685
+ # # will lazily make API calls to fetch subsequent pages. Other
3686
+ # # methods are also available for managing paging directly.
3687
+ # result.each do |response|
3688
+ # # Each element is of type ::Google::Cloud::Channel::V1::Offer.
3689
+ # p response
3690
+ # end
3691
+ #
3113
3692
  def list_offers request, options = nil
3114
3693
  raise ::ArgumentError, "request must be provided" if request.nil?
3115
3694
 
@@ -3204,6 +3783,27 @@ module Google
3204
3783
  #
3205
3784
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
3206
3785
  #
3786
+ # @example Basic example
3787
+ # require "google/cloud/channel/v1"
3788
+ #
3789
+ # # Create a client object. The client can be reused for multiple calls.
3790
+ # client = Google::Cloud::Channel::V1::CloudChannelService::Client.new
3791
+ #
3792
+ # # Create a request. To set request fields, pass in keyword arguments.
3793
+ # request = Google::Cloud::Channel::V1::ListPurchasableSkusRequest.new
3794
+ #
3795
+ # # Call the list_purchasable_skus method.
3796
+ # result = client.list_purchasable_skus request
3797
+ #
3798
+ # # The returned object is of type Gapic::PagedEnumerable. You can
3799
+ # # iterate over all elements by calling #each, and the enumerable
3800
+ # # will lazily make API calls to fetch subsequent pages. Other
3801
+ # # methods are also available for managing paging directly.
3802
+ # result.each do |response|
3803
+ # # Each element is of type ::Google::Cloud::Channel::V1::PurchasableSku.
3804
+ # p response
3805
+ # end
3806
+ #
3207
3807
  def list_purchasable_skus request, options = nil
3208
3808
  raise ::ArgumentError, "request must be provided" if request.nil?
3209
3809
 
@@ -3298,6 +3898,27 @@ module Google
3298
3898
  #
3299
3899
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
3300
3900
  #
3901
+ # @example Basic example
3902
+ # require "google/cloud/channel/v1"
3903
+ #
3904
+ # # Create a client object. The client can be reused for multiple calls.
3905
+ # client = Google::Cloud::Channel::V1::CloudChannelService::Client.new
3906
+ #
3907
+ # # Create a request. To set request fields, pass in keyword arguments.
3908
+ # request = Google::Cloud::Channel::V1::ListPurchasableOffersRequest.new
3909
+ #
3910
+ # # Call the list_purchasable_offers method.
3911
+ # result = client.list_purchasable_offers request
3912
+ #
3913
+ # # The returned object is of type Gapic::PagedEnumerable. You can
3914
+ # # iterate over all elements by calling #each, and the enumerable
3915
+ # # will lazily make API calls to fetch subsequent pages. Other
3916
+ # # methods are also available for managing paging directly.
3917
+ # result.each do |response|
3918
+ # # Each element is of type ::Google::Cloud::Channel::V1::PurchasableOffer.
3919
+ # p response
3920
+ # end
3921
+ #
3301
3922
  def list_purchasable_offers request, options = nil
3302
3923
  raise ::ArgumentError, "request must be provided" if request.nil?
3303
3924
 
@@ -3387,6 +4008,21 @@ module Google
3387
4008
  #
3388
4009
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
3389
4010
  #
4011
+ # @example Basic example
4012
+ # require "google/cloud/channel/v1"
4013
+ #
4014
+ # # Create a client object. The client can be reused for multiple calls.
4015
+ # client = Google::Cloud::Channel::V1::CloudChannelService::Client.new
4016
+ #
4017
+ # # Create a request. To set request fields, pass in keyword arguments.
4018
+ # request = Google::Cloud::Channel::V1::RegisterSubscriberRequest.new
4019
+ #
4020
+ # # Call the register_subscriber method.
4021
+ # result = client.register_subscriber request
4022
+ #
4023
+ # # The returned object is of type Google::Cloud::Channel::V1::RegisterSubscriberResponse.
4024
+ # p result
4025
+ #
3390
4026
  def register_subscriber request, options = nil
3391
4027
  raise ::ArgumentError, "request must be provided" if request.nil?
3392
4028
 
@@ -3479,6 +4115,21 @@ module Google
3479
4115
  #
3480
4116
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
3481
4117
  #
4118
+ # @example Basic example
4119
+ # require "google/cloud/channel/v1"
4120
+ #
4121
+ # # Create a client object. The client can be reused for multiple calls.
4122
+ # client = Google::Cloud::Channel::V1::CloudChannelService::Client.new
4123
+ #
4124
+ # # Create a request. To set request fields, pass in keyword arguments.
4125
+ # request = Google::Cloud::Channel::V1::UnregisterSubscriberRequest.new
4126
+ #
4127
+ # # Call the unregister_subscriber method.
4128
+ # result = client.unregister_subscriber request
4129
+ #
4130
+ # # The returned object is of type Google::Cloud::Channel::V1::UnregisterSubscriberResponse.
4131
+ # p result
4132
+ #
3482
4133
  def unregister_subscriber request, options = nil
3483
4134
  raise ::ArgumentError, "request must be provided" if request.nil?
3484
4135
 
@@ -3576,6 +4227,21 @@ module Google
3576
4227
  #
3577
4228
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
3578
4229
  #
4230
+ # @example Basic example
4231
+ # require "google/cloud/channel/v1"
4232
+ #
4233
+ # # Create a client object. The client can be reused for multiple calls.
4234
+ # client = Google::Cloud::Channel::V1::CloudChannelService::Client.new
4235
+ #
4236
+ # # Create a request. To set request fields, pass in keyword arguments.
4237
+ # request = Google::Cloud::Channel::V1::ListSubscribersRequest.new
4238
+ #
4239
+ # # Call the list_subscribers method.
4240
+ # result = client.list_subscribers request
4241
+ #
4242
+ # # The returned object is of type Google::Cloud::Channel::V1::ListSubscribersResponse.
4243
+ # p result
4244
+ #
3579
4245
  def list_subscribers request, options = nil
3580
4246
  raise ::ArgumentError, "request must be provided" if request.nil?
3581
4247
 
@@ -143,6 +143,27 @@ module Google
143
143
  #
144
144
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
145
145
  #
146
+ # @example Basic example
147
+ # require "google/longrunning"
148
+ #
149
+ # # Create a client object. The client can be reused for multiple calls.
150
+ # client = Google::Longrunning::Operations::Client.new
151
+ #
152
+ # # Create a request. To set request fields, pass in keyword arguments.
153
+ # request = Google::Longrunning::ListOperationsRequest.new
154
+ #
155
+ # # Call the list_operations method.
156
+ # result = client.list_operations request
157
+ #
158
+ # # The returned object is of type Gapic::PagedEnumerable. You can
159
+ # # iterate over all elements by calling #each, and the enumerable
160
+ # # will lazily make API calls to fetch subsequent pages. Other
161
+ # # methods are also available for managing paging directly.
162
+ # result.each do |response|
163
+ # # Each element is of type ::Google::Longrunning::Operation.
164
+ # p response
165
+ # end
166
+ #
146
167
  def list_operations request, options = nil
147
168
  raise ::ArgumentError, "request must be provided" if request.nil?
148
169
 
@@ -217,6 +238,28 @@ module Google
217
238
  #
218
239
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
219
240
  #
241
+ # @example Basic example
242
+ # require "google/longrunning"
243
+ #
244
+ # # Create a client object. The client can be reused for multiple calls.
245
+ # client = Google::Longrunning::Operations::Client.new
246
+ #
247
+ # # Create a request. To set request fields, pass in keyword arguments.
248
+ # request = Google::Longrunning::GetOperationRequest.new
249
+ #
250
+ # # Call the get_operation method.
251
+ # result = client.get_operation request
252
+ #
253
+ # # The returned object is of type Gapic::Operation. You can use this
254
+ # # object to check the status of an operation, cancel it, or wait
255
+ # # for results. Here is how to block until completion:
256
+ # result.wait_until_done! timeout: 60
257
+ # if result.response?
258
+ # p result.response
259
+ # else
260
+ # puts "Error!"
261
+ # end
262
+ #
220
263
  def get_operation request, options = nil
221
264
  raise ::ArgumentError, "request must be provided" if request.nil?
222
265
 
@@ -291,6 +334,21 @@ module Google
291
334
  #
292
335
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
293
336
  #
337
+ # @example Basic example
338
+ # require "google/longrunning"
339
+ #
340
+ # # Create a client object. The client can be reused for multiple calls.
341
+ # client = Google::Longrunning::Operations::Client.new
342
+ #
343
+ # # Create a request. To set request fields, pass in keyword arguments.
344
+ # request = Google::Longrunning::DeleteOperationRequest.new
345
+ #
346
+ # # Call the delete_operation method.
347
+ # result = client.delete_operation request
348
+ #
349
+ # # The returned object is of type Google::Protobuf::Empty.
350
+ # p result
351
+ #
294
352
  def delete_operation request, options = nil
295
353
  raise ::ArgumentError, "request must be provided" if request.nil?
296
354
 
@@ -370,6 +428,21 @@ module Google
370
428
  #
371
429
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
372
430
  #
431
+ # @example Basic example
432
+ # require "google/longrunning"
433
+ #
434
+ # # Create a client object. The client can be reused for multiple calls.
435
+ # client = Google::Longrunning::Operations::Client.new
436
+ #
437
+ # # Create a request. To set request fields, pass in keyword arguments.
438
+ # request = Google::Longrunning::CancelOperationRequest.new
439
+ #
440
+ # # Call the cancel_operation method.
441
+ # result = client.cancel_operation request
442
+ #
443
+ # # The returned object is of type Google::Protobuf::Empty.
444
+ # p result
445
+ #
373
446
  def cancel_operation request, options = nil
374
447
  raise ::ArgumentError, "request must be provided" if request.nil?
375
448
 
@@ -452,6 +525,28 @@ module Google
452
525
  #
453
526
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
454
527
  #
528
+ # @example Basic example
529
+ # require "google/longrunning"
530
+ #
531
+ # # Create a client object. The client can be reused for multiple calls.
532
+ # client = Google::Longrunning::Operations::Client.new
533
+ #
534
+ # # Create a request. To set request fields, pass in keyword arguments.
535
+ # request = Google::Longrunning::WaitOperationRequest.new
536
+ #
537
+ # # Call the wait_operation method.
538
+ # result = client.wait_operation request
539
+ #
540
+ # # The returned object is of type Gapic::Operation. You can use this
541
+ # # object to check the status of an operation, cancel it, or wait
542
+ # # for results. Here is how to block until completion:
543
+ # result.wait_until_done! timeout: 60
544
+ # if result.response?
545
+ # p result.response
546
+ # else
547
+ # puts "Error!"
548
+ # end
549
+ #
455
550
  def wait_operation request, options = nil
456
551
  raise ::ArgumentError, "request must be provided" if request.nil?
457
552
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Channel
23
23
  module V1
24
- VERSION = "0.9.0"
24
+ VERSION = "0.9.1"
25
25
  end
26
26
  end
27
27
  end
@@ -64,8 +64,16 @@ module Google
64
64
  # @!attribute [rw] parameters
65
65
  # @return [::Array<::Google::Cloud::Channel::V1::Parameter>]
66
66
  # Extended entitlement parameters. When creating an entitlement, valid
67
- # parameters' names and values are defined in the offer's parameter
68
- # definitions.
67
+ # parameter names and values are defined in the
68
+ # {::Google::Cloud::Channel::V1::Offer#parameter_definitions Offer.parameter_definitions}.
69
+ #
70
+ # The response may include the following output-only Parameters:
71
+ #
72
+ # - assigned_units: The number of licenses assigned to a user.
73
+ #
74
+ # - max_units: The maximum assignable units for a flexible offer.
75
+ #
76
+ # - num_units: The total commitment for commitment-based offers.
69
77
  class Entitlement
70
78
  include ::Google::Protobuf::MessageExts
71
79
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -561,6 +561,9 @@ module Google
561
561
  # @!attribute [rw] parameters
562
562
  # @return [::Array<::Google::Cloud::Channel::V1::Parameter>]
563
563
  # Required. Entitlement parameters to update. You can only change editable parameters.
564
+ #
565
+ # To view the available Parameters for a request, refer to the
566
+ # {::Google::Cloud::Channel::V1::Offer#parameter_definitions Offer.parameter_definitions} from the desired offer.
564
567
  # @!attribute [rw] request_id
565
568
  # @return [::String]
566
569
  # Optional. You can specify an optional unique request ID, and if you need to retry
@@ -621,7 +624,8 @@ module Google
621
624
  # Format: accounts/\\{account_id}/offers/\\{offer_id}.
622
625
  # @!attribute [rw] parameters
623
626
  # @return [::Array<::Google::Cloud::Channel::V1::Parameter>]
624
- # Optional. Parameters needed to purchase the Offer.
627
+ # Optional. Parameters needed to purchase the Offer. To view the available Parameters
628
+ # refer to the {::Google::Cloud::Channel::V1::Offer#parameter_definitions Offer.parameter_definitions} from the desired offer.
625
629
  # @!attribute [rw] purchase_order_id
626
630
  # @return [::String]
627
631
  # Optional. Purchase order id provided by the reseller.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-channel-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
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-11-02 00:00:00.000000000 Z
11
+ date: 2021-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common