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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1920f9872e068419e07b8e12f7e89da67827e4fd599c6d9b3f61488b8e98f374
4
- data.tar.gz: e0606dd541251e3ef1eeb4241eff2a2f87dd8b9235e2e87625d27f97dfed065e
3
+ metadata.gz: b2b4f1afca124a5f74ca7bd6ec081394018ba54f33b21a6fcbff3a0dd33a3549
4
+ data.tar.gz: c0c7cd5596c378c0384085cb9a4d2a331c8c87ee010c3811324d61eb3d8b76ca
5
5
  SHA512:
6
- metadata.gz: a30e188b05f7a61707306df4c53a79bfea5d815cadb71778f0d10104fba2a3e80b0bd447fe40b2e6af2999da505800ce0a4a617f0e38362eadfe5f5258e73416
7
- data.tar.gz: b82010ddebc0d89beef5b81fa60c25ff5202867833a1caaa13c5566aed7dd3258fa7f42ee5cb6ae5571f1f201ad3dcc82e015d974e83bafada48f4c27c16728f
6
+ metadata.gz: a8dec77b18187153a47bff5054b86f0e9844a703d24d3ac294076d14dfef26a48ba60dfcca29b0174d7d18ddfc18377700d24a994be8ff1b1e6f216e3f4c0305
7
+ data.tar.gz: f5f564fecb6a420e8f02800ab9598ee354a074e58ed13996053d7532fc3eb66f45793deb20ff6f0ed0e0aa06b55c85ac9bbdc8c0518e79229cc4b74e18589499
@@ -297,7 +297,7 @@ module Google
297
297
  end
298
298
 
299
299
  ##
300
- # Returns a requested {::Google::Cloud::Channel::V1::Customer Customer} resource.
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 and irreversibly.
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 a requested {::Google::Cloud::Channel::V1::Entitlement Entitlement} resource.
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 a requested {::Google::Cloud::Channel::V1::ChannelPartnerLink ChannelPartnerLink} resource.
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 a requested [Customer][google.cloud.channel.v1.Customer] resource.
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 and irreversibly.
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 a requested [Entitlement][google.cloud.channel.v1.Entitlement] resource.
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 a requested [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink] resource.
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
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Channel
23
23
  module V1
24
- VERSION = "0.6.0"
24
+ VERSION = "0.7.0"
25
25
  end
26
26
  end
27
27
  end
@@ -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. Address of the organization of the customer entity.
35
- # Region and zip codes are required to enforce US laws and embargoes.
36
- # Valid address lines are required for all customers.
37
- # Language code is discarded. Use the Customer-level language code to set the
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
- # Alternate email and primary contact email are required to have different
46
- # domains if primary contact email is present.
47
- # When creating admin.google.com accounts, users get notified credentials at
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. Primary domain used by the customer.
52
- # Domain of primary contact email is required to be same as the provided
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. The time at which the customer is created.
53
+ # Output only. Time when the customer was created.
57
54
  # @!attribute [r] update_time
58
55
  # @return [::Google::Protobuf::Timestamp]
59
- # Output only. The time at which the customer is updated.
56
+ # Output only. Time when the customer was updated.
60
57
  # @!attribute [r] cloud_identity_id
61
58
  # @return [::String]
62
- # Output only. Customer's cloud_identity_id.
63
- # Populated only if a Cloud Identity resource exists for this customer.
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
- # First name of the contact in the customer account.
82
+ # The customer account contact's first name.
86
83
  # @!attribute [rw] last_name
87
84
  # @return [::String]
88
- # Last name of the contact in the customer account.
85
+ # The customer account contact's last name.
89
86
  # @!attribute [r] display_name
90
87
  # @return [::String]
91
- # Output only. Display name of the contact in the customer account.
92
- # Populated by combining customer first name and last name.
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
- # Email of the contact in the customer account.
96
- # Email is required for entitlements that need creation of admin.google.com
97
- # accounts. The email will be the username used in credentials to access the
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. Job title of the contact in the customer account.
97
+ # Optional. The customer account contact's job title.
102
98
  # @!attribute [rw] phone
103
99
  # @return [::String]
104
- # Phone number of the contact in the customer account.
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]
@@ -98,6 +98,9 @@ module Google
98
98
 
99
99
  # License was assigned to or revoked from a user.
100
100
  LICENSE_ASSIGNMENT_CHANGED = 12
101
+
102
+ # License cap was changed for the entitlement.
103
+ LICENSE_CAP_CHANGED = 13
101
104
  end
102
105
  end
103
106
 
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.6.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-04-26 00:00:00.000000000 Z
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: '0.4'
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: '0.4'
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.13
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