google-apis-chromepolicy_v1 0.21.0 → 0.22.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: 25c49a5256fef4e9fb0b564116bf16a4528480924262689284ee7364c055c817
4
- data.tar.gz: 5e25b5de217c66fdb26a4bd82ec416584a748293a91b3f3177b4f65458fc21b6
3
+ metadata.gz: 6846087c70aeb5ebf6dd9e60bc4204645b99d1e9d573f9bcc19fa72a87f372af
4
+ data.tar.gz: c6911a9f691537330dc6298a7799e0e2fd77b2b5d8ad165a10eadb2f43250904
5
5
  SHA512:
6
- metadata.gz: 04d66e34bde9993f6b9bf33ecb6f4e78ad7db6f9e3ed472ed21612fcf22397e5809eadccc5b8869ed221ff8d7163e1bbdbd3a3f2a50877ed2ba57040299f99e6
7
- data.tar.gz: 22b38f426286332b3c398742fa92275537589f589b074a16105e7888da674b1b24b6e171a383f29323de9ffa80d95653d9b26dad012fefa242d66517e3fb21eb
6
+ metadata.gz: 5131828b485ed7815deb35e45b0c585b097d9d99d3333c8ddfdfb59cfb35abe9385ae4368858d469b3a00a064a91b69b4079f8cd54c1b8a70a96d6181b48ecb4
7
+ data.tar.gz: e056099ea107ee2f96d4d6536ca7f6814489132ead51b71f2136cbc46db662d308aa1d1bbbb8ecf977de146f3fa3073a014b3f58b9aecc0297451af49b0a666d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-chromepolicy_v1
2
2
 
3
+ ### v0.22.0 (2022-07-19)
4
+
5
+ * Regenerated from discovery document revision 20220718
6
+
3
7
  ### v0.21.0 (2022-07-08)
4
8
 
5
9
  * Regenerated from discovery document revision 20220706
@@ -651,6 +651,46 @@ module Google
651
651
  end
652
652
  end
653
653
 
654
+ # Request message for uploading a file for a policy. Next ID: 5
655
+ class GoogleChromePolicyV1UploadPolicyFileRequest
656
+ include Google::Apis::Core::Hashable
657
+
658
+ # Required. The fully qualified policy schema and field name this file is
659
+ # uploaded for. This information will be used to validate the content type of
660
+ # the file.
661
+ # Corresponds to the JSON property `policyField`
662
+ # @return [String]
663
+ attr_accessor :policy_field
664
+
665
+ def initialize(**args)
666
+ update!(**args)
667
+ end
668
+
669
+ # Update properties of this object
670
+ def update!(**args)
671
+ @policy_field = args[:policy_field] if args.key?(:policy_field)
672
+ end
673
+ end
674
+
675
+ # Response message for downloading an uploaded file. Next ID: 2
676
+ class GoogleChromePolicyV1UploadPolicyFileResponse
677
+ include Google::Apis::Core::Hashable
678
+
679
+ # The uri for end user to download the file.
680
+ # Corresponds to the JSON property `downloadUri`
681
+ # @return [String]
682
+ attr_accessor :download_uri
683
+
684
+ def initialize(**args)
685
+ update!(**args)
686
+ end
687
+
688
+ # Update properties of this object
689
+ def update!(**args)
690
+ @download_uri = args[:download_uri] if args.key?(:download_uri)
691
+ end
692
+ end
693
+
654
694
  # A generic empty message that you can re-use to avoid defining duplicated empty
655
695
  # messages in your APIs. A typical example is to use it as the request or the
656
696
  # 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.21.0"
19
+ GEM_VERSION = "0.22.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.9.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220706"
25
+ REVISION = "20220718"
26
26
  end
27
27
  end
28
28
  end
@@ -130,6 +130,18 @@ module Google
130
130
  include Google::Apis::Core::JsonObjectSupport
131
131
  end
132
132
 
133
+ class GoogleChromePolicyV1UploadPolicyFileRequest
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class GoogleChromePolicyV1UploadPolicyFileResponse
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
133
145
  class GoogleProtobufEmpty
134
146
  class Representation < Google::Apis::Core::JsonRepresentation; end
135
147
 
@@ -364,6 +376,20 @@ module Google
364
376
  end
365
377
  end
366
378
 
379
+ class GoogleChromePolicyV1UploadPolicyFileRequest
380
+ # @private
381
+ class Representation < Google::Apis::Core::JsonRepresentation
382
+ property :policy_field, as: 'policyField'
383
+ end
384
+ end
385
+
386
+ class GoogleChromePolicyV1UploadPolicyFileResponse
387
+ # @private
388
+ class Representation < Google::Apis::Core::JsonRepresentation
389
+ property :download_uri, as: 'downloadUri'
390
+ end
391
+ end
392
+
367
393
  class GoogleProtobufEmpty
368
394
  # @private
369
395
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -235,6 +235,50 @@ module Google
235
235
  command.query['quotaUser'] = quota_user unless quota_user.nil?
236
236
  execute_or_queue_command(command, &block)
237
237
  end
238
+
239
+ # Creates an enterprise file from the content provided by user. Returns a public
240
+ # download url for end user.
241
+ # @param [String] customer
242
+ # Required. The customer for which the file upload will apply.
243
+ # @param [Google::Apis::ChromepolicyV1::GoogleChromePolicyV1UploadPolicyFileRequest] google_chrome_policy_v1_upload_policy_file_request_object
244
+ # @param [String] fields
245
+ # Selector specifying which fields to include in a partial response.
246
+ # @param [String] quota_user
247
+ # Available to use for quota purposes for server-side applications. Can be any
248
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
249
+ # @param [IO, String] upload_source
250
+ # IO stream or filename containing content to upload
251
+ # @param [String] content_type
252
+ # Content type of the uploaded content.
253
+ # @param [Google::Apis::RequestOptions] options
254
+ # Request-specific options
255
+ #
256
+ # @yield [result, err] Result & error if block supplied
257
+ # @yieldparam result [Google::Apis::ChromepolicyV1::GoogleChromePolicyV1UploadPolicyFileResponse] parsed result object
258
+ # @yieldparam err [StandardError] error object if request failed
259
+ #
260
+ # @return [Google::Apis::ChromepolicyV1::GoogleChromePolicyV1UploadPolicyFileResponse]
261
+ #
262
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
263
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
264
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
265
+ 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)
266
+ if upload_source.nil?
267
+ command = make_simple_command(:post, 'v1/{+customer}/policies/files:uploadPolicyFile', options)
268
+ else
269
+ command = make_upload_command(:post, 'v1/{+customer}/policies/files:uploadPolicyFile', options)
270
+ command.upload_source = upload_source
271
+ command.upload_content_type = content_type
272
+ end
273
+ command.request_representation = Google::Apis::ChromepolicyV1::GoogleChromePolicyV1UploadPolicyFileRequest::Representation
274
+ command.request_object = google_chrome_policy_v1_upload_policy_file_request_object
275
+ command.response_representation = Google::Apis::ChromepolicyV1::GoogleChromePolicyV1UploadPolicyFileResponse::Representation
276
+ command.response_class = Google::Apis::ChromepolicyV1::GoogleChromePolicyV1UploadPolicyFileResponse
277
+ command.params['customer'] = customer unless customer.nil?
278
+ command.query['fields'] = fields unless fields.nil?
279
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
280
+ execute_or_queue_command(command, &block)
281
+ end
238
282
 
239
283
  protected
240
284
 
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.21.0
4
+ version: 0.22.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: 2022-07-11 00:00:00.000000000 Z
11
+ date: 2022-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-chromepolicy_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-chromepolicy_v1/v0.21.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-chromepolicy_v1/v0.22.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-chromepolicy_v1
63
63
  post_install_message:
64
64
  rdoc_options: []