Skip to content

Commit

Permalink
Global GAPIC refresh (googleapis#1804)
Browse files Browse the repository at this point in the history
* Update gogole-api-client dependency
* Refresh Bigtable GAPIC
* Refresh Datastore GAPIC
* Refresh Debugger GAPIC
* Refresh Error Reporting GAPIC
* Refresh Language GAPIC
* Refresh Logging GAPIC
* Refresh Monitoring GAPIC
* Refresh Pub/Sub GAPIC
* Refresh Speech GAPIC
* Refresh Spanner GAPIC
* Refresh Trace GAPIC
* Refresh Video Intelligence GAPIC
* Refresh Vision GAPIC
  • Loading branch information
geigerj authored and blowmage committed Nov 10, 2017
1 parent e275f00 commit e04ff57
Show file tree
Hide file tree
Showing 217 changed files with 10,948 additions and 3,194 deletions.
2 changes: 1 addition & 1 deletion google-cloud-bigquery/google-cloud-bigquery.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Gem::Specification.new do |gem|
gem.required_ruby_version = ">= 2.0.0"

gem.add_dependency "google-cloud-core", "~> 1.0"
gem.add_dependency "google-api-client", "~> 0.14.0"
gem.add_dependency "google-api-client", "~> 0.16.0"
gem.add_dependency "concurrent-ruby", "~> 1.0"

gem.add_development_dependency "minitest", "~> 5.10"
Expand Down
2 changes: 1 addition & 1 deletion google-cloud-bigtable/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ jsondoc/*

# IDE settings
.idea
*.iml
*.iml
5 changes: 1 addition & 4 deletions google-cloud-bigtable/.rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
AllCops:
Exclude:
- "google-cloud-bigtable.gemspec"
- "lib/google/bigtable/**/*"
# TODO(geigerj): Replace this with more specific expressions upon
# GAPIC refresh.
- "lib/google/cloud/**/*"
- "lib/google/**/*"
- "Rakefile"
- "test/**/*"

Expand Down
2 changes: 1 addition & 1 deletion google-cloud-bigtable/.yardopts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@

./lib/**/*.rb
-
README.md
README.md
2 changes: 1 addition & 1 deletion google-cloud-bigtable/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ $ gem install google-cloud-bigtable
to see the full list of Cloud APIs that we cover.

[Client Library Documentation]: https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-bigtable/latest/google/bigtable/v2
[Product Documentation]: https://cloud.google.com/bigtable
[Product Documentation]: https://cloud.google.com/bigtable
3 changes: 2 additions & 1 deletion google-cloud-bigtable/google-cloud-bigtable.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ Gem::Specification.new do |gem|

gem.required_ruby_version = ">= 2.0.0"

gem.add_dependency "google-gax", "~> 0.8.6"
gem.add_dependency "google-gax", "~> 0.9.0"
gem.add_dependency "googleapis-common-protos", "~> 1.3.1"
gem.add_dependency "googleauth", "~> 0.6.1"

gem.add_development_dependency "minitest", "~> 5.10"
gem.add_development_dependency "rubocop", "<= 0.35.1"
Expand Down
4 changes: 2 additions & 2 deletions google-cloud-bigtable/lib/google/cloud/bigtable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ module Bigtable
# The major version of the service to be used. By default :v2
# is used.
# @overload new(version:, credentials:, scopes:, client_config:, timeout:)
# @param credentials [Google::Gax::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
# @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
# Provides the means for authenticating requests made by the client. This parameter can
# be many types.
# A `Google::Gax::Credentials` uses a the properties of its represented keyfile for
# A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
# authenticating requests made by this client.
# A `String` will be treated as the path to the keyfile to be used for the construction of
# credentials for this client.
Expand Down
8 changes: 4 additions & 4 deletions google-cloud-bigtable/lib/google/cloud/bigtable/admin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ module BigtableInstanceAdmin
# The major version of the service to be used. By default :v2
# is used.
# @overload new(version:, credentials:, scopes:, client_config:, timeout:)
# @param credentials [Google::Gax::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
# @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
# Provides the means for authenticating requests made by the client. This parameter can
# be many types.
# A `Google::Gax::Credentials` uses a the properties of its represented keyfile for
# A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
# authenticating requests made by this client.
# A `String` will be treated as the path to the keyfile to be used for the construction of
# credentials for this client.
Expand Down Expand Up @@ -116,10 +116,10 @@ module BigtableTableAdmin
# The major version of the service to be used. By default :v2
# is used.
# @overload new(version:, credentials:, scopes:, client_config:, timeout:)
# @param credentials [Google::Gax::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
# @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
# Provides the means for authenticating requests made by the client. This parameter can
# be many types.
# A `Google::Gax::Credentials` uses a the properties of its represented keyfile for
# A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
# authenticating requests made by this client.
# A `String` will be treated as the path to the keyfile to be used for the construction of
# credentials for this client.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
# See the License for the specific language governing permissions and
# limitations under the License.

require "google/gax"
require "googleauth"

module Google
module Cloud
module Bigtable
module Admin
class Credentials < Google::Gax::Credentials
class Credentials < Google::Auth::Credentials
SCOPE = [
"https://www.googleapis.com/auth/bigtable.admin",
"https://www.googleapis.com/auth/bigtable.admin.cluster",
Expand All @@ -32,8 +32,9 @@ class Credentials < Google::Gax::Credentials
].freeze
PATH_ENV_VARS = %w(BIGTABLE_ADMIN_KEYFILE, GOOGLE_CLOUD_KEYFILE, GCLOUD_KEYFILE)
JSON_ENV_VARS = %w(BIGTABLE_ADMIN_KEYFILE_JSON, GOOGLE_CLOUD_KEYFILE_JSON, GCLOUD_KEYFILE_JSON)
DEFAULT_PATHS = ["~/.config/gcloud/application_default_credentials.json"]
end
end
end
end
end
end
8 changes: 4 additions & 4 deletions google-cloud-bigtable/lib/google/cloud/bigtable/admin/v2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ module BigtableInstanceAdmin
# Clusters. Provides access to the Instance and Cluster schemas only, not the
# tables' metadata or data stored in those tables.
#
# @param credentials [Google::Gax::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
# @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
# Provides the means for authenticating requests made by the client. This parameter can
# be many types.
# A `Google::Gax::Credentials` uses a the properties of its represented keyfile for
# A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
# authenticating requests made by this client.
# A `String` will be treated as the path to the keyfile to be used for the construction of
# credentials for this client.
Expand Down Expand Up @@ -115,10 +115,10 @@ module BigtableTableAdmin
# Provides access to the table schemas only, not the data stored within
# the tables.
#
# @param credentials [Google::Gax::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
# @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
# Provides the means for authenticating requests made by the client. This parameter can
# be many types.
# A `Google::Gax::Credentials` uses a the properties of its represented keyfile for
# A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
# authenticating requests made by this client.
# A `String` will be treated as the path to the keyfile to be used for the construction of
# credentials for this client.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,10 @@ def self.location_path project, location
)
end

# @param credentials [Google::Gax::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
# @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
# Provides the means for authenticating requests made by the client. This parameter can
# be many types.
# A `Google::Gax::Credentials` uses a the properties of its represented keyfile for
# A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
# authenticating requests made by this client.
# A `String` will be treated as the path to the keyfile to be used for the construction of
# credentials for this client.
Expand Down Expand Up @@ -213,13 +213,13 @@ def initialize \
if credentials.is_a?(Proc)
updater_proc = credentials
end
if credentials.is_a?(Google::Gax::Credentials)
if credentials.is_a?(Google::Auth::Credentials)
updater_proc = credentials.updater_proc
end

google_api_client = "gl-ruby/#{RUBY_VERSION}"
google_api_client << " #{lib_name}/#{lib_version}" if lib_name
google_api_client << " gapic/0.6.8 gax/#{Google::Gax::VERSION}"
google_api_client << " gapic/0.1.0 gax/#{Google::Gax::VERSION}"
google_api_client << " grpc/#{GRPC::VERSION}"
google_api_client.freeze

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,10 @@ def self.table_path project, instance, table
)
end

# @param credentials [Google::Gax::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
# @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
# Provides the means for authenticating requests made by the client. This parameter can
# be many types.
# A `Google::Gax::Credentials` uses a the properties of its represented keyfile for
# A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
# authenticating requests made by this client.
# A `String` will be treated as the path to the keyfile to be used for the construction of
# credentials for this client.
Expand Down Expand Up @@ -180,13 +180,13 @@ def initialize \
if credentials.is_a?(Proc)
updater_proc = credentials
end
if credentials.is_a?(Google::Gax::Credentials)
if credentials.is_a?(Google::Auth::Credentials)
updater_proc = credentials.updater_proc
end

google_api_client = "gl-ruby/#{RUBY_VERSION}"
google_api_client << " #{lib_name}/#{lib_version}" if lib_name
google_api_client << " gapic/0.6.8 gax/#{Google::Gax::VERSION}"
google_api_client << " gapic/0.1.0 gax/#{Google::Gax::VERSION}"
google_api_client << " grpc/#{GRPC::VERSION}"
google_api_client.freeze

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ module Admin
# | [BigtableTableAdminClient][] | |
# | [Data Types][] | Data types for Google::Cloud::Bigtable::Admin::V2 |
#
# [BigtableInstanceAdminClient]: https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-bigtable-admin/latest/google/bigtable/admin/v2/v2/bigtableinstanceadminclient
# [BigtableTableAdminClient]: https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-bigtable-admin/latest/google/bigtable/admin/v2/v2/bigtabletableadminclient
# [Data Types]: https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-bigtable-admin/latest/google/bigtable/admin/v2/v2/datatypes
# [BigtableInstanceAdminClient]: https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-bigtable-admin/latest/google/bigtable/admin/v2/bigtableinstanceadminclient
# [BigtableTableAdminClient]: https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-bigtable-admin/latest/google/bigtable/admin/v2/bigtabletableadminclient
# [Data Types]: https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-bigtable-admin/latest/google/bigtable/admin/v2/datatypes
#
module V2
# Request message for BigtableInstanceAdmin.CreateInstance.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ module Admin
# | [BigtableTableAdminClient][] | |
# | [Data Types][] | Data types for Google::Cloud::Bigtable::Admin::V2 |
#
# [BigtableInstanceAdminClient]: https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-bigtable-admin/latest/google/bigtable/admin/v2/v2/bigtableinstanceadminclient
# [BigtableTableAdminClient]: https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-bigtable-admin/latest/google/bigtable/admin/v2/v2/bigtabletableadminclient
# [Data Types]: https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-bigtable-admin/latest/google/bigtable/admin/v2/v2/datatypes
# [BigtableInstanceAdminClient]: https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-bigtable-admin/latest/google/bigtable/admin/v2/bigtableinstanceadminclient
# [BigtableTableAdminClient]: https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-bigtable-admin/latest/google/bigtable/admin/v2/bigtabletableadminclient
# [Data Types]: https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-bigtable-admin/latest/google/bigtable/admin/v2/datatypes
#
module V2
# Request message for
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.

require "google/gax"
require "googleauth"

module Google
module Cloud
module Bigtable
class Credentials < Google::Gax::Credentials
class Credentials < Google::Auth::Credentials
SCOPE = [
"https://www.googleapis.com/auth/bigtable.data",
"https://www.googleapis.com/auth/bigtable.data.readonly",
Expand All @@ -28,7 +28,8 @@ class Credentials < Google::Gax::Credentials
].freeze
PATH_ENV_VARS = %w(BIGTABLE_KEYFILE, GOOGLE_CLOUD_KEYFILE, GCLOUD_KEYFILE)
JSON_ENV_VARS = %w(BIGTABLE_KEYFILE_JSON, GOOGLE_CLOUD_KEYFILE_JSON, GCLOUD_KEYFILE_JSON)
DEFAULT_PATHS = ["~/.config/gcloud/application_default_credentials.json"]
end
end
end
end
end
4 changes: 2 additions & 2 deletions google-cloud-bigtable/lib/google/cloud/bigtable/v2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ module V2
##
# Service for reading from and writing to existing Bigtable tables.
#
# @param credentials [Google::Gax::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
# @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
# Provides the means for authenticating requests made by the client. This parameter can
# be many types.
# A `Google::Gax::Credentials` uses a the properties of its represented keyfile for
# A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
# authenticating requests made by this client.
# A `String` will be treated as the path to the keyfile to be used for the construction of
# credentials for this client.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ def self.table_path project, instance, table
)
end

# @param credentials [Google::Gax::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
# @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
# Provides the means for authenticating requests made by the client. This parameter can
# be many types.
# A `Google::Gax::Credentials` uses a the properties of its represented keyfile for
# A `Google::Auth::Credentials` uses a the properties of its represented keyfile for
# authenticating requests made by this client.
# A `String` will be treated as the path to the keyfile to be used for the construction of
# credentials for this client.
Expand Down Expand Up @@ -146,13 +146,13 @@ def initialize \
if credentials.is_a?(Proc)
updater_proc = credentials
end
if credentials.is_a?(Google::Gax::Credentials)
if credentials.is_a?(Google::Auth::Credentials)
updater_proc = credentials.updater_proc
end

google_api_client = "gl-ruby/#{RUBY_VERSION}"
google_api_client << " #{lib_name}/#{lib_version}" if lib_name
google_api_client << " gapic/0.6.8 gax/#{Google::Gax::VERSION}"
google_api_client << " gapic/0.1.0 gax/#{Google::Gax::VERSION}"
google_api_client << " grpc/#{GRPC::VERSION}"
google_api_client.freeze

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ module Bigtable
# | [BigtableClient][] | Google Cloud Bigtable - http://cloud.google.com/bigtable/ |
# | [Data Types][] | Data types for Google::Cloud::Bigtable::V2 |
#
# [BigtableClient]: https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-bigtable/latest/google/bigtable/v2/v2/bigtableclient
# [Data Types]: https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-bigtable/latest/google/bigtable/v2/v2/datatypes
# [BigtableClient]: https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-bigtable/latest/google/bigtable/v2/bigtableclient
# [Data Types]: https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-bigtable/latest/google/bigtable/v2/datatypes
#
module V2
# Request message for Bigtable.ReadRows.
Expand Down
Loading

0 comments on commit e04ff57

Please sign in to comment.