google-cloud-api_hub-v1 0.3.0 → 0.4.1

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: 3f9f5dcd83cc8f97c195ae85c4f0f8312f571567986e431cbb06523e7f63ef0c
4
- data.tar.gz: 3421bdaabaef64a538dc18ed669f1b26f0702a5b647a914929bcaebcf9ab0c13
3
+ metadata.gz: 690b8131b714bce3135a26a8d966718293fc9e0aa26c9dd4c70bbd5e580e9d7b
4
+ data.tar.gz: 5ff1d51987f5d701829bd561a6e707ef81c680d9064125395c4265f0e4ecac1b
5
5
  SHA512:
6
- metadata.gz: 89c2f7433626d064d47daaf5cf6502dcd72700ca460f68aae98d5e14fc0663b4c949169b8b016429938be02281b82ea29b8d704ac6417e3a924284748c29fa6b
7
- data.tar.gz: 41f971be8e6592c162ca29300969bef3c537eff9b509d4643df6d8e17eab427a8c79a92cd2983702e85bbef8ed76f33e4134a296e6d74c5f585d47b2b78e1611
6
+ metadata.gz: 4cac454215d62cd86f73b0d284fbf141be45c7f1c55c51aef64b05f2748b932e586a280bb81947d9986b7b2b585a6347323d2a2f967d774e9902d2d169091e9f
7
+ data.tar.gz: 6961955744d9006ec74d71b2906dfc62042be041335e7e1b146018a4752ec581733e4ccd1f3907d4f13affe03e3acfe76ae668011a44b1980857f04fccea1dd9
data/README.md CHANGED
@@ -86,7 +86,7 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
86
86
 
87
87
  ## Supported Ruby Versions
88
88
 
89
- This library is supported on Ruby 2.7+.
89
+ This library is supported on Ruby 3.0+.
90
90
 
91
91
  Google provides official support for Ruby versions that are actively supported
92
92
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
@@ -3885,6 +3885,13 @@ module Google
3885
3885
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
3886
3886
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
3887
3887
  # * (`nil`) indicating no credentials
3888
+ #
3889
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
3890
+ # external source for authentication to Google Cloud, you must validate it before
3891
+ # providing it to a Google API client library. Providing an unvalidated credential
3892
+ # configuration to Google APIs can compromise the security of your systems and data.
3893
+ # For more information, refer to [Validate credential configurations from external
3894
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
3888
3895
  # @return [::Object]
3889
3896
  # @!attribute [rw] scope
3890
3897
  # The OAuth scopes
@@ -3932,7 +3939,7 @@ module Google
3932
3939
 
3933
3940
  config_attr :endpoint, nil, ::String, nil
3934
3941
  config_attr :credentials, nil do |value|
3935
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
3942
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
3936
3943
  allowed.any? { |klass| klass === value }
3937
3944
  end
3938
3945
  config_attr :scope, nil, ::String, ::Array, nil
@@ -720,6 +720,13 @@ module Google
720
720
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
721
721
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
722
722
  # * (`nil`) indicating no credentials
723
+ #
724
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
725
+ # external source for authentication to Google Cloud, you must validate it before
726
+ # providing it to a Google API client library. Providing an unvalidated credential
727
+ # configuration to Google APIs can compromise the security of your systems and data.
728
+ # For more information, refer to [Validate credential configurations from external
729
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
723
730
  # @return [::Object]
724
731
  # @!attribute [rw] scope
725
732
  # The OAuth scopes
@@ -767,7 +774,7 @@ module Google
767
774
 
768
775
  config_attr :endpoint, nil, ::String, nil
769
776
  config_attr :credentials, nil do |value|
770
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
777
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
771
778
  allowed.any? { |klass| klass === value }
772
779
  end
773
780
  config_attr :scope, nil, ::String, ::Array, nil
@@ -483,6 +483,13 @@ module Google
483
483
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
484
484
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
485
485
  # * (`nil`) indicating no credentials
486
+ #
487
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
488
+ # external source for authentication to Google Cloud, you must validate it before
489
+ # providing it to a Google API client library. Providing an unvalidated credential
490
+ # configuration to Google APIs can compromise the security of your systems and data.
491
+ # For more information, refer to [Validate credential configurations from external
492
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
486
493
  # @return [::Object]
487
494
  # @!attribute [rw] scope
488
495
  # The OAuth scopes
@@ -530,7 +537,7 @@ module Google
530
537
 
531
538
  config_attr :endpoint, nil, ::String, nil
532
539
  config_attr :credentials, nil do |value|
533
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
540
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
534
541
  allowed.any? { |klass| klass === value }
535
542
  end
536
543
  config_attr :scope, nil, ::String, ::Array, nil
@@ -533,6 +533,13 @@ module Google
533
533
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
534
534
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
535
535
  # * (`nil`) indicating no credentials
536
+ #
537
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
538
+ # external source for authentication to Google Cloud, you must validate it before
539
+ # providing it to a Google API client library. Providing an unvalidated credential
540
+ # configuration to Google APIs can compromise the security of your systems and data.
541
+ # For more information, refer to [Validate credential configurations from external
542
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
536
543
  # @return [::Object]
537
544
  # @!attribute [rw] scope
538
545
  # The OAuth scopes
@@ -580,7 +587,7 @@ module Google
580
587
 
581
588
  config_attr :endpoint, nil, ::String, nil
582
589
  config_attr :credentials, nil do |value|
583
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
590
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
584
591
  allowed.any? { |klass| klass === value }
585
592
  end
586
593
  config_attr :scope, nil, ::String, ::Array, nil
@@ -572,6 +572,13 @@ module Google
572
572
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
573
573
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
574
574
  # * (`nil`) indicating no credentials
575
+ #
576
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
577
+ # external source for authentication to Google Cloud, you must validate it before
578
+ # providing it to a Google API client library. Providing an unvalidated credential
579
+ # configuration to Google APIs can compromise the security of your systems and data.
580
+ # For more information, refer to [Validate credential configurations from external
581
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
575
582
  # @return [::Object]
576
583
  # @!attribute [rw] scope
577
584
  # The OAuth scopes
@@ -619,7 +626,7 @@ module Google
619
626
 
620
627
  config_attr :endpoint, nil, ::String, nil
621
628
  config_attr :credentials, nil do |value|
622
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
629
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
623
630
  allowed.any? { |klass| klass === value }
624
631
  end
625
632
  config_attr :scope, nil, ::String, ::Array, nil
@@ -520,6 +520,13 @@ module Google
520
520
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
521
521
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
522
522
  # * (`nil`) indicating no credentials
523
+ #
524
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
525
+ # external source for authentication to Google Cloud, you must validate it before
526
+ # providing it to a Google API client library. Providing an unvalidated credential
527
+ # configuration to Google APIs can compromise the security of your systems and data.
528
+ # For more information, refer to [Validate credential configurations from external
529
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
523
530
  # @return [::Object]
524
531
  # @!attribute [rw] scope
525
532
  # The OAuth scopes
@@ -567,7 +574,7 @@ module Google
567
574
 
568
575
  config_attr :endpoint, nil, ::String, nil
569
576
  config_attr :credentials, nil do |value|
570
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
577
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
571
578
  allowed.any? { |klass| klass === value }
572
579
  end
573
580
  config_attr :scope, nil, ::String, ::Array, nil
@@ -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
@@ -549,7 +556,7 @@ module Google
549
556
 
550
557
  config_attr :endpoint, nil, ::String, nil
551
558
  config_attr :credentials, nil do |value|
552
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
559
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
553
560
  allowed.any? { |klass| klass === value }
554
561
  end
555
562
  config_attr :scope, nil, ::String, ::Array, nil
@@ -699,6 +699,13 @@ module Google
699
699
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
700
700
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
701
701
  # * (`nil`) indicating no credentials
702
+ #
703
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
704
+ # external source for authentication to Google Cloud, you must validate it before
705
+ # providing it to a Google API client library. Providing an unvalidated credential
706
+ # configuration to Google APIs can compromise the security of your systems and data.
707
+ # For more information, refer to [Validate credential configurations from external
708
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
702
709
  # @return [::Object]
703
710
  # @!attribute [rw] scope
704
711
  # The OAuth scopes
@@ -746,7 +753,7 @@ module Google
746
753
 
747
754
  config_attr :endpoint, nil, ::String, nil
748
755
  config_attr :credentials, nil do |value|
749
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
756
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
750
757
  allowed.any? { |klass| klass === value }
751
758
  end
752
759
  config_attr :scope, nil, ::String, ::Array, nil
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module ApiHub
23
23
  module V1
24
- VERSION = "0.3.0"
24
+ VERSION = "0.4.1"
25
25
  end
26
26
  end
27
27
  end
@@ -221,6 +221,12 @@ module Google
221
221
  # Pythonic which are included in `protobuf>=5.29.x`. This feature will be
222
222
  # enabled by default 1 month after launching the feature in preview
223
223
  # packages.
224
+ # @!attribute [rw] unversioned_package_disabled
225
+ # @return [::Boolean]
226
+ # Disables generation of an unversioned Python package for this client
227
+ # library. This means that the module names will need to be versioned in
228
+ # import statements. For example `import google.cloud.library_v2` instead
229
+ # of `import google.cloud.library`.
224
230
  class ExperimentalFeatures
225
231
  include ::Google::Protobuf::MessageExts
226
232
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -409,6 +415,14 @@ module Google
409
415
  # @return [::Array<::String>]
410
416
  # An allowlist of the fully qualified names of RPCs that should be included
411
417
  # on public client surfaces.
418
+ # @!attribute [rw] generate_omitted_as_internal
419
+ # @return [::Boolean]
420
+ # Setting this to true indicates to the client generators that methods
421
+ # that would be excluded from the generation should instead be generated
422
+ # in a way that indicates these methods should not be consumed by
423
+ # end users. How this is expressed is up to individual language
424
+ # implementations to decide. Some examples may be: added annotations,
425
+ # obfuscated identifiers, or other language idiomatic patterns.
412
426
  class SelectiveGapicGeneration
413
427
  include ::Google::Protobuf::MessageExts
414
428
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -1010,26 +1010,38 @@ module Google
1010
1010
  # @return [::Google::Cloud::ApiHub::V1::Api]
1011
1011
  # This represents Api resource in search results. Only name, display_name,
1012
1012
  # description and owner fields are populated in search results.
1013
+ #
1014
+ # Note: The following fields are mutually exclusive: `api`, `operation`, `deployment`, `spec`, `definition`, `version`. If a field in that set is populated, all other fields in the set will automatically be cleared.
1013
1015
  # @!attribute [rw] operation
1014
1016
  # @return [::Google::Cloud::ApiHub::V1::ApiOperation]
1015
1017
  # This represents ApiOperation resource in search results. Only name,
1016
1018
  # and description fields are populated in search results.
1019
+ #
1020
+ # Note: The following fields are mutually exclusive: `operation`, `api`, `deployment`, `spec`, `definition`, `version`. If a field in that set is populated, all other fields in the set will automatically be cleared.
1017
1021
  # @!attribute [rw] deployment
1018
1022
  # @return [::Google::Cloud::ApiHub::V1::Deployment]
1019
1023
  # This represents Deployment resource in search results. Only name,
1020
1024
  # display_name and description fields are populated in search results.
1025
+ #
1026
+ # Note: The following fields are mutually exclusive: `deployment`, `api`, `operation`, `spec`, `definition`, `version`. If a field in that set is populated, all other fields in the set will automatically be cleared.
1021
1027
  # @!attribute [rw] spec
1022
1028
  # @return [::Google::Cloud::ApiHub::V1::Spec]
1023
1029
  # This represents Spec resource in search results. Only name,
1024
1030
  # display_name and description fields are populated in search results.
1031
+ #
1032
+ # Note: The following fields are mutually exclusive: `spec`, `api`, `operation`, `deployment`, `definition`, `version`. If a field in that set is populated, all other fields in the set will automatically be cleared.
1025
1033
  # @!attribute [rw] definition
1026
1034
  # @return [::Google::Cloud::ApiHub::V1::Definition]
1027
1035
  # This represents Definition resource in search results.
1028
1036
  # Only name field is populated in search results.
1037
+ #
1038
+ # Note: The following fields are mutually exclusive: `definition`, `api`, `operation`, `deployment`, `spec`, `version`. If a field in that set is populated, all other fields in the set will automatically be cleared.
1029
1039
  # @!attribute [rw] version
1030
1040
  # @return [::Google::Cloud::ApiHub::V1::Version]
1031
1041
  # This represents Version resource in search results. Only name,
1032
1042
  # display_name and description fields are populated in search results.
1043
+ #
1044
+ # Note: The following fields are mutually exclusive: `version`, `api`, `operation`, `deployment`, `spec`, `definition`. If a field in that set is populated, all other fields in the set will automatically be cleared.
1033
1045
  class ApiHubResource
1034
1046
  include ::Google::Protobuf::MessageExts
1035
1047
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -848,14 +848,20 @@ module Google
848
848
  # @return [::Google::Cloud::ApiHub::V1::AttributeValues::EnumAttributeValues]
849
849
  # The attribute values associated with a resource in case attribute data
850
850
  # type is enum.
851
+ #
852
+ # Note: The following fields are mutually exclusive: `enum_values`, `string_values`, `json_values`. If a field in that set is populated, all other fields in the set will automatically be cleared.
851
853
  # @!attribute [rw] string_values
852
854
  # @return [::Google::Cloud::ApiHub::V1::AttributeValues::StringAttributeValues]
853
855
  # The attribute values associated with a resource in case attribute data
854
856
  # type is string.
857
+ #
858
+ # Note: The following fields are mutually exclusive: `string_values`, `enum_values`, `json_values`. If a field in that set is populated, all other fields in the set will automatically be cleared.
855
859
  # @!attribute [rw] json_values
856
860
  # @return [::Google::Cloud::ApiHub::V1::AttributeValues::StringAttributeValues]
857
861
  # The attribute values associated with a resource in case attribute data
858
862
  # type is JSON.
863
+ #
864
+ # Note: The following fields are mutually exclusive: `json_values`, `enum_values`, `string_values`. If a field in that set is populated, all other fields in the set will automatically be cleared.
859
865
  # @!attribute [r] attribute
860
866
  # @return [::String]
861
867
  # Output only. The name of the attribute.
@@ -969,12 +975,16 @@ module Google
969
975
  #
970
976
  # Format:
971
977
  # `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`
978
+ #
979
+ # Note: The following fields are mutually exclusive: `operation_resource_name`, `external_api_resource_name`. If a field in that set is populated, all other fields in the set will automatically be cleared.
972
980
  # @!attribute [rw] external_api_resource_name
973
981
  # @return [::String]
974
982
  # The resource name of an external API in the API Hub.
975
983
  #
976
984
  # Format:
977
985
  # `projects/{project}/locations/{location}/externalApis/{external_api}`
986
+ #
987
+ # Note: The following fields are mutually exclusive: `external_api_resource_name`, `operation_resource_name`. If a field in that set is populated, all other fields in the set will automatically be cleared.
978
988
  # @!attribute [r] display_name
979
989
  # @return [::String]
980
990
  # Output only. Display name of the entity.
@@ -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
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-api_hub-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.1
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: 1980-01-02 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
@@ -164,7 +163,6 @@ homepage: https://github.com/googleapis/google-cloud-ruby
164
163
  licenses:
165
164
  - Apache-2.0
166
165
  metadata: {}
167
- post_install_message:
168
166
  rdoc_options: []
169
167
  require_paths:
170
168
  - lib
@@ -172,15 +170,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
172
170
  requirements:
173
171
  - - ">="
174
172
  - !ruby/object:Gem::Version
175
- version: '2.7'
173
+ version: '3.0'
176
174
  required_rubygems_version: !ruby/object:Gem::Requirement
177
175
  requirements:
178
176
  - - ">="
179
177
  - !ruby/object:Gem::Version
180
178
  version: '0'
181
179
  requirements: []
182
- rubygems_version: 3.5.23
183
- signing_key:
180
+ rubygems_version: 3.6.8
184
181
  specification_version: 4
185
182
  summary: API Client library for the API hub V1 API
186
183
  test_files: []