google-apis-chromemanagement_v1 0.9.0 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,6 +22,352 @@ module Google
22
22
  module Apis
23
23
  module ChromemanagementV1
24
24
 
25
+ # Android app information.
26
+ class GoogleChromeManagementV1AndroidAppInfo
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # Output only. Permissions requested by an Android app.
30
+ # Corresponds to the JSON property `permissions`
31
+ # @return [Array<Google::Apis::ChromemanagementV1::GoogleChromeManagementV1AndroidAppPermission>]
32
+ attr_accessor :permissions
33
+
34
+ def initialize(**args)
35
+ update!(**args)
36
+ end
37
+
38
+ # Update properties of this object
39
+ def update!(**args)
40
+ @permissions = args[:permissions] if args.key?(:permissions)
41
+ end
42
+ end
43
+
44
+ # Permission requested by an Android app.
45
+ class GoogleChromeManagementV1AndroidAppPermission
46
+ include Google::Apis::Core::Hashable
47
+
48
+ # Output only. The type of the permission.
49
+ # Corresponds to the JSON property `type`
50
+ # @return [String]
51
+ attr_accessor :type
52
+
53
+ def initialize(**args)
54
+ update!(**args)
55
+ end
56
+
57
+ # Update properties of this object
58
+ def update!(**args)
59
+ @type = args[:type] if args.key?(:type)
60
+ end
61
+ end
62
+
63
+ # Resource representing app details.
64
+ class GoogleChromeManagementV1AppDetails
65
+ include Google::Apis::Core::Hashable
66
+
67
+ # Android app information.
68
+ # Corresponds to the JSON property `androidAppInfo`
69
+ # @return [Google::Apis::ChromemanagementV1::GoogleChromeManagementV1AndroidAppInfo]
70
+ attr_accessor :android_app_info
71
+
72
+ # Output only. Unique store identifier for the item. Examples: "
73
+ # gmbmikajjgmnabiglmofipeabaddhgne" for the Save to Google Drive Chrome
74
+ # extension, "com.google.android.apps.docs" for the Google Drive Android app.
75
+ # Corresponds to the JSON property `appId`
76
+ # @return [String]
77
+ attr_accessor :app_id
78
+
79
+ # Chrome Web Store app information.
80
+ # Corresponds to the JSON property `chromeAppInfo`
81
+ # @return [Google::Apis::ChromemanagementV1::GoogleChromeManagementV1ChromeAppInfo]
82
+ attr_accessor :chrome_app_info
83
+
84
+ # Output only. App's description.
85
+ # Corresponds to the JSON property `description`
86
+ # @return [String]
87
+ attr_accessor :description
88
+
89
+ # Output only. The uri for the detail page of the item.
90
+ # Corresponds to the JSON property `detailUri`
91
+ # @return [String]
92
+ attr_accessor :detail_uri
93
+
94
+ # Output only. App's display name.
95
+ # Corresponds to the JSON property `displayName`
96
+ # @return [String]
97
+ attr_accessor :display_name
98
+
99
+ # Output only. First published time.
100
+ # Corresponds to the JSON property `firstPublishTime`
101
+ # @return [String]
102
+ attr_accessor :first_publish_time
103
+
104
+ # Output only. Home page or Website uri.
105
+ # Corresponds to the JSON property `homepageUri`
106
+ # @return [String]
107
+ attr_accessor :homepage_uri
108
+
109
+ # Output only. A link to an image that can be used as an icon for the product.
110
+ # Corresponds to the JSON property `iconUri`
111
+ # @return [String]
112
+ attr_accessor :icon_uri
113
+
114
+ # Output only. Indicates if the app has to be paid for OR has paid content.
115
+ # Corresponds to the JSON property `isPaidApp`
116
+ # @return [Boolean]
117
+ attr_accessor :is_paid_app
118
+ alias_method :is_paid_app?, :is_paid_app
119
+
120
+ # Output only. Latest published time.
121
+ # Corresponds to the JSON property `latestPublishTime`
122
+ # @return [String]
123
+ attr_accessor :latest_publish_time
124
+
125
+ # Output only. Format: name=customers/`customer_id`/apps/`chrome|android|web`/`
126
+ # app_id`@`version`
127
+ # Corresponds to the JSON property `name`
128
+ # @return [String]
129
+ attr_accessor :name
130
+
131
+ # Output only. The URI pointing to the privacy policy of the app, if it was
132
+ # provided by the developer. Version-specific field that will only be set when
133
+ # the requested app version is found.
134
+ # Corresponds to the JSON property `privacyPolicyUri`
135
+ # @return [String]
136
+ attr_accessor :privacy_policy_uri
137
+
138
+ # Output only. The publisher of the item.
139
+ # Corresponds to the JSON property `publisher`
140
+ # @return [String]
141
+ attr_accessor :publisher
142
+
143
+ # Output only. Number of reviews received. Chrome Web Store review information
144
+ # will always be for the latest version of an app.
145
+ # Corresponds to the JSON property `reviewNumber`
146
+ # @return [Fixnum]
147
+ attr_accessor :review_number
148
+
149
+ # Output only. The rating of the app (on 5 stars). Chrome Web Store review
150
+ # information will always be for the latest version of an app.
151
+ # Corresponds to the JSON property `reviewRating`
152
+ # @return [Float]
153
+ attr_accessor :review_rating
154
+
155
+ # Output only. App version. A new revision is committed whenever a new version
156
+ # of the app is published.
157
+ # Corresponds to the JSON property `revisionId`
158
+ # @return [String]
159
+ attr_accessor :revision_id
160
+
161
+ # The `Status` type defines a logical error model that is suitable for different
162
+ # programming environments, including REST APIs and RPC APIs. It is used by [
163
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
164
+ # data: error code, error message, and error details. You can find out more
165
+ # about this error model and how to work with it in the [API Design Guide](https:
166
+ # //cloud.google.com/apis/design/errors).
167
+ # Corresponds to the JSON property `serviceError`
168
+ # @return [Google::Apis::ChromemanagementV1::GoogleRpcStatus]
169
+ attr_accessor :service_error
170
+
171
+ # Output only. App type.
172
+ # Corresponds to the JSON property `type`
173
+ # @return [String]
174
+ attr_accessor :type
175
+
176
+ def initialize(**args)
177
+ update!(**args)
178
+ end
179
+
180
+ # Update properties of this object
181
+ def update!(**args)
182
+ @android_app_info = args[:android_app_info] if args.key?(:android_app_info)
183
+ @app_id = args[:app_id] if args.key?(:app_id)
184
+ @chrome_app_info = args[:chrome_app_info] if args.key?(:chrome_app_info)
185
+ @description = args[:description] if args.key?(:description)
186
+ @detail_uri = args[:detail_uri] if args.key?(:detail_uri)
187
+ @display_name = args[:display_name] if args.key?(:display_name)
188
+ @first_publish_time = args[:first_publish_time] if args.key?(:first_publish_time)
189
+ @homepage_uri = args[:homepage_uri] if args.key?(:homepage_uri)
190
+ @icon_uri = args[:icon_uri] if args.key?(:icon_uri)
191
+ @is_paid_app = args[:is_paid_app] if args.key?(:is_paid_app)
192
+ @latest_publish_time = args[:latest_publish_time] if args.key?(:latest_publish_time)
193
+ @name = args[:name] if args.key?(:name)
194
+ @privacy_policy_uri = args[:privacy_policy_uri] if args.key?(:privacy_policy_uri)
195
+ @publisher = args[:publisher] if args.key?(:publisher)
196
+ @review_number = args[:review_number] if args.key?(:review_number)
197
+ @review_rating = args[:review_rating] if args.key?(:review_rating)
198
+ @revision_id = args[:revision_id] if args.key?(:revision_id)
199
+ @service_error = args[:service_error] if args.key?(:service_error)
200
+ @type = args[:type] if args.key?(:type)
201
+ end
202
+ end
203
+
204
+ # Battery info
205
+ class GoogleChromeManagementV1BatteryInfo
206
+ include Google::Apis::Core::Hashable
207
+
208
+ # Output only. Design capacity (mAmpere-hours).
209
+ # Corresponds to the JSON property `designCapacity`
210
+ # @return [Fixnum]
211
+ attr_accessor :design_capacity
212
+
213
+ # Output only. Designed minimum output voltage (mV)
214
+ # Corresponds to the JSON property `designMinVoltage`
215
+ # @return [Fixnum]
216
+ attr_accessor :design_min_voltage
217
+
218
+ # Represents a whole or partial calendar date, such as a birthday. The time of
219
+ # day and time zone are either specified elsewhere or are insignificant. The
220
+ # date is relative to the Gregorian Calendar. This can represent one of the
221
+ # following: * A full date, with non-zero year, month, and day values * A month
222
+ # and day value, with a zero year, such as an anniversary * A year on its own,
223
+ # with zero month and day values * A year and month value, with a zero day, such
224
+ # as a credit card expiration date Related types are google.type.TimeOfDay and `
225
+ # google.protobuf.Timestamp`.
226
+ # Corresponds to the JSON property `manufactureDate`
227
+ # @return [Google::Apis::ChromemanagementV1::GoogleTypeDate]
228
+ attr_accessor :manufacture_date
229
+
230
+ # Output only. Battery manufacturer.
231
+ # Corresponds to the JSON property `manufacturer`
232
+ # @return [String]
233
+ attr_accessor :manufacturer
234
+
235
+ # Output only. Battery serial number.
236
+ # Corresponds to the JSON property `serialNumber`
237
+ # @return [String]
238
+ attr_accessor :serial_number
239
+
240
+ # Output only. Technology of the battery. Example: Li-ion
241
+ # Corresponds to the JSON property `technology`
242
+ # @return [String]
243
+ attr_accessor :technology
244
+
245
+ def initialize(**args)
246
+ update!(**args)
247
+ end
248
+
249
+ # Update properties of this object
250
+ def update!(**args)
251
+ @design_capacity = args[:design_capacity] if args.key?(:design_capacity)
252
+ @design_min_voltage = args[:design_min_voltage] if args.key?(:design_min_voltage)
253
+ @manufacture_date = args[:manufacture_date] if args.key?(:manufacture_date)
254
+ @manufacturer = args[:manufacturer] if args.key?(:manufacturer)
255
+ @serial_number = args[:serial_number] if args.key?(:serial_number)
256
+ @technology = args[:technology] if args.key?(:technology)
257
+ end
258
+ end
259
+
260
+ # Sampling data for battery.
261
+ class GoogleChromeManagementV1BatterySampleReport
262
+ include Google::Apis::Core::Hashable
263
+
264
+ # Output only. Battery charge percentage.
265
+ # Corresponds to the JSON property `chargeRate`
266
+ # @return [Fixnum]
267
+ attr_accessor :charge_rate
268
+
269
+ # Output only. Battery current (mA).
270
+ # Corresponds to the JSON property `current`
271
+ # @return [Fixnum]
272
+ attr_accessor :current
273
+
274
+ # Output only. The battery discharge rate measured in mW. Positive if the
275
+ # battery is being discharged, negative if it's being charged.
276
+ # Corresponds to the JSON property `dischargeRate`
277
+ # @return [Fixnum]
278
+ attr_accessor :discharge_rate
279
+
280
+ # Output only. Battery remaining capacity (mAmpere-hours).
281
+ # Corresponds to the JSON property `remainingCapacity`
282
+ # @return [Fixnum]
283
+ attr_accessor :remaining_capacity
284
+
285
+ # Output only. Timestamp of when the sample was collected on device
286
+ # Corresponds to the JSON property `reportTime`
287
+ # @return [String]
288
+ attr_accessor :report_time
289
+
290
+ # Output only. Battery status read from sysfs. Example: Discharging
291
+ # Corresponds to the JSON property `status`
292
+ # @return [String]
293
+ attr_accessor :status
294
+
295
+ # Output only. Temperature in Celsius degrees.
296
+ # Corresponds to the JSON property `temperature`
297
+ # @return [Fixnum]
298
+ attr_accessor :temperature
299
+
300
+ # Output only. Battery voltage (millivolt).
301
+ # Corresponds to the JSON property `voltage`
302
+ # @return [Fixnum]
303
+ attr_accessor :voltage
304
+
305
+ def initialize(**args)
306
+ update!(**args)
307
+ end
308
+
309
+ # Update properties of this object
310
+ def update!(**args)
311
+ @charge_rate = args[:charge_rate] if args.key?(:charge_rate)
312
+ @current = args[:current] if args.key?(:current)
313
+ @discharge_rate = args[:discharge_rate] if args.key?(:discharge_rate)
314
+ @remaining_capacity = args[:remaining_capacity] if args.key?(:remaining_capacity)
315
+ @report_time = args[:report_time] if args.key?(:report_time)
316
+ @status = args[:status] if args.key?(:status)
317
+ @temperature = args[:temperature] if args.key?(:temperature)
318
+ @voltage = args[:voltage] if args.key?(:voltage)
319
+ end
320
+ end
321
+
322
+ # Status data for battery.
323
+ class GoogleChromeManagementV1BatteryStatusReport
324
+ include Google::Apis::Core::Hashable
325
+
326
+ # Output only. Battery health.
327
+ # Corresponds to the JSON property `batteryHealth`
328
+ # @return [String]
329
+ attr_accessor :battery_health
330
+
331
+ # Output only. Cycle count.
332
+ # Corresponds to the JSON property `cycleCount`
333
+ # @return [Fixnum]
334
+ attr_accessor :cycle_count
335
+
336
+ # Output only. Full charge capacity (mAmpere-hours).
337
+ # Corresponds to the JSON property `fullChargeCapacity`
338
+ # @return [Fixnum]
339
+ attr_accessor :full_charge_capacity
340
+
341
+ # Output only. Timestamp of when the sample was collected on device
342
+ # Corresponds to the JSON property `reportTime`
343
+ # @return [String]
344
+ attr_accessor :report_time
345
+
346
+ # Output only. Sampling data for the battery.
347
+ # Corresponds to the JSON property `sample`
348
+ # @return [Array<Google::Apis::ChromemanagementV1::GoogleChromeManagementV1BatterySampleReport>]
349
+ attr_accessor :sample
350
+
351
+ # Output only. Battery serial number.
352
+ # Corresponds to the JSON property `serialNumber`
353
+ # @return [String]
354
+ attr_accessor :serial_number
355
+
356
+ def initialize(**args)
357
+ update!(**args)
358
+ end
359
+
360
+ # Update properties of this object
361
+ def update!(**args)
362
+ @battery_health = args[:battery_health] if args.key?(:battery_health)
363
+ @cycle_count = args[:cycle_count] if args.key?(:cycle_count)
364
+ @full_charge_capacity = args[:full_charge_capacity] if args.key?(:full_charge_capacity)
365
+ @report_time = args[:report_time] if args.key?(:report_time)
366
+ @sample = args[:sample] if args.key?(:sample)
367
+ @serial_number = args[:serial_number] if args.key?(:serial_number)
368
+ end
369
+ end
370
+
25
371
  # Describes a browser version and its install count.
26
372
  class GoogleChromeManagementV1BrowserVersion
27
373
  include Google::Apis::Core::Hashable
@@ -65,6 +411,215 @@ module Google
65
411
  end
66
412
  end
67
413
 
414
+ # Chrome Web Store app information.
415
+ class GoogleChromeManagementV1ChromeAppInfo
416
+ include Google::Apis::Core::Hashable
417
+
418
+ # Output only. Whether the app or extension is built and maintained by Google.
419
+ # Version-specific field that will only be set when the requested app version is
420
+ # found.
421
+ # Corresponds to the JSON property `googleOwned`
422
+ # @return [Boolean]
423
+ attr_accessor :google_owned
424
+ alias_method :google_owned?, :google_owned
425
+
426
+ # Output only. Whether the app or extension is in a published state in the
427
+ # Chrome Web Store.
428
+ # Corresponds to the JSON property `isCwsHosted`
429
+ # @return [Boolean]
430
+ attr_accessor :is_cws_hosted
431
+ alias_method :is_cws_hosted?, :is_cws_hosted
432
+
433
+ # Output only. Whether the app or extension is a theme.
434
+ # Corresponds to the JSON property `isTheme`
435
+ # @return [Boolean]
436
+ attr_accessor :is_theme
437
+ alias_method :is_theme?, :is_theme
438
+
439
+ # Output only. The minimum number of users using this app.
440
+ # Corresponds to the JSON property `minUserCount`
441
+ # @return [Fixnum]
442
+ attr_accessor :min_user_count
443
+
444
+ # Output only. Every custom permission requested by the app. Version-specific
445
+ # field that will only be set when the requested app version is found.
446
+ # Corresponds to the JSON property `permissions`
447
+ # @return [Array<Google::Apis::ChromemanagementV1::GoogleChromeManagementV1ChromeAppPermission>]
448
+ attr_accessor :permissions
449
+
450
+ # Output only. Every permission giving access to domains or broad host patterns.
451
+ # ( e.g. www.google.com). This includes the matches from content scripts as well
452
+ # as hosts in the permissions node of the manifest. Version-specific field that
453
+ # will only be set when the requested app version is found.
454
+ # Corresponds to the JSON property `siteAccess`
455
+ # @return [Array<Google::Apis::ChromemanagementV1::GoogleChromeManagementV1ChromeAppSiteAccess>]
456
+ attr_accessor :site_access
457
+
458
+ # Output only. The app developer has enabled support for their app. Version-
459
+ # specific field that will only be set when the requested app version is found.
460
+ # Corresponds to the JSON property `supportEnabled`
461
+ # @return [Boolean]
462
+ attr_accessor :support_enabled
463
+ alias_method :support_enabled?, :support_enabled
464
+
465
+ def initialize(**args)
466
+ update!(**args)
467
+ end
468
+
469
+ # Update properties of this object
470
+ def update!(**args)
471
+ @google_owned = args[:google_owned] if args.key?(:google_owned)
472
+ @is_cws_hosted = args[:is_cws_hosted] if args.key?(:is_cws_hosted)
473
+ @is_theme = args[:is_theme] if args.key?(:is_theme)
474
+ @min_user_count = args[:min_user_count] if args.key?(:min_user_count)
475
+ @permissions = args[:permissions] if args.key?(:permissions)
476
+ @site_access = args[:site_access] if args.key?(:site_access)
477
+ @support_enabled = args[:support_enabled] if args.key?(:support_enabled)
478
+ end
479
+ end
480
+
481
+ # Permission requested by a Chrome app or extension.
482
+ class GoogleChromeManagementV1ChromeAppPermission
483
+ include Google::Apis::Core::Hashable
484
+
485
+ # Output only. If available, whether this permissions grants the app/extension
486
+ # access to user data.
487
+ # Corresponds to the JSON property `accessUserData`
488
+ # @return [Boolean]
489
+ attr_accessor :access_user_data
490
+ alias_method :access_user_data?, :access_user_data
491
+
492
+ # Output only. If available, a URI to a page that has documentation for the
493
+ # current permission.
494
+ # Corresponds to the JSON property `documentationUri`
495
+ # @return [String]
496
+ attr_accessor :documentation_uri
497
+
498
+ # Output only. The type of the permission.
499
+ # Corresponds to the JSON property `type`
500
+ # @return [String]
501
+ attr_accessor :type
502
+
503
+ def initialize(**args)
504
+ update!(**args)
505
+ end
506
+
507
+ # Update properties of this object
508
+ def update!(**args)
509
+ @access_user_data = args[:access_user_data] if args.key?(:access_user_data)
510
+ @documentation_uri = args[:documentation_uri] if args.key?(:documentation_uri)
511
+ @type = args[:type] if args.key?(:type)
512
+ end
513
+ end
514
+
515
+ # Details of an app installation request.
516
+ class GoogleChromeManagementV1ChromeAppRequest
517
+ include Google::Apis::Core::Hashable
518
+
519
+ # Output only. Format: app_details=customers/`customer_id`/apps/chrome/`app_id`
520
+ # Corresponds to the JSON property `appDetails`
521
+ # @return [String]
522
+ attr_accessor :app_details
523
+
524
+ # Output only. Unique store identifier for the app. Example: "
525
+ # gmbmikajjgmnabiglmofipeabaddhgne" for the Save to Google Drive Chrome
526
+ # extension.
527
+ # Corresponds to the JSON property `appId`
528
+ # @return [String]
529
+ attr_accessor :app_id
530
+
531
+ # Output only. The uri for the detail page of the item.
532
+ # Corresponds to the JSON property `detailUri`
533
+ # @return [String]
534
+ attr_accessor :detail_uri
535
+
536
+ # Output only. App's display name.
537
+ # Corresponds to the JSON property `displayName`
538
+ # @return [String]
539
+ attr_accessor :display_name
540
+
541
+ # Output only. A link to an image that can be used as an icon for the product.
542
+ # Corresponds to the JSON property `iconUri`
543
+ # @return [String]
544
+ attr_accessor :icon_uri
545
+
546
+ # Output only. The timestamp of the most recently made request for this app.
547
+ # Corresponds to the JSON property `latestRequestTime`
548
+ # @return [String]
549
+ attr_accessor :latest_request_time
550
+
551
+ # Output only. Total count of requests for this app.
552
+ # Corresponds to the JSON property `requestCount`
553
+ # @return [Fixnum]
554
+ attr_accessor :request_count
555
+
556
+ def initialize(**args)
557
+ update!(**args)
558
+ end
559
+
560
+ # Update properties of this object
561
+ def update!(**args)
562
+ @app_details = args[:app_details] if args.key?(:app_details)
563
+ @app_id = args[:app_id] if args.key?(:app_id)
564
+ @detail_uri = args[:detail_uri] if args.key?(:detail_uri)
565
+ @display_name = args[:display_name] if args.key?(:display_name)
566
+ @icon_uri = args[:icon_uri] if args.key?(:icon_uri)
567
+ @latest_request_time = args[:latest_request_time] if args.key?(:latest_request_time)
568
+ @request_count = args[:request_count] if args.key?(:request_count)
569
+ end
570
+ end
571
+
572
+ # Represent one host permission.
573
+ class GoogleChromeManagementV1ChromeAppSiteAccess
574
+ include Google::Apis::Core::Hashable
575
+
576
+ # Output only. This can contain very specific hosts, or patterns like "*.com"
577
+ # for instance.
578
+ # Corresponds to the JSON property `hostMatch`
579
+ # @return [String]
580
+ attr_accessor :host_match
581
+
582
+ def initialize(**args)
583
+ update!(**args)
584
+ end
585
+
586
+ # Update properties of this object
587
+ def update!(**args)
588
+ @host_match = args[:host_match] if args.key?(:host_match)
589
+ end
590
+ end
591
+
592
+ # Response containing summary of requested app installations.
593
+ class GoogleChromeManagementV1CountChromeAppRequestsResponse
594
+ include Google::Apis::Core::Hashable
595
+
596
+ # Token to specify the next page in the list.
597
+ # Corresponds to the JSON property `nextPageToken`
598
+ # @return [String]
599
+ attr_accessor :next_page_token
600
+
601
+ # Count of requested apps matching request.
602
+ # Corresponds to the JSON property `requestedApps`
603
+ # @return [Array<Google::Apis::ChromemanagementV1::GoogleChromeManagementV1ChromeAppRequest>]
604
+ attr_accessor :requested_apps
605
+
606
+ # Total number of matching app requests.
607
+ # Corresponds to the JSON property `totalSize`
608
+ # @return [Fixnum]
609
+ attr_accessor :total_size
610
+
611
+ def initialize(**args)
612
+ update!(**args)
613
+ end
614
+
615
+ # Update properties of this object
616
+ def update!(**args)
617
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
618
+ @requested_apps = args[:requested_apps] if args.key?(:requested_apps)
619
+ @total_size = args[:total_size] if args.key?(:total_size)
620
+ end
621
+ end
622
+
68
623
  # Response containing requested browser versions details and counts.
69
624
  class GoogleChromeManagementV1CountChromeVersionsResponse
70
625
  include Google::Apis::Core::Hashable
@@ -113,7 +668,329 @@ module Google
113
668
  # Total number of installed apps matching request.
114
669
  # Corresponds to the JSON property `totalSize`
115
670
  # @return [Fixnum]
116
- attr_accessor :total_size
671
+ attr_accessor :total_size
672
+
673
+ def initialize(**args)
674
+ update!(**args)
675
+ end
676
+
677
+ # Update properties of this object
678
+ def update!(**args)
679
+ @installed_apps = args[:installed_apps] if args.key?(:installed_apps)
680
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
681
+ @total_size = args[:total_size] if args.key?(:total_size)
682
+ end
683
+ end
684
+
685
+ # CPU specs for a CPU.
686
+ class GoogleChromeManagementV1CpuInfo
687
+ include Google::Apis::Core::Hashable
688
+
689
+ # Output only. The CPU architecture.
690
+ # Corresponds to the JSON property `architecture`
691
+ # @return [String]
692
+ attr_accessor :architecture
693
+
694
+ # Output only. The max CPU clock speed in kHz.
695
+ # Corresponds to the JSON property `maxClockSpeed`
696
+ # @return [Fixnum]
697
+ attr_accessor :max_clock_speed
698
+
699
+ # Output only. The CPU model name. Example: Intel(R) Core(TM) i5-8250U CPU @ 1.
700
+ # 60GHz
701
+ # Corresponds to the JSON property `model`
702
+ # @return [String]
703
+ attr_accessor :model
704
+
705
+ def initialize(**args)
706
+ update!(**args)
707
+ end
708
+
709
+ # Update properties of this object
710
+ def update!(**args)
711
+ @architecture = args[:architecture] if args.key?(:architecture)
712
+ @max_clock_speed = args[:max_clock_speed] if args.key?(:max_clock_speed)
713
+ @model = args[:model] if args.key?(:model)
714
+ end
715
+ end
716
+
717
+ # Contains samples of the cpu status reports.
718
+ class GoogleChromeManagementV1CpuStatusReport
719
+ include Google::Apis::Core::Hashable
720
+
721
+ # Output only. CPU temperature sample info per CPU core in Celsius
722
+ # Corresponds to the JSON property `cpuTemperatureInfo`
723
+ # @return [Array<Google::Apis::ChromemanagementV1::GoogleChromeManagementV1CpuTemperatureInfo>]
724
+ attr_accessor :cpu_temperature_info
725
+
726
+ # Output only. Sample of CPU utilization (0-100 percent).
727
+ # Corresponds to the JSON property `cpuUtilizationPct`
728
+ # @return [Fixnum]
729
+ attr_accessor :cpu_utilization_pct
730
+
731
+ # Output only. The timestamp in milliseconds representing time at which this
732
+ # report was sampled.
733
+ # Corresponds to the JSON property `reportTime`
734
+ # @return [String]
735
+ attr_accessor :report_time
736
+
737
+ # Output only. Frequency the report is sampled.
738
+ # Corresponds to the JSON property `sampleFrequency`
739
+ # @return [String]
740
+ attr_accessor :sample_frequency
741
+
742
+ def initialize(**args)
743
+ update!(**args)
744
+ end
745
+
746
+ # Update properties of this object
747
+ def update!(**args)
748
+ @cpu_temperature_info = args[:cpu_temperature_info] if args.key?(:cpu_temperature_info)
749
+ @cpu_utilization_pct = args[:cpu_utilization_pct] if args.key?(:cpu_utilization_pct)
750
+ @report_time = args[:report_time] if args.key?(:report_time)
751
+ @sample_frequency = args[:sample_frequency] if args.key?(:sample_frequency)
752
+ end
753
+ end
754
+
755
+ # CPU temperature of a device. Sampled per CPU core in Celsius
756
+ class GoogleChromeManagementV1CpuTemperatureInfo
757
+ include Google::Apis::Core::Hashable
758
+
759
+ # Output only. CPU label. Example: Core 0
760
+ # Corresponds to the JSON property `label`
761
+ # @return [String]
762
+ attr_accessor :label
763
+
764
+ # Output only. CPU temperature in Celsius.
765
+ # Corresponds to the JSON property `temperatureCelsius`
766
+ # @return [Fixnum]
767
+ attr_accessor :temperature_celsius
768
+
769
+ def initialize(**args)
770
+ update!(**args)
771
+ end
772
+
773
+ # Update properties of this object
774
+ def update!(**args)
775
+ @label = args[:label] if args.key?(:label)
776
+ @temperature_celsius = args[:temperature_celsius] if args.key?(:temperature_celsius)
777
+ end
778
+ end
779
+
780
+ # Describes a device reporting Chrome browser information.
781
+ class GoogleChromeManagementV1Device
782
+ include Google::Apis::Core::Hashable
783
+
784
+ # Output only. The ID of the device that reported this Chrome browser
785
+ # information.
786
+ # Corresponds to the JSON property `deviceId`
787
+ # @return [String]
788
+ attr_accessor :device_id
789
+
790
+ # Output only. The name of the machine within its local network.
791
+ # Corresponds to the JSON property `machine`
792
+ # @return [String]
793
+ attr_accessor :machine
794
+
795
+ def initialize(**args)
796
+ update!(**args)
797
+ end
798
+
799
+ # Update properties of this object
800
+ def update!(**args)
801
+ @device_id = args[:device_id] if args.key?(:device_id)
802
+ @machine = args[:machine] if args.key?(:machine)
803
+ end
804
+ end
805
+
806
+ # Status of the single storage device.
807
+ class GoogleChromeManagementV1DiskInfo
808
+ include Google::Apis::Core::Hashable
809
+
810
+ # Output only. Number of bytes read since last boot.
811
+ # Corresponds to the JSON property `bytesReadThisSession`
812
+ # @return [Fixnum]
813
+ attr_accessor :bytes_read_this_session
814
+
815
+ # Output only. Number of bytes written since last boot.
816
+ # Corresponds to the JSON property `bytesWrittenThisSession`
817
+ # @return [Fixnum]
818
+ attr_accessor :bytes_written_this_session
819
+
820
+ # Output only. Time spent discarding since last boot. Discarding is writing to
821
+ # clear blocks which are no longer in use. Supported on kernels 4.18+.
822
+ # Corresponds to the JSON property `discardTimeThisSession`
823
+ # @return [String]
824
+ attr_accessor :discard_time_this_session
825
+
826
+ # Output only. Disk health.
827
+ # Corresponds to the JSON property `health`
828
+ # @return [String]
829
+ attr_accessor :health
830
+
831
+ # Output only. Counts the time the disk and queue were busy, so unlike the
832
+ # fields above, parallel requests are not counted multiple times.
833
+ # Corresponds to the JSON property `ioTimeThisSession`
834
+ # @return [String]
835
+ attr_accessor :io_time_this_session
836
+
837
+ # Output only. Disk manufacturer.
838
+ # Corresponds to the JSON property `manufacturer`
839
+ # @return [String]
840
+ attr_accessor :manufacturer
841
+
842
+ # Output only. Disk model.
843
+ # Corresponds to the JSON property `model`
844
+ # @return [String]
845
+ attr_accessor :model
846
+
847
+ # Output only. Time spent reading from disk since last boot.
848
+ # Corresponds to the JSON property `readTimeThisSession`
849
+ # @return [String]
850
+ attr_accessor :read_time_this_session
851
+
852
+ # Output only. Disk serial number.
853
+ # Corresponds to the JSON property `serialNumber`
854
+ # @return [String]
855
+ attr_accessor :serial_number
856
+
857
+ # Output only. Disk size.
858
+ # Corresponds to the JSON property `sizeBytes`
859
+ # @return [Fixnum]
860
+ attr_accessor :size_bytes
861
+
862
+ # Output only. Disk type: eMMC / NVMe / ATA / SCSI.
863
+ # Corresponds to the JSON property `type`
864
+ # @return [String]
865
+ attr_accessor :type
866
+
867
+ # Output only. Disk volumes.
868
+ # Corresponds to the JSON property `volumeIds`
869
+ # @return [Array<String>]
870
+ attr_accessor :volume_ids
871
+
872
+ # Output only. Time spent writing to disk since last boot.
873
+ # Corresponds to the JSON property `writeTimeThisSession`
874
+ # @return [String]
875
+ attr_accessor :write_time_this_session
876
+
877
+ def initialize(**args)
878
+ update!(**args)
879
+ end
880
+
881
+ # Update properties of this object
882
+ def update!(**args)
883
+ @bytes_read_this_session = args[:bytes_read_this_session] if args.key?(:bytes_read_this_session)
884
+ @bytes_written_this_session = args[:bytes_written_this_session] if args.key?(:bytes_written_this_session)
885
+ @discard_time_this_session = args[:discard_time_this_session] if args.key?(:discard_time_this_session)
886
+ @health = args[:health] if args.key?(:health)
887
+ @io_time_this_session = args[:io_time_this_session] if args.key?(:io_time_this_session)
888
+ @manufacturer = args[:manufacturer] if args.key?(:manufacturer)
889
+ @model = args[:model] if args.key?(:model)
890
+ @read_time_this_session = args[:read_time_this_session] if args.key?(:read_time_this_session)
891
+ @serial_number = args[:serial_number] if args.key?(:serial_number)
892
+ @size_bytes = args[:size_bytes] if args.key?(:size_bytes)
893
+ @type = args[:type] if args.key?(:type)
894
+ @volume_ids = args[:volume_ids] if args.key?(:volume_ids)
895
+ @write_time_this_session = args[:write_time_this_session] if args.key?(:write_time_this_session)
896
+ end
897
+ end
898
+
899
+ # Information for a display.
900
+ class GoogleChromeManagementV1DisplayInfo
901
+ include Google::Apis::Core::Hashable
902
+
903
+ # Output only. Represents the graphics card device id.
904
+ # Corresponds to the JSON property `deviceId`
905
+ # @return [Fixnum]
906
+ attr_accessor :device_id
907
+
908
+ # Output only. Indicates if display is internal or not.
909
+ # Corresponds to the JSON property `isInternal`
910
+ # @return [Boolean]
911
+ attr_accessor :is_internal
912
+ alias_method :is_internal?, :is_internal
913
+
914
+ # Output only. Refresh rate in Hz.
915
+ # Corresponds to the JSON property `refreshRate`
916
+ # @return [Fixnum]
917
+ attr_accessor :refresh_rate
918
+
919
+ # Output only. Resolution height in pixels.
920
+ # Corresponds to the JSON property `resolutionHeight`
921
+ # @return [Fixnum]
922
+ attr_accessor :resolution_height
923
+
924
+ # Output only. Resolution width in pixels.
925
+ # Corresponds to the JSON property `resolutionWidth`
926
+ # @return [Fixnum]
927
+ attr_accessor :resolution_width
928
+
929
+ def initialize(**args)
930
+ update!(**args)
931
+ end
932
+
933
+ # Update properties of this object
934
+ def update!(**args)
935
+ @device_id = args[:device_id] if args.key?(:device_id)
936
+ @is_internal = args[:is_internal] if args.key?(:is_internal)
937
+ @refresh_rate = args[:refresh_rate] if args.key?(:refresh_rate)
938
+ @resolution_height = args[:resolution_height] if args.key?(:resolution_height)
939
+ @resolution_width = args[:resolution_width] if args.key?(:resolution_width)
940
+ end
941
+ end
942
+
943
+ # Response containing a list of devices with queried app installed.
944
+ class GoogleChromeManagementV1FindInstalledAppDevicesResponse
945
+ include Google::Apis::Core::Hashable
946
+
947
+ # A list of devices which have the app installed. Sorted in ascending
948
+ # alphabetical order on the Device.machine field.
949
+ # Corresponds to the JSON property `devices`
950
+ # @return [Array<Google::Apis::ChromemanagementV1::GoogleChromeManagementV1Device>]
951
+ attr_accessor :devices
952
+
953
+ # Token to specify the next page of the request.
954
+ # Corresponds to the JSON property `nextPageToken`
955
+ # @return [String]
956
+ attr_accessor :next_page_token
957
+
958
+ # Total number of devices matching request.
959
+ # Corresponds to the JSON property `totalSize`
960
+ # @return [Fixnum]
961
+ attr_accessor :total_size
962
+
963
+ def initialize(**args)
964
+ update!(**args)
965
+ end
966
+
967
+ # Update properties of this object
968
+ def update!(**args)
969
+ @devices = args[:devices] if args.key?(:devices)
970
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
971
+ @total_size = args[:total_size] if args.key?(:total_size)
972
+ end
973
+ end
974
+
975
+ # Information of a graphics adapter (GPU).
976
+ class GoogleChromeManagementV1GraphicsAdapterInfo
977
+ include Google::Apis::Core::Hashable
978
+
979
+ # Output only. Adapter name. Example: Mesa DRI Intel(R) UHD Graphics 620 (
980
+ # Kabylake GT2).
981
+ # Corresponds to the JSON property `adapter`
982
+ # @return [String]
983
+ attr_accessor :adapter
984
+
985
+ # Output only. Represents the graphics card device id.
986
+ # Corresponds to the JSON property `deviceId`
987
+ # @return [Fixnum]
988
+ attr_accessor :device_id
989
+
990
+ # Output only. Version of the GPU driver.
991
+ # Corresponds to the JSON property `driverVersion`
992
+ # @return [String]
993
+ attr_accessor :driver_version
117
994
 
118
995
  def initialize(**args)
119
996
  update!(**args)
@@ -121,26 +998,20 @@ module Google
121
998
 
122
999
  # Update properties of this object
123
1000
  def update!(**args)
124
- @installed_apps = args[:installed_apps] if args.key?(:installed_apps)
125
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
126
- @total_size = args[:total_size] if args.key?(:total_size)
1001
+ @adapter = args[:adapter] if args.key?(:adapter)
1002
+ @device_id = args[:device_id] if args.key?(:device_id)
1003
+ @driver_version = args[:driver_version] if args.key?(:driver_version)
127
1004
  end
128
1005
  end
129
1006
 
130
- # Describes a device reporting Chrome browser information.
131
- class GoogleChromeManagementV1Device
1007
+ # Information of the graphics subsystem.
1008
+ class GoogleChromeManagementV1GraphicsInfo
132
1009
  include Google::Apis::Core::Hashable
133
1010
 
134
- # Output only. The ID of the device that reported this Chrome browser
135
- # information.
136
- # Corresponds to the JSON property `deviceId`
137
- # @return [String]
138
- attr_accessor :device_id
139
-
140
- # Output only. The name of the machine within its local network.
141
- # Corresponds to the JSON property `machine`
142
- # @return [String]
143
- attr_accessor :machine
1011
+ # Information of a graphics adapter (GPU).
1012
+ # Corresponds to the JSON property `adapterInfo`
1013
+ # @return [Google::Apis::ChromemanagementV1::GoogleChromeManagementV1GraphicsAdapterInfo]
1014
+ attr_accessor :adapter_info
144
1015
 
145
1016
  def initialize(**args)
146
1017
  update!(**args)
@@ -148,30 +1019,23 @@ module Google
148
1019
 
149
1020
  # Update properties of this object
150
1021
  def update!(**args)
151
- @device_id = args[:device_id] if args.key?(:device_id)
152
- @machine = args[:machine] if args.key?(:machine)
1022
+ @adapter_info = args[:adapter_info] if args.key?(:adapter_info)
153
1023
  end
154
1024
  end
155
1025
 
156
- # Response containing a list of devices with queried app installed.
157
- class GoogleChromeManagementV1FindInstalledAppDevicesResponse
1026
+ # Information of the graphics subsystem.
1027
+ class GoogleChromeManagementV1GraphicsStatusReport
158
1028
  include Google::Apis::Core::Hashable
159
1029
 
160
- # A list of devices which have the app installed. Sorted in ascending
161
- # alphabetical order on the Device.machine field.
162
- # Corresponds to the JSON property `devices`
163
- # @return [Array<Google::Apis::ChromemanagementV1::GoogleChromeManagementV1Device>]
164
- attr_accessor :devices
1030
+ # Output only. Information about the displays for the device.
1031
+ # Corresponds to the JSON property `displays`
1032
+ # @return [Array<Google::Apis::ChromemanagementV1::GoogleChromeManagementV1DisplayInfo>]
1033
+ attr_accessor :displays
165
1034
 
166
- # Token to specify the next page of the request.
167
- # Corresponds to the JSON property `nextPageToken`
1035
+ # Output only. Time at which the graphics data was reported.
1036
+ # Corresponds to the JSON property `reportTime`
168
1037
  # @return [String]
169
- attr_accessor :next_page_token
170
-
171
- # Total number of devices matching request.
172
- # Corresponds to the JSON property `totalSize`
173
- # @return [Fixnum]
174
- attr_accessor :total_size
1038
+ attr_accessor :report_time
175
1039
 
176
1040
  def initialize(**args)
177
1041
  update!(**args)
@@ -179,9 +1043,8 @@ module Google
179
1043
 
180
1044
  # Update properties of this object
181
1045
  def update!(**args)
182
- @devices = args[:devices] if args.key?(:devices)
183
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
184
- @total_size = args[:total_size] if args.key?(:total_size)
1046
+ @displays = args[:displays] if args.key?(:displays)
1047
+ @report_time = args[:report_time] if args.key?(:report_time)
185
1048
  end
186
1049
  end
187
1050
 
@@ -266,6 +1129,475 @@ module Google
266
1129
  @permissions = args[:permissions] if args.key?(:permissions)
267
1130
  end
268
1131
  end
1132
+
1133
+ #
1134
+ class GoogleChromeManagementV1ListTelemetryDevicesResponse
1135
+ include Google::Apis::Core::Hashable
1136
+
1137
+ # Telemetry devices returned in the response.
1138
+ # Corresponds to the JSON property `devices`
1139
+ # @return [Array<Google::Apis::ChromemanagementV1::GoogleChromeManagementV1TelemetryDevice>]
1140
+ attr_accessor :devices
1141
+
1142
+ # Token to specify next page in the list.
1143
+ # Corresponds to the JSON property `nextPageToken`
1144
+ # @return [String]
1145
+ attr_accessor :next_page_token
1146
+
1147
+ def initialize(**args)
1148
+ update!(**args)
1149
+ end
1150
+
1151
+ # Update properties of this object
1152
+ def update!(**args)
1153
+ @devices = args[:devices] if args.key?(:devices)
1154
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1155
+ end
1156
+ end
1157
+
1158
+ # Memory information of a device.
1159
+ class GoogleChromeManagementV1MemoryInfo
1160
+ include Google::Apis::Core::Hashable
1161
+
1162
+ # Output only. Amount of available RAM in bytes.
1163
+ # Corresponds to the JSON property `availableRamBytes`
1164
+ # @return [Fixnum]
1165
+ attr_accessor :available_ram_bytes
1166
+
1167
+ # Output only. Total RAM in bytes.
1168
+ # Corresponds to the JSON property `totalRamBytes`
1169
+ # @return [Fixnum]
1170
+ attr_accessor :total_ram_bytes
1171
+
1172
+ def initialize(**args)
1173
+ update!(**args)
1174
+ end
1175
+
1176
+ # Update properties of this object
1177
+ def update!(**args)
1178
+ @available_ram_bytes = args[:available_ram_bytes] if args.key?(:available_ram_bytes)
1179
+ @total_ram_bytes = args[:total_ram_bytes] if args.key?(:total_ram_bytes)
1180
+ end
1181
+ end
1182
+
1183
+ # Contains samples of memory status reports.
1184
+ class GoogleChromeManagementV1MemoryStatusReport
1185
+ include Google::Apis::Core::Hashable
1186
+
1187
+ # Output only. Number of page faults during this collection
1188
+ # Corresponds to the JSON property `pageFaults`
1189
+ # @return [Fixnum]
1190
+ attr_accessor :page_faults
1191
+
1192
+ # Output only. The timestamp in milliseconds representing time at which this
1193
+ # report was sampled.
1194
+ # Corresponds to the JSON property `reportTime`
1195
+ # @return [String]
1196
+ attr_accessor :report_time
1197
+
1198
+ # Output only. Frequency the report is sampled.
1199
+ # Corresponds to the JSON property `sampleFrequency`
1200
+ # @return [String]
1201
+ attr_accessor :sample_frequency
1202
+
1203
+ # Output only. Amount of free RAM in bytes (unreliable due to Garbage Collection)
1204
+ # .
1205
+ # Corresponds to the JSON property `systemRamFreeBytes`
1206
+ # @return [Fixnum]
1207
+ attr_accessor :system_ram_free_bytes
1208
+
1209
+ def initialize(**args)
1210
+ update!(**args)
1211
+ end
1212
+
1213
+ # Update properties of this object
1214
+ def update!(**args)
1215
+ @page_faults = args[:page_faults] if args.key?(:page_faults)
1216
+ @report_time = args[:report_time] if args.key?(:report_time)
1217
+ @sample_frequency = args[:sample_frequency] if args.key?(:sample_frequency)
1218
+ @system_ram_free_bytes = args[:system_ram_free_bytes] if args.key?(:system_ram_free_bytes)
1219
+ end
1220
+ end
1221
+
1222
+ # State of visible/configured networks.
1223
+ class GoogleChromeManagementV1NetworkStatusReport
1224
+ include Google::Apis::Core::Hashable
1225
+
1226
+ # Output only. Gateway IP address.
1227
+ # Corresponds to the JSON property `gatewayIpAddress`
1228
+ # @return [String]
1229
+ attr_accessor :gateway_ip_address
1230
+
1231
+ # Output only. LAN IP address.
1232
+ # Corresponds to the JSON property `lanIpAddress`
1233
+ # @return [String]
1234
+ attr_accessor :lan_ip_address
1235
+
1236
+ # Output only. Time at which the network state was reported.
1237
+ # Corresponds to the JSON property `reportTime`
1238
+ # @return [String]
1239
+ attr_accessor :report_time
1240
+
1241
+ # Output only. Frequency the report is sampled.
1242
+ # Corresponds to the JSON property `sampleFrequency`
1243
+ # @return [String]
1244
+ attr_accessor :sample_frequency
1245
+
1246
+ # Output only. Signal strength for wireless networks measured in decibels.
1247
+ # Corresponds to the JSON property `signalStrengthDbm`
1248
+ # @return [Fixnum]
1249
+ attr_accessor :signal_strength_dbm
1250
+
1251
+ def initialize(**args)
1252
+ update!(**args)
1253
+ end
1254
+
1255
+ # Update properties of this object
1256
+ def update!(**args)
1257
+ @gateway_ip_address = args[:gateway_ip_address] if args.key?(:gateway_ip_address)
1258
+ @lan_ip_address = args[:lan_ip_address] if args.key?(:lan_ip_address)
1259
+ @report_time = args[:report_time] if args.key?(:report_time)
1260
+ @sample_frequency = args[:sample_frequency] if args.key?(:sample_frequency)
1261
+ @signal_strength_dbm = args[:signal_strength_dbm] if args.key?(:signal_strength_dbm)
1262
+ end
1263
+ end
1264
+
1265
+ # Contains information regarding the current OS update status.
1266
+ class GoogleChromeManagementV1OsUpdateStatus
1267
+ include Google::Apis::Core::Hashable
1268
+
1269
+ # Output only. Timestamp of the last reboot.
1270
+ # Corresponds to the JSON property `lastRebootTime`
1271
+ # @return [String]
1272
+ attr_accessor :last_reboot_time
1273
+
1274
+ # Output only. Timestamp of the last update check.
1275
+ # Corresponds to the JSON property `lastUpdateCheckTime`
1276
+ # @return [String]
1277
+ attr_accessor :last_update_check_time
1278
+
1279
+ # Output only. Timestamp of the last successful update.
1280
+ # Corresponds to the JSON property `lastUpdateTime`
1281
+ # @return [String]
1282
+ attr_accessor :last_update_time
1283
+
1284
+ # Output only. New platform version of the os image being downloaded and applied.
1285
+ # It is only set when update status is OS_IMAGE_DOWNLOAD_IN_PROGRESS or
1286
+ # OS_UPDATE_NEED_REBOOT. Note this could be a dummy "0.0.0.0" for
1287
+ # OS_UPDATE_NEED_REBOOT status for some edge cases, e.g. update engine is
1288
+ # restarted without a reboot.
1289
+ # Corresponds to the JSON property `newPlatformVersion`
1290
+ # @return [String]
1291
+ attr_accessor :new_platform_version
1292
+
1293
+ # Output only. New requested platform version from the pending updated kiosk app.
1294
+ # Corresponds to the JSON property `newRequestedPlatformVersion`
1295
+ # @return [String]
1296
+ attr_accessor :new_requested_platform_version
1297
+
1298
+ # Output only. Current state of the os update.
1299
+ # Corresponds to the JSON property `updateState`
1300
+ # @return [String]
1301
+ attr_accessor :update_state
1302
+
1303
+ def initialize(**args)
1304
+ update!(**args)
1305
+ end
1306
+
1307
+ # Update properties of this object
1308
+ def update!(**args)
1309
+ @last_reboot_time = args[:last_reboot_time] if args.key?(:last_reboot_time)
1310
+ @last_update_check_time = args[:last_update_check_time] if args.key?(:last_update_check_time)
1311
+ @last_update_time = args[:last_update_time] if args.key?(:last_update_time)
1312
+ @new_platform_version = args[:new_platform_version] if args.key?(:new_platform_version)
1313
+ @new_requested_platform_version = args[:new_requested_platform_version] if args.key?(:new_requested_platform_version)
1314
+ @update_state = args[:update_state] if args.key?(:update_state)
1315
+ end
1316
+ end
1317
+
1318
+ # Status data for storage.
1319
+ class GoogleChromeManagementV1StorageInfo
1320
+ include Google::Apis::Core::Hashable
1321
+
1322
+ # The available space for user data storage in the device in bytes.
1323
+ # Corresponds to the JSON property `availableDiskBytes`
1324
+ # @return [Fixnum]
1325
+ attr_accessor :available_disk_bytes
1326
+
1327
+ # The total space for user data storage in the device in bytes.
1328
+ # Corresponds to the JSON property `totalDiskBytes`
1329
+ # @return [Fixnum]
1330
+ attr_accessor :total_disk_bytes
1331
+
1332
+ # Information for disk volumes
1333
+ # Corresponds to the JSON property `volume`
1334
+ # @return [Array<Google::Apis::ChromemanagementV1::GoogleChromeManagementV1StorageInfoDiskVolume>]
1335
+ attr_accessor :volume
1336
+
1337
+ def initialize(**args)
1338
+ update!(**args)
1339
+ end
1340
+
1341
+ # Update properties of this object
1342
+ def update!(**args)
1343
+ @available_disk_bytes = args[:available_disk_bytes] if args.key?(:available_disk_bytes)
1344
+ @total_disk_bytes = args[:total_disk_bytes] if args.key?(:total_disk_bytes)
1345
+ @volume = args[:volume] if args.key?(:volume)
1346
+ end
1347
+ end
1348
+
1349
+ # Information for disk volumes
1350
+ class GoogleChromeManagementV1StorageInfoDiskVolume
1351
+ include Google::Apis::Core::Hashable
1352
+
1353
+ # Free storage space in bytes.
1354
+ # Corresponds to the JSON property `storageFreeBytes`
1355
+ # @return [Fixnum]
1356
+ attr_accessor :storage_free_bytes
1357
+
1358
+ # Total storage space in bytes.
1359
+ # Corresponds to the JSON property `storageTotalBytes`
1360
+ # @return [Fixnum]
1361
+ attr_accessor :storage_total_bytes
1362
+
1363
+ # Disk volume id.
1364
+ # Corresponds to the JSON property `volumeId`
1365
+ # @return [String]
1366
+ attr_accessor :volume_id
1367
+
1368
+ def initialize(**args)
1369
+ update!(**args)
1370
+ end
1371
+
1372
+ # Update properties of this object
1373
+ def update!(**args)
1374
+ @storage_free_bytes = args[:storage_free_bytes] if args.key?(:storage_free_bytes)
1375
+ @storage_total_bytes = args[:storage_total_bytes] if args.key?(:storage_total_bytes)
1376
+ @volume_id = args[:volume_id] if args.key?(:volume_id)
1377
+ end
1378
+ end
1379
+
1380
+ # Status data for storage.
1381
+ class GoogleChromeManagementV1StorageStatusReport
1382
+ include Google::Apis::Core::Hashable
1383
+
1384
+ # Output only. Reports on disk
1385
+ # Corresponds to the JSON property `disk`
1386
+ # @return [Array<Google::Apis::ChromemanagementV1::GoogleChromeManagementV1DiskInfo>]
1387
+ attr_accessor :disk
1388
+
1389
+ # Output only. Timestamp of when the sample was collected on device
1390
+ # Corresponds to the JSON property `reportTime`
1391
+ # @return [String]
1392
+ attr_accessor :report_time
1393
+
1394
+ def initialize(**args)
1395
+ update!(**args)
1396
+ end
1397
+
1398
+ # Update properties of this object
1399
+ def update!(**args)
1400
+ @disk = args[:disk] if args.key?(:disk)
1401
+ @report_time = args[:report_time] if args.key?(:report_time)
1402
+ end
1403
+ end
1404
+
1405
+ # Telemetry data collected from a managed device.
1406
+ class GoogleChromeManagementV1TelemetryDevice
1407
+ include Google::Apis::Core::Hashable
1408
+
1409
+ # Output only. Information on battery specs for the device.
1410
+ # Corresponds to the JSON property `batteryInfo`
1411
+ # @return [Array<Google::Apis::ChromemanagementV1::GoogleChromeManagementV1BatteryInfo>]
1412
+ attr_accessor :battery_info
1413
+
1414
+ # Output only. Battery reports collected periodically.
1415
+ # Corresponds to the JSON property `batteryStatusReport`
1416
+ # @return [Array<Google::Apis::ChromemanagementV1::GoogleChromeManagementV1BatteryStatusReport>]
1417
+ attr_accessor :battery_status_report
1418
+
1419
+ # Output only. Information regarding CPU specs for the device.
1420
+ # Corresponds to the JSON property `cpuInfo`
1421
+ # @return [Array<Google::Apis::ChromemanagementV1::GoogleChromeManagementV1CpuInfo>]
1422
+ attr_accessor :cpu_info
1423
+
1424
+ # Output only. CPU status reports collected periodically.
1425
+ # Corresponds to the JSON property `cpuStatusReport`
1426
+ # @return [Array<Google::Apis::ChromemanagementV1::GoogleChromeManagementV1CpuStatusReport>]
1427
+ attr_accessor :cpu_status_report
1428
+
1429
+ # Output only. Google Workspace Customer whose enterprise enrolled the device.
1430
+ # Corresponds to the JSON property `customer`
1431
+ # @return [String]
1432
+ attr_accessor :customer
1433
+
1434
+ # Output only. The unique Directory API ID of the device. This value is the same
1435
+ # as the Admin Console's Directory API ID in the Chrome OS Devices tab
1436
+ # Corresponds to the JSON property `deviceId`
1437
+ # @return [String]
1438
+ attr_accessor :device_id
1439
+
1440
+ # Information of the graphics subsystem.
1441
+ # Corresponds to the JSON property `graphicsInfo`
1442
+ # @return [Google::Apis::ChromemanagementV1::GoogleChromeManagementV1GraphicsInfo]
1443
+ attr_accessor :graphics_info
1444
+
1445
+ # Output only. Graphics reports collected periodically.
1446
+ # Corresponds to the JSON property `graphicsStatusReport`
1447
+ # @return [Array<Google::Apis::ChromemanagementV1::GoogleChromeManagementV1GraphicsStatusReport>]
1448
+ attr_accessor :graphics_status_report
1449
+
1450
+ # Memory information of a device.
1451
+ # Corresponds to the JSON property `memoryInfo`
1452
+ # @return [Google::Apis::ChromemanagementV1::GoogleChromeManagementV1MemoryInfo]
1453
+ attr_accessor :memory_info
1454
+
1455
+ # Output only. Memory status reports collected periodically.
1456
+ # Corresponds to the JSON property `memoryStatusReport`
1457
+ # @return [Array<Google::Apis::ChromemanagementV1::GoogleChromeManagementV1MemoryStatusReport>]
1458
+ attr_accessor :memory_status_report
1459
+
1460
+ # Output only. Resource name of the device.
1461
+ # Corresponds to the JSON property `name`
1462
+ # @return [String]
1463
+ attr_accessor :name
1464
+
1465
+ # Output only. Network specs collected periodically.
1466
+ # Corresponds to the JSON property `networkStatusReport`
1467
+ # @return [Array<Google::Apis::ChromemanagementV1::GoogleChromeManagementV1NetworkStatusReport>]
1468
+ attr_accessor :network_status_report
1469
+
1470
+ # Output only. Organization unit ID of the device.
1471
+ # Corresponds to the JSON property `orgUnitId`
1472
+ # @return [String]
1473
+ attr_accessor :org_unit_id
1474
+
1475
+ # Output only. Contains relevant information regarding ChromeOS update status.
1476
+ # Corresponds to the JSON property `osUpdateStatus`
1477
+ # @return [Array<Google::Apis::ChromemanagementV1::GoogleChromeManagementV1OsUpdateStatus>]
1478
+ attr_accessor :os_update_status
1479
+
1480
+ # Output only. Device serial number. This value is the same as the Admin Console'
1481
+ # s Serial Number in the Chrome OS Devices tab.
1482
+ # Corresponds to the JSON property `serialNumber`
1483
+ # @return [String]
1484
+ attr_accessor :serial_number
1485
+
1486
+ # Status data for storage.
1487
+ # Corresponds to the JSON property `storageInfo`
1488
+ # @return [Google::Apis::ChromemanagementV1::GoogleChromeManagementV1StorageInfo]
1489
+ attr_accessor :storage_info
1490
+
1491
+ # Output only. Storage reports collected periodically.
1492
+ # Corresponds to the JSON property `storageStatusReport`
1493
+ # @return [Array<Google::Apis::ChromemanagementV1::GoogleChromeManagementV1StorageStatusReport>]
1494
+ attr_accessor :storage_status_report
1495
+
1496
+ def initialize(**args)
1497
+ update!(**args)
1498
+ end
1499
+
1500
+ # Update properties of this object
1501
+ def update!(**args)
1502
+ @battery_info = args[:battery_info] if args.key?(:battery_info)
1503
+ @battery_status_report = args[:battery_status_report] if args.key?(:battery_status_report)
1504
+ @cpu_info = args[:cpu_info] if args.key?(:cpu_info)
1505
+ @cpu_status_report = args[:cpu_status_report] if args.key?(:cpu_status_report)
1506
+ @customer = args[:customer] if args.key?(:customer)
1507
+ @device_id = args[:device_id] if args.key?(:device_id)
1508
+ @graphics_info = args[:graphics_info] if args.key?(:graphics_info)
1509
+ @graphics_status_report = args[:graphics_status_report] if args.key?(:graphics_status_report)
1510
+ @memory_info = args[:memory_info] if args.key?(:memory_info)
1511
+ @memory_status_report = args[:memory_status_report] if args.key?(:memory_status_report)
1512
+ @name = args[:name] if args.key?(:name)
1513
+ @network_status_report = args[:network_status_report] if args.key?(:network_status_report)
1514
+ @org_unit_id = args[:org_unit_id] if args.key?(:org_unit_id)
1515
+ @os_update_status = args[:os_update_status] if args.key?(:os_update_status)
1516
+ @serial_number = args[:serial_number] if args.key?(:serial_number)
1517
+ @storage_info = args[:storage_info] if args.key?(:storage_info)
1518
+ @storage_status_report = args[:storage_status_report] if args.key?(:storage_status_report)
1519
+ end
1520
+ end
1521
+
1522
+ # The `Status` type defines a logical error model that is suitable for different
1523
+ # programming environments, including REST APIs and RPC APIs. It is used by [
1524
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
1525
+ # data: error code, error message, and error details. You can find out more
1526
+ # about this error model and how to work with it in the [API Design Guide](https:
1527
+ # //cloud.google.com/apis/design/errors).
1528
+ class GoogleRpcStatus
1529
+ include Google::Apis::Core::Hashable
1530
+
1531
+ # The status code, which should be an enum value of google.rpc.Code.
1532
+ # Corresponds to the JSON property `code`
1533
+ # @return [Fixnum]
1534
+ attr_accessor :code
1535
+
1536
+ # A list of messages that carry the error details. There is a common set of
1537
+ # message types for APIs to use.
1538
+ # Corresponds to the JSON property `details`
1539
+ # @return [Array<Hash<String,Object>>]
1540
+ attr_accessor :details
1541
+
1542
+ # A developer-facing error message, which should be in English. Any user-facing
1543
+ # error message should be localized and sent in the google.rpc.Status.details
1544
+ # field, or localized by the client.
1545
+ # Corresponds to the JSON property `message`
1546
+ # @return [String]
1547
+ attr_accessor :message
1548
+
1549
+ def initialize(**args)
1550
+ update!(**args)
1551
+ end
1552
+
1553
+ # Update properties of this object
1554
+ def update!(**args)
1555
+ @code = args[:code] if args.key?(:code)
1556
+ @details = args[:details] if args.key?(:details)
1557
+ @message = args[:message] if args.key?(:message)
1558
+ end
1559
+ end
1560
+
1561
+ # Represents a whole or partial calendar date, such as a birthday. The time of
1562
+ # day and time zone are either specified elsewhere or are insignificant. The
1563
+ # date is relative to the Gregorian Calendar. This can represent one of the
1564
+ # following: * A full date, with non-zero year, month, and day values * A month
1565
+ # and day value, with a zero year, such as an anniversary * A year on its own,
1566
+ # with zero month and day values * A year and month value, with a zero day, such
1567
+ # as a credit card expiration date Related types are google.type.TimeOfDay and `
1568
+ # google.protobuf.Timestamp`.
1569
+ class GoogleTypeDate
1570
+ include Google::Apis::Core::Hashable
1571
+
1572
+ # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to
1573
+ # specify a year by itself or a year and month where the day isn't significant.
1574
+ # Corresponds to the JSON property `day`
1575
+ # @return [Fixnum]
1576
+ attr_accessor :day
1577
+
1578
+ # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month
1579
+ # and day.
1580
+ # Corresponds to the JSON property `month`
1581
+ # @return [Fixnum]
1582
+ attr_accessor :month
1583
+
1584
+ # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a
1585
+ # year.
1586
+ # Corresponds to the JSON property `year`
1587
+ # @return [Fixnum]
1588
+ attr_accessor :year
1589
+
1590
+ def initialize(**args)
1591
+ update!(**args)
1592
+ end
1593
+
1594
+ # Update properties of this object
1595
+ def update!(**args)
1596
+ @day = args[:day] if args.key?(:day)
1597
+ @month = args[:month] if args.key?(:month)
1598
+ @year = args[:year] if args.key?(:year)
1599
+ end
1600
+ end
269
1601
  end
270
1602
  end
271
1603
  end