google-api-client 0.13.4 → 0.13.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (109) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +43 -0
  3. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  4. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +4 -3
  5. data/generated/google/apis/admin_directory_v1.rb +1 -1
  6. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  7. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  8. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +1 -1
  9. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  10. data/generated/google/apis/androidenterprise_v1/classes.rb +33 -0
  11. data/generated/google/apis/androidenterprise_v1/representations.rb +16 -0
  12. data/generated/google/apis/androidenterprise_v1/service.rb +1 -1
  13. data/generated/google/apis/androidpublisher_v1_1.rb +1 -1
  14. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  15. data/generated/google/apis/bigquery_v2.rb +1 -1
  16. data/generated/google/apis/bigquery_v2/classes.rb +10 -1
  17. data/generated/google/apis/bigquery_v2/representations.rb +1 -0
  18. data/generated/google/apis/cloudkms_v1.rb +1 -1
  19. data/generated/google/apis/cloudkms_v1/classes.rb +6 -253
  20. data/generated/google/apis/cloudkms_v1/representations.rb +1 -99
  21. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  22. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1 -1
  23. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  24. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +1 -1
  25. data/generated/google/apis/cloudtrace_v2.rb +1 -1
  26. data/generated/google/apis/cloudtrace_v2/classes.rb +12 -6
  27. data/generated/google/apis/cloudtrace_v2/representations.rb +2 -1
  28. data/generated/google/apis/container_v1.rb +1 -1
  29. data/generated/google/apis/container_v1/classes.rb +72 -15
  30. data/generated/google/apis/container_v1/representations.rb +7 -0
  31. data/generated/google/apis/container_v1beta1.rb +1 -1
  32. data/generated/google/apis/container_v1beta1/classes.rb +58 -15
  33. data/generated/google/apis/container_v1beta1/representations.rb +5 -0
  34. data/generated/google/apis/content_v2.rb +1 -1
  35. data/generated/google/apis/content_v2/classes.rb +16 -0
  36. data/generated/google/apis/content_v2/representations.rb +3 -0
  37. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  38. data/generated/google/apis/dataflow_v1b3/classes.rb +87 -0
  39. data/generated/google/apis/dataflow_v1b3/representations.rb +46 -0
  40. data/generated/google/apis/datastore_v1beta1.rb +38 -0
  41. data/generated/google/apis/datastore_v1beta1/classes.rb +567 -0
  42. data/generated/google/apis/datastore_v1beta1/representations.rb +191 -0
  43. data/generated/google/apis/datastore_v1beta1/service.rb +137 -0
  44. data/generated/google/apis/deploymentmanager_v2beta/service.rb +1 -1
  45. data/generated/google/apis/dlp_v2beta1.rb +1 -1
  46. data/generated/google/apis/dlp_v2beta1/classes.rb +1 -1
  47. data/generated/google/apis/dlp_v2beta1/service.rb +142 -7
  48. data/generated/google/apis/dns_v2beta1.rb +1 -1
  49. data/generated/google/apis/drive_v2.rb +1 -1
  50. data/generated/google/apis/drive_v2/classes.rb +6 -0
  51. data/generated/google/apis/drive_v2/representations.rb +1 -0
  52. data/generated/google/apis/drive_v2/service.rb +6 -6
  53. data/generated/google/apis/drive_v3.rb +1 -1
  54. data/generated/google/apis/drive_v3/classes.rb +6 -0
  55. data/generated/google/apis/drive_v3/representations.rb +1 -0
  56. data/generated/google/apis/drive_v3/service.rb +6 -6
  57. data/generated/google/apis/firebaseremoteconfig_v1.rb +32 -0
  58. data/generated/google/apis/firebaseremoteconfig_v1/classes.rb +180 -0
  59. data/generated/google/apis/firebaseremoteconfig_v1/representations.rb +87 -0
  60. data/generated/google/apis/firebaseremoteconfig_v1/service.rb +153 -0
  61. data/generated/google/apis/games_management_v1management.rb +1 -1
  62. data/generated/google/apis/gmail_v1.rb +1 -1
  63. data/generated/google/apis/logging_v2.rb +1 -1
  64. data/generated/google/apis/logging_v2/classes.rb +444 -18
  65. data/generated/google/apis/logging_v2/representations.rb +119 -0
  66. data/generated/google/apis/logging_v2/service.rb +808 -1
  67. data/generated/google/apis/logging_v2beta1.rb +1 -1
  68. data/generated/google/apis/logging_v2beta1/classes.rb +367 -18
  69. data/generated/google/apis/logging_v2beta1/representations.rb +88 -0
  70. data/generated/google/apis/logging_v2beta1/service.rb +4 -1
  71. data/generated/google/apis/ml_v1.rb +1 -1
  72. data/generated/google/apis/ml_v1/classes.rb +1 -254
  73. data/generated/google/apis/ml_v1/representations.rb +0 -99
  74. data/generated/google/apis/monitoring_v3.rb +1 -1
  75. data/generated/google/apis/monitoring_v3/classes.rb +213 -0
  76. data/generated/google/apis/monitoring_v3/representations.rb +61 -0
  77. data/generated/google/apis/monitoring_v3/service.rb +4 -4
  78. data/generated/google/apis/people_v1.rb +1 -1
  79. data/generated/google/apis/people_v1/classes.rb +37 -0
  80. data/generated/google/apis/people_v1/representations.rb +18 -0
  81. data/generated/google/apis/runtimeconfig_v1.rb +1 -1
  82. data/generated/google/apis/runtimeconfig_v1/classes.rb +1 -1
  83. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  84. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +1 -1
  85. data/generated/google/apis/runtimeconfig_v1beta1/service.rb +4 -4
  86. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  87. data/generated/google/apis/servicecontrol_v1/classes.rb +13 -3
  88. data/generated/google/apis/servicecontrol_v1/representations.rb +1 -0
  89. data/generated/google/apis/slides_v1.rb +1 -1
  90. data/generated/google/apis/slides_v1/classes.rb +10 -1
  91. data/generated/google/apis/speech_v1.rb +1 -1
  92. data/generated/google/apis/speech_v1/classes.rb +1 -1
  93. data/generated/google/apis/speech_v1beta1.rb +1 -1
  94. data/generated/google/apis/speech_v1beta1/classes.rb +1 -1
  95. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  96. data/generated/google/apis/storagetransfer_v1/classes.rb +5 -3
  97. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  98. data/generated/google/apis/toolresults_v1beta3/service.rb +48 -0
  99. data/generated/google/apis/toolresults_v1beta3firstparty.rb +1 -1
  100. data/generated/google/apis/toolresults_v1beta3firstparty/service.rb +48 -0
  101. data/generated/google/apis/vault_v1.rb +1 -1
  102. data/generated/google/apis/vault_v1/classes.rb +2 -2
  103. data/generated/google/apis/vault_v1/service.rb +2 -2
  104. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  105. data/generated/google/apis/youtube_partner_v1/classes.rb +137 -0
  106. data/generated/google/apis/youtube_partner_v1/representations.rb +62 -0
  107. data/generated/google/apis/youtube_partner_v1/service.rb +80 -0
  108. data/lib/google/apis/version.rb +1 -1
  109. metadata +10 -2
@@ -0,0 +1,191 @@
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 DatastoreV1beta1
24
+
25
+ class GoogleDatastoreAdminV1beta1CommonMetadata
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class GoogleDatastoreAdminV1beta1EntityFilter
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class GoogleDatastoreAdminV1beta1ExportEntitiesMetadata
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class GoogleDatastoreAdminV1beta1ExportEntitiesRequest
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class GoogleDatastoreAdminV1beta1ExportEntitiesResponse
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class GoogleDatastoreAdminV1beta1ImportEntitiesMetadata
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class GoogleDatastoreAdminV1beta1ImportEntitiesRequest
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class GoogleDatastoreAdminV1beta1Progress
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class GoogleLongrunningOperation
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class Status
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class GoogleDatastoreAdminV1beta1CommonMetadata
86
+ # @private
87
+ class Representation < Google::Apis::Core::JsonRepresentation
88
+ property :end_time, as: 'endTime'
89
+ hash :labels, as: 'labels'
90
+ property :operation_type, as: 'operationType'
91
+ property :start_time, as: 'startTime'
92
+ property :state, as: 'state'
93
+ end
94
+ end
95
+
96
+ class GoogleDatastoreAdminV1beta1EntityFilter
97
+ # @private
98
+ class Representation < Google::Apis::Core::JsonRepresentation
99
+ collection :kinds, as: 'kinds'
100
+ collection :namespace_ids, as: 'namespaceIds'
101
+ end
102
+ end
103
+
104
+ class GoogleDatastoreAdminV1beta1ExportEntitiesMetadata
105
+ # @private
106
+ class Representation < Google::Apis::Core::JsonRepresentation
107
+ property :common, as: 'common', class: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1CommonMetadata, decorator: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1CommonMetadata::Representation
108
+
109
+ property :entity_filter, as: 'entityFilter', class: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1EntityFilter, decorator: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1EntityFilter::Representation
110
+
111
+ property :output_url_prefix, as: 'outputUrlPrefix'
112
+ property :progress_bytes, as: 'progressBytes', class: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1Progress, decorator: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1Progress::Representation
113
+
114
+ property :progress_entities, as: 'progressEntities', class: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1Progress, decorator: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1Progress::Representation
115
+
116
+ end
117
+ end
118
+
119
+ class GoogleDatastoreAdminV1beta1ExportEntitiesRequest
120
+ # @private
121
+ class Representation < Google::Apis::Core::JsonRepresentation
122
+ property :entity_filter, as: 'entityFilter', class: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1EntityFilter, decorator: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1EntityFilter::Representation
123
+
124
+ hash :labels, as: 'labels'
125
+ property :output_url_prefix, as: 'outputUrlPrefix'
126
+ end
127
+ end
128
+
129
+ class GoogleDatastoreAdminV1beta1ExportEntitiesResponse
130
+ # @private
131
+ class Representation < Google::Apis::Core::JsonRepresentation
132
+ property :output_url, as: 'outputUrl'
133
+ end
134
+ end
135
+
136
+ class GoogleDatastoreAdminV1beta1ImportEntitiesMetadata
137
+ # @private
138
+ class Representation < Google::Apis::Core::JsonRepresentation
139
+ property :common, as: 'common', class: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1CommonMetadata, decorator: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1CommonMetadata::Representation
140
+
141
+ property :entity_filter, as: 'entityFilter', class: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1EntityFilter, decorator: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1EntityFilter::Representation
142
+
143
+ property :input_url, as: 'inputUrl'
144
+ property :progress_bytes, as: 'progressBytes', class: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1Progress, decorator: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1Progress::Representation
145
+
146
+ property :progress_entities, as: 'progressEntities', class: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1Progress, decorator: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1Progress::Representation
147
+
148
+ end
149
+ end
150
+
151
+ class GoogleDatastoreAdminV1beta1ImportEntitiesRequest
152
+ # @private
153
+ class Representation < Google::Apis::Core::JsonRepresentation
154
+ property :entity_filter, as: 'entityFilter', class: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1EntityFilter, decorator: Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1EntityFilter::Representation
155
+
156
+ property :input_url, as: 'inputUrl'
157
+ hash :labels, as: 'labels'
158
+ end
159
+ end
160
+
161
+ class GoogleDatastoreAdminV1beta1Progress
162
+ # @private
163
+ class Representation < Google::Apis::Core::JsonRepresentation
164
+ property :work_completed, :numeric_string => true, as: 'workCompleted'
165
+ property :work_estimated, :numeric_string => true, as: 'workEstimated'
166
+ end
167
+ end
168
+
169
+ class GoogleLongrunningOperation
170
+ # @private
171
+ class Representation < Google::Apis::Core::JsonRepresentation
172
+ property :done, as: 'done'
173
+ property :error, as: 'error', class: Google::Apis::DatastoreV1beta1::Status, decorator: Google::Apis::DatastoreV1beta1::Status::Representation
174
+
175
+ hash :metadata, as: 'metadata'
176
+ property :name, as: 'name'
177
+ hash :response, as: 'response'
178
+ end
179
+ end
180
+
181
+ class Status
182
+ # @private
183
+ class Representation < Google::Apis::Core::JsonRepresentation
184
+ property :code, as: 'code'
185
+ collection :details, as: 'details'
186
+ property :message, as: 'message'
187
+ end
188
+ end
189
+ end
190
+ end
191
+ end
@@ -0,0 +1,137 @@
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 DatastoreV1beta1
23
+ # Google Cloud Datastore API
24
+ #
25
+ # Accesses the schemaless NoSQL database to provide fully managed, robust,
26
+ # scalable storage for your application.
27
+ #
28
+ # @example
29
+ # require 'google/apis/datastore_v1beta1'
30
+ #
31
+ # Datastore = Google::Apis::DatastoreV1beta1 # Alias the module
32
+ # service = Datastore::DatastoreService.new
33
+ #
34
+ # @see https://cloud.google.com/datastore/
35
+ class DatastoreService < Google::Apis::Core::BaseService
36
+ # @return [String]
37
+ # API key. Your API key identifies your project and provides you with API access,
38
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
39
+ attr_accessor :key
40
+
41
+ # @return [String]
42
+ # Available to use for quota purposes for server-side applications. Can be any
43
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
44
+ attr_accessor :quota_user
45
+
46
+ def initialize
47
+ super('https://datastore.googleapis.com/', '')
48
+ @batch_path = 'batch'
49
+ end
50
+
51
+ # Exports a copy of all or a subset of entities from Google Cloud Datastore
52
+ # to another storage system, such as Google Cloud Storage. Recent updates to
53
+ # entities may not be reflected in the export. The export occurs in the
54
+ # background and its progress can be monitored and managed via the
55
+ # Operation resource that is created. The output of an export may only be
56
+ # used once the associated operation is done. If an export operation is
57
+ # cancelled before completion it may leave partial data behind in Google
58
+ # Cloud Storage.
59
+ # @param [String] project_id
60
+ # Project ID against which to make the request.
61
+ # @param [Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1ExportEntitiesRequest] google_datastore_admin_v1beta1_export_entities_request_object
62
+ # @param [String] fields
63
+ # Selector specifying which fields to include in a partial response.
64
+ # @param [String] quota_user
65
+ # Available to use for quota purposes for server-side applications. Can be any
66
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
67
+ # @param [Google::Apis::RequestOptions] options
68
+ # Request-specific options
69
+ #
70
+ # @yield [result, err] Result & error if block supplied
71
+ # @yieldparam result [Google::Apis::DatastoreV1beta1::GoogleLongrunningOperation] parsed result object
72
+ # @yieldparam err [StandardError] error object if request failed
73
+ #
74
+ # @return [Google::Apis::DatastoreV1beta1::GoogleLongrunningOperation]
75
+ #
76
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
77
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
78
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
79
+ def export_project(project_id, google_datastore_admin_v1beta1_export_entities_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
80
+ command = make_simple_command(:post, 'v1beta1/projects/{projectId}:export', options)
81
+ command.request_representation = Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1ExportEntitiesRequest::Representation
82
+ command.request_object = google_datastore_admin_v1beta1_export_entities_request_object
83
+ command.response_representation = Google::Apis::DatastoreV1beta1::GoogleLongrunningOperation::Representation
84
+ command.response_class = Google::Apis::DatastoreV1beta1::GoogleLongrunningOperation
85
+ command.params['projectId'] = project_id unless project_id.nil?
86
+ command.query['fields'] = fields unless fields.nil?
87
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
88
+ execute_or_queue_command(command, &block)
89
+ end
90
+
91
+ # Imports entities into Google Cloud Datastore. Existing entities with the
92
+ # same key are overwritten. The import occurs in the background and its
93
+ # progress can be monitored and managed via the Operation resource that is
94
+ # created. If an ImportEntities operation is cancelled, it is possible
95
+ # that a subset of the data has already been imported to Cloud Datastore.
96
+ # @param [String] project_id
97
+ # Project ID against which to make the request.
98
+ # @param [Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1ImportEntitiesRequest] google_datastore_admin_v1beta1_import_entities_request_object
99
+ # @param [String] fields
100
+ # Selector specifying which fields to include in a partial response.
101
+ # @param [String] quota_user
102
+ # Available to use for quota purposes for server-side applications. Can be any
103
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
104
+ # @param [Google::Apis::RequestOptions] options
105
+ # Request-specific options
106
+ #
107
+ # @yield [result, err] Result & error if block supplied
108
+ # @yieldparam result [Google::Apis::DatastoreV1beta1::GoogleLongrunningOperation] parsed result object
109
+ # @yieldparam err [StandardError] error object if request failed
110
+ #
111
+ # @return [Google::Apis::DatastoreV1beta1::GoogleLongrunningOperation]
112
+ #
113
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
114
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
115
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
116
+ def import_project(project_id, google_datastore_admin_v1beta1_import_entities_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
117
+ command = make_simple_command(:post, 'v1beta1/projects/{projectId}:import', options)
118
+ command.request_representation = Google::Apis::DatastoreV1beta1::GoogleDatastoreAdminV1beta1ImportEntitiesRequest::Representation
119
+ command.request_object = google_datastore_admin_v1beta1_import_entities_request_object
120
+ command.response_representation = Google::Apis::DatastoreV1beta1::GoogleLongrunningOperation::Representation
121
+ command.response_class = Google::Apis::DatastoreV1beta1::GoogleLongrunningOperation
122
+ command.params['projectId'] = project_id unless project_id.nil?
123
+ command.query['fields'] = fields unless fields.nil?
124
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
125
+ execute_or_queue_command(command, &block)
126
+ end
127
+
128
+ protected
129
+
130
+ def apply_command_defaults(command)
131
+ command.query['key'] = key unless key.nil?
132
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
133
+ end
134
+ end
135
+ end
136
+ end
137
+ end
@@ -51,7 +51,7 @@ module Google
51
51
 
52
52
  def initialize
53
53
  super('https://www.googleapis.com/', 'deploymentmanager/v2beta/projects/')
54
- @batch_path = 'batch'
54
+ @batch_path = 'batch/deploymentmanager/v2beta'
55
55
  end
56
56
 
57
57
  # Deletes a composite type.
@@ -27,7 +27,7 @@ module Google
27
27
  # @see https://cloud.google.com/dlp/docs/
28
28
  module DlpV2beta1
29
29
  VERSION = 'V2beta1'
30
- REVISION = '20170822'
30
+ REVISION = '20170830'
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'
@@ -66,7 +66,7 @@ module Google
66
66
  include Google::Apis::Core::Hashable
67
67
 
68
68
  # If the value is `false`, it means the operation is still in progress.
69
- # If true, the operation is completed, and either `error` or `response` is
69
+ # If `true`, the operation is completed, and either `error` or `response` is
70
70
  # available.
71
71
  # Corresponds to the JSON property `done`
72
72
  # @return [Boolean]
@@ -280,16 +280,16 @@ module Google
280
280
  # Returns list of results for given inspect operation result set id.
281
281
  # @param [String] name
282
282
  # Identifier of the results set returned as metadata of
283
- # the longrunning operation created by a call to CreateInspectOperation.
283
+ # the longrunning operation created by a call to InspectDataSource.
284
284
  # Should be in the format of `inspect/results/`id``.
285
285
  # @param [String] filter
286
286
  # Restricts findings to items that match. Supports info_type and likelihood.
287
- # <p>Examples:<br/>
288
- # <li>info_type=EMAIL_ADDRESS
289
- # <li>info_type=PHONE_NUMBER,EMAIL_ADDRESS
290
- # <li>likelihood=VERY_LIKELY
291
- # <li>likelihood=VERY_LIKELY,LIKELY
292
- # <li>info_type=EMAIL_ADDRESS,likelihood=VERY_LIKELY,LIKELY
287
+ # Examples:
288
+ # - info_type=EMAIL_ADDRESS
289
+ # - info_type=PHONE_NUMBER,EMAIL_ADDRESS
290
+ # - likelihood=VERY_LIKELY
291
+ # - likelihood=VERY_LIKELY,LIKELY
292
+ # - info_type=EMAIL_ADDRESS,likelihood=VERY_LIKELY,LIKELY
293
293
  # @param [Fixnum] page_size
294
294
  # Maximum number of results to return.
295
295
  # If 0, the implementation selects a reasonable value.
@@ -327,6 +327,141 @@ module Google
327
327
  execute_or_queue_command(command, &block)
328
328
  end
329
329
 
330
+ # Cancels an operation. Use the get method to check whether the cancellation
331
+ # succeeded or whether the operation completed despite cancellation.
332
+ # @param [String] name
333
+ # The name of the operation resource to be cancelled.
334
+ # @param [Google::Apis::DlpV2beta1::GoogleLongrunningCancelOperationRequest] google_longrunning_cancel_operation_request_object
335
+ # @param [String] fields
336
+ # Selector specifying which fields to include in a partial response.
337
+ # @param [String] quota_user
338
+ # Available to use for quota purposes for server-side applications. Can be any
339
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
340
+ # @param [Google::Apis::RequestOptions] options
341
+ # Request-specific options
342
+ #
343
+ # @yield [result, err] Result & error if block supplied
344
+ # @yieldparam result [Google::Apis::DlpV2beta1::GoogleProtobufEmpty] parsed result object
345
+ # @yieldparam err [StandardError] error object if request failed
346
+ #
347
+ # @return [Google::Apis::DlpV2beta1::GoogleProtobufEmpty]
348
+ #
349
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
350
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
351
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
352
+ def cancel_risk_analysis_operation(name, google_longrunning_cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
353
+ command = make_simple_command(:post, 'v2beta1/{+name}:cancel', options)
354
+ command.request_representation = Google::Apis::DlpV2beta1::GoogleLongrunningCancelOperationRequest::Representation
355
+ command.request_object = google_longrunning_cancel_operation_request_object
356
+ command.response_representation = Google::Apis::DlpV2beta1::GoogleProtobufEmpty::Representation
357
+ command.response_class = Google::Apis::DlpV2beta1::GoogleProtobufEmpty
358
+ command.params['name'] = name unless name.nil?
359
+ command.query['fields'] = fields unless fields.nil?
360
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
361
+ execute_or_queue_command(command, &block)
362
+ end
363
+
364
+ # This method is not supported and the server returns `UNIMPLEMENTED`.
365
+ # @param [String] name
366
+ # The name of the operation resource to be deleted.
367
+ # @param [String] fields
368
+ # Selector specifying which fields to include in a partial response.
369
+ # @param [String] quota_user
370
+ # Available to use for quota purposes for server-side applications. Can be any
371
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
372
+ # @param [Google::Apis::RequestOptions] options
373
+ # Request-specific options
374
+ #
375
+ # @yield [result, err] Result & error if block supplied
376
+ # @yieldparam result [Google::Apis::DlpV2beta1::GoogleProtobufEmpty] parsed result object
377
+ # @yieldparam err [StandardError] error object if request failed
378
+ #
379
+ # @return [Google::Apis::DlpV2beta1::GoogleProtobufEmpty]
380
+ #
381
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
382
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
383
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
384
+ def delete_risk_analysis_operation(name, fields: nil, quota_user: nil, options: nil, &block)
385
+ command = make_simple_command(:delete, 'v2beta1/{+name}', options)
386
+ command.response_representation = Google::Apis::DlpV2beta1::GoogleProtobufEmpty::Representation
387
+ command.response_class = Google::Apis::DlpV2beta1::GoogleProtobufEmpty
388
+ command.params['name'] = name unless name.nil?
389
+ command.query['fields'] = fields unless fields.nil?
390
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
391
+ execute_or_queue_command(command, &block)
392
+ end
393
+
394
+ # Gets the latest state of a long-running operation. Clients can use this
395
+ # method to poll the operation result at intervals as recommended by the API
396
+ # service.
397
+ # @param [String] name
398
+ # The name of the operation resource.
399
+ # @param [String] fields
400
+ # Selector specifying which fields to include in a partial response.
401
+ # @param [String] quota_user
402
+ # Available to use for quota purposes for server-side applications. Can be any
403
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
404
+ # @param [Google::Apis::RequestOptions] options
405
+ # Request-specific options
406
+ #
407
+ # @yield [result, err] Result & error if block supplied
408
+ # @yieldparam result [Google::Apis::DlpV2beta1::GoogleLongrunningOperation] parsed result object
409
+ # @yieldparam err [StandardError] error object if request failed
410
+ #
411
+ # @return [Google::Apis::DlpV2beta1::GoogleLongrunningOperation]
412
+ #
413
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
414
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
415
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
416
+ def get_risk_analysis_operation(name, fields: nil, quota_user: nil, options: nil, &block)
417
+ command = make_simple_command(:get, 'v2beta1/{+name}', options)
418
+ command.response_representation = Google::Apis::DlpV2beta1::GoogleLongrunningOperation::Representation
419
+ command.response_class = Google::Apis::DlpV2beta1::GoogleLongrunningOperation
420
+ command.params['name'] = name unless name.nil?
421
+ command.query['fields'] = fields unless fields.nil?
422
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
423
+ execute_or_queue_command(command, &block)
424
+ end
425
+
426
+ # Fetch the list of long running operations.
427
+ # @param [String] name
428
+ # The name of the operation's parent resource.
429
+ # @param [String] filter
430
+ # This parameter supports filtering by done, ie done=true or done=false.
431
+ # @param [Fixnum] page_size
432
+ # The list page size. The max allowed value is 256 and default is 100.
433
+ # @param [String] page_token
434
+ # The standard list page token.
435
+ # @param [String] fields
436
+ # Selector specifying which fields to include in a partial response.
437
+ # @param [String] quota_user
438
+ # Available to use for quota purposes for server-side applications. Can be any
439
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
440
+ # @param [Google::Apis::RequestOptions] options
441
+ # Request-specific options
442
+ #
443
+ # @yield [result, err] Result & error if block supplied
444
+ # @yieldparam result [Google::Apis::DlpV2beta1::GoogleLongrunningListOperationsResponse] parsed result object
445
+ # @yieldparam err [StandardError] error object if request failed
446
+ #
447
+ # @return [Google::Apis::DlpV2beta1::GoogleLongrunningListOperationsResponse]
448
+ #
449
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
450
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
451
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
452
+ def list_risk_analysis_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
453
+ command = make_simple_command(:get, 'v2beta1/{+name}', options)
454
+ command.response_representation = Google::Apis::DlpV2beta1::GoogleLongrunningListOperationsResponse::Representation
455
+ command.response_class = Google::Apis::DlpV2beta1::GoogleLongrunningListOperationsResponse
456
+ command.params['name'] = name unless name.nil?
457
+ command.query['filter'] = filter unless filter.nil?
458
+ command.query['pageSize'] = page_size unless page_size.nil?
459
+ command.query['pageToken'] = page_token unless page_token.nil?
460
+ command.query['fields'] = fields unless fields.nil?
461
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
462
+ execute_or_queue_command(command, &block)
463
+ end
464
+
330
465
  # Returns the list of root categories of sensitive information.
331
466
  # @param [String] language_code
332
467
  # Optional language code for localized friendly category names.