/
migrationcenter_v1alpha1.projects.locations.assets.html
2652 lines (2591 loc) 路 191 KB
/
migrationcenter_v1alpha1.projects.locations.assets.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<html><body>
<style>
body, h1, h2, h3, div, span, p, pre, a {
margin: 0;
padding: 0;
border: 0;
font-weight: inherit;
font-style: inherit;
font-size: 100%;
font-family: inherit;
vertical-align: baseline;
}
body {
font-size: 13px;
padding: 1em;
}
h1 {
font-size: 26px;
margin-bottom: 1em;
}
h2 {
font-size: 24px;
margin-bottom: 1em;
}
h3 {
font-size: 20px;
margin-bottom: 1em;
margin-top: 1em;
}
pre, code {
line-height: 1.5;
font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
}
pre {
margin-top: 0.5em;
}
h1, h2, h3, p {
font-family: Arial, sans serif;
}
h1, h2, h3 {
border-bottom: solid #CCC 1px;
}
.toc_element {
margin-top: 0.5em;
}
.firstline {
margin-left: 2 em;
}
.method {
margin-top: 1em;
border: solid 1px #CCC;
padding: 1em;
background: #EEE;
}
.details {
font-weight: bold;
font-size: 14px;
}
</style>
<h1><a href="migrationcenter_v1alpha1.html">Migration Center API</a> . <a href="migrationcenter_v1alpha1.projects.html">projects</a> . <a href="migrationcenter_v1alpha1.projects.locations.html">locations</a> . <a href="migrationcenter_v1alpha1.projects.locations.assets.html">assets</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
<code><a href="#aggregateValues">aggregateValues(parent, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Aggregates the requested fields based on provided function.</p>
<p class="toc_element">
<code><a href="#batchDelete">batchDelete(parent, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Deletes list of Assets.</p>
<p class="toc_element">
<code><a href="#batchUpdate">batchUpdate(parent, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Updates the parameters of a list of assets.</p>
<p class="toc_element">
<code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
<p class="toc_element">
<code><a href="#delete">delete(name, requestId=None, x__xgafv=None)</a></code></p>
<p class="firstline">Deletes an asset.</p>
<p class="toc_element">
<code><a href="#get">get(name, view=None, x__xgafv=None)</a></code></p>
<p class="firstline">Gets the details of an asset.</p>
<p class="toc_element">
<code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, view=None, x__xgafv=None)</a></code></p>
<p class="firstline">Lists all the assets in a given project and location.</p>
<p class="toc_element">
<code><a href="#list_next">list_next()</a></code></p>
<p class="firstline">Retrieves the next page of results.</p>
<p class="toc_element">
<code><a href="#patch">patch(name, body=None, requestId=None, updateMask=None, x__xgafv=None)</a></code></p>
<p class="firstline">Updates the parameters of an asset.</p>
<p class="toc_element">
<code><a href="#reportAssetFrames">reportAssetFrames(parent, body=None, source=None, x__xgafv=None)</a></code></p>
<p class="firstline">Reports a set of frames.</p>
<h3>Method Details</h3>
<div class="method">
<code class="details" id="aggregateValues">aggregateValues(parent, body=None, x__xgafv=None)</code>
<pre>Aggregates the requested fields based on provided function.
Args:
parent: string, Required. Parent value for `AggregateAssetsValuesRequest`. (required)
body: object, The request body.
The object takes the form of:
{ # A request to aggregate one or more values.
"aggregations": [ # Array of aggregations to perform. Up to 25 aggregations can be defined.
{ # Message describing an aggregation. The message includes the aggregation type, parameters, and the field on which to perform the aggregation.
"count": { # Object count. # Count the number of matching objects.
},
"field": "A String", # The name of the field on which to aggregate.
"frequency": { # Frequency distribution of all field values. # Creates a frequency distribution of all field values.
},
"histogram": { # Histogram of bucketed assets counts by field value. # Creates a bucketed histogram of field values.
"lowerBounds": [ # Lower bounds of buckets. The response will contain `n+1` buckets for `n` bounds. The first bucket will count all assets for which the field value is smaller than the first bound. Subsequent buckets will count assets for which the field value is greater or equal to a lower bound and smaller than the next one. The last bucket will count assets for which the field value is greater or equal to the final lower bound. You can define up to 20 lower bounds.
3.14,
],
},
"sum": { # Sum of field values. # Sum over a numeric field.
},
},
],
"filter": "A String", # The aggregation will be performed on assets that match the provided filter.
}
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # A response to a request to aggregated assets values.
"results": [ # The aggregation results.
{ # Message describing a result of an aggregation.
"count": { # The result of a count aggregation.
"value": "A String",
},
"field": "A String",
"frequency": { # The result of a frequency distribution aggregation.
"values": {
"a_key": "A String",
},
},
"histogram": { # The result of a bucketed histogram aggregation.
"buckets": [ # Buckets in the histogram. There will be `n+1` buckets matching `n` lower bounds in the request. The first bucket will be from -infinity to the first bound. Subsequent buckets will be between one bound and the next. The final bucket will be from the final bound to infinity.
{ # A histogram bucket with a lower and upper bound, and a count of items with a field value between those bounds. The lower bound is inclusive and the upper bound is exclusive. Lower bound may be -infinity and upper bound may be infinity.
"count": "A String", # Count of items in the bucket.
"lowerBound": 3.14, # Lower bound - inclusive.
"upperBound": 3.14, # Upper bound - exclusive.
},
],
},
"sum": { # The result of a sum aggregation.
"value": 3.14,
},
},
],
}</pre>
</div>
<div class="method">
<code class="details" id="batchDelete">batchDelete(parent, body=None, x__xgafv=None)</code>
<pre>Deletes list of Assets.
Args:
parent: string, Required. Parent value for batch asset delete. (required)
body: object, The request body.
The object takes the form of:
{ # A request to delete a list of asset.
"allowMissing": True or False, # Optional. When this value is set to `true` the request is a no-op for non-existing assets. See https://google.aip.dev/135#delete-if-existing for additional details. Default value is `false`.
"names": [ # Required. The IDs of the assets to delete. A maximum of 1000 assets can be deleted in a batch. format: projects/{project}/locations/{location}/asset/{name}.
"A String",
],
}
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
}</pre>
</div>
<div class="method">
<code class="details" id="batchUpdate">batchUpdate(parent, body=None, x__xgafv=None)</code>
<pre>Updates the parameters of a list of assets.
Args:
parent: string, Required. Parent value for batch asset update. (required)
body: object, The request body.
The object takes the form of:
{ # A request to update a list of assets.
"requests": [ # Required. The request message specifying the resources to update. A maximum of 1000 assets can be modified in a batch.
{ # A request to update an asset.
"asset": { # An asset represents a resource in your environment. Asset types include virtual machines and databases. # Required. The resource being updated.
"assignedGroups": [ # Output only. The list of groups that the asset is assigned to.
"A String",
],
"attributes": { # Generic asset attributes.
"a_key": "A String",
},
"createTime": "A String", # Output only. The timestamp when the asset was created.
"insightList": { # Message containing insights list. # Output only. The list of insights associated with the asset.
"insights": [ # Output only. Insights of the list.
{ # An insight about an asset.
"migrationInsight": { # An insight about potential migrations for an asset. # Output only. An insight about potential migrations for an asset.
"computeEngineTarget": { # Compute engine migration target. # Output only. A Google Compute Engine target.
"shape": { # Compute Engine target shape descriptor. # Description of the suggested shape for the migration target.
"logicalCoreCount": 42, # Number of logical cores.
"machineType": "A String", # Compute Engine machine type.
"memoryMb": 42, # Memory in mebibytes.
"physicalCoreCount": 42, # Number of physical cores.
"series": "A String", # Compute Engine machine series.
},
},
"fit": { # Describes the fit level of an asset for migration to a specific target. # Output only. Description of how well the asset this insight is associated with fits the proposed migration.
"fitLevel": "A String", # Fit level.
},
"gkeTarget": { # GKE migration target. # Output only. A Google Kubernetes Engine target.
},
"vmwareEngineTarget": { # VMWare engine migration target. # Output only. A VMWare Engine target.
},
},
},
],
"updateTime": "A String", # Output only. Update timestamp.
},
"labels": { # Labels as key value pairs.
"a_key": "A String",
},
"name": "A String", # Output only. The full name of the asset.
"performanceData": { # Performance data for an asset. # Output only. Performance data for the asset.
"dailyResourceUsageAggregations": [ # Daily resource usage aggregations. Contains all of the data available for an asset, up to the last 420 days.
{ # Usage data aggregation for a single day.
"cpu": { # Statistical aggregation of CPU usage. # CPU usage.
"utilizationPercentage": { # Statistical aggregation of samples for a single resource usage. # CPU utilization percentage.
"average": 3.14, # Average usage value.
"median": 3.14, # Median usage value.
"ninteyFifthPercentile": 3.14, # 95th percentile usage value.
"peak": 3.14, # Peak usage value.
},
},
"date": { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # Aggregation date. Day boundaries are at midnight UTC.
"day": 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
"month": 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
"year": 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
},
"disk": { # Statistical aggregation of disk usage. # Disk usage.
"iops": { # Statistical aggregation of samples for a single resource usage. # Disk I/O operations per second.
"average": 3.14, # Average usage value.
"median": 3.14, # Median usage value.
"ninteyFifthPercentile": 3.14, # 95th percentile usage value.
"peak": 3.14, # Peak usage value.
},
},
"memory": { # Statistical aggregation of memory usage. # Memory usage.
"utilizationPercentage": { # Statistical aggregation of samples for a single resource usage. # Memory utilization percentage.
"average": 3.14, # Average usage value.
"median": 3.14, # Median usage value.
"ninteyFifthPercentile": 3.14, # 95th percentile usage value.
"peak": 3.14, # Peak usage value.
},
},
"network": { # Statistical aggregation of network usage. # Network usage.
"egressBps": { # Statistical aggregation of samples for a single resource usage. # Network egress in B/s.
"average": 3.14, # Average usage value.
"median": 3.14, # Median usage value.
"ninteyFifthPercentile": 3.14, # 95th percentile usage value.
"peak": 3.14, # Peak usage value.
},
"ingressBps": { # Statistical aggregation of samples for a single resource usage. # Network ingress in B/s.
"average": 3.14, # Average usage value.
"median": 3.14, # Median usage value.
"ninteyFifthPercentile": 3.14, # 95th percentile usage value.
"peak": 3.14, # Peak usage value.
},
},
},
],
},
"sources": [ # Output only. The list of sources contributing to the asset.
"A String",
],
"updateTime": "A String", # Output only. The timestamp when the asset was last updated.
"virtualMachineDetails": { # Details of a VirtualMachine. # Output only. Asset information specific for virtual machines.
"coreCount": 42, # Number of CPU cores in the VirtualMachine. Must be non-negative.
"createTime": "A String", # VM creation timestamp.
"guestOs": { # Information from Guest-level collections. # Guest OS information.
"config": { # Guest OS config information. # OS and app configuration.
"fstab": { # Fstab content. # Mount list (Linux fstab).
"entries": [ # Fstab entries.
{ # Single fstab entry.
"file": "A String", # The mount point for the filesystem.
"freq": 42, # Used by dump to determine which filesystems need to be dumped.
"mntops": "A String", # Mount options associated with the filesystem.
"passno": 42, # Used by the fsck(8) program to determine the order in which filesystem checks are done at reboot time.
"spec": "A String", # The block special device or remote filesystem to be mounted.
"vfstype": "A String", # The type of the filesystem.
},
],
},
"hosts": { # Hosts content. # Hosts file (/etc/hosts).
"entries": [ # Hosts entries.
{ # Single /etc/hosts entry.
"hostNames": [ # List of host names / aliases.
"A String",
],
"ip": "A String", # IP (raw, IPv4/6 agnostic).
},
],
},
"issue": "A String", # OS issue (typically /etc/issue in Linux).
"nfsExports": { # NFS exports. # NFS exports.
"entries": [ # NFS export entries.
{ # NFS export.
"exportDirectory": "A String", # The directory being exported.
"hosts": [ # The hosts or networks to which the export is being shared.
"A String",
],
},
],
},
"selinux": { # SELinux details. # SELinux details.
"enabled": True or False, # Is SELinux enabled.
"mode": "A String", # SELinux mode enforcing / permissive.
},
},
"runtime": { # Guest OS runtime information. # Runtime information.
"domain": "A String", # Domain, e.g. c.stratozone-development.internal.
"installedApps": { # Guest installed application list. # Installed applications information.
"entries": [ # Application entries.
{ # Guest installed application information.
"name": "A String", # Installed application name.
"path": "A String", # Source path.
"time": "A String", # Date application was installed.
"vendor": "A String", # Installed application vendor.
"version": "A String", # Installed application version.
},
],
},
"lastUptime": { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # Date since last booted (last uptime date).
"day": 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
"month": 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
"year": 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
},
"machineName": "A String", # Machine name.
"networkInfo": { # Runtime networking information. # Runtime network information (connections, ports).
"connections": { # Network connection list. # Network connections.
"entries": [ # Network connection entries.
{
"localIpAddress": "A String", # Local IP address.
"localPort": 42, # Local port.
"pid": "A String", # Process ID.
"processName": "A String", # Process or service name.
"protocol": "A String", # Connection protocol (e.g. TCP/UDP).
"remoteIpAddress": "A String", # Remote IP address.
"remotePort": 42, # Remote port.
"state": "A String", # Connection state (e.g. CONNECTED).
},
],
},
"netstat": "A String", # Netstat (raw, OS-agnostic).
"netstatTime": { # Represents civil time (or occasionally physical time). This type can represent a civil time in one of a few possible ways: * When utc_offset is set and time_zone is unset: a civil time on a calendar day with a particular offset from UTC. * When time_zone is set and utc_offset is unset: a civil time on a calendar day in a particular time zone. * When neither time_zone nor utc_offset is set: a civil time on a calendar day in local time. The date is relative to the Proleptic Gregorian Calendar. If year, month, or day are 0, the DateTime is considered not to have a specific year, month, or day respectively. This type may also be used to represent a physical time if all the date and time fields are set and either case of the `time_offset` oneof is set. Consider using `Timestamp` message for physical time instead. If your use case also would like to store the user's timezone, that can be done in another field. This type is more flexible than some applications may want. Make sure to document and validate your application's limitations. # Netstat time collected.
"day": 42, # Optional. Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if specifying a datetime without a day.
"hours": 42, # Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults to 0 (midnight). An API may choose to allow the value "24:00:00" for scenarios like business closing time.
"minutes": 42, # Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0.
"month": 42, # Optional. Month of year. Must be from 1 to 12, or 0 if specifying a datetime without a month.
"nanos": 42, # Optional. Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999, defaults to 0.
"seconds": 42, # Optional. Seconds of minutes of the time. Must normally be from 0 to 59, defaults to 0. An API may allow the value 60 if it allows leap-seconds.
"timeZone": { # Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/time-zones). # Time zone.
"id": "A String", # IANA Time Zone Database time zone, e.g. "America/New_York".
"version": "A String", # Optional. IANA Time Zone Database version number, e.g. "2019a".
},
"utcOffset": "A String", # UTC offset. Must be whole seconds, between -18 hours and +18 hours. For example, a UTC offset of -4:00 would be represented as { seconds: -14400 }.
"year": 42, # Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a datetime without a year.
},
},
"openFileList": { # Open file list. # Open files information.
"entries": [ # Open file details entries.
{ # Open file Information.
"command": "A String", # Opened file command.
"filePath": "A String", # Opened file file path.
"fileType": "A String", # Opened file file type.
"user": "A String", # Opened file user.
},
],
},
"processes": { # List of running guest OS processes. # Running processes.
"processes": [ # Running process entries.
{ # Guest OS running process details.
"attributes": { # Process extended attributes.
"a_key": "A String",
},
"cmdline": "A String", # Process full command line.
"exePath": "A String", # Process binary path.
"pid": "A String", # Process ID.
"user": "A String", # User running the process.
},
],
},
"services": { # List of running guest OS services. # Running background services.
"services": [ # Running service entries.
{ # Guest OS running service details.
"cmdline": "A String", # Service command line.
"exePath": "A String", # Service binary path.
"name": "A String", # Service name.
"pid": "A String", # Service pid.
"startMode": "A String", # Service start mode (raw, OS-agnostic).
"state": "A String", # Service state (raw, OS-agnostic).
"status": "A String", # Service status.
},
],
},
},
},
"memoryMb": 42, # The amount of memory in the VirtualMachine. Must be non-negative.
"osFamily": "A String", # What family the OS belong to, if known.
"osName": "A String", # The name of the operating system running on the VirtualMachine.
"osVersion": "A String", # The version of the operating system running on the virtual machine.
"platform": { # Information about the platform. # Platform information.
"awsEc2Details": { # AWS EC2 specific details. # AWS EC2 specific details.
"location": "A String", # The location of the machine in the AWS format.
"machineTypeLabel": "A String", # AWS platform's machine type label.
},
"azureVmDetails": { # Azure VM specific details. # Azure VM specific details.
"location": "A String", # The location of the machine in the Azure format.
"machineTypeLabel": "A String", # Azure platform's machine type label.
"provisioningState": "A String", # Azure platform's provisioning state.
},
"genericDetails": { # Generic platform details. # Generic platform details.
"location": "A String", # Free text representation of the machine location. The format of this field should not be relied on. Different VMs in the same location may have different string values for this field.
},
"physicalDetails": { # Platform specific details for Physical Machines. # Physical machines platform details.
"location": "A String", # Free text representation of the machine location. The format of this field should not be relied on. Different machines in the same location may have different string values for this field.
},
"vmwareDetails": { # VMware specific details. # VMware specific details.
"esxVersion": "A String", # ESX version.
"osid": "A String", # VMware os enum - https://vdc-repo.vmware.com/vmwb-repository/dcr-public/da47f910-60ac-438b-8b9b-6122f4d14524/16b7274a-bf8b-4b4c-a05e-746f2aa93c8c/doc/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html.
"vcenterVersion": "A String", # vCenter version.
},
},
"powerState": "A String", # Power state of VM (poweredOn or poweredOff).
"vcenterFolder": "A String", # Folder name in vCenter where asset resides.
"vcenterUrl": "A String", # vCenter URL used in collection.
"vcenterVmId": "A String", # vCenter VM ID.
"vmArchitecture": { # Details of the VM architecture. # VM architecture details (vendor, cpu arch).
"bios": { # Details about the BIOS. # BIOS Details.
"biosManufacturer": "A String", # BIOS manufacturer.
"biosName": "A String", # BIOS name.
"biosReleaseDate": "A String", # BIOS release date.
"biosVersion": "A String", # BIOS version.
"smbiosUuid": "A String", # SMBIOS UUID.
},
"cpuArchitecture": "A String", # CPU architecture, e.g., "x64-based PC", "x86_64", "i686" etc.
"cpuManufacturer": "A String", # CPU manufacturer, e.g., "Intel", "AMD".
"cpuName": "A String", # CPU name, e.g., "Intel Xeon E5-2690", "AMD EPYC 7571" etc.
"cpuSocketCount": 42, # Number of processor sockets allocated to the machine.
"cpuThreadCount": 42, # Number of CPU threads allocated to the machine.
"firmware": "A String", # Firmware (BIOS/efi).
"hyperthreading": "A String", # CPU hyperthreading support.
"vendor": "A String", # Hardware vendor.
},
"vmDisks": { # Details of VM disks. # VM disk details.
"disks": { # VM disks. # List of disks.
"entries": [ # Disk entries.
{ # Single disk entry.
"diskLabel": "A String", # Disk label.
"diskLabelType": "A String", # Disk label type (e.g. BIOS/GPT)
"hwAddress": "A String", # Disk hardware address (e.g. 0:1 for SCSI).
"interfaceType": "A String", # Disks interface type (e.g. SATA/SCSI)
"partitions": { # Disk partition list. # Partition layout.
"entries": [ # Partition entries.
{ # Disk Partition details.
"capacityBytes": "A String", # Partition capacity.
"fileSystem": "A String", # Partition file system.
"freeBytes": "A String", # Partition free space.
"mountPoint": "A String", # Mount pount (Linux/Windows) or drive letter (Windows).
"subPartitions": # Object with schema name: DiskPartitionList # Sub-partitions.
"type": "A String", # Partition type (e.g. BIOS boot).
"uuid": "A String", # Partition UUID.
},
],
},
"status": "A String", # Disk status (e.g. online).
"totalCapacityBytes": "A String", # Disk capacity.
"totalFreeBytes": "A String", # Disk free space.
"vmwareConfig": { # VMware disk config details. # VMware disk details.
"backingType": "A String", # VMDK backing type.
"rdmCompatibilityMode": "A String", # RDM compatibility mode.
"shared": True or False, # Is VMDK shared with other VMs.
"vmdkDiskMode": "A String", # VMDK disk mode.
},
},
],
},
"hddTotalCapacityBytes": "A String", # Disk total Capacity.
"hddTotalFreeBytes": "A String", # Total Disk Free Space.
"lsblkJson": "A String", # Raw lsblk output in json.
},
"vmName": "A String", # Virtual Machine display name.
"vmNetwork": { # Details of network adapters and settings. # VM network details.
"defaultGw": "A String", # Default gateway address.
"networkAdapters": { # List of network adapters. # List of network adapters.
"networkAdapters": [ # Network adapter descriptions.
{ # Details of network adapter.
"adapterType": "A String", # Network adapter type (e.g. VMXNET3).
"addresses": { # List of allocated/assigned network addresses. # NetworkAddressList
"addresses": [ # Network address entries.
{ # Details of network address.
"assignment": "A String", # Whether DHCP is used to assign addresses.
"bcast": "A String", # Broadcast address.
"fqdn": "A String", # Fully qualified domain name.
"ipAddress": "A String", # Assigned or configured IP Address.
"subnetMask": "A String", # Subnet mask.
},
],
},
"macAddress": "A String", # MAC address.
},
],
},
"primaryIpAddress": "A String", # IP address of the machine.
"primaryMacAddress": "A String", # MAC address of the machine. This property is used to uniqly identify the machine.
"publicIpAddress": "A String", # Public IP address of the machine.
},
"vmUuid": "A String", # Virtual Machine unique identifier.
},
},
"requestId": "A String", # Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
"updateMask": "A String", # Required. Field mask is used to specify the fields to be overwritten in the `Asset` resource by the update. The values specified in the `update_mask` field are relative to the resource, not the full request. A field will be overwritten if it is in the mask. A single * value in the mask lets you to overwrite all fields.
},
],
}
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # Response for updating a list of assets.
"assets": [ # Update asset content. The content only includes values after field mask being applied.
{ # An asset represents a resource in your environment. Asset types include virtual machines and databases.
"assignedGroups": [ # Output only. The list of groups that the asset is assigned to.
"A String",
],
"attributes": { # Generic asset attributes.
"a_key": "A String",
},
"createTime": "A String", # Output only. The timestamp when the asset was created.
"insightList": { # Message containing insights list. # Output only. The list of insights associated with the asset.
"insights": [ # Output only. Insights of the list.
{ # An insight about an asset.
"migrationInsight": { # An insight about potential migrations for an asset. # Output only. An insight about potential migrations for an asset.
"computeEngineTarget": { # Compute engine migration target. # Output only. A Google Compute Engine target.
"shape": { # Compute Engine target shape descriptor. # Description of the suggested shape for the migration target.
"logicalCoreCount": 42, # Number of logical cores.
"machineType": "A String", # Compute Engine machine type.
"memoryMb": 42, # Memory in mebibytes.
"physicalCoreCount": 42, # Number of physical cores.
"series": "A String", # Compute Engine machine series.
},
},
"fit": { # Describes the fit level of an asset for migration to a specific target. # Output only. Description of how well the asset this insight is associated with fits the proposed migration.
"fitLevel": "A String", # Fit level.
},
"gkeTarget": { # GKE migration target. # Output only. A Google Kubernetes Engine target.
},
"vmwareEngineTarget": { # VMWare engine migration target. # Output only. A VMWare Engine target.
},
},
},
],
"updateTime": "A String", # Output only. Update timestamp.
},
"labels": { # Labels as key value pairs.
"a_key": "A String",
},
"name": "A String", # Output only. The full name of the asset.
"performanceData": { # Performance data for an asset. # Output only. Performance data for the asset.
"dailyResourceUsageAggregations": [ # Daily resource usage aggregations. Contains all of the data available for an asset, up to the last 420 days.
{ # Usage data aggregation for a single day.
"cpu": { # Statistical aggregation of CPU usage. # CPU usage.
"utilizationPercentage": { # Statistical aggregation of samples for a single resource usage. # CPU utilization percentage.
"average": 3.14, # Average usage value.
"median": 3.14, # Median usage value.
"ninteyFifthPercentile": 3.14, # 95th percentile usage value.
"peak": 3.14, # Peak usage value.
},
},
"date": { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # Aggregation date. Day boundaries are at midnight UTC.
"day": 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
"month": 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
"year": 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
},
"disk": { # Statistical aggregation of disk usage. # Disk usage.
"iops": { # Statistical aggregation of samples for a single resource usage. # Disk I/O operations per second.
"average": 3.14, # Average usage value.
"median": 3.14, # Median usage value.
"ninteyFifthPercentile": 3.14, # 95th percentile usage value.
"peak": 3.14, # Peak usage value.
},
},
"memory": { # Statistical aggregation of memory usage. # Memory usage.
"utilizationPercentage": { # Statistical aggregation of samples for a single resource usage. # Memory utilization percentage.
"average": 3.14, # Average usage value.
"median": 3.14, # Median usage value.
"ninteyFifthPercentile": 3.14, # 95th percentile usage value.
"peak": 3.14, # Peak usage value.
},
},
"network": { # Statistical aggregation of network usage. # Network usage.
"egressBps": { # Statistical aggregation of samples for a single resource usage. # Network egress in B/s.
"average": 3.14, # Average usage value.
"median": 3.14, # Median usage value.
"ninteyFifthPercentile": 3.14, # 95th percentile usage value.
"peak": 3.14, # Peak usage value.
},
"ingressBps": { # Statistical aggregation of samples for a single resource usage. # Network ingress in B/s.
"average": 3.14, # Average usage value.
"median": 3.14, # Median usage value.
"ninteyFifthPercentile": 3.14, # 95th percentile usage value.
"peak": 3.14, # Peak usage value.
},
},
},
],
},
"sources": [ # Output only. The list of sources contributing to the asset.
"A String",
],
"updateTime": "A String", # Output only. The timestamp when the asset was last updated.
"virtualMachineDetails": { # Details of a VirtualMachine. # Output only. Asset information specific for virtual machines.
"coreCount": 42, # Number of CPU cores in the VirtualMachine. Must be non-negative.
"createTime": "A String", # VM creation timestamp.
"guestOs": { # Information from Guest-level collections. # Guest OS information.
"config": { # Guest OS config information. # OS and app configuration.
"fstab": { # Fstab content. # Mount list (Linux fstab).
"entries": [ # Fstab entries.
{ # Single fstab entry.
"file": "A String", # The mount point for the filesystem.
"freq": 42, # Used by dump to determine which filesystems need to be dumped.
"mntops": "A String", # Mount options associated with the filesystem.
"passno": 42, # Used by the fsck(8) program to determine the order in which filesystem checks are done at reboot time.
"spec": "A String", # The block special device or remote filesystem to be mounted.
"vfstype": "A String", # The type of the filesystem.
},
],
},
"hosts": { # Hosts content. # Hosts file (/etc/hosts).
"entries": [ # Hosts entries.
{ # Single /etc/hosts entry.
"hostNames": [ # List of host names / aliases.
"A String",
],
"ip": "A String", # IP (raw, IPv4/6 agnostic).
},
],
},
"issue": "A String", # OS issue (typically /etc/issue in Linux).
"nfsExports": { # NFS exports. # NFS exports.
"entries": [ # NFS export entries.
{ # NFS export.
"exportDirectory": "A String", # The directory being exported.
"hosts": [ # The hosts or networks to which the export is being shared.
"A String",
],
},
],
},
"selinux": { # SELinux details. # SELinux details.
"enabled": True or False, # Is SELinux enabled.
"mode": "A String", # SELinux mode enforcing / permissive.
},
},
"runtime": { # Guest OS runtime information. # Runtime information.
"domain": "A String", # Domain, e.g. c.stratozone-development.internal.
"installedApps": { # Guest installed application list. # Installed applications information.
"entries": [ # Application entries.
{ # Guest installed application information.
"name": "A String", # Installed application name.
"path": "A String", # Source path.
"time": "A String", # Date application was installed.
"vendor": "A String", # Installed application vendor.
"version": "A String", # Installed application version.
},
],
},
"lastUptime": { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # Date since last booted (last uptime date).
"day": 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
"month": 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
"year": 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
},
"machineName": "A String", # Machine name.
"networkInfo": { # Runtime networking information. # Runtime network information (connections, ports).
"connections": { # Network connection list. # Network connections.
"entries": [ # Network connection entries.
{
"localIpAddress": "A String", # Local IP address.
"localPort": 42, # Local port.
"pid": "A String", # Process ID.
"processName": "A String", # Process or service name.
"protocol": "A String", # Connection protocol (e.g. TCP/UDP).
"remoteIpAddress": "A String", # Remote IP address.
"remotePort": 42, # Remote port.
"state": "A String", # Connection state (e.g. CONNECTED).
},
],
},
"netstat": "A String", # Netstat (raw, OS-agnostic).
"netstatTime": { # Represents civil time (or occasionally physical time). This type can represent a civil time in one of a few possible ways: * When utc_offset is set and time_zone is unset: a civil time on a calendar day with a particular offset from UTC. * When time_zone is set and utc_offset is unset: a civil time on a calendar day in a particular time zone. * When neither time_zone nor utc_offset is set: a civil time on a calendar day in local time. The date is relative to the Proleptic Gregorian Calendar. If year, month, or day are 0, the DateTime is considered not to have a specific year, month, or day respectively. This type may also be used to represent a physical time if all the date and time fields are set and either case of the `time_offset` oneof is set. Consider using `Timestamp` message for physical time instead. If your use case also would like to store the user's timezone, that can be done in another field. This type is more flexible than some applications may want. Make sure to document and validate your application's limitations. # Netstat time collected.
"day": 42, # Optional. Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if specifying a datetime without a day.
"hours": 42, # Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults to 0 (midnight). An API may choose to allow the value "24:00:00" for scenarios like business closing time.
"minutes": 42, # Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0.
"month": 42, # Optional. Month of year. Must be from 1 to 12, or 0 if specifying a datetime without a month.
"nanos": 42, # Optional. Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999, defaults to 0.
"seconds": 42, # Optional. Seconds of minutes of the time. Must normally be from 0 to 59, defaults to 0. An API may allow the value 60 if it allows leap-seconds.
"timeZone": { # Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/time-zones). # Time zone.
"id": "A String", # IANA Time Zone Database time zone, e.g. "America/New_York".
"version": "A String", # Optional. IANA Time Zone Database version number, e.g. "2019a".
},
"utcOffset": "A String", # UTC offset. Must be whole seconds, between -18 hours and +18 hours. For example, a UTC offset of -4:00 would be represented as { seconds: -14400 }.
"year": 42, # Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a datetime without a year.
},
},
"openFileList": { # Open file list. # Open files information.
"entries": [ # Open file details entries.
{ # Open file Information.
"command": "A String", # Opened file command.
"filePath": "A String", # Opened file file path.
"fileType": "A String", # Opened file file type.
"user": "A String", # Opened file user.
},
],
},
"processes": { # List of running guest OS processes. # Running processes.
"processes": [ # Running process entries.
{ # Guest OS running process details.
"attributes": { # Process extended attributes.
"a_key": "A String",
},
"cmdline": "A String", # Process full command line.
"exePath": "A String", # Process binary path.
"pid": "A String", # Process ID.
"user": "A String", # User running the process.
},
],
},
"services": { # List of running guest OS services. # Running background services.
"services": [ # Running service entries.
{ # Guest OS running service details.
"cmdline": "A String", # Service command line.
"exePath": "A String", # Service binary path.
"name": "A String", # Service name.
"pid": "A String", # Service pid.
"startMode": "A String", # Service start mode (raw, OS-agnostic).
"state": "A String", # Service state (raw, OS-agnostic).
"status": "A String", # Service status.
},
],
},
},
},
"memoryMb": 42, # The amount of memory in the VirtualMachine. Must be non-negative.
"osFamily": "A String", # What family the OS belong to, if known.
"osName": "A String", # The name of the operating system running on the VirtualMachine.
"osVersion": "A String", # The version of the operating system running on the virtual machine.
"platform": { # Information about the platform. # Platform information.
"awsEc2Details": { # AWS EC2 specific details. # AWS EC2 specific details.
"location": "A String", # The location of the machine in the AWS format.
"machineTypeLabel": "A String", # AWS platform's machine type label.
},
"azureVmDetails": { # Azure VM specific details. # Azure VM specific details.
"location": "A String", # The location of the machine in the Azure format.
"machineTypeLabel": "A String", # Azure platform's machine type label.
"provisioningState": "A String", # Azure platform's provisioning state.
},
"genericDetails": { # Generic platform details. # Generic platform details.
"location": "A String", # Free text representation of the machine location. The format of this field should not be relied on. Different VMs in the same location may have different string values for this field.
},
"physicalDetails": { # Platform specific details for Physical Machines. # Physical machines platform details.
"location": "A String", # Free text representation of the machine location. The format of this field should not be relied on. Different machines in the same location may have different string values for this field.
},
"vmwareDetails": { # VMware specific details. # VMware specific details.
"esxVersion": "A String", # ESX version.
"osid": "A String", # VMware os enum - https://vdc-repo.vmware.com/vmwb-repository/dcr-public/da47f910-60ac-438b-8b9b-6122f4d14524/16b7274a-bf8b-4b4c-a05e-746f2aa93c8c/doc/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html.
"vcenterVersion": "A String", # vCenter version.
},
},
"powerState": "A String", # Power state of VM (poweredOn or poweredOff).
"vcenterFolder": "A String", # Folder name in vCenter where asset resides.
"vcenterUrl": "A String", # vCenter URL used in collection.
"vcenterVmId": "A String", # vCenter VM ID.
"vmArchitecture": { # Details of the VM architecture. # VM architecture details (vendor, cpu arch).
"bios": { # Details about the BIOS. # BIOS Details.
"biosManufacturer": "A String", # BIOS manufacturer.
"biosName": "A String", # BIOS name.
"biosReleaseDate": "A String", # BIOS release date.
"biosVersion": "A String", # BIOS version.
"smbiosUuid": "A String", # SMBIOS UUID.
},
"cpuArchitecture": "A String", # CPU architecture, e.g., "x64-based PC", "x86_64", "i686" etc.
"cpuManufacturer": "A String", # CPU manufacturer, e.g., "Intel", "AMD".
"cpuName": "A String", # CPU name, e.g., "Intel Xeon E5-2690", "AMD EPYC 7571" etc.
"cpuSocketCount": 42, # Number of processor sockets allocated to the machine.
"cpuThreadCount": 42, # Number of CPU threads allocated to the machine.
"firmware": "A String", # Firmware (BIOS/efi).
"hyperthreading": "A String", # CPU hyperthreading support.
"vendor": "A String", # Hardware vendor.
},
"vmDisks": { # Details of VM disks. # VM disk details.
"disks": { # VM disks. # List of disks.
"entries": [ # Disk entries.
{ # Single disk entry.
"diskLabel": "A String", # Disk label.
"diskLabelType": "A String", # Disk label type (e.g. BIOS/GPT)
"hwAddress": "A String", # Disk hardware address (e.g. 0:1 for SCSI).
"interfaceType": "A String", # Disks interface type (e.g. SATA/SCSI)
"partitions": { # Disk partition list. # Partition layout.
"entries": [ # Partition entries.
{ # Disk Partition details.
"capacityBytes": "A String", # Partition capacity.
"fileSystem": "A String", # Partition file system.
"freeBytes": "A String", # Partition free space.
"mountPoint": "A String", # Mount pount (Linux/Windows) or drive letter (Windows).
"subPartitions": # Object with schema name: DiskPartitionList # Sub-partitions.
"type": "A String", # Partition type (e.g. BIOS boot).
"uuid": "A String", # Partition UUID.
},
],
},
"status": "A String", # Disk status (e.g. online).
"totalCapacityBytes": "A String", # Disk capacity.
"totalFreeBytes": "A String", # Disk free space.
"vmwareConfig": { # VMware disk config details. # VMware disk details.
"backingType": "A String", # VMDK backing type.
"rdmCompatibilityMode": "A String", # RDM compatibility mode.
"shared": True or False, # Is VMDK shared with other VMs.
"vmdkDiskMode": "A String", # VMDK disk mode.
},
},
],
},
"hddTotalCapacityBytes": "A String", # Disk total Capacity.
"hddTotalFreeBytes": "A String", # Total Disk Free Space.
"lsblkJson": "A String", # Raw lsblk output in json.
},
"vmName": "A String", # Virtual Machine display name.
"vmNetwork": { # Details of network adapters and settings. # VM network details.
"defaultGw": "A String", # Default gateway address.
"networkAdapters": { # List of network adapters. # List of network adapters.
"networkAdapters": [ # Network adapter descriptions.
{ # Details of network adapter.
"adapterType": "A String", # Network adapter type (e.g. VMXNET3).
"addresses": { # List of allocated/assigned network addresses. # NetworkAddressList
"addresses": [ # Network address entries.
{ # Details of network address.
"assignment": "A String", # Whether DHCP is used to assign addresses.
"bcast": "A String", # Broadcast address.
"fqdn": "A String", # Fully qualified domain name.
"ipAddress": "A String", # Assigned or configured IP Address.
"subnetMask": "A String", # Subnet mask.
},
],
},
"macAddress": "A String", # MAC address.
},
],
},
"primaryIpAddress": "A String", # IP address of the machine.
"primaryMacAddress": "A String", # MAC address of the machine. This property is used to uniqly identify the machine.
"publicIpAddress": "A String", # Public IP address of the machine.
},
"vmUuid": "A String", # Virtual Machine unique identifier.
},
},
],
}</pre>
</div>
<div class="method">
<code class="details" id="close">close()</code>
<pre>Close httplib2 connections.</pre>
</div>
<div class="method">
<code class="details" id="delete">delete(name, requestId=None, x__xgafv=None)</code>
<pre>Deletes an asset.
Args:
name: string, Required. Name of the resource. (required)
requestId: string, Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
}</pre>
</div>
<div class="method">
<code class="details" id="get">get(name, view=None, x__xgafv=None)</code>
<pre>Gets the details of an asset.
Args:
name: string, Required. Name of the resource. (required)
view: string, View of the assets. Defaults to BASIC.
Allowed values
ASSET_VIEW_UNSPECIFIED - The asset view is not specified. The API displays the basic view by default.
ASSET_VIEW_BASIC - The asset view includes only basic metadata of the asset.
ASSET_VIEW_FULL - The asset view includes all the metadata of an asset and performance data.
ASSET_VIEW_STANDARD - The asset view includes the standard metadata of an asset.
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # An asset represents a resource in your environment. Asset types include virtual machines and databases.
"assignedGroups": [ # Output only. The list of groups that the asset is assigned to.
"A String",
],
"attributes": { # Generic asset attributes.
"a_key": "A String",
},
"createTime": "A String", # Output only. The timestamp when the asset was created.
"insightList": { # Message containing insights list. # Output only. The list of insights associated with the asset.
"insights": [ # Output only. Insights of the list.
{ # An insight about an asset.
"migrationInsight": { # An insight about potential migrations for an asset. # Output only. An insight about potential migrations for an asset.
"computeEngineTarget": { # Compute engine migration target. # Output only. A Google Compute Engine target.
"shape": { # Compute Engine target shape descriptor. # Description of the suggested shape for the migration target.
"logicalCoreCount": 42, # Number of logical cores.
"machineType": "A String", # Compute Engine machine type.
"memoryMb": 42, # Memory in mebibytes.
"physicalCoreCount": 42, # Number of physical cores.
"series": "A String", # Compute Engine machine series.
},
},
"fit": { # Describes the fit level of an asset for migration to a specific target. # Output only. Description of how well the asset this insight is associated with fits the proposed migration.
"fitLevel": "A String", # Fit level.
},
"gkeTarget": { # GKE migration target. # Output only. A Google Kubernetes Engine target.
},
"vmwareEngineTarget": { # VMWare engine migration target. # Output only. A VMWare Engine target.
},
},
},
],
"updateTime": "A String", # Output only. Update timestamp.
},
"labels": { # Labels as key value pairs.
"a_key": "A String",
},
"name": "A String", # Output only. The full name of the asset.
"performanceData": { # Performance data for an asset. # Output only. Performance data for the asset.
"dailyResourceUsageAggregations": [ # Daily resource usage aggregations. Contains all of the data available for an asset, up to the last 420 days.
{ # Usage data aggregation for a single day.
"cpu": { # Statistical aggregation of CPU usage. # CPU usage.
"utilizationPercentage": { # Statistical aggregation of samples for a single resource usage. # CPU utilization percentage.
"average": 3.14, # Average usage value.
"median": 3.14, # Median usage value.
"ninteyFifthPercentile": 3.14, # 95th percentile usage value.
"peak": 3.14, # Peak usage value.
},
},
"date": { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # Aggregation date. Day boundaries are at midnight UTC.
"day": 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
"month": 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
"year": 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
},
"disk": { # Statistical aggregation of disk usage. # Disk usage.
"iops": { # Statistical aggregation of samples for a single resource usage. # Disk I/O operations per second.