google-cloud-asset-v1beta1 0.2.0 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e86b43959e9cc32edfe8edbc1c5f54d59d43adbe0d03a880a427f0b2d5e7f781
4
- data.tar.gz: 9840b2432b11cb3b4f4e691dc3e0ec3e55872a7c18172b75c0e1e5dfa0f0fe6b
3
+ metadata.gz: f7de46a02201c7d0232a694db7fc617be5d41f29bd5ed4ab5ca0554b872a90a2
4
+ data.tar.gz: 9eb14d5e86451b8ab72cb2fefe2642f40cb7c3f1a6b59cc9e619e24475c8b72f
5
5
  SHA512:
6
- metadata.gz: 3d3a8d3d58f64d2dd3f4d062340c3901db833b9b30c43d7baf036416b145e64c0cac5e82cd77144873c1d8161a46a40f1c8bb7c7f449dfcd91cd737a3e20647d
7
- data.tar.gz: be6aab3275e5c4757c8b57fc2048d90b4b0dd4088f42af4f728afd5a41fbd4a94bbc780108bcd303dd06f8dc93ab233c06dd50512350f269fb6f4570149c5baf
6
+ metadata.gz: 942c7b6116a3dbf6f24f4571231a1114a4c0cec4bb918e6501f3f3ff5b1abf0dbdfa768e3dd53f8139e582322708a36f6c1f31ee9f24d5c7dd802d5b9934b448
7
+ data.tar.gz: 7dd2c99443b938edd8833d616f667a81d6aee5fa65d6c084dc2c3a96f9cb4bdc679e44bedaa6b802b003a6c423b97e870637d0eda82eff929f59fbaa47b772a8
data/README.md CHANGED
@@ -18,6 +18,7 @@ In order to use this library, you first need to go through the following steps:
18
18
 
19
19
  1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
20
20
  1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
21
+ 1. [Enable the API.](https://console.cloud.google.com/apis/library/cloudasset.googleapis.com)
21
22
  1. {file:AUTHENTICATION.md Set up authentication.}
22
23
 
23
24
  ## Quick Start
@@ -33,6 +34,9 @@ response = client.export_assets request
33
34
  View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-asset-v1beta1/latest)
34
35
  for class and method documentation.
35
36
 
37
+ See also the [Product Documentation](https://cloud.google.com/asset-inventory/)
38
+ for general usage information.
39
+
36
40
  ## Enabling Logging
37
41
 
38
42
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
@@ -70,7 +70,7 @@ module Google
70
70
  initial_delay: 0.1,
71
71
  max_delay: 60.0,
72
72
  multiplier: 1.3,
73
- retry_codes: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
73
+ retry_codes: [4, 14]
74
74
  }
75
75
 
76
76
  default_config
@@ -433,7 +433,7 @@ module Google
433
433
 
434
434
  config_attr :endpoint, "cloudasset.googleapis.com", ::String
435
435
  config_attr :credentials, nil do |value|
436
- allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
436
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
437
437
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
438
438
  allowed.any? { |klass| klass === value }
439
439
  end
@@ -461,7 +461,7 @@ module Google
461
461
  def rpcs
462
462
  @rpcs ||= begin
463
463
  parent_rpcs = nil
464
- parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to? :rpcs
464
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
465
465
  Rpcs.new parent_rpcs
466
466
  end
467
467
  end
@@ -85,6 +85,8 @@ module Google
85
85
  if credentials.is_a?(String) || credentials.is_a?(Hash)
86
86
  credentials = Credentials.new credentials, scope: @config.scope
87
87
  end
88
+ @quota_project_id = @config.quota_project
89
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
88
90
 
89
91
  @operations_stub = ::Gapic::ServiceStub.new(
90
92
  ::Google::Longrunning::Operations::Stub,
@@ -473,7 +475,7 @@ module Google
473
475
 
474
476
  config_attr :endpoint, "cloudasset.googleapis.com", ::String
475
477
  config_attr :credentials, nil do |value|
476
- allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
478
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
477
479
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
478
480
  allowed.any? { |klass| klass === value }
479
481
  end
@@ -501,7 +503,7 @@ module Google
501
503
  def rpcs
502
504
  @rpcs ||= begin
503
505
  parent_rpcs = nil
504
- parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to? :rpcs
506
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
505
507
  Rpcs.new parent_rpcs
506
508
  end
507
509
  end
@@ -39,7 +39,7 @@ module Google
39
39
  # This API implements the
40
40
  # [google.longrunning.Operation][google.longrunning.Operation] API allowing
41
41
  # you to keep track of the export.
42
- rpc :ExportAssets, ExportAssetsRequest, Google::Longrunning::Operation
42
+ rpc :ExportAssets, Google::Cloud::Asset::V1beta1::ExportAssetsRequest, Google::Longrunning::Operation
43
43
  # Batch gets the update history of assets that overlap a time window.
44
44
  # For RESOURCE content, this API outputs history with asset in both
45
45
  # non-delete or deleted status.
@@ -47,7 +47,7 @@ module Google
47
47
  # attached IAM POLICY both exist. This can create gaps in the output history.
48
48
  # If a specified asset does not exist, this API returns an INVALID_ARGUMENT
49
49
  # error.
50
- rpc :BatchGetAssetsHistory, BatchGetAssetsHistoryRequest, BatchGetAssetsHistoryResponse
50
+ rpc :BatchGetAssetsHistory, Google::Cloud::Asset::V1beta1::BatchGetAssetsHistoryRequest, Google::Cloud::Asset::V1beta1::BatchGetAssetsHistoryResponse
51
51
  end
52
52
 
53
53
  Stub = Service.rpc_stub_class
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Asset
23
23
  module V1beta1
24
- VERSION = "0.2.0"
24
+ VERSION = "0.2.5"
25
25
  end
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-asset-v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-20 00:00:00.000000000 Z
11
+ date: 2020-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.2'
19
+ version: '0.3'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.2'
26
+ version: '0.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: google-cloud-errors
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -191,7 +191,6 @@ files:
191
191
  - lib/google/cloud/asset/v1beta1/asset_service_services_pb.rb
192
192
  - lib/google/cloud/asset/v1beta1/assets_pb.rb
193
193
  - lib/google/cloud/asset/v1beta1/version.rb
194
- - lib/google/cloud/common_resources_pb.rb
195
194
  - lib/google/cloud/orgpolicy/v1/orgpolicy_pb.rb
196
195
  - proto_docs/README.md
197
196
  - proto_docs/google/api/field_behavior.rb
@@ -226,7 +225,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
226
225
  - !ruby/object:Gem::Version
227
226
  version: '0'
228
227
  requirements: []
229
- rubygems_version: 3.0.6
228
+ rubygems_version: 3.1.3
230
229
  signing_key:
231
230
  specification_version: 4
232
231
  summary: API Client library for the Cloud Asset V1beta1 API
@@ -1,15 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/cloud/common_resources.proto
3
-
4
- require 'google/protobuf'
5
-
6
- require 'google/api/resource_pb'
7
- Google::Protobuf::DescriptorPool.generated_pool.build do
8
- add_file("google/cloud/common_resources.proto", :syntax => :proto3) do
9
- end
10
- end
11
-
12
- module Google
13
- module Cloud
14
- end
15
- end