google-cloud-channel-v1 0.19.0 → 0.21.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/channel_partner_links_pb.rb +26 -23
- data/lib/google/cloud/channel/v1/cloud_channel_reports_service/client.rb +4 -2
- data/lib/google/cloud/channel/v1/cloud_channel_reports_service/operations.rb +3 -1
- data/lib/google/cloud/channel/v1/cloud_channel_reports_service/rest/client.rb +4 -2
- data/lib/google/cloud/channel/v1/cloud_channel_reports_service/rest/operations.rb +7 -5
- data/lib/google/cloud/channel/v1/cloud_channel_reports_service/rest/service_stub.rb +3 -3
- data/lib/google/cloud/channel/v1/cloud_channel_service/client.rb +257 -2
- data/lib/google/cloud/channel/v1/cloud_channel_service/operations.rb +3 -1
- data/lib/google/cloud/channel/v1/cloud_channel_service/paths.rb +17 -0
- data/lib/google/cloud/channel/v1/cloud_channel_service/rest/client.rb +203 -2
- data/lib/google/cloud/channel/v1/cloud_channel_service/rest/operations.rb +7 -5
- data/lib/google/cloud/channel/v1/cloud_channel_service/rest/service_stub.rb +164 -46
- data/lib/google/cloud/channel/v1/common_pb.rb +25 -50
- data/lib/google/cloud/channel/v1/customers_pb.rb +27 -24
- data/lib/google/cloud/channel/v1/entitlement_changes_pb.rb +26 -54
- data/lib/google/cloud/channel/v1/entitlements_pb.rb +28 -73
- data/lib/google/cloud/channel/v1/offers_pb.rb +28 -104
- data/lib/google/cloud/channel/v1/operations_pb.rb +24 -18
- data/lib/google/cloud/channel/v1/products_pb.rb +24 -24
- data/lib/google/cloud/channel/v1/reports_service_pb.rb +29 -94
- data/lib/google/cloud/channel/v1/repricing_pb.rb +27 -52
- data/lib/google/cloud/channel/v1/service_pb.rb +39 -345
- data/lib/google/cloud/channel/v1/service_services_pb.rb +40 -0
- data/lib/google/cloud/channel/v1/subscriber_event_pb.rb +24 -35
- data/lib/google/cloud/channel/v1/version.rb +1 -1
- data/proto_docs/google/cloud/channel/v1/service.rb +112 -0
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- metadata +4 -4
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/channel/v1/customers.proto
|
3
4
|
|
@@ -9,32 +10,34 @@ require 'google/cloud/channel/v1/common_pb'
|
|
9
10
|
require 'google/protobuf/timestamp_pb'
|
10
11
|
require 'google/type/postal_address_pb'
|
11
12
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
13
|
+
|
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\"\xee\x04\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: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
|
+
|
16
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
17
|
+
|
18
|
+
begin
|
19
|
+
pool.add_serialized_file(descriptor_data)
|
20
|
+
rescue TypeError => e
|
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}"
|
36
37
|
end
|
37
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."
|
38
41
|
end
|
39
42
|
|
40
43
|
module Google
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/channel/v1/entitlement_changes.proto
|
3
4
|
|
@@ -8,62 +9,33 @@ require 'google/api/resource_pb'
|
|
8
9
|
require 'google/cloud/channel/v1/entitlements_pb'
|
9
10
|
require 'google/protobuf/timestamp_pb'
|
10
11
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
value :RENEWED, 5
|
35
|
-
value :SUSPENDED, 6
|
36
|
-
value :ACTIVATED, 7
|
37
|
-
value :CANCELLED, 8
|
38
|
-
value :SKU_CHANGED, 9
|
39
|
-
value :RENEWAL_SETTING_CHANGED, 10
|
40
|
-
value :PAID_SUBSCRIPTION_STARTED, 11
|
41
|
-
value :LICENSE_CAP_CHANGED, 12
|
42
|
-
value :SUSPENSION_DETAILS_CHANGED, 13
|
43
|
-
value :TRIAL_END_DATE_EXTENDED, 14
|
44
|
-
value :TRIAL_STARTED, 15
|
45
|
-
end
|
46
|
-
add_enum "google.cloud.channel.v1.EntitlementChange.OperatorType" do
|
47
|
-
value :OPERATOR_TYPE_UNSPECIFIED, 0
|
48
|
-
value :CUSTOMER_SERVICE_REPRESENTATIVE, 1
|
49
|
-
value :SYSTEM, 2
|
50
|
-
value :CUSTOMER, 3
|
51
|
-
value :RESELLER, 4
|
52
|
-
end
|
53
|
-
add_enum "google.cloud.channel.v1.EntitlementChange.CancellationReason" do
|
54
|
-
value :CANCELLATION_REASON_UNSPECIFIED, 0
|
55
|
-
value :SERVICE_TERMINATED, 1
|
56
|
-
value :RELATIONSHIP_ENDED, 2
|
57
|
-
value :PARTIAL_TRANSFER, 3
|
58
|
-
end
|
59
|
-
add_enum "google.cloud.channel.v1.EntitlementChange.ActivationReason" do
|
60
|
-
value :ACTIVATION_REASON_UNSPECIFIED, 0
|
61
|
-
value :RESELLER_REVOKED_SUSPENSION, 1
|
62
|
-
value :CUSTOMER_ACCEPTED_PENDING_TOS, 2
|
63
|
-
value :RENEWAL_SETTINGS_CHANGED, 3
|
64
|
-
value :OTHER_ACTIVATION_REASON, 100
|
12
|
+
|
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
|
+
|
15
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
16
|
+
|
17
|
+
begin
|
18
|
+
pool.add_serialized_file(descriptor_data)
|
19
|
+
rescue TypeError => e
|
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}"
|
65
35
|
end
|
66
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."
|
67
39
|
end
|
68
40
|
|
69
41
|
module Google
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/channel/v1/entitlements.proto
|
3
4
|
|
@@ -10,81 +11,35 @@ require 'google/cloud/channel/v1/offers_pb'
|
|
10
11
|
require 'google/cloud/channel/v1/products_pb'
|
11
12
|
require 'google/protobuf/timestamp_pb'
|
12
13
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
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 :transfer_eligibility, :message, 9, "google.cloud.channel.v1.TransferEligibility"
|
73
|
-
optional :sku, :message, 11, "google.cloud.channel.v1.Sku"
|
74
|
-
optional :legacy_sku, :message, 12, "google.cloud.channel.v1.Sku"
|
75
|
-
end
|
76
|
-
add_message "google.cloud.channel.v1.TransferEligibility" do
|
77
|
-
optional :is_eligible, :bool, 1
|
78
|
-
optional :description, :string, 2
|
79
|
-
optional :ineligibility_reason, :enum, 3, "google.cloud.channel.v1.TransferEligibility.Reason"
|
80
|
-
end
|
81
|
-
add_enum "google.cloud.channel.v1.TransferEligibility.Reason" do
|
82
|
-
value :REASON_UNSPECIFIED, 0
|
83
|
-
value :PENDING_TOS_ACCEPTANCE, 1
|
84
|
-
value :SKU_NOT_ELIGIBLE, 2
|
85
|
-
value :SKU_SUSPENDED, 3
|
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\"\xfb\x08\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\"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\"\xf9\x01\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\"e\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\x42i\n\x1b\x63om.google.cloud.channel.v1B\x11\x45ntitlementsProtoP\x01Z5cloud.google.com/go/channel/apiv1/channelpb;channelpbb\x06proto3"
|
16
|
+
|
17
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
18
|
+
|
19
|
+
begin
|
20
|
+
pool.add_serialized_file(descriptor_data)
|
21
|
+
rescue TypeError => e
|
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}"
|
86
39
|
end
|
87
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."
|
88
43
|
end
|
89
44
|
|
90
45
|
module Google
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/channel/v1/offers.proto
|
3
4
|
|
@@ -10,112 +11,35 @@ require 'google/cloud/channel/v1/products_pb'
|
|
10
11
|
require 'google/protobuf/timestamp_pb'
|
11
12
|
require 'google/type/money_pb'
|
12
13
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
value :STRING, 2
|
39
|
-
value :DOUBLE, 3
|
40
|
-
end
|
41
|
-
add_message "google.cloud.channel.v1.Constraints" do
|
42
|
-
optional :customer_constraints, :message, 1, "google.cloud.channel.v1.CustomerConstraints"
|
43
|
-
end
|
44
|
-
add_message "google.cloud.channel.v1.CustomerConstraints" do
|
45
|
-
repeated :allowed_regions, :string, 1
|
46
|
-
repeated :allowed_customer_types, :enum, 2, "google.cloud.channel.v1.CloudIdentityInfo.CustomerType"
|
47
|
-
repeated :promotional_order_types, :enum, 3, "google.cloud.channel.v1.PromotionalOrderType"
|
48
|
-
end
|
49
|
-
add_message "google.cloud.channel.v1.Plan" do
|
50
|
-
optional :payment_plan, :enum, 1, "google.cloud.channel.v1.PaymentPlan"
|
51
|
-
optional :payment_type, :enum, 2, "google.cloud.channel.v1.PaymentType"
|
52
|
-
optional :payment_cycle, :message, 3, "google.cloud.channel.v1.Period"
|
53
|
-
optional :trial_period, :message, 4, "google.cloud.channel.v1.Period"
|
54
|
-
optional :billing_account, :string, 5
|
55
|
-
end
|
56
|
-
add_message "google.cloud.channel.v1.PriceByResource" do
|
57
|
-
optional :resource_type, :enum, 1, "google.cloud.channel.v1.ResourceType"
|
58
|
-
optional :price, :message, 2, "google.cloud.channel.v1.Price"
|
59
|
-
repeated :price_phases, :message, 3, "google.cloud.channel.v1.PricePhase"
|
60
|
-
end
|
61
|
-
add_message "google.cloud.channel.v1.Price" do
|
62
|
-
optional :base_price, :message, 1, "google.type.Money"
|
63
|
-
optional :discount, :double, 2
|
64
|
-
optional :effective_price, :message, 3, "google.type.Money"
|
65
|
-
optional :external_price_uri, :string, 4
|
66
|
-
end
|
67
|
-
add_message "google.cloud.channel.v1.PricePhase" do
|
68
|
-
optional :period_type, :enum, 1, "google.cloud.channel.v1.PeriodType"
|
69
|
-
optional :first_period, :int32, 2
|
70
|
-
optional :last_period, :int32, 3
|
71
|
-
optional :price, :message, 4, "google.cloud.channel.v1.Price"
|
72
|
-
repeated :price_tiers, :message, 5, "google.cloud.channel.v1.PriceTier"
|
73
|
-
end
|
74
|
-
add_message "google.cloud.channel.v1.PriceTier" do
|
75
|
-
optional :first_resource, :int32, 1
|
76
|
-
optional :last_resource, :int32, 2
|
77
|
-
optional :price, :message, 3, "google.cloud.channel.v1.Price"
|
78
|
-
end
|
79
|
-
add_message "google.cloud.channel.v1.Period" do
|
80
|
-
optional :duration, :int32, 1
|
81
|
-
optional :period_type, :enum, 2, "google.cloud.channel.v1.PeriodType"
|
82
|
-
end
|
83
|
-
add_enum "google.cloud.channel.v1.PromotionalOrderType" do
|
84
|
-
value :PROMOTIONAL_TYPE_UNSPECIFIED, 0
|
85
|
-
value :NEW_UPGRADE, 1
|
86
|
-
value :TRANSFER, 2
|
87
|
-
value :PROMOTION_SWITCH, 3
|
88
|
-
end
|
89
|
-
add_enum "google.cloud.channel.v1.PaymentPlan" do
|
90
|
-
value :PAYMENT_PLAN_UNSPECIFIED, 0
|
91
|
-
value :COMMITMENT, 1
|
92
|
-
value :FLEXIBLE, 2
|
93
|
-
value :FREE, 3
|
94
|
-
value :TRIAL, 4
|
95
|
-
value :OFFLINE, 5
|
96
|
-
end
|
97
|
-
add_enum "google.cloud.channel.v1.PaymentType" do
|
98
|
-
value :PAYMENT_TYPE_UNSPECIFIED, 0
|
99
|
-
value :PREPAY, 1
|
100
|
-
value :POSTPAY, 2
|
101
|
-
end
|
102
|
-
add_enum "google.cloud.channel.v1.ResourceType" do
|
103
|
-
value :RESOURCE_TYPE_UNSPECIFIED, 0
|
104
|
-
value :SEAT, 1
|
105
|
-
value :MAU, 2
|
106
|
-
value :GB, 3
|
107
|
-
value :LICENSED_USER, 4
|
108
|
-
value :MINUTES, 5
|
109
|
-
value :IAAS_USAGE, 6
|
110
|
-
value :SUBSCRIPTION, 7
|
111
|
-
end
|
112
|
-
add_enum "google.cloud.channel.v1.PeriodType" do
|
113
|
-
value :PERIOD_TYPE_UNSPECIFIED, 0
|
114
|
-
value :DAY, 1
|
115
|
-
value :MONTH, 2
|
116
|
-
value :YEAR, 3
|
14
|
+
|
15
|
+
descriptor_data = "\n$google/cloud/channel/v1/offers.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/products.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/type/money.proto\"\xbc\x04\n\x05Offer\x12\x0c\n\x04name\x18\x01 \x01(\t\x12>\n\x0emarketing_info\x18\x02 \x01(\x0b\x32&.google.cloud.channel.v1.MarketingInfo\x12)\n\x03sku\x18\x03 \x01(\x0b\x32\x1c.google.cloud.channel.v1.Sku\x12+\n\x04plan\x18\x04 \x01(\x0b\x32\x1d.google.cloud.channel.v1.Plan\x12\x39\n\x0b\x63onstraints\x18\x05 \x01(\x0b\x32$.google.cloud.channel.v1.Constraints\x12\x44\n\x12price_by_resources\x18\x06 \x03(\x0b\x32(.google.cloud.channel.v1.PriceByResource\x12.\n\nstart_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x31\n\x08\x65nd_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12K\n\x15parameter_definitions\x18\t \x03(\x0b\x32,.google.cloud.channel.v1.ParameterDefinition\x12\x11\n\tdeal_code\x18\x0c \x01(\t:I\xea\x41\x46\n!cloudchannel.googleapis.com/Offer\x12!accounts/{account}/offers/{offer}\"\xfb\x02\n\x13ParameterDefinition\x12\x0c\n\x04name\x18\x01 \x01(\t\x12R\n\x0eparameter_type\x18\x02 \x01(\x0e\x32:.google.cloud.channel.v1.ParameterDefinition.ParameterType\x12\x31\n\tmin_value\x18\x03 \x01(\x0b\x32\x1e.google.cloud.channel.v1.Value\x12\x31\n\tmax_value\x18\x04 \x01(\x0b\x32\x1e.google.cloud.channel.v1.Value\x12\x36\n\x0e\x61llowed_values\x18\x05 \x03(\x0b\x32\x1e.google.cloud.channel.v1.Value\x12\x10\n\x08optional\x18\x06 \x01(\x08\"R\n\rParameterType\x12\x1e\n\x1aPARAMETER_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05INT64\x10\x01\x12\n\n\x06STRING\x10\x02\x12\n\n\x06\x44OUBLE\x10\x03\"Y\n\x0b\x43onstraints\x12J\n\x14\x63ustomer_constraints\x18\x01 \x01(\x0b\x32,.google.cloud.channel.v1.CustomerConstraints\"\xd7\x01\n\x13\x43ustomerConstraints\x12\x17\n\x0f\x61llowed_regions\x18\x01 \x03(\t\x12W\n\x16\x61llowed_customer_types\x18\x02 \x03(\x0e\x32\x37.google.cloud.channel.v1.CloudIdentityInfo.CustomerType\x12N\n\x17promotional_order_types\x18\x03 \x03(\x0e\x32-.google.cloud.channel.v1.PromotionalOrderType\"\x86\x02\n\x04Plan\x12:\n\x0cpayment_plan\x18\x01 \x01(\x0e\x32$.google.cloud.channel.v1.PaymentPlan\x12:\n\x0cpayment_type\x18\x02 \x01(\x0e\x32$.google.cloud.channel.v1.PaymentType\x12\x36\n\rpayment_cycle\x18\x03 \x01(\x0b\x32\x1f.google.cloud.channel.v1.Period\x12\x35\n\x0ctrial_period\x18\x04 \x01(\x0b\x32\x1f.google.cloud.channel.v1.Period\x12\x17\n\x0f\x62illing_account\x18\x05 \x01(\t\"\xb9\x01\n\x0fPriceByResource\x12<\n\rresource_type\x18\x01 \x01(\x0e\x32%.google.cloud.channel.v1.ResourceType\x12-\n\x05price\x18\x02 \x01(\x0b\x32\x1e.google.cloud.channel.v1.Price\x12\x39\n\x0cprice_phases\x18\x03 \x03(\x0b\x32#.google.cloud.channel.v1.PricePhase\"\x8a\x01\n\x05Price\x12&\n\nbase_price\x18\x01 \x01(\x0b\x32\x12.google.type.Money\x12\x10\n\x08\x64iscount\x18\x02 \x01(\x01\x12+\n\x0f\x65\x66\x66\x65\x63tive_price\x18\x03 \x01(\x0b\x32\x12.google.type.Money\x12\x1a\n\x12\x65xternal_price_uri\x18\x04 \x01(\t\"\xd9\x01\n\nPricePhase\x12\x38\n\x0bperiod_type\x18\x01 \x01(\x0e\x32#.google.cloud.channel.v1.PeriodType\x12\x14\n\x0c\x66irst_period\x18\x02 \x01(\x05\x12\x13\n\x0blast_period\x18\x03 \x01(\x05\x12-\n\x05price\x18\x04 \x01(\x0b\x32\x1e.google.cloud.channel.v1.Price\x12\x37\n\x0bprice_tiers\x18\x05 \x03(\x0b\x32\".google.cloud.channel.v1.PriceTier\"i\n\tPriceTier\x12\x16\n\x0e\x66irst_resource\x18\x01 \x01(\x05\x12\x15\n\rlast_resource\x18\x02 \x01(\x05\x12-\n\x05price\x18\x03 \x01(\x0b\x32\x1e.google.cloud.channel.v1.Price\"T\n\x06Period\x12\x10\n\x08\x64uration\x18\x01 \x01(\x05\x12\x38\n\x0bperiod_type\x18\x02 \x01(\x0e\x32#.google.cloud.channel.v1.PeriodType*m\n\x14PromotionalOrderType\x12 \n\x1cPROMOTIONAL_TYPE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bNEW_UPGRADE\x10\x01\x12\x0c\n\x08TRANSFER\x10\x02\x12\x14\n\x10PROMOTION_SWITCH\x10\x03*k\n\x0bPaymentPlan\x12\x1c\n\x18PAYMENT_PLAN_UNSPECIFIED\x10\x00\x12\x0e\n\nCOMMITMENT\x10\x01\x12\x0c\n\x08\x46LEXIBLE\x10\x02\x12\x08\n\x04\x46REE\x10\x03\x12\t\n\x05TRIAL\x10\x04\x12\x0b\n\x07OFFLINE\x10\x05*D\n\x0bPaymentType\x12\x1c\n\x18PAYMENT_TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06PREPAY\x10\x01\x12\x0b\n\x07POSTPAY\x10\x02*\x8a\x01\n\x0cResourceType\x12\x1d\n\x19RESOURCE_TYPE_UNSPECIFIED\x10\x00\x12\x08\n\x04SEAT\x10\x01\x12\x07\n\x03MAU\x10\x02\x12\x06\n\x02GB\x10\x03\x12\x11\n\rLICENSED_USER\x10\x04\x12\x0b\n\x07MINUTES\x10\x05\x12\x0e\n\nIAAS_USAGE\x10\x06\x12\x10\n\x0cSUBSCRIPTION\x10\x07*G\n\nPeriodType\x12\x1b\n\x17PERIOD_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03\x44\x41Y\x10\x01\x12\t\n\x05MONTH\x10\x02\x12\x08\n\x04YEAR\x10\x03\x42\x63\n\x1b\x63om.google.cloud.channel.v1B\x0bOffersProtoP\x01Z5cloud.google.com/go/channel/apiv1/channelpb;channelpbb\x06proto3"
|
16
|
+
|
17
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
18
|
+
|
19
|
+
begin
|
20
|
+
pool.add_serialized_file(descriptor_data)
|
21
|
+
rescue TypeError => e
|
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.cloud.channel.v1.MarketingInfo", "google/cloud/channel/v1/products.proto"],
|
31
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
32
|
+
["google.cloud.channel.v1.Value", "google/cloud/channel/v1/common.proto"],
|
33
|
+
["google.type.Money", "google/type/money.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}"
|
117
39
|
end
|
118
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."
|
119
43
|
end
|
120
44
|
|
121
45
|
module Google
|
@@ -1,28 +1,34 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/channel/v1/operations.proto
|
3
4
|
|
4
5
|
require 'google/protobuf'
|
5
6
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
7
|
+
|
8
|
+
descriptor_data = "\n(google/cloud/channel/v1/operations.proto\x12\x17google.cloud.channel.v1\"\xb6\x03\n\x11OperationMetadata\x12P\n\x0eoperation_type\x18\x01 \x01(\x0e\x32\x38.google.cloud.channel.v1.OperationMetadata.OperationType\"\xce\x02\n\rOperationType\x12\x1e\n\x1aOPERATION_TYPE_UNSPECIFIED\x10\x00\x12\x16\n\x12\x43REATE_ENTITLEMENT\x10\x01\x12\x1b\n\x17\x43HANGE_RENEWAL_SETTINGS\x10\x03\x12\x16\n\x12START_PAID_SERVICE\x10\x05\x12\x18\n\x14\x41\x43TIVATE_ENTITLEMENT\x10\x07\x12\x17\n\x13SUSPEND_ENTITLEMENT\x10\x08\x12\x16\n\x12\x43\x41NCEL_ENTITLEMENT\x10\t\x12\x19\n\x15TRANSFER_ENTITLEMENTS\x10\n\x12#\n\x1fTRANSFER_ENTITLEMENTS_TO_GOOGLE\x10\x0b\x12\x10\n\x0c\x43HANGE_OFFER\x10\x0e\x12\x15\n\x11\x43HANGE_PARAMETERS\x10\x0f\x12\x1c\n\x18PROVISION_CLOUD_IDENTITY\x10\x10\x42g\n\x1b\x63om.google.cloud.channel.v1B\x0fOperationsProtoP\x01Z5cloud.google.com/go/channel/apiv1/channelpb;channelpbb\x06proto3"
|
9
|
+
|
10
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
11
|
+
|
12
|
+
begin
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
14
|
+
rescue TypeError => e
|
15
|
+
# Compatibility code: will be removed in the next major version.
|
16
|
+
require 'google/protobuf/descriptor_pb'
|
17
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
18
|
+
parsed.clear_dependency
|
19
|
+
serialized = parsed.class.encode(parsed)
|
20
|
+
file = pool.add_serialized_file(serialized)
|
21
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
22
|
+
imports = [
|
23
|
+
]
|
24
|
+
imports.each do |type_name, expected_filename|
|
25
|
+
import_file = pool.lookup(type_name).file_descriptor
|
26
|
+
if import_file.name != expected_filename
|
27
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
24
28
|
end
|
25
29
|
end
|
30
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
31
|
+
warn "This will become an error in the next major version."
|
26
32
|
end
|
27
33
|
|
28
34
|
module Google
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/channel/v1/products.proto
|
3
4
|
|
@@ -5,32 +6,31 @@ require 'google/protobuf'
|
|
5
6
|
|
6
7
|
require 'google/api/resource_pb'
|
7
8
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
add_enum "google.cloud.channel.v1.MediaType" do
|
30
|
-
value :MEDIA_TYPE_UNSPECIFIED, 0
|
31
|
-
value :MEDIA_TYPE_IMAGE, 1
|
9
|
+
|
10
|
+
descriptor_data = "\n&google/cloud/channel/v1/products.proto\x12\x17google.cloud.channel.v1\x1a\x19google/api/resource.proto\"\x95\x01\n\x07Product\x12\x0c\n\x04name\x18\x01 \x01(\t\x12>\n\x0emarketing_info\x18\x02 \x01(\x0b\x32&.google.cloud.channel.v1.MarketingInfo:<\xea\x41\x39\n#cloudchannel.googleapis.com/Product\x12\x12products/{product}\"\xcb\x01\n\x03Sku\x12\x0c\n\x04name\x18\x01 \x01(\t\x12>\n\x0emarketing_info\x18\x02 \x01(\x0b\x32&.google.cloud.channel.v1.MarketingInfo\x12\x31\n\x07product\x18\x03 \x01(\x0b\x32 .google.cloud.channel.v1.Product:C\xea\x41@\n\x1f\x63loudchannel.googleapis.com/Sku\x12\x1dproducts/{product}/skus/{sku}\"p\n\rMarketingInfo\x12\x14\n\x0c\x64isplay_name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x34\n\x0c\x64\x65\x66\x61ult_logo\x18\x03 \x01(\x0b\x32\x1e.google.cloud.channel.v1.Media\"Y\n\x05Media\x12\r\n\x05title\x18\x01 \x01(\t\x12\x0f\n\x07\x63ontent\x18\x02 \x01(\t\x12\x30\n\x04type\x18\x03 \x01(\x0e\x32\".google.cloud.channel.v1.MediaType*=\n\tMediaType\x12\x1a\n\x16MEDIA_TYPE_UNSPECIFIED\x10\x00\x12\x14\n\x10MEDIA_TYPE_IMAGE\x10\x01\x42\x65\n\x1b\x63om.google.cloud.channel.v1B\rProductsProtoP\x01Z5cloud.google.com/go/channel/apiv1/channelpb;channelpbb\x06proto3"
|
11
|
+
|
12
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
13
|
+
|
14
|
+
begin
|
15
|
+
pool.add_serialized_file(descriptor_data)
|
16
|
+
rescue TypeError => e
|
17
|
+
# Compatibility code: will be removed in the next major version.
|
18
|
+
require 'google/protobuf/descriptor_pb'
|
19
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
20
|
+
parsed.clear_dependency
|
21
|
+
serialized = parsed.class.encode(parsed)
|
22
|
+
file = pool.add_serialized_file(serialized)
|
23
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
24
|
+
imports = [
|
25
|
+
]
|
26
|
+
imports.each do |type_name, expected_filename|
|
27
|
+
import_file = pool.lookup(type_name).file_descriptor
|
28
|
+
if import_file.name != expected_filename
|
29
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
32
30
|
end
|
33
31
|
end
|
32
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
33
|
+
warn "This will become an error in the next major version."
|
34
34
|
end
|
35
35
|
|
36
36
|
module Google
|