google-apis-admin_directory_v1 0.15.0 → 0.19.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -0
- data/OVERVIEW.md +3 -3
- data/lib/google/apis/admin_directory_v1/classes.rb +29 -6
- data/lib/google/apis/admin_directory_v1/gem_version.rb +2 -2
- data/lib/google/apis/admin_directory_v1/representations.rb +2 -0
- data/lib/google/apis/admin_directory_v1/service.rb +21 -9
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 520a158fe99862198408ed62c5161db7b40c9b78217f686346f1523ad990df91
|
4
|
+
data.tar.gz: 365f17cfa3c98d6d450a932c2b47219908fb1421f1b3a72e5782f0d0794fe286
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6aeef95127df2516eb0d64cc4d249fccf5691cb4cc7e01f5a86cb35cec869e356a9a35ec181e7a59a7e69090d7468858eda12f3489abf85db677b3b98e61ad7
|
7
|
+
data.tar.gz: a00a7b1db9c70a052add6c40a4ee2f45cdbcf038879676223388297c084d48cdd3c485076df009b5d9c066e4ee5ec11669993dedaf6df8bfc5f0dd3551d83aff
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
# Release history for google-apis-admin_directory_v1
|
2
2
|
|
3
|
+
### v0.19.0 (2021-12-23)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20211221
|
6
|
+
* Unspecified changes
|
7
|
+
|
8
|
+
### v0.18.0 (2021-12-08)
|
9
|
+
|
10
|
+
* Regenerated from discovery document revision 20211207
|
11
|
+
|
12
|
+
### v0.17.0 (2021-11-10)
|
13
|
+
|
14
|
+
* Regenerated from discovery document revision 20211109
|
15
|
+
|
16
|
+
### v0.16.0 (2021-10-20)
|
17
|
+
|
18
|
+
* Regenerated from discovery document revision 20211014
|
19
|
+
|
3
20
|
### v0.15.0 (2021-09-29)
|
4
21
|
|
5
22
|
* Regenerated from discovery document revision 20210928
|
data/OVERVIEW.md
CHANGED
@@ -51,7 +51,7 @@ require "google/apis/admin_directory_v1"
|
|
51
51
|
client = Google::Apis::AdminDirectoryV1::DirectoryService.new
|
52
52
|
|
53
53
|
# Authenticate calls
|
54
|
-
client.
|
54
|
+
client.authorization = # ... use the googleauth gem to create credentials
|
55
55
|
```
|
56
56
|
|
57
57
|
See the class reference docs for information on the methods you can call from a client.
|
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
|
|
60
60
|
|
61
61
|
More detailed descriptions of the Google simple REST clients are available in two documents.
|
62
62
|
|
63
|
-
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
64
|
-
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
63
|
+
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
|
64
|
+
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
|
65
65
|
|
66
66
|
(Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Admin service in particular.)
|
67
67
|
|
@@ -891,6 +891,16 @@ module Google
|
|
891
891
|
# @return [String]
|
892
892
|
attr_accessor :order_number
|
893
893
|
|
894
|
+
# The unique ID of the organizational unit. orgUnitPath is the human readable
|
895
|
+
# version of orgUnitId. While orgUnitPath may change by renaming an
|
896
|
+
# organizational unit within the path, orgUnitId is unchangeable for one
|
897
|
+
# organizational unit. This property can be [updated](/admin-sdk/directory/v1/
|
898
|
+
# guides/manage-chrome-devices#update_chrome_device) using the API, and this
|
899
|
+
# will be supported in the future.
|
900
|
+
# Corresponds to the JSON property `orgUnitId`
|
901
|
+
# @return [String]
|
902
|
+
attr_accessor :org_unit_id
|
903
|
+
|
894
904
|
# The full parent path with the organizational unit's name associated with the
|
895
905
|
# device. Path names are case insensitive. If the parent organizational unit is
|
896
906
|
# the top-level organization, it is represented as a forward slash, `/`. This
|
@@ -994,6 +1004,7 @@ module Google
|
|
994
1004
|
@model = args[:model] if args.key?(:model)
|
995
1005
|
@notes = args[:notes] if args.key?(:notes)
|
996
1006
|
@order_number = args[:order_number] if args.key?(:order_number)
|
1007
|
+
@org_unit_id = args[:org_unit_id] if args.key?(:org_unit_id)
|
997
1008
|
@org_unit_path = args[:org_unit_path] if args.key?(:org_unit_path)
|
998
1009
|
@os_version = args[:os_version] if args.key?(:os_version)
|
999
1010
|
@platform_version = args[:platform_version] if args.key?(:platform_version)
|
@@ -2874,7 +2885,8 @@ module Google
|
|
2874
2885
|
# Managing your account's organizational units allows you to configure your
|
2875
2886
|
# users' access to services and custom settings. For more information about
|
2876
2887
|
# common organizational unit tasks, see the [Developer's Guide](/admin-sdk/
|
2877
|
-
# directory/v1/guides/manage-org-units.html).
|
2888
|
+
# directory/v1/guides/manage-org-units.html). The customer's organizational unit
|
2889
|
+
# hierarchy is limited to 35 levels of depth.
|
2878
2890
|
class OrgUnit
|
2879
2891
|
include Google::Apis::Core::Hashable
|
2880
2892
|
|
@@ -4388,19 +4400,29 @@ module Google
|
|
4388
4400
|
class UserLanguage
|
4389
4401
|
include Google::Apis::Core::Hashable
|
4390
4402
|
|
4391
|
-
# Other language. User can provide own language name if there is no
|
4392
|
-
# corresponding
|
4393
|
-
# set
|
4403
|
+
# Other language. User can provide their own language name if there is no
|
4404
|
+
# corresponding ISO 639 language code. If this is set, `languageCode` can't be
|
4405
|
+
# set.
|
4394
4406
|
# Corresponds to the JSON property `customLanguage`
|
4395
4407
|
# @return [String]
|
4396
4408
|
attr_accessor :custom_language
|
4397
4409
|
|
4398
|
-
#
|
4399
|
-
#
|
4410
|
+
# ISO 639 string representation of a language. See [Language Codes](/admin-sdk/
|
4411
|
+
# directory/v1/languages) for the list of supported codes. Valid language codes
|
4412
|
+
# outside the supported set will be accepted by the API but may lead to
|
4413
|
+
# unexpected behavior. Illegal values cause `SchemaException`. If this is set, `
|
4414
|
+
# customLanguage` can't be set.
|
4400
4415
|
# Corresponds to the JSON property `languageCode`
|
4401
4416
|
# @return [String]
|
4402
4417
|
attr_accessor :language_code
|
4403
4418
|
|
4419
|
+
# Optional. If present, controls whether the specified `languageCode` is the
|
4420
|
+
# user's preferred language. If `customLanguage` is set, this can't be set.
|
4421
|
+
# Allowed values are `preferred` and `not_preferred`.
|
4422
|
+
# Corresponds to the JSON property `preference`
|
4423
|
+
# @return [String]
|
4424
|
+
attr_accessor :preference
|
4425
|
+
|
4404
4426
|
def initialize(**args)
|
4405
4427
|
update!(**args)
|
4406
4428
|
end
|
@@ -4409,6 +4431,7 @@ module Google
|
|
4409
4431
|
def update!(**args)
|
4410
4432
|
@custom_language = args[:custom_language] if args.key?(:custom_language)
|
4411
4433
|
@language_code = args[:language_code] if args.key?(:language_code)
|
4434
|
+
@preference = args[:preference] if args.key?(:preference)
|
4412
4435
|
end
|
4413
4436
|
end
|
4414
4437
|
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module AdminDirectoryV1
|
18
18
|
# Version of the google-apis-admin_directory_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.19.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20211221"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -853,6 +853,7 @@ module Google
|
|
853
853
|
property :model, as: 'model'
|
854
854
|
property :notes, as: 'notes'
|
855
855
|
property :order_number, as: 'orderNumber'
|
856
|
+
property :org_unit_id, as: 'orgUnitId'
|
856
857
|
property :org_unit_path, as: 'orgUnitPath'
|
857
858
|
property :os_version, as: 'osVersion'
|
858
859
|
property :platform_version, as: 'platformVersion'
|
@@ -1707,6 +1708,7 @@ module Google
|
|
1707
1708
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1708
1709
|
property :custom_language, as: 'customLanguage'
|
1709
1710
|
property :language_code, as: 'languageCode'
|
1711
|
+
property :preference, as: 'preference'
|
1710
1712
|
end
|
1711
1713
|
end
|
1712
1714
|
|
@@ -271,12 +271,16 @@ module Google
|
|
271
271
|
# administrator, you can also use the `my_customer` alias to represent your
|
272
272
|
# account's `customerId`. The `customerId` is also returned as part of the [
|
273
273
|
# Users resource](/admin-sdk/directory/v1/reference/users).
|
274
|
+
# @param [Boolean] include_child_orgunits
|
275
|
+
# Return devices from all child orgunits, as well as the specified org unit. If
|
276
|
+
# this is set to true 'orgUnitPath' must be provided.
|
274
277
|
# @param [Fixnum] max_results
|
275
278
|
# Maximum number of results to return.
|
276
279
|
# @param [String] order_by
|
277
280
|
# Device property to use for sorting results.
|
278
281
|
# @param [String] org_unit_path
|
279
|
-
# The full path of the organizational unit or its unique
|
282
|
+
# The full path of the organizational unit (minus the leading `/`) or its unique
|
283
|
+
# ID.
|
280
284
|
# @param [String] page_token
|
281
285
|
# The `pageToken` query parameter is used to request the next page of query
|
282
286
|
# results. The follow-on request's `pageToken` query parameter is the `
|
@@ -284,8 +288,8 @@ module Google
|
|
284
288
|
# @param [String] projection
|
285
289
|
# Restrict information returned to a set of selected fields.
|
286
290
|
# @param [String] query
|
287
|
-
# Search string in the format given at
|
288
|
-
#
|
291
|
+
# Search string in the format given at https://developers.google.com/admin-sdk/
|
292
|
+
# directory/v1/list-query-operators
|
289
293
|
# @param [String] sort_order
|
290
294
|
# Whether to return results in ascending or descending order. Must be used with
|
291
295
|
# the `orderBy` parameter.
|
@@ -306,11 +310,12 @@ module Google
|
|
306
310
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
307
311
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
308
312
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
309
|
-
def list_chrome_os_devices(customer_id, max_results: nil, order_by: nil, org_unit_path: nil, page_token: nil, projection: nil, query: nil, sort_order: nil, fields: nil, quota_user: nil, options: nil, &block)
|
313
|
+
def list_chrome_os_devices(customer_id, include_child_orgunits: nil, max_results: nil, order_by: nil, org_unit_path: nil, page_token: nil, projection: nil, query: nil, sort_order: nil, fields: nil, quota_user: nil, options: nil, &block)
|
310
314
|
command = make_simple_command(:get, 'admin/directory/v1/customer/{customerId}/devices/chromeos', options)
|
311
315
|
command.response_representation = Google::Apis::AdminDirectoryV1::ChromeOsDevices::Representation
|
312
316
|
command.response_class = Google::Apis::AdminDirectoryV1::ChromeOsDevices
|
313
317
|
command.params['customerId'] = customer_id unless customer_id.nil?
|
318
|
+
command.query['includeChildOrgunits'] = include_child_orgunits unless include_child_orgunits.nil?
|
314
319
|
command.query['maxResults'] = max_results unless max_results.nil?
|
315
320
|
command.query['orderBy'] = order_by unless order_by.nil?
|
316
321
|
command.query['orgUnitPath'] = org_unit_path unless org_unit_path.nil?
|
@@ -1860,7 +1865,10 @@ module Google
|
|
1860
1865
|
execute_or_queue_command(command, &block)
|
1861
1866
|
end
|
1862
1867
|
|
1863
|
-
# Retrieves a paginated list of all mobile devices for an account.
|
1868
|
+
# Retrieves a paginated list of all user-owned mobile devices for an account. To
|
1869
|
+
# retrieve a list that includes company-owned devices, use the Cloud Identity [
|
1870
|
+
# Devices API](https://cloud.google.com/identity/docs/concepts/overview-devices)
|
1871
|
+
# instead.
|
1864
1872
|
# @param [String] customer_id
|
1865
1873
|
# The unique ID for the customer's Google Workspace account. As an account
|
1866
1874
|
# administrator, you can also use the `my_customer` alias to represent your
|
@@ -1920,7 +1928,8 @@ module Google
|
|
1920
1928
|
# account's `customerId`. The `customerId` is also returned as part of the [
|
1921
1929
|
# Users resource](/admin-sdk/directory/v1/reference/users).
|
1922
1930
|
# @param [String] org_unit_path
|
1923
|
-
# The full path of the organizational unit or its unique
|
1931
|
+
# The full path of the organizational unit (minus the leading `/`) or its unique
|
1932
|
+
# ID.
|
1924
1933
|
# @param [String] fields
|
1925
1934
|
# Selector specifying which fields to include in a partial response.
|
1926
1935
|
# @param [String] quota_user
|
@@ -1954,7 +1963,8 @@ module Google
|
|
1954
1963
|
# account's `customerId`. The `customerId` is also returned as part of the [
|
1955
1964
|
# Users resource](/admin-sdk/directory/v1/reference/users).
|
1956
1965
|
# @param [String] org_unit_path
|
1957
|
-
# The full path of the organizational unit or its unique
|
1966
|
+
# The full path of the organizational unit (minus the leading `/`) or its unique
|
1967
|
+
# ID.
|
1958
1968
|
# @param [String] fields
|
1959
1969
|
# Selector specifying which fields to include in a partial response.
|
1960
1970
|
# @param [String] quota_user
|
@@ -2067,7 +2077,8 @@ module Google
|
|
2067
2077
|
# account's `customerId`. The `customerId` is also returned as part of the [
|
2068
2078
|
# Users resource](/admin-sdk/directory/v1/reference/users).
|
2069
2079
|
# @param [String] org_unit_path
|
2070
|
-
# The full path of the organizational unit or its unique
|
2080
|
+
# The full path of the organizational unit (minus the leading `/`) or its unique
|
2081
|
+
# ID.
|
2071
2082
|
# @param [Google::Apis::AdminDirectoryV1::OrgUnit] org_unit_object
|
2072
2083
|
# @param [String] fields
|
2073
2084
|
# Selector specifying which fields to include in a partial response.
|
@@ -2106,7 +2117,8 @@ module Google
|
|
2106
2117
|
# account's `customerId`. The `customerId` is also returned as part of the [
|
2107
2118
|
# Users resource](/admin-sdk/directory/v1/reference/users).
|
2108
2119
|
# @param [String] org_unit_path
|
2109
|
-
# The full path of the organizational unit or its unique
|
2120
|
+
# The full path of the organizational unit (minus the leading `/`) or its unique
|
2121
|
+
# ID.
|
2110
2122
|
# @param [Google::Apis::AdminDirectoryV1::OrgUnit] org_unit_object
|
2111
2123
|
# @param [String] fields
|
2112
2124
|
# Selector specifying which fields to include in a partial response.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-admin_directory_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.19.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:
|
11
|
+
date: 2022-01-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -57,9 +57,9 @@ licenses:
|
|
57
57
|
- Apache-2.0
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
|
-
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-admin_directory_v1/v0.
|
62
|
-
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
60
|
+
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-admin_directory_v1/CHANGELOG.md
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-admin_directory_v1/v0.19.0
|
62
|
+
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-admin_directory_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
65
65
|
require_paths:
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.
|
78
|
+
rubygems_version: 3.3.4
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Admin SDK API DirectoryV1
|