google-cloud-channel-v1 2.4.1 → 2.5.0
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 +4 -4
- data/lib/google/cloud/channel/v1/billing_accounts_pb.rb +2 -24
- data/lib/google/cloud/channel/v1/channel_partner_links_pb.rb +2 -25
- data/lib/google/cloud/channel/v1/cloud_channel_service/client.rb +35 -17
- data/lib/google/cloud/channel/v1/cloud_channel_service/paths.rb +14 -0
- data/lib/google/cloud/channel/v1/cloud_channel_service/rest/client.rb +35 -17
- data/lib/google/cloud/channel/v1/cloud_channel_service/rest/service_stub.rb +23 -0
- data/lib/google/cloud/channel/v1/common_pb.rb +2 -24
- data/lib/google/cloud/channel/v1/customers_pb.rb +2 -26
- data/lib/google/cloud/channel/v1/entitlement_changes_pb.rb +2 -25
- data/lib/google/cloud/channel/v1/entitlements_pb.rb +3 -28
- data/lib/google/cloud/channel/v1/offers_pb.rb +5 -28
- data/lib/google/cloud/channel/v1/operations_pb.rb +2 -23
- data/lib/google/cloud/channel/v1/products_pb.rb +2 -23
- data/lib/google/cloud/channel/v1/reports_service_pb.rb +2 -28
- data/lib/google/cloud/channel/v1/repricing_pb.rb +3 -27
- data/lib/google/cloud/channel/v1/service_pb.rb +3 -34
- data/lib/google/cloud/channel/v1/service_services_pb.rb +8 -8
- data/lib/google/cloud/channel/v1/subscriber_event_pb.rb +2 -23
- data/lib/google/cloud/channel/v1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +149 -29
- data/proto_docs/google/cloud/channel/v1/customers.rb +2 -2
- data/proto_docs/google/cloud/channel/v1/entitlements.rb +5 -0
- data/proto_docs/google/cloud/channel/v1/offers.rb +50 -0
- data/proto_docs/google/cloud/channel/v1/repricing.rb +1 -1
- data/proto_docs/google/cloud/channel/v1/service.rb +50 -11
- data/proto_docs/google/cloud/channel/v1/subscriber_event.rb +2 -2
- data/proto_docs/google/type/date.rb +10 -7
- data/proto_docs/google/type/datetime.rb +16 -15
- data/proto_docs/google/type/decimal.rb +10 -11
- data/proto_docs/google/type/postal_address.rb +38 -37
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 141afd814e0d73350ea0cbcaa910aa60c3e3da0ef368ad0438716ecf005bf61c
|
|
4
|
+
data.tar.gz: 6eac0e1fa108dfe9a02a459a2bf9ad54549eefa825e5974b8f64d6178d6193eb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3a610f07e529a450a3ca80307a558ff1d1f8b13404b371f131d05d88420af6673920cbfc890bef6d2ebaeccc071d9642043c794482eec7597948103ea574c633
|
|
7
|
+
data.tar.gz: 523a9e84a16b6b70aa4653d815ff4260fec103eb3f05f5f99c33942fca89148c67db1d8691b25cbf532bd0ae7b219b9dc6776e64c05d0b4a99149cc0843cefe1
|
|
@@ -11,30 +11,8 @@ require 'google/protobuf/timestamp_pb'
|
|
|
11
11
|
|
|
12
12
|
descriptor_data = "\n.google/cloud/channel/v1/billing_accounts.proto\x12\x17google.cloud.channel.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x8c\x02\n\x0e\x42illingAccount\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1a\n\rcurrency_code\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0bregion_code\x18\x05 \x01(\tB\x03\xe0\x41\x03:e\xea\x41\x62\n*cloudchannel.googleapis.com/BillingAccount\x12\x34\x61\x63\x63ounts/{account}/billingAccounts/{billing_account}Bl\n\x1b\x63om.google.cloud.channel.v1B\x14\x42illingAccountsProtoP\x01Z5cloud.google.com/go/channel/apiv1/channelpb;channelpbb\x06proto3"
|
|
13
13
|
|
|
14
|
-
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
15
|
-
|
|
16
|
-
begin
|
|
17
|
-
pool.add_serialized_file(descriptor_data)
|
|
18
|
-
rescue TypeError
|
|
19
|
-
# Compatibility code: will be removed in the next major version.
|
|
20
|
-
require 'google/protobuf/descriptor_pb'
|
|
21
|
-
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
|
22
|
-
parsed.clear_dependency
|
|
23
|
-
serialized = parsed.class.encode(parsed)
|
|
24
|
-
file = pool.add_serialized_file(serialized)
|
|
25
|
-
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
26
|
-
imports = [
|
|
27
|
-
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
|
28
|
-
]
|
|
29
|
-
imports.each do |type_name, expected_filename|
|
|
30
|
-
import_file = pool.lookup(type_name).file_descriptor
|
|
31
|
-
if import_file.name != expected_filename
|
|
32
|
-
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
33
|
-
end
|
|
34
|
-
end
|
|
35
|
-
warn "Each proto file must use a consistent fully-qualified name."
|
|
36
|
-
warn "This will become an error in the next major version."
|
|
37
|
-
end
|
|
14
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
15
|
+
pool.add_serialized_file(descriptor_data)
|
|
38
16
|
|
|
39
17
|
module Google
|
|
40
18
|
module Cloud
|
|
@@ -12,31 +12,8 @@ require 'google/protobuf/timestamp_pb'
|
|
|
12
12
|
|
|
13
13
|
descriptor_data = "\n3google/cloud/channel/v1/channel_partner_links.proto\x12\x17google.cloud.channel.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a$google/cloud/channel/v1/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x8f\x04\n\x12\x43hannelPartnerLink\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\'\n\x1areseller_cloud_identity_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12I\n\nlink_state\x18\x03 \x01(\x0e\x32\x30.google.cloud.channel.v1.ChannelPartnerLinkStateB\x03\xe0\x41\x02\x12\x1c\n\x0finvite_link_uri\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x16\n\tpublic_id\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12\\\n#channel_partner_cloud_identity_info\x18\x08 \x01(\x0b\x32*.google.cloud.channel.v1.CloudIdentityInfoB\x03\xe0\x41\x03:r\xea\x41o\n.cloudchannel.googleapis.com/ChannelPartnerLink\x12=accounts/{account}/channelPartnerLinks/{channel_partner_link}*>\n\x16\x43hannelPartnerLinkView\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\t\n\x05\x42\x41SIC\x10\x01\x12\x08\n\x04\x46ULL\x10\x02*z\n\x17\x43hannelPartnerLinkState\x12*\n&CHANNEL_PARTNER_LINK_STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07INVITED\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\x0b\n\x07REVOKED\x10\x03\x12\r\n\tSUSPENDED\x10\x04\x42p\n\x1b\x63om.google.cloud.channel.v1B\x18\x43hannelPartnerLinksProtoP\x01Z5cloud.google.com/go/channel/apiv1/channelpb;channelpbb\x06proto3"
|
|
14
14
|
|
|
15
|
-
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
16
|
-
|
|
17
|
-
begin
|
|
18
|
-
pool.add_serialized_file(descriptor_data)
|
|
19
|
-
rescue TypeError
|
|
20
|
-
# Compatibility code: will be removed in the next major version.
|
|
21
|
-
require 'google/protobuf/descriptor_pb'
|
|
22
|
-
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
|
23
|
-
parsed.clear_dependency
|
|
24
|
-
serialized = parsed.class.encode(parsed)
|
|
25
|
-
file = pool.add_serialized_file(serialized)
|
|
26
|
-
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
27
|
-
imports = [
|
|
28
|
-
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
|
29
|
-
["google.cloud.channel.v1.CloudIdentityInfo", "google/cloud/channel/v1/common.proto"],
|
|
30
|
-
]
|
|
31
|
-
imports.each do |type_name, expected_filename|
|
|
32
|
-
import_file = pool.lookup(type_name).file_descriptor
|
|
33
|
-
if import_file.name != expected_filename
|
|
34
|
-
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
35
|
-
end
|
|
36
|
-
end
|
|
37
|
-
warn "Each proto file must use a consistent fully-qualified name."
|
|
38
|
-
warn "This will become an error in the next major version."
|
|
39
|
-
end
|
|
15
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
16
|
+
pool.add_serialized_file(descriptor_data)
|
|
40
17
|
|
|
41
18
|
module Google
|
|
42
19
|
module Cloud
|
|
@@ -2080,7 +2080,7 @@ module Google
|
|
|
2080
2080
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
2081
2081
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
2082
2082
|
#
|
|
2083
|
-
# @overload change_offer(name: nil, offer: nil, parameters: nil, purchase_order_id: nil, request_id: nil, billing_account: nil)
|
|
2083
|
+
# @overload change_offer(name: nil, offer: nil, parameters: nil, purchase_order_id: nil, request_id: nil, billing_account: nil, price_reference_id: nil)
|
|
2084
2084
|
# Pass arguments to `change_offer` via keyword arguments. Note that at
|
|
2085
2085
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
2086
2086
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -2118,6 +2118,10 @@ module Google
|
|
|
2118
2118
|
#
|
|
2119
2119
|
# This field is only relevant for multi-currency accounts. It should be
|
|
2120
2120
|
# left empty for single currency accounts.
|
|
2121
|
+
# @param price_reference_id [::String]
|
|
2122
|
+
# Optional. Price reference ID for the offer. Only for offers that require
|
|
2123
|
+
# additional price information. Used to guarantee that the pricing is
|
|
2124
|
+
# consistent between quoting the offer and placing the order.
|
|
2121
2125
|
#
|
|
2122
2126
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
2123
2127
|
# @yieldparam response [::Gapic::Operation]
|
|
@@ -4683,7 +4687,8 @@ module Google
|
|
|
4683
4687
|
# @param page_token [::String]
|
|
4684
4688
|
# Optional. A token identifying a page of results beyond the first page.
|
|
4685
4689
|
# Obtained through
|
|
4686
|
-
#
|
|
4690
|
+
# {::Google::Cloud::Channel::V1::ListSkuGroupsResponse#next_page_token ListSkuGroupsResponse.next_page_token}
|
|
4691
|
+
# of the previous
|
|
4687
4692
|
# {::Google::Cloud::Channel::V1::CloudChannelService::Client#list_sku_groups CloudChannelService.ListSkuGroups}
|
|
4688
4693
|
# call.
|
|
4689
4694
|
#
|
|
@@ -4803,7 +4808,8 @@ module Google
|
|
|
4803
4808
|
# @param page_token [::String]
|
|
4804
4809
|
# Optional. A token identifying a page of results beyond the first page.
|
|
4805
4810
|
# Obtained through
|
|
4806
|
-
#
|
|
4811
|
+
# {::Google::Cloud::Channel::V1::ListSkuGroupBillableSkusResponse#next_page_token ListSkuGroupBillableSkusResponse.next_page_token}
|
|
4812
|
+
# of the previous
|
|
4807
4813
|
# {::Google::Cloud::Channel::V1::CloudChannelService::Client#list_sku_group_billable_skus CloudChannelService.ListSkuGroupBillableSkus}
|
|
4808
4814
|
# call.
|
|
4809
4815
|
#
|
|
@@ -5639,8 +5645,8 @@ module Google
|
|
|
5639
5645
|
end
|
|
5640
5646
|
|
|
5641
5647
|
##
|
|
5642
|
-
# Registers a service account with subscriber privileges on the
|
|
5643
|
-
# topic for this Channel Services account. After you create a
|
|
5648
|
+
# Registers a service account with subscriber privileges on the Pub/Sub
|
|
5649
|
+
# topic for this Channel Services account or integrator. After you create a
|
|
5644
5650
|
# subscriber, you get the events through
|
|
5645
5651
|
# {::Google::Cloud::Channel::V1::SubscriberEvent SubscriberEvent}
|
|
5646
5652
|
#
|
|
@@ -5668,16 +5674,20 @@ module Google
|
|
|
5668
5674
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
5669
5675
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
5670
5676
|
#
|
|
5671
|
-
# @overload register_subscriber(account: nil, service_account: nil)
|
|
5677
|
+
# @overload register_subscriber(account: nil, service_account: nil, integrator: nil)
|
|
5672
5678
|
# Pass arguments to `register_subscriber` via keyword arguments. Note that at
|
|
5673
5679
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
5674
5680
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
5675
5681
|
#
|
|
5676
5682
|
# @param account [::String]
|
|
5677
|
-
#
|
|
5683
|
+
# Optional. Resource name of the account. Required if integrator is not
|
|
5684
|
+
# provided. Otherwise, leave this field empty/unset.
|
|
5678
5685
|
# @param service_account [::String]
|
|
5679
5686
|
# Required. Service account that provides subscriber access to the registered
|
|
5680
5687
|
# topic.
|
|
5688
|
+
# @param integrator [::String]
|
|
5689
|
+
# Optional. Resource name of the integrator. Required if account is not
|
|
5690
|
+
# provided. Otherwise, leave this field empty/unset.
|
|
5681
5691
|
#
|
|
5682
5692
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
5683
5693
|
# @yieldparam response [::Google::Cloud::Channel::V1::RegisterSubscriberResponse]
|
|
@@ -5744,10 +5754,10 @@ module Google
|
|
|
5744
5754
|
end
|
|
5745
5755
|
|
|
5746
5756
|
##
|
|
5747
|
-
# Unregisters a service account with subscriber privileges on the
|
|
5748
|
-
#
|
|
5749
|
-
# service accounts left with subscriber privileges, this deletes the
|
|
5750
|
-
# You can call ListSubscribers to check for these accounts.
|
|
5757
|
+
# Unregisters a service account with subscriber privileges on the Pub/Sub
|
|
5758
|
+
# topic created for this Channel Services account or integrator. If there are
|
|
5759
|
+
# no service accounts left with subscriber privileges, this deletes the
|
|
5760
|
+
# topic. You can call ListSubscribers to check for these accounts.
|
|
5751
5761
|
#
|
|
5752
5762
|
# Possible error codes:
|
|
5753
5763
|
#
|
|
@@ -5776,16 +5786,20 @@ module Google
|
|
|
5776
5786
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
5777
5787
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
5778
5788
|
#
|
|
5779
|
-
# @overload unregister_subscriber(account: nil, service_account: nil)
|
|
5789
|
+
# @overload unregister_subscriber(account: nil, service_account: nil, integrator: nil)
|
|
5780
5790
|
# Pass arguments to `unregister_subscriber` via keyword arguments. Note that at
|
|
5781
5791
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
5782
5792
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
5783
5793
|
#
|
|
5784
5794
|
# @param account [::String]
|
|
5785
|
-
#
|
|
5795
|
+
# Optional. Resource name of the account. Required if integrator is not
|
|
5796
|
+
# provided. Otherwise, leave this field empty/unset.
|
|
5786
5797
|
# @param service_account [::String]
|
|
5787
5798
|
# Required. Service account to unregister from subscriber access to the
|
|
5788
5799
|
# topic.
|
|
5800
|
+
# @param integrator [::String]
|
|
5801
|
+
# Optional. Resource name of the integrator. Required if account is not
|
|
5802
|
+
# provided. Otherwise, leave this field empty/unset.
|
|
5789
5803
|
#
|
|
5790
5804
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
5791
5805
|
# @yieldparam response [::Google::Cloud::Channel::V1::UnregisterSubscriberResponse]
|
|
@@ -5852,8 +5866,8 @@ module Google
|
|
|
5852
5866
|
end
|
|
5853
5867
|
|
|
5854
5868
|
##
|
|
5855
|
-
# Lists service accounts with subscriber privileges on the
|
|
5856
|
-
#
|
|
5869
|
+
# Lists service accounts with subscriber privileges on the Pub/Sub topic
|
|
5870
|
+
# created for this Channel Services account or integrator.
|
|
5857
5871
|
#
|
|
5858
5872
|
# Possible error codes:
|
|
5859
5873
|
#
|
|
@@ -5880,13 +5894,14 @@ module Google
|
|
|
5880
5894
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
5881
5895
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
5882
5896
|
#
|
|
5883
|
-
# @overload list_subscribers(account: nil, page_size: nil, page_token: nil)
|
|
5897
|
+
# @overload list_subscribers(account: nil, page_size: nil, page_token: nil, integrator: nil)
|
|
5884
5898
|
# Pass arguments to `list_subscribers` via keyword arguments. Note that at
|
|
5885
5899
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
5886
5900
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
5887
5901
|
#
|
|
5888
5902
|
# @param account [::String]
|
|
5889
|
-
#
|
|
5903
|
+
# Optional. Resource name of the account. Required if integrator is not
|
|
5904
|
+
# provided. Otherwise, leave this field empty/unset.
|
|
5890
5905
|
# @param page_size [::Integer]
|
|
5891
5906
|
# Optional. The maximum number of service accounts to return. The service may
|
|
5892
5907
|
# return fewer than this value. If unspecified, returns at most 100 service
|
|
@@ -5898,6 +5913,9 @@ module Google
|
|
|
5898
5913
|
#
|
|
5899
5914
|
# When paginating, all other parameters provided to `ListSubscribers` must
|
|
5900
5915
|
# match the call that provided the page token.
|
|
5916
|
+
# @param integrator [::String]
|
|
5917
|
+
# Optional. Resource name of the integrator. Required if account is not
|
|
5918
|
+
# provided. Otherwise, leave this field empty/unset.
|
|
5901
5919
|
#
|
|
5902
5920
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
5903
5921
|
# @yieldparam response [::Google::Cloud::Channel::V1::ListSubscribersResponse]
|
|
@@ -24,6 +24,20 @@ module Google
|
|
|
24
24
|
module CloudChannelService
|
|
25
25
|
# Path helper methods for the CloudChannelService API.
|
|
26
26
|
module Paths
|
|
27
|
+
##
|
|
28
|
+
# Create a fully-qualified Account resource string.
|
|
29
|
+
#
|
|
30
|
+
# The resource will be in the following format:
|
|
31
|
+
#
|
|
32
|
+
# `accounts/{account}`
|
|
33
|
+
#
|
|
34
|
+
# @param account [String]
|
|
35
|
+
#
|
|
36
|
+
# @return [::String]
|
|
37
|
+
def account_path account:
|
|
38
|
+
"accounts/#{account}"
|
|
39
|
+
end
|
|
40
|
+
|
|
27
41
|
##
|
|
28
42
|
# Create a fully-qualified ChannelPartnerLink resource string.
|
|
29
43
|
#
|
|
@@ -1968,7 +1968,7 @@ module Google
|
|
|
1968
1968
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1969
1969
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1970
1970
|
#
|
|
1971
|
-
# @overload change_offer(name: nil, offer: nil, parameters: nil, purchase_order_id: nil, request_id: nil, billing_account: nil)
|
|
1971
|
+
# @overload change_offer(name: nil, offer: nil, parameters: nil, purchase_order_id: nil, request_id: nil, billing_account: nil, price_reference_id: nil)
|
|
1972
1972
|
# Pass arguments to `change_offer` via keyword arguments. Note that at
|
|
1973
1973
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1974
1974
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -2006,6 +2006,10 @@ module Google
|
|
|
2006
2006
|
#
|
|
2007
2007
|
# This field is only relevant for multi-currency accounts. It should be
|
|
2008
2008
|
# left empty for single currency accounts.
|
|
2009
|
+
# @param price_reference_id [::String]
|
|
2010
|
+
# Optional. Price reference ID for the offer. Only for offers that require
|
|
2011
|
+
# additional price information. Used to guarantee that the pricing is
|
|
2012
|
+
# consistent between quoting the offer and placing the order.
|
|
2009
2013
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
2010
2014
|
# @yieldparam result [::Gapic::Operation]
|
|
2011
2015
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -4424,7 +4428,8 @@ module Google
|
|
|
4424
4428
|
# @param page_token [::String]
|
|
4425
4429
|
# Optional. A token identifying a page of results beyond the first page.
|
|
4426
4430
|
# Obtained through
|
|
4427
|
-
#
|
|
4431
|
+
# {::Google::Cloud::Channel::V1::ListSkuGroupsResponse#next_page_token ListSkuGroupsResponse.next_page_token}
|
|
4432
|
+
# of the previous
|
|
4428
4433
|
# {::Google::Cloud::Channel::V1::CloudChannelService::Rest::Client#list_sku_groups CloudChannelService.ListSkuGroups}
|
|
4429
4434
|
# call.
|
|
4430
4435
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
@@ -4537,7 +4542,8 @@ module Google
|
|
|
4537
4542
|
# @param page_token [::String]
|
|
4538
4543
|
# Optional. A token identifying a page of results beyond the first page.
|
|
4539
4544
|
# Obtained through
|
|
4540
|
-
#
|
|
4545
|
+
# {::Google::Cloud::Channel::V1::ListSkuGroupBillableSkusResponse#next_page_token ListSkuGroupBillableSkusResponse.next_page_token}
|
|
4546
|
+
# of the previous
|
|
4541
4547
|
# {::Google::Cloud::Channel::V1::CloudChannelService::Rest::Client#list_sku_group_billable_skus CloudChannelService.ListSkuGroupBillableSkus}
|
|
4542
4548
|
# call.
|
|
4543
4549
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
@@ -5325,8 +5331,8 @@ module Google
|
|
|
5325
5331
|
end
|
|
5326
5332
|
|
|
5327
5333
|
##
|
|
5328
|
-
# Registers a service account with subscriber privileges on the
|
|
5329
|
-
# topic for this Channel Services account. After you create a
|
|
5334
|
+
# Registers a service account with subscriber privileges on the Pub/Sub
|
|
5335
|
+
# topic for this Channel Services account or integrator. After you create a
|
|
5330
5336
|
# subscriber, you get the events through
|
|
5331
5337
|
# {::Google::Cloud::Channel::V1::SubscriberEvent SubscriberEvent}
|
|
5332
5338
|
#
|
|
@@ -5354,16 +5360,20 @@ module Google
|
|
|
5354
5360
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
5355
5361
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
5356
5362
|
#
|
|
5357
|
-
# @overload register_subscriber(account: nil, service_account: nil)
|
|
5363
|
+
# @overload register_subscriber(account: nil, service_account: nil, integrator: nil)
|
|
5358
5364
|
# Pass arguments to `register_subscriber` via keyword arguments. Note that at
|
|
5359
5365
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
5360
5366
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
5361
5367
|
#
|
|
5362
5368
|
# @param account [::String]
|
|
5363
|
-
#
|
|
5369
|
+
# Optional. Resource name of the account. Required if integrator is not
|
|
5370
|
+
# provided. Otherwise, leave this field empty/unset.
|
|
5364
5371
|
# @param service_account [::String]
|
|
5365
5372
|
# Required. Service account that provides subscriber access to the registered
|
|
5366
5373
|
# topic.
|
|
5374
|
+
# @param integrator [::String]
|
|
5375
|
+
# Optional. Resource name of the integrator. Required if account is not
|
|
5376
|
+
# provided. Otherwise, leave this field empty/unset.
|
|
5367
5377
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
5368
5378
|
# @yieldparam result [::Google::Cloud::Channel::V1::RegisterSubscriberResponse]
|
|
5369
5379
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -5423,10 +5433,10 @@ module Google
|
|
|
5423
5433
|
end
|
|
5424
5434
|
|
|
5425
5435
|
##
|
|
5426
|
-
# Unregisters a service account with subscriber privileges on the
|
|
5427
|
-
#
|
|
5428
|
-
# service accounts left with subscriber privileges, this deletes the
|
|
5429
|
-
# You can call ListSubscribers to check for these accounts.
|
|
5436
|
+
# Unregisters a service account with subscriber privileges on the Pub/Sub
|
|
5437
|
+
# topic created for this Channel Services account or integrator. If there are
|
|
5438
|
+
# no service accounts left with subscriber privileges, this deletes the
|
|
5439
|
+
# topic. You can call ListSubscribers to check for these accounts.
|
|
5430
5440
|
#
|
|
5431
5441
|
# Possible error codes:
|
|
5432
5442
|
#
|
|
@@ -5455,16 +5465,20 @@ module Google
|
|
|
5455
5465
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
5456
5466
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
5457
5467
|
#
|
|
5458
|
-
# @overload unregister_subscriber(account: nil, service_account: nil)
|
|
5468
|
+
# @overload unregister_subscriber(account: nil, service_account: nil, integrator: nil)
|
|
5459
5469
|
# Pass arguments to `unregister_subscriber` via keyword arguments. Note that at
|
|
5460
5470
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
5461
5471
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
5462
5472
|
#
|
|
5463
5473
|
# @param account [::String]
|
|
5464
|
-
#
|
|
5474
|
+
# Optional. Resource name of the account. Required if integrator is not
|
|
5475
|
+
# provided. Otherwise, leave this field empty/unset.
|
|
5465
5476
|
# @param service_account [::String]
|
|
5466
5477
|
# Required. Service account to unregister from subscriber access to the
|
|
5467
5478
|
# topic.
|
|
5479
|
+
# @param integrator [::String]
|
|
5480
|
+
# Optional. Resource name of the integrator. Required if account is not
|
|
5481
|
+
# provided. Otherwise, leave this field empty/unset.
|
|
5468
5482
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
5469
5483
|
# @yieldparam result [::Google::Cloud::Channel::V1::UnregisterSubscriberResponse]
|
|
5470
5484
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -5524,8 +5538,8 @@ module Google
|
|
|
5524
5538
|
end
|
|
5525
5539
|
|
|
5526
5540
|
##
|
|
5527
|
-
# Lists service accounts with subscriber privileges on the
|
|
5528
|
-
#
|
|
5541
|
+
# Lists service accounts with subscriber privileges on the Pub/Sub topic
|
|
5542
|
+
# created for this Channel Services account or integrator.
|
|
5529
5543
|
#
|
|
5530
5544
|
# Possible error codes:
|
|
5531
5545
|
#
|
|
@@ -5552,13 +5566,14 @@ module Google
|
|
|
5552
5566
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
5553
5567
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
5554
5568
|
#
|
|
5555
|
-
# @overload list_subscribers(account: nil, page_size: nil, page_token: nil)
|
|
5569
|
+
# @overload list_subscribers(account: nil, page_size: nil, page_token: nil, integrator: nil)
|
|
5556
5570
|
# Pass arguments to `list_subscribers` via keyword arguments. Note that at
|
|
5557
5571
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
5558
5572
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
5559
5573
|
#
|
|
5560
5574
|
# @param account [::String]
|
|
5561
|
-
#
|
|
5575
|
+
# Optional. Resource name of the account. Required if integrator is not
|
|
5576
|
+
# provided. Otherwise, leave this field empty/unset.
|
|
5562
5577
|
# @param page_size [::Integer]
|
|
5563
5578
|
# Optional. The maximum number of service accounts to return. The service may
|
|
5564
5579
|
# return fewer than this value. If unspecified, returns at most 100 service
|
|
@@ -5570,6 +5585,9 @@ module Google
|
|
|
5570
5585
|
#
|
|
5571
5586
|
# When paginating, all other parameters provided to `ListSubscribers` must
|
|
5572
5587
|
# match the call that provided the page token.
|
|
5588
|
+
# @param integrator [::String]
|
|
5589
|
+
# Optional. Resource name of the integrator. Required if account is not
|
|
5590
|
+
# provided. Otherwise, leave this field empty/unset.
|
|
5573
5591
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
5574
5592
|
# @yieldparam result [::Google::Cloud::Channel::V1::ListSubscribersResponse]
|
|
5575
5593
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -3063,6 +3063,14 @@ module Google
|
|
|
3063
3063
|
["account", %r{^accounts/[^/]+/?$}, false]
|
|
3064
3064
|
]
|
|
3065
3065
|
)
|
|
3066
|
+
.with_bindings(
|
|
3067
|
+
uri_method: :post,
|
|
3068
|
+
uri_template: "/v1/{integrator}:registerSubscriber",
|
|
3069
|
+
body: "*",
|
|
3070
|
+
matches: [
|
|
3071
|
+
["integrator", %r{^integrators/[^/]+/?$}, false]
|
|
3072
|
+
]
|
|
3073
|
+
)
|
|
3066
3074
|
transcoder.transcode request_pb
|
|
3067
3075
|
end
|
|
3068
3076
|
|
|
@@ -3085,6 +3093,14 @@ module Google
|
|
|
3085
3093
|
["account", %r{^accounts/[^/]+/?$}, false]
|
|
3086
3094
|
]
|
|
3087
3095
|
)
|
|
3096
|
+
.with_bindings(
|
|
3097
|
+
uri_method: :post,
|
|
3098
|
+
uri_template: "/v1/{integrator}:unregisterSubscriber",
|
|
3099
|
+
body: "*",
|
|
3100
|
+
matches: [
|
|
3101
|
+
["integrator", %r{^integrators/[^/]+/?$}, false]
|
|
3102
|
+
]
|
|
3103
|
+
)
|
|
3088
3104
|
transcoder.transcode request_pb
|
|
3089
3105
|
end
|
|
3090
3106
|
|
|
@@ -3106,6 +3122,13 @@ module Google
|
|
|
3106
3122
|
["account", %r{^accounts/[^/]+/?$}, false]
|
|
3107
3123
|
]
|
|
3108
3124
|
)
|
|
3125
|
+
.with_bindings(
|
|
3126
|
+
uri_method: :get,
|
|
3127
|
+
uri_template: "/v1/{integrator}:listSubscribers",
|
|
3128
|
+
matches: [
|
|
3129
|
+
["integrator", %r{^integrators/[^/]+/?$}, false]
|
|
3130
|
+
]
|
|
3131
|
+
)
|
|
3109
3132
|
transcoder.transcode request_pb
|
|
3110
3133
|
end
|
|
3111
3134
|
|
|
@@ -10,30 +10,8 @@ require 'google/protobuf/any_pb'
|
|
|
10
10
|
|
|
11
11
|
descriptor_data = "\n$google/cloud/channel/v1/common.proto\x12\x17google.cloud.channel.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/protobuf/any.proto\"\xb0\x03\n\x07\x45\x64uData\x12\x46\n\x0einstitute_type\x18\x01 \x01(\x0e\x32..google.cloud.channel.v1.EduData.InstituteType\x12\x46\n\x0einstitute_size\x18\x02 \x01(\x0e\x32..google.cloud.channel.v1.EduData.InstituteSize\x12\x0f\n\x07website\x18\x03 \x01(\t\"H\n\rInstituteType\x12\x1e\n\x1aINSTITUTE_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03K12\x10\x01\x12\x0e\n\nUNIVERSITY\x10\x02\"\xb9\x01\n\rInstituteSize\x12\x1e\n\x1aINSTITUTE_SIZE_UNSPECIFIED\x10\x00\x12\x0e\n\nSIZE_1_100\x10\x01\x12\x10\n\x0cSIZE_101_500\x10\x02\x12\x11\n\rSIZE_501_1000\x10\x03\x12\x12\n\x0eSIZE_1001_2000\x10\x04\x12\x12\n\x0eSIZE_2001_5000\x10\x05\x12\x13\n\x0fSIZE_5001_10000\x10\x06\x12\x16\n\x12SIZE_10001_OR_MORE\x10\x07\"\x80\x03\n\x11\x43loudIdentityInfo\x12N\n\rcustomer_type\x18\x01 \x01(\x0e\x32\x37.google.cloud.channel.v1.CloudIdentityInfo.CustomerType\x12\x1b\n\x0eprimary_domain\x18\t \x01(\tB\x03\xe0\x41\x03\x12\x1f\n\x12is_domain_verified\x18\x04 \x01(\x08\x42\x03\xe0\x41\x03\x12\x17\n\x0f\x61lternate_email\x18\x06 \x01(\t\x12\x14\n\x0cphone_number\x18\x07 \x01(\t\x12\x15\n\rlanguage_code\x18\x08 \x01(\t\x12\x1e\n\x11\x61\x64min_console_uri\x18\n \x01(\tB\x03\xe0\x41\x03\x12\x32\n\x08\x65\x64u_data\x18\x16 \x01(\x0b\x32 .google.cloud.channel.v1.EduData\"C\n\x0c\x43ustomerType\x12\x1d\n\x19\x43USTOMER_TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06\x44OMAIN\x10\x01\x12\x08\n\x04TEAM\x10\x02\"\x99\x01\n\x05Value\x12\x15\n\x0bint64_value\x18\x01 \x01(\x03H\x00\x12\x16\n\x0cstring_value\x18\x02 \x01(\tH\x00\x12\x16\n\x0c\x64ouble_value\x18\x03 \x01(\x01H\x00\x12+\n\x0bproto_value\x18\x04 \x01(\x0b\x32\x14.google.protobuf.AnyH\x00\x12\x14\n\nbool_value\x18\x05 \x01(\x08H\x00\x42\x06\n\x04kind\"C\n\tAdminUser\x12\r\n\x05\x65mail\x18\x01 \x01(\t\x12\x12\n\ngiven_name\x18\x02 \x01(\t\x12\x13\n\x0b\x66\x61mily_name\x18\x03 \x01(\tBc\n\x1b\x63om.google.cloud.channel.v1B\x0b\x43ommonProtoP\x01Z5cloud.google.com/go/channel/apiv1/channelpb;channelpbb\x06proto3"
|
|
12
12
|
|
|
13
|
-
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
14
|
-
|
|
15
|
-
begin
|
|
16
|
-
pool.add_serialized_file(descriptor_data)
|
|
17
|
-
rescue TypeError
|
|
18
|
-
# Compatibility code: will be removed in the next major version.
|
|
19
|
-
require 'google/protobuf/descriptor_pb'
|
|
20
|
-
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
|
21
|
-
parsed.clear_dependency
|
|
22
|
-
serialized = parsed.class.encode(parsed)
|
|
23
|
-
file = pool.add_serialized_file(serialized)
|
|
24
|
-
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
25
|
-
imports = [
|
|
26
|
-
["google.protobuf.Any", "google/protobuf/any.proto"],
|
|
27
|
-
]
|
|
28
|
-
imports.each do |type_name, expected_filename|
|
|
29
|
-
import_file = pool.lookup(type_name).file_descriptor
|
|
30
|
-
if import_file.name != expected_filename
|
|
31
|
-
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
warn "Each proto file must use a consistent fully-qualified name."
|
|
35
|
-
warn "This will become an error in the next major version."
|
|
36
|
-
end
|
|
13
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
14
|
+
pool.add_serialized_file(descriptor_data)
|
|
37
15
|
|
|
38
16
|
module Google
|
|
39
17
|
module Cloud
|
|
@@ -13,32 +13,8 @@ require 'google/type/postal_address_pb'
|
|
|
13
13
|
|
|
14
14
|
descriptor_data = "\n\'google/cloud/channel/v1/customers.proto\x12\x17google.cloud.channel.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a$google/cloud/channel/v1/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a google/type/postal_address.proto\"\xc9\x06\n\x08\x43ustomer\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1d\n\x10org_display_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12;\n\x12org_postal_address\x18\x03 \x01(\x0b\x32\x1a.google.type.PostalAddressB\x03\xe0\x41\x02\x12\x42\n\x14primary_contact_info\x18\x04 \x01(\x0b\x32$.google.cloud.channel.v1.ContactInfo\x12\x17\n\x0f\x61lternate_email\x18\x05 \x01(\t\x12\x13\n\x06\x64omain\x18\x06 \x01(\tB\x03\xe0\x41\x02\x12\x34\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1e\n\x11\x63loud_identity_id\x18\t \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rlanguage_code\x18\n \x01(\tB\x03\xe0\x41\x01\x12L\n\x13\x63loud_identity_info\x18\x0c \x01(\x0b\x32*.google.cloud.channel.v1.CloudIdentityInfoB\x03\xe0\x41\x03\x12\x1a\n\x12\x63hannel_partner_id\x18\r \x01(\t\x12\x1b\n\x0e\x63orrelation_id\x18\x0e \x01(\tB\x03\xe0\x41\x01\x12\x63\n\x1a\x63ustomer_attestation_state\x18\x10 \x01(\x0e\x32:.google.cloud.channel.v1.Customer.CustomerAttestationStateB\x03\xe0\x41\x01\"t\n\x18\x43ustomerAttestationState\x12*\n&CUSTOMER_ATTESTATION_STATE_UNSPECIFIED\x10\x00\x12\n\n\x06\x45XEMPT\x10\x01\x12 \n\x1cNON_EXEMPT_AND_INFO_VERIFIED\x10\x02:R\xea\x41O\n$cloudchannel.googleapis.com/Customer\x12\'accounts/{account}/customers/{customer}\"\x81\x01\n\x0b\x43ontactInfo\x12\x12\n\nfirst_name\x18\x01 \x01(\t\x12\x11\n\tlast_name\x18\x02 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\r\n\x05\x65mail\x18\x05 \x01(\t\x12\x12\n\x05title\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\r\n\x05phone\x18\x07 \x01(\tBf\n\x1b\x63om.google.cloud.channel.v1B\x0e\x43ustomersProtoP\x01Z5cloud.google.com/go/channel/apiv1/channelpb;channelpbb\x06proto3"
|
|
15
15
|
|
|
16
|
-
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
17
|
-
|
|
18
|
-
begin
|
|
19
|
-
pool.add_serialized_file(descriptor_data)
|
|
20
|
-
rescue TypeError
|
|
21
|
-
# Compatibility code: will be removed in the next major version.
|
|
22
|
-
require 'google/protobuf/descriptor_pb'
|
|
23
|
-
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
|
24
|
-
parsed.clear_dependency
|
|
25
|
-
serialized = parsed.class.encode(parsed)
|
|
26
|
-
file = pool.add_serialized_file(serialized)
|
|
27
|
-
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
28
|
-
imports = [
|
|
29
|
-
["google.type.PostalAddress", "google/type/postal_address.proto"],
|
|
30
|
-
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
|
31
|
-
["google.cloud.channel.v1.CloudIdentityInfo", "google/cloud/channel/v1/common.proto"],
|
|
32
|
-
]
|
|
33
|
-
imports.each do |type_name, expected_filename|
|
|
34
|
-
import_file = pool.lookup(type_name).file_descriptor
|
|
35
|
-
if import_file.name != expected_filename
|
|
36
|
-
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
37
|
-
end
|
|
38
|
-
end
|
|
39
|
-
warn "Each proto file must use a consistent fully-qualified name."
|
|
40
|
-
warn "This will become an error in the next major version."
|
|
41
|
-
end
|
|
16
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
17
|
+
pool.add_serialized_file(descriptor_data)
|
|
42
18
|
|
|
43
19
|
module Google
|
|
44
20
|
module Cloud
|
|
@@ -12,31 +12,8 @@ require 'google/protobuf/timestamp_pb'
|
|
|
12
12
|
|
|
13
13
|
descriptor_data = "\n1google/cloud/channel/v1/entitlement_changes.proto\x12\x17google.cloud.channel.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a*google/cloud/channel/v1/entitlements.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xbe\x0c\n\x11\x45ntitlementChange\x12R\n\x11suspension_reason\x18\t \x01(\x0e\x32\x35.google.cloud.channel.v1.Entitlement.SuspensionReasonH\x00\x12\\\n\x13\x63\x61ncellation_reason\x18\n \x01(\x0e\x32=.google.cloud.channel.v1.EntitlementChange.CancellationReasonH\x00\x12X\n\x11\x61\x63tivation_reason\x18\x0b \x01(\x0e\x32;.google.cloud.channel.v1.EntitlementChange.ActivationReasonH\x00\x12\x1d\n\x13other_change_reason\x18\x64 \x01(\tH\x00\x12\x44\n\x0b\x65ntitlement\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'cloudchannel.googleapis.com/Entitlement\x12\x38\n\x05offer\x18\x02 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!cloudchannel.googleapis.com/Offer\x12H\n\x13provisioned_service\x18\x03 \x01(\x0b\x32+.google.cloud.channel.v1.ProvisionedService\x12J\n\x0b\x63hange_type\x18\x04 \x01(\x0e\x32\x35.google.cloud.channel.v1.EntitlementChange.ChangeType\x12/\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12N\n\roperator_type\x18\x06 \x01(\x0e\x32\x37.google.cloud.channel.v1.EntitlementChange.OperatorType\x12\x36\n\nparameters\x18\x08 \x03(\x0b\x32\".google.cloud.channel.v1.Parameter\x12\x10\n\x08operator\x18\x0c \x01(\t\"\xd7\x02\n\nChangeType\x12\x1b\n\x17\x43HANGE_TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x43REATED\x10\x01\x12\x17\n\x13PRICE_PLAN_SWITCHED\x10\x03\x12\x16\n\x12\x43OMMITMENT_CHANGED\x10\x04\x12\x0b\n\x07RENEWED\x10\x05\x12\r\n\tSUSPENDED\x10\x06\x12\r\n\tACTIVATED\x10\x07\x12\r\n\tCANCELLED\x10\x08\x12\x0f\n\x0bSKU_CHANGED\x10\t\x12\x1b\n\x17RENEWAL_SETTING_CHANGED\x10\n\x12\x1d\n\x19PAID_SUBSCRIPTION_STARTED\x10\x0b\x12\x17\n\x13LICENSE_CAP_CHANGED\x10\x0c\x12\x1e\n\x1aSUSPENSION_DETAILS_CHANGED\x10\r\x12\x1b\n\x17TRIAL_END_DATE_EXTENDED\x10\x0e\x12\x11\n\rTRIAL_STARTED\x10\x0f\"z\n\x0cOperatorType\x12\x1d\n\x19OPERATOR_TYPE_UNSPECIFIED\x10\x00\x12#\n\x1f\x43USTOMER_SERVICE_REPRESENTATIVE\x10\x01\x12\n\n\x06SYSTEM\x10\x02\x12\x0c\n\x08\x43USTOMER\x10\x03\x12\x0c\n\x08RESELLER\x10\x04\"\x7f\n\x12\x43\x61ncellationReason\x12#\n\x1f\x43\x41NCELLATION_REASON_UNSPECIFIED\x10\x00\x12\x16\n\x12SERVICE_TERMINATED\x10\x01\x12\x16\n\x12RELATIONSHIP_ENDED\x10\x02\x12\x14\n\x10PARTIAL_TRANSFER\x10\x03\"\xb4\x01\n\x10\x41\x63tivationReason\x12!\n\x1d\x41\x43TIVATION_REASON_UNSPECIFIED\x10\x00\x12\x1f\n\x1bRESELLER_REVOKED_SUSPENSION\x10\x01\x12!\n\x1d\x43USTOMER_ACCEPTED_PENDING_TOS\x10\x02\x12\x1c\n\x18RENEWAL_SETTINGS_CHANGED\x10\x03\x12\x1b\n\x17OTHER_ACTIVATION_REASON\x10\x64\x42\x0f\n\rchange_reasonBo\n\x1b\x63om.google.cloud.channel.v1B\x17\x45ntitlementChangesProtoP\x01Z5cloud.google.com/go/channel/apiv1/channelpb;channelpbb\x06proto3"
|
|
14
14
|
|
|
15
|
-
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
16
|
-
|
|
17
|
-
begin
|
|
18
|
-
pool.add_serialized_file(descriptor_data)
|
|
19
|
-
rescue TypeError
|
|
20
|
-
# Compatibility code: will be removed in the next major version.
|
|
21
|
-
require 'google/protobuf/descriptor_pb'
|
|
22
|
-
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
|
23
|
-
parsed.clear_dependency
|
|
24
|
-
serialized = parsed.class.encode(parsed)
|
|
25
|
-
file = pool.add_serialized_file(serialized)
|
|
26
|
-
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
27
|
-
imports = [
|
|
28
|
-
["google.cloud.channel.v1.ProvisionedService", "google/cloud/channel/v1/entitlements.proto"],
|
|
29
|
-
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
|
30
|
-
]
|
|
31
|
-
imports.each do |type_name, expected_filename|
|
|
32
|
-
import_file = pool.lookup(type_name).file_descriptor
|
|
33
|
-
if import_file.name != expected_filename
|
|
34
|
-
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
35
|
-
end
|
|
36
|
-
end
|
|
37
|
-
warn "Each proto file must use a consistent fully-qualified name."
|
|
38
|
-
warn "This will become an error in the next major version."
|
|
39
|
-
end
|
|
15
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
16
|
+
pool.add_serialized_file(descriptor_data)
|
|
40
17
|
|
|
41
18
|
module Google
|
|
42
19
|
module Cloud
|
|
@@ -12,35 +12,10 @@ require 'google/cloud/channel/v1/products_pb'
|
|
|
12
12
|
require 'google/protobuf/timestamp_pb'
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
descriptor_data = "\n*google/cloud/channel/v1/entitlements.proto\x12\x17google.cloud.channel.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a$google/cloud/channel/v1/common.proto\x1a$google/cloud/channel/v1/offers.proto\x1a&google/cloud/channel/v1/products.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\
|
|
15
|
+
descriptor_data = "\n*google/cloud/channel/v1/entitlements.proto\x12\x17google.cloud.channel.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a$google/cloud/channel/v1/common.proto\x1a$google/cloud/channel/v1/offers.proto\x1a&google/cloud/channel/v1/products.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x9c\t\n\x0b\x45ntitlement\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x38\n\x05offer\x18\x08 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!cloudchannel.googleapis.com/Offer\x12H\n\x13\x63ommitment_settings\x18\x0c \x01(\x0b\x32+.google.cloud.channel.v1.CommitmentSettings\x12W\n\x12provisioning_state\x18\r \x01(\x0e\x32\x36.google.cloud.channel.v1.Entitlement.ProvisioningStateB\x03\xe0\x41\x03\x12M\n\x13provisioned_service\x18\x10 \x01(\x0b\x32+.google.cloud.channel.v1.ProvisionedServiceB\x03\xe0\x41\x03\x12V\n\x12suspension_reasons\x18\x12 \x03(\x0e\x32\x35.google.cloud.channel.v1.Entitlement.SuspensionReasonB\x03\xe0\x41\x03\x12\x1e\n\x11purchase_order_id\x18\x13 \x01(\tB\x03\xe0\x41\x01\x12\x43\n\x0etrial_settings\x18\x15 \x01(\x0b\x32&.google.cloud.channel.v1.TrialSettingsB\x03\xe0\x41\x03\x12\x42\n\x10\x61ssociation_info\x18\x17 \x01(\x0b\x32(.google.cloud.channel.v1.AssociationInfo\x12\x36\n\nparameters\x18\x1a \x03(\x0b\x32\".google.cloud.channel.v1.Parameter\x12\x1c\n\x0f\x62illing_account\x18\x1c \x01(\tB\x03\xe0\x41\x01\x12\x1f\n\x12price_reference_id\x18\x1d \x01(\tB\x03\xe0\x41\x01\"R\n\x11ProvisioningState\x12\"\n\x1ePROVISIONING_STATE_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\r\n\tSUSPENDED\x10\x05\"\xa3\x01\n\x10SuspensionReason\x12!\n\x1dSUSPENSION_REASON_UNSPECIFIED\x10\x00\x12\x16\n\x12RESELLER_INITIATED\x10\x01\x12\x0f\n\x0bTRIAL_ENDED\x10\x02\x12\x1c\n\x18RENEWAL_WITH_TYPE_CANCEL\x10\x03\x12\x1a\n\x16PENDING_TOS_ACCEPTANCE\x10\x04\x12\t\n\x05OTHER\x10\x64:p\xea\x41m\n\'cloudchannel.googleapis.com/Entitlement\x12\x42\x61\x63\x63ounts/{account}/customers/{customer}/entitlements/{entitlement}\"_\n\tParameter\x12\x0c\n\x04name\x18\x01 \x01(\t\x12-\n\x05value\x18\x02 \x01(\x0b\x32\x1e.google.cloud.channel.v1.Value\x12\x15\n\x08\x65\x64itable\x18\x03 \x01(\x08\x42\x03\xe0\x41\x03\"Y\n\x0f\x41ssociationInfo\x12\x46\n\x10\x62\x61se_entitlement\x18\x01 \x01(\tB,\xfa\x41)\n\'cloudchannel.googleapis.com/Entitlement\"`\n\x12ProvisionedService\x12\x1c\n\x0fprovisioning_id\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\nproduct_id\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x06sku_id\x18\x03 \x01(\tB\x03\xe0\x41\x03\"\xc5\x01\n\x12\x43ommitmentSettings\x12\x33\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12G\n\x10renewal_settings\x18\x04 \x01(\x0b\x32(.google.cloud.channel.v1.RenewalSettingsB\x03\xe0\x41\x01\"\xb8\x01\n\x0fRenewalSettings\x12\x16\n\x0e\x65nable_renewal\x18\x01 \x01(\x08\x12\x19\n\x11resize_unit_count\x18\x02 \x01(\x08\x12:\n\x0cpayment_plan\x18\x05 \x01(\x0e\x32$.google.cloud.channel.v1.PaymentPlan\x12\x36\n\rpayment_cycle\x18\x06 \x01(\x0b\x32\x1f.google.cloud.channel.v1.Period\"L\n\rTrialSettings\x12\r\n\x05trial\x18\x01 \x01(\x08\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xbf\x01\n\x0fTransferableSku\x12J\n\x14transfer_eligibility\x18\t \x01(\x0b\x32,.google.cloud.channel.v1.TransferEligibility\x12)\n\x03sku\x18\x0b \x01(\x0b\x32\x1c.google.cloud.channel.v1.Sku\x12\x35\n\nlegacy_sku\x18\x0c \x01(\x0b\x32\x1c.google.cloud.channel.v1.SkuB\x03\xe0\x41\x01\"\xa6\x02\n\x13TransferEligibility\x12\x13\n\x0bis_eligible\x18\x01 \x01(\x08\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12Q\n\x14ineligibility_reason\x18\x03 \x01(\x0e\x32\x33.google.cloud.channel.v1.TransferEligibility.Reason\"\x91\x01\n\x06Reason\x12\x16\n\x12REASON_UNSPECIFIED\x10\x00\x12\x1a\n\x16PENDING_TOS_ACCEPTANCE\x10\x01\x12\x14\n\x10SKU_NOT_ELIGIBLE\x10\x02\x12\x11\n\rSKU_SUSPENDED\x10\x03\x12*\n&CHANNEL_PARTNER_NOT_AUTHORIZED_FOR_SKU\x10\x04\x42i\n\x1b\x63om.google.cloud.channel.v1B\x11\x45ntitlementsProtoP\x01Z5cloud.google.com/go/channel/apiv1/channelpb;channelpbb\x06proto3"
|
|
16
16
|
|
|
17
|
-
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
18
|
-
|
|
19
|
-
begin
|
|
20
|
-
pool.add_serialized_file(descriptor_data)
|
|
21
|
-
rescue TypeError
|
|
22
|
-
# Compatibility code: will be removed in the next major version.
|
|
23
|
-
require 'google/protobuf/descriptor_pb'
|
|
24
|
-
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
|
25
|
-
parsed.clear_dependency
|
|
26
|
-
serialized = parsed.class.encode(parsed)
|
|
27
|
-
file = pool.add_serialized_file(serialized)
|
|
28
|
-
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
29
|
-
imports = [
|
|
30
|
-
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
|
31
|
-
["google.cloud.channel.v1.Value", "google/cloud/channel/v1/common.proto"],
|
|
32
|
-
["google.cloud.channel.v1.Period", "google/cloud/channel/v1/offers.proto"],
|
|
33
|
-
["google.cloud.channel.v1.Sku", "google/cloud/channel/v1/products.proto"],
|
|
34
|
-
]
|
|
35
|
-
imports.each do |type_name, expected_filename|
|
|
36
|
-
import_file = pool.lookup(type_name).file_descriptor
|
|
37
|
-
if import_file.name != expected_filename
|
|
38
|
-
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
39
|
-
end
|
|
40
|
-
end
|
|
41
|
-
warn "Each proto file must use a consistent fully-qualified name."
|
|
42
|
-
warn "This will become an error in the next major version."
|
|
43
|
-
end
|
|
17
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
18
|
+
pool.add_serialized_file(descriptor_data)
|
|
44
19
|
|
|
45
20
|
module Google
|
|
46
21
|
module Cloud
|