google-api-client 0.28.3 → 0.28.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.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +18 -0
  3. data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
  4. data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +3 -5
  5. data/generated/google/apis/admin_directory_v1.rb +1 -1
  6. data/generated/google/apis/admin_directory_v1/classes.rb +98 -0
  7. data/generated/google/apis/admin_directory_v1/representations.rb +21 -0
  8. data/generated/google/apis/admin_directory_v1/service.rb +12 -3
  9. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  10. data/generated/google/apis/androidenterprise_v1/classes.rb +29 -3
  11. data/generated/google/apis/androidenterprise_v1/representations.rb +15 -0
  12. data/generated/google/apis/bigtableadmin_v1.rb +31 -0
  13. data/generated/google/apis/bigtableadmin_v1/classes.rb +510 -0
  14. data/generated/google/apis/bigtableadmin_v1/representations.rb +234 -0
  15. data/generated/google/apis/bigtableadmin_v1/service.rb +128 -0
  16. data/generated/google/apis/bigtableadmin_v2.rb +1 -1
  17. data/generated/google/apis/bigtableadmin_v2/classes.rb +1 -1
  18. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  19. data/generated/google/apis/cloudsearch_v1/classes.rb +1 -1
  20. data/generated/google/apis/discovery_v1.rb +2 -2
  21. data/generated/google/apis/discovery_v1/service.rb +1 -1
  22. data/generated/google/apis/dlp_v2.rb +1 -1
  23. data/generated/google/apis/dlp_v2/classes.rb +7 -0
  24. data/generated/google/apis/dlp_v2/representations.rb +1 -0
  25. data/generated/google/apis/docs_v1.rb +2 -2
  26. data/generated/google/apis/docs_v1/classes.rb +21 -21
  27. data/generated/google/apis/docs_v1/service.rb +1 -1
  28. data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
  29. data/generated/google/apis/firebasehosting_v1beta1/classes.rb +40 -0
  30. data/generated/google/apis/firebasehosting_v1beta1/representations.rb +16 -0
  31. data/generated/google/apis/iam_v1.rb +1 -1
  32. data/generated/google/apis/iam_v1/classes.rb +0 -37
  33. data/generated/google/apis/iam_v1/representations.rb +0 -15
  34. data/generated/google/apis/iam_v1/service.rb +8 -44
  35. data/generated/google/apis/speech_v1.rb +2 -2
  36. data/generated/google/apis/speech_v1/classes.rb +2 -2
  37. data/generated/google/apis/speech_v1/service.rb +1 -1
  38. data/generated/google/apis/speech_v1p1beta1.rb +2 -2
  39. data/generated/google/apis/speech_v1p1beta1/classes.rb +2 -2
  40. data/generated/google/apis/speech_v1p1beta1/service.rb +1 -1
  41. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  42. data/generated/google/apis/storagetransfer_v1/classes.rb +15 -11
  43. data/generated/google/apis/testing_v1.rb +1 -1
  44. data/generated/google/apis/testing_v1/classes.rb +6 -0
  45. data/generated/google/apis/testing_v1/representations.rb +1 -0
  46. data/lib/google/apis/version.rb +1 -1
  47. metadata +6 -2
@@ -0,0 +1,234 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module BigtableadminV1
24
+
25
+ class Cluster
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class CreateClusterMetadata
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class CreateClusterRequest
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class CreateInstanceMetadata
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class CreateInstanceRequest
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class Instance
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class ListLocationsResponse
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class Location
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class PartialUpdateInstanceRequest
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class TableProgress
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class UpdateAppProfileMetadata
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class UpdateClusterMetadata
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class UpdateInstanceMetadata
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class Cluster
104
+ # @private
105
+ class Representation < Google::Apis::Core::JsonRepresentation
106
+ property :default_storage_type, as: 'defaultStorageType'
107
+ property :location, as: 'location'
108
+ property :name, as: 'name'
109
+ property :serve_nodes, as: 'serveNodes'
110
+ property :state, as: 'state'
111
+ end
112
+ end
113
+
114
+ class CreateClusterMetadata
115
+ # @private
116
+ class Representation < Google::Apis::Core::JsonRepresentation
117
+ property :finish_time, as: 'finishTime'
118
+ property :original_request, as: 'originalRequest', class: Google::Apis::BigtableadminV1::CreateClusterRequest, decorator: Google::Apis::BigtableadminV1::CreateClusterRequest::Representation
119
+
120
+ property :request_time, as: 'requestTime'
121
+ hash :tables, as: 'tables', class: Google::Apis::BigtableadminV1::TableProgress, decorator: Google::Apis::BigtableadminV1::TableProgress::Representation
122
+
123
+ end
124
+ end
125
+
126
+ class CreateClusterRequest
127
+ # @private
128
+ class Representation < Google::Apis::Core::JsonRepresentation
129
+ property :cluster, as: 'cluster', class: Google::Apis::BigtableadminV1::Cluster, decorator: Google::Apis::BigtableadminV1::Cluster::Representation
130
+
131
+ property :cluster_id, as: 'clusterId'
132
+ property :parent, as: 'parent'
133
+ end
134
+ end
135
+
136
+ class CreateInstanceMetadata
137
+ # @private
138
+ class Representation < Google::Apis::Core::JsonRepresentation
139
+ property :finish_time, as: 'finishTime'
140
+ property :original_request, as: 'originalRequest', class: Google::Apis::BigtableadminV1::CreateInstanceRequest, decorator: Google::Apis::BigtableadminV1::CreateInstanceRequest::Representation
141
+
142
+ property :request_time, as: 'requestTime'
143
+ end
144
+ end
145
+
146
+ class CreateInstanceRequest
147
+ # @private
148
+ class Representation < Google::Apis::Core::JsonRepresentation
149
+ hash :clusters, as: 'clusters', class: Google::Apis::BigtableadminV1::Cluster, decorator: Google::Apis::BigtableadminV1::Cluster::Representation
150
+
151
+ property :instance, as: 'instance', class: Google::Apis::BigtableadminV1::Instance, decorator: Google::Apis::BigtableadminV1::Instance::Representation
152
+
153
+ property :instance_id, as: 'instanceId'
154
+ property :parent, as: 'parent'
155
+ end
156
+ end
157
+
158
+ class Instance
159
+ # @private
160
+ class Representation < Google::Apis::Core::JsonRepresentation
161
+ property :display_name, as: 'displayName'
162
+ hash :labels, as: 'labels'
163
+ property :name, as: 'name'
164
+ property :state, as: 'state'
165
+ property :type, as: 'type'
166
+ end
167
+ end
168
+
169
+ class ListLocationsResponse
170
+ # @private
171
+ class Representation < Google::Apis::Core::JsonRepresentation
172
+ collection :locations, as: 'locations', class: Google::Apis::BigtableadminV1::Location, decorator: Google::Apis::BigtableadminV1::Location::Representation
173
+
174
+ property :next_page_token, as: 'nextPageToken'
175
+ end
176
+ end
177
+
178
+ class Location
179
+ # @private
180
+ class Representation < Google::Apis::Core::JsonRepresentation
181
+ property :display_name, as: 'displayName'
182
+ hash :labels, as: 'labels'
183
+ property :location_id, as: 'locationId'
184
+ hash :metadata, as: 'metadata'
185
+ property :name, as: 'name'
186
+ end
187
+ end
188
+
189
+ class PartialUpdateInstanceRequest
190
+ # @private
191
+ class Representation < Google::Apis::Core::JsonRepresentation
192
+ property :instance, as: 'instance', class: Google::Apis::BigtableadminV1::Instance, decorator: Google::Apis::BigtableadminV1::Instance::Representation
193
+
194
+ property :update_mask, as: 'updateMask'
195
+ end
196
+ end
197
+
198
+ class TableProgress
199
+ # @private
200
+ class Representation < Google::Apis::Core::JsonRepresentation
201
+ property :estimated_copied_bytes, :numeric_string => true, as: 'estimatedCopiedBytes'
202
+ property :estimated_size_bytes, :numeric_string => true, as: 'estimatedSizeBytes'
203
+ property :state, as: 'state'
204
+ end
205
+ end
206
+
207
+ class UpdateAppProfileMetadata
208
+ # @private
209
+ class Representation < Google::Apis::Core::JsonRepresentation
210
+ end
211
+ end
212
+
213
+ class UpdateClusterMetadata
214
+ # @private
215
+ class Representation < Google::Apis::Core::JsonRepresentation
216
+ property :finish_time, as: 'finishTime'
217
+ property :original_request, as: 'originalRequest', class: Google::Apis::BigtableadminV1::Cluster, decorator: Google::Apis::BigtableadminV1::Cluster::Representation
218
+
219
+ property :request_time, as: 'requestTime'
220
+ end
221
+ end
222
+
223
+ class UpdateInstanceMetadata
224
+ # @private
225
+ class Representation < Google::Apis::Core::JsonRepresentation
226
+ property :finish_time, as: 'finishTime'
227
+ property :original_request, as: 'originalRequest', class: Google::Apis::BigtableadminV1::PartialUpdateInstanceRequest, decorator: Google::Apis::BigtableadminV1::PartialUpdateInstanceRequest::Representation
228
+
229
+ property :request_time, as: 'requestTime'
230
+ end
231
+ end
232
+ end
233
+ end
234
+ end
@@ -0,0 +1,128 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module BigtableadminV1
23
+ # Cloud Bigtable Admin API
24
+ #
25
+ #
26
+ #
27
+ # @example
28
+ # require 'google/apis/bigtableadmin_v1'
29
+ #
30
+ # Bigtableadmin = Google::Apis::BigtableadminV1 # Alias the module
31
+ # service = Bigtableadmin::BigtableAdminService.new
32
+ #
33
+ # @see https://cloud.google.com/bigtable/
34
+ class BigtableAdminService < Google::Apis::Core::BaseService
35
+ # @return [String]
36
+ # API key. Your API key identifies your project and provides you with API access,
37
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
38
+ attr_accessor :key
39
+
40
+ # @return [String]
41
+ # Available to use for quota purposes for server-side applications. Can be any
42
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
43
+ attr_accessor :quota_user
44
+
45
+ def initialize
46
+ super('https://bigtableadmin.googleapis.com/', '')
47
+ @batch_path = 'batch'
48
+ end
49
+
50
+ # Gets information about a location.
51
+ # @param [String] name
52
+ # Resource name for the location.
53
+ # @param [String] fields
54
+ # Selector specifying which fields to include in a partial response.
55
+ # @param [String] quota_user
56
+ # Available to use for quota purposes for server-side applications. Can be any
57
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
58
+ # @param [Google::Apis::RequestOptions] options
59
+ # Request-specific options
60
+ #
61
+ # @yield [result, err] Result & error if block supplied
62
+ # @yieldparam result [Google::Apis::BigtableadminV1::Location] parsed result object
63
+ # @yieldparam err [StandardError] error object if request failed
64
+ #
65
+ # @return [Google::Apis::BigtableadminV1::Location]
66
+ #
67
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
68
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
69
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
70
+ def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
71
+ command = make_simple_command(:get, 'v1/{+name}', options)
72
+ command.response_representation = Google::Apis::BigtableadminV1::Location::Representation
73
+ command.response_class = Google::Apis::BigtableadminV1::Location
74
+ command.params['name'] = name unless name.nil?
75
+ command.query['fields'] = fields unless fields.nil?
76
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
77
+ execute_or_queue_command(command, &block)
78
+ end
79
+
80
+ # Lists information about the supported locations for this service.
81
+ # @param [String] name
82
+ # The resource that owns the locations collection, if applicable.
83
+ # @param [String] filter
84
+ # The standard list filter.
85
+ # @param [Fixnum] page_size
86
+ # The standard list page size.
87
+ # @param [String] page_token
88
+ # The standard list page token.
89
+ # @param [String] fields
90
+ # Selector specifying which fields to include in a partial response.
91
+ # @param [String] quota_user
92
+ # Available to use for quota purposes for server-side applications. Can be any
93
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
94
+ # @param [Google::Apis::RequestOptions] options
95
+ # Request-specific options
96
+ #
97
+ # @yield [result, err] Result & error if block supplied
98
+ # @yieldparam result [Google::Apis::BigtableadminV1::ListLocationsResponse] parsed result object
99
+ # @yieldparam err [StandardError] error object if request failed
100
+ #
101
+ # @return [Google::Apis::BigtableadminV1::ListLocationsResponse]
102
+ #
103
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
104
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
105
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
106
+ def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
107
+ command = make_simple_command(:get, 'v1/{+name}/locations', options)
108
+ command.response_representation = Google::Apis::BigtableadminV1::ListLocationsResponse::Representation
109
+ command.response_class = Google::Apis::BigtableadminV1::ListLocationsResponse
110
+ command.params['name'] = name unless name.nil?
111
+ command.query['filter'] = filter unless filter.nil?
112
+ command.query['pageSize'] = page_size unless page_size.nil?
113
+ command.query['pageToken'] = page_token unless page_token.nil?
114
+ command.query['fields'] = fields unless fields.nil?
115
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
116
+ execute_or_queue_command(command, &block)
117
+ end
118
+
119
+ protected
120
+
121
+ def apply_command_defaults(command)
122
+ command.query['key'] = key unless key.nil?
123
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
124
+ end
125
+ end
126
+ end
127
+ end
128
+ end
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/bigtable/
26
26
  module BigtableadminV2
27
27
  VERSION = 'V2'
28
- REVISION = '20190106'
28
+ REVISION = '20190115'
29
29
 
30
30
  # Administer your Cloud Bigtable tables and clusters
31
31
  AUTH_BIGTABLE_ADMIN = 'https://www.googleapis.com/auth/bigtable.admin'
@@ -1505,7 +1505,7 @@ module Google
1505
1505
  # The granularity (i.e. `MILLIS`) at which timestamps are stored in
1506
1506
  # this table. Timestamps not matching the granularity will be rejected.
1507
1507
  # If unspecified at creation time, the value will be set to `MILLIS`.
1508
- # Views: `SCHEMA_VIEW`, `FULL`
1508
+ # Views: `SCHEMA_VIEW`, `FULL`.
1509
1509
  # Corresponds to the JSON property `granularity`
1510
1510
  # @return [String]
1511
1511
  attr_accessor :granularity
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://gsuite.google.com/products/cloud-search/
27
27
  module CloudsearchV1
28
28
  VERSION = 'V1'
29
- REVISION = '20190108'
29
+ REVISION = '20190205'
30
30
 
31
31
  # Index and serve your organization's data with Cloud Search
32
32
  AUTH_CLOUD_SEARCH = 'https://www.googleapis.com/auth/cloud_search'
@@ -207,7 +207,7 @@ module Google
207
207
  # source. The value must be unique across all data sources. The value must
208
208
  # only contain alphanumeric characters (a-zA-Z0-9). The value cannot start
209
209
  # with 'google' and cannot be one of the following: mail, gmail, docs, drive,
210
- # groups, sites, calendar, hangouts, gplus, keep.
210
+ # groups, sites, calendar, hangouts, gplus, keep, people, teams.
211
211
  # Its maximum length is 32 characters.
212
212
  # Corresponds to the JSON property `shortName`
213
213
  # @return [String]
@@ -18,7 +18,7 @@ require 'google/apis/discovery_v1/representations.rb'
18
18
 
19
19
  module Google
20
20
  module Apis
21
- # APIs Discovery Service
21
+ # API Discovery Service
22
22
  #
23
23
  # Provides information about other Google APIs, such as what APIs are available,
24
24
  # the resource, and method details for each API.
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/discovery/
27
27
  module DiscoveryV1
28
28
  VERSION = 'V1'
29
- REVISION = '20180813'
29
+ REVISION = '20190129'
30
30
  end
31
31
  end
32
32
  end
@@ -20,7 +20,7 @@ require 'google/apis/errors'
20
20
  module Google
21
21
  module Apis
22
22
  module DiscoveryV1
23
- # APIs Discovery Service
23
+ # API Discovery Service
24
24
  #
25
25
  # Provides information about other Google APIs, such as what APIs are available,
26
26
  # the resource, and method details for each API.
@@ -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 = '20190129'
30
+ REVISION = '20190205'
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'
@@ -2589,6 +2589,12 @@ module Google
2589
2589
  class GooglePrivacyDlpV2InfoTypeDescription
2590
2590
  include Google::Apis::Core::Hashable
2591
2591
 
2592
+ # Description of the infotype. Translated when language is provided in the
2593
+ # request.
2594
+ # Corresponds to the JSON property `description`
2595
+ # @return [String]
2596
+ attr_accessor :description
2597
+
2592
2598
  # Human readable form of the infoType name.
2593
2599
  # Corresponds to the JSON property `displayName`
2594
2600
  # @return [String]
@@ -2610,6 +2616,7 @@ module Google
2610
2616
 
2611
2617
  # Update properties of this object
2612
2618
  def update!(**args)
2619
+ @description = args[:description] if args.key?(:description)
2613
2620
  @display_name = args[:display_name] if args.key?(:display_name)
2614
2621
  @name = args[:name] if args.key?(:name)
2615
2622
  @supported_by = args[:supported_by] if args.key?(:supported_by)