google-apis-admin_directory_v1 0.13.0 → 0.17.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 +16 -0
- data/OVERVIEW.md +2 -2
- data/lib/google/apis/admin_directory_v1/classes.rb +113 -3
- data/lib/google/apis/admin_directory_v1/gem_version.rb +2 -2
- data/lib/google/apis/admin_directory_v1/representations.rb +50 -0
- data/lib/google/apis/admin_directory_v1/service.rb +7 -3
- data/lib/google/apis/admin_directory_v1.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 55a01193ce1792a608d73d9fff7cd4760cbb0bfd35caebe5c4a1551c778e4ab1
|
4
|
+
data.tar.gz: 87cdb4420b14b73fcb592accd06c041fcb234db21d52c30e8da2c271aa3598e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7576317760c421fbea5cf3ba19209e9858606bfa656fe93b4e48fd8f6b6259c68bb4fe0043e104f2c6c14b149a755fb32303dd62474f84fb1eb39ea8be5d25e2
|
7
|
+
data.tar.gz: 24d81874dd168fa7d1dbdbb9d457eaac192c01d2a16a176748659c71968ffc8253cf293a7f120bc471940f800a926f106838f7dbbeeb445ba506b07d9dbf4926
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# Release history for google-apis-admin_directory_v1
|
2
2
|
|
3
|
+
### v0.17.0 (2021-11-10)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20211109
|
6
|
+
|
7
|
+
### v0.16.0 (2021-10-20)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20211014
|
10
|
+
|
11
|
+
### v0.15.0 (2021-09-29)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20210928
|
14
|
+
|
15
|
+
### v0.14.0 (2021-08-18)
|
16
|
+
|
17
|
+
* Regenerated from discovery document revision 20210817
|
18
|
+
|
3
19
|
### v0.13.0 (2021-07-21)
|
4
20
|
|
5
21
|
* Regenerated from discovery document revision 20210720
|
data/OVERVIEW.md
CHANGED
@@ -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
|
|
@@ -770,6 +770,11 @@ module Google
|
|
770
770
|
# @return [String]
|
771
771
|
attr_accessor :boot_mode
|
772
772
|
|
773
|
+
# Information regarding CPU specs in the device.
|
774
|
+
# Corresponds to the JSON property `cpuInfo`
|
775
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::ChromeOsDevice::CpuInfo>]
|
776
|
+
attr_accessor :cpu_info
|
777
|
+
|
773
778
|
# Reports of CPU utilization and temperature (Read-only)
|
774
779
|
# Corresponds to the JSON property `cpuStatusReports`
|
775
780
|
# @return [Array<Google::Apis::AdminDirectoryV1::ChromeOsDevice::CpuStatusReport>]
|
@@ -969,6 +974,7 @@ module Google
|
|
969
974
|
@annotated_user = args[:annotated_user] if args.key?(:annotated_user)
|
970
975
|
@auto_update_expiration = args[:auto_update_expiration] if args.key?(:auto_update_expiration)
|
971
976
|
@boot_mode = args[:boot_mode] if args.key?(:boot_mode)
|
977
|
+
@cpu_info = args[:cpu_info] if args.key?(:cpu_info)
|
972
978
|
@cpu_status_reports = args[:cpu_status_reports] if args.key?(:cpu_status_reports)
|
973
979
|
@device_files = args[:device_files] if args.key?(:device_files)
|
974
980
|
@device_id = args[:device_id] if args.key?(:device_id)
|
@@ -1027,6 +1033,107 @@ module Google
|
|
1027
1033
|
end
|
1028
1034
|
end
|
1029
1035
|
|
1036
|
+
# CPU specs for a CPU.
|
1037
|
+
class CpuInfo
|
1038
|
+
include Google::Apis::Core::Hashable
|
1039
|
+
|
1040
|
+
# The CPU architecture.
|
1041
|
+
# Corresponds to the JSON property `architecture`
|
1042
|
+
# @return [String]
|
1043
|
+
attr_accessor :architecture
|
1044
|
+
|
1045
|
+
# Information for the Logical CPUs
|
1046
|
+
# Corresponds to the JSON property `logicalCpus`
|
1047
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::ChromeOsDevice::CpuInfo::LogicalCpu>]
|
1048
|
+
attr_accessor :logical_cpus
|
1049
|
+
|
1050
|
+
# The max CPU clock speed in kHz.
|
1051
|
+
# Corresponds to the JSON property `maxClockSpeedKhz`
|
1052
|
+
# @return [Fixnum]
|
1053
|
+
attr_accessor :max_clock_speed_khz
|
1054
|
+
|
1055
|
+
# The CPU model name.
|
1056
|
+
# Corresponds to the JSON property `model`
|
1057
|
+
# @return [String]
|
1058
|
+
attr_accessor :model
|
1059
|
+
|
1060
|
+
def initialize(**args)
|
1061
|
+
update!(**args)
|
1062
|
+
end
|
1063
|
+
|
1064
|
+
# Update properties of this object
|
1065
|
+
def update!(**args)
|
1066
|
+
@architecture = args[:architecture] if args.key?(:architecture)
|
1067
|
+
@logical_cpus = args[:logical_cpus] if args.key?(:logical_cpus)
|
1068
|
+
@max_clock_speed_khz = args[:max_clock_speed_khz] if args.key?(:max_clock_speed_khz)
|
1069
|
+
@model = args[:model] if args.key?(:model)
|
1070
|
+
end
|
1071
|
+
|
1072
|
+
# Status of a single logical CPU.
|
1073
|
+
class LogicalCpu
|
1074
|
+
include Google::Apis::Core::Hashable
|
1075
|
+
|
1076
|
+
# C-States indicate the power consumption state of the CPU. For more information
|
1077
|
+
# look at documentation published by the CPU maker.
|
1078
|
+
# Corresponds to the JSON property `cStates`
|
1079
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::ChromeOsDevice::CpuInfo::LogicalCpu::CState>]
|
1080
|
+
attr_accessor :c_states
|
1081
|
+
|
1082
|
+
# Current frequency the CPU is running at.
|
1083
|
+
# Corresponds to the JSON property `currentScalingFrequencyKhz`
|
1084
|
+
# @return [Fixnum]
|
1085
|
+
attr_accessor :current_scaling_frequency_khz
|
1086
|
+
|
1087
|
+
# Idle time since last boot.
|
1088
|
+
# Corresponds to the JSON property `idleDuration`
|
1089
|
+
# @return [String]
|
1090
|
+
attr_accessor :idle_duration
|
1091
|
+
|
1092
|
+
# Maximum frequency the CPU is allowed to run at, by policy.
|
1093
|
+
# Corresponds to the JSON property `maxScalingFrequencyKhz`
|
1094
|
+
# @return [Fixnum]
|
1095
|
+
attr_accessor :max_scaling_frequency_khz
|
1096
|
+
|
1097
|
+
def initialize(**args)
|
1098
|
+
update!(**args)
|
1099
|
+
end
|
1100
|
+
|
1101
|
+
# Update properties of this object
|
1102
|
+
def update!(**args)
|
1103
|
+
@c_states = args[:c_states] if args.key?(:c_states)
|
1104
|
+
@current_scaling_frequency_khz = args[:current_scaling_frequency_khz] if args.key?(:current_scaling_frequency_khz)
|
1105
|
+
@idle_duration = args[:idle_duration] if args.key?(:idle_duration)
|
1106
|
+
@max_scaling_frequency_khz = args[:max_scaling_frequency_khz] if args.key?(:max_scaling_frequency_khz)
|
1107
|
+
end
|
1108
|
+
|
1109
|
+
# Status of a single C-state. C-states are various modes the CPU can transition
|
1110
|
+
# to in order to use more or less power.
|
1111
|
+
class CState
|
1112
|
+
include Google::Apis::Core::Hashable
|
1113
|
+
|
1114
|
+
# Name of the state.
|
1115
|
+
# Corresponds to the JSON property `displayName`
|
1116
|
+
# @return [String]
|
1117
|
+
attr_accessor :display_name
|
1118
|
+
|
1119
|
+
# Time spent in the state since the last reboot.
|
1120
|
+
# Corresponds to the JSON property `sessionDuration`
|
1121
|
+
# @return [String]
|
1122
|
+
attr_accessor :session_duration
|
1123
|
+
|
1124
|
+
def initialize(**args)
|
1125
|
+
update!(**args)
|
1126
|
+
end
|
1127
|
+
|
1128
|
+
# Update properties of this object
|
1129
|
+
def update!(**args)
|
1130
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
1131
|
+
@session_duration = args[:session_duration] if args.key?(:session_duration)
|
1132
|
+
end
|
1133
|
+
end
|
1134
|
+
end
|
1135
|
+
end
|
1136
|
+
|
1030
1137
|
#
|
1031
1138
|
class CpuStatusReport
|
1032
1139
|
include Google::Apis::Core::Hashable
|
@@ -2767,7 +2874,8 @@ module Google
|
|
2767
2874
|
# Managing your account's organizational units allows you to configure your
|
2768
2875
|
# users' access to services and custom settings. For more information about
|
2769
2876
|
# common organizational unit tasks, see the [Developer's Guide](/admin-sdk/
|
2770
|
-
# directory/v1/guides/manage-org-units.html).
|
2877
|
+
# directory/v1/guides/manage-org-units.html). The customer's organizational unit
|
2878
|
+
# hierarchy is limited to 35 levels of depth.
|
2771
2879
|
class OrgUnit
|
2772
2880
|
include Google::Apis::Core::Hashable
|
2773
2881
|
|
@@ -3338,7 +3446,8 @@ module Google
|
|
3338
3446
|
# @return [String]
|
3339
3447
|
attr_accessor :schema_id
|
3340
3448
|
|
3341
|
-
# The schema's name.
|
3449
|
+
# The schema's name. Each `schema_name` must be unique within a customer.
|
3450
|
+
# Reusing a name results in a `409: Entity already exists` error.
|
3342
3451
|
# Corresponds to the JSON property `schemaName`
|
3343
3452
|
# @return [String]
|
3344
3453
|
attr_accessor :schema_name
|
@@ -3647,7 +3756,8 @@ module Google
|
|
3647
3756
|
# @return [DateTime]
|
3648
3757
|
attr_accessor :creation_time
|
3649
3758
|
|
3650
|
-
# Custom fields of the user.
|
3759
|
+
# Custom fields of the user. The key is a `schema_name` and its values are `'
|
3760
|
+
# field_name': 'field_value'`.
|
3651
3761
|
# Corresponds to the JSON property `customSchemas`
|
3652
3762
|
# @return [Hash<String,Hash<String,Object>>]
|
3653
3763
|
attr_accessor :custom_schemas
|
@@ -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.17.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 = "20211109"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -127,6 +127,24 @@ module Google
|
|
127
127
|
include Google::Apis::Core::JsonObjectSupport
|
128
128
|
end
|
129
129
|
|
130
|
+
class CpuInfo
|
131
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
132
|
+
|
133
|
+
class LogicalCpu
|
134
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
|
+
|
136
|
+
class CState
|
137
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
138
|
+
|
139
|
+
include Google::Apis::Core::JsonObjectSupport
|
140
|
+
end
|
141
|
+
|
142
|
+
include Google::Apis::Core::JsonObjectSupport
|
143
|
+
end
|
144
|
+
|
145
|
+
include Google::Apis::Core::JsonObjectSupport
|
146
|
+
end
|
147
|
+
|
130
148
|
class CpuStatusReport
|
131
149
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
132
150
|
|
@@ -808,6 +826,8 @@ module Google
|
|
808
826
|
property :annotated_user, as: 'annotatedUser'
|
809
827
|
property :auto_update_expiration, :numeric_string => true, as: 'autoUpdateExpiration'
|
810
828
|
property :boot_mode, as: 'bootMode'
|
829
|
+
collection :cpu_info, as: 'cpuInfo', class: Google::Apis::AdminDirectoryV1::ChromeOsDevice::CpuInfo, decorator: Google::Apis::AdminDirectoryV1::ChromeOsDevice::CpuInfo::Representation
|
830
|
+
|
811
831
|
collection :cpu_status_reports, as: 'cpuStatusReports', class: Google::Apis::AdminDirectoryV1::ChromeOsDevice::CpuStatusReport, decorator: Google::Apis::AdminDirectoryV1::ChromeOsDevice::CpuStatusReport::Representation
|
812
832
|
|
813
833
|
collection :device_files, as: 'deviceFiles', class: Google::Apis::AdminDirectoryV1::ChromeOsDevice::DeviceFile, decorator: Google::Apis::AdminDirectoryV1::ChromeOsDevice::DeviceFile::Representation
|
@@ -861,6 +881,36 @@ module Google
|
|
861
881
|
end
|
862
882
|
end
|
863
883
|
|
884
|
+
class CpuInfo
|
885
|
+
# @private
|
886
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
887
|
+
property :architecture, as: 'architecture'
|
888
|
+
collection :logical_cpus, as: 'logicalCpus', class: Google::Apis::AdminDirectoryV1::ChromeOsDevice::CpuInfo::LogicalCpu, decorator: Google::Apis::AdminDirectoryV1::ChromeOsDevice::CpuInfo::LogicalCpu::Representation
|
889
|
+
|
890
|
+
property :max_clock_speed_khz, as: 'maxClockSpeedKhz'
|
891
|
+
property :model, as: 'model'
|
892
|
+
end
|
893
|
+
|
894
|
+
class LogicalCpu
|
895
|
+
# @private
|
896
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
897
|
+
collection :c_states, as: 'cStates', class: Google::Apis::AdminDirectoryV1::ChromeOsDevice::CpuInfo::LogicalCpu::CState, decorator: Google::Apis::AdminDirectoryV1::ChromeOsDevice::CpuInfo::LogicalCpu::CState::Representation
|
898
|
+
|
899
|
+
property :current_scaling_frequency_khz, as: 'currentScalingFrequencyKhz'
|
900
|
+
property :idle_duration, as: 'idleDuration'
|
901
|
+
property :max_scaling_frequency_khz, as: 'maxScalingFrequencyKhz'
|
902
|
+
end
|
903
|
+
|
904
|
+
class CState
|
905
|
+
# @private
|
906
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
907
|
+
property :display_name, as: 'displayName'
|
908
|
+
property :session_duration, as: 'sessionDuration'
|
909
|
+
end
|
910
|
+
end
|
911
|
+
end
|
912
|
+
end
|
913
|
+
|
864
914
|
class CpuStatusReport
|
865
915
|
# @private
|
866
916
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -271,6 +271,9 @@ 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
|
@@ -284,8 +287,8 @@ module Google
|
|
284
287
|
# @param [String] projection
|
285
288
|
# Restrict information returned to a set of selected fields.
|
286
289
|
# @param [String] query
|
287
|
-
# Search string in the format given at
|
288
|
-
#
|
290
|
+
# Search string in the format given at https://developers.google.com/admin-sdk/
|
291
|
+
# directory/v1/list-query-operators
|
289
292
|
# @param [String] sort_order
|
290
293
|
# Whether to return results in ascending or descending order. Must be used with
|
291
294
|
# the `orderBy` parameter.
|
@@ -306,11 +309,12 @@ module Google
|
|
306
309
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
307
310
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
308
311
|
# @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)
|
312
|
+
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
313
|
command = make_simple_command(:get, 'admin/directory/v1/customer/{customerId}/devices/chromeos', options)
|
311
314
|
command.response_representation = Google::Apis::AdminDirectoryV1::ChromeOsDevices::Representation
|
312
315
|
command.response_class = Google::Apis::AdminDirectoryV1::ChromeOsDevices
|
313
316
|
command.params['customerId'] = customer_id unless customer_id.nil?
|
317
|
+
command.query['includeChildOrgunits'] = include_child_orgunits unless include_child_orgunits.nil?
|
314
318
|
command.query['maxResults'] = max_results unless max_results.nil?
|
315
319
|
command.query['orderBy'] = order_by unless order_by.nil?
|
316
320
|
command.query['orgUnitPath'] = org_unit_path unless org_unit_path.nil?
|
@@ -115,7 +115,7 @@ module Google
|
|
115
115
|
# View user schemas on your domain
|
116
116
|
AUTH_ADMIN_DIRECTORY_USERSCHEMA_READONLY = 'https://www.googleapis.com/auth/admin.directory.userschema.readonly'
|
117
117
|
|
118
|
-
# See, edit, configure, and delete your Google Cloud
|
118
|
+
# See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
|
119
119
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
120
120
|
end
|
121
121
|
end
|
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.17.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-
|
11
|
+
date: 2021-11-15 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.17.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:
|