google-apis-admin_directory_v1 0.14.0 → 0.18.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: '0489b62b8b5f9b6e78178d86663fef35530d09213503b7834e7f02a5f88d990f'
4
- data.tar.gz: b6f7825493461ad5cce3435b658dde5a87cef4c9b7e23a7230674d11a451dab8
3
+ metadata.gz: c508f8e93f70f10cc3d1a3636bf075e74b0d18043601d8642b8ca4cdbe0cd892
4
+ data.tar.gz: 3db3798f90277d1f10229685dc0ede9bd6554a4355375990463527584d36bb85
5
5
  SHA512:
6
- metadata.gz: 406d41998f067d146e9e25d5ec4523657cdfd4ec322658a7af04e9bae6c5b75fd1a201735b0443042865051a8497cb52d88df4c2d1cc564ec8ccbacb24560fb1
7
- data.tar.gz: 48e0162e7855b874b5a4b758f4e422d490bab301240ae9998e8a5070d94e349c5695f105fa2e21a4ba7384e3b3471176dab3755761a9947e9c99532f4980ac2f
6
+ metadata.gz: ef713deb08e556377e2154565851e477f70e5a5ad4e8efda85551e5a45e61c679163c67110f18b4a536d83edf54d05661d9890bc6adcf9d5541751fef490e886
7
+ data.tar.gz: 20937db2d4b297b16539d78d94fda5f7782cfe4ea0f69e6b63e8364375bea00db4a6927247fd3d064df92921d7b461ea402aa491c4b54e9d22867271e7ea6717
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release history for google-apis-admin_directory_v1
2
2
 
3
+ ### v0.18.0 (2021-12-08)
4
+
5
+ * Regenerated from discovery document revision 20211207
6
+
7
+ ### v0.17.0 (2021-11-10)
8
+
9
+ * Regenerated from discovery document revision 20211109
10
+
11
+ ### v0.16.0 (2021-10-20)
12
+
13
+ * Regenerated from discovery document revision 20211014
14
+
15
+ ### v0.15.0 (2021-09-29)
16
+
17
+ * Regenerated from discovery document revision 20210928
18
+
3
19
  ### v0.14.0 (2021-08-18)
4
20
 
5
21
  * Regenerated from discovery document revision 20210817
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/master/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/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
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>]
@@ -886,6 +891,16 @@ module Google
886
891
  # @return [String]
887
892
  attr_accessor :order_number
888
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
+
889
904
  # The full parent path with the organizational unit's name associated with the
890
905
  # device. Path names are case insensitive. If the parent organizational unit is
891
906
  # the top-level organization, it is represented as a forward slash, `/`. This
@@ -969,6 +984,7 @@ module Google
969
984
  @annotated_user = args[:annotated_user] if args.key?(:annotated_user)
970
985
  @auto_update_expiration = args[:auto_update_expiration] if args.key?(:auto_update_expiration)
971
986
  @boot_mode = args[:boot_mode] if args.key?(:boot_mode)
987
+ @cpu_info = args[:cpu_info] if args.key?(:cpu_info)
972
988
  @cpu_status_reports = args[:cpu_status_reports] if args.key?(:cpu_status_reports)
973
989
  @device_files = args[:device_files] if args.key?(:device_files)
974
990
  @device_id = args[:device_id] if args.key?(:device_id)
@@ -988,6 +1004,7 @@ module Google
988
1004
  @model = args[:model] if args.key?(:model)
989
1005
  @notes = args[:notes] if args.key?(:notes)
990
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)
991
1008
  @org_unit_path = args[:org_unit_path] if args.key?(:org_unit_path)
992
1009
  @os_version = args[:os_version] if args.key?(:os_version)
993
1010
  @platform_version = args[:platform_version] if args.key?(:platform_version)
@@ -1027,6 +1044,107 @@ module Google
1027
1044
  end
1028
1045
  end
1029
1046
 
1047
+ # CPU specs for a CPU.
1048
+ class CpuInfo
1049
+ include Google::Apis::Core::Hashable
1050
+
1051
+ # The CPU architecture.
1052
+ # Corresponds to the JSON property `architecture`
1053
+ # @return [String]
1054
+ attr_accessor :architecture
1055
+
1056
+ # Information for the Logical CPUs
1057
+ # Corresponds to the JSON property `logicalCpus`
1058
+ # @return [Array<Google::Apis::AdminDirectoryV1::ChromeOsDevice::CpuInfo::LogicalCpu>]
1059
+ attr_accessor :logical_cpus
1060
+
1061
+ # The max CPU clock speed in kHz.
1062
+ # Corresponds to the JSON property `maxClockSpeedKhz`
1063
+ # @return [Fixnum]
1064
+ attr_accessor :max_clock_speed_khz
1065
+
1066
+ # The CPU model name.
1067
+ # Corresponds to the JSON property `model`
1068
+ # @return [String]
1069
+ attr_accessor :model
1070
+
1071
+ def initialize(**args)
1072
+ update!(**args)
1073
+ end
1074
+
1075
+ # Update properties of this object
1076
+ def update!(**args)
1077
+ @architecture = args[:architecture] if args.key?(:architecture)
1078
+ @logical_cpus = args[:logical_cpus] if args.key?(:logical_cpus)
1079
+ @max_clock_speed_khz = args[:max_clock_speed_khz] if args.key?(:max_clock_speed_khz)
1080
+ @model = args[:model] if args.key?(:model)
1081
+ end
1082
+
1083
+ # Status of a single logical CPU.
1084
+ class LogicalCpu
1085
+ include Google::Apis::Core::Hashable
1086
+
1087
+ # C-States indicate the power consumption state of the CPU. For more information
1088
+ # look at documentation published by the CPU maker.
1089
+ # Corresponds to the JSON property `cStates`
1090
+ # @return [Array<Google::Apis::AdminDirectoryV1::ChromeOsDevice::CpuInfo::LogicalCpu::CState>]
1091
+ attr_accessor :c_states
1092
+
1093
+ # Current frequency the CPU is running at.
1094
+ # Corresponds to the JSON property `currentScalingFrequencyKhz`
1095
+ # @return [Fixnum]
1096
+ attr_accessor :current_scaling_frequency_khz
1097
+
1098
+ # Idle time since last boot.
1099
+ # Corresponds to the JSON property `idleDuration`
1100
+ # @return [String]
1101
+ attr_accessor :idle_duration
1102
+
1103
+ # Maximum frequency the CPU is allowed to run at, by policy.
1104
+ # Corresponds to the JSON property `maxScalingFrequencyKhz`
1105
+ # @return [Fixnum]
1106
+ attr_accessor :max_scaling_frequency_khz
1107
+
1108
+ def initialize(**args)
1109
+ update!(**args)
1110
+ end
1111
+
1112
+ # Update properties of this object
1113
+ def update!(**args)
1114
+ @c_states = args[:c_states] if args.key?(:c_states)
1115
+ @current_scaling_frequency_khz = args[:current_scaling_frequency_khz] if args.key?(:current_scaling_frequency_khz)
1116
+ @idle_duration = args[:idle_duration] if args.key?(:idle_duration)
1117
+ @max_scaling_frequency_khz = args[:max_scaling_frequency_khz] if args.key?(:max_scaling_frequency_khz)
1118
+ end
1119
+
1120
+ # Status of a single C-state. C-states are various modes the CPU can transition
1121
+ # to in order to use more or less power.
1122
+ class CState
1123
+ include Google::Apis::Core::Hashable
1124
+
1125
+ # Name of the state.
1126
+ # Corresponds to the JSON property `displayName`
1127
+ # @return [String]
1128
+ attr_accessor :display_name
1129
+
1130
+ # Time spent in the state since the last reboot.
1131
+ # Corresponds to the JSON property `sessionDuration`
1132
+ # @return [String]
1133
+ attr_accessor :session_duration
1134
+
1135
+ def initialize(**args)
1136
+ update!(**args)
1137
+ end
1138
+
1139
+ # Update properties of this object
1140
+ def update!(**args)
1141
+ @display_name = args[:display_name] if args.key?(:display_name)
1142
+ @session_duration = args[:session_duration] if args.key?(:session_duration)
1143
+ end
1144
+ end
1145
+ end
1146
+ end
1147
+
1030
1148
  #
1031
1149
  class CpuStatusReport
1032
1150
  include Google::Apis::Core::Hashable
@@ -2767,7 +2885,8 @@ module Google
2767
2885
  # Managing your account's organizational units allows you to configure your
2768
2886
  # users' access to services and custom settings. For more information about
2769
2887
  # common organizational unit tasks, see the [Developer's Guide](/admin-sdk/
2770
- # 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.
2771
2890
  class OrgUnit
2772
2891
  include Google::Apis::Core::Hashable
2773
2892
 
@@ -3338,7 +3457,8 @@ module Google
3338
3457
  # @return [String]
3339
3458
  attr_accessor :schema_id
3340
3459
 
3341
- # The schema's name.
3460
+ # The schema's name. Each `schema_name` must be unique within a customer.
3461
+ # Reusing a name results in a `409: Entity already exists` error.
3342
3462
  # Corresponds to the JSON property `schemaName`
3343
3463
  # @return [String]
3344
3464
  attr_accessor :schema_name
@@ -3647,7 +3767,8 @@ module Google
3647
3767
  # @return [DateTime]
3648
3768
  attr_accessor :creation_time
3649
3769
 
3650
- # Custom fields of the user.
3770
+ # Custom fields of the user. The key is a `schema_name` and its values are `'
3771
+ # field_name': 'field_value'`.
3651
3772
  # Corresponds to the JSON property `customSchemas`
3652
3773
  # @return [Hash<String,Hash<String,Object>>]
3653
3774
  attr_accessor :custom_schemas
@@ -4280,18 +4401,29 @@ module Google
4280
4401
  include Google::Apis::Core::Hashable
4281
4402
 
4282
4403
  # Other language. User can provide own language name if there is no
4283
- # corresponding Google III language code. If this is set LanguageCode can't be
4284
- # set
4404
+ # corresponding ISO 639 language code. If this is set `languageCode` can't be
4405
+ # set.
4285
4406
  # Corresponds to the JSON property `customLanguage`
4286
4407
  # @return [String]
4287
4408
  attr_accessor :custom_language
4288
4409
 
4289
- # Language Code. Should be used for storing Google III LanguageCode string
4290
- # representation for language. Illegal values cause SchemaException.
4410
+ # Language Code. Should be used for storing ISO 639 LanguageCode string
4411
+ # representation for language. See the [Language Codes](/admin-sdk/directory/v1/
4412
+ # languages) page for the list of supported codes. Valid language codes outside
4413
+ # the supported set will be accepted by the API but may lead to unexpected
4414
+ # behavior. Illegal values cause SchemaException. If this is set `customLanguage`
4415
+ # can't be set.
4291
4416
  # Corresponds to the JSON property `languageCode`
4292
4417
  # @return [String]
4293
4418
  attr_accessor :language_code
4294
4419
 
4420
+ # Preference. Optional field, which if present, controls whether the specified `
4421
+ # languageCode` is stored as the user's preferred language. If `customLanguage`
4422
+ # is set, this can't be set. Allowed values are `preferred` and `not_preferred`.
4423
+ # Corresponds to the JSON property `preference`
4424
+ # @return [String]
4425
+ attr_accessor :preference
4426
+
4295
4427
  def initialize(**args)
4296
4428
  update!(**args)
4297
4429
  end
@@ -4300,6 +4432,7 @@ module Google
4300
4432
  def update!(**args)
4301
4433
  @custom_language = args[:custom_language] if args.key?(:custom_language)
4302
4434
  @language_code = args[:language_code] if args.key?(:language_code)
4435
+ @preference = args[:preference] if args.key?(:preference)
4303
4436
  end
4304
4437
  end
4305
4438
 
@@ -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.14.0"
19
+ GEM_VERSION = "0.18.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 = "20210817"
25
+ REVISION = "20211207"
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
@@ -833,6 +853,7 @@ module Google
833
853
  property :model, as: 'model'
834
854
  property :notes, as: 'notes'
835
855
  property :order_number, as: 'orderNumber'
856
+ property :org_unit_id, as: 'orgUnitId'
836
857
  property :org_unit_path, as: 'orgUnitPath'
837
858
  property :os_version, as: 'osVersion'
838
859
  property :platform_version, as: 'platformVersion'
@@ -861,6 +882,36 @@ module Google
861
882
  end
862
883
  end
863
884
 
885
+ class CpuInfo
886
+ # @private
887
+ class Representation < Google::Apis::Core::JsonRepresentation
888
+ property :architecture, as: 'architecture'
889
+ collection :logical_cpus, as: 'logicalCpus', class: Google::Apis::AdminDirectoryV1::ChromeOsDevice::CpuInfo::LogicalCpu, decorator: Google::Apis::AdminDirectoryV1::ChromeOsDevice::CpuInfo::LogicalCpu::Representation
890
+
891
+ property :max_clock_speed_khz, as: 'maxClockSpeedKhz'
892
+ property :model, as: 'model'
893
+ end
894
+
895
+ class LogicalCpu
896
+ # @private
897
+ class Representation < Google::Apis::Core::JsonRepresentation
898
+ collection :c_states, as: 'cStates', class: Google::Apis::AdminDirectoryV1::ChromeOsDevice::CpuInfo::LogicalCpu::CState, decorator: Google::Apis::AdminDirectoryV1::ChromeOsDevice::CpuInfo::LogicalCpu::CState::Representation
899
+
900
+ property :current_scaling_frequency_khz, as: 'currentScalingFrequencyKhz'
901
+ property :idle_duration, as: 'idleDuration'
902
+ property :max_scaling_frequency_khz, as: 'maxScalingFrequencyKhz'
903
+ end
904
+
905
+ class CState
906
+ # @private
907
+ class Representation < Google::Apis::Core::JsonRepresentation
908
+ property :display_name, as: 'displayName'
909
+ property :session_duration, as: 'sessionDuration'
910
+ end
911
+ end
912
+ end
913
+ end
914
+
864
915
  class CpuStatusReport
865
916
  # @private
866
917
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1657,6 +1708,7 @@ module Google
1657
1708
  class Representation < Google::Apis::Core::JsonRepresentation
1658
1709
  property :custom_language, as: 'customLanguage'
1659
1710
  property :language_code, as: 'languageCode'
1711
+ property :preference, as: 'preference'
1660
1712
  end
1661
1713
  end
1662
1714
 
@@ -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 http://support.google.com/chromeos/a/bin/
288
- # answer.py?answer=1698333
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?
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.14.0
4
+ version: 0.18.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-08-23 00:00:00.000000000 Z
11
+ date: 2021-12-13 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/master/generated/google-apis-admin_directory_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-admin_directory_v1/v0.14.0
62
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-admin_directory_v1
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.18.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: