google-cloud-channel-v1 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/channel/v1/cloud_channel_service/client.rb +88 -4
- data/lib/google/cloud/channel/v1/service_pb.rb +4 -0
- data/lib/google/cloud/channel/v1/service_services_pb.rb +16 -5
- data/lib/google/cloud/channel/v1/subscriber_event_pb.rb +1 -0
- data/lib/google/cloud/channel/v1/version.rb +1 -1
- data/proto_docs/google/cloud/channel/v1/customers.rb +23 -27
- data/proto_docs/google/cloud/channel/v1/service.rb +11 -0
- data/proto_docs/google/cloud/channel/v1/subscriber_event.rb +3 -0
- metadata +13 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2b4f1afca124a5f74ca7bd6ec081394018ba54f33b21a6fcbff3a0dd33a3549
|
4
|
+
data.tar.gz: c0c7cd5596c378c0384085cb9a4d2a331c8c87ee010c3811324d61eb3d8b76ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8dec77b18187153a47bff5054b86f0e9844a703d24d3ac294076d14dfef26a48ba60dfcca29b0174d7d18ddfc18377700d24a994be8ff1b1e6f216e3f4c0305
|
7
|
+
data.tar.gz: f5f564fecb6a420e8f02800ab9598ee354a074e58ed13996053d7532fc3eb66f45793deb20ff6f0ed0e0aa06b55c85ac9bbdc8c0518e79229cc4b74e18589499
|
@@ -297,7 +297,7 @@ module Google
|
|
297
297
|
end
|
298
298
|
|
299
299
|
##
|
300
|
-
# Returns
|
300
|
+
# Returns the requested {::Google::Cloud::Channel::V1::Customer Customer} resource.
|
301
301
|
#
|
302
302
|
# Possible error codes:
|
303
303
|
#
|
@@ -620,7 +620,7 @@ module Google
|
|
620
620
|
end
|
621
621
|
|
622
622
|
##
|
623
|
-
# Deletes the given {::Google::Cloud::Channel::V1::Customer Customer} permanently
|
623
|
+
# Deletes the given {::Google::Cloud::Channel::V1::Customer Customer} permanently.
|
624
624
|
#
|
625
625
|
# Possible error codes:
|
626
626
|
#
|
@@ -1091,7 +1091,7 @@ module Google
|
|
1091
1091
|
end
|
1092
1092
|
|
1093
1093
|
##
|
1094
|
-
# Returns
|
1094
|
+
# Returns the requested {::Google::Cloud::Channel::V1::Entitlement Entitlement} resource.
|
1095
1095
|
#
|
1096
1096
|
# Possible error codes:
|
1097
1097
|
#
|
@@ -2341,7 +2341,7 @@ module Google
|
|
2341
2341
|
end
|
2342
2342
|
|
2343
2343
|
##
|
2344
|
-
# Returns
|
2344
|
+
# Returns the requested {::Google::Cloud::Channel::V1::ChannelPartnerLink ChannelPartnerLink} resource.
|
2345
2345
|
# You must be a distributor to call this method.
|
2346
2346
|
#
|
2347
2347
|
# Possible error codes:
|
@@ -2610,6 +2610,83 @@ module Google
|
|
2610
2610
|
raise ::Google::Cloud::Error.from_error(e)
|
2611
2611
|
end
|
2612
2612
|
|
2613
|
+
##
|
2614
|
+
# Returns the requested {::Google::Cloud::Channel::V1::Offer Offer} resource.
|
2615
|
+
#
|
2616
|
+
# Possible error codes:
|
2617
|
+
#
|
2618
|
+
# * PERMISSION_DENIED: The entitlement doesn't belong to the reseller.
|
2619
|
+
# * INVALID_ARGUMENT: Required request parameters are missing or invalid.
|
2620
|
+
# * NOT_FOUND: Entitlement or offer was not found.
|
2621
|
+
#
|
2622
|
+
# Return value:
|
2623
|
+
# The {::Google::Cloud::Channel::V1::Offer Offer} resource.
|
2624
|
+
#
|
2625
|
+
# @overload lookup_offer(request, options = nil)
|
2626
|
+
# Pass arguments to `lookup_offer` via a request object, either of type
|
2627
|
+
# {::Google::Cloud::Channel::V1::LookupOfferRequest} or an equivalent Hash.
|
2628
|
+
#
|
2629
|
+
# @param request [::Google::Cloud::Channel::V1::LookupOfferRequest, ::Hash]
|
2630
|
+
# A request object representing the call parameters. Required. To specify no
|
2631
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2632
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2633
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2634
|
+
#
|
2635
|
+
# @overload lookup_offer(entitlement: nil)
|
2636
|
+
# Pass arguments to `lookup_offer` via keyword arguments. Note that at
|
2637
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2638
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2639
|
+
#
|
2640
|
+
# @param entitlement [::String]
|
2641
|
+
# Required. The resource name of the entitlement to retrieve the Offer.
|
2642
|
+
# Entitlement uses the format:
|
2643
|
+
# accounts/\\{account_id}/customers/\\{customer_id}/entitlements/\\{entitlement_id}
|
2644
|
+
#
|
2645
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
2646
|
+
# @yieldparam response [::Google::Cloud::Channel::V1::Offer]
|
2647
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
2648
|
+
#
|
2649
|
+
# @return [::Google::Cloud::Channel::V1::Offer]
|
2650
|
+
#
|
2651
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2652
|
+
#
|
2653
|
+
def lookup_offer request, options = nil
|
2654
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2655
|
+
|
2656
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Channel::V1::LookupOfferRequest
|
2657
|
+
|
2658
|
+
# Converts hash and nil to an options object
|
2659
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2660
|
+
|
2661
|
+
# Customize the options with defaults
|
2662
|
+
metadata = @config.rpcs.lookup_offer.metadata.to_h
|
2663
|
+
|
2664
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
2665
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2666
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2667
|
+
gapic_version: ::Google::Cloud::Channel::V1::VERSION
|
2668
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2669
|
+
|
2670
|
+
header_params = {
|
2671
|
+
"entitlement" => request.entitlement
|
2672
|
+
}
|
2673
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2674
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
2675
|
+
|
2676
|
+
options.apply_defaults timeout: @config.rpcs.lookup_offer.timeout,
|
2677
|
+
metadata: metadata,
|
2678
|
+
retry_policy: @config.rpcs.lookup_offer.retry_policy
|
2679
|
+
options.apply_defaults metadata: @config.metadata,
|
2680
|
+
retry_policy: @config.retry_policy
|
2681
|
+
|
2682
|
+
@cloud_channel_service_stub.call_rpc :lookup_offer, request, options: options do |response, operation|
|
2683
|
+
yield response, operation if block_given?
|
2684
|
+
return response
|
2685
|
+
end
|
2686
|
+
rescue ::GRPC::BadStatus => e
|
2687
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2688
|
+
end
|
2689
|
+
|
2613
2690
|
##
|
2614
2691
|
# Lists the Products the reseller is authorized to sell.
|
2615
2692
|
#
|
@@ -3568,6 +3645,11 @@ module Google
|
|
3568
3645
|
#
|
3569
3646
|
attr_reader :update_channel_partner_link
|
3570
3647
|
##
|
3648
|
+
# RPC-specific configuration for `lookup_offer`
|
3649
|
+
# @return [::Gapic::Config::Method]
|
3650
|
+
#
|
3651
|
+
attr_reader :lookup_offer
|
3652
|
+
##
|
3571
3653
|
# RPC-specific configuration for `list_products`
|
3572
3654
|
# @return [::Gapic::Config::Method]
|
3573
3655
|
#
|
@@ -3660,6 +3742,8 @@ module Google
|
|
3660
3742
|
@create_channel_partner_link = ::Gapic::Config::Method.new create_channel_partner_link_config
|
3661
3743
|
update_channel_partner_link_config = parent_rpcs.update_channel_partner_link if parent_rpcs.respond_to? :update_channel_partner_link
|
3662
3744
|
@update_channel_partner_link = ::Gapic::Config::Method.new update_channel_partner_link_config
|
3745
|
+
lookup_offer_config = parent_rpcs.lookup_offer if parent_rpcs.respond_to? :lookup_offer
|
3746
|
+
@lookup_offer = ::Gapic::Config::Method.new lookup_offer_config
|
3663
3747
|
list_products_config = parent_rpcs.list_products if parent_rpcs.respond_to? :list_products
|
3664
3748
|
@list_products = ::Gapic::Config::Method.new list_products_config
|
3665
3749
|
list_skus_config = parent_rpcs.list_skus if parent_rpcs.respond_to? :list_skus
|
@@ -181,6 +181,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
181
181
|
optional :name, :string, 1
|
182
182
|
optional :request_id, :string, 3
|
183
183
|
end
|
184
|
+
add_message "google.cloud.channel.v1.LookupOfferRequest" do
|
185
|
+
optional :entitlement, :string, 1
|
186
|
+
end
|
184
187
|
add_message "google.cloud.channel.v1.ListProductsRequest" do
|
185
188
|
optional :account, :string, 1
|
186
189
|
optional :page_size, :int32, 2
|
@@ -331,6 +334,7 @@ module Google
|
|
331
334
|
CancelEntitlementRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.CancelEntitlementRequest").msgclass
|
332
335
|
SuspendEntitlementRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.SuspendEntitlementRequest").msgclass
|
333
336
|
ActivateEntitlementRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.ActivateEntitlementRequest").msgclass
|
337
|
+
LookupOfferRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.LookupOfferRequest").msgclass
|
334
338
|
ListProductsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.ListProductsRequest").msgclass
|
335
339
|
ListProductsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.ListProductsResponse").msgclass
|
336
340
|
ListSkusRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.ListSkusRequest").msgclass
|
@@ -45,7 +45,7 @@ module Google
|
|
45
45
|
# distributors and their indirect resellers in a channel.
|
46
46
|
class Service
|
47
47
|
|
48
|
-
include GRPC::GenericService
|
48
|
+
include ::GRPC::GenericService
|
49
49
|
|
50
50
|
self.marshal_class_method = :encode
|
51
51
|
self.unmarshal_class_method = :decode
|
@@ -62,7 +62,7 @@ module Google
|
|
62
62
|
# Return value:
|
63
63
|
# List of [Customer][google.cloud.channel.v1.Customer]s, or an empty list if there are no customers.
|
64
64
|
rpc :ListCustomers, ::Google::Cloud::Channel::V1::ListCustomersRequest, ::Google::Cloud::Channel::V1::ListCustomersResponse
|
65
|
-
# Returns
|
65
|
+
# Returns the requested [Customer][google.cloud.channel.v1.Customer] resource.
|
66
66
|
#
|
67
67
|
# Possible error codes:
|
68
68
|
#
|
@@ -119,7 +119,7 @@ module Google
|
|
119
119
|
# Return value:
|
120
120
|
# The updated [Customer][google.cloud.channel.v1.Customer] resource.
|
121
121
|
rpc :UpdateCustomer, ::Google::Cloud::Channel::V1::UpdateCustomerRequest, ::Google::Cloud::Channel::V1::Customer
|
122
|
-
# Deletes the given [Customer][google.cloud.channel.v1.Customer] permanently
|
122
|
+
# Deletes the given [Customer][google.cloud.channel.v1.Customer] permanently.
|
123
123
|
#
|
124
124
|
# Possible error codes:
|
125
125
|
#
|
@@ -199,7 +199,7 @@ module Google
|
|
199
199
|
# Return value:
|
200
200
|
# List of [TransferableOffer][google.cloud.channel.v1.TransferableOffer] for the given customer and SKU.
|
201
201
|
rpc :ListTransferableOffers, ::Google::Cloud::Channel::V1::ListTransferableOffersRequest, ::Google::Cloud::Channel::V1::ListTransferableOffersResponse
|
202
|
-
# Returns
|
202
|
+
# Returns the requested [Entitlement][google.cloud.channel.v1.Entitlement] resource.
|
203
203
|
#
|
204
204
|
# Possible error codes:
|
205
205
|
#
|
@@ -491,7 +491,7 @@ module Google
|
|
491
491
|
# Return value:
|
492
492
|
# The list of the distributor account's [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink] resources.
|
493
493
|
rpc :ListChannelPartnerLinks, ::Google::Cloud::Channel::V1::ListChannelPartnerLinksRequest, ::Google::Cloud::Channel::V1::ListChannelPartnerLinksResponse
|
494
|
-
# Returns
|
494
|
+
# Returns the requested [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink] resource.
|
495
495
|
# You must be a distributor to call this method.
|
496
496
|
#
|
497
497
|
# Possible error codes:
|
@@ -550,6 +550,17 @@ module Google
|
|
550
550
|
# Return value:
|
551
551
|
# The updated [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink] resource.
|
552
552
|
rpc :UpdateChannelPartnerLink, ::Google::Cloud::Channel::V1::UpdateChannelPartnerLinkRequest, ::Google::Cloud::Channel::V1::ChannelPartnerLink
|
553
|
+
# Returns the requested [Offer][google.cloud.channel.v1.Offer] resource.
|
554
|
+
#
|
555
|
+
# Possible error codes:
|
556
|
+
#
|
557
|
+
# * PERMISSION_DENIED: The entitlement doesn't belong to the reseller.
|
558
|
+
# * INVALID_ARGUMENT: Required request parameters are missing or invalid.
|
559
|
+
# * NOT_FOUND: Entitlement or offer was not found.
|
560
|
+
#
|
561
|
+
# Return value:
|
562
|
+
# The [Offer][google.cloud.channel.v1.Offer] resource.
|
563
|
+
rpc :LookupOffer, ::Google::Cloud::Channel::V1::LookupOfferRequest, ::Google::Cloud::Channel::V1::Offer
|
553
564
|
# Lists the Products the reseller is authorized to sell.
|
554
565
|
#
|
555
566
|
# Possible error codes:
|
@@ -33,6 +33,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
33
33
|
value :RENEWAL_SETTING_CHANGED, 10
|
34
34
|
value :PAID_SERVICE_STARTED, 11
|
35
35
|
value :LICENSE_ASSIGNMENT_CHANGED, 12
|
36
|
+
value :LICENSE_CAP_CHANGED, 13
|
36
37
|
end
|
37
38
|
add_message "google.cloud.channel.v1.SubscriberEvent" do
|
38
39
|
oneof :event do
|
@@ -31,36 +31,33 @@ module Google
|
|
31
31
|
# Required. Name of the organization that the customer entity represents.
|
32
32
|
# @!attribute [rw] org_postal_address
|
33
33
|
# @return [::Google::Type::PostalAddress]
|
34
|
-
# Required.
|
35
|
-
#
|
36
|
-
#
|
37
|
-
#
|
38
|
-
# customer's language.
|
34
|
+
# Required. The organization address for the customer. To enforce US laws and
|
35
|
+
# embargoes, we require a region and zip code. You must provide valid
|
36
|
+
# addresses for every customer. To set the customer's language, use the
|
37
|
+
# Customer-level language code.
|
39
38
|
# @!attribute [rw] primary_contact_info
|
40
39
|
# @return [::Google::Cloud::Channel::V1::ContactInfo]
|
41
40
|
# Primary contact info.
|
42
41
|
# @!attribute [rw] alternate_email
|
43
42
|
# @return [::String]
|
44
|
-
# Secondary contact email.
|
45
|
-
#
|
46
|
-
#
|
47
|
-
#
|
48
|
-
# this email. This email address is also used as a recovery email.
|
43
|
+
# Secondary contact email. You need to provide an alternate email to create
|
44
|
+
# different domains if a primary contact email already exists. Users will
|
45
|
+
# receive a notification with credentials when you create an admin.google.com
|
46
|
+
# account. Secondary emails are also recovery email addresses.
|
49
47
|
# @!attribute [rw] domain
|
50
48
|
# @return [::String]
|
51
|
-
# Required.
|
52
|
-
#
|
53
|
-
# domain.
|
49
|
+
# Required. The customer's primary domain. Must match the primary contact
|
50
|
+
# email's domain.
|
54
51
|
# @!attribute [r] create_time
|
55
52
|
# @return [::Google::Protobuf::Timestamp]
|
56
|
-
# Output only.
|
53
|
+
# Output only. Time when the customer was created.
|
57
54
|
# @!attribute [r] update_time
|
58
55
|
# @return [::Google::Protobuf::Timestamp]
|
59
|
-
# Output only.
|
56
|
+
# Output only. Time when the customer was updated.
|
60
57
|
# @!attribute [r] cloud_identity_id
|
61
58
|
# @return [::String]
|
62
|
-
# Output only.
|
63
|
-
#
|
59
|
+
# Output only. The customer's Cloud Identity ID if the customer has a Cloud
|
60
|
+
# Identity resource.
|
64
61
|
# @!attribute [rw] language_code
|
65
62
|
# @return [::String]
|
66
63
|
# Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
|
@@ -82,26 +79,25 @@ module Google
|
|
82
79
|
# Contact information for a customer account.
|
83
80
|
# @!attribute [rw] first_name
|
84
81
|
# @return [::String]
|
85
|
-
#
|
82
|
+
# The customer account contact's first name.
|
86
83
|
# @!attribute [rw] last_name
|
87
84
|
# @return [::String]
|
88
|
-
#
|
85
|
+
# The customer account contact's last name.
|
89
86
|
# @!attribute [r] display_name
|
90
87
|
# @return [::String]
|
91
|
-
# Output only.
|
92
|
-
#
|
88
|
+
# Output only. The customer account contact's display name, formatted as a
|
89
|
+
# combination of the customer's first and last name.
|
93
90
|
# @!attribute [rw] email
|
94
91
|
# @return [::String]
|
95
|
-
#
|
96
|
-
#
|
97
|
-
# accounts.
|
98
|
-
# admin.google.com account.
|
92
|
+
# The customer account's contact email. Required for entitlements that create
|
93
|
+
# admin.google.com accounts, and serves as the customer's username for those
|
94
|
+
# accounts.
|
99
95
|
# @!attribute [rw] title
|
100
96
|
# @return [::String]
|
101
|
-
# Optional.
|
97
|
+
# Optional. The customer account contact's job title.
|
102
98
|
# @!attribute [rw] phone
|
103
99
|
# @return [::String]
|
104
|
-
#
|
100
|
+
# The customer account's contact phone number.
|
105
101
|
class ContactInfo
|
106
102
|
include ::Google::Protobuf::MessageExts
|
107
103
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -701,6 +701,17 @@ module Google
|
|
701
701
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
702
702
|
end
|
703
703
|
|
704
|
+
# Request message for LookupOffer.
|
705
|
+
# @!attribute [rw] entitlement
|
706
|
+
# @return [::String]
|
707
|
+
# Required. The resource name of the entitlement to retrieve the Offer.
|
708
|
+
# Entitlement uses the format:
|
709
|
+
# accounts/\\{account_id}/customers/\\{customer_id}/entitlements/\\{entitlement_id}
|
710
|
+
class LookupOfferRequest
|
711
|
+
include ::Google::Protobuf::MessageExts
|
712
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
713
|
+
end
|
714
|
+
|
704
715
|
# Request message for ListProducts.
|
705
716
|
# @!attribute [rw] account
|
706
717
|
# @return [::String]
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-channel-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.5'
|
20
|
+
- - "<"
|
18
21
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
22
|
+
version: 2.a
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.5'
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: 2.a
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: google-cloud-errors
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -224,7 +230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
224
230
|
- !ruby/object:Gem::Version
|
225
231
|
version: '0'
|
226
232
|
requirements: []
|
227
|
-
rubygems_version: 3.2.
|
233
|
+
rubygems_version: 3.2.17
|
228
234
|
signing_key:
|
229
235
|
specification_version: 4
|
230
236
|
summary: API Client library for the Cloud Channel V1 API
|