google-apis-chromepolicy_v1 0.1.0 → 0.2.0

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: 3e9c4279db1b9f7887e59f908760986d8ac852a2d966f096602e4302abca5d35
4
- data.tar.gz: a7df310d7b90dbccfdc0c1e6875297f2dcb292207929e68ce9403574ee1c7e4a
3
+ metadata.gz: 115dec5c310c6d9b6ab80c30e075a5bb336dc31dba4a1cdc577a2aaeb7fb58fe
4
+ data.tar.gz: 55b0045e629def469c785b376b4eef12d6286cc1db9ed6a18139fbfbdd911fc8
5
5
  SHA512:
6
- metadata.gz: d27fc0308ec4fb86cd9abdc2d4fd6e7c72d8c136448cac4104970edcca7089c03ddbcacc614c1cec44c9628e5d2dbd9b2aa9bd87431e47e10512c7ae5cff4379
7
- data.tar.gz: 121abcd8292044daa13b70212386d950892449a25046755e21d3afa821cfa8191f685cea26d09ed24108e912b7f9a09e4f95c6a2ed4d3117d8b86d64f58d89b1
6
+ metadata.gz: 62ee3e677874e2ce1e5af09f3ea0c2cb5b4c6af00b0af143feb382f6327c8d70dd9ee36c20269eb3b8e015115df57cb4af2ca7c1081bd8132264fe8f675a1857
7
+ data.tar.gz: f16e1fb9023de8ed15c050405069072c915f1eb09d9d6e77d1a523b886a6650025a49419e05f5a3a4b0a277410edf0f9b6fab44c2a73ecf4c79b92dec065d2a3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-chromepolicy_v1
2
2
 
3
+ ### v0.2.0 (2021-05-01)
4
+
5
+ * Regenerated from discovery document revision 20210429
6
+
3
7
  ### v0.1.0 (2021-03-09)
4
8
 
5
9
  * Regenerated from discovery document revision 20210305
@@ -527,6 +527,46 @@ module Google
527
527
  end
528
528
  end
529
529
 
530
+ # Request message for uploading a file for a policy. Next ID: 5
531
+ class GoogleChromePolicyV1UploadPolicyFileRequest
532
+ include Google::Apis::Core::Hashable
533
+
534
+ # Required. The fully qualified policy schema and field name this file is
535
+ # uploaded for. This information will be used to validate the content type of
536
+ # the file.
537
+ # Corresponds to the JSON property `policyField`
538
+ # @return [String]
539
+ attr_accessor :policy_field
540
+
541
+ def initialize(**args)
542
+ update!(**args)
543
+ end
544
+
545
+ # Update properties of this object
546
+ def update!(**args)
547
+ @policy_field = args[:policy_field] if args.key?(:policy_field)
548
+ end
549
+ end
550
+
551
+ # Response message for downloading an uploaded file. Next ID: 2
552
+ class GoogleChromePolicyV1UploadPolicyFileResponse
553
+ include Google::Apis::Core::Hashable
554
+
555
+ # The uri for end user to download the file.
556
+ # Corresponds to the JSON property `downloadUri`
557
+ # @return [String]
558
+ attr_accessor :download_uri
559
+
560
+ def initialize(**args)
561
+ update!(**args)
562
+ end
563
+
564
+ # Update properties of this object
565
+ def update!(**args)
566
+ @download_uri = args[:download_uri] if args.key?(:download_uri)
567
+ end
568
+ end
569
+
530
570
  # A generic empty message that you can re-use to avoid defining duplicated empty
531
571
  # messages in your APIs. A typical example is to use it as the request or the
532
572
  # response type of an API method. For instance: service Foo ` rpc Bar(google.
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ChromepolicyV1
18
18
  # Version of the google-apis-chromepolicy_v1 gem
19
- GEM_VERSION = "0.1.0"
19
+ GEM_VERSION = "0.2.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210305"
25
+ REVISION = "20210429"
26
26
  end
27
27
  end
28
28
  end
@@ -112,6 +112,18 @@ module Google
112
112
  include Google::Apis::Core::JsonObjectSupport
113
113
  end
114
114
 
115
+ class GoogleChromePolicyV1UploadPolicyFileRequest
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class GoogleChromePolicyV1UploadPolicyFileResponse
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
115
127
  class GoogleProtobufEmpty
116
128
  class Representation < Google::Apis::Core::JsonRepresentation; end
117
129
 
@@ -305,6 +317,20 @@ module Google
305
317
  end
306
318
  end
307
319
 
320
+ class GoogleChromePolicyV1UploadPolicyFileRequest
321
+ # @private
322
+ class Representation < Google::Apis::Core::JsonRepresentation
323
+ property :policy_field, as: 'policyField'
324
+ end
325
+ end
326
+
327
+ class GoogleChromePolicyV1UploadPolicyFileResponse
328
+ # @private
329
+ class Representation < Google::Apis::Core::JsonRepresentation
330
+ property :download_uri, as: 'downloadUri'
331
+ end
332
+ end
333
+
308
334
  class GoogleProtobufEmpty
309
335
  # @private
310
336
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -233,6 +233,50 @@ module Google
233
233
  command.query['quotaUser'] = quota_user unless quota_user.nil?
234
234
  execute_or_queue_command(command, &block)
235
235
  end
236
+
237
+ # Creates an enterprise file from the content provided by user. Returns a public
238
+ # download url for end user.
239
+ # @param [String] customer
240
+ # Required. The customer for which the file upload will apply.
241
+ # @param [Google::Apis::ChromepolicyV1::GoogleChromePolicyV1UploadPolicyFileRequest] google_chrome_policy_v1_upload_policy_file_request_object
242
+ # @param [String] fields
243
+ # Selector specifying which fields to include in a partial response.
244
+ # @param [String] quota_user
245
+ # Available to use for quota purposes for server-side applications. Can be any
246
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
247
+ # @param [IO, String] upload_source
248
+ # IO stream or filename containing content to upload
249
+ # @param [String] content_type
250
+ # Content type of the uploaded content.
251
+ # @param [Google::Apis::RequestOptions] options
252
+ # Request-specific options
253
+ #
254
+ # @yield [result, err] Result & error if block supplied
255
+ # @yieldparam result [Google::Apis::ChromepolicyV1::GoogleChromePolicyV1UploadPolicyFileResponse] parsed result object
256
+ # @yieldparam err [StandardError] error object if request failed
257
+ #
258
+ # @return [Google::Apis::ChromepolicyV1::GoogleChromePolicyV1UploadPolicyFileResponse]
259
+ #
260
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
261
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
262
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
263
+ def upload_medium(customer, google_chrome_policy_v1_upload_policy_file_request_object = nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block)
264
+ if upload_source.nil?
265
+ command = make_simple_command(:post, 'v1/{+customer}/policies/files:uploadPolicyFile', options)
266
+ else
267
+ command = make_upload_command(:post, 'v1/{+customer}/policies/files:uploadPolicyFile', options)
268
+ command.upload_source = upload_source
269
+ command.upload_content_type = content_type
270
+ end
271
+ command.request_representation = Google::Apis::ChromepolicyV1::GoogleChromePolicyV1UploadPolicyFileRequest::Representation
272
+ command.request_object = google_chrome_policy_v1_upload_policy_file_request_object
273
+ command.response_representation = Google::Apis::ChromepolicyV1::GoogleChromePolicyV1UploadPolicyFileResponse::Representation
274
+ command.response_class = Google::Apis::ChromepolicyV1::GoogleChromePolicyV1UploadPolicyFileResponse
275
+ command.params['customer'] = customer unless customer.nil?
276
+ command.query['fields'] = fields unless fields.nil?
277
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
278
+ execute_or_queue_command(command, &block)
279
+ end
236
280
 
237
281
  protected
238
282
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-chromepolicy_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-15 00:00:00.000000000 Z
11
+ date: 2021-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
54
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-chromepolicy_v1/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-chromepolicy_v1/v0.1.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-chromepolicy_v1/v0.2.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-chromepolicy_v1
57
57
  post_install_message:
58
58
  rdoc_options: []
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.2.13
72
+ rubygems_version: 3.2.17
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Simple REST client for Chrome Policy API V1