google-cloud-channel-v1 0.19.0 → 0.20.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 (27) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/channel/v1/channel_partner_links_pb.rb +26 -23
  3. data/lib/google/cloud/channel/v1/cloud_channel_reports_service/client.rb +4 -2
  4. data/lib/google/cloud/channel/v1/cloud_channel_reports_service/operations.rb +3 -1
  5. data/lib/google/cloud/channel/v1/cloud_channel_reports_service/rest/client.rb +4 -2
  6. data/lib/google/cloud/channel/v1/cloud_channel_reports_service/rest/operations.rb +7 -5
  7. data/lib/google/cloud/channel/v1/cloud_channel_reports_service/rest/service_stub.rb +3 -3
  8. data/lib/google/cloud/channel/v1/cloud_channel_service/client.rb +4 -2
  9. data/lib/google/cloud/channel/v1/cloud_channel_service/operations.rb +3 -1
  10. data/lib/google/cloud/channel/v1/cloud_channel_service/rest/client.rb +4 -2
  11. data/lib/google/cloud/channel/v1/cloud_channel_service/rest/operations.rb +7 -5
  12. data/lib/google/cloud/channel/v1/cloud_channel_service/rest/service_stub.rb +46 -46
  13. data/lib/google/cloud/channel/v1/common_pb.rb +25 -50
  14. data/lib/google/cloud/channel/v1/customers_pb.rb +27 -24
  15. data/lib/google/cloud/channel/v1/entitlement_changes_pb.rb +26 -54
  16. data/lib/google/cloud/channel/v1/entitlements_pb.rb +28 -73
  17. data/lib/google/cloud/channel/v1/offers_pb.rb +28 -104
  18. data/lib/google/cloud/channel/v1/operations_pb.rb +24 -18
  19. data/lib/google/cloud/channel/v1/products_pb.rb +24 -24
  20. data/lib/google/cloud/channel/v1/reports_service_pb.rb +29 -94
  21. data/lib/google/cloud/channel/v1/repricing_pb.rb +27 -52
  22. data/lib/google/cloud/channel/v1/service_pb.rb +33 -345
  23. data/lib/google/cloud/channel/v1/subscriber_event_pb.rb +24 -35
  24. data/lib/google/cloud/channel/v1/version.rb +1 -1
  25. data/proto_docs/google/protobuf/any.rb +7 -4
  26. data/proto_docs/google/protobuf/timestamp.rb +1 -3
  27. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c6aa651be95327373ebe3d57c8dab14c2f5e3efcccf0ffe46b7c5fda85a2facc
4
- data.tar.gz: 3d91f0f7a31ead787fb693a969e129bd6159b7cc150b74282aaca02907d2ac91
3
+ metadata.gz: 5b2eba0e4d5abe46e2d1769255f754da2a526c90c3c707cf152825470a76749e
4
+ data.tar.gz: c32b74f64ec41c1bb51143232326b71c7816584122c868fa75ea46291995962e
5
5
  SHA512:
6
- metadata.gz: fc95ed0c91635e9e9eceba856cb7fefe0d19405f50ab2a615441148f5adc135ff1cd0c84b23335d2e758ca3454447e39441291c9e9c4ba23d14258504df906f3
7
- data.tar.gz: 8fd88f7b27c25896fc3004439bcafc1d55338d43cfe8a7d57b14631658cd545eacd5e71a5c3d8b18484e3cfbcf5c73f25c40e7d414bea90b9df068160224c3f3
6
+ metadata.gz: ead4e4b7feec8c4a3be6a602d33f933cc54c4821748480a46940e02b7204c6d0e801976bb82a39eb0b7552ec5b1a67a9595b2b5629db28097c16a5de4585bc9f
7
+ data.tar.gz: 6e41eb6ea1c2692af9974ca32271d7f679b3eeab58f607d924d2afbe0e762137be81969a0c6b5036d79e167f0e37953a112669e300dc747a9ffb22cc30007479
@@ -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/channel_partner_links.proto
3
4
 
@@ -8,31 +9,33 @@ require 'google/api/resource_pb'
8
9
  require 'google/cloud/channel/v1/common_pb'
9
10
  require 'google/protobuf/timestamp_pb'
10
11
 
11
- Google::Protobuf::DescriptorPool.generated_pool.build do
12
- add_file("google/cloud/channel/v1/channel_partner_links.proto", :syntax => :proto3) do
13
- add_message "google.cloud.channel.v1.ChannelPartnerLink" do
14
- optional :name, :string, 1
15
- optional :reseller_cloud_identity_id, :string, 2
16
- optional :link_state, :enum, 3, "google.cloud.channel.v1.ChannelPartnerLinkState"
17
- optional :invite_link_uri, :string, 4
18
- optional :create_time, :message, 5, "google.protobuf.Timestamp"
19
- optional :update_time, :message, 6, "google.protobuf.Timestamp"
20
- optional :public_id, :string, 7
21
- optional :channel_partner_cloud_identity_info, :message, 8, "google.cloud.channel.v1.CloudIdentityInfo"
22
- end
23
- add_enum "google.cloud.channel.v1.ChannelPartnerLinkView" do
24
- value :UNSPECIFIED, 0
25
- value :BASIC, 1
26
- value :FULL, 2
27
- end
28
- add_enum "google.cloud.channel.v1.ChannelPartnerLinkState" do
29
- value :CHANNEL_PARTNER_LINK_STATE_UNSPECIFIED, 0
30
- value :INVITED, 1
31
- value :ACTIVE, 2
32
- value :REVOKED, 3
33
- value :SUSPENDED, 4
12
+
13
+ descriptor_data = "\n3google/cloud/channel/v1/channel_partner_links.proto\x12\x17google.cloud.channel.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a$google/cloud/channel/v1/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x8f\x04\n\x12\x43hannelPartnerLink\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\'\n\x1areseller_cloud_identity_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12I\n\nlink_state\x18\x03 \x01(\x0e\x32\x30.google.cloud.channel.v1.ChannelPartnerLinkStateB\x03\xe0\x41\x02\x12\x1c\n\x0finvite_link_uri\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x16\n\tpublic_id\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12\\\n#channel_partner_cloud_identity_info\x18\x08 \x01(\x0b\x32*.google.cloud.channel.v1.CloudIdentityInfoB\x03\xe0\x41\x03:r\xea\x41o\n.cloudchannel.googleapis.com/ChannelPartnerLink\x12=accounts/{account}/channelPartnerLinks/{channel_partner_link}*>\n\x16\x43hannelPartnerLinkView\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\t\n\x05\x42\x41SIC\x10\x01\x12\x08\n\x04\x46ULL\x10\x02*z\n\x17\x43hannelPartnerLinkState\x12*\n&CHANNEL_PARTNER_LINK_STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07INVITED\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\x0b\n\x07REVOKED\x10\x03\x12\r\n\tSUSPENDED\x10\x04\x42p\n\x1b\x63om.google.cloud.channel.v1B\x18\x43hannelPartnerLinksProtoP\x01Z5cloud.google.com/go/channel/apiv1/channelpb;channelpbb\x06proto3"
14
+
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.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
29
+ ["google.cloud.channel.v1.CloudIdentityInfo", "google/cloud/channel/v1/common.proto"],
30
+ ]
31
+ imports.each do |type_name, expected_filename|
32
+ import_file = pool.lookup(type_name).file_descriptor
33
+ if import_file.name != expected_filename
34
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
34
35
  end
35
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."
36
39
  end
37
40
 
38
41
  module Google
@@ -125,7 +125,7 @@ module Google
125
125
  credentials = @config.credentials
126
126
  # Use self-signed JWT if the endpoint is unchanged from default,
127
127
  # but only if the default endpoint does not have a region prefix.
128
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
128
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
129
129
  !@config.endpoint.split(".").first.include?("-")
130
130
  credentials ||= Credentials.default scope: @config.scope,
131
131
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -599,7 +599,9 @@ module Google
599
599
  class Configuration
600
600
  extend ::Gapic::Config
601
601
 
602
- config_attr :endpoint, "cloudchannel.googleapis.com", ::String
602
+ DEFAULT_ENDPOINT = "cloudchannel.googleapis.com"
603
+
604
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
603
605
  config_attr :credentials, nil do |value|
604
606
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
605
607
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -664,7 +664,9 @@ module Google
664
664
  class Configuration
665
665
  extend ::Gapic::Config
666
666
 
667
- config_attr :endpoint, "cloudchannel.googleapis.com", ::String
667
+ DEFAULT_ENDPOINT = "cloudchannel.googleapis.com"
668
+
669
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
668
670
  config_attr :credentials, nil do |value|
669
671
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
670
672
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -121,7 +121,7 @@ module Google
121
121
  credentials = @config.credentials
122
122
  # Use self-signed JWT if the endpoint is unchanged from default,
123
123
  # but only if the default endpoint does not have a region prefix.
124
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
124
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
125
125
  !@config.endpoint.split(".").first.include?("-")
126
126
  credentials ||= Credentials.default scope: @config.scope,
127
127
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -497,7 +497,9 @@ module Google
497
497
  class Configuration
498
498
  extend ::Gapic::Config
499
499
 
500
- config_attr :endpoint, "cloudchannel.googleapis.com", ::String
500
+ DEFAULT_ENDPOINT = "cloudchannel.googleapis.com"
501
+
502
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
501
503
  config_attr :credentials, nil do |value|
502
504
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
503
505
  allowed.any? { |klass| klass === value }
@@ -446,7 +446,9 @@ module Google
446
446
  class Configuration
447
447
  extend ::Gapic::Config
448
448
 
449
- config_attr :endpoint, "cloudchannel.googleapis.com", ::String
449
+ DEFAULT_ENDPOINT = "cloudchannel.googleapis.com"
450
+
451
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
450
452
  config_attr :credentials, nil do |value|
451
453
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
452
454
  allowed.any? { |klass| klass === value }
@@ -567,7 +569,7 @@ module Google
567
569
 
568
570
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
569
571
  query_string_params = if query_string_params.any?
570
- query_string_params.to_h { |p| p.split("=", 2) }
572
+ query_string_params.to_h { |p| p.split "=", 2 }
571
573
  else
572
574
  {}
573
575
  end
@@ -605,7 +607,7 @@ module Google
605
607
 
606
608
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
607
609
  query_string_params = if query_string_params.any?
608
- query_string_params.to_h { |p| p.split("=", 2) }
610
+ query_string_params.to_h { |p| p.split "=", 2 }
609
611
  else
610
612
  {}
611
613
  end
@@ -643,7 +645,7 @@ module Google
643
645
 
644
646
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
645
647
  query_string_params = if query_string_params.any?
646
- query_string_params.to_h { |p| p.split("=", 2) }
648
+ query_string_params.to_h { |p| p.split "=", 2 }
647
649
  else
648
650
  {}
649
651
  end
@@ -681,7 +683,7 @@ module Google
681
683
 
682
684
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
683
685
  query_string_params = if query_string_params.any?
684
- query_string_params.to_h { |p| p.split("=", 2) }
686
+ query_string_params.to_h { |p| p.split "=", 2 }
685
687
  else
686
688
  {}
687
689
  end
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_run_report_job_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
63
  else
64
64
  {}
65
65
  end
@@ -97,7 +97,7 @@ module Google
97
97
 
98
98
  verb, uri, query_string_params, body = ServiceStub.transcode_fetch_report_results_request request_pb
99
99
  query_string_params = if query_string_params.any?
100
- query_string_params.to_h { |p| p.split("=", 2) }
100
+ query_string_params.to_h { |p| p.split "=", 2 }
101
101
  else
102
102
  {}
103
103
  end
@@ -135,7 +135,7 @@ module Google
135
135
 
136
136
  verb, uri, query_string_params, body = ServiceStub.transcode_list_reports_request request_pb
137
137
  query_string_params = if query_string_params.any?
138
- query_string_params.to_h { |p| p.split("=", 2) }
138
+ query_string_params.to_h { |p| p.split "=", 2 }
139
139
  else
140
140
  {}
141
141
  end
@@ -169,7 +169,7 @@ module Google
169
169
  credentials = @config.credentials
170
170
  # Use self-signed JWT if the endpoint is unchanged from default,
171
171
  # but only if the default endpoint does not have a region prefix.
172
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
172
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
173
173
  !@config.endpoint.split(".").first.include?("-")
174
174
  credentials ||= Credentials.default scope: @config.scope,
175
175
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -5703,7 +5703,9 @@ module Google
5703
5703
  class Configuration
5704
5704
  extend ::Gapic::Config
5705
5705
 
5706
- config_attr :endpoint, "cloudchannel.googleapis.com", ::String
5706
+ DEFAULT_ENDPOINT = "cloudchannel.googleapis.com"
5707
+
5708
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
5707
5709
  config_attr :credentials, nil do |value|
5708
5710
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
5709
5711
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -664,7 +664,9 @@ module Google
664
664
  class Configuration
665
665
  extend ::Gapic::Config
666
666
 
667
- config_attr :endpoint, "cloudchannel.googleapis.com", ::String
667
+ DEFAULT_ENDPOINT = "cloudchannel.googleapis.com"
668
+
669
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
668
670
  config_attr :credentials, nil do |value|
669
671
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
670
672
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -165,7 +165,7 @@ module Google
165
165
  credentials = @config.credentials
166
166
  # Use self-signed JWT if the endpoint is unchanged from default,
167
167
  # but only if the default endpoint does not have a region prefix.
168
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
168
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
169
169
  !@config.endpoint.split(".").first.include?("-")
170
170
  credentials ||= Credentials.default scope: @config.scope,
171
171
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -4507,7 +4507,9 @@ module Google
4507
4507
  class Configuration
4508
4508
  extend ::Gapic::Config
4509
4509
 
4510
- config_attr :endpoint, "cloudchannel.googleapis.com", ::String
4510
+ DEFAULT_ENDPOINT = "cloudchannel.googleapis.com"
4511
+
4512
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
4511
4513
  config_attr :credentials, nil do |value|
4512
4514
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
4513
4515
  allowed.any? { |klass| klass === value }
@@ -446,7 +446,9 @@ module Google
446
446
  class Configuration
447
447
  extend ::Gapic::Config
448
448
 
449
- config_attr :endpoint, "cloudchannel.googleapis.com", ::String
449
+ DEFAULT_ENDPOINT = "cloudchannel.googleapis.com"
450
+
451
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
450
452
  config_attr :credentials, nil do |value|
451
453
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
452
454
  allowed.any? { |klass| klass === value }
@@ -567,7 +569,7 @@ module Google
567
569
 
568
570
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
569
571
  query_string_params = if query_string_params.any?
570
- query_string_params.to_h { |p| p.split("=", 2) }
572
+ query_string_params.to_h { |p| p.split "=", 2 }
571
573
  else
572
574
  {}
573
575
  end
@@ -605,7 +607,7 @@ module Google
605
607
 
606
608
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
607
609
  query_string_params = if query_string_params.any?
608
- query_string_params.to_h { |p| p.split("=", 2) }
610
+ query_string_params.to_h { |p| p.split "=", 2 }
609
611
  else
610
612
  {}
611
613
  end
@@ -643,7 +645,7 @@ module Google
643
645
 
644
646
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
645
647
  query_string_params = if query_string_params.any?
646
- query_string_params.to_h { |p| p.split("=", 2) }
648
+ query_string_params.to_h { |p| p.split "=", 2 }
647
649
  else
648
650
  {}
649
651
  end
@@ -681,7 +683,7 @@ module Google
681
683
 
682
684
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
683
685
  query_string_params = if query_string_params.any?
684
- query_string_params.to_h { |p| p.split("=", 2) }
686
+ query_string_params.to_h { |p| p.split "=", 2 }
685
687
  else
686
688
  {}
687
689
  end