google-cloud-private_catalog-v1beta1 0.12.0 → 0.13.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: 398313b58f2f7e84c0ecbe12d8cb9cb2c8597edad7100946d98851bdebe717c9
4
- data.tar.gz: d00f95f861224b78068489918151eb428c46c74b9ed3a50b06d0464997d41d65
3
+ metadata.gz: f9a6e4dea1af9406e2646ff70840759c8f859d4fbbba3dc71e801079ba31db02
4
+ data.tar.gz: '04690e7433f02e72123aa07c614319bcaa8508175415b98107eea793c56f5dc4'
5
5
  SHA512:
6
- metadata.gz: 488e54f400f88d1f8331072b3231d15c2c949f8616be80b28c37e0e4ec1d8e3da4b46a12f0fd91a67666b93a06d9d436c3b12cd0a989be79bb44b2866cf022c5
7
- data.tar.gz: 0c28ba7cc04688680af7e8328935726c4de83dbdcbd74b4f6f2c0096bce2bdcdc78e46b113d1007808d2912331d146a55fa372f39f573ed2291ab83d72743d54
6
+ metadata.gz: bb348e282906d68229fc43b7128a3605ee4119bef69f0f25f36d0e013fe1d8cef3975e9f854ac6492d1b6f2cec23dc661c437c781838dc57d7d30a2cfce6b9d4
7
+ data.tar.gz: 6004e57cf769ec07f7280929f9e35cb1445c90cb33be97b651fe0197f361cb1ba69e7c94ab1b26c85b25abdd189bc0b114e359d77cc680cab9bb6379f950e9b0
@@ -553,8 +553,6 @@ module Google
553
553
  # @return [::String,nil]
554
554
  # @!attribute [rw] credentials
555
555
  # Credentials to send with calls. You may provide any of the following types:
556
- # * (`String`) The path to a service account key file in JSON format
557
- # * (`Hash`) A service account key as a Hash
558
556
  # * (`Google::Auth::Credentials`) A googleauth credentials object
559
557
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
560
558
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -563,7 +561,26 @@ module Google
563
561
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
564
562
  # * (`nil`) indicating no credentials
565
563
  #
566
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
564
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
565
+ # is deprecated. Providing an unvalidated credential configuration to
566
+ # Google APIs can compromise the security of your systems and data.
567
+ #
568
+ # @example
569
+ #
570
+ # # The recommended way to provide credentials is to use the `make_creds` method
571
+ # # on the appropriate credentials class for your environment.
572
+ #
573
+ # require "googleauth"
574
+ #
575
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
576
+ # json_key_io: ::File.open("/path/to/keyfile.json")
577
+ # )
578
+ #
579
+ # client = ::Google::Cloud::PrivateCatalog::V1beta1::PrivateCatalog::Client.new do |config|
580
+ # config.credentials = credentials
581
+ # end
582
+ #
583
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
567
584
  # external source for authentication to Google Cloud, you must validate it before
568
585
  # providing it to a Google API client library. Providing an unvalidated credential
569
586
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module PrivateCatalog
23
23
  module V1beta1
24
- VERSION = "0.12.0"
24
+ VERSION = "0.13.0"
25
25
  end
26
26
  end
27
27
  end
@@ -15,32 +15,8 @@ require 'google/protobuf/timestamp_pb'
15
15
 
16
16
  descriptor_data = "\n9google/cloud/privatecatalog/v1beta1/private_catalog.proto\x12#google.cloud.privatecatalog.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"d\n\x15SearchCatalogsRequest\x12\x15\n\x08resource\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\r\n\x05query\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\"q\n\x16SearchCatalogsResponse\x12>\n\x08\x63\x61talogs\x18\x01 \x03(\x0b\x32,.google.cloud.privatecatalog.v1beta1.Catalog\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"d\n\x15SearchProductsRequest\x12\x15\n\x08resource\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\r\n\x05query\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\"q\n\x16SearchProductsResponse\x12>\n\x08products\x18\x01 \x03(\x0b\x32,.google.cloud.privatecatalog.v1beta1.Product\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"i\n\x15SearchVersionsRequest\x12\x15\n\x08resource\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\x05query\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\"q\n\x16SearchVersionsResponse\x12>\n\x08versions\x18\x01 \x03(\x0b\x32,.google.cloud.privatecatalog.v1beta1.Version\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x82\x02\n\x07\x43\x61talog\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03:C\xea\x41@\n*cloudprivatecatalog.googleapis.com/Catalog\x12\x12\x63\x61talogs/{catalog}\"\x8c\x03\n\x07Product\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\nasset_type\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x39\n\x10\x64isplay_metadata\x18\x03 \x01(\x0b\x32\x17.google.protobuf.StructB\x06\xe0\x41\x02\xe0\x41\x03\x12\x15\n\x08icon_uri\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12R\n\x10\x61sset_references\x18\n \x03(\x0b\x32\x33.google.cloud.privatecatalog.v1beta1.AssetReferenceB\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:C\xea\x41@\n*cloudprivatecatalog.googleapis.com/Product\x12\x12products/{product}\"\xde\x05\n\x0e\x41ssetReference\x12\x0f\n\x02id\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12@\n\x06inputs\x18\x06 \x01(\x0b\x32+.google.cloud.privatecatalog.v1beta1.InputsB\x03\xe0\x41\x03\x12h\n\x11validation_status\x18\x07 \x01(\x0e\x32H.google.cloud.privatecatalog.v1beta1.AssetReference.AssetValidationStateB\x03\xe0\x41\x03\x12@\n\x14validation_operation\x18\x08 \x01(\x0b\x32\x1d.google.longrunning.OperationB\x03\xe0\x41\x03\x12\x14\n\x05\x61sset\x18\n \x01(\tB\x03\xe0\x41\x03H\x00\x12\x19\n\x08gcs_path\x18\x0b \x01(\tB\x05\x18\x01\xe0\x41\x03H\x00\x12I\n\ngit_source\x18\x0f \x01(\x0b\x32..google.cloud.privatecatalog.v1beta1.GitSourceB\x03\xe0\x41\x03H\x00\x12G\n\ngcs_source\x18\x10 \x01(\x0b\x32..google.cloud.privatecatalog.v1beta1.GcsSourceB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\r \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x07version\x18\x0e \x01(\tB\x02\x18\x01\"c\n\x14\x41ssetValidationState\x12&\n\"ASSET_VALIDATION_STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\t\n\x05VALID\x10\x02\x12\x0b\n\x07INVALID\x10\x03\x42\x08\n\x06source\":\n\x06Inputs\x12\x30\n\nparameters\x18\x01 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x03\"q\n\tGcsSource\x12\x15\n\x08gcs_path\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\ngeneration\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\"`\n\tGitSource\x12\x0c\n\x04repo\x18\x01 \x01(\t\x12\x0b\n\x03\x64ir\x18\x02 \x01(\t\x12\x10\n\x06\x63ommit\x18\x03 \x01(\tH\x00\x12\x10\n\x06\x62ranch\x18\x04 \x01(\tH\x00\x12\r\n\x03tag\x18\x05 \x01(\tH\x00\x42\x05\n\x03ref\"\xba\x02\n\x07Version\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12+\n\x05\x61sset\x18\x03 \x01(\x0b\x32\x17.google.protobuf.StructB\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:i\xea\x41\x66\n*cloudprivatecatalog.googleapis.com/Version\x12\x38\x63\x61talogs/{catalog}/products/{product}/versions/{version}2\xf2\x07\n\x0ePrivateCatalog\x12\xab\x02\n\x0eSearchCatalogs\x12:.google.cloud.privatecatalog.v1beta1.SearchCatalogsRequest\x1a;.google.cloud.privatecatalog.v1beta1.SearchCatalogsResponse\"\x9f\x01\x82\xd3\xe4\x93\x02\x98\x01\x12./v1beta1/{resource=projects/*}/catalogs:searchZ5\x12\x33/v1beta1/{resource=organizations/*}/catalogs:searchZ/\x12-/v1beta1/{resource=folders/*}/catalogs:search\x12\xab\x02\n\x0eSearchProducts\x12:.google.cloud.privatecatalog.v1beta1.SearchProductsRequest\x1a;.google.cloud.privatecatalog.v1beta1.SearchProductsResponse\"\x9f\x01\x82\xd3\xe4\x93\x02\x98\x01\x12./v1beta1/{resource=projects/*}/products:searchZ5\x12\x33/v1beta1/{resource=organizations/*}/products:searchZ/\x12-/v1beta1/{resource=folders/*}/products:search\x12\xab\x02\n\x0eSearchVersions\x12:.google.cloud.privatecatalog.v1beta1.SearchVersionsRequest\x1a;.google.cloud.privatecatalog.v1beta1.SearchVersionsResponse\"\x9f\x01\x82\xd3\xe4\x93\x02\x98\x01\x12./v1beta1/{resource=projects/*}/versions:searchZ5\x12\x33/v1beta1/{resource=organizations/*}/versions:searchZ/\x12-/v1beta1/{resource=folders/*}/versions:search\x1aV\xca\x41\"cloudprivatecatalog.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x86\x02\n\'com.google.cloud.privatecatalog.v1beta1B\x13PrivateCatalogProtoP\x01ZOcloud.google.com/go/privatecatalog/apiv1beta1/privatecatalogpb;privatecatalogpb\xaa\x02#Google.Cloud.PrivateCatalog.V1Beta1\xca\x02#Google\\Cloud\\PrivateCatalog\\V1beta1\xea\x02&Google::Cloud::PrivateCatalog::V1beta1b\x06proto3"
17
17
 
18
- pool = Google::Protobuf::DescriptorPool.generated_pool
19
-
20
- begin
21
- pool.add_serialized_file(descriptor_data)
22
- rescue TypeError
23
- # Compatibility code: will be removed in the next major version.
24
- require 'google/protobuf/descriptor_pb'
25
- parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
26
- parsed.clear_dependency
27
- serialized = parsed.class.encode(parsed)
28
- file = pool.add_serialized_file(serialized)
29
- warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
30
- imports = [
31
- ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
32
- ["google.protobuf.Struct", "google/protobuf/struct.proto"],
33
- ["google.longrunning.Operation", "google/longrunning/operations.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}"
39
- end
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."
43
- end
18
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
19
+ pool.add_serialized_file(descriptor_data)
44
20
 
45
21
  module Google
46
22
  module Cloud
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-private_catalog-v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -88,7 +88,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
88
88
  requirements:
89
89
  - - ">="
90
90
  - !ruby/object:Gem::Version
91
- version: '3.1'
91
+ version: '3.2'
92
92
  required_rubygems_version: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - ">="