google-cloud-recommender 0.1.2 → 1.0.1

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: ecd7582ba37b4e477c3d3b652167de95a4ee1e0db39720b95cf4784dee1dc6c3
4
- data.tar.gz: 18754cd08ca4d156ca44090dba06c4bca439c6c1c588d6d361a47586a07ecff3
3
+ metadata.gz: 57f81255697ebb7401cb1cbfde5a9cf23e127c885dc93420ed82d55ab3d83b23
4
+ data.tar.gz: da66f0c876b0a7c391e51d590dfc2183bea29539d22ed948e83eab41771f02bd
5
5
  SHA512:
6
- metadata.gz: c1774aeb0b374274cb04d8ac269952885e06eb0be13d871611faa9657c5521672c4e9db98e49a3acffd851c5eb04804509400be9343df3718531a7c1422d65c0
7
- data.tar.gz: 7df2bb17bfb3cbc4a6fa25c6ba6e16113377a41eded3ba891ae86d58a5f5873129ca517b77c93efba3e0e90cf54275509bf305eba1194889790489a8921945a3
6
+ metadata.gz: 9009bef5c9364608cb454e2770d280d7784ecc94b146227b5e2432989afbe66c2e28b0772bd839d2706da085a9c7d9a3f95c8ea3c3c6840ac508387ad70fbd36
7
+ data.tar.gz: b7015e65626e77b13829c43f82ae17cc7a133e1515d9654f1b00e0c37ac3de82763c40969c1b7231740b73c86005b95b0830c108bcb1c82a4086a00875805923
@@ -64,7 +64,7 @@ containers where writing files is difficult or not encouraged.
64
64
 
65
65
  The environment variables that google-cloud-recommender
66
66
  checks for credentials are configured on the service Credentials class (such as
67
- `Google::Cloud::Recommender::V1::Recommender::Credentials`):
67
+ `::Google::Cloud::Recommender::V1::Recommender::Credentials`):
68
68
 
69
69
  1. `RECOMMENDER_CREDENTIALS` - Path to JSON file, or JSON contents
70
70
  2. `RECOMMENDER_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! :recommender 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/recommender/version"
19
+ require "google/cloud/recommender" unless defined? Google::Cloud::Recommender::VERSION
@@ -16,7 +16,30 @@
16
16
 
17
17
  # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
18
 
19
- require "google-cloud-recommender"
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/recommender/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! :recommender do |config|
32
+ config.add_field! :endpoint, "recommender.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
@@ -34,12 +57,12 @@ module Google
34
57
  #
35
58
  # ## About Recommender
36
59
  #
37
- # Provides recommendations for cloud customers for various categories like
38
- # performance optimization, cost savings, reliability, feature discovery, etc.
39
- # These recommendations are generated automatically based on analysis of user
40
- # resources, configuration and monitoring metrics.
60
+ # Provides insights and recommendations for cloud customers for various
61
+ # categories like performance optimization, cost savings, reliability, feature
62
+ # discovery, etc. Insights and recommendations are generated automatically
63
+ # based on analysis of user resources, configuration and monitoring metrics.
41
64
  #
42
- # @param version [String, Symbol] The API version to connect to. Optional.
65
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
43
66
  # Defaults to `:v1`.
44
67
  # @return [Recommender::Client] A client object for the specified version.
45
68
  #
@@ -68,8 +91,8 @@ module Google
68
91
  # The library version as recorded in instrumentation and logging.
69
92
  # * `interceptors` (*type:* `Array<GRPC::ClientInterceptor>`) -
70
93
  # An array of interceptors that are run before calls are executed.
71
- # * `timeout` (*type:* `Integer`) -
72
- # Default timeout in milliseconds.
94
+ # * `timeout` (*type:* `Numeric`) -
95
+ # Default timeout in seconds.
73
96
  # * `metadata` (*type:* `Hash{Symbol=>String}`) -
74
97
  # Additional gRPC headers to be sent with the call.
75
98
  # * `retry_policy` (*type:* `Hash`) -
@@ -80,13 +103,16 @@ module Google
80
103
  # * `:retry_codes` (*type:* `Array<String>`) -
81
104
  # The error codes that should trigger a retry.
82
105
  #
83
- # @return [Google::Cloud::Config] The default configuration used by this library
106
+ # @return [::Google::Cloud::Config] The default configuration used by this library
84
107
  #
85
108
  def self.configure
86
- yield Google::Cloud.configure.recommender if block_given?
109
+ yield ::Google::Cloud.configure.recommender if block_given?
87
110
 
88
- Google::Cloud.configure.recommender
111
+ ::Google::Cloud.configure.recommender
89
112
  end
90
113
  end
91
114
  end
92
115
  end
116
+
117
+ helper_path = ::File.join __dir__, "recommender", "helpers.rb"
118
+ require "google/cloud/recommender/helpers" if ::File.file? helper_path
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Recommender
19
- VERSION = "0.1.2".freeze
19
+ VERSION = "1.0.1".freeze
20
20
  end
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-recommender
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
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-25 00:00:00.000000000 Z
11
+ date: 2021-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-cloud-core
@@ -38,20 +38,6 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0.1'
41
- - !ruby/object:Gem::Dependency
42
- name: autotest-suffix
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '1.1'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '1.1'
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
@@ -197,7 +183,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
197
183
  - !ruby/object:Gem::Version
198
184
  version: '0'
199
185
  requirements: []
200
- rubygems_version: 3.0.6
186
+ rubygems_version: 3.2.6
201
187
  signing_key:
202
188
  specification_version: 4
203
189
  summary: API Client library for the Recommender API