google-cloud-asset-v1beta1 0.1.4 → 0.2.4

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: aeb79cc043cbaf7f46caa3776dc80b006eb46b3c7a83f81b8547f40e13eeabd3
4
- data.tar.gz: c1445bdaf0e7ec17ed2ded4591678b48615a8ca90fadd95cb10ef32bb07f8dab
3
+ metadata.gz: 5c19e46d69aad3d2ef67a3456405e8f60dc7f4d52d0f1c0541f6bf5f76f3750a
4
+ data.tar.gz: aeb207c7bd531999e463a7cc883b92500cc737ecd0971368fb01fcb67fe2960b
5
5
  SHA512:
6
- metadata.gz: 473e35092c77c6c98851d05c3ec64d22207b2c3fcddbb3aa046e868dc41cd644a136081e2a1f163b062f91e1bc8e565788918b717cad60ea0f4f785a4f621ed5
7
- data.tar.gz: 88791bd9d54b30752ce4f95326f0ad874fcb4f622288c9c6d41f7b0f05b1806f657d3c06a3371edaf0f8de57b19ca323b26bc2fd533125e43a031292c86ebc9c
6
+ metadata.gz: 822b40598dcb09f6835b4f0d5f79c144c187955f144988645bce3b06908a3d740f416f7dfa98dd6ccd92357f58a9f03f99f16d6c1b74f94064cf888a5bcc076a
7
+ data.tar.gz: af40f6d0edf68aa3d7fd8e64d3cd0ed4343a121c28cf99b2b9928f2bc378b229a3c4791e383e9488b5141410b19cd4d7ab624b428cdc0c7f426bc9f9b1efa647
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
@@ -138,7 +138,8 @@ module Google
138
138
  if credentials.is_a?(String) || credentials.is_a?(Hash)
139
139
  credentials = Credentials.new credentials, scope: @config.scope
140
140
  end
141
- @quota_project_id = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
141
+ @quota_project_id = @config.quota_project
142
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
142
143
 
143
144
  @operations_client = Operations.new do |config|
144
145
  config.credentials = credentials
@@ -423,24 +424,28 @@ module Google
423
424
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
424
425
  # trigger a retry.
425
426
  # @return [::Hash]
427
+ # @!attribute [rw] quota_project
428
+ # A separate project against which to charge quota.
429
+ # @return [::String]
426
430
  #
427
431
  class Configuration
428
432
  extend ::Gapic::Config
429
433
 
430
- config_attr :endpoint, "cloudasset.googleapis.com", String
431
- config_attr :credentials, nil do |value|
434
+ config_attr :endpoint, "cloudasset.googleapis.com", ::String
435
+ config_attr :credentials, nil do |value|
432
436
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
433
437
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
434
438
  allowed.any? { |klass| klass === value }
435
439
  end
436
- config_attr :scope, nil, ::String, ::Array, nil
437
- config_attr :lib_name, nil, ::String, nil
438
- config_attr :lib_version, nil, ::String, nil
439
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
440
- config_attr :interceptors, nil, ::Array, nil
441
- config_attr :timeout, nil, ::Numeric, nil
442
- config_attr :metadata, nil, ::Hash, nil
443
- config_attr :retry_policy, nil, ::Hash, Proc, nil
440
+ config_attr :scope, nil, ::String, ::Array, nil
441
+ config_attr :lib_name, nil, ::String, nil
442
+ config_attr :lib_version, nil, ::String, nil
443
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
444
+ config_attr :interceptors, nil, ::Array, nil
445
+ config_attr :timeout, nil, ::Numeric, nil
446
+ config_attr :metadata, nil, ::Hash, nil
447
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
448
+ config_attr :quota_project, nil, ::String, nil
444
449
 
445
450
  # @private
446
451
  def initialize parent_config = nil
@@ -456,7 +461,7 @@ module Google
456
461
  def rpcs
457
462
  @rpcs ||= begin
458
463
  parent_rpcs = nil
459
- 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)
460
465
  Rpcs.new parent_rpcs
461
466
  end
462
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,
@@ -464,24 +466,28 @@ module Google
464
466
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
465
467
  # trigger a retry.
466
468
  # @return [::Hash]
469
+ # @!attribute [rw] quota_project
470
+ # A separate project against which to charge quota.
471
+ # @return [::String]
467
472
  #
468
473
  class Configuration
469
474
  extend ::Gapic::Config
470
475
 
471
- config_attr :endpoint, "cloudasset.googleapis.com", String
472
- config_attr :credentials, nil do |value|
476
+ config_attr :endpoint, "cloudasset.googleapis.com", ::String
477
+ config_attr :credentials, nil do |value|
473
478
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
474
479
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
475
480
  allowed.any? { |klass| klass === value }
476
481
  end
477
- config_attr :scope, nil, ::String, ::Array, nil
478
- config_attr :lib_name, nil, ::String, nil
479
- config_attr :lib_version, nil, ::String, nil
480
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
481
- config_attr :interceptors, nil, ::Array, nil
482
- config_attr :timeout, nil, ::Numeric, nil
483
- config_attr :metadata, nil, ::Hash, nil
484
- config_attr :retry_policy, nil, ::Hash, Proc, nil
482
+ config_attr :scope, nil, ::String, ::Array, nil
483
+ config_attr :lib_name, nil, ::String, nil
484
+ config_attr :lib_version, nil, ::String, nil
485
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
486
+ config_attr :interceptors, nil, ::Array, nil
487
+ config_attr :timeout, nil, ::Numeric, nil
488
+ config_attr :metadata, nil, ::Hash, nil
489
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
490
+ config_attr :quota_project, nil, ::String, nil
485
491
 
486
492
  # @private
487
493
  def initialize parent_config = nil
@@ -497,7 +503,7 @@ module Google
497
503
  def rpcs
498
504
  @rpcs ||= begin
499
505
  parent_rpcs = nil
500
- 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)
501
507
  Rpcs.new parent_rpcs
502
508
  end
503
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.1.4"
24
+ VERSION = "0.2.4"
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.1.4
4
+ version: 0.2.4
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-05 00:00:00.000000000 Z
11
+ date: 2020-08-06 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
@@ -78,14 +78,42 @@ dependencies:
78
78
  requirements:
79
79
  - - "~>"
80
80
  - !ruby/object:Gem::Version
81
- version: '5.10'
81
+ version: '5.14'
82
82
  type: :development
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
86
  - - "~>"
87
87
  - !ruby/object:Gem::Version
88
- version: '5.10'
88
+ version: '5.14'
89
+ - !ruby/object:Gem::Dependency
90
+ name: minitest-focus
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - "~>"
94
+ - !ruby/object:Gem::Version
95
+ version: '1.1'
96
+ type: :development
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - "~>"
101
+ - !ruby/object:Gem::Version
102
+ version: '1.1'
103
+ - !ruby/object:Gem::Dependency
104
+ name: minitest-rg
105
+ requirement: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - "~>"
108
+ - !ruby/object:Gem::Version
109
+ version: '5.2'
110
+ type: :development
111
+ prerelease: false
112
+ version_requirements: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - "~>"
115
+ - !ruby/object:Gem::Version
116
+ version: '5.2'
89
117
  - !ruby/object:Gem::Dependency
90
118
  name: rake
91
119
  requirement: !ruby/object:Gem::Requirement
@@ -163,7 +191,6 @@ files:
163
191
  - lib/google/cloud/asset/v1beta1/asset_service_services_pb.rb
164
192
  - lib/google/cloud/asset/v1beta1/assets_pb.rb
165
193
  - lib/google/cloud/asset/v1beta1/version.rb
166
- - lib/google/cloud/common_resources_pb.rb
167
194
  - lib/google/cloud/orgpolicy/v1/orgpolicy_pb.rb
168
195
  - proto_docs/README.md
169
196
  - proto_docs/google/api/field_behavior.rb
@@ -198,7 +225,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
198
225
  - !ruby/object:Gem::Version
199
226
  version: '0'
200
227
  requirements: []
201
- rubygems_version: 3.0.6
228
+ rubygems_version: 3.1.3
202
229
  signing_key:
203
230
  specification_version: 4
204
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