google-cloud-channel-v1 0.1.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -1
- data/LICENSE.md +188 -190
- data/README.md +68 -4
- data/lib/google/cloud/channel/v1/cloud_channel_service/client.rb +466 -210
- data/lib/google/cloud/channel/v1/cloud_channel_service/operations.rb +95 -10
- data/lib/google/cloud/channel/v1/entitlements_pb.rb +0 -2
- data/lib/google/cloud/channel/v1/offers_pb.rb +1 -0
- data/lib/google/cloud/channel/v1/service_pb.rb +30 -1
- data/lib/google/cloud/channel/v1/service_services_pb.rb +191 -167
- data/lib/google/cloud/channel/v1/subscriber_event_pb.rb +56 -0
- data/lib/google/cloud/channel/v1/version.rb +1 -1
- data/proto_docs/README.md +1 -1
- data/proto_docs/google/api/field_behavior.rb +6 -0
- data/proto_docs/google/cloud/channel/v1/customers.rb +1 -0
- data/proto_docs/google/cloud/channel/v1/entitlements.rb +0 -6
- data/proto_docs/google/cloud/channel/v1/offers.rb +4 -0
- data/proto_docs/google/cloud/channel/v1/service.rb +83 -5
- data/proto_docs/google/cloud/channel/v1/subscriber_event.rb +113 -0
- data/proto_docs/google/longrunning/operations.rb +17 -3
- data/proto_docs/google/protobuf/any.rb +5 -2
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/timestamp.rb +10 -1
- metadata +14 -8
@@ -80,7 +80,7 @@ module Google
|
|
80
80
|
parent_config = while namespace.any?
|
81
81
|
parent_name = namespace.join "::"
|
82
82
|
parent_const = const_get parent_name
|
83
|
-
break parent_const.configure if parent_const
|
83
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
84
84
|
namespace.pop
|
85
85
|
end
|
86
86
|
default_config = Client::Configuration.new parent_config
|
@@ -88,9 +88,9 @@ module Google
|
|
88
88
|
default_config.timeout = 60.0
|
89
89
|
default_config.retry_policy = {
|
90
90
|
initial_delay: 1.0,
|
91
|
-
|
92
|
-
|
93
|
-
|
91
|
+
max_delay: 10.0,
|
92
|
+
multiplier: 1.3,
|
93
|
+
retry_codes: [14]
|
94
94
|
}
|
95
95
|
|
96
96
|
default_config.rpcs.provision_cloud_identity.timeout = 60.0
|
@@ -176,7 +176,13 @@ module Google
|
|
176
176
|
|
177
177
|
# Create credentials
|
178
178
|
credentials = @config.credentials
|
179
|
-
|
179
|
+
# Use self-signed JWT if the scope and endpoint are unchanged from default,
|
180
|
+
# but only if the default endpoint does not have a region prefix.
|
181
|
+
enable_self_signed_jwt = @config.scope == Client.configure.scope &&
|
182
|
+
@config.endpoint == Client.configure.endpoint &&
|
183
|
+
!@config.endpoint.split(".").first.include?("-")
|
184
|
+
credentials ||= Credentials.default scope: @config.scope,
|
185
|
+
enable_self_signed_jwt: enable_self_signed_jwt
|
180
186
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
181
187
|
credentials = Credentials.new credentials, scope: @config.scope
|
182
188
|
end
|
@@ -217,7 +223,7 @@ module Google
|
|
217
223
|
# request.
|
218
224
|
#
|
219
225
|
# Return Value:
|
220
|
-
#
|
226
|
+
# List of {::Google::Cloud::Channel::V1::Customer Customer}s pertaining to the reseller or empty list if
|
221
227
|
# there are none.
|
222
228
|
#
|
223
229
|
# @overload list_customers(request, options = nil)
|
@@ -307,7 +313,7 @@ module Google
|
|
307
313
|
# the result of an invalid name parameter.
|
308
314
|
#
|
309
315
|
# Return Value:
|
310
|
-
#
|
316
|
+
# {::Google::Cloud::Channel::V1::Customer Customer} resource if found, error otherwise.
|
311
317
|
#
|
312
318
|
# @overload get_customer(request, options = nil)
|
313
319
|
# Pass arguments to `get_customer` via a request object, either of type
|
@@ -384,12 +390,13 @@ module Google
|
|
384
390
|
# * INVALID_ARGUMENT: Missing or invalid required parameters in the
|
385
391
|
# request.
|
386
392
|
# * INVALID_VALUE: Invalid domain value in the request.
|
387
|
-
# * NOT_FOUND: If there is no {::Google::Cloud::Channel::V1::CloudIdentityCustomerAccount CloudIdentityCustomerAccount} customer
|
388
|
-
# for the domain specified in the request.
|
389
393
|
#
|
390
394
|
# Return Value:
|
391
|
-
#
|
392
|
-
#
|
395
|
+
# List of {::Google::Cloud::Channel::V1::CloudIdentityCustomerAccount CloudIdentityCustomerAccount} resources for the domain.
|
396
|
+
# List may be empty.
|
397
|
+
#
|
398
|
+
# Note: in the v1alpha1 version of the API, a NOT_FOUND error is returned if
|
399
|
+
# no {::Google::Cloud::Channel::V1::CloudIdentityCustomerAccount CloudIdentityCustomerAccount} resources match the domain.
|
393
400
|
#
|
394
401
|
# @overload check_cloud_identity_accounts_exist(request, options = nil)
|
395
402
|
# Pass arguments to `check_cloud_identity_accounts_exist` via a request object, either of type
|
@@ -462,20 +469,16 @@ module Google
|
|
462
469
|
# account.
|
463
470
|
#
|
464
471
|
# Possible Error Codes:
|
465
|
-
#
|
466
|
-
#
|
467
|
-
# reseller account being queried for are different
|
468
|
-
#
|
469
|
-
#
|
470
|
-
#
|
471
|
-
#
|
472
|
-
# email.</li>
|
473
|
-
# </ul>
|
474
|
-
# </li>
|
475
|
-
# </ul>
|
472
|
+
#
|
473
|
+
# * PERMISSION_DENIED: If the reseller account making the request and the
|
474
|
+
# reseller account being queried for are different.
|
475
|
+
# * INVALID_ARGUMENT: It can happen in following scenarios -
|
476
|
+
# * Missing or invalid required parameters in the request.
|
477
|
+
# * Domain field value doesn't match the domain specified in primary
|
478
|
+
# email.
|
476
479
|
#
|
477
480
|
# Return Value:
|
478
|
-
#
|
481
|
+
# If successful, the newly created {::Google::Cloud::Channel::V1::Customer Customer} resource, otherwise
|
479
482
|
# returns an error.
|
480
483
|
#
|
481
484
|
# @overload create_customer(request, options = nil)
|
@@ -558,7 +561,7 @@ module Google
|
|
558
561
|
# specified in the request.
|
559
562
|
#
|
560
563
|
# Return Value:
|
561
|
-
#
|
564
|
+
# If successful, the updated {::Google::Cloud::Channel::V1::Customer Customer} resource, otherwise returns
|
562
565
|
# an error.
|
563
566
|
#
|
564
567
|
# @overload update_customer(request, options = nil)
|
@@ -720,7 +723,7 @@ module Google
|
|
720
723
|
# Contact Cloud Channel support in this case.
|
721
724
|
#
|
722
725
|
# Return Value:
|
723
|
-
#
|
726
|
+
# Long Running Operation ID.
|
724
727
|
#
|
725
728
|
# To get the results of the operation, call the GetOperation method of
|
726
729
|
# CloudChannelOperationsService. The Operation metadata will contain an
|
@@ -807,7 +810,7 @@ module Google
|
|
807
810
|
# * INVALID_ARGUMENT: Missing or invalid required parameters in the request.
|
808
811
|
#
|
809
812
|
# Return Value:
|
810
|
-
#
|
813
|
+
# List of {::Google::Cloud::Channel::V1::Entitlement Entitlement}s belonging to the customer, or empty list if
|
811
814
|
# there are none.
|
812
815
|
#
|
813
816
|
# @overload list_entitlements(request, options = nil)
|
@@ -894,21 +897,16 @@ module Google
|
|
894
897
|
# the customer's Cloud Identity ID or Customer Name.
|
895
898
|
#
|
896
899
|
# Possible Error Codes:
|
897
|
-
#
|
898
|
-
#
|
899
|
-
#
|
900
|
-
#
|
901
|
-
#
|
902
|
-
#
|
903
|
-
#
|
904
|
-
# </ul>
|
905
|
-
# </li>
|
906
|
-
# <li> INVALID_ARGUMENT: Missing or invalid required parameters in the
|
907
|
-
# request.</li>
|
908
|
-
# </ul>
|
900
|
+
#
|
901
|
+
# * PERMISSION_DENIED: Appears because of one of the following -
|
902
|
+
# * The customer doesn't belong to the reseller and no auth token.
|
903
|
+
# * The supplied auth token is invalid.
|
904
|
+
# * The reseller account making the request and the queries reseller
|
905
|
+
# account are different.
|
906
|
+
# * INVALID_ARGUMENT: Missing or invalid required parameters in the request.
|
909
907
|
#
|
910
908
|
# Return Value:
|
911
|
-
#
|
909
|
+
# List of {::Google::Cloud::Channel::V1::TransferableSku TransferableSku} for the given customer.
|
912
910
|
#
|
913
911
|
# @overload list_transferable_skus(request, options = nil)
|
914
912
|
# Pass arguments to `list_transferable_skus` via a request object, either of type
|
@@ -1014,10 +1012,11 @@ module Google
|
|
1014
1012
|
#
|
1015
1013
|
# Possible Error Codes:
|
1016
1014
|
#
|
1017
|
-
# * PERMISSION_DENIED
|
1018
|
-
# customer doesn't belong to the reseller and no auth token or
|
1019
|
-
# token is supplied.
|
1020
|
-
# reseller account
|
1015
|
+
# * PERMISSION_DENIED: Appears because of one of the following:
|
1016
|
+
# * If the customer doesn't belong to the reseller and no auth token or
|
1017
|
+
# invalid auth token is supplied.
|
1018
|
+
# * If the reseller account making the request and the reseller account
|
1019
|
+
# being queried for are different.
|
1021
1020
|
# * INVALID_ARGUMENT: Missing or invalid required parameters in the
|
1022
1021
|
# request.
|
1023
1022
|
#
|
@@ -1119,7 +1118,7 @@ module Google
|
|
1119
1118
|
# * NOT_FOUND: If the entitlement is not found for the customer.
|
1120
1119
|
#
|
1121
1120
|
# Return Value:
|
1122
|
-
#
|
1121
|
+
# If found, the requested {::Google::Cloud::Channel::V1::Entitlement Entitlement} resource, otherwise returns
|
1123
1122
|
# an error.
|
1124
1123
|
#
|
1125
1124
|
# @overload get_entitlement(request, options = nil)
|
@@ -1191,51 +1190,38 @@ module Google
|
|
1191
1190
|
# Creates an entitlement for a customer.
|
1192
1191
|
#
|
1193
1192
|
# Possible Error Codes:
|
1194
|
-
#
|
1195
|
-
#
|
1196
|
-
#
|
1197
|
-
#
|
1198
|
-
#
|
1199
|
-
#
|
1200
|
-
#
|
1201
|
-
#
|
1202
|
-
#
|
1203
|
-
#
|
1204
|
-
#
|
1205
|
-
#
|
1206
|
-
#
|
1207
|
-
#
|
1208
|
-
#
|
1209
|
-
#
|
1210
|
-
#
|
1211
|
-
#
|
1212
|
-
#
|
1213
|
-
#
|
1214
|
-
#
|
1215
|
-
#
|
1216
|
-
#
|
1217
|
-
#
|
1218
|
-
#
|
1219
|
-
#
|
1220
|
-
#
|
1221
|
-
#
|
1222
|
-
#
|
1223
|
-
# domain. Must meet the following domain naming requirements:
|
1224
|
-
# <ul>
|
1225
|
-
# <li> Domain names must start with goog-test. </li>
|
1226
|
-
# <li> Resold domain names must include the reseller domain. </li>
|
1227
|
-
# </ul>
|
1228
|
-
# </li>
|
1229
|
-
# </ul>
|
1230
|
-
# </li>
|
1231
|
-
# <li> INTERNAL: Any non-user error related to a technical issue in the
|
1232
|
-
# backend. Contact Cloud Channel Support in this case. </li>
|
1233
|
-
# <li> UNKNOWN: Any non-user error related to a technical issue in the
|
1234
|
-
# backend. Contact Cloud Channel Support in this case. </li>
|
1235
|
-
# </ul>
|
1193
|
+
#
|
1194
|
+
# * PERMISSION_DENIED: If the customer doesn't belong to the reseller.
|
1195
|
+
# * INVALID_ARGUMENT: It can happen in below scenarios -
|
1196
|
+
# * Missing or invalid required parameters in the request.
|
1197
|
+
# * Cannot purchase an entitlement if there is already an entitlement for
|
1198
|
+
# customer, for a SKU from the same product family.
|
1199
|
+
# * INVALID_VALUE: Offer passed in isn't valid. Make sure OfferId is
|
1200
|
+
# valid. If it is valid, then contact Google Channel support for further
|
1201
|
+
# troubleshooting.
|
1202
|
+
# * NOT_FOUND: If the customer or offer resource is not found for the
|
1203
|
+
# reseller.
|
1204
|
+
# * ALREADY_EXISTS: This failure can happen in the following cases:
|
1205
|
+
# * If the SKU has been already purchased for the customer.
|
1206
|
+
# * If the customer's primary email already exists. In this case retry
|
1207
|
+
# after changing the customer's primary contact email.
|
1208
|
+
# * CONDITION_NOT_MET or FAILED_PRECONDITION: This failure can happen in the
|
1209
|
+
# following cases:
|
1210
|
+
# * Purchasing a SKU that requires domain verification and the domain has
|
1211
|
+
# not been verified.
|
1212
|
+
# * Purchasing an Add-On SKU like Vault or Drive without purchasing the
|
1213
|
+
# pre-requisite SKU, such as Google Workspace Business Starter.
|
1214
|
+
# * Applicable only for developer accounts: reseller and resold domain.
|
1215
|
+
# Must meet the following domain naming requirements:
|
1216
|
+
# * Domain names must start with goog-test.
|
1217
|
+
# * Resold domain names must include the reseller domain.
|
1218
|
+
# * INTERNAL: Any non-user error related to a technical issue in the
|
1219
|
+
# backend. Contact Cloud Channel Support in this case.
|
1220
|
+
# * UNKNOWN: Any non-user error related to a technical issue in the
|
1221
|
+
# backend. Contact Cloud Channel Support in this case.
|
1236
1222
|
#
|
1237
1223
|
# Return Value:
|
1238
|
-
#
|
1224
|
+
# Long Running Operation ID.
|
1239
1225
|
#
|
1240
1226
|
# To get the results of the operation, call the GetOperation method of
|
1241
1227
|
# CloudChannelOperationsService. The Operation metadata will contain an
|
@@ -1342,7 +1328,7 @@ module Google
|
|
1342
1328
|
# In this case, contact Cloud Channel support.
|
1343
1329
|
#
|
1344
1330
|
# Return Value:
|
1345
|
-
#
|
1331
|
+
# Long Running Operation ID.
|
1346
1332
|
#
|
1347
1333
|
# To get the results of the operation, call the GetOperation method of
|
1348
1334
|
# CloudChannelOperationsService. The Operation metadata will contain an
|
@@ -1453,7 +1439,7 @@ module Google
|
|
1453
1439
|
# In this case, contact Cloud Channel support.
|
1454
1440
|
#
|
1455
1441
|
# Return Value:
|
1456
|
-
#
|
1442
|
+
# Long Running Operation ID.
|
1457
1443
|
#
|
1458
1444
|
# To get the results of the operation, call the GetOperation method of
|
1459
1445
|
# CloudChannelOperationsService. The Operation metadata will contain an
|
@@ -1558,7 +1544,7 @@ module Google
|
|
1558
1544
|
# In this case, contact Cloud Channel support.
|
1559
1545
|
#
|
1560
1546
|
# Return Value:
|
1561
|
-
#
|
1547
|
+
# Long Running Operation ID.
|
1562
1548
|
#
|
1563
1549
|
# To get the results of the operation, call the GetOperation method of
|
1564
1550
|
# CloudChannelOperationsService. The Operation metadata will contain an
|
@@ -1671,7 +1657,7 @@ module Google
|
|
1671
1657
|
# in the backend. In this case, contact Cloud Channel support.
|
1672
1658
|
#
|
1673
1659
|
# Return Value:
|
1674
|
-
#
|
1660
|
+
# Long Running Operation ID.
|
1675
1661
|
#
|
1676
1662
|
# To get the results of the operation, call the GetOperation method of
|
1677
1663
|
# CloudChannelOperationsService. The Operation metadata will contain an
|
@@ -1773,7 +1759,7 @@ module Google
|
|
1773
1759
|
# In this case, contact Cloud Channel support.
|
1774
1760
|
#
|
1775
1761
|
# Return Value:
|
1776
|
-
#
|
1762
|
+
# Long Running Operation ID.
|
1777
1763
|
#
|
1778
1764
|
# To get the results of the operation, call the GetOperation method of
|
1779
1765
|
# CloudChannelOperationsService. The Operation metadata will contain an
|
@@ -1880,7 +1866,7 @@ module Google
|
|
1880
1866
|
# In this case, contact Cloud Channel support.
|
1881
1867
|
#
|
1882
1868
|
# Return Value:
|
1883
|
-
#
|
1869
|
+
# Long Running Operation ID.
|
1884
1870
|
#
|
1885
1871
|
# To get the results of the operation, call the GetOperation method of
|
1886
1872
|
# CloudChannelOperationsService. The response will contain
|
@@ -1992,7 +1978,7 @@ module Google
|
|
1992
1978
|
# In this case, contact Cloud Channel support.
|
1993
1979
|
#
|
1994
1980
|
# Return Value:
|
1995
|
-
#
|
1981
|
+
# Long Running Operation ID.
|
1996
1982
|
#
|
1997
1983
|
# To get the results of the operation, call the GetOperation method of
|
1998
1984
|
# CloudChannelOperationsService. The Operation metadata will contain an
|
@@ -2081,36 +2067,30 @@ module Google
|
|
2081
2067
|
# Transfers customer entitlements to new reseller.
|
2082
2068
|
#
|
2083
2069
|
# Possible Error Codes:
|
2084
|
-
#
|
2085
|
-
#
|
2086
|
-
#
|
2087
|
-
#
|
2088
|
-
#
|
2089
|
-
# SKU has been already transferred for the customer.
|
2090
|
-
# CONDITION_NOT_MET or FAILED_PRECONDITION: This failure can happen in the
|
2091
|
-
# following cases:
|
2092
|
-
#
|
2093
|
-
#
|
2094
|
-
#
|
2095
|
-
#
|
2096
|
-
# developer accounts: reseller and resold domain
|
2097
|
-
# naming convention as follows:
|
2098
|
-
#
|
2099
|
-
#
|
2100
|
-
#
|
2101
|
-
#
|
2102
|
-
#
|
2103
|
-
#
|
2104
|
-
#
|
2105
|
-
# </li>
|
2106
|
-
# <li> INTERNAL: Any non-user error related to a technical issue in the
|
2107
|
-
# backend. Please contact Cloud Channel Support in this case. </li>
|
2108
|
-
# <li> UNKNOWN: Any non-user error related to a technical issue in the
|
2109
|
-
# backend. Please contact Cloud Channel Support in this case. </li>
|
2110
|
-
# </ul>
|
2070
|
+
#
|
2071
|
+
# * PERMISSION_DENIED: If the customer doesn't belong to the reseller.
|
2072
|
+
# * INVALID_ARGUMENT: Missing or invalid required parameters in the request.
|
2073
|
+
# * NOT_FOUND: If the customer or offer resource is not found for the
|
2074
|
+
# reseller.
|
2075
|
+
# * ALREADY_EXISTS: If the SKU has been already transferred for the customer.
|
2076
|
+
# * CONDITION_NOT_MET or FAILED_PRECONDITION: This failure can happen in the
|
2077
|
+
# following cases:
|
2078
|
+
# * Transferring a SKU that requires domain verification and the domain
|
2079
|
+
# has not been verified.
|
2080
|
+
# * Transferring an Add-On SKU like Vault or Drive without transferring
|
2081
|
+
# the pre-requisite SKU, such as G Suite Basic.
|
2082
|
+
# * Applicable only for developer accounts: reseller and resold domain
|
2083
|
+
# must follow the domain naming convention as follows:
|
2084
|
+
# * Domain names must start with goog-test.
|
2085
|
+
# * Resold domain names must include the reseller domain.
|
2086
|
+
# * All transferring entitlements must be specified.
|
2087
|
+
# * INTERNAL: Any non-user error related to a technical issue in the backend.
|
2088
|
+
# Please contact Cloud Channel Support in this case.
|
2089
|
+
# * UNKNOWN: Any non-user error related to a technical issue in the backend.
|
2090
|
+
# Please contact Cloud Channel Support in this case.
|
2111
2091
|
#
|
2112
2092
|
# Return Value:
|
2113
|
-
#
|
2093
|
+
# Long Running Operation ID.
|
2114
2094
|
#
|
2115
2095
|
# To get the results of the operation, call the GetOperation method of
|
2116
2096
|
# CloudChannelOperationsService. The Operation metadata will contain an
|
@@ -2207,38 +2187,29 @@ module Google
|
|
2207
2187
|
# Transfers customer entitlements from current reseller to Google.
|
2208
2188
|
#
|
2209
2189
|
# Possible Error Codes:
|
2210
|
-
#
|
2211
|
-
#
|
2212
|
-
#
|
2213
|
-
#
|
2214
|
-
#
|
2215
|
-
# for the
|
2216
|
-
#
|
2217
|
-
# transferred for the customer. </li>
|
2218
|
-
# <li> CONDITION_NOT_MET or FAILED_PRECONDITION: This failure can happen in
|
2190
|
+
#
|
2191
|
+
# * PERMISSION_DENIED: If the customer doesn't belong to the reseller.
|
2192
|
+
# * INVALID_ARGUMENT: Missing or invalid required parameters in the request.
|
2193
|
+
# * NOT_FOUND: If the customer or offer resource is not found for the
|
2194
|
+
# reseller.
|
2195
|
+
# * ALREADY_EXISTS: If the SKU has been already transferred for the customer.
|
2196
|
+
# * CONDITION_NOT_MET or FAILED_PRECONDITION: This failure can happen in
|
2219
2197
|
# the following cases:
|
2220
|
-
#
|
2221
|
-
#
|
2222
|
-
#
|
2223
|
-
#
|
2224
|
-
#
|
2225
|
-
#
|
2226
|
-
#
|
2227
|
-
#
|
2228
|
-
#
|
2229
|
-
#
|
2230
|
-
#
|
2231
|
-
#
|
2232
|
-
# </ul>
|
2233
|
-
# </li>
|
2234
|
-
# <li> INTERNAL: Any non-user error related to a technical issue in the
|
2235
|
-
# backend. Please contact Cloud Channel Support in this case. </li>
|
2236
|
-
# <li> UNKNOWN: Any non-user error related to a technical issue in the
|
2237
|
-
# backend. Please contact Cloud Channel Support in this case.</li>
|
2238
|
-
# </ul>
|
2198
|
+
# * Transferring a SKU that requires domain verification and the domain
|
2199
|
+
# has not been verified.
|
2200
|
+
# * Transferring an Add-On SKU like Vault or Drive without purchasing the
|
2201
|
+
# pre-requisite SKU, such as G Suite Basic.
|
2202
|
+
# * Applicable only for developer accounts: reseller and resold domain
|
2203
|
+
# must follow the domain naming convention as follows:
|
2204
|
+
# * Domain names must start with goog-test.
|
2205
|
+
# * Resold domain names must include the reseller domain.
|
2206
|
+
# * INTERNAL: Any non-user error related to a technical issue in the backend.
|
2207
|
+
# Please contact Cloud Channel Support in this case.
|
2208
|
+
# * UNKNOWN: Any non-user error related to a technical issue in the backend.
|
2209
|
+
# Please contact Cloud Channel Support in this case.
|
2239
2210
|
#
|
2240
2211
|
# Return Value:
|
2241
|
-
#
|
2212
|
+
# Long Running Operation ID.
|
2242
2213
|
#
|
2243
2214
|
# To get the results of the operation, call the GetOperation method of
|
2244
2215
|
# CloudChannelOperationsService. The response will contain
|
@@ -2338,7 +2309,7 @@ module Google
|
|
2338
2309
|
# request.
|
2339
2310
|
#
|
2340
2311
|
# Return Value:
|
2341
|
-
#
|
2312
|
+
# If successful, returns the list of {::Google::Cloud::Channel::V1::ChannelPartnerLink ChannelPartnerLink} resources
|
2342
2313
|
# for the distributor account, otherwise returns an error.
|
2343
2314
|
#
|
2344
2315
|
# @overload list_channel_partner_links(request, options = nil)
|
@@ -2432,7 +2403,7 @@ module Google
|
|
2432
2403
|
# due invalid channel partner link name.
|
2433
2404
|
#
|
2434
2405
|
# Return Value:
|
2435
|
-
#
|
2406
|
+
# {::Google::Cloud::Channel::V1::ChannelPartnerLink ChannelPartnerLink} resource if found, otherwise returns an error.
|
2436
2407
|
#
|
2437
2408
|
# @overload get_channel_partner_link(request, options = nil)
|
2438
2409
|
# Pass arguments to `get_channel_partner_link` via a request object, either of type
|
@@ -2524,7 +2495,7 @@ module Google
|
|
2524
2495
|
# the backend. In this case, contact Cloud Channel support.
|
2525
2496
|
#
|
2526
2497
|
# Return Value:
|
2527
|
-
#
|
2498
|
+
# Newly created {::Google::Cloud::Channel::V1::ChannelPartnerLink ChannelPartnerLink} resource if successful,
|
2528
2499
|
# otherwise error is returned.
|
2529
2500
|
#
|
2530
2501
|
# @overload create_channel_partner_link(request, options = nil)
|
@@ -2537,7 +2508,7 @@ module Google
|
|
2537
2508
|
# @param options [::Gapic::CallOptions, ::Hash]
|
2538
2509
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2539
2510
|
#
|
2540
|
-
# @overload create_channel_partner_link(parent: nil, channel_partner_link: nil
|
2511
|
+
# @overload create_channel_partner_link(parent: nil, channel_partner_link: nil)
|
2541
2512
|
# Pass arguments to `create_channel_partner_link` via keyword arguments. Note that at
|
2542
2513
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
2543
2514
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -2550,10 +2521,6 @@ module Google
|
|
2550
2521
|
# Required. The channel partner link to create.
|
2551
2522
|
# Either channel_partner_link.reseller_cloud_identity_id or domain can be
|
2552
2523
|
# used to create a link.
|
2553
|
-
# @param domain [::String]
|
2554
|
-
# Optional. The invited partner's domain. Either domain or
|
2555
|
-
# channel_partner_link.reseller_cloud_identity_id can be used to create a
|
2556
|
-
# link.
|
2557
2524
|
#
|
2558
2525
|
# @yield [response, operation] Access the result along with the RPC operation
|
2559
2526
|
# @yieldparam response [::Google::Cloud::Channel::V1::ChannelPartnerLink]
|
@@ -2606,26 +2573,22 @@ module Google
|
|
2606
2573
|
# To call this method, you must be a distributor.
|
2607
2574
|
#
|
2608
2575
|
# Possible Error Codes:
|
2609
|
-
#
|
2610
|
-
#
|
2611
|
-
# reseller account being queried for are different.
|
2612
|
-
#
|
2613
|
-
#
|
2614
|
-
#
|
2615
|
-
#
|
2616
|
-
#
|
2617
|
-
#
|
2618
|
-
#
|
2619
|
-
#
|
2620
|
-
#
|
2621
|
-
#
|
2622
|
-
# backend. In this case, contact Cloud Channel support. </li>
|
2623
|
-
# <li> UNKNOWN: Any non-user error related to a technical issue in the
|
2624
|
-
# backend. In this case, contact Cloud Channel support.</li>
|
2625
|
-
# </ul>
|
2576
|
+
#
|
2577
|
+
# * PERMISSION_DENIED: If the reseller account making the request and the
|
2578
|
+
# reseller account being queried for are different.
|
2579
|
+
# * INVALID_ARGUMENT: It can happen in following scenarios -
|
2580
|
+
# * Missing or invalid required parameters in the request.
|
2581
|
+
# * Updating link state from invited to active or suspended.
|
2582
|
+
# * Sending reseller_cloud_identity_id, invite_url or name in update
|
2583
|
+
# mask.
|
2584
|
+
# * NOT_FOUND: ChannelPartnerLink resource not found.
|
2585
|
+
# * INTERNAL: Any non-user error related to a technical issue in the backend.
|
2586
|
+
# In this case, contact Cloud Channel support.
|
2587
|
+
# * UNKNOWN: Any non-user error related to a technical issue in the backend.
|
2588
|
+
# In this case, contact Cloud Channel support.
|
2626
2589
|
#
|
2627
2590
|
# Return Value:
|
2628
|
-
#
|
2591
|
+
# If successful, the updated {::Google::Cloud::Channel::V1::ChannelPartnerLink ChannelPartnerLink} resource, otherwise
|
2629
2592
|
# returns an error.
|
2630
2593
|
#
|
2631
2594
|
# @overload update_channel_partner_link(request, options = nil)
|
@@ -3136,6 +3099,278 @@ module Google
|
|
3136
3099
|
raise ::Google::Cloud::Error.from_error(e)
|
3137
3100
|
end
|
3138
3101
|
|
3102
|
+
##
|
3103
|
+
# Registers a service account with subscriber privileges on the Cloud Pub/Sub
|
3104
|
+
# topic created for this Channel Services account. Once you create a
|
3105
|
+
# subscriber, you will get the events as per {::Google::Cloud::Channel::V1::SubscriberEvent SubscriberEvent}
|
3106
|
+
#
|
3107
|
+
# Possible Error Codes:
|
3108
|
+
#
|
3109
|
+
# * PERMISSION_DENIED: If the reseller account making the request and the
|
3110
|
+
# reseller account being provided are different, or if the impersonated user
|
3111
|
+
# is not a super admin.
|
3112
|
+
# * INVALID_ARGUMENT: Missing or invalid required parameters in the
|
3113
|
+
# request.
|
3114
|
+
# * INTERNAL: Any non-user error related to a technical issue in the
|
3115
|
+
# backend. In this case, contact Cloud Channel support.
|
3116
|
+
# * UNKNOWN: Any non-user error related to a technical issue in
|
3117
|
+
# the backend. In this case, contact Cloud Channel support.
|
3118
|
+
#
|
3119
|
+
# Return Value:
|
3120
|
+
# Topic name with service email address registered if successful,
|
3121
|
+
# otherwise error is returned.
|
3122
|
+
#
|
3123
|
+
# @overload register_subscriber(request, options = nil)
|
3124
|
+
# Pass arguments to `register_subscriber` via a request object, either of type
|
3125
|
+
# {::Google::Cloud::Channel::V1::RegisterSubscriberRequest} or an equivalent Hash.
|
3126
|
+
#
|
3127
|
+
# @param request [::Google::Cloud::Channel::V1::RegisterSubscriberRequest, ::Hash]
|
3128
|
+
# A request object representing the call parameters. Required. To specify no
|
3129
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3130
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
3131
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
3132
|
+
#
|
3133
|
+
# @overload register_subscriber(account: nil, service_account: nil)
|
3134
|
+
# Pass arguments to `register_subscriber` via keyword arguments. Note that at
|
3135
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
3136
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
3137
|
+
#
|
3138
|
+
# @param account [::String]
|
3139
|
+
# Required. Resource name of the account.
|
3140
|
+
# @param service_account [::String]
|
3141
|
+
# Required. Service account which will provide subscriber access to the
|
3142
|
+
# registered topic.
|
3143
|
+
#
|
3144
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
3145
|
+
# @yieldparam response [::Google::Cloud::Channel::V1::RegisterSubscriberResponse]
|
3146
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
3147
|
+
#
|
3148
|
+
# @return [::Google::Cloud::Channel::V1::RegisterSubscriberResponse]
|
3149
|
+
#
|
3150
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
3151
|
+
#
|
3152
|
+
def register_subscriber request, options = nil
|
3153
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3154
|
+
|
3155
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Channel::V1::RegisterSubscriberRequest
|
3156
|
+
|
3157
|
+
# Converts hash and nil to an options object
|
3158
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3159
|
+
|
3160
|
+
# Customize the options with defaults
|
3161
|
+
metadata = @config.rpcs.register_subscriber.metadata.to_h
|
3162
|
+
|
3163
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
3164
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3165
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3166
|
+
gapic_version: ::Google::Cloud::Channel::V1::VERSION
|
3167
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3168
|
+
|
3169
|
+
header_params = {
|
3170
|
+
"account" => request.account
|
3171
|
+
}
|
3172
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
3173
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
3174
|
+
|
3175
|
+
options.apply_defaults timeout: @config.rpcs.register_subscriber.timeout,
|
3176
|
+
metadata: metadata,
|
3177
|
+
retry_policy: @config.rpcs.register_subscriber.retry_policy
|
3178
|
+
options.apply_defaults metadata: @config.metadata,
|
3179
|
+
retry_policy: @config.retry_policy
|
3180
|
+
|
3181
|
+
@cloud_channel_service_stub.call_rpc :register_subscriber, request, options: options do |response, operation|
|
3182
|
+
yield response, operation if block_given?
|
3183
|
+
return response
|
3184
|
+
end
|
3185
|
+
rescue ::GRPC::BadStatus => e
|
3186
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3187
|
+
end
|
3188
|
+
|
3189
|
+
##
|
3190
|
+
# Unregisters a service account with subscriber privileges on the Cloud
|
3191
|
+
# Pub/Sub topic created for this Channel Services account. If there are no
|
3192
|
+
# more service account left with sunbscriber privileges, the topic will be
|
3193
|
+
# deleted. You can check this by calling ListSubscribers api.
|
3194
|
+
#
|
3195
|
+
# Possible Error Codes:
|
3196
|
+
#
|
3197
|
+
# * PERMISSION_DENIED: If the reseller account making the request and the
|
3198
|
+
# reseller account being provided are different, or if the impersonated user
|
3199
|
+
# is not a super admin.
|
3200
|
+
# * INVALID_ARGUMENT: Missing or invalid required parameters in the
|
3201
|
+
# request.
|
3202
|
+
# * NOT_FOUND: If the topic resource doesn't exist.
|
3203
|
+
# * INTERNAL: Any non-user error related to a technical issue in the
|
3204
|
+
# backend. In this case, contact Cloud Channel support.
|
3205
|
+
# * UNKNOWN: Any non-user error related to a technical issue in
|
3206
|
+
# the backend. In this case, contact Cloud Channel support.
|
3207
|
+
#
|
3208
|
+
# Return Value:
|
3209
|
+
# Topic name from which service email address has been unregistered if
|
3210
|
+
# successful, otherwise error is returned. If the service email was already
|
3211
|
+
# not associated with the topic, the success response will be returned.
|
3212
|
+
#
|
3213
|
+
# @overload unregister_subscriber(request, options = nil)
|
3214
|
+
# Pass arguments to `unregister_subscriber` via a request object, either of type
|
3215
|
+
# {::Google::Cloud::Channel::V1::UnregisterSubscriberRequest} or an equivalent Hash.
|
3216
|
+
#
|
3217
|
+
# @param request [::Google::Cloud::Channel::V1::UnregisterSubscriberRequest, ::Hash]
|
3218
|
+
# A request object representing the call parameters. Required. To specify no
|
3219
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3220
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
3221
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
3222
|
+
#
|
3223
|
+
# @overload unregister_subscriber(account: nil, service_account: nil)
|
3224
|
+
# Pass arguments to `unregister_subscriber` via keyword arguments. Note that at
|
3225
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
3226
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
3227
|
+
#
|
3228
|
+
# @param account [::String]
|
3229
|
+
# Required. Resource name of the account.
|
3230
|
+
# @param service_account [::String]
|
3231
|
+
# Required. Service account which will be unregistered from getting subscriber access
|
3232
|
+
# to the topic.
|
3233
|
+
#
|
3234
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
3235
|
+
# @yieldparam response [::Google::Cloud::Channel::V1::UnregisterSubscriberResponse]
|
3236
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
3237
|
+
#
|
3238
|
+
# @return [::Google::Cloud::Channel::V1::UnregisterSubscriberResponse]
|
3239
|
+
#
|
3240
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
3241
|
+
#
|
3242
|
+
def unregister_subscriber request, options = nil
|
3243
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3244
|
+
|
3245
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Channel::V1::UnregisterSubscriberRequest
|
3246
|
+
|
3247
|
+
# Converts hash and nil to an options object
|
3248
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3249
|
+
|
3250
|
+
# Customize the options with defaults
|
3251
|
+
metadata = @config.rpcs.unregister_subscriber.metadata.to_h
|
3252
|
+
|
3253
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
3254
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3255
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3256
|
+
gapic_version: ::Google::Cloud::Channel::V1::VERSION
|
3257
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3258
|
+
|
3259
|
+
header_params = {
|
3260
|
+
"account" => request.account
|
3261
|
+
}
|
3262
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
3263
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
3264
|
+
|
3265
|
+
options.apply_defaults timeout: @config.rpcs.unregister_subscriber.timeout,
|
3266
|
+
metadata: metadata,
|
3267
|
+
retry_policy: @config.rpcs.unregister_subscriber.retry_policy
|
3268
|
+
options.apply_defaults metadata: @config.metadata,
|
3269
|
+
retry_policy: @config.retry_policy
|
3270
|
+
|
3271
|
+
@cloud_channel_service_stub.call_rpc :unregister_subscriber, request, options: options do |response, operation|
|
3272
|
+
yield response, operation if block_given?
|
3273
|
+
return response
|
3274
|
+
end
|
3275
|
+
rescue ::GRPC::BadStatus => e
|
3276
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3277
|
+
end
|
3278
|
+
|
3279
|
+
##
|
3280
|
+
# Lists service accounts with subscriber privileges on the Cloud Pub/Sub
|
3281
|
+
# topic created for this Channel Services account.
|
3282
|
+
#
|
3283
|
+
# Possible Error Codes:
|
3284
|
+
#
|
3285
|
+
# * PERMISSION_DENIED: If the reseller account making the request and the
|
3286
|
+
# reseller account being provided are different, or if the account is not
|
3287
|
+
# a super admin.
|
3288
|
+
# * INVALID_ARGUMENT: Missing or invalid required parameters in the
|
3289
|
+
# request.
|
3290
|
+
# * NOT_FOUND: If the topic resource doesn't exist.
|
3291
|
+
# * INTERNAL: Any non-user error related to a technical issue in the
|
3292
|
+
# backend. In this case, contact Cloud Channel support.
|
3293
|
+
# * UNKNOWN: Any non-user error related to a technical issue in
|
3294
|
+
# the backend. In this case, contact Cloud Channel support.
|
3295
|
+
#
|
3296
|
+
# Return Value:
|
3297
|
+
# List of service email addresses if successful, otherwise error is
|
3298
|
+
# returned.
|
3299
|
+
#
|
3300
|
+
# @overload list_subscribers(request, options = nil)
|
3301
|
+
# Pass arguments to `list_subscribers` via a request object, either of type
|
3302
|
+
# {::Google::Cloud::Channel::V1::ListSubscribersRequest} or an equivalent Hash.
|
3303
|
+
#
|
3304
|
+
# @param request [::Google::Cloud::Channel::V1::ListSubscribersRequest, ::Hash]
|
3305
|
+
# A request object representing the call parameters. Required. To specify no
|
3306
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3307
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
3308
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
3309
|
+
#
|
3310
|
+
# @overload list_subscribers(account: nil, page_size: nil, page_token: nil)
|
3311
|
+
# Pass arguments to `list_subscribers` via keyword arguments. Note that at
|
3312
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
3313
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
3314
|
+
#
|
3315
|
+
# @param account [::String]
|
3316
|
+
# Required. Resource name of the account.
|
3317
|
+
# @param page_size [::Integer]
|
3318
|
+
# Optional. The maximum number of service accounts to return. The service may return
|
3319
|
+
# fewer than this value.
|
3320
|
+
# If unspecified, at most 100 service accounts will be returned.
|
3321
|
+
# The maximum value is 1000; values above 1000 will be coerced to 1000.
|
3322
|
+
# @param page_token [::String]
|
3323
|
+
# Optional. A page token, received from a previous `ListSubscribers` call.
|
3324
|
+
# Provide this to retrieve the subsequent page.
|
3325
|
+
#
|
3326
|
+
# When paginating, all other parameters provided to `ListSubscribers` must
|
3327
|
+
# match the call that provided the page token.
|
3328
|
+
#
|
3329
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
3330
|
+
# @yieldparam response [::Google::Cloud::Channel::V1::ListSubscribersResponse]
|
3331
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
3332
|
+
#
|
3333
|
+
# @return [::Google::Cloud::Channel::V1::ListSubscribersResponse]
|
3334
|
+
#
|
3335
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
3336
|
+
#
|
3337
|
+
def list_subscribers request, options = nil
|
3338
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3339
|
+
|
3340
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Channel::V1::ListSubscribersRequest
|
3341
|
+
|
3342
|
+
# Converts hash and nil to an options object
|
3343
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3344
|
+
|
3345
|
+
# Customize the options with defaults
|
3346
|
+
metadata = @config.rpcs.list_subscribers.metadata.to_h
|
3347
|
+
|
3348
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
3349
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3350
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3351
|
+
gapic_version: ::Google::Cloud::Channel::V1::VERSION
|
3352
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3353
|
+
|
3354
|
+
header_params = {
|
3355
|
+
"account" => request.account
|
3356
|
+
}
|
3357
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
3358
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
3359
|
+
|
3360
|
+
options.apply_defaults timeout: @config.rpcs.list_subscribers.timeout,
|
3361
|
+
metadata: metadata,
|
3362
|
+
retry_policy: @config.rpcs.list_subscribers.retry_policy
|
3363
|
+
options.apply_defaults metadata: @config.metadata,
|
3364
|
+
retry_policy: @config.retry_policy
|
3365
|
+
|
3366
|
+
@cloud_channel_service_stub.call_rpc :list_subscribers, request, options: options do |response, operation|
|
3367
|
+
yield response, operation if block_given?
|
3368
|
+
return response
|
3369
|
+
end
|
3370
|
+
rescue ::GRPC::BadStatus => e
|
3371
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3372
|
+
end
|
3373
|
+
|
3139
3374
|
##
|
3140
3375
|
# Configuration class for the CloudChannelService API.
|
3141
3376
|
#
|
@@ -3228,7 +3463,7 @@ module Google
|
|
3228
3463
|
config_attr :scope, nil, ::String, ::Array, nil
|
3229
3464
|
config_attr :lib_name, nil, ::String, nil
|
3230
3465
|
config_attr :lib_version, nil, ::String, nil
|
3231
|
-
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
3466
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
|
3232
3467
|
config_attr :interceptors, nil, ::Array, nil
|
3233
3468
|
config_attr :timeout, nil, ::Numeric, nil
|
3234
3469
|
config_attr :metadata, nil, ::Hash, nil
|
@@ -3249,7 +3484,7 @@ module Google
|
|
3249
3484
|
def rpcs
|
3250
3485
|
@rpcs ||= begin
|
3251
3486
|
parent_rpcs = nil
|
3252
|
-
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config
|
3487
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
3253
3488
|
Rpcs.new parent_rpcs
|
3254
3489
|
end
|
3255
3490
|
end
|
@@ -3261,7 +3496,7 @@ module Google
|
|
3261
3496
|
# Each configuration object is of type `Gapic::Config::Method` and includes
|
3262
3497
|
# the following configuration fields:
|
3263
3498
|
#
|
3264
|
-
# * `timeout` (*type:* `Numeric`) - The call timeout in
|
3499
|
+
# * `timeout` (*type:* `Numeric`) - The call timeout in seconds
|
3265
3500
|
# * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
|
3266
3501
|
# * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
|
3267
3502
|
# include the following keys:
|
@@ -3422,69 +3657,90 @@ module Google
|
|
3422
3657
|
# @return [::Gapic::Config::Method]
|
3423
3658
|
#
|
3424
3659
|
attr_reader :list_purchasable_offers
|
3660
|
+
##
|
3661
|
+
# RPC-specific configuration for `register_subscriber`
|
3662
|
+
# @return [::Gapic::Config::Method]
|
3663
|
+
#
|
3664
|
+
attr_reader :register_subscriber
|
3665
|
+
##
|
3666
|
+
# RPC-specific configuration for `unregister_subscriber`
|
3667
|
+
# @return [::Gapic::Config::Method]
|
3668
|
+
#
|
3669
|
+
attr_reader :unregister_subscriber
|
3670
|
+
##
|
3671
|
+
# RPC-specific configuration for `list_subscribers`
|
3672
|
+
# @return [::Gapic::Config::Method]
|
3673
|
+
#
|
3674
|
+
attr_reader :list_subscribers
|
3425
3675
|
|
3426
3676
|
# @private
|
3427
3677
|
def initialize parent_rpcs = nil
|
3428
|
-
list_customers_config = parent_rpcs
|
3678
|
+
list_customers_config = parent_rpcs.list_customers if parent_rpcs.respond_to? :list_customers
|
3429
3679
|
@list_customers = ::Gapic::Config::Method.new list_customers_config
|
3430
|
-
get_customer_config = parent_rpcs
|
3680
|
+
get_customer_config = parent_rpcs.get_customer if parent_rpcs.respond_to? :get_customer
|
3431
3681
|
@get_customer = ::Gapic::Config::Method.new get_customer_config
|
3432
|
-
check_cloud_identity_accounts_exist_config = parent_rpcs
|
3682
|
+
check_cloud_identity_accounts_exist_config = parent_rpcs.check_cloud_identity_accounts_exist if parent_rpcs.respond_to? :check_cloud_identity_accounts_exist
|
3433
3683
|
@check_cloud_identity_accounts_exist = ::Gapic::Config::Method.new check_cloud_identity_accounts_exist_config
|
3434
|
-
create_customer_config = parent_rpcs
|
3684
|
+
create_customer_config = parent_rpcs.create_customer if parent_rpcs.respond_to? :create_customer
|
3435
3685
|
@create_customer = ::Gapic::Config::Method.new create_customer_config
|
3436
|
-
update_customer_config = parent_rpcs
|
3686
|
+
update_customer_config = parent_rpcs.update_customer if parent_rpcs.respond_to? :update_customer
|
3437
3687
|
@update_customer = ::Gapic::Config::Method.new update_customer_config
|
3438
|
-
delete_customer_config = parent_rpcs
|
3688
|
+
delete_customer_config = parent_rpcs.delete_customer if parent_rpcs.respond_to? :delete_customer
|
3439
3689
|
@delete_customer = ::Gapic::Config::Method.new delete_customer_config
|
3440
|
-
provision_cloud_identity_config = parent_rpcs
|
3690
|
+
provision_cloud_identity_config = parent_rpcs.provision_cloud_identity if parent_rpcs.respond_to? :provision_cloud_identity
|
3441
3691
|
@provision_cloud_identity = ::Gapic::Config::Method.new provision_cloud_identity_config
|
3442
|
-
list_entitlements_config = parent_rpcs
|
3692
|
+
list_entitlements_config = parent_rpcs.list_entitlements if parent_rpcs.respond_to? :list_entitlements
|
3443
3693
|
@list_entitlements = ::Gapic::Config::Method.new list_entitlements_config
|
3444
|
-
list_transferable_skus_config = parent_rpcs
|
3694
|
+
list_transferable_skus_config = parent_rpcs.list_transferable_skus if parent_rpcs.respond_to? :list_transferable_skus
|
3445
3695
|
@list_transferable_skus = ::Gapic::Config::Method.new list_transferable_skus_config
|
3446
|
-
list_transferable_offers_config = parent_rpcs
|
3696
|
+
list_transferable_offers_config = parent_rpcs.list_transferable_offers if parent_rpcs.respond_to? :list_transferable_offers
|
3447
3697
|
@list_transferable_offers = ::Gapic::Config::Method.new list_transferable_offers_config
|
3448
|
-
get_entitlement_config = parent_rpcs
|
3698
|
+
get_entitlement_config = parent_rpcs.get_entitlement if parent_rpcs.respond_to? :get_entitlement
|
3449
3699
|
@get_entitlement = ::Gapic::Config::Method.new get_entitlement_config
|
3450
|
-
create_entitlement_config = parent_rpcs
|
3700
|
+
create_entitlement_config = parent_rpcs.create_entitlement if parent_rpcs.respond_to? :create_entitlement
|
3451
3701
|
@create_entitlement = ::Gapic::Config::Method.new create_entitlement_config
|
3452
|
-
change_parameters_config = parent_rpcs
|
3702
|
+
change_parameters_config = parent_rpcs.change_parameters if parent_rpcs.respond_to? :change_parameters
|
3453
3703
|
@change_parameters = ::Gapic::Config::Method.new change_parameters_config
|
3454
|
-
change_renewal_settings_config = parent_rpcs
|
3704
|
+
change_renewal_settings_config = parent_rpcs.change_renewal_settings if parent_rpcs.respond_to? :change_renewal_settings
|
3455
3705
|
@change_renewal_settings = ::Gapic::Config::Method.new change_renewal_settings_config
|
3456
|
-
change_offer_config = parent_rpcs
|
3706
|
+
change_offer_config = parent_rpcs.change_offer if parent_rpcs.respond_to? :change_offer
|
3457
3707
|
@change_offer = ::Gapic::Config::Method.new change_offer_config
|
3458
|
-
start_paid_service_config = parent_rpcs
|
3708
|
+
start_paid_service_config = parent_rpcs.start_paid_service if parent_rpcs.respond_to? :start_paid_service
|
3459
3709
|
@start_paid_service = ::Gapic::Config::Method.new start_paid_service_config
|
3460
|
-
suspend_entitlement_config = parent_rpcs
|
3710
|
+
suspend_entitlement_config = parent_rpcs.suspend_entitlement if parent_rpcs.respond_to? :suspend_entitlement
|
3461
3711
|
@suspend_entitlement = ::Gapic::Config::Method.new suspend_entitlement_config
|
3462
|
-
cancel_entitlement_config = parent_rpcs
|
3712
|
+
cancel_entitlement_config = parent_rpcs.cancel_entitlement if parent_rpcs.respond_to? :cancel_entitlement
|
3463
3713
|
@cancel_entitlement = ::Gapic::Config::Method.new cancel_entitlement_config
|
3464
|
-
activate_entitlement_config = parent_rpcs
|
3714
|
+
activate_entitlement_config = parent_rpcs.activate_entitlement if parent_rpcs.respond_to? :activate_entitlement
|
3465
3715
|
@activate_entitlement = ::Gapic::Config::Method.new activate_entitlement_config
|
3466
|
-
transfer_entitlements_config = parent_rpcs
|
3716
|
+
transfer_entitlements_config = parent_rpcs.transfer_entitlements if parent_rpcs.respond_to? :transfer_entitlements
|
3467
3717
|
@transfer_entitlements = ::Gapic::Config::Method.new transfer_entitlements_config
|
3468
|
-
transfer_entitlements_to_google_config = parent_rpcs
|
3718
|
+
transfer_entitlements_to_google_config = parent_rpcs.transfer_entitlements_to_google if parent_rpcs.respond_to? :transfer_entitlements_to_google
|
3469
3719
|
@transfer_entitlements_to_google = ::Gapic::Config::Method.new transfer_entitlements_to_google_config
|
3470
|
-
list_channel_partner_links_config = parent_rpcs
|
3720
|
+
list_channel_partner_links_config = parent_rpcs.list_channel_partner_links if parent_rpcs.respond_to? :list_channel_partner_links
|
3471
3721
|
@list_channel_partner_links = ::Gapic::Config::Method.new list_channel_partner_links_config
|
3472
|
-
get_channel_partner_link_config = parent_rpcs
|
3722
|
+
get_channel_partner_link_config = parent_rpcs.get_channel_partner_link if parent_rpcs.respond_to? :get_channel_partner_link
|
3473
3723
|
@get_channel_partner_link = ::Gapic::Config::Method.new get_channel_partner_link_config
|
3474
|
-
create_channel_partner_link_config = parent_rpcs
|
3724
|
+
create_channel_partner_link_config = parent_rpcs.create_channel_partner_link if parent_rpcs.respond_to? :create_channel_partner_link
|
3475
3725
|
@create_channel_partner_link = ::Gapic::Config::Method.new create_channel_partner_link_config
|
3476
|
-
update_channel_partner_link_config = parent_rpcs
|
3726
|
+
update_channel_partner_link_config = parent_rpcs.update_channel_partner_link if parent_rpcs.respond_to? :update_channel_partner_link
|
3477
3727
|
@update_channel_partner_link = ::Gapic::Config::Method.new update_channel_partner_link_config
|
3478
|
-
list_products_config = parent_rpcs
|
3728
|
+
list_products_config = parent_rpcs.list_products if parent_rpcs.respond_to? :list_products
|
3479
3729
|
@list_products = ::Gapic::Config::Method.new list_products_config
|
3480
|
-
list_skus_config = parent_rpcs
|
3730
|
+
list_skus_config = parent_rpcs.list_skus if parent_rpcs.respond_to? :list_skus
|
3481
3731
|
@list_skus = ::Gapic::Config::Method.new list_skus_config
|
3482
|
-
list_offers_config = parent_rpcs
|
3732
|
+
list_offers_config = parent_rpcs.list_offers if parent_rpcs.respond_to? :list_offers
|
3483
3733
|
@list_offers = ::Gapic::Config::Method.new list_offers_config
|
3484
|
-
list_purchasable_skus_config = parent_rpcs
|
3734
|
+
list_purchasable_skus_config = parent_rpcs.list_purchasable_skus if parent_rpcs.respond_to? :list_purchasable_skus
|
3485
3735
|
@list_purchasable_skus = ::Gapic::Config::Method.new list_purchasable_skus_config
|
3486
|
-
list_purchasable_offers_config = parent_rpcs
|
3736
|
+
list_purchasable_offers_config = parent_rpcs.list_purchasable_offers if parent_rpcs.respond_to? :list_purchasable_offers
|
3487
3737
|
@list_purchasable_offers = ::Gapic::Config::Method.new list_purchasable_offers_config
|
3738
|
+
register_subscriber_config = parent_rpcs.register_subscriber if parent_rpcs.respond_to? :register_subscriber
|
3739
|
+
@register_subscriber = ::Gapic::Config::Method.new register_subscriber_config
|
3740
|
+
unregister_subscriber_config = parent_rpcs.unregister_subscriber if parent_rpcs.respond_to? :unregister_subscriber
|
3741
|
+
@unregister_subscriber = ::Gapic::Config::Method.new unregister_subscriber_config
|
3742
|
+
list_subscribers_config = parent_rpcs.list_subscribers if parent_rpcs.respond_to? :list_subscribers
|
3743
|
+
@list_subscribers = ::Gapic::Config::Method.new list_subscribers_config
|
3488
3744
|
|
3489
3745
|
yield self if block_given?
|
3490
3746
|
end
|