google-cloud-ids-v1 2.3.0 → 2.4.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: 7e09973a2ea03c0fd122233f776fc748c668aba11e9b6194c1ef3bc35b35ff41
4
- data.tar.gz: e2250dc25f2039bd57744605995ef8c9c1c178beb08303a39fdd15e9a3a836e8
3
+ metadata.gz: 2f2dea6faba43d7cd99b0732d9d31ed6554e9bdf7d2f05aab88cf21b68ed1a48
4
+ data.tar.gz: 77f9f0fe82c6387def8dcac7399592bfe60980f96b44d80bd3146272f47756e9
5
5
  SHA512:
6
- metadata.gz: fe4a3865d9de4ffe77f4088145000f81e94ad3073b5a9717623f311f573ddd4ffecc91fc6a8774912bc6eabe9c7e0f270a78bcd87fd12f42f3aa6b45033e9abb
7
- data.tar.gz: 46970dbe685171c3c035d746fa9993d8aa096f1c72425ae6b431e0fd4b2c5fb9176f5f109146beb505a944d66c034c8dd695ffb83139f03a8e6af955da9abe36
6
+ metadata.gz: f1e5f7844c58f2dede2cad36962864e169ac770a6457330525c67dc7e86df7f5aba56701c0fcf757ac5e21b48d10a788be08befd94040be955c7955499e21b2f
7
+ data.tar.gz: fbb8cb3eb23acdd2e7f0cc78a9dadc055d63b717b7c7b2ba184b88d5c63b2e03f35cb0ee19ae992e327879f3e05addcc4983fa348dbc5cd2004d20592cff43fa
@@ -663,8 +663,6 @@ module Google
663
663
  # @return [::String,nil]
664
664
  # @!attribute [rw] credentials
665
665
  # Credentials to send with calls. You may provide any of the following types:
666
- # * (`String`) The path to a service account key file in JSON format
667
- # * (`Hash`) A service account key as a Hash
668
666
  # * (`Google::Auth::Credentials`) A googleauth credentials object
669
667
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
670
668
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -673,7 +671,26 @@ module Google
673
671
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
674
672
  # * (`nil`) indicating no credentials
675
673
  #
676
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
674
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
675
+ # is deprecated. Providing an unvalidated credential configuration to
676
+ # Google APIs can compromise the security of your systems and data.
677
+ #
678
+ # @example
679
+ #
680
+ # # The recommended way to provide credentials is to use the `make_creds` method
681
+ # # on the appropriate credentials class for your environment.
682
+ #
683
+ # require "googleauth"
684
+ #
685
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
686
+ # json_key_io: ::File.open("/path/to/keyfile.json")
687
+ # )
688
+ #
689
+ # client = ::Google::Cloud::IDS::V1::IDS::Client.new do |config|
690
+ # config.credentials = credentials
691
+ # end
692
+ #
693
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
677
694
  # external source for authentication to Google Cloud, you must validate it before
678
695
  # providing it to a Google API client library. Providing an unvalidated credential
679
696
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -642,8 +642,6 @@ module Google
642
642
  # @return [::String,nil]
643
643
  # @!attribute [rw] credentials
644
644
  # Credentials to send with calls. You may provide any of the following types:
645
- # * (`String`) The path to a service account key file in JSON format
646
- # * (`Hash`) A service account key as a Hash
647
645
  # * (`Google::Auth::Credentials`) A googleauth credentials object
648
646
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
649
647
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -652,7 +650,26 @@ module Google
652
650
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
653
651
  # * (`nil`) indicating no credentials
654
652
  #
655
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
653
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
654
+ # is deprecated. Providing an unvalidated credential configuration to
655
+ # Google APIs can compromise the security of your systems and data.
656
+ #
657
+ # @example
658
+ #
659
+ # # The recommended way to provide credentials is to use the `make_creds` method
660
+ # # on the appropriate credentials class for your environment.
661
+ #
662
+ # require "googleauth"
663
+ #
664
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
665
+ # json_key_io: ::File.open("/path/to/keyfile.json")
666
+ # )
667
+ #
668
+ # client = ::Google::Longrunning::Operations::Client.new do |config|
669
+ # config.credentials = credentials
670
+ # end
671
+ #
672
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
656
673
  # external source for authentication to Google Cloud, you must validate it before
657
674
  # providing it to a Google API client library. Providing an unvalidated credential
658
675
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -14,30 +14,8 @@ require 'google/protobuf/timestamp_pb'
14
14
 
15
15
  descriptor_data = "\n\x1dgoogle/cloud/ids/v1/ids.proto\x12\x13google.cloud.ids.v1\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\x1fgoogle/protobuf/timestamp.proto\"\xfa\x05\n\x08\x45ndpoint\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x39\n\x06labels\x18\x04 \x03(\x0b\x32).google.cloud.ids.v1.Endpoint.LabelsEntry\x12\x14\n\x07network\x18\x05 \x01(\tB\x03\xe0\x41\x02\x12%\n\x18\x65ndpoint_forwarding_rule\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0b\x65ndpoint_ip\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x0b\x64\x65scription\x18\x08 \x01(\t\x12=\n\x08severity\x18\t \x01(\x0e\x32&.google.cloud.ids.v1.Endpoint.SeverityB\x03\xe0\x41\x02\x12\x37\n\x05state\x18\x0c \x01(\x0e\x32#.google.cloud.ids.v1.Endpoint.StateB\x03\xe0\x41\x03\x12\x14\n\x0ctraffic_logs\x18\r \x01(\x08\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"d\n\x08Severity\x12\x18\n\x14SEVERITY_UNSPECIFIED\x10\x00\x12\x11\n\rINFORMATIONAL\x10\x01\x12\x07\n\x03LOW\x10\x02\x12\n\n\x06MEDIUM\x10\x03\x12\x08\n\x04HIGH\x10\x04\x12\x0c\n\x08\x43RITICAL\x10\x05\"E\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\t\n\x05READY\x10\x02\x12\x0c\n\x08\x44\x45LETING\x10\x03:^\xea\x41[\n\x1bids.googleapis.com/Endpoint\x12<projects/{project}/locations/{location}/endpoints/{endpoint}\"\xa8\x01\n\x14ListEndpointsRequest\x12\x33\n\x06parent\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\x12\x1bids.googleapis.com/Endpoint\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"w\n\x15ListEndpointsResponse\x12\x30\n\tendpoints\x18\x01 \x03(\x0b\x32\x1d.google.cloud.ids.v1.Endpoint\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"G\n\x12GetEndpointRequest\x12\x31\n\x04name\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1bids.googleapis.com/Endpoint\"\xb0\x01\n\x15\x43reateEndpointRequest\x12\x33\n\x06parent\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\x12\x1bids.googleapis.com/Endpoint\x12\x18\n\x0b\x65ndpoint_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x34\n\x08\x65ndpoint\x18\x03 \x01(\x0b\x32\x1d.google.cloud.ids.v1.EndpointB\x03\xe0\x41\x02\x12\x12\n\nrequest_id\x18\x04 \x01(\t\"^\n\x15\x44\x65leteEndpointRequest\x12\x31\n\x04name\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1bids.googleapis.com/Endpoint\x12\x12\n\nrequest_id\x18\x02 \x01(\t\"\x80\x02\n\x11OperationMetadata\x12\x34\n\x0b\x63reate_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\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04verb\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0estatus_message\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16requested_cancellation\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x61pi_version\x18\x07 \x01(\tB\x03\xe0\x41\x03\x32\xb2\x06\n\x03IDS\x12\xa6\x01\n\rListEndpoints\x12).google.cloud.ids.v1.ListEndpointsRequest\x1a*.google.cloud.ids.v1.ListEndpointsResponse\">\xda\x41\x06parent\x82\xd3\xe4\x93\x02/\x12-/v1/{parent=projects/*/locations/*}/endpoints\x12\x93\x01\n\x0bGetEndpoint\x12\'.google.cloud.ids.v1.GetEndpointRequest\x1a\x1d.google.cloud.ids.v1.Endpoint\"<\xda\x41\x04name\x82\xd3\xe4\x93\x02/\x12-/v1/{name=projects/*/locations/*/endpoints/*}\x12\xda\x01\n\x0e\x43reateEndpoint\x12*.google.cloud.ids.v1.CreateEndpointRequest\x1a\x1d.google.longrunning.Operation\"}\xca\x41\x1d\n\x08\x45ndpoint\x12\x11OperationMetadata\xda\x41\x1bparent,endpoint,endpoint_id\x82\xd3\xe4\x93\x02\x39\"-/v1/{parent=projects/*/locations/*}/endpoints:\x08\x65ndpoint\x12\xc6\x01\n\x0e\x44\x65leteEndpoint\x12*.google.cloud.ids.v1.DeleteEndpointRequest\x1a\x1d.google.longrunning.Operation\"i\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02/*-/v1/{name=projects/*/locations/*/endpoints/*}\x1a\x46\xca\x41\x12ids.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBi\n\x17\x63om.google.cloud.ids.v1B\x08IdsProtoP\x01Z)cloud.google.com/go/ids/apiv1/idspb;idspb\xea\x02\x16Google::Cloud::IDS::V1b\x06proto3"
16
16
 
17
- pool = Google::Protobuf::DescriptorPool.generated_pool
18
-
19
- begin
20
- pool.add_serialized_file(descriptor_data)
21
- rescue TypeError
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
- ]
32
- imports.each do |type_name, expected_filename|
33
- import_file = pool.lookup(type_name).file_descriptor
34
- if import_file.name != expected_filename
35
- warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
36
- end
37
- end
38
- warn "Each proto file must use a consistent fully-qualified name."
39
- warn "This will become an error in the next major version."
40
- end
17
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
18
+ pool.add_serialized_file(descriptor_data)
41
19
 
42
20
  module Google
43
21
  module Cloud
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module IDS
23
23
  module V1
24
- VERSION = "2.3.0"
24
+ VERSION = "2.4.0"
25
25
  end
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-ids-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -93,7 +93,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
- version: '3.1'
96
+ version: '3.2'
97
97
  required_rubygems_version: !ruby/object:Gem::Requirement
98
98
  requirements:
99
99
  - - ">="