google-cloud-access_approval 0.1.0 → 1.0.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: 94bae3246abef90d23610995b2602e5d852f486bbda09ff94cf5cc130637ac8f
4
- data.tar.gz: 7c42dd7ac61a16c7a17375c174ae0ed8c4c1bf253c8446e2ea0c0adbcd652a7c
3
+ metadata.gz: ebd1d412060aaf5671b22a56a8df5e9783205225508f34c9fbdc18cd897b2800
4
+ data.tar.gz: 8c85ad31fd69367190fd9a2a4bd41f22f8c9154e609792a35d7c47ff3bb5d568
5
5
  SHA512:
6
- metadata.gz: 39dadb81f035fffb2a53367405b2c8b8244c51a9e09b14c674dfaaa3ddfbf1ff20b58ebd0391607cd314d596569be497ddd1f3903111d41301686cfaa2305bb9
7
- data.tar.gz: cb783734c6361259e97561c29adea7c0e9cfd5b2f32c956fd57cf98aea24f0057e17d9280dee1bfcb8162e917257c2ed6fba11c2bac8ce838ea4e1595fe34c80
6
+ metadata.gz: 1ba4c17af97b553e47f8aea168186295535bd66fceecb7ebed9d17608896378fbec67bc9bb43b07b39a261e7cd3d8b6ff98e12e70c84b7cbf4b930e959fd146d
7
+ data.tar.gz: 1c8f25bb38103b0bd698589ff1648aaad1b4dcca8968ec9e817cd4851c4fea3f8fd5375025dd645ff04e9889b30af16a55e6af4b44531ef1d5a3ad2639026ff4
@@ -64,7 +64,7 @@ containers where writing files is difficult or not encouraged.
64
64
 
65
65
  The environment variables that google-cloud-access_approval
66
66
  checks for credentials are configured on the service Credentials class (such as
67
- `Google::Cloud::AccessApproval::V1::AccessApproval::Credentials`):
67
+ `::Google::Cloud::AccessApproval::V1::AccessApproval::Credentials`):
68
68
 
69
69
  1. `ACCESS_APPROVAL_CREDENTIALS` - Path to JSON file, or JSON contents
70
70
  2. `ACCESS_APPROVAL_KEYFILE` - Path to JSON file, or JSON contents
data/README.md CHANGED
@@ -38,7 +38,7 @@ In order to use this library, you first need to go through the following steps:
38
38
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
39
39
  The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
40
40
  or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
41
- that will write logs to [Stackdriver Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
41
+ that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
42
42
  and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
43
43
 
44
44
  Configuring a Ruby stdlib logger:
@@ -16,20 +16,4 @@
16
16
 
17
17
  # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
18
 
19
- gem "google-cloud-core"
20
- require "google/cloud" unless defined? Google::Cloud.new
21
- require "google/cloud/config"
22
- require "googleauth"
23
-
24
- # Set the default configuration
25
- Google::Cloud.configure.add_config! :access_approval do |config|
26
- config.add_field! :credentials, nil, match: [String, Hash, Google::Auth::Credentials]
27
- config.add_field! :lib_name, nil, match: String
28
- config.add_field! :lib_version, nil, match: String
29
- config.add_field! :interceptors, nil, match: Array
30
- config.add_field! :timeout, nil, match: Numeric
31
- config.add_field! :metadata, nil, match: Hash
32
- config.add_field! :retry_policy, nil, match: [Hash, Proc]
33
- end
34
-
35
- require "google/cloud/access_approval/version"
19
+ require "google/cloud/access_approval" unless defined? Google::Cloud::AccessApproval::VERSION
@@ -16,7 +16,30 @@
16
16
 
17
17
  # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
18
 
19
- require "google-cloud-access_approval"
19
+ # Require this file early so that the version constant gets defined before
20
+ # requiring "google/cloud". This is because google-cloud-core will load the
21
+ # entrypoint (gem name) file, which in turn re-requires this file (hence
22
+ # causing a require cycle) unless the version constant is already defined.
23
+ require "google/cloud/access_approval/version"
24
+
25
+ require "googleauth"
26
+ gem "google-cloud-core"
27
+ require "google/cloud" unless defined? ::Google::Cloud.new
28
+ require "google/cloud/config"
29
+
30
+ # Set the default configuration
31
+ ::Google::Cloud.configure.add_config! :access_approval do |config|
32
+ config.add_field! :endpoint, "accessapproval.googleapis.com", match: ::String
33
+ config.add_field! :credentials, nil, match: [::String, ::Hash, ::Google::Auth::Credentials]
34
+ config.add_field! :scope, nil, match: [::Array, ::String]
35
+ config.add_field! :lib_name, nil, match: ::String
36
+ config.add_field! :lib_version, nil, match: ::String
37
+ config.add_field! :interceptors, nil, match: ::Array
38
+ config.add_field! :timeout, nil, match: ::Numeric
39
+ config.add_field! :metadata, nil, match: ::Hash
40
+ config.add_field! :retry_policy, nil, match: [::Hash, ::Proc]
41
+ config.add_field! :quota_project, nil, match: ::String
42
+ end
20
43
 
21
44
  module Google
22
45
  module Cloud
@@ -68,7 +91,7 @@ module Google
68
91
  #
69
92
  # If a request is not approved or dismissed, we call it pending.
70
93
  #
71
- # @param version [String, Symbol] The API version to connect to. Optional.
94
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
72
95
  # Defaults to `:v1`.
73
96
  # @return [AccessApproval::Client] A client object for the specified version.
74
97
  #
@@ -97,8 +120,8 @@ module Google
97
120
  # The library version as recorded in instrumentation and logging.
98
121
  # * `interceptors` (*type:* `Array<GRPC::ClientInterceptor>`) -
99
122
  # An array of interceptors that are run before calls are executed.
100
- # * `timeout` (*type:* `Integer`) -
101
- # Default timeout in milliseconds.
123
+ # * `timeout` (*type:* `Numeric`) -
124
+ # Default timeout in seconds.
102
125
  # * `metadata` (*type:* `Hash{Symbol=>String}`) -
103
126
  # Additional gRPC headers to be sent with the call.
104
127
  # * `retry_policy` (*type:* `Hash`) -
@@ -109,13 +132,16 @@ module Google
109
132
  # * `:retry_codes` (*type:* `Array<String>`) -
110
133
  # The error codes that should trigger a retry.
111
134
  #
112
- # @return [Google::Cloud::Config] The default configuration used by this library
135
+ # @return [::Google::Cloud::Config] The default configuration used by this library
113
136
  #
114
137
  def self.configure
115
- yield Google::Cloud.configure.access_approval if block_given?
138
+ yield ::Google::Cloud.configure.access_approval if block_given?
116
139
 
117
- Google::Cloud.configure.access_approval
140
+ ::Google::Cloud.configure.access_approval
118
141
  end
119
142
  end
120
143
  end
121
144
  end
145
+
146
+ helper_path = ::File.join __dir__, "access_approval", "helpers.rb"
147
+ require "google/cloud/access_approval/helpers" if ::File.file? helper_path
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module AccessApproval
23
- VERSION = "0.1.0"
23
+ VERSION = "1.0.1"
24
24
  end
25
25
  end
26
26
  end
metadata CHANGED
@@ -1,29 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-access_approval
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 1.0.1
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-03-30 00:00:00.000000000 Z
11
+ date: 2021-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: google-cloud-core
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '1.5'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: '1.5'
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: google-cloud-access_approval-v1
29
15
  requirement: !ruby/object:Gem::Requirement
@@ -39,19 +25,19 @@ dependencies:
39
25
  - !ruby/object:Gem::Version
40
26
  version: '0.0'
41
27
  - !ruby/object:Gem::Dependency
42
- name: autotest-suffix
28
+ name: google-cloud-core
43
29
  requirement: !ruby/object:Gem::Requirement
44
30
  requirements:
45
31
  - - "~>"
46
32
  - !ruby/object:Gem::Version
47
- version: '1.1'
48
- type: :development
33
+ version: '1.5'
34
+ type: :runtime
49
35
  prerelease: false
50
36
  version_requirements: !ruby/object:Gem::Requirement
51
37
  requirements:
52
38
  - - "~>"
53
39
  - !ruby/object:Gem::Version
54
- version: '1.1'
40
+ version: '1.5'
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: google-style
57
43
  requirement: !ruby/object:Gem::Requirement
@@ -72,56 +58,56 @@ dependencies:
72
58
  requirements:
73
59
  - - "~>"
74
60
  - !ruby/object:Gem::Version
75
- version: '5.10'
61
+ version: '5.14'
76
62
  type: :development
77
63
  prerelease: false
78
64
  version_requirements: !ruby/object:Gem::Requirement
79
65
  requirements:
80
66
  - - "~>"
81
67
  - !ruby/object:Gem::Version
82
- version: '5.10'
68
+ version: '5.14'
83
69
  - !ruby/object:Gem::Dependency
84
- name: minitest-autotest
70
+ name: minitest-focus
85
71
  requirement: !ruby/object:Gem::Requirement
86
72
  requirements:
87
73
  - - "~>"
88
74
  - !ruby/object:Gem::Version
89
- version: '1.0'
75
+ version: '1.1'
90
76
  type: :development
91
77
  prerelease: false
92
78
  version_requirements: !ruby/object:Gem::Requirement
93
79
  requirements:
94
80
  - - "~>"
95
81
  - !ruby/object:Gem::Version
96
- version: '1.0'
82
+ version: '1.1'
97
83
  - !ruby/object:Gem::Dependency
98
- name: minitest-focus
84
+ name: minitest-rg
99
85
  requirement: !ruby/object:Gem::Requirement
100
86
  requirements:
101
87
  - - "~>"
102
88
  - !ruby/object:Gem::Version
103
- version: '1.1'
89
+ version: '5.2'
104
90
  type: :development
105
91
  prerelease: false
106
92
  version_requirements: !ruby/object:Gem::Requirement
107
93
  requirements:
108
94
  - - "~>"
109
95
  - !ruby/object:Gem::Version
110
- version: '1.1'
96
+ version: '5.2'
111
97
  - !ruby/object:Gem::Dependency
112
- name: minitest-rg
98
+ name: rake
113
99
  requirement: !ruby/object:Gem::Requirement
114
100
  requirements:
115
- - - "~>"
101
+ - - ">="
116
102
  - !ruby/object:Gem::Version
117
- version: '5.2'
103
+ version: '12.0'
118
104
  type: :development
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
107
  requirements:
122
- - - "~>"
108
+ - - ">="
123
109
  - !ruby/object:Gem::Version
124
- version: '5.2'
110
+ version: '12.0'
125
111
  - !ruby/object:Gem::Dependency
126
112
  name: redcarpet
127
113
  requirement: !ruby/object:Gem::Requirement
@@ -196,7 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
196
182
  - !ruby/object:Gem::Version
197
183
  version: '0'
198
184
  requirements: []
199
- rubygems_version: 3.0.6
185
+ rubygems_version: 3.2.6
200
186
  signing_key:
201
187
  specification_version: 4
202
188
  summary: API Client library for the Access Approval API