google-api-client 0.34.0 → 0.34.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/.kokoro/continuous/linux.cfg +2 -2
  3. data/.kokoro/continuous/post.cfg +30 -0
  4. data/.kokoro/presubmit/linux.cfg +1 -1
  5. data/.kokoro/release.cfg +94 -0
  6. data/.repo-metadata.json +5 -0
  7. data/.rubocop.yml +5 -0
  8. data/CHANGELOG.md +18 -0
  9. data/Gemfile +1 -0
  10. data/Rakefile +71 -2
  11. data/generated/google/apis/bigquery_v2.rb +1 -1
  12. data/generated/google/apis/bigquery_v2/classes.rb +33 -0
  13. data/generated/google/apis/bigquery_v2/representations.rb +18 -0
  14. data/generated/google/apis/cloudshell_v1.rb +1 -1
  15. data/generated/google/apis/cloudshell_v1/classes.rb +2 -1
  16. data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
  17. data/generated/google/apis/cloudshell_v1alpha1/classes.rb +2 -1
  18. data/generated/google/apis/dlp_v2.rb +1 -1
  19. data/generated/google/apis/dlp_v2/classes.rb +25 -0
  20. data/generated/google/apis/dlp_v2/representations.rb +14 -0
  21. data/generated/google/apis/dlp_v2/service.rb +55 -43
  22. data/generated/google/apis/docs_v1.rb +1 -1
  23. data/generated/google/apis/docs_v1/classes.rb +8 -4
  24. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  25. data/generated/google/apis/recommender_v1beta1.rb +1 -1
  26. data/generated/google/apis/redis_v1.rb +1 -1
  27. data/generated/google/apis/redis_v1/classes.rb +11 -11
  28. data/generated/google/apis/redis_v1/service.rb +5 -5
  29. data/generated/google/apis/redis_v1beta1.rb +1 -1
  30. data/generated/google/apis/redis_v1beta1/classes.rb +11 -11
  31. data/generated/google/apis/redis_v1beta1/service.rb +5 -5
  32. data/generated/google/apis/securitycenter_v1.rb +1 -1
  33. data/generated/google/apis/securitycenter_v1/classes.rb +22 -18
  34. data/generated/google/apis/securitycenter_v1/service.rb +14 -12
  35. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  36. data/generated/google/apis/securitycenter_v1beta1/classes.rb +8 -7
  37. data/generated/google/apis/securitycenter_v1beta1/service.rb +14 -12
  38. data/generated/google/apis/sheets_v4.rb +1 -1
  39. data/generated/google/apis/sheets_v4/classes.rb +768 -18
  40. data/generated/google/apis/sheets_v4/representations.rb +101 -0
  41. data/generated/google/apis/vision_v1.rb +1 -1
  42. data/generated/google/apis/vision_v1/classes.rb +66 -0
  43. data/generated/google/apis/vision_v1/representations.rb +32 -0
  44. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  45. data/generated/google/apis/vision_v1p1beta1/classes.rb +66 -0
  46. data/generated/google/apis/vision_v1p1beta1/representations.rb +32 -0
  47. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  48. data/generated/google/apis/vision_v1p2beta1/classes.rb +66 -0
  49. data/generated/google/apis/vision_v1p2beta1/representations.rb +32 -0
  50. data/lib/google/apis/core/upload.rb +4 -0
  51. data/lib/google/apis/version.rb +1 -1
  52. data/rakelib/devsite/devsite_builder.rb +126 -0
  53. data/rakelib/devsite/link_checker.rb +64 -0
  54. data/rakelib/devsite/repo_metadata.rb +56 -0
  55. metadata +9 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 431ed95e3b0e5c21253a68443946c187bbea57815212e6452649e4135cd0a071
4
- data.tar.gz: 8d2bab1cf1bc2c76a8f15ebfd89f504844e84aca97ec96b22acfdfd951d4ab4a
3
+ metadata.gz: 1f5c6f57b6e73f8ff32192717e8bfc29c428aa183bc1d46752432491df33aa72
4
+ data.tar.gz: 68a8b34179552ed160b0f9841671c9cae1a4eb1815ff11252b2195297a542785
5
5
  SHA512:
6
- metadata.gz: c3ce41a21b452d952868f10f707e2ae7ab81b0f5cdff2f65397716fb17de53d9ce5da070b7b9222419e087e00bbd0e8c98fe6f5cca0c41f8a1ab3944067b5d9b
7
- data.tar.gz: dd9b2e0d6d791ea928824153311740d6dedb79c44d09aa2bd5462c09d42b288be9ed70e70374265ecadb2c2aec4e68372f7a7d22673bf97409f0c929492b5a7f
6
+ metadata.gz: 2e4a8df1d22c47dfdedb69ea883a668653c40218a4c07b290f451f7b1284cdfc005ec833240ef76568e1f5f37ca8f390acb506b2c3fed1aefb2aafb8ae74918e
7
+ data.tar.gz: 95b19f198084c1fdcbf13a845bb4416c67bbedf983cee7b1bfd539aab0edaac9165fa1125194bd01ce5ec9c5e07980ca520f31defdd29642b6c193c99680bd7c
@@ -3,10 +3,10 @@
3
3
  build_file: "google-api-ruby-client/.kokoro/trampoline.sh"
4
4
 
5
5
  # Configure the docker image for kokoro-trampoline.
6
- # Dockerfile is maintained at https://github.com/googleapis/google-cloud-ruby/tree/master/.kokoro/docker/ruby-multi
6
+ # Dockerfile is maintained at https://github.com/googleapis/google-cloud-ruby/tree/master/.kokoro/docker/multi
7
7
  env_vars: {
8
8
  key: "TRAMPOLINE_IMAGE"
9
- value: "gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/ruby-multi"
9
+ value: "gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/multi"
10
10
  }
11
11
 
12
12
  env_vars: {
@@ -0,0 +1,30 @@
1
+ # Format: //devtools/kokoro/config/proto/build.proto
2
+
3
+ build_file: "google-api-ruby-client/.kokoro/trampoline.sh"
4
+
5
+ # Configure the docker image for kokoro-trampoline.
6
+ # Dockerfile is maintained at https://github.com/googleapis/google-cloud-ruby/tree/master/.kokoro/docker/multi-node
7
+ env_vars: {
8
+ key: "TRAMPOLINE_IMAGE"
9
+ value: "gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/multi-node"
10
+ }
11
+
12
+ env_vars: {
13
+ key: "TRAMPOLINE_BUILD_FILE"
14
+ value: "github/google-api-ruby-client/.kokoro/build.sh"
15
+ }
16
+
17
+ env_vars: {
18
+ key: "TRAMPOLINE_SCRIPT"
19
+ value: "trampoline_v1.py"
20
+ }
21
+
22
+ env_vars: {
23
+ key: "OS"
24
+ value: "linux"
25
+ }
26
+
27
+ env_vars: {
28
+ key: "JOB_TYPE"
29
+ value: "post"
30
+ }
@@ -5,7 +5,7 @@ build_file: "google-api-ruby-client/.kokoro/trampoline.sh"
5
5
  # Configure the docker image for kokoro-trampoline.
6
6
  env_vars: {
7
7
  key: "TRAMPOLINE_IMAGE"
8
- value: "gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/ruby-multi"
8
+ value: "gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/multi"
9
9
  }
10
10
 
11
11
  env_vars: {
@@ -0,0 +1,94 @@
1
+ # Format: //devtools/kokoro/config/proto/build.proto
2
+
3
+ # Build logs will be here
4
+ action {
5
+ define_artifacts {
6
+ regex: "**/*sponge_log.xml"
7
+ }
8
+ }
9
+
10
+ # Fetch the token needed for reporting release status to GitHub
11
+ before_action {
12
+ fetch_keystore {
13
+ keystore_resource {
14
+ keystore_config_id: 73713
15
+ keyname: "yoshi-automation-github-key"
16
+ }
17
+ }
18
+ }
19
+
20
+ # Fetch magictoken to use with Magic Github Proxy
21
+ before_action {
22
+ fetch_keystore {
23
+ keystore_resource {
24
+ keystore_config_id: 73713
25
+ keyname: "releasetool-magictoken"
26
+ backend_type: FASTCONFIGPUSH
27
+ }
28
+ }
29
+ }
30
+
31
+ # Fetch api key to use with Magic Github Proxy
32
+ before_action {
33
+ fetch_keystore {
34
+ keystore_resource {
35
+ keystore_config_id: 73713
36
+ keyname: "magic-github-proxy-api-key"
37
+ backend_type: FASTCONFIGPUSH
38
+ }
39
+ }
40
+ }
41
+
42
+ before_action {
43
+ fetch_keystore {
44
+ keystore_resource {
45
+ keystore_config_id: 73713
46
+ keyname: "docuploader_service_account"
47
+ }
48
+ }
49
+ }
50
+
51
+ # Download resources for system tests (service account key, etc.)
52
+ gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/google-cloud-ruby"
53
+
54
+ # Download trampoline resources.
55
+ gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"
56
+
57
+ # Use the trampoline script to run in docker.
58
+ build_file: "google-api-ruby-client/.kokoro/trampoline.sh"
59
+
60
+ # Configure the docker image for kokoro-trampoline.
61
+ env_vars: {
62
+ key: "TRAMPOLINE_IMAGE"
63
+ value: "gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/release"
64
+ }
65
+
66
+ env_vars: {
67
+ key: "TRAMPOLINE_BUILD_FILE"
68
+ value: "github/google-api-ruby-client/.kokoro/build.sh"
69
+ }
70
+
71
+ env_vars: {
72
+ key: "TRAMPOLINE_SCRIPT"
73
+ value: "trampoline_v1.py"
74
+ }
75
+
76
+ env_vars: {
77
+ key: "JOB_TYPE"
78
+ value: "release"
79
+ }
80
+
81
+ env_vars: {
82
+ key: "OS"
83
+ value: "linux"
84
+ }
85
+
86
+ env_vars: {
87
+ key: "REPO_DIR"
88
+ value: "github/google-api-ruby-client"
89
+ }
90
+
91
+ env_vars: {
92
+ key: "PACKAGE"
93
+ value: "google-api-client"
94
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "name": "google-api-client",
3
+ "language": "ruby",
4
+ "distribution-name": "google-api-client"
5
+ }
@@ -5,3 +5,8 @@ Metrics/LineLength:
5
5
 
6
6
  Style/FormatString:
7
7
  EnforcedStyle: sprintf
8
+
9
+ AllCops:
10
+ Exclude:
11
+ - "Rakefile"
12
+ - "rakelib/**/*"
@@ -1,3 +1,21 @@
1
+ # 0.34.1
2
+ * Backwards compatible changes:
3
+ * Updated `bigquery_v2`
4
+ * Updated `cloudshell_v1`
5
+ * Updated `cloudshell_v1alpha1`
6
+ * Updated `dlp_v2`
7
+ * Updated `docs_v1`
8
+ * Updated `genomics_v2alpha1`
9
+ * Updated `recommender_v1beta1`
10
+ * Updated `redis_v1`
11
+ * Updated `redis_v1beta1`
12
+ * Updated `securitycenter_v1`
13
+ * Updated `securitycenter_v1beta1`
14
+ * Updated `sheets_v4`
15
+ * Updated `vision_v1`
16
+ * Updated `vision_v1p1beta1`
17
+ * Updated `vision_v1p2beta1`
18
+
1
19
  # 0.34.0
2
20
  * Breaking changes:
3
21
  * Deleted `dfareporting_v3_2`
data/Gemfile CHANGED
@@ -22,6 +22,7 @@ group :development do
22
22
  gem 'redis', '~> 3.2'
23
23
  gem 'logging', '~> 2.2'
24
24
  gem 'opencensus', '~> 0.4'
25
+ gem 'httparty'
25
26
  end
26
27
 
27
28
  platforms :jruby do
data/Rakefile CHANGED
@@ -1,4 +1,51 @@
1
1
  require "bundler/gem_tasks"
2
+ require "json"
3
+
4
+ task :release_gem, :tag do |_t, args|
5
+ tag = args[:tag]
6
+ raise "You must provide a tag to release." if tag.nil?
7
+
8
+ # Verify the tag format "vVERSION"
9
+ m = tag.match(/v(?<version>\S*)/)
10
+ raise "Tag #{tag} does not match the expected format." if m.nil?
11
+
12
+ version = m[:version]
13
+ raise "You must provide a version." if version.nil?
14
+
15
+ api_token = ENV["RUBYGEMS_API_TOKEN"]
16
+
17
+ require "gems"
18
+ if api_token
19
+ ::Gems.configure do |config|
20
+ config.key = api_token
21
+ end
22
+ end
23
+
24
+ Bundler.with_clean_env do
25
+ sh "rm -rf pkg"
26
+ sh "bundle update"
27
+ sh "bundle exec rake build"
28
+ end
29
+
30
+ path_to_be_pushed = "pkg/google-api-client-#{version}.gem"
31
+ gem_was_published = nil
32
+ if File.file? path_to_be_pushed
33
+ begin
34
+ response = ::Gems.push File.new(path_to_be_pushed)
35
+ puts response
36
+ raise unless response.include? "Successfully registered gem:"
37
+ gem_was_published = true
38
+ puts "Successfully built and pushed google-api-client for version #{version}"
39
+ rescue StandardError => e
40
+ gem_was_published = false
41
+ puts "Error while releasing google-api-client version #{version}: #{e.message}"
42
+ end
43
+ else
44
+ raise "Cannot build google-api-client for version #{version}"
45
+ end
46
+
47
+ Rake::Task["kokoro:publish_docs"].invoke if gem_was_published
48
+ end
2
49
 
3
50
  task default: :spec
4
51
 
@@ -22,13 +69,35 @@ namespace :kokoro do
22
69
  task :nightly do
23
70
  Rake::Task["spec"].invoke
24
71
  end
72
+
73
+ task :post do
74
+ require_relative "rakelib/link_checker.rb"
75
+
76
+ link_checker = LinkChecker.new
77
+ link_checker.run
78
+ exit link_checker.exit_status
79
+ end
80
+
81
+ task :release do
82
+ # Until code generation process is updated and release-please is set up, just publish docs
83
+ require_relative "rakelib/devsite/devsite_builder.rb"
84
+
85
+ DevsiteBuilder.new.publish_if_missing ENV["DOCS_BUILD_TAG"]
86
+ end
87
+
88
+ desc "Publish docs for the latest git tag"
89
+ task :publish_docs do
90
+ require_relative "rakelib/devsite/devsite_builder.rb"
91
+
92
+ DevsiteBuilder.new.publish ENV["DOCS_BUILD_TAG"]
93
+ end
25
94
  end
26
95
 
27
96
  def header str, token = "#"
28
97
  line_length = str.length + 8
29
- puts ""
98
+ puts
30
99
  puts token * line_length
31
100
  puts "#{token * 3} #{str} #{token * 3}"
32
101
  puts token * line_length
33
- puts ""
102
+ puts
34
103
  end
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/bigquery/
26
26
  module BigqueryV2
27
27
  VERSION = 'V2'
28
- REVISION = '20191011'
28
+ REVISION = '20191019'
29
29
 
30
30
  # View and manage your data in Google BigQuery
31
31
  AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
@@ -1038,6 +1038,32 @@ module Google
1038
1038
  end
1039
1039
  end
1040
1040
 
1041
+ # Data split result. This contains references to the training and evaluation
1042
+ # data tables that were used to train the model.
1043
+ class DataSplitResult
1044
+ include Google::Apis::Core::Hashable
1045
+
1046
+ # Table reference of the evaluation data after split.
1047
+ # Corresponds to the JSON property `evaluationTable`
1048
+ # @return [Google::Apis::BigqueryV2::TableReference]
1049
+ attr_accessor :evaluation_table
1050
+
1051
+ # Table reference of the training data after split.
1052
+ # Corresponds to the JSON property `trainingTable`
1053
+ # @return [Google::Apis::BigqueryV2::TableReference]
1054
+ attr_accessor :training_table
1055
+
1056
+ def initialize(**args)
1057
+ update!(**args)
1058
+ end
1059
+
1060
+ # Update properties of this object
1061
+ def update!(**args)
1062
+ @evaluation_table = args[:evaluation_table] if args.key?(:evaluation_table)
1063
+ @training_table = args[:training_table] if args.key?(:training_table)
1064
+ end
1065
+ end
1066
+
1041
1067
  #
1042
1068
  class Dataset
1043
1069
  include Google::Apis::Core::Hashable
@@ -5740,6 +5766,12 @@ module Google
5740
5766
  class TrainingRun
5741
5767
  include Google::Apis::Core::Hashable
5742
5768
 
5769
+ # Data split result. This contains references to the training and evaluation
5770
+ # data tables that were used to train the model.
5771
+ # Corresponds to the JSON property `dataSplitResult`
5772
+ # @return [Google::Apis::BigqueryV2::DataSplitResult]
5773
+ attr_accessor :data_split_result
5774
+
5743
5775
  # Evaluation metrics of a model. These are either computed on all training
5744
5776
  # data or just the eval data based on whether eval data was used during
5745
5777
  # training. These are not present for imported models.
@@ -5769,6 +5801,7 @@ module Google
5769
5801
 
5770
5802
  # Update properties of this object
5771
5803
  def update!(**args)
5804
+ @data_split_result = args[:data_split_result] if args.key?(:data_split_result)
5772
5805
  @evaluation_metrics = args[:evaluation_metrics] if args.key?(:evaluation_metrics)
5773
5806
  @results = args[:results] if args.key?(:results)
5774
5807
  @start_time = args[:start_time] if args.key?(:start_time)
@@ -166,6 +166,12 @@ module Google
166
166
  include Google::Apis::Core::JsonObjectSupport
167
167
  end
168
168
 
169
+ class DataSplitResult
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
169
175
  class Dataset
170
176
  class Representation < Google::Apis::Core::JsonRepresentation; end
171
177
 
@@ -941,6 +947,16 @@ module Google
941
947
  end
942
948
  end
943
949
 
950
+ class DataSplitResult
951
+ # @private
952
+ class Representation < Google::Apis::Core::JsonRepresentation
953
+ property :evaluation_table, as: 'evaluationTable', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation
954
+
955
+ property :training_table, as: 'trainingTable', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation
956
+
957
+ end
958
+ end
959
+
944
960
  class Dataset
945
961
  # @private
946
962
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2083,6 +2099,8 @@ module Google
2083
2099
  class TrainingRun
2084
2100
  # @private
2085
2101
  class Representation < Google::Apis::Core::JsonRepresentation
2102
+ property :data_split_result, as: 'dataSplitResult', class: Google::Apis::BigqueryV2::DataSplitResult, decorator: Google::Apis::BigqueryV2::DataSplitResult::Representation
2103
+
2086
2104
  property :evaluation_metrics, as: 'evaluationMetrics', class: Google::Apis::BigqueryV2::EvaluationMetrics, decorator: Google::Apis::BigqueryV2::EvaluationMetrics::Representation
2087
2105
 
2088
2106
  collection :results, as: 'results', class: Google::Apis::BigqueryV2::IterationResult, decorator: Google::Apis::BigqueryV2::IterationResult::Representation
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/shell/docs/
27
27
  module CloudshellV1
28
28
  VERSION = 'V1'
29
- REVISION = '20191028'
29
+ REVISION = '20191102'
30
30
 
31
31
  # View and manage your data across Google Cloud Platform services
32
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -67,7 +67,8 @@ module Google
67
67
  # @return [String]
68
68
  attr_accessor :docker_image
69
69
 
70
- # Output only. The environment's identifier, which is always "default".
70
+ # Output only. The environment's identifier, unique among the user's
71
+ # environments.
71
72
  # Corresponds to the JSON property `id`
72
73
  # @return [String]
73
74
  attr_accessor :id
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/shell/docs/
27
27
  module CloudshellV1alpha1
28
28
  VERSION = 'V1alpha1'
29
- REVISION = '20191028'
29
+ REVISION = '20191102'
30
30
 
31
31
  # View and manage your data across Google Cloud Platform services
32
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -105,7 +105,8 @@ module Google
105
105
  # @return [String]
106
106
  attr_accessor :docker_image
107
107
 
108
- # Output only. The environment's identifier, which is always "default".
108
+ # Output only. The environment's identifier, unique among the user's
109
+ # environments.
109
110
  # Corresponds to the JSON property `id`
110
111
  # @return [String]
111
112
  attr_accessor :id
@@ -27,7 +27,7 @@ module Google
27
27
  # @see https://cloud.google.com/dlp/docs/
28
28
  module DlpV2
29
29
  VERSION = 'V2'
30
- REVISION = '20191027'
30
+ REVISION = '20191102'
31
31
 
32
32
  # View and manage your data across Google Cloud Platform services
33
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'