google-cloud-connectors-v1 0.2.0 → 1.0.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1126747b9491f028538d52a31af04e3112714526bf050563de574e4307d065ed
4
- data.tar.gz: 33be5b7fc63d72af78b31a3f42d5dab248437fd4279e11dcb44e37df4198967c
3
+ metadata.gz: b9229bd5bbdd81bebd5b1a7cd764f0ebf447212e43509221cc006b87986a73e5
4
+ data.tar.gz: 54cc522e077a47292c56b1d780b008dc256cbd89594f0ac1d5b5b8d8f41f8af8
5
5
  SHA512:
6
- metadata.gz: 0fb5620b28bfb098d62aaf8b8083949472cceacf2c754ab8a87c7131a79b12a42242c24ff22fa65e2671f9bb486ce0a7a0a620dc3e5cdfa1816a706b1a249323
7
- data.tar.gz: c42a7eedbe36e5380a5ac325fc2d875f3e8d1ab22648fa6d9c29cddf0d5b9785ae5e138e4a7e8e5fbace4edd40bf7138d5a0fd7fdb0e8092e3e0af0ddcc1ddfb
6
+ metadata.gz: 1437048c22921aa5f7f93107d8bc79e1217abe4d8beba3605474f25c5af43ab0f50dc49113495be92e5c15432e711bc2362d7037a7301e221818289ea90a555e
7
+ data.tar.gz: b2d13e71d83614f72be02d62e0e50108defb7f06e503eb24d31bce6d4b1d83ddbaa5bf0e988e4d013f1a68833bf05394429a87a7aa6ab8f0eee14ed7cba89c9f
data/README.md CHANGED
@@ -83,7 +83,7 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
83
83
 
84
84
  ## Supported Ruby Versions
85
85
 
86
- This library is supported on Ruby 2.7+.
86
+ This library is supported on Ruby 3.0+.
87
87
 
88
88
  Google provides official support for Ruby versions that are actively supported
89
89
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
@@ -1960,6 +1960,13 @@ module Google
1960
1960
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1961
1961
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1962
1962
  # * (`nil`) indicating no credentials
1963
+ #
1964
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
1965
+ # external source for authentication to Google Cloud, you must validate it before
1966
+ # providing it to a Google API client library. Providing an unvalidated credential
1967
+ # configuration to Google APIs can compromise the security of your systems and data.
1968
+ # For more information, refer to [Validate credential configurations from external
1969
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
1963
1970
  # @return [::Object]
1964
1971
  # @!attribute [rw] scope
1965
1972
  # The OAuth scopes
@@ -640,6 +640,13 @@ module Google
640
640
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
641
641
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
642
642
  # * (`nil`) indicating no credentials
643
+ #
644
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
645
+ # external source for authentication to Google Cloud, you must validate it before
646
+ # providing it to a Google API client library. Providing an unvalidated credential
647
+ # configuration to Google APIs can compromise the security of your systems and data.
648
+ # For more information, refer to [Validate credential configurations from external
649
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
643
650
  # @return [::Object]
644
651
  # @!attribute [rw] scope
645
652
  # The OAuth scopes
@@ -323,10 +323,10 @@ module Google
323
323
  # Specifies which fields of the Connection are returned in the response.
324
324
  # Defaults to `BASIC` view.
325
325
  # @yield [result, operation] Access the result along with the TransportOperation object
326
- # @yieldparam result [::Google::Cloud::Connectors::V1::ListConnectionsResponse]
326
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Connectors::V1::Connection>]
327
327
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
328
328
  #
329
- # @return [::Google::Cloud::Connectors::V1::ListConnectionsResponse]
329
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Connectors::V1::Connection>]
330
330
  #
331
331
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
332
332
  #
@@ -378,7 +378,9 @@ module Google
378
378
  retry_policy: @config.retry_policy
379
379
 
380
380
  @connectors_stub.list_connections request, options do |result, operation|
381
+ result = ::Gapic::Rest::PagedEnumerable.new @connectors_stub, :list_connections, "connections", request, result, options
381
382
  yield result, operation if block_given?
383
+ throw :response, result
382
384
  end
383
385
  rescue ::Gapic::Rest::Error => e
384
386
  raise ::Google::Cloud::Error.from_error(e)
@@ -778,10 +780,10 @@ module Google
778
780
  # @param page_token [::String]
779
781
  # Page token.
780
782
  # @yield [result, operation] Access the result along with the TransportOperation object
781
- # @yieldparam result [::Google::Cloud::Connectors::V1::ListProvidersResponse]
783
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Connectors::V1::Provider>]
782
784
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
783
785
  #
784
- # @return [::Google::Cloud::Connectors::V1::ListProvidersResponse]
786
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Connectors::V1::Provider>]
785
787
  #
786
788
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
787
789
  #
@@ -833,7 +835,9 @@ module Google
833
835
  retry_policy: @config.retry_policy
834
836
 
835
837
  @connectors_stub.list_providers request, options do |result, operation|
838
+ result = ::Gapic::Rest::PagedEnumerable.new @connectors_stub, :list_providers, "providers", request, result, options
836
839
  yield result, operation if block_given?
840
+ throw :response, result
837
841
  end
838
842
  rescue ::Gapic::Rest::Error => e
839
843
  raise ::Google::Cloud::Error.from_error(e)
@@ -946,10 +950,10 @@ module Google
946
950
  # @param page_token [::String]
947
951
  # Page token.
948
952
  # @yield [result, operation] Access the result along with the TransportOperation object
949
- # @yieldparam result [::Google::Cloud::Connectors::V1::ListConnectorsResponse]
953
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Connectors::V1::Connector>]
950
954
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
951
955
  #
952
- # @return [::Google::Cloud::Connectors::V1::ListConnectorsResponse]
956
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Connectors::V1::Connector>]
953
957
  #
954
958
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
955
959
  #
@@ -1001,7 +1005,9 @@ module Google
1001
1005
  retry_policy: @config.retry_policy
1002
1006
 
1003
1007
  @connectors_stub.list_connectors request, options do |result, operation|
1008
+ result = ::Gapic::Rest::PagedEnumerable.new @connectors_stub, :list_connectors, "connectors", request, result, options
1004
1009
  yield result, operation if block_given?
1010
+ throw :response, result
1005
1011
  end
1006
1012
  rescue ::Gapic::Rest::Error => e
1007
1013
  raise ::Google::Cloud::Error.from_error(e)
@@ -1117,10 +1123,10 @@ module Google
1117
1123
  # Specifies which fields of the ConnectorVersion are returned in the
1118
1124
  # response. Defaults to `BASIC` view.
1119
1125
  # @yield [result, operation] Access the result along with the TransportOperation object
1120
- # @yieldparam result [::Google::Cloud::Connectors::V1::ListConnectorVersionsResponse]
1126
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Connectors::V1::ConnectorVersion>]
1121
1127
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1122
1128
  #
1123
- # @return [::Google::Cloud::Connectors::V1::ListConnectorVersionsResponse]
1129
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Connectors::V1::ConnectorVersion>]
1124
1130
  #
1125
1131
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1126
1132
  #
@@ -1172,7 +1178,9 @@ module Google
1172
1178
  retry_policy: @config.retry_policy
1173
1179
 
1174
1180
  @connectors_stub.list_connector_versions request, options do |result, operation|
1181
+ result = ::Gapic::Rest::PagedEnumerable.new @connectors_stub, :list_connector_versions, "connector_versions", request, result, options
1175
1182
  yield result, operation if block_given?
1183
+ throw :response, result
1176
1184
  end
1177
1185
  rescue ::Gapic::Rest::Error => e
1178
1186
  raise ::Google::Cloud::Error.from_error(e)
@@ -1826,6 +1834,13 @@ module Google
1826
1834
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1827
1835
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1828
1836
  # * (`nil`) indicating no credentials
1837
+ #
1838
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
1839
+ # external source for authentication to Google Cloud, you must validate it before
1840
+ # providing it to a Google API client library. Providing an unvalidated credential
1841
+ # configuration to Google APIs can compromise the security of your systems and data.
1842
+ # For more information, refer to [Validate credential configurations from external
1843
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
1829
1844
  # @return [::Object]
1830
1845
  # @!attribute [rw] scope
1831
1846
  # The OAuth scopes
@@ -502,6 +502,13 @@ module Google
502
502
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
503
503
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
504
504
  # * (`nil`) indicating no credentials
505
+ #
506
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
507
+ # external source for authentication to Google Cloud, you must validate it before
508
+ # providing it to a Google API client library. Providing an unvalidated credential
509
+ # configuration to Google APIs can compromise the security of your systems and data.
510
+ # For more information, refer to [Validate credential configurations from external
511
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
505
512
  # @return [::Object]
506
513
  # @!attribute [rw] scope
507
514
  # The OAuth scopes
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Connectors
23
23
  module V1
24
- VERSION = "0.2.0"
24
+ VERSION = "1.0.0"
25
25
  end
26
26
  end
27
27
  end
@@ -409,6 +409,14 @@ module Google
409
409
  # @return [::Array<::String>]
410
410
  # An allowlist of the fully qualified names of RPCs that should be included
411
411
  # on public client surfaces.
412
+ # @!attribute [rw] generate_omitted_as_internal
413
+ # @return [::Boolean]
414
+ # Setting this to true indicates to the client generators that methods
415
+ # that would be excluded from the generation should instead be generated
416
+ # in a way that indicates these methods should not be consumed by
417
+ # end users. How this is expressed is up to individual language
418
+ # implementations to decide. Some examples may be: added annotations,
419
+ # obfuscated identifiers, or other language idiomatic patterns.
412
420
  class SelectiveGapicGeneration
413
421
  include ::Google::Protobuf::MessageExts
414
422
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -28,15 +28,23 @@ module Google
28
28
  # @!attribute [rw] user_password
29
29
  # @return [::Google::Cloud::Connectors::V1::AuthConfig::UserPassword]
30
30
  # UserPassword.
31
+ #
32
+ # Note: The following fields are mutually exclusive: `user_password`, `oauth2_jwt_bearer`, `oauth2_client_credentials`, `ssh_public_key`. If a field in that set is populated, all other fields in the set will automatically be cleared.
31
33
  # @!attribute [rw] oauth2_jwt_bearer
32
34
  # @return [::Google::Cloud::Connectors::V1::AuthConfig::Oauth2JwtBearer]
33
35
  # Oauth2JwtBearer.
36
+ #
37
+ # Note: The following fields are mutually exclusive: `oauth2_jwt_bearer`, `user_password`, `oauth2_client_credentials`, `ssh_public_key`. If a field in that set is populated, all other fields in the set will automatically be cleared.
34
38
  # @!attribute [rw] oauth2_client_credentials
35
39
  # @return [::Google::Cloud::Connectors::V1::AuthConfig::Oauth2ClientCredentials]
36
40
  # Oauth2ClientCredentials.
41
+ #
42
+ # Note: The following fields are mutually exclusive: `oauth2_client_credentials`, `user_password`, `oauth2_jwt_bearer`, `ssh_public_key`. If a field in that set is populated, all other fields in the set will automatically be cleared.
37
43
  # @!attribute [rw] ssh_public_key
38
44
  # @return [::Google::Cloud::Connectors::V1::AuthConfig::SshPublicKey]
39
45
  # SSH Public Key.
46
+ #
47
+ # Note: The following fields are mutually exclusive: `ssh_public_key`, `user_password`, `oauth2_jwt_bearer`, `oauth2_client_credentials`. If a field in that set is populated, all other fields in the set will automatically be cleared.
40
48
  # @!attribute [rw] additional_variables
41
49
  # @return [::Array<::Google::Cloud::Connectors::V1::ConfigVariable>]
42
50
  # List containing additional auth configs.
@@ -162,15 +162,23 @@ module Google
162
162
  # @!attribute [rw] int_value
163
163
  # @return [::Integer]
164
164
  # Value is an integer
165
+ #
166
+ # Note: The following fields are mutually exclusive: `int_value`, `bool_value`, `string_value`, `secret_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
165
167
  # @!attribute [rw] bool_value
166
168
  # @return [::Boolean]
167
169
  # Value is a bool.
170
+ #
171
+ # Note: The following fields are mutually exclusive: `bool_value`, `int_value`, `string_value`, `secret_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
168
172
  # @!attribute [rw] string_value
169
173
  # @return [::String]
170
174
  # Value is a string.
175
+ #
176
+ # Note: The following fields are mutually exclusive: `string_value`, `int_value`, `bool_value`, `secret_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
171
177
  # @!attribute [rw] secret_value
172
178
  # @return [::Google::Cloud::Connectors::V1::Secret]
173
179
  # Value is a secret.
180
+ #
181
+ # Note: The following fields are mutually exclusive: `secret_value`, `int_value`, `bool_value`, `string_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
174
182
  class ConfigVariable
175
183
  include ::Google::Protobuf::MessageExts
176
184
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -164,10 +164,14 @@ module Google
164
164
  # Static Comma separated backends which are common for all Connection
165
165
  # resources. Supported formats for each backend are host:port or just
166
166
  # host (host can be ip address or domain name).
167
+ #
168
+ # Note: The following fields are mutually exclusive: `backends`, `extraction_rules`. If a field in that set is populated, all other fields in the set will automatically be cleared.
167
169
  # @!attribute [rw] extraction_rules
168
170
  # @return [::Google::Cloud::Connectors::V1::ExtractionRules]
169
171
  # Extractions Rules to extract the backends from customer provided
170
172
  # configuration.
173
+ #
174
+ # Note: The following fields are mutually exclusive: `extraction_rules`, `backends`. If a field in that set is populated, all other fields in the set will automatically be cleared.
171
175
  class EgressControlConfig
172
176
  include ::Google::Protobuf::MessageExts
173
177
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -37,9 +37,13 @@ module Google
37
37
  # @return [::String]
38
38
  # PSC service attachments.
39
39
  # Format: projects/*/regions/*/serviceAttachments/*
40
+ #
41
+ # Note: The following fields are mutually exclusive: `service_attachment`, `host`. If a field in that set is populated, all other fields in the set will automatically be cleared.
40
42
  # @!attribute [rw] host
41
43
  # @return [::String]
42
44
  # For publicly routable host.
45
+ #
46
+ # Note: The following fields are mutually exclusive: `host`, `service_attachment`. If a field in that set is populated, all other fields in the set will automatically be cleared.
43
47
  # @!attribute [rw] port
44
48
  # @return [::Integer]
45
49
  # The port is the target port number that is accepted by the destination.
@@ -40,6 +40,8 @@ module Google
40
40
  # @!attribute [rw] error
41
41
  # @return [::Google::Rpc::Status]
42
42
  # The error result of the operation in case of failure or cancellation.
43
+ #
44
+ # Note: The following fields are mutually exclusive: `error`, `response`. If a field in that set is populated, all other fields in the set will automatically be cleared.
43
45
  # @!attribute [rw] response
44
46
  # @return [::Google::Protobuf::Any]
45
47
  # The normal, successful response of the operation. If the original
@@ -50,6 +52,8 @@ module Google
50
52
  # is the original method name. For example, if the original method name
51
53
  # is `TakeSnapshot()`, the inferred response type is
52
54
  # `TakeSnapshotResponse`.
55
+ #
56
+ # Note: The following fields are mutually exclusive: `response`, `error`. If a field in that set is populated, all other fields in the set will automatically be cleared.
53
57
  class Operation
54
58
  include ::Google::Protobuf::MessageExts
55
59
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -53,21 +53,33 @@ module Google
53
53
  # @!attribute [rw] null_value
54
54
  # @return [::Google::Protobuf::NullValue]
55
55
  # Represents a null value.
56
+ #
57
+ # Note: The following fields are mutually exclusive: `null_value`, `number_value`, `string_value`, `bool_value`, `struct_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
56
58
  # @!attribute [rw] number_value
57
59
  # @return [::Float]
58
60
  # Represents a double value.
61
+ #
62
+ # Note: The following fields are mutually exclusive: `number_value`, `null_value`, `string_value`, `bool_value`, `struct_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
59
63
  # @!attribute [rw] string_value
60
64
  # @return [::String]
61
65
  # Represents a string value.
66
+ #
67
+ # Note: The following fields are mutually exclusive: `string_value`, `null_value`, `number_value`, `bool_value`, `struct_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
62
68
  # @!attribute [rw] bool_value
63
69
  # @return [::Boolean]
64
70
  # Represents a boolean value.
71
+ #
72
+ # Note: The following fields are mutually exclusive: `bool_value`, `null_value`, `number_value`, `string_value`, `struct_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
65
73
  # @!attribute [rw] struct_value
66
74
  # @return [::Google::Protobuf::Struct]
67
75
  # Represents a structured value.
76
+ #
77
+ # Note: The following fields are mutually exclusive: `struct_value`, `null_value`, `number_value`, `string_value`, `bool_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
68
78
  # @!attribute [rw] list_value
69
79
  # @return [::Google::Protobuf::ListValue]
70
80
  # Represents a repeated `Value`.
81
+ #
82
+ # Note: The following fields are mutually exclusive: `list_value`, `null_value`, `number_value`, `string_value`, `bool_value`, `struct_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
71
83
  class Value
72
84
  include ::Google::Protobuf::MessageExts
73
85
  extend ::Google::Protobuf::MessageExts::ClassMethods
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-connectors-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-12-10 00:00:00.000000000 Z
10
+ date: 2025-02-07 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: gapic-common
@@ -16,7 +15,7 @@ dependencies:
16
15
  requirements:
17
16
  - - ">="
18
17
  - !ruby/object:Gem::Version
19
- version: 0.24.0
18
+ version: 0.25.0
20
19
  - - "<"
21
20
  - !ruby/object:Gem::Version
22
21
  version: 2.a
@@ -26,7 +25,7 @@ dependencies:
26
25
  requirements:
27
26
  - - ">="
28
27
  - !ruby/object:Gem::Version
29
- version: 0.24.0
28
+ version: 0.25.0
30
29
  - - "<"
31
30
  - !ruby/object:Gem::Version
32
31
  version: 2.a
@@ -152,7 +151,6 @@ homepage: https://github.com/googleapis/google-cloud-ruby
152
151
  licenses:
153
152
  - Apache-2.0
154
153
  metadata: {}
155
- post_install_message:
156
154
  rdoc_options: []
157
155
  require_paths:
158
156
  - lib
@@ -160,15 +158,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
160
158
  requirements:
161
159
  - - ">="
162
160
  - !ruby/object:Gem::Version
163
- version: '2.7'
161
+ version: '3.0'
164
162
  required_rubygems_version: !ruby/object:Gem::Requirement
165
163
  requirements:
166
164
  - - ">="
167
165
  - !ruby/object:Gem::Version
168
166
  version: '0'
169
167
  requirements: []
170
- rubygems_version: 3.5.23
171
- signing_key:
168
+ rubygems_version: 3.6.3
172
169
  specification_version: 4
173
170
  summary: Enables users to create and manage connections to Google Cloud services and
174
171
  third-party business applications using the Connectors interface.