google-cloud-channel-v1 0.1.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.
Files changed (43) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +169 -0
  4. data/LICENSE.md +203 -0
  5. data/README.md +75 -0
  6. data/lib/google-cloud-channel-v1.rb +21 -0
  7. data/lib/google/cloud/channel/v1.rb +38 -0
  8. data/lib/google/cloud/channel/v1/channel_partner_links_pb.rb +47 -0
  9. data/lib/google/cloud/channel/v1/cloud_channel_service.rb +70 -0
  10. data/lib/google/cloud/channel/v1/cloud_channel_service/client.rb +3498 -0
  11. data/lib/google/cloud/channel/v1/cloud_channel_service/credentials.rb +51 -0
  12. data/lib/google/cloud/channel/v1/cloud_channel_service/operations.rb +570 -0
  13. data/lib/google/cloud/channel/v1/cloud_channel_service/paths.rb +100 -0
  14. data/lib/google/cloud/channel/v1/common_pb.rb +76 -0
  15. data/lib/google/cloud/channel/v1/customers_pb.rb +48 -0
  16. data/lib/google/cloud/channel/v1/entitlements_pb.rb +110 -0
  17. data/lib/google/cloud/channel/v1/offers_pb.rb +142 -0
  18. data/lib/google/cloud/channel/v1/operations_pb.rb +38 -0
  19. data/lib/google/cloud/channel/v1/products_pb.rb +48 -0
  20. data/lib/google/cloud/channel/v1/service_pb.rb +331 -0
  21. data/lib/google/cloud/channel/v1/service_services_pb.rb +680 -0
  22. data/lib/google/cloud/channel/v1/version.rb +28 -0
  23. data/proto_docs/README.md +4 -0
  24. data/proto_docs/google/api/field_behavior.rb +59 -0
  25. data/proto_docs/google/api/resource.rb +283 -0
  26. data/proto_docs/google/cloud/channel/v1/channel_partner_links.rb +92 -0
  27. data/proto_docs/google/cloud/channel/v1/common.rb +155 -0
  28. data/proto_docs/google/cloud/channel/v1/customers.rb +111 -0
  29. data/proto_docs/google/cloud/channel/v1/entitlements.rb +255 -0
  30. data/proto_docs/google/cloud/channel/v1/offers.rb +344 -0
  31. data/proto_docs/google/cloud/channel/v1/operations.rb +74 -0
  32. data/proto_docs/google/cloud/channel/v1/products.rb +98 -0
  33. data/proto_docs/google/cloud/channel/v1/service.rb +1013 -0
  34. data/proto_docs/google/longrunning/operations.rb +150 -0
  35. data/proto_docs/google/protobuf/any.rb +138 -0
  36. data/proto_docs/google/protobuf/empty.rb +36 -0
  37. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  38. data/proto_docs/google/protobuf/timestamp.rb +120 -0
  39. data/proto_docs/google/protobuf/wrappers.rb +121 -0
  40. data/proto_docs/google/rpc/status.rb +46 -0
  41. data/proto_docs/google/type/money.rb +43 -0
  42. data/proto_docs/google/type/postal_address.rb +135 -0
  43. metadata +225 -0
@@ -0,0 +1,100 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module Channel
23
+ module V1
24
+ module CloudChannelService
25
+ # Path helper methods for the CloudChannelService API.
26
+ module Paths
27
+ ##
28
+ # Create a fully-qualified Customer resource string.
29
+ #
30
+ # The resource will be in the following format:
31
+ #
32
+ # `accounts/{account}/customers/{customer}`
33
+ #
34
+ # @param account [String]
35
+ # @param customer [String]
36
+ #
37
+ # @return [::String]
38
+ def customer_path account:, customer:
39
+ raise ::ArgumentError, "account cannot contain /" if account.to_s.include? "/"
40
+
41
+ "accounts/#{account}/customers/#{customer}"
42
+ end
43
+
44
+ ##
45
+ # Create a fully-qualified Entitlement resource string.
46
+ #
47
+ # The resource will be in the following format:
48
+ #
49
+ # `accounts/{account}/customers/{customer}/entitlements/{entitlement}`
50
+ #
51
+ # @param account [String]
52
+ # @param customer [String]
53
+ # @param entitlement [String]
54
+ #
55
+ # @return [::String]
56
+ def entitlement_path account:, customer:, entitlement:
57
+ raise ::ArgumentError, "account cannot contain /" if account.to_s.include? "/"
58
+ raise ::ArgumentError, "customer cannot contain /" if customer.to_s.include? "/"
59
+
60
+ "accounts/#{account}/customers/#{customer}/entitlements/#{entitlement}"
61
+ end
62
+
63
+ ##
64
+ # Create a fully-qualified Offer resource string.
65
+ #
66
+ # The resource will be in the following format:
67
+ #
68
+ # `accounts/{account}/offers/{offer}`
69
+ #
70
+ # @param account [String]
71
+ # @param offer [String]
72
+ #
73
+ # @return [::String]
74
+ def offer_path account:, offer:
75
+ raise ::ArgumentError, "account cannot contain /" if account.to_s.include? "/"
76
+
77
+ "accounts/#{account}/offers/#{offer}"
78
+ end
79
+
80
+ ##
81
+ # Create a fully-qualified Product resource string.
82
+ #
83
+ # The resource will be in the following format:
84
+ #
85
+ # `products/{product}`
86
+ #
87
+ # @param product [String]
88
+ #
89
+ # @return [::String]
90
+ def product_path product:
91
+ "products/#{product}"
92
+ end
93
+
94
+ extend self
95
+ end
96
+ end
97
+ end
98
+ end
99
+ end
100
+ end
@@ -0,0 +1,76 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/channel/v1/common.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/field_behavior_pb'
7
+ require 'google/protobuf/any_pb'
8
+ require 'google/api/annotations_pb'
9
+ Google::Protobuf::DescriptorPool.generated_pool.build do
10
+ add_file("google/cloud/channel/v1/common.proto", :syntax => :proto3) do
11
+ add_message "google.cloud.channel.v1.EduData" do
12
+ optional :institute_type, :enum, 1, "google.cloud.channel.v1.EduData.InstituteType"
13
+ optional :institute_size, :enum, 2, "google.cloud.channel.v1.EduData.InstituteSize"
14
+ optional :website, :string, 3
15
+ end
16
+ add_enum "google.cloud.channel.v1.EduData.InstituteType" do
17
+ value :INSTITUTE_TYPE_UNSPECIFIED, 0
18
+ value :K12, 1
19
+ value :UNIVERSITY, 2
20
+ end
21
+ add_enum "google.cloud.channel.v1.EduData.InstituteSize" do
22
+ value :INSTITUTE_SIZE_UNSPECIFIED, 0
23
+ value :SIZE_1_100, 1
24
+ value :SIZE_101_500, 2
25
+ value :SIZE_501_1000, 3
26
+ value :SIZE_1001_2000, 4
27
+ value :SIZE_2001_5000, 5
28
+ value :SIZE_5001_10000, 6
29
+ value :SIZE_10001_OR_MORE, 7
30
+ end
31
+ add_message "google.cloud.channel.v1.CloudIdentityInfo" do
32
+ optional :customer_type, :enum, 1, "google.cloud.channel.v1.CloudIdentityInfo.CustomerType"
33
+ optional :primary_domain, :string, 9
34
+ optional :is_domain_verified, :bool, 4
35
+ optional :alternate_email, :string, 6
36
+ optional :phone_number, :string, 7
37
+ optional :language_code, :string, 8
38
+ optional :admin_console_uri, :string, 10
39
+ optional :edu_data, :message, 22, "google.cloud.channel.v1.EduData"
40
+ end
41
+ add_enum "google.cloud.channel.v1.CloudIdentityInfo.CustomerType" do
42
+ value :CUSTOMER_TYPE_UNSPECIFIED, 0
43
+ value :DOMAIN, 1
44
+ value :TEAM, 2
45
+ end
46
+ add_message "google.cloud.channel.v1.Value" do
47
+ oneof :kind do
48
+ optional :int64_value, :int64, 1
49
+ optional :string_value, :string, 2
50
+ optional :double_value, :double, 3
51
+ optional :proto_value, :message, 4, "google.protobuf.Any"
52
+ end
53
+ end
54
+ add_message "google.cloud.channel.v1.AdminUser" do
55
+ optional :email, :string, 1
56
+ optional :given_name, :string, 2
57
+ optional :family_name, :string, 3
58
+ end
59
+ end
60
+ end
61
+
62
+ module Google
63
+ module Cloud
64
+ module Channel
65
+ module V1
66
+ EduData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.EduData").msgclass
67
+ EduData::InstituteType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.EduData.InstituteType").enummodule
68
+ EduData::InstituteSize = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.EduData.InstituteSize").enummodule
69
+ CloudIdentityInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.CloudIdentityInfo").msgclass
70
+ CloudIdentityInfo::CustomerType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.CloudIdentityInfo.CustomerType").enummodule
71
+ Value = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.Value").msgclass
72
+ AdminUser = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.AdminUser").msgclass
73
+ end
74
+ end
75
+ end
76
+ end
@@ -0,0 +1,48 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/channel/v1/customers.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/field_behavior_pb'
7
+ require 'google/api/resource_pb'
8
+ require 'google/cloud/channel/v1/common_pb'
9
+ require 'google/protobuf/timestamp_pb'
10
+ require 'google/type/postal_address_pb'
11
+ require 'google/api/annotations_pb'
12
+ Google::Protobuf::DescriptorPool.generated_pool.build do
13
+ add_file("google/cloud/channel/v1/customers.proto", :syntax => :proto3) do
14
+ add_message "google.cloud.channel.v1.Customer" do
15
+ optional :name, :string, 1
16
+ optional :org_display_name, :string, 2
17
+ optional :org_postal_address, :message, 3, "google.type.PostalAddress"
18
+ optional :primary_contact_info, :message, 4, "google.cloud.channel.v1.ContactInfo"
19
+ optional :alternate_email, :string, 5
20
+ optional :domain, :string, 6
21
+ optional :create_time, :message, 7, "google.protobuf.Timestamp"
22
+ optional :update_time, :message, 8, "google.protobuf.Timestamp"
23
+ optional :cloud_identity_id, :string, 9
24
+ optional :language_code, :string, 10
25
+ optional :cloud_identity_info, :message, 12, "google.cloud.channel.v1.CloudIdentityInfo"
26
+ optional :channel_partner_id, :string, 13
27
+ end
28
+ add_message "google.cloud.channel.v1.ContactInfo" do
29
+ optional :first_name, :string, 1
30
+ optional :last_name, :string, 2
31
+ optional :display_name, :string, 4
32
+ optional :email, :string, 5
33
+ optional :title, :string, 6
34
+ optional :phone, :string, 7
35
+ end
36
+ end
37
+ end
38
+
39
+ module Google
40
+ module Cloud
41
+ module Channel
42
+ module V1
43
+ Customer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.Customer").msgclass
44
+ ContactInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.ContactInfo").msgclass
45
+ end
46
+ end
47
+ end
48
+ end
@@ -0,0 +1,110 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/channel/v1/entitlements.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/field_behavior_pb'
7
+ require 'google/api/resource_pb'
8
+ require 'google/cloud/channel/v1/common_pb'
9
+ require 'google/cloud/channel/v1/offers_pb'
10
+ require 'google/cloud/channel/v1/products_pb'
11
+ require 'google/protobuf/timestamp_pb'
12
+ require 'google/protobuf/wrappers_pb'
13
+ require 'google/api/annotations_pb'
14
+ Google::Protobuf::DescriptorPool.generated_pool.build do
15
+ add_file("google/cloud/channel/v1/entitlements.proto", :syntax => :proto3) do
16
+ add_message "google.cloud.channel.v1.Entitlement" do
17
+ optional :name, :string, 1
18
+ optional :create_time, :message, 5, "google.protobuf.Timestamp"
19
+ optional :update_time, :message, 6, "google.protobuf.Timestamp"
20
+ optional :offer, :string, 8
21
+ optional :commitment_settings, :message, 12, "google.cloud.channel.v1.CommitmentSettings"
22
+ optional :provisioning_state, :enum, 13, "google.cloud.channel.v1.Entitlement.ProvisioningState"
23
+ optional :provisioned_service, :message, 16, "google.cloud.channel.v1.ProvisionedService"
24
+ repeated :suspension_reasons, :enum, 18, "google.cloud.channel.v1.Entitlement.SuspensionReason"
25
+ optional :purchase_order_id, :string, 19
26
+ optional :trial_settings, :message, 21, "google.cloud.channel.v1.TrialSettings"
27
+ optional :association_info, :message, 23, "google.cloud.channel.v1.AssociationInfo"
28
+ repeated :parameters, :message, 26, "google.cloud.channel.v1.Parameter"
29
+ end
30
+ add_enum "google.cloud.channel.v1.Entitlement.ProvisioningState" do
31
+ value :PROVISIONING_STATE_UNSPECIFIED, 0
32
+ value :ACTIVE, 1
33
+ value :SUSPENDED, 5
34
+ end
35
+ add_enum "google.cloud.channel.v1.Entitlement.SuspensionReason" do
36
+ value :SUSPENSION_REASON_UNSPECIFIED, 0
37
+ value :RESELLER_INITIATED, 1
38
+ value :TRIAL_ENDED, 2
39
+ value :RENEWAL_WITH_TYPE_CANCEL, 3
40
+ value :PENDING_TOS_ACCEPTANCE, 4
41
+ value :OTHER, 100
42
+ end
43
+ add_message "google.cloud.channel.v1.Parameter" do
44
+ optional :name, :string, 1
45
+ optional :value, :message, 2, "google.cloud.channel.v1.Value"
46
+ optional :editable, :bool, 3
47
+ end
48
+ add_message "google.cloud.channel.v1.AssociationInfo" do
49
+ optional :base_entitlement, :string, 1
50
+ end
51
+ add_message "google.cloud.channel.v1.ProvisionedService" do
52
+ optional :provisioning_id, :string, 1
53
+ optional :product_id, :string, 2
54
+ optional :sku_id, :string, 3
55
+ end
56
+ add_message "google.cloud.channel.v1.CommitmentSettings" do
57
+ optional :start_time, :message, 1, "google.protobuf.Timestamp"
58
+ optional :end_time, :message, 2, "google.protobuf.Timestamp"
59
+ optional :renewal_settings, :message, 4, "google.cloud.channel.v1.RenewalSettings"
60
+ end
61
+ add_message "google.cloud.channel.v1.RenewalSettings" do
62
+ optional :enable_renewal, :bool, 1
63
+ optional :resize_unit_count, :bool, 2
64
+ optional :payment_plan, :enum, 5, "google.cloud.channel.v1.PaymentPlan"
65
+ optional :payment_cycle, :message, 6, "google.cloud.channel.v1.Period"
66
+ end
67
+ add_message "google.cloud.channel.v1.TrialSettings" do
68
+ optional :trial, :bool, 1
69
+ optional :end_time, :message, 2, "google.protobuf.Timestamp"
70
+ end
71
+ add_message "google.cloud.channel.v1.TransferableSku" do
72
+ optional :is_commitment, :message, 6, "google.protobuf.BoolValue"
73
+ optional :commitment_end_timestamp, :message, 7, "google.protobuf.Timestamp"
74
+ optional :transfer_eligibility, :message, 9, "google.cloud.channel.v1.TransferEligibility"
75
+ optional :sku, :message, 11, "google.cloud.channel.v1.Sku"
76
+ end
77
+ add_message "google.cloud.channel.v1.TransferEligibility" do
78
+ optional :is_eligible, :bool, 1
79
+ optional :description, :string, 2
80
+ optional :ineligibility_reason, :enum, 3, "google.cloud.channel.v1.TransferEligibility.Reason"
81
+ end
82
+ add_enum "google.cloud.channel.v1.TransferEligibility.Reason" do
83
+ value :REASON_UNSPECIFIED, 0
84
+ value :PENDING_TOS_ACCEPTANCE, 1
85
+ value :SKU_NOT_ELIGIBLE, 2
86
+ value :SKU_SUSPENDED, 3
87
+ end
88
+ end
89
+ end
90
+
91
+ module Google
92
+ module Cloud
93
+ module Channel
94
+ module V1
95
+ Entitlement = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.Entitlement").msgclass
96
+ Entitlement::ProvisioningState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.Entitlement.ProvisioningState").enummodule
97
+ Entitlement::SuspensionReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.Entitlement.SuspensionReason").enummodule
98
+ Parameter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.Parameter").msgclass
99
+ AssociationInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.AssociationInfo").msgclass
100
+ ProvisionedService = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.ProvisionedService").msgclass
101
+ CommitmentSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.CommitmentSettings").msgclass
102
+ RenewalSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.RenewalSettings").msgclass
103
+ TrialSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.TrialSettings").msgclass
104
+ TransferableSku = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.TransferableSku").msgclass
105
+ TransferEligibility = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.TransferEligibility").msgclass
106
+ TransferEligibility::Reason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.TransferEligibility.Reason").enummodule
107
+ end
108
+ end
109
+ end
110
+ end
@@ -0,0 +1,142 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/channel/v1/offers.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/field_behavior_pb'
7
+ require 'google/api/resource_pb'
8
+ require 'google/cloud/channel/v1/common_pb'
9
+ require 'google/cloud/channel/v1/products_pb'
10
+ require 'google/protobuf/timestamp_pb'
11
+ require 'google/type/money_pb'
12
+ require 'google/api/annotations_pb'
13
+ Google::Protobuf::DescriptorPool.generated_pool.build do
14
+ add_file("google/cloud/channel/v1/offers.proto", :syntax => :proto3) do
15
+ add_message "google.cloud.channel.v1.Offer" do
16
+ optional :name, :string, 1
17
+ optional :marketing_info, :message, 2, "google.cloud.channel.v1.MarketingInfo"
18
+ optional :sku, :message, 3, "google.cloud.channel.v1.Sku"
19
+ optional :plan, :message, 4, "google.cloud.channel.v1.Plan"
20
+ optional :constraints, :message, 5, "google.cloud.channel.v1.Constraints"
21
+ repeated :price_by_resources, :message, 6, "google.cloud.channel.v1.PriceByResource"
22
+ optional :start_time, :message, 7, "google.protobuf.Timestamp"
23
+ optional :end_time, :message, 8, "google.protobuf.Timestamp"
24
+ repeated :parameter_definitions, :message, 9, "google.cloud.channel.v1.ParameterDefinition"
25
+ end
26
+ add_message "google.cloud.channel.v1.ParameterDefinition" do
27
+ optional :name, :string, 1
28
+ optional :parameter_type, :enum, 2, "google.cloud.channel.v1.ParameterDefinition.ParameterType"
29
+ optional :min_value, :message, 3, "google.cloud.channel.v1.Value"
30
+ optional :max_value, :message, 4, "google.cloud.channel.v1.Value"
31
+ repeated :allowed_values, :message, 5, "google.cloud.channel.v1.Value"
32
+ optional :optional, :bool, 6
33
+ end
34
+ add_enum "google.cloud.channel.v1.ParameterDefinition.ParameterType" do
35
+ value :PARAMETER_TYPE_UNSPECIFIED, 0
36
+ value :INT64, 1
37
+ value :STRING, 2
38
+ value :DOUBLE, 3
39
+ end
40
+ add_message "google.cloud.channel.v1.Constraints" do
41
+ optional :customer_constraints, :message, 1, "google.cloud.channel.v1.CustomerConstraints"
42
+ end
43
+ add_message "google.cloud.channel.v1.CustomerConstraints" do
44
+ repeated :allowed_regions, :string, 1
45
+ repeated :allowed_customer_types, :enum, 2, "google.cloud.channel.v1.CloudIdentityInfo.CustomerType"
46
+ repeated :promotional_order_types, :enum, 3, "google.cloud.channel.v1.PromotionalOrderType"
47
+ end
48
+ add_message "google.cloud.channel.v1.Plan" do
49
+ optional :payment_plan, :enum, 1, "google.cloud.channel.v1.PaymentPlan"
50
+ optional :payment_type, :enum, 2, "google.cloud.channel.v1.PaymentType"
51
+ optional :payment_cycle, :message, 3, "google.cloud.channel.v1.Period"
52
+ optional :trial_period, :message, 4, "google.cloud.channel.v1.Period"
53
+ end
54
+ add_message "google.cloud.channel.v1.PriceByResource" do
55
+ optional :resource_type, :enum, 1, "google.cloud.channel.v1.ResourceType"
56
+ optional :price, :message, 2, "google.cloud.channel.v1.Price"
57
+ repeated :price_phases, :message, 3, "google.cloud.channel.v1.PricePhase"
58
+ end
59
+ add_message "google.cloud.channel.v1.Price" do
60
+ optional :base_price, :message, 1, "google.type.Money"
61
+ optional :discount, :double, 2
62
+ optional :effective_price, :message, 3, "google.type.Money"
63
+ optional :external_price_uri, :string, 4
64
+ end
65
+ add_message "google.cloud.channel.v1.PricePhase" do
66
+ optional :period_type, :enum, 1, "google.cloud.channel.v1.PeriodType"
67
+ optional :first_period, :int32, 2
68
+ optional :last_period, :int32, 3
69
+ optional :price, :message, 4, "google.cloud.channel.v1.Price"
70
+ repeated :price_tiers, :message, 5, "google.cloud.channel.v1.PriceTier"
71
+ end
72
+ add_message "google.cloud.channel.v1.PriceTier" do
73
+ optional :first_resource, :int32, 1
74
+ optional :last_resource, :int32, 2
75
+ optional :price, :message, 3, "google.cloud.channel.v1.Price"
76
+ end
77
+ add_message "google.cloud.channel.v1.Period" do
78
+ optional :duration, :int32, 1
79
+ optional :period_type, :enum, 2, "google.cloud.channel.v1.PeriodType"
80
+ end
81
+ add_enum "google.cloud.channel.v1.PromotionalOrderType" do
82
+ value :PROMOTIONAL_TYPE_UNSPECIFIED, 0
83
+ value :NEW_UPGRADE, 1
84
+ value :TRANSFER, 2
85
+ value :PROMOTION_SWITCH, 3
86
+ end
87
+ add_enum "google.cloud.channel.v1.PaymentPlan" do
88
+ value :PAYMENT_PLAN_UNSPECIFIED, 0
89
+ value :COMMITMENT, 1
90
+ value :FLEXIBLE, 2
91
+ value :FREE, 3
92
+ value :TRIAL, 4
93
+ value :OFFLINE, 5
94
+ end
95
+ add_enum "google.cloud.channel.v1.PaymentType" do
96
+ value :PAYMENT_TYPE_UNSPECIFIED, 0
97
+ value :PREPAY, 1
98
+ value :POSTPAY, 2
99
+ end
100
+ add_enum "google.cloud.channel.v1.ResourceType" do
101
+ value :RESOURCE_TYPE_UNSPECIFIED, 0
102
+ value :SEAT, 1
103
+ value :MAU, 2
104
+ value :GB, 3
105
+ value :LICENSED_USER, 4
106
+ value :MINUTES, 5
107
+ value :IAAS_USAGE, 6
108
+ value :SUBSCRIPTION, 7
109
+ end
110
+ add_enum "google.cloud.channel.v1.PeriodType" do
111
+ value :PERIOD_TYPE_UNSPECIFIED, 0
112
+ value :DAY, 1
113
+ value :MONTH, 2
114
+ value :YEAR, 3
115
+ end
116
+ end
117
+ end
118
+
119
+ module Google
120
+ module Cloud
121
+ module Channel
122
+ module V1
123
+ Offer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.Offer").msgclass
124
+ ParameterDefinition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.ParameterDefinition").msgclass
125
+ ParameterDefinition::ParameterType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.ParameterDefinition.ParameterType").enummodule
126
+ Constraints = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.Constraints").msgclass
127
+ CustomerConstraints = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.CustomerConstraints").msgclass
128
+ Plan = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.Plan").msgclass
129
+ PriceByResource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.PriceByResource").msgclass
130
+ Price = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.Price").msgclass
131
+ PricePhase = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.PricePhase").msgclass
132
+ PriceTier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.PriceTier").msgclass
133
+ Period = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.Period").msgclass
134
+ PromotionalOrderType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.PromotionalOrderType").enummodule
135
+ PaymentPlan = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.PaymentPlan").enummodule
136
+ PaymentType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.PaymentType").enummodule
137
+ ResourceType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.ResourceType").enummodule
138
+ PeriodType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.channel.v1.PeriodType").enummodule
139
+ end
140
+ end
141
+ end
142
+ end